/* ==========================================================================
   Kridha Tiffin Service — stylesheet
   Palette: warm orange/gold + cream/maroon, matching the tiffin-poster branding
   ========================================================================== */

:root {
  --cream: #f6ecd9;
  --cream-light: #fdf8ef;
  --maroon: #8a1f1f;
  --maroon-dark: #5e1414;
  --red: #b5251f;
  --gold: #e8a13d;
  --gold-light: #f4c869;
  --orange: #e07b2a;
  --ink: #3a2418;
  --ink-soft: #6b5647;
  --white: #ffffff;

  --font-display: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 6px 20px rgba(90, 40, 20, 0.12);
  --shadow-strong: 0 12px 32px rgba(90, 40, 20, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-light);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--maroon);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--maroon); text-decoration: none; }
a:hover, a:focus-visible { color: var(--red); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4.5rem 0; }
.section-lede { color: var(--ink-soft); max-width: 640px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--maroon);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--maroon-dark);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover, .btn-primary:focus-visible {
  color: var(--maroon-dark);
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  background: transparent;
  border-color: var(--maroon);
  color: var(--maroon);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--maroon);
  color: var(--white);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Blur lives on a separate non-ancestor layer so it doesn't become the
   containing block for the fixed mobile nav panel (see .main-nav below). */
.site-header-bg {
  position: absolute;
  inset: 0;
  background: rgba(246, 236, 217, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 31, 31, 0.12);
  z-index: -1;
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-badge { border-radius: 4px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--maroon);
  font-size: 1.05rem;
}
.brand-tagline {
  font-size: 0.7rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Scoped to exclude .btn so the CTA's own padding governs it, not this rule */
.main-nav a:not(.btn) {
  padding: 0.4rem 0;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover,
.main-nav a:not(.btn):focus-visible {
  color: var(--maroon);
  border-bottom-color: var(--gold);
}

.nav-cta { white-space: nowrap; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--gold-light) 60%, var(--orange) 130%);
  text-align: center;
  padding: 3.5rem 0 3rem;
}

.hero-badge {
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  margin: 0 auto 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--maroon-dark);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--maroon);
}

.hero-intro {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 0;
  margin: 0;
  font-weight: 600;
  color: var(--maroon-dark);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* ==========================================================================
   Menu section
   ========================================================================== */

.menu-section { background: var(--cream-light); }

.featured-curry-card {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border-radius: var(--radius);
  padding: 1.75rem;
  color: var(--maroon-dark);
  box-shadow: var(--shadow-soft);
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.featured-curry-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--cream);
}

.featured-curry-card .curry-date {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.featured-curry-card h3 {
  color: var(--maroon-dark);
  margin: 0.15em 0 0.3em;
  font-size: 1.5rem;
}

.curry-sizes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 700;
}
.curry-sizes li {
  background: rgba(255, 255, 255, 0.6);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  font-size: 0.9rem;
}

.loading-note { color: var(--maroon-dark); font-style: italic; }

.menu-note {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: var(--white);
  border: 1px solid rgba(138, 31, 31, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.menu-card-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5em 0;
  border-bottom: 1px dashed rgba(138, 31, 31, 0.18);
}
.price-list li:last-child { border-bottom: none; }
.price-list .price {
  font-weight: 700;
  color: var(--maroon);
  white-space: nowrap;
}

.favourites-heading { margin-top: 3rem; }

.favourites-scroller {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
}

.favourite-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 160px;
  text-align: center;
}
.favourite-item img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.5rem;
}
.favourite-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Combos
   ========================================================================== */

.combos-section { background: var(--cream); }

.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.combo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
}

.combo-card-featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--white), var(--cream));
}

.combo-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--red);
  font-weight: 700;
  margin: 0.2em 0;
}

.beverages-heading { margin-top: 1rem; }
.beverages-card { max-width: 640px; }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-section { background: var(--cream-light); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75em 0;
  border-bottom: 1px dashed rgba(138, 31, 31, 0.18);
}
.contact-list li:last-child { border-bottom: none; }

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 700;
}

.social-links a { margin-right: 0.25rem; }

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.map-link {
  align-self: flex-start;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--maroon-dark);
  color: var(--cream);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.footer-brand .brand-name { color: var(--cream); }
.footer-brand img { border-radius: 3px; }

.footer-social, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-social a, .footer-contact a, .footer-contact span {
  color: var(--cream);
  opacity: 0.9;
}
.footer-social a:hover, .footer-contact a:hover { opacity: 1; color: var(--gold-light); }

.footer-copyright {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 236, 217, 0.15);
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .featured-curry-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .featured-curry-card img { margin: 0 auto; }
  .curry-sizes { justify-content: center; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    top: var(--header-h, 72px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--cream-light);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(138, 31, 31, 0.1);
  }

  .nav-cta { text-align: center; }
}

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  h2 { font-size: 1.6rem; }
}
