/* ============================================================
   Mrs.Baker — mrsbaker.in
   Design system: youthful pastel — Aqua + Lavender + Blush
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals */
  --bg:         #fffdf8;   /* dominant warm off-white */
  --bg-2:       #f7f5ef;   /* subtle section separation */
  --paper:      #ffffff;   /* pure white for occasional lift */
  --ink:        #263238;   /* primary text (deep charcoal) */
  --ink-soft:   #667085;   /* secondary text */
  --line:       #e7e3dd;   /* subtle border */

  /* Aqua — primary */
  --aqua:       #83ccd2;   /* CTAs, key accents, shapes */
  --aqua-light: #a9e8e8;   /* soft fills, hovers */
  --aqua-tint:  #eaf8f8;   /* aqua card bg */
  --aqua-deep:  #5cb7bf;   /* button hover */
  --aqua-ink:   #147079;   /* accessible aqua text/links */

  /* Lavender — secondary */
  --lav:        #d2ccf2;
  --lav-deep:   #beb9e2;
  --lav-tint:   #f1effb;   /* lavender card bg */
  --lav-ink:    #5b52a6;   /* accessible lavender text */

  /* Blush — accent / personality */
  --blush:      #e8b7ca;
  --blush-tint: #fbeff3;   /* blush card / section bg */
  --blush-ink:  #b1567a;   /* accessible blush text */

  /* Yellow — occasional spark only */
  --yellow:     #f5e29e;

  /* Functional */
  --wa:         #25d366;
  --wa-deep:    #128c7e;

  /* Type */
  --font-logo: "Berlin Sans FB Demi Bold", "Berlin Sans FB Demi", "Berlin Sans FB", "Baloo 2", "Poppins", system-ui, sans-serif;   /* logo wordmark */
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Fraunces", Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Radius / shadow */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-sm: 0 2px 12px rgba(38,50,56,.05);
  --shadow-md: 0 12px 32px rgba(38,50,56,.08);
  --shadow-lg: 0 26px 60px rgba(38,50,56,.12);

  --wrap: 1160px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* Type scale */
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.18rem; font-weight: 600; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--aqua-ink); margin-bottom: var(--s-3);
}
.muted { color: var(--ink-soft); }
.accent { color: var(--aqua-ink); }
.eyebrow-sub {
  display: block; margin-top: 5px;
  text-transform: none; letter-spacing: .01em;
  font-weight: 500; font-size: .74rem; color: var(--ink-soft);
}
/* Hero kicker — tagline and credit line share the lede size */
.hero-copy .eyebrow { font-size: 1.12rem; letter-spacing: .02em; line-height: 1.3; white-space: normal; margin-bottom: var(--s-4); }
.hero-copy .eyebrow-sub { font-size: 1.12rem; margin-top: 6px; letter-spacing: normal; white-space: normal; }
/* On phones, scale the kicker down so it stays proportionate (desktop unchanged) */
@media (max-width: 768px) {
  .hero-copy .eyebrow,
  .hero-copy .eyebrow-sub { font-size: clamp(0.8rem, 3.4vw, 1rem); }
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: var(--r-pill);
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }
.btn-primary:hover { background: var(--aqua-deep); border-color: var(--aqua-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--lav-deep); }
.btn-ghost:hover { background: var(--lav-tint); border-color: var(--lav); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--aqua); color: var(--ink);
  text-align: center; font-size: .82rem; font-weight: 500; letter-spacing: .01em;
  padding: 9px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-family: var(--font-logo); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-wordmark { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: var(--s-5); }
