/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FAF9F6;
  --gold: #D4A373;
  --gold-dark: #B8894F;
  --gold-light: #EDD9B8;
  --brown: #6B4C2A;
  --dark: #2C2416;
  --text: #3D3020;
  --text-muted: #8A7660;
  --white: #FFFFFF;
  --shadow: rgba(44, 36, 22, 0.10);
  --shadow-md: rgba(44, 36, 22, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION BASE ===== */
.section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 12px;
}
.section-title em { color: var(--gold-dark); font-style: italic; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  transition: var(--transition); cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(212,163,115,0.35);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,163,115,0.45); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1.5px solid #ddd; }
.btn-ghost:hover { background: #f5f0ea; }
.full-width { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,249,246,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,163,115,0.15);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px var(--shadow); }
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  color: var(--dark);
}
.logo-icon { font-size: 1.5rem; }
.nav-links {
  display: flex; list-style: none; gap: 36px;
}
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-links a:hover::after { transform: scaleX(1); }

.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-btn:hover { background: var(--gold); color: var(--white); transform: scale(1.08); }

.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--brown); color: var(--white);
  font-size: 0.65rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
  transition: transform 0.2s;
}
.cart-count.pop { transform: scale(1.4); }
.cart-count.hidden { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; background: var(--dark);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(212,163,115,0.15);
  padding: 12px 0; background: var(--cream);
}
.mobile-nav.open { display: flex; }
.mobile-link {
  padding: 14px 24px; font-size: 1rem; font-weight: 500;
  color: var(--text); border-bottom: 1px solid #f0ebe3;
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--gold-dark); background: #f5f0ea; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(44,36,22,0.70) 0%,
    rgba(44,36,22,0.45) 50%,
    rgba(107,76,42,0.55) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 120px 24px 80px;
  max-width: 780px;
  animation: fadeUp 1s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-tagline {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 20px; font-weight: 500;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.18; font-weight: 700;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: fadeUp 1s 0.3s ease both;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-desc {
  font-size: 1.08rem; color: rgba(255,255,255,0.82);
  line-height: 1.75; margin-bottom: 36px;
  max-width: 560px; margin-left: auto; margin-right: auto;
  animation: fadeUp 1s 0.45s ease both;
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 1s 0.55s ease both;
}
.hero-badges {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s 0.7s ease both;
}
.badge {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
}
.hero-scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 6px; height: 6px; background: var(--gold-light);
  border-radius: 50%;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ===== SIGNATURE ===== */
.signature { background: var(--white); }
.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sig-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sig-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px var(--shadow-md); }
.sig-card.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 4px 24px rgba(212,163,115,0.25);
}
.sig-img-wrap {
  position: relative; height: 220px; overflow: hidden;
  background: var(--gold-light);
}
.sig-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.sig-card:hover .sig-img-wrap img { transform: scale(1.06); }
.sig-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #f0e6d3, #e8d5b7);
}
.sig-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.sig-info { padding: 22px; }
.sig-info h3 {
  font-family: var(--font-serif); font-size: 1.15rem;
  color: var(--dark); margin-bottom: 8px;
}
.sig-info p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.sig-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.price { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--gold-dark); }

.btn-add {
  background: var(--gold); color: var(--white);
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}
.btn-add:hover { background: var(--gold-dark); transform: scale(1.05); }
.btn-add:active { transform: scale(0.96); }

/* ===== MENU SECTION ===== */
.menu-section { background: var(--cream); }

.menu-tabs {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 44px;
}
.tab-btn {
  padding: 10px 24px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid #e0d8cc;
  background: transparent;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--gold-dark); border-color: var(--gold); background: var(--gold-light); }
.tab-btn.active { background: var(--gold); color: var(--white); border-color: var(--gold); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: cardIn 0.35s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--shadow-md); }
.menu-card-icon {
  font-size: 2.4rem; width: 56px; height: 56px;
  background: var(--gold-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-card-info { flex: 1; }
.menu-card-info h4 { font-family: var(--font-serif); font-size: 1rem; color: var(--dark); margin-bottom: 3px; }
.menu-card-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; }
.menu-price { font-weight: 700; font-size: 1rem; color: var(--gold-dark); }
.qty-control {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-light); color: var(--brown);
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--gold); color: var(--white); }
.qty-num {
  font-size: 0.9rem; font-weight: 700; min-width: 18px; text-align: center;
  color: var(--dark);
}

/* ===== GALLERY ===== */
.gallery-section { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item.large { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,0.65) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white); font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition);
}
.info-card:hover { transform: translateY(-3px); }
.info-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.info-card h3 { font-family: var(--font-serif); font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.info-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.info-card .highlight { color: var(--gold-dark); font-weight: 600; }
.map-container {
  height: 420px; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 24px var(--shadow-md);
}

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 48px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; margin-bottom: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo-icon { font-size: 2rem; }
.footer-name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--white); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer-links a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 0.82rem; }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(44,36,22,0.4);
  backdrop-filter: blur(4px); z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 100vw;
  background: var(--cream);
  z-index: 1200;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px var(--shadow-md);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid #eee;
  background: var(--white);
}
.cart-header h2 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--dark); }
.close-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-light); color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
}
.close-btn:hover { background: var(--gold); color: var(--white); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted); font-size: 0.95rem; line-height: 2;
}
.cart-empty span { font-size: 3rem; display: block; margin-bottom: 12px; }

.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid #f0ebe3;
  animation: cardIn 0.25s ease;
}
.cart-item-icon { font-size: 1.8rem; width: 44px; height: 44px; background: var(--gold-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.cart-item-price { font-size: 0.82rem; color: var(--gold-dark); font-weight: 600; margin-top: 2px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-light); color: var(--brown);
  font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-qty-btn:hover { background: var(--gold); color: var(--white); }
.cart-qty-num { font-size: 0.9rem; font-weight: 700; min-width: 16px; text-align: center; }

.cart-footer { padding: 20px 24px; border-top: 1px solid #eee; background: var(--white); }
.cart-footer.hidden { display: none; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--dark);
}
.cart-footer .btn { margin-bottom: 10px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--dark); color: var(--white);
  padding: 12px 26px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 6px 28px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2000; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .signature-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-container { height: 300px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item.large { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .signature-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item.large, .gallery-item.wide {
    grid-row: span 1; grid-column: span 1;
  }
  .gallery-item { height: 220px; }
  .menu-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { text-align: left; }
  .hero-title { font-size: 2.2rem; }
  .cart-sidebar { width: 100%; }
}
