/* Govindam shared styles: tokens, nav, buttons, inner pages, forms, bedrock footer. */
:root {
  color-scheme: light;
  --cream: #FFF4DF; --sky: #F8F0DF; --paper: #FAE9C8; --sand: #F1D9AA; --earth: #7A4A2A; --soil: #4A2A18;
  --ink: #3A1A10; --ink-2: #76513F; --rule: #E8D6B6;
  --red: #E51C2B; --red-ink: #B5121D; --gold: #F4BE2E; --white: #FFFFFF;
  --bg: var(--cream); --fg: var(--ink); --fg-2: var(--ink-2); --line: var(--rule);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Mukta", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-press: 120ms; --t-hover: 240ms; --t-state: 400ms; --t-roll: 520ms;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1360px;
  --r-lg: 28px; --r-md: 20px; --r-sm: 12px;
  --nav-h: 76px;
}
html.is-red { --bg: var(--red); --fg: var(--white); --fg-2: #FFE3E5; --line: #F2707A; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color 700ms var(--ease-in-out), color 700ms var(--ease-in-out); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
html.is-red :focus-visible { outline-color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top var(--t-state) var(--ease-out); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1; margin: 0; text-wrap: pretty; }
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; font: 600 17px/1 var(--sans);
  text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; cursor: pointer; border: 1.5px solid var(--red); background: var(--red); color: var(--white);
  transition: transform var(--t-press) var(--ease-out-soft), color var(--t-hover) var(--ease-out-soft), border-color var(--t-hover) var(--ease-out-soft); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform var(--t-roll) var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover, .btn.ghost:focus-visible { color: var(--cream); }
.btn.light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.light:hover, .btn.light:focus-visible { color: var(--cream); border-color: var(--ink); }
.btn.sm { height: 46px; padding: 0 20px; font-size: 15px; }
.btn .ico { width: 20px; height: 20px; flex: none; }
.roll { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2; }
.roll > span { display: block; transition: transform var(--t-roll) var(--ease-out); }
.roll > span::after { content: attr(data-text); display: block; }
a:hover .roll > span, button:hover .roll > span, a:focus-visible .roll > span, button:focus-visible .roll > span { transform: translateY(-50%); }
.link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1.5px no-repeat; transition: background-size var(--t-roll) var(--ease-out); }
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding-top: env(safe-area-inset-top, 0px); transition: transform 600ms var(--ease-out); }
.nav.is-hidden { transform: translateY(-100%); }
.nav > .wrap { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.nav-bg { position: absolute; inset: 0; background: var(--bg); opacity: 0; border-bottom: 1px solid var(--line); transition: opacity var(--t-state) var(--ease-out-soft), background-color 700ms var(--ease-in-out), border-color 700ms var(--ease-in-out); }
.nav.is-scrolled .nav-bg, .inner .nav .nav-bg { opacity: 1; }
.brand { display: block; width: 112px; flex: none; }
.brand img { width: 100%; height: auto; }
.nav-links { display: flex; gap: 30px; font-weight: 500; font-size: 16px; }
.nav-links a { text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-end { display: flex; align-items: center; gap: 12px; }
html.is-red .nav .btn { background: var(--white); color: var(--red); border-color: var(--white); }
html.is-red .nav .btn:hover { color: var(--white); border-color: var(--ink); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; position: relative; }
.menu-btn span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform var(--t-state) var(--ease-out); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 28px; display: grid; gap: 4px; }
.menu[hidden] { display: none; }
.menu a:not(.btn) { font-family: var(--serif); font-size: 2rem; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.menu .btn { margin-top: 18px; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-block; }
  .brand { width: 92px; }
}
@media (max-width: 520px) { .nav-end .btn.sm { display: none; } }

/* ---------- Inner page header: a slice of the underground ---------- */
.page-head { position: relative; padding: calc(var(--nav-h) + clamp(48px, 8vw, 120px)) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; background: var(--sand); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/assets/v2/bg-soil.jpg) center 22% / cover no-repeat; }
.page-head::after { content: ""; position: absolute; inset: 16% max(4%, calc(50% - 560px)) 10%; z-index: -1; background: var(--cream); border-radius: 999px; opacity: .94; }
.page-head .wrap { position: relative; text-align: center; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.page-head p.lead { margin: 18px auto 0; max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); }
.section { padding-block: clamp(80px, 10vw, 150px); }
.section.tight { padding-block: clamp(56px, 7vw, 100px); }
.section.paper { background: var(--paper); }
.section h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.prose { max-width: 66ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin: 0 0 18px; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin: 36px 0 8px; color: var(--ink); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* ---------- Product rows (/ghee) ---------- */
.packs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pack { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.pack img { width: 100%; height: auto; transition: transform 900ms var(--ease-out); }
.pack:hover img { transform: translateY(-6px) rotate(-2deg); }
.pack h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.pack p { margin: 8px 0 0; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 700px) { .pack { grid-template-columns: 96px minmax(0, 1fr); } .pack .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Spec table ---------- */
.spec h3 { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.spec dl { margin: 0; }
.spec .row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
.spec .row.sub dt { padding-left: 20px; color: var(--ink-2); }
.spec .row.strong { font-weight: 700; }
.spec dt, .spec dd { margin: 0; }
.spec dd { font-variant-numeric: tabular-nums; }
.spec .note { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.care { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; color: var(--ink-2); }
.care li { padding-left: 22px; position: relative; }
.care li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Steps (/how-its-made) ---------- */
.steps-long { counter-reset: s; display: grid; gap: clamp(72px, 9vw, 140px); }
.step-long { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.step-long:nth-child(even) .frame { order: 2; }
.step-long .num { font-weight: 600; letter-spacing: .12em; color: var(--red); font-size: 14px; }
.step-long h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin: 8px 0 14px; }
.step-long p { color: var(--ink-2); max-width: 46ch; margin: 0 0 12px; }
@media (max-width: 860px) { .step-long { grid-template-columns: 1fr; } .step-long:nth-child(even) .frame { order: 0; } }
.frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--paper); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); }

/* ---------- Recipe cards and pages ---------- */
.recipe-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.recipe-card { grid-column: span 4; text-decoration: none; display: grid; gap: 14px; }
.recipe-card:nth-child(1), .recipe-card:nth-child(5) { grid-column: span 7; }
.recipe-card:nth-child(2), .recipe-card:nth-child(6) { grid-column: span 5; }
.recipe-card:nth-child(3), .recipe-card:nth-child(4) { grid-column: span 6; }
.recipe-card .frame { aspect-ratio: 3 / 2; }
.recipe-card .frame img { transition: transform 900ms var(--ease-out); }
.recipe-card:hover .frame img, .recipe-card:focus-visible .frame img { transform: scale(1.04); }
.recipe-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; margin: 0; }
.recipe-card p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .recipe-card, .recipe-card:nth-child(n) { grid-column: 1 / -1; } }
.recipe-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 22px; font-weight: 600; color: var(--ink-2); }
.recipe-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.recipe-body h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 18px; }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ingredients li.ghee { font-weight: 700; color: var(--ink); }
.method { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 22px; }
.method li { counter-increment: m; position: relative; padding-left: 56px; color: var(--ink-2); }
.method li::before { content: counter(m); position: absolute; left: 0; top: -4px; font-family: var(--serif); font-size: 2rem; color: var(--red); line-height: 1; }
.tip { margin-top: 36px; padding: 22px 24px; border-radius: var(--r-md); background: var(--paper); }
.tip strong { color: var(--ink); }
@media (max-width: 860px) { .recipe-body { grid-template-columns: 1fr; } }