.nav a { font-weight: 500; font-size: .96rem; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--aqua); transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.btn-order { padding: 10px 22px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 560px; height: 560px; right: -180px; top: -160px;
  background: radial-gradient(circle at center, var(--aqua-light), transparent 68%);
  opacity: .55; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 420px; height: 420px; left: -160px; bottom: -180px;
  background: radial-gradient(circle at center, var(--lav), transparent 68%);
  opacity: .45; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.hero-copy h1 { margin-bottom: var(--s-5); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; margin-bottom: var(--s-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 30px 30px 30px 84px;
  box-shadow: var(--shadow-md);
  position: relative; z-index: 1;
}
.hero-media::before {
  content: ""; position: absolute; z-index: 0;
  inset: 24px -24px -24px 24px;
  background: linear-gradient(135deg, var(--aqua-light), var(--lav));
  border-radius: 30px 30px 30px 84px;
}
.hero-media::after {
  content: ""; position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blush); left: -16px; top: -16px;
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: var(--s-5) var(--s-4); text-align: center; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.trust-item span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Section heads ---------- */
.section-head { max-width: 40rem; margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-4); }
.menu-note { color: var(--ink-soft); text-wrap: balance; }

/* ---------- What we bake (product cards) ---------- */
.bakes { padding: clamp(56px, 8vw, 104px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.prod-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prod-card:nth-child(1) { background: var(--aqua-tint); border-color: #d3eef0; }
.prod-card:nth-child(2) { background: var(--lav-tint); border-color: #e3dff7; }
.prod-card:nth-child(3) { background: var(--blush-tint); border-color: #f4dde6; }
.prod-icon { font-size: 1.9rem; margin-bottom: var(--s-3); }
.prod-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.prod-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: var(--s-4); }
.prod-from { font-weight: 600; color: var(--ink-soft); font-size: .9rem; margin-bottom: var(--s-5); }
.prod-from strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.prod-card .btn { margin-top: auto; align-self: flex-start; background: var(--bg); }
.prod-card .btn-ghost:hover { background: #fff; }

/* ---------- Story (device-adaptive illustration) ---------- */
.story { padding: clamp(56px, 8vw, 104px) 0; }
.story-picture { display: block; }
.story-illustration {
  display: block; width: 100%; height: auto;
  max-width: 1040px; margin-inline: auto;
  border-radius: 20px; box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .story-illustration { max-width: 480px; border-radius: 16px; }
}

/* ---------- Menu ---------- */
.menu { padding: clamp(56px, 8vw, 104px) 0; }
.pill { display: none; }

.menu-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); }
.tab {
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  padding: 9px 20px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1.5px solid var(--line); color: var(--ink-soft);
  cursor: pointer; transition: .18s;
}
.tab:hover { border-color: var(--aqua); color: var(--ink); }
.tab.is-active { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }

.panel { display: none; animation: fade .35s ease; }
.panel.is-active { display: block; }
.panel-tagline {
  font-family: var(--font-accent); font-style: italic; font-size: 1.3rem;
  color: var(--aqua-ink); margin-bottom: var(--s-5);
}
.items { display: grid; gap: 2px; }
.item {
  display: flex; gap: var(--s-5); align-items: baseline; justify-content: space-between;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
}
.item-main h3 { margin-bottom: 3px; }
.item-main p { color: var(--ink-soft); font-size: .95rem; max-width: 44em; }
.tag {
  font-family: var(--font-body); font-size: .64rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; vertical-align: middle; margin-left: 8px;
  background: var(--lav-tint); color: var(--lav-ink); padding: 3px 9px; border-radius: var(--r-pill);
}
.item-price { text-align: right; white-space: nowrap; flex-shrink: 0; }
.item-price .p1 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--ink); }
.item-price .p2 { display: block; font-size: .74rem; color: var(--aqua-ink); margin-top: 1px; }
.item-price .unit { font-size: .76rem; color: var(--ink-soft); margin-left: 4px; }

.menu-foot { text-align: center; margin-top: var(--s-7); }
.menu-foot p { color: var(--ink-soft); margin-bottom: var(--s-4); }

/* ---------- Testimonials ---------- */
.reviews { padding: clamp(56px, 8vw, 104px) 0; background: var(--blush-tint); }
.reviews .eyebrow { color: var(--blush-ink); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.review-card {
  margin: 0; display: flex; flex-direction: column; gap: var(--s-4);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-card blockquote { margin: 0; color: var(--ink); font-size: .97rem; line-height: 1.62; }
.review-card blockquote::before {
  content: "\201C"; font-family: var(--font-accent); font-weight: 600;
  color: var(--blush); font-size: 1.7rem; line-height: 0;
  margin-right: 3px; vertical-align: -.35em;
}
.review-card figcaption {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
  font-weight: 600; color: var(--ink); font-size: .95rem;
}
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  background: var(--aqua-light);
}
.review-card:nth-child(3n+2) .review-avatar { background: var(--lav); }
.review-card:nth-child(3n) .review-avatar { background: var(--blush); }

/* ---------- How it works ---------- */
.how { padding: clamp(56px, 8vw, 104px) 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.step { padding: var(--s-6); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--aqua); color: var(--ink);
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: var(--s-4);
}
.step:nth-child(2) .step-n { background: var(--lav); }
.step:nth-child(3) .step-n { background: var(--blush); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 8vw, 104px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  padding: var(--s-5) 40px var(--s-5) 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--aqua-ink); transition: transform .25s;
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--ink-soft); padding-bottom: var(--s-5); max-width: 60ch; }

/* UPI payment block */
.pay {
  display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap;
  margin: 0 0 var(--s-5); padding: var(--s-5);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  max-width: 480px;
}
.pay-qr {
  width: 148px; height: 148px; flex-shrink: 0;
  background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 12px;
}
.pay-info { display: grid; gap: 3px; }
.pay-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-ink); font-weight: 700; }
.pay-name { font-weight: 600; color: var(--ink); }
.pay-id { font-weight: 600; color: var(--ink); }
.pay-note { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; max-width: 22em; }

