/* ═══════════════════════════════════════════════════
   CHINA GARDEN  Restaurant Website Styles
   ═══════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ──────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Warm palette */
  --bg:        #0e0c0b;
  --bg-alt:    #1a1614;
  --surface:   #231f1b;
  --gold:      #c41e3a;
  --gold-light:#e8434f;
  --cream:     #f5efe6;
  --text:      #ddd5c8;
  --text-muted:#9a9189;
  --white:     #fff;
  --danger:    #d35b5b;

  /* Typography */
  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', -apple-system, sans-serif;

  /* Sizes */
  --nav-h: 72px;
  --section-py: 100px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .3s var(--ease);
}
a:hover { color: var(--gold-light); }

/* ── Utility ────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: var(--section-py) 0;
}

.section-dark {
  background: var(--bg-alt);
}

.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.gold { color: var(--gold); }

.hidden { display: none !important; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all .35s var(--ease);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--bg);
}

.btn-full { width: 100%; text-align: center; }

/* ── Navigation ─────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}

#navbar.scrolled {
  background: rgba(14,12,11,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 1px;
}
.logo span { color: var(--gold); margin: 0 2px; }
.logo:hover { color: var(--cream); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  border: 2px solid var(--gold) !important;
  border-radius: 4px;
  color: var(--gold) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  position: relative;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: all .3s var(--ease);
  border-radius: 2px;
}
.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);
}

/* ── Hero ───────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1552566626-52f8b828add9?w=1600&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14,12,11,.6) 0%,
    rgba(14,12,11,.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-subtitle {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

#hero h1 {
  font-family: var(--ff-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  font-style: italic;
  font-family: var(--ff-heading);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Fade-up hero animation ─────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpIn .8s var(--ease) forwards;
}
.delay-1 { animation-delay: .25s; }
.delay-2 { animation-delay: .5s; }
.delay-3 { animation-delay: .75s; }

@keyframes fadeUpIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: 8px;
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.about-text h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.about-text .btn {
  margin-top: 12px;
}

/* ── Menu ───────────────────────────────────────── */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.menu-tab {
  padding: 10px 28px;
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: 30px;
  color: var(--text-muted);
  font-family: var(--ff-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.menu-tab:hover,
.menu-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.menu-panel {
  display: none;
  max-width: 750px;
  margin: 0 auto;
}
.menu-panel.active { display: block; }

.menu-item {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}

.menu-item h3 {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  color: var(--cream);
  font-weight: 600;
}

.menu-price {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.menu-item p {
  color: var(--text-muted);
  font-size: .92rem;
}

/* ── Gallery ────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-item.gallery-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ── Grain Texture Overlay ──────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ── Marquee Ticker ─────────────────────────────── */
.marquee {
  overflow: hidden;
  background: var(--gold);
  padding: 14px 0;
  white-space: nowrap;
  user-select: none;
}

.marquee-track {
  display: inline-block;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track span {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bg);
  padding-right: 0;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Chef's Note ────────────────────────────────── */
.chefs-note-section {
  padding: 60px 0;
  background: var(--bg);
}

.chefs-note {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  background: #2a2520;
  border: 1px solid rgba(196,30,58,.15);
  border-radius: 2px;
  padding: 40px 36px 32px;
  transform: rotate(-1.2deg);
  box-shadow: 4px 6px 24px rgba(0,0,0,.35);
}

.note-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.note-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 16px;
}

.note-sign {
  font-family: var(--ff-body);
  font-size: .82rem;
  color: var(--text-muted);
  text-align: right;
}

/* ── Empty Star (for 4-star review) ─────────────── */
.star-empty {
  opacity: .2;
}

/* ── Testimonials ───────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 36px 30px;
  border: 1px solid rgba(255,255,255,.04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text);
  font-size: .95rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author strong {
  display: block;
  color: var(--cream);
  font-size: .9rem;
}
.testimonial-author span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Reservation ────────────────────────────────── */
.reservation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.reservation-text h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 16px;
}

.reservation-text > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.reservation-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.info-item strong {
  display: block;
  color: var(--cream);
  font-size: .9rem;
}
.info-item span {
  font-size: .85rem;
  color: var(--text-muted);
}

/* Form */
.reservation-form {
  background: var(--surface);
  border-radius: 10px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group:only-child {
  margin-bottom: 16px;
}

label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
label small {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

input, select, textarea {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: .9rem;
  transition: border-color .3s var(--ease);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

textarea { resize: vertical; margin-bottom: 16px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239a9189' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Success state */
.form-success {
  background: var(--surface);
  border-radius: 10px;
  padding: 60px 36px;
  border: 1px solid rgba(196,30,58,.2);
  text-align: center;
}
.form-success svg { color: var(--gold); margin-bottom: 16px; }
.form-success h3 {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 8px;
}
.form-success p { color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: .92rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-col p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196,30,58,.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .about-grid,
  .reservation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image { order: -1; }
  .about-image img { aspect-ratio: 16/9; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item.gallery-wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 72px;
    --nav-h: 64px;
  }

  /* Mobile nav */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 24px;
    transition: right .4s var(--ease);
    box-shadow: -4px 0 30px rgba(0,0,0,.5);
  }
  .nav-links.open {
    right: 0;
  }

  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; text-align: center; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  #hero h1 { font-size: 2.6rem; }
  .reservation-form { padding: 24px 20px; }
}
