/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f7;
  overflow-x: hidden;
}

/* Mobile nav trigger (hidden on desktop) */
.navbar-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e0e0e0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #d97706;
  position: relative;
  z-index: 1101;
}

.navbar-toggle:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.navbar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.navbar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #ffffff;
  box-shadow: 12px 0 30px rgba(0,0,0,0.15);
  padding: 20px 18px 24px;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  z-index: 1102;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 26px;
  color: #d97706;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.drawer-menu {
  list-style: none;
  padding: 10px 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-menu a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  display: block;
}

.drawer-menu a.active {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.drawer-menu a:hover {
  background: rgba(0,0,0,0.04);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  backdrop-filter: none;
  z-index: 1000;
  box-shadow: none;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0px 60px;
  flex-shrink: 1;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 5px;
  position: static;
  transform: none;
  top: auto;
  left: auto;
  z-index: auto;
}

.navbar-logo-icon {
  width: 400px;
  height: auto;
  object-fit: contain;
}

/* Menu List (Kiri & Kanan) */
.navbar-menu {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 25px;
  flex-grow: 0;
}

.menu-left {
  margin-right: -90px;
}

.menu-right {
  margin-left: -90px;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  display: block;
  padding: 3px 3px;
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
  line-height: 1.5;
  transform: translateY(-25px);
}

.navbar-link:hover {
  color: #d97706;
  background-color: rgba(217, 119, 6, 0.1);
}

.navbar-link.active {
  color: #d97706;
  /* font-weight: 600; */
  background-color: rgba(217, 119, 6, 0.15);
}

.navbar-link.active::after {
  width: 100%;
}

.navbar-overlay,
.navbar-drawer {
  pointer-events: none;
}

.nav-open .navbar-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.nav-open .navbar-drawer {
  transform: translateX(0);
  pointer-events: auto;
}

.nav-open .navbar {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* --- HERO SECTION WITH SLIDER --- */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background-color: #000;
}

/* Container untuk semua gambar */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Individual slide */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1);
}