/* ---------- Bulk ---------- */
.buyers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.buyers > div { padding: 28px 28px 0 0; }
.buyers > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.buyers h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 0 0 10px; }
.buyers p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .buyers { grid-template-columns: 1fr; } .buyers > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } .buyers > div { padding-bottom: 24px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--fg); background: transparent; color: inherit; font: 500 17px var(--sans); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-2); opacity: .9; }
.form .status { min-height: 1.6em; margin: 0; font-weight: 600; }
.form .status.ok { color: #2E7D32; }
.form .status.err { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip label { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--fg); font-weight: 600; cursor: pointer; transition: background-color var(--t-hover) var(--ease-out-soft), color var(--t-hover) var(--ease-out-soft); }
.chip input:checked + label { background: var(--fg); color: var(--bg); }
.chip input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (max-width: 640px) { .form .grid2 { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; color: var(--red); transition: transform var(--t-state) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; max-width: 62ch; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-lines { display: grid; gap: 4px; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--red); }
.map { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Bedrock footer ---------- */
.bedrock { position: relative; color: #F7E7C8; background: #3B2316 url(/assets/v2/bg-bedrock.jpg) center top / cover no-repeat; padding: clamp(110px, 14vw, 200px) 0 32px; overflow: hidden; }
.bedrock::before { content: ""; position: absolute; inset: 0; background: rgba(30, 16, 9, .35); }
.bedrock .wrap { position: relative; }
.foot-logo { width: min(340px, 64vw); height: auto; margin: 0 auto clamp(48px, 6vw, 80px); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr .9fr; gap: 32px; padding-top: 28px; border-top: 1px solid rgba(247, 231, 200, .4); }
.foot-grid h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.foot-grid p { margin: 0; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 56px; font-size: 14px; color: rgba(247, 231, 200, .8); }
.fine a { text-decoration: none; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal helpers (JS adds motion; content is visible without it) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