/* ---------- Contact (aqua-led CTA) ---------- */
.contact { padding: clamp(56px, 8vw, 104px) 0; }
.contact-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s-8); align-items: center;
  background: linear-gradient(135deg, var(--aqua) 0%, var(--aqua-light) 100%);
  color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 64px); box-shadow: var(--shadow-md);
}
.contact-inner::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--lav), transparent 70%);
  right: -80px; bottom: -120px; opacity: .55; pointer-events: none;
}
.contact-copy, .contact-list { position: relative; z-index: 1; }
.contact-copy h2 { margin-bottom: var(--s-4); }
.contact-copy p { color: #2a4045; margin-bottom: var(--s-6); max-width: 30em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.contact-inner .btn-primary { background: var(--wa); color: #04361f; border-color: var(--wa); }
.contact-inner .btn-primary:hover { background: #1fbf5b; border-color: #1fbf5b; }
.contact-inner .btn-ghost { color: var(--ink); border-color: var(--ink); }
.contact-inner .btn-ghost:hover { background: var(--ink); color: #fff; }
.contact-list { display: grid; gap: var(--s-4); }
.contact-list li { display: grid; gap: 2px; padding-bottom: var(--s-4); border-bottom: 1px solid rgba(38,50,56,.16); }
.contact-list span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-ink); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer (deep charcoal) ---------- */
.site-footer { background: var(--ink); color: #cfd6da; padding-top: var(--s-8); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer-brand { max-width: 30em; }
.footer-logo { width: 52px; margin-bottom: var(--s-4); background: #fff; padding: 7px; border-radius: 12px; }
.footer-brand p { color: #9aa4aa; font-size: .92rem; }
.footer-links, .footer-social { display: grid; gap: var(--s-3); align-content: start; }
.footer-links a, .footer-social a { color: #cfd6da; font-size: .94rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--aqua-light); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s-4) var(--s-6);
  font-size: .82rem; color: #8b959b;
}

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(18,140,126,.4);
  transition: transform .2s ease;
}
.fab-wa:hover { transform: scale(1.08); }

/* ---------- Animations ---------- */
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Testimonials carousel (mobile) ---------- */
.review-dots { display: none; }
@media (max-width: 768px) {
  .review-viewport { overflow: hidden; }
  .review-grid {
    display: flex; grid-template-columns: none; gap: 0;
    transition: transform .55s ease; will-change: transform;
  }
  .review-card { flex: 0 0 100%; min-width: 100%; }
  .review-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--s-6); }
  .review-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
    background: var(--lav); cursor: pointer; transition: width .25s ease, background .25s ease;
  }
  .review-dots button.active { width: 22px; background: var(--aqua); }
}

/* ---------- Responsive ---------- */
/* Collapse the (long) nav to a menu button before it can crowd the logo/CTA */
@media (max-width: 1040px) {
  .nav, .header-inner > .btn-order { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-4) 24px var(--s-6); gap: var(--s-4);
  }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero-media { order: -1; max-width: 460px; margin-bottom: var(--s-5); }
  .story-inner { grid-template-columns: 1fr; }
  .story-media { order: -1; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-left: 0; }
  .prod-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .item { flex-direction: column; gap: 4px; }
  .item-price { text-align: left; }
  .hero-cta .btn, .contact-actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--aqua-ink); outline-offset: 3px; border-radius: 4px;
}
