/* =========================================================
   King's Indian Tiffin Services
   Design tokens: deep maroon/burgundy primary, mustard-gold +
   crown-gold accents, cream/off-white body sections.
   ========================================================= */

:root {
  --maroon-900: #4a0d18;
  --maroon-800: #5c0f1a;
  --maroon-700: #7a1526;
  --maroon-600: #8f1c2e;
  --gold-crown: #c8961e;
  --gold-mustard: #e0a52c;
  --gold-light: #f4d35e;
  --cream: #fbf3e3;
  --cream-100: #fffaf0;
  --ink: #2b1210;
  --ink-soft: #5a4640;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 12px 32px rgba(74, 13, 24, 0.14);
  --shadow-card: 0 8px 24px rgba(74, 13, 24, 0.10);

  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-light);
  color: var(--maroon-900);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold-mustard);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-mustard), var(--gold-crown));
  color: var(--maroon-900);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(200, 150, 30, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 243, 227, 0.5);
}
.btn-outline:hover { background: rgba(251, 243, 227, 0.12); }

.btn-order {
  background: var(--gold-mustard);
  color: var(--maroon-900);
  padding: 10px 20px;
}
.btn-order:hover { background: var(--gold-light); }

.btn-plan {
  display: block;
  text-align: center;
  background: var(--maroon-800);
  color: var(--cream);
  border-radius: 999px;
  padding: 12px 20px;
  margin-top: 20px;
  font-weight: 800;
}
.btn-plan:hover { background: var(--maroon-700); }

.btn-plan-featured {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-mustard), var(--gold-crown));
  color: var(--maroon-900);
  border-radius: 999px;
  padding: 12px 20px;
  margin-top: 20px;
  font-weight: 800;
}

