/* ===========================================================
   Ambikaa — Home-cooked pure vegetarian tiffin delivery
   =========================================================== */

:root {
  --terracotta: #c8602c;
  --terracotta-dark: #a6481c;
  --saffron: #e8952f;
  --cream: #fdf6ec;
  --cream-deep: #f7ead5;
  --charcoal: #362a22;
  --brown-soft: #6b5644;
  --white: #ffffff;
  --border-soft: rgba(54, 42, 34, 0.1);

  --font-display: 'Fraunces', serif;
  --font-body: 'Poppins', sans-serif;

  --shadow-sm: 0 2px 10px rgba(54, 42, 34, 0.06);
  --shadow-md: 0 12px 30px rgba(54, 42, 34, 0.1);
  --shadow-lg: 0 20px 50px rgba(54, 42, 34, 0.16);

  --radius-md: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), var(--saffron));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--terracotta-dark);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 22px 0;
}
/* Solid header on scroll instead of backdrop-filter — a blurred ancestor
   shrinks position:fixed mobile nav to the header's own height */
.site-header.scrolled {
  background: rgba(253, 246, 236, 0.97);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal);
  flex-shrink: 0;
}
.site-header:not(.scrolled) .logo { color: var(--white); }
.logo-mark { width: 38px; height: 38px; }
.logo-text { letter-spacing: 0.5px; }

.main-nav {
  display: flex;
  gap: 34px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.site-header.scrolled .nav-link { color: var(--charcoal); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--saffron); }
.site-header.scrolled .nav-link:hover { color: var(--terracotta); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icons { display: flex; gap: 12px; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.site-header.scrolled .social-icon { color: var(--charcoal); }
.social-icon:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

/* Nav CTA needs its own padding — .main-nav a would otherwise strip it
   since it's a more specific selector than .btn alone */
.main-nav a.btn,
.header-actions a.btn {
  padding: 10px 22px;
}
.call-now { font-size: 0.9rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.site-header.scrolled .menu-toggle span { background: var(--charcoal); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(54,42,34,0.55) 0%, rgba(54,42,34,0.45) 40%, rgba(166,72,28,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: 90px;
  max-width: 780px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section headers ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.section-desc { color: var(--brown-soft); font-size: 1.05rem; }

/* ---------- Our Food ---------- */
.food-section { background: var(--cream); }
.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.food-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.food-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.food-card-img { aspect-ratio: 4/3; overflow: hidden; }
.food-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.food-card:hover .food-card-img img { transform: scale(1.08); }
.food-card-body { padding: 22px 20px 26px; }
.food-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.food-card-body p { font-size: 0.92rem; color: var(--brown-soft); }

/* ---------- Weekly Menu ---------- */
.menu-section { background: var(--cream-deep); }
.menu-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.menu-table { width: 100%; border-collapse: collapse; }
.menu-table thead {
  background: linear-gradient(135deg, var(--terracotta), var(--saffron));
}
.menu-table th {
  text-align: left;
  color: var(--white);
  font-weight: 600;
  padding: 18px 24px;
  font-size: 0.95rem;
}
.menu-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
  color: var(--charcoal);
}
.menu-table tbody tr:last-child td { border-bottom: none; }
.menu-table tbody tr { transition: background 0.2s ease; }
.menu-table tbody tr:hover { background: var(--cream); }
.day-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--terracotta-dark);
  font-weight: 600;
  font-size: 0.85rem;
}
.menu-table td:last-child { font-weight: 600; color: var(--terracotta-dark); }
.menu-note {
  text-align: center;
  margin-top: 22px;
  color: var(--brown-soft);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--cream); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.6;
}
.testimonial-card blockquote {
  color: var(--brown-soft);
  font-size: 0.98rem;
  margin-bottom: 24px;
  min-height: 100px;
}
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card figcaption img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.reviewer-name {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
}
.reviewer-role {
  display: block;
  font-size: 0.8rem;
  color: var(--terracotta);
}

/* ---------- About Founder ---------- */
.about-section { background: var(--cream-deep); }
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-content p {
  color: var(--brown-soft);
  margin-bottom: 18px;
  font-size: 1rem;
}
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--terracotta-dark);
  border-left: 4px solid var(--terracotta);
  padding-left: 22px;
  margin-top: 28px;
  line-height: 1.5;
}

/* ---------- Service Info ---------- */
.service-section { background: var(--cream); padding-bottom: 60px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.service-card {
  text-align: center;
  padding: 34px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--saffron));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.service-card p { color: var(--brown-soft); font-size: 0.9rem; }
.service-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--brown-soft);
  opacity: 0.8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding-top: 70px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand .tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--saffron);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.footer-brand .social-icon { color: rgba(255,255,255,0.8); }
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.footer-list li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-list a { transition: color 0.2s ease; }
.footer-list a:hover { color: var(--saffron); }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.15);
}
.map-embed iframe {
  width: 100%;
  height: 150px;
  border: 0;
  display: block;
}
.hygiene-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.hygiene-badge svg { color: var(--saffron); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Mobile call FAB ---------- */
.mobile-call-fab {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--saffron));
  color: var(--white);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,96,44,0.5), var(--shadow-lg); }
  70% { box-shadow: 0 0 0 14px rgba(200,96,44,0), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(200,96,44,0), var(--shadow-lg); }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { color: var(--charcoal); font-size: 1.15rem; }
  .header-actions .social-icons { display: none; }
  .menu-toggle { display: flex; }
  .call-now { padding: 9px 16px; font-size: 0.85rem; }
  .mobile-call-fab { display: flex; }
}

@media (max-width: 700px) {
  section { padding: 70px 0; }
  .food-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { padding-top: 70px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .menu-table thead { display: none; }
  .menu-table tbody tr {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
  }
  .menu-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: none;
    font-size: 0.9rem;
  }
  .menu-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--terracotta-dark);
    margin-right: 12px;
  }
  .menu-table td[data-label="Menu"] { flex-direction: column; align-items: flex-start; }
  .menu-table td[data-label="Menu"]::before { margin-bottom: 4px; }
}
