/* ===================================================
   The Indian Apron — base styles, tokens, resets
   =================================================== */

:root {
  --orange: #E8823C;
  --orange-dark: #C96A2A;
  --cream: #FBF3E7;
  --cream-2: #F5E9D8;
  --navy: #1F3A5F;
  --navy-light: #33507A;
  --gold: #D9A93E;
  --white: #FFFDF9;
  --text: #2B2622;
  --text-soft: #5A5248;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, Segoe UI, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 8px 24px rgba(31, 58, 95, 0.08);
  --shadow-card: 0 4px 14px rgba(31, 58, 95, 0.1);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

p { margin: 0 0 1em; color: var(--text-soft); }

a { color: var(--navy); text-decoration: none; }

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

.sr-only {
  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(--navy);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 1000;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  border-radius: 6px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-block;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--orange-dark); }

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

/* ===================== Logo badge ===================== */

.logo-badge {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.logo-badge svg { display: block; }
.logo-badge img {
  display: block;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-badge-lg {
  width: 120px;
  height: 120px;
  margin-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
}

/* backdrop-filter lives on this non-ancestor sibling layer, not on .site-header itself,
   so it never becomes the containing block for the fixed mobile nav panel. */
.site-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 243, 231, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 58, 95, 0.08);
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* :not(.btn) keeps this from overriding the CTA button's own padding
   (element+class selector would otherwise beat the single .btn class). */
.main-nav a:not(.btn) {
  padding: 0.4rem 0;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:not(.btn):hover,
.main-nav a:not(.btn):focus-visible {
  border-bottom-color: var(--orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s 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 {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 3.5rem 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 3rem;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-style: italic;
}
.hero-lede { font-size: 1.05rem; max-width: 46ch; }
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0 auto;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.92rem;
  max-width: 1180px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.trust-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

/* ===================== Sections ===================== */

.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  font-style: italic;
}
.section-title-left { text-align: left; }

.section-sub {
  text-align: center;
  color: var(--text-soft);
  margin-top: -0.4rem;
  margin-bottom: 2.5rem;
}

.subsection-title {
  font-size: 1.3rem;
  margin-top: 2.5rem;
}

/* ===================== Menu table ===================== */

.menu-table-wrap {
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}
.menu-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 480px;
}
.menu-table th, .menu-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-2);
}
.menu-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
}
.menu-table tbody th {
  color: var(--orange-dark);
  font-weight: 600;
  white-space: nowrap;
}
.menu-table tbody tr:last-child td,
.menu-table tbody tr:last-child th { border-bottom: none; }

.menu-note {
  text-align: center;
  font-style: italic;
  color: var(--text-soft);
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.weekend-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 0;
}
.weekend-callout p { margin: 0; }
.weekend-icon { font-size: 2rem; }

/* ===================== Card grids (snacks) ===================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.snack-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.snack-card:hover { transform: translateY(-4px); }
.snack-card img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}
.snack-card p {
  margin: 0;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}

/* ===================== Catering ===================== */

.catering-grid, .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.catering-media img, .about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.75rem;
}
.pill-list li {
  background: var(--cream-2);
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.4em 1em;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-grid img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.gallery-grid img:hover { transform: scale(1.03); }

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

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-list p { margin: 0; }
.contact-icon { font-size: 1.4rem; line-height: 1; }

.map-placeholder {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.map-placeholder iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}
.map-link {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
}
.map-link:hover { background: var(--navy-light); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.form-note {
  font-size: 0.88rem;
  background: var(--cream-2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--cream-2);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--orange);
  outline: none;
}
.contact-form .btn { align-self: flex-start; }
.form-status {
  margin: 0;
  font-weight: 600;
  color: var(--orange-dark);
  min-height: 1.2em;
}

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

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand .brand-name { color: var(--cream); }
.footer-social a, .footer-contact a {
  color: var(--cream);
  font-weight: 500;
}
.footer-social a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-contact { display: flex; gap: 1.25rem; }
.footer-copyright {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(251, 243, 231, 0.7);
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 243, 231, 0.15);
}

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

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .catering-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .catering-media { order: -1; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

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

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 2rem 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: 1.25rem;
    width: 100%;
  }
  .main-nav a:not(.btn) {
    display: block;
    font-size: 1.1rem;
  }
  .main-nav .btn { width: 100%; text-align: center; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr 1fr; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .contact-form-wrap { padding: 1.5rem; }
}