/* Slide yang aktif - transisi normal untuk pergantian slide */
.hero-slide.active {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* Animasi zoom-out HANYA untuk slide pertama saat page load */
.hero-slide.first-load {
  animation: firstSlideZoomOut 1.5s ease-out forwards;
  transition: none;
  transform-origin: center center;
}

@keyframes firstSlideZoomOut {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }

  60% {
    opacity: 1;
    transform: scale(1.02);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 3 gambar yang berbeda */
.hero-slide:nth-child(1) {
  background-image: url('../footage/warungmamahhalim.jpg');
}

.hero-slide:nth-child(2) {
  background-image: url('../footage/gandul.jpg');
}

.hero-slide:nth-child(3) {
  background-image: url('../footage/Pelanggan2.jpg');
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1100px) {
  .navbar-container { padding: 12px 24px; }
  .navbar-logo-icon { width: 220px; }
  .menu-left { margin-right: -40px; }
  .menu-right { margin-left: -40px; }
  .hero-section { min-height: 520px; }
}

@media (max-width: 960px) {
  .hero-subtitle {
    font-size: 18px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    text-align: left !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .navbar-container { justify-content: center; padding: 0px 16px 0px 16px; position: relative; }
  .navbar-logo { order: 0 !important; margin-left: 0 !important; margin-right: 0 !important; padding-right: 0 !important; position: static !important; right: auto !important; }
  .navbar-logo-icon { width: 170px; }
  .navbar-toggle { display: inline-flex; order: -1; position: absolute; left: 16px; }
  .navbar-menu, .navbar-menu.menu-left, .navbar-menu.menu-right { display: none; }
  .navbar-drawer { display: flex; }
  .drawer-logo { display: none !important; }

  .hero-section { height: 52vh !important; min-height: 330px !important; padding-top: 60px !important; }
  .hero-overlay { align-items: center; }
  .hero-content { padding: 0 16px !important; margin: 0 auto !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; text-align: left !important; max-width: 480px !important; }
  .hero-title { margin-bottom: 8px !important; font-size: 28px !important; display: flex !important; align-items: center !important; gap: 2px !important; line-height: 1.2 !important; }
  .slider-indicators { bottom: 18px; }
  .section-title { font-size: 28px !important; margin-bottom: 20px !important; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding: 0 12px !important; gap: 16px !important; }
  .menu-grid .menu-card .menu-image-container { height: 250px !important; }
  .menu-title { font-size: 18px !important; }
  .menu-grid .menu-card .menu-card-content { padding: 12px !important; min-height: 80px !important; gap: 6px !important; background-color: transparent !important; text-align: center !important; }
  .menu-grid .menu-card .menu-card-title { font-size: 18px !important; color: #5c4033 !important; }
  .menu-card-description { font-size: 12px !important; -webkit-line-clamp: unset !important; overflow: visible !important; text-overflow: unset !important; }
  .menu-placeholder { font-size: 14px !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
  .gallery-slider { gap: 16px; padding: 16px 8px 32px 8px; }
  .content-section, .content-box { padding: 16px; margin: 0 12px; }
  .footer-grid { display: flex; flex-wrap: wrap; gap: 15px; padding: 0 18px; text-align: left; }
  .footer-section:first-child { width: 100%; margin-bottom: 10px; }
  .footer-section:not(:first-child) { flex: 1; min-width: 100px; }
  .footer-section { align-items: flex-start; }
  .footer-logo { justify-content: flex-start; }
  .footer-logo-icon { width: 110px; height: 110px; margin-top: 0; padding: 8px; }
  .footer-heading { font-size: 12px; margin-bottom: 10px; font-weight: bold; }
  .footer-text, .footer-text-bold { font-size: 9px; line-height: 1.5; margin-bottom: 5px; }
  .footer-links { padding-left: 0; }
  .footer-links li { margin-bottom: 6px; }
  .footer-links a { font-size: 9px; }
  .footer-bottom { font-size: 9px; padding-top: 18px; text-align: center; }
  .footer { padding: 25px 0 12px; }
  .whatsapp-button { bottom: 18px; right: 18px; }
}

@media (max-width: 640px) {
  .hero-subtitle {
    font-size: 16px !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    text-align: left !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .navbar-container { padding: 0px 16px 0px 16px; }
  .navbar-logo { padding-right: 0 !important; margin-right: 0 !important; right: auto !important; position: static !important; }
  .navbar-logo-icon { width: 150px; }
  .navbar-toggle { position: absolute !important; left: 16px !important; }
  .drawer-logo { display: none !important; }
  .hero-section { height: 52vh !important; min-height: 330px !important; padding-top: 60px !important; }
  .hero-content { padding: 0 14px !important; max-width: 440px !important; }
  .hero-title { font-size: 26px !important; margin-bottom: 6px !important; display: flex !important; align-items: center !important; gap: 2px !important; line-height: 1.2 !important; }}
  .hero-subtitle { font-size: 12px !important; padding: 0 4px 0 0 !important; line-height: 1.35 !important; text-align: left !important; max-width: 440px !important; }
  .menu-section { padding: 0 10px; }
  .section-title { font-size: 22px !important; text-align: center; margin-bottom: 16px !important; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .menu-card { width: 100%; }
  .menu-grid .menu-card .menu-image-container { height: 220px !important; }
  .menu-title { font-size: 16px !important; }
  .menu-grid .menu-card .menu-card-content { padding: 10px !important; min-height: 70px !important; background-color: transparent !important; text-align: center !important; }
  .menu-grid .menu-card .menu-card-title { font-size: 16px !important; color: #5c4033 !important; }
  .menu-card-description { font-size: 11px !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
  .menu-placeholder { font-size: 12px !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
  .gallery-card { width: 220px; height: 240px; }
  .navbar-drawer { width: 80%; max-width: 280px; }
  .footer-grid { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 16px; text-align: left; }
  .footer-section:first-child { width: 100%; margin-bottom: 8px; }
  .footer-section:not(:first-child) { flex: 1; min-width: 95px; }
  .footer-logo-icon { width: 105px; height: 105px; padding: 8px; }
  .footer-heading { font-size: 11px; margin-bottom: 8px; }
  .footer-text, .footer-text-bold { font-size: 8px; line-height: 1.5; margin-bottom: 4px; }
  .footer-links li { margin-bottom: 5px; }
  .footer-links a { font-size: 8px; }
  .footer-bottom { text-align: center; font-size: 8px; padding-top: 15px; }
  .footer { padding: 22px 0 10px; }


@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.32 !important;
    max-width: 100% !important;
    text-align: left !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .hero-section { height: 50vh !important; min-height: 320px !important; }
  .hero-content { padding: 0 12px !important; max-width: 400px !important; }
  .hero-title { font-size: 22px !important; margin-bottom: 8px !important; gap: 4px !important; line-height: 1.2 !important; align-items: center !important; }
  .hero-subtitle { font-size: 11px !important; padding: 0 4px 0 0 !important; text-align: left !important; line-height: 1.35 !important; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .menu-grid .menu-card .menu-image-container { height: 190px !important; }
  .menu-title { font-size: 14px !important; }
  .menu-grid .menu-card .menu-card-content { padding: 8px !important; min-height: 60px !important; background-color: transparent !important; text-align: center !important; }
  .menu-grid .menu-card .menu-card-title { font-size: 14px !important; color: #5c4033 !important; }
  .menu-card-description { font-size: 10px !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
  .menu-placeholder { font-size: 11px !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
  .section-title { font-size: 20px !important; }
  .footer-text, .footer-text-bold { font-size: 7px; line-height: 1.4; margin-bottom: 3px; }
  .footer-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 14px; text-align: left; }
  .footer-section:first-child { width: 100%; margin-bottom: 6px; }
  .footer-section:not(:first-child) { flex: 1; min-width: 85px; }
  .footer-logo-icon { width: 100px; height: 100px; padding: 8px; }
  .footer-heading { font-size: 10px; margin-bottom: 6px; }
  .footer-links li { margin-bottom: 4px; }
  .footer-links a { font-size: 7px; }
  .footer-bottom { font-size: 7px; padding-top: 12px; text-align: center; }
  .footer { padding: 18px 0 8px; }
}

/* Slider Indicators (Dots) */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator-dot.active {
  background-color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.indicator-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Hero Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom,
      rgba(139, 69, 19, 0.7),
      rgba(139, 69, 19, 0) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: center;
  opacity: 1;
  pointer-events: none;
}

.hero-overlay * {
  pointer-events: auto;
}

.hero-content {
  padding: 0 60px;
  max-width: 1200px;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: 56px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

/* ========== ANIMASI HURUF W ========== */
.highlight-w {
  background-color: #ffffff !important;
  color: #8B6F47 !important;
  padding: 2px 8px !important;
  display: inline-block !important;
  border-radius: 4px !important;
  font-weight: bold !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  margin-right: -2px !important;
  text-shadow: none !important;
  vertical-align: baseline !important;
  line-height: 1 !important;
  opacity: 0;
  transform: translateX(-220px) skewX(-25deg) rotate(-8deg) scale(0.9);
  transform-origin: center center;
  backface-visibility: hidden;
}

.highlight-w.animate-w {
  animation: wLetterEntrance 1.2s ease-out forwards;
}

@keyframes wLetterEntrance {
  0% {
    opacity: 0;
    transform: translateX(-220px) skewX(-25deg) rotate(-8deg) scale(0.9);
  }

  55% {
    opacity: 1;
    transform: translateX(12px) skewX(4deg) rotate(4deg) scale(1.03);
  }

  75% {
    transform: translateX(-6px) skewX(-2deg) rotate(-2deg) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateX(0) skewX(0) rotate(0) scale(1);
  }
}

/* ========== ANIMASI "elcome!" ========== */
.highlight-elcome {
  opacity: 0;
  display: inline-block;
  transform: translateY(0px) scale(0.8);
  vertical-align: baseline !important;
  line-height: 1 !important;
}

.highlight-elcome.animate-elcome {
  animation: elcomeFadeIn 1.1s ease-out forwards;
}

@keyframes elcomeFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== ANIMASI SUBTITLE ========== */
.hero-subtitle {
  font-size: 24px !important;
  color: #fff;
  line-height: 1.6 !important;
  max-width: 800px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  /* allow full text, no ellipsis on desktop */
  display: block;
  overflow: visible;
  text-overflow: initial;
}

/* Re-apply mobile subtitle sizing after base (to override desktop) */
@media (max-width: 960px) {
  .hero-subtitle {
    font-size: 18px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    text-align: left !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

@media (max-width: 640px) {
  .hero-subtitle {
    font-size: 16px !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    text-align: left !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.32 !important;
    max-width: 100% !important;
    text-align: left !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

.highlight-subtitle {
  opacity: 0;
  display: inline;
  transform: translateY(30px);
}

.highlight-subtitle.animate-subtitle {
  animation: subtitleFadeIn 1s ease-out forwards;
}

@keyframes subtitleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MENU SECTION --- */
.menu-section {
  padding: 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  color: #5c4033;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(-20px);
}

.section-title.animate-in {
  animation: titleFadeIn 0.8s ease-out forwards;
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DESKTOP ONLY - Menu card styling untuk dashboard (square, no background) */
@media (min-width: 901px) {
  .section-title {
    font-size: 40px !important;
  }
  
  .menu-section .menu-grid .menu-card {
    max-width: 420px !important;
    margin: 0 auto !important;
  }
  
  .menu-section .menu-grid .menu-card .menu-image-container {
    height: 400px !important;
    width: 100% !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }
  
  .menu-section .menu-grid .menu-card .menu-card-content {
    background-color: transparent !important;
    text-align: center !important;
    min-height: 0 !important;
    padding: 20px 0 !important;
    gap: 0 !important;
    display: block !important;
  }
  
  .menu-section .menu-grid .menu-card .menu-card-title {
    color: #5c4033 !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: block !important;
  }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }
}

.menu-card {
  cursor: pointer;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
  /* Gunakan flexbox agar menu-card-content bisa grow ke bawah */
  display: flex;
  flex-direction: column;
}

.menu-card.animate-in {
  animation: cardSlideUp 0.6s ease-out forwards;
}

.menu-card:nth-child(1).animate-in {
  animation-delay: 0.1s;
}

.menu-card:nth-child(2).animate-in {
  animation-delay: 0.3s;
}

.menu-card:nth-child(3).animate-in {
  animation-delay: 0.5s;
}

@keyframes cardSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card:hover {
  transform: translateY(-10px);
}

/* Ensure text wraps correctly inside cards and hero subtitles */
.menu-info p,
.menu-card p,
.section-title,
.menu-info h3 {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

.menu-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  height: 350px;
  margin-bottom: 0;
  width: 100%;
}

/* DESKTOP: Menu page styling (350px image + description) */
@media (min-width: 901px) {
  .menu-section .menu-grid .menu-image-container {
    height: 400px !important;
  }
}

.menu-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-card:hover .menu-image-container img {
  transform: scale(1.1);
}

.menu-title {
  font-size: 24px;
  font-weight: bold;
  color: #5c4033;
  text-align: center;
  margin: 0;
}

.menu-card-content {
  background-color: #e0a44f;
  padding: 25px;
  text-align: left;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Tambahkan flex: 1 agar content mengisi sisa ruang card */
  flex: 1;
}

.menu-card-title {
  color: white;
  font-size: 22px;
  margin: 0;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

.menu-card-description {
  color: white;
  font-size: 14px;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.95;
  font-family: 'Poppins', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #d0d0d0;
  color: #777;
  font-weight: 700;
  font-size: 16px;
  background-color: #f9f9f9;
}

/* --- FOOTER --- */
.footer {
  background: linear-gradient(90deg, #d97706 0%, #b45309 100%);
  color: #fff;
  padding: 50px 0 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.footer-logo-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-top: 15px;
}

.footer-logo-img {
  width: 400%;
  height: 400%;
  object-fit: contain;
}

.footer-heading {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-text {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-text-bold {
  font-size: 14px;
  font-weight: 600;
  margin: 15px 0 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 25px;
  text-align: center;
  font-size: 13px;
}

/* --- WHATSAPP BUTTON --- */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  left: 60px;
  right: auto;
  background-color: #25d366;
  color: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  font-weight: 600;
  font-size: 15px;
  animation: ballBounce 1.2s cubic-bezier(0.36, 0, 0.66, -0.56) 2s backwards;
}

.whatsapp-button i {
  font-size: 28px;
}

@media (max-width: 640px) {
  .whatsapp-button {
    padding: 11px 18px;
    font-size: 13px;
    gap: 8px;
    bottom: 16px;
    left: 18px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  }
  .whatsapp-button i { font-size: 22px; }
}

@media (max-width: 480px) {
  .whatsapp-button {
    padding: 10px 16px;
    font-size: 12px;
    gap: 6px;
    bottom: 14px;
    left: 14px;
  }
  .whatsapp-button i { font-size: 20px; }
}

@keyframes ballBounce {
  0% {
    opacity: 0;
    transform: translateY(-500px) scale(0.8);
  }

  25% {
    opacity: 1;
  }

  40% {
    transform: translateY(0) scale(1.1, 0.9);
  }

  50% {
    transform: translateY(-80px) scale(0.95, 1.05);
  }

  65% {
    transform: translateY(0) scale(1.05, 0.95);
  }

  75% {
    transform: translateY(-30px) scale(0.98, 1.02);
  }

  85% {
    transform: translateY(0) scale(1.02, 0.98);
  }

  92% {
    transform: translateY(-10px) scale(1, 1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1, 1);
  }
}

.whatsapp-button:hover {
  background-color: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* --- FORM STYLING --- */
form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  margin: 40px auto;
}

form label {
  margin: 10px 0 5px;
  font-weight: bold;
  color: #2c3e50;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form input[type="number"],
form textarea,
form select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: #d97706;
}

form button {
  margin-top: 20px;
  padding: 14px;
  border: none;
  background-color: #27ae60;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
}

form button:hover {
  background-color: #219150;
}

form a button {
  background-color: #e74c3c;
}

form a button:hover {
  background-color: #c0392b;
}

/* Page Header */
.page-header {
  padding: 50px 60px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
  margin-bottom: 40px;
  margin-top: 0;
  padding-top: 120px;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
}

/* Form Container */
.form-container {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 40px;
}

.form-container h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #1f2937;
}

/* Table Container */
.table-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px;
}

.table-container h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #1f2937;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

table thead {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
}

table th {
  padding: 18px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

table tbody tr:hover {
  background-color: #fef3c7;
}

table img {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
}

.btn-edit,
.btn-delete {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: all 0.3s;
  font-size: 14px;
}

.btn-edit {
  background-color: #3b82f6;
}

.btn-edit:hover {
  background-color: #2563eb;
}

.btn-delete {
  background-color: #ef4444;
}

.btn-delete:hover {
  background-color: #dc2626;
}

/* Form Textarea */
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  transition: border-color 0.3s;
  resize: vertical;
  min-height: 120px;
}

textarea:focus {
  outline: none;
  border-color: #d97706;
}

/* --- SEJARAH PAGE CONTENT STYLES --- */
.content-section {
  max-width: 1000px;
  margin: 60px auto 100px;
  padding: 0 20px;
  text-align: center;
}

.content-box {
  background: linear-gradient(135deg, #ea9f38 0%, #d97706 100%);
  color: #ffffff;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(217, 119, 6, 0.25);
}

.content-text {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .content-text {
    text-align: justify;
    text-align-last: center;
  }
}

@media (max-width: 768px) {
  .content-box {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .content-text {
    font-size: 14px;
    text-align: center !important;
  }
}