/* ============================================================
   menu.css — Dreezel Coffee Menu Page
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* Main Desktop styling is largely inherited from styles.css */
/* We just need to define background for desktop if needed */
.desktop {
  background-color: #efe3d5;
}

/* === Hero & Carousel Background === */
.menu-hero {
  position: relative;
  width: 100%;
  height: 1040px; 
  margin-top: 114px; /* Offset for header */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 600px;
  background: linear-gradient(to top, #efe3d5 0%, rgba(239, 227, 213, 0) 100%);
  z-index: 2;
}

/* === Carousel Layout === */
.carousel-container {
  position: absolute;
  top: 114px;
  left: 0;
  width: 100%;
  bottom: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.slides-container {
  position: relative;
  width: 1100px;
  height: 733px;
}

/* === Carousel Arrow Buttons === */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow.left-arrow {
  left: 284px;
}

.carousel-arrow.right-arrow {
  right: 284px;
}

.carousel-arrow img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

/* Efek Hover Animasi Arrow Border (Rectangle Frame) */
.carousel-arrow::before,
.carousel-arrow::after {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.carousel-arrow::before {
  top: 0;
  right: 0;
  border-top: 5px solid #3d2314;
  border-right: 5px solid #3d2314;
}

.carousel-arrow::after {
  bottom: 0;
  left: 0;
  border-bottom: 5px solid #3d2314;
  border-left: 5px solid #3d2314;
}

.carousel-arrow:hover::before {
  top: -5px;
  right: -5px;
}

.carousel-arrow:hover::after {
  bottom: -5px;
  left: -5px;
}

.carousel-arrow.left-arrow:hover img {
  transform: translateX(-5px);
}

.carousel-arrow.right-arrow:hover img {
  transform: translateX(5px);
}

/* === Slide Cards === */
.menu-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 422px;
  height: 591px;
  background-color: #efe3d5;
  transition: all 0.5s ease-in-out;
  overflow: hidden;
  opacity: 0;
  z-index: 0;
  transform: scale(0.6) translate(-50%, -50%);
  transform-origin: top left;
  
  /* Broken Border Frame dibuat menggunakan background linear-gradient (menggantikan div tambahan) */
  background-image: 
    linear-gradient(#3d2314, #3d2314),
    linear-gradient(#3d2314, #3d2314),
    linear-gradient(#3d2314, #3d2314),
    linear-gradient(#3d2314, #3d2314);
  background-size: 
    92% 5px, /* top */
    5px 95%, /* right */
    92% 5px, /* bottom */
    5px 95%; /* left */
  background-position: 
    top left, 
    top right, 
    bottom right, 
    bottom left;
  background-repeat: no-repeat;
}

.card-image {
  width: 100%;
  height: 380px;
  padding: 40px 40px 10px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 10px 40px 40px 40px;
  text-align: left;
}

.card-content h3 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  color: #3d2314;
  font-size: 36px;
  margin: 0 0 10px 0;
}

.card-content p {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  color: #3d2314;
  font-size: 16px;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.price {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  color: #3d2314;
  font-size: 32px;
}

/* Active State */
.menu-card.active {
  opacity: 1;
  z-index: 10;
  transform: scale(1) translate(-50%, -50%);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
}

/* Prev State (Left) */
.menu-card.prev {
  opacity: 1;
  z-index: 5;
  transform: scale(0.85) translate(-100%, -50%);
}

/* Next State (Right) */
.menu-card.next {
  opacity: 1;
  z-index: 5;
  transform: scale(0.85) translate(0%, -50%);
}

/* === Menu Grid Section === */
.menu-grid-section {
  width: 100%;
  background-color: #efe3d5;
  padding: 50px 0 150px 0;
  display: flex;
  justify-content: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 363px);
  gap: 80px 100px;
}

.grid-card {
  position: relative;
  width: 363px;
  height: 396px;
  background-color: #efe3d5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 50px;
  transition: all 0.3s ease;
  
  /* Broken Border Frame dibuat menggunakan background linear-gradient */
  background-image: 
    linear-gradient(#3d2314, #3d2314),
    linear-gradient(#3d2314, #3d2314),
    linear-gradient(#3d2314, #3d2314),
    linear-gradient(#3d2314, #3d2314);
  background-size: 
    92% 5px, /* top */
    5px 95%, /* right */
    92% 5px, /* bottom */
    5px 95%; /* left */
  background-position: 
    top left, 
    top right, 
    bottom right, 
    bottom left;
  background-repeat: no-repeat;
}

.grid-card:hover {
  background-size: 
    100% 5px, /* top */
    5px 100%, /* right */
    100% 5px, /* bottom */
    5px 100%; /* left */
}

.grid-card img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  margin-bottom: 25px;
}

.grid-card-label {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  color: #3d2314;
  font-size: 32px;
  text-align: left;
  width: 250px;
}

/* === Global Footer specifically for menu/contact page styling === */
footer#kontak {
  position: relative;
  width: 100%;
  height: 82px;
  background-color: #3d2314;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  z-index: 10;
}

footer#kontak p {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 24px;
  margin: 0;
  position: static; /* Overrides .desktop .p absolute positioning */
  top: auto;
  left: auto;
  width: auto;
  transform: none;
}