.icon { flex-shrink: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(74, 13, 24, 0.96);
  backdrop-filter: blur(6px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-kings {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  text-transform: uppercase;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav ul {
  display: flex;
  gap: 24px;
}
.nav-link {
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 2px;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold-mustard);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(74,13,24,0.94) 30%, rgba(74,13,24,0.55) 65%, rgba(74,13,24,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding-block: 80px; }
.eyebrow {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
}
.hero-tagline {
  font-size: 1.15rem;
  max-width: 520px;
  color: rgba(251,243,227,0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

/* ---------- Sections (generic) ---------- */
.section { padding-block: 96px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--maroon-800); }
.section-title-center { text-align: center; }
.section-title-light { color: var(--cream); }
.section-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section-subtitle-light { color: rgba(251,243,227,0.85); }
.eyebrow-dark { color: var(--gold-crown); }
.eyebrow-center { text-align: center; display: block; }

/* ---------- About ---------- */
.about-section { background: var(--cream-100); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 9/11;
  object-fit: cover;
}
.about-media-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--maroon-800);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--gold-mustard);
}
.badge-num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--gold-light); }
.badge-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.about-copy h2 { color: var(--maroon-800); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.about-copy > p { color: var(--ink-soft); font-size: 1.05rem; }
.about-points { margin-top: 28px; display: grid; gap: 18px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; }
.about-points svg { flex-shrink: 0; color: var(--gold-crown); margin-top: 3px; }
.about-points strong { display: block; color: var(--maroon-800); font-size: 1.02rem; }
.about-points span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Menu ---------- */
.menu-section { background: var(--cream); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.menu-card img { aspect-ratio: 4/3; object-fit: cover; }
.menu-card-body { padding: 18px 20px 22px; }
.menu-card-body h3 { color: var(--maroon-800); font-size: 1.15rem; margin-bottom: 6px; }
.menu-card-body p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.menu-note {
  margin-top: 44px;
  text-align: center;
  background: var(--white);
  border: 2px dashed var(--gold-crown);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.menu-note p { margin: 0 0 6px; color: var(--maroon-800); font-size: 1rem; }
.menu-note-small { color: var(--ink-soft) !important; font-size: 0.88rem !important; font-style: italic; }

/* ---------- Plans ---------- */
.plans-section { background: var(--maroon-800); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.plan-card {
  background: rgba(251,243,227,0.06);
  border: 1px solid rgba(251,243,227,0.18);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  color: var(--cream);
  position: relative;
}
.plan-card h3 { color: var(--gold-light); font-size: 1.4rem; }
.plan-desc { color: rgba(251,243,227,0.85); font-size: 0.95rem; }
.plan-card ul { display: grid; gap: 10px; margin-top: 16px; }
.plan-card li {
  padding-left: 24px;
  position: relative;
  font-size: 0.92rem;
  color: rgba(251,243,227,0.92);
}
.plan-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-mustard);
  font-weight: 800;
}
.plan-card-featured {
  background: linear-gradient(160deg, rgba(224,165,44,0.16), rgba(251,243,227,0.06));
  border-color: var(--gold-mustard);
  transform: scale(1.04);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-mustard);
  color: var(--maroon-900);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plans-footnote {
  text-align: center;
  margin-top: 40px;
  color: rgba(251,243,227,0.75);
  font-size: 0.92rem;
}

/* ---------- Delivery ---------- */
.delivery-section { background: var(--cream-100); }
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.delivery-copy h2 { color: var(--maroon-800); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.delivery-copy > p { color: var(--ink-soft); font-size: 1.05rem; }
.delivery-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.delivery-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--maroon-800);
  background: var(--cream);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.delivery-note { color: var(--ink-soft); font-size: 0.95rem; }
.delivery-note a { color: var(--maroon-700); font-weight: 800; text-decoration: underline; }
.delivery-map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.delivery-map { width: 100%; height: auto; display: block; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--cream); }
.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.testimonial-card {
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--gold-mustard);
  margin: 0;
}
.testimonial-card p {
  color: var(--ink);
  font-size: 1.02rem;
  font-style: italic;
}
.testimonial-card footer {
  color: var(--maroon-700);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-section { background: var(--maroon-900); color: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-copy h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.contact-copy > p { color: rgba(251,243,227,0.85); font-size: 1.05rem; }
.contact-details { display: grid; gap: 14px; margin: 28px 0; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  font-weight: 700;
  padding: 12px 16px;
  background: rgba(251,243,227,0.06);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
a.contact-item:hover { background: rgba(251,243,227,0.14); }
.contact-item svg { color: var(--gold-mustard); flex-shrink: 0; }
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251,243,227,0.08);
  border-radius: 50%;
  color: var(--gold-light);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-links a:hover { background: var(--gold-mustard); color: var(--maroon-900); transform: translateY(-3px); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.contact-map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-900); border-top: 1px solid rgba(251,243,227,0.12); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  color: rgba(251,243,227,0.7);
  font-size: 0.9rem;
}
.back-to-top { color: var(--gold-light); font-weight: 700; }

/* ---------- Mobile order bar ---------- */
.mobile-order-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  background: linear-gradient(135deg, var(--gold-mustard), var(--gold-crown));
  color: var(--maroon-900);
  font-weight: 800;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

/* ---------- Fade-in animation ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */
@media (max-width: 980px) {
  .about-grid, .delivery-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan-card-featured { transform: none; order: -1; }
}

@media (max-width: 760px) {
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--maroon-900);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(251,243,227,0.08); }
  .btn-order { text-align: center; justify-content: center; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .hero { min-height: 100vh; }
  .hero-content { padding-block: 60px; }

  .menu-grid { grid-template-columns: 1fr; }
  .delivery-list { grid-template-columns: 1fr; }

  .section { padding-block: 64px; }

  .mobile-order-bar { display: flex; }
  body { padding-bottom: 60px; }
}

@media (max-width: 480px) {
  .about-media-badge { padding: 12px 16px; right: 0; bottom: -16px; }
  .badge-num { font-size: 1.3rem; }
}
