/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f5f2ed;
  --text-primary: #2a211c;
  --text-secondary: #5a524c;
  --accent: #7f8565;
  --accent-hover: #6b7352;
  --border: #e0d9d1;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --nav-height: 80px;
  --nav-height-scrolled: 70px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2.5rem 0;
  transition: var(--transition);
  background-color: transparent;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background-color: #fff;
  padding: 0.8rem 0;
  box-shadow: var(--shadow);
  height: var(--nav-height-scrolled);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: var(--transition);
}

.navbar.scrolled .logo-img {
  height: 35px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 500;
}

.nav-link.active::after {
  width: 100%;
  background-color: var(--accent);
}

.dropdown-item.active {
  color: var(--accent);
  font-weight: 500;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-icon {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: var(--shadow);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
  padding: 8px 0;
  margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: rgba(127, 133, 101, 0.05);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ===== HERO MENU ===== */
.menu-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.menu-hero-title {
  font-family: "Crimson Pro", serif;
  font-weight: 300;
  font-size: 3.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.menu-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ===== MENU SLIDES ===== */
.menu-slides {
  padding: 2rem 0 4rem;
}

#menu-slides-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ===== MENU SLIDE CARD ===== */
.menu-slide {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.menu-slide:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.menu-slide-image {
  width: 100%;
  min-height: 800px; /* Sesuaikan tingginya sesuai kebutuhan */

  background-size: cover;
  background-position: top center; /* <-- UBAH KE SINI agar jangkar gambarnya di atas, tidak geser ke tengah */
  background-repeat: no-repeat;
  position: relative;
}

.menu-slide-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
}

/* Tempat placeholder jika belum ada foto */
.menu-slide-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  gap: 0.5rem;
  border: 2px dashed var(--border);
  border-radius: 16px;
}

.menu-slide-placeholder i {
  font-size: 3rem;
  color: var(--border);
}

.menu-slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 2;
  color: #ffffff;
}

.menu-slide-category {
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-slide-items {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
}

.menu-slide-items .item-name {
  font-weight: 400;
}

.menu-slide-items .item-price {
  font-weight: 600;
  color: #f5d76e;
}

.menu-slide-items .item-separator {
  opacity: 0.4;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 15px;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  position: relative;
  order: 2;
}

.whatsapp-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  font-size: 2rem;
}

.whatsapp-text {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #25d366;
  background-color: white;
  padding: 8px 15px;
  border-radius: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  position: relative;
  order: 1;
  pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #000000;
  color: #ffffff;
  padding: 3rem 0 0.5rem;
  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo-section {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #7f8565;
}

.footer-columns {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  min-width: 300px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.column-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #7f8565;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #333333;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.8rem;
}

.footer-menu-link {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-menu-link:hover {
  color: #7f8565;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-icon {
  width: 20px;
  margin-right: 10px;
  color: #cccccc;
  transition: color 0.3s ease;
}

.contact-item:hover .contact-icon {
  color: #7f8565;
}

.contact-link {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #7f8565;
}

.footer-divider {
  height: 1px;
  background-color: #333333;
  margin: 1rem 0 0.8rem;
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: #999999;
  font-size: 0.85rem;
  flex: 1;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #cccccc;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #7f8565;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet & Mobile Nav */
@media only screen and (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 45%;
    height: 93vh;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 1.5rem 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    overflow-y: auto;
    gap: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    display: flex !important;
    transform: translateX(100%);
  }

  .nav-menu.active {
    right: 0;
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    font-size: 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
  }

  .navbar.scrolled .nav-toggle {
    background: rgba(127, 133, 101, 0.1);
    border-color: rgba(127, 133, 101, 0.2);
    color: var(--accent);
  }

  .nav-link {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    display: flex;
  }

  .dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(127, 133, 101, 0.02);
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0 0 8px 8px;
    border: none;
    min-width: auto;
  }

  .dropdown.active .dropdown-menu {
    max-height: 300px;
    padding: 0.5rem 0;
    background-color: rgba(127, 133, 101, 0.03);
    border-radius: 0 0 8px 8px;
    border-top: 1px solid rgba(127, 133, 101, 0.1);
  }

  .dropdown-item {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
  }

  .dropdown-item:hover {
    background-color: rgba(127, 133, 101, 0.08);
    color: var(--accent);
    padding-left: 2rem;
  }

  .dropdown-item.active {
    color: var(--accent);
    font-weight: 500;
    background-color: rgba(127, 133, 101, 0.1);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* ===== TABLET ===== */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .menu-slide-image {
    width: 100%;
    min-height: 520px;
    background-size: cover;
    background-position: top center; /* <-- UBAH KE SINI agar jangkar gambarnya di atas, tidak geser ke tengah */
    background-repeat: no-repeat;
    position: relative;
  }

  .menu-slide-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    pointer-events: none;
  }

  .menu-slide-category {
    font-size: 1.6rem;
  }

  .menu-slide-items {
    font-size: 0.9rem;
  }

  .menu-slide-info {
    padding: 1.2rem 1.8rem;
  }
}

/* ===== MOBILE ===== */
@media only screen and (max-width: 768px) {
  body {
    padding-top: 65px;
  }

  .navbar {
    padding: 1.5rem 0;
    height: 65px;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: none;
  }

  .navbar.scrolled {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  }

  .navbar .container {
    padding: 0 1.5rem;
  }

  .logo-img {
    height: 32px;
    max-width: 160px;
  }

  .navbar.scrolled .logo-img {
    height: 30px;
  }

  .nav-menu {
    width: 75%;
    right: -75%;
    height: 100vh;
    padding: 80px 1.5rem 2rem;
    transform: translateX(100%);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    font-size: 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
  }

  /* Hero */
  .menu-hero {
    padding: 2.5rem 0 1.5rem;
  }

  .menu-hero-title {
    font-size: 2.2rem;
  }

  .menu-hero-sub {
    font-size: 1rem;
  }

  /* Menu Slides */
  .menu-slides {
    padding: 1rem 0 2.5rem;
  }

  #menu-slides-container {
    gap: 1.5rem;
  }

  .menu-slide {
    border-radius: 12px;
  }

  .menu-slide-image {
    width: 100%;
    min-height: 260px; /* Sesuaikan tingginya sesuai kebutuhan */

    background-size: cover;
    background-position: top center; /* <-- UBAH KE SINI agar jangkar gambarnya di atas, tidak geser ke tengah */
    background-repeat: no-repeat;
    position: relative;
  }

  .menu-slide-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    pointer-events: none;
  }

  .menu-slide-placeholder {
    min-height: 200px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .menu-slide-placeholder i {
    font-size: 2.5rem;
  }

  .menu-slide-info {
    padding: 1rem 1.2rem;
  }

  .menu-slide-category {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }

  .menu-slide-items {
    font-size: 0.8rem;
    gap: 0.2rem 0.6rem;
  }

  /* WhatsApp */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
  }

  .whatsapp-link {
    width: 56px;
    height: 56px;
    order: 2;
  }

  .whatsapp-icon {
    font-size: 1.8rem;
  }

  .whatsapp-text {
    padding: 8px 14px;
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    order: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    max-width: 180px;
    text-align: center;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-logo-section {
    text-align: center;
    min-width: auto;
  }

  .footer-logo {
    height: 60px;
    margin: 0 auto 0.8rem;
  }

  .footer-brand {
    font-size: 1.5rem;
    text-align: center;
  }

  .footer-columns {
    flex-direction: column;
    gap: 1.5rem;
    min-width: auto;
  }

  .footer-column {
    min-width: auto;
  }

  .column-title {
    font-size: 1rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-copyright {
    font-size: 0.75rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .menu-slide-image {
    height: 60vw;
    max-height: 260px;
    min-height: 220px;
  }
}

/* ===== NAV OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

.nav-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
