/* Ekadanta Herbals — shared styles */
:root {
  --moss: #1F2B20;
  --moss-2: #26352A;
  --fern: #3D4F35;
  --paper: #E3E5D8;
  --paper-2: #D6D9C8;
  --saffron: #C4862B;
  --saffron-soft: #E2B46A;
  --kumkum: #8A2B1E;
  --ink: #161813;
  --muted: #5B6452;
  --line: rgba(22, 24, 19, .16);
  --line-dark: rgba(227, 229, 216, .18);

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  /* modular scale 1.333 */
  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-md: 1.375rem;
  --t-lg: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-xl: clamp(2.4rem, 1.4rem + 4.2vw, 4.75rem);
  --t-xxl: clamp(2.8rem, 1.4rem + 5.2vw, 6.75rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::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(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.deva { font-family: var(--deva); font-weight: 400; line-height: 1.1; }
.on-dark .lede, .on-dark .muted, .on-fern .lede, .hero .lede { color: rgba(227, 229, 216, .78); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.5em; border-radius: 999px;
  border: 1px solid currentColor; background: transparent;
  text-decoration: none; font-weight: 500; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-oil { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.btn-oil:hover { background: var(--saffron-soft); border-color: var(--saffron-soft); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn-line:hover { background: var(--paper); color: var(--moss); border-color: var(--paper); }
.btn svg { width: 1.1em; height: 1.1em; }
.text-link { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--saffron); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--paper);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.site-header.is-solid { background: rgba(31, 43, 32, .94); backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-light:not(.is-solid) { color: var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--body); font-size: .7rem; letter-spacing: .14em; opacity: .7; margin-top: 3px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; opacity: .85; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: .6em 1.1em; font-size: .9rem; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 0 0; background: var(--moss); color: var(--paper);
    flex-direction: column; gap: 0; padding: 24px var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-links a { display: block; font-family: var(--display); font-size: 2rem; padding: 12px 0; border-bottom: 1px solid var(--line-dark); opacity: 1; }
  .menu-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .menu-open .site-header { background: var(--moss); color: var(--paper); }
  .nav-cta .btn-line { display: none; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 11vw, 160px); }
.on-dark { background: var(--moss); color: var(--paper); }
.on-fern { background: var(--fern); color: var(--paper); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 760px; }

/* ---------- hero (home) ---------- */
.hero {
  min-height: 100svh; display: grid; align-items: end;
  background: var(--moss); color: var(--paper);
  padding: 120px 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.hero-word {
  position: absolute; top: 88px; left: 50%; transform: translateX(-50%);
  font-size: clamp(6rem, 22vw, 22rem); color: var(--moss-2);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 12px; }
.hero h1 { font-size: var(--t-xxl); line-height: .95; margin-bottom: 28px; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { position: relative; z-index: 1; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px 4px 4px; }
.hero-figure figcaption { margin-top: 14px; font-size: var(--t-sm); opacity: .7; display: flex; justify-content: space-between; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; padding: 28px 0 0; margin: 40px 0 0; border-top: 1px solid var(--line-dark); font-size: var(--t-sm); opacity: .8; }

@media (max-width: 860px) {
  .hero { align-items: start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; }
  .hero-word { top: 70px; }
}

/* ---------- process (pinned sequence) ---------- */
.process { background: var(--paper); }
.process-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.process-visual { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.process-visual .vessel {
  width: min(100%, 460px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--saffron-soft) 0%, var(--saffron) 38%, #7A4E14 72%, var(--moss) 100%);
  position: relative; overflow: hidden;
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, .35);
}
.vessel-stage { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--paper); opacity: 0; transition: opacity .6s var(--ease); padding: 18%; }
.vessel-stage.is-active { opacity: 1; }
.vessel-stage .deva { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.vessel-stage small { display: block; font-size: var(--t-sm); opacity: .85; margin-top: 8px; }
.process-steps { list-style: none; margin: 0; padding: 30vh 0; counter-reset: step; }
.process-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; counter-increment: step; opacity: .35; transition: opacity .5s var(--ease); }
.process-step.is-active { opacity: 1; }
.process-step::before { content: "Step " counter(step) " of 3"; font-size: var(--t-sm); color: var(--muted); margin-bottom: 14px; }
.process-step h3 { font-size: var(--t-lg); margin-bottom: 16px; }

@media (max-width: 860px) {
  .process-inner { grid-template-columns: 1fr; }
  .process-visual { position: relative; height: auto; padding-top: 24px; }
  .process-visual .vessel { width: 72vw; }
  .vessel-stage { opacity: 0; }
  .process-steps { padding: 24px 0 0; }
  .process-step { min-height: 0; padding: 32px 0; border-top: 1px solid var(--line); opacity: 1; }
}

/* ---------- collections index ---------- */
.collections { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.collection a {
  display: grid; grid-template-columns: minmax(140px, 1fr) 2fr 1.2fr auto; align-items: center; gap: 24px;
  padding: clamp(20px, 3vw, 36px) 0; border-bottom: 1px solid var(--line-dark);
  text-decoration: none; position: relative;
}
.collection .deva { font-size: clamp(2rem, 4.5vw, 3.75rem); color: var(--saffron-soft); }
.collection h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.collection p { margin: 0; color: rgba(227, 229, 216, .7); font-size: .95rem; }
.collection .count { font-size: var(--t-sm); opacity: .6; }
.collection a:hover h3 { color: var(--saffron-soft); }
.collection a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--saffron); transition: width .6s var(--ease); }
.collection a:hover::after { width: 100%; }
@media (max-width: 760px) {
  .collection a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .collection .deva { grid-column: 1 / -1; }
  .collection p { grid-column: 1 / -1; }
  .collection .count { grid-row: 2; grid-column: 2; }
}

/* ---------- signature product ---------- */
.signature { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.signature-media { position: relative; }
.signature-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.signature-media .deva { position: absolute; right: -0.15em; bottom: -.35em; font-size: clamp(3rem, 8vw, 7rem); color: var(--kumkum); line-height: 1; }
.signature h2 { font-size: var(--t-xl); margin: 16px 0 24px; }
.kicker { font-size: var(--t-sm); color: var(--muted); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 32px 0; border-top: 1px solid var(--line); }
.notes div { padding: 18px 16px 0 0; }
.notes dt { font-family: var(--display); font-size: 1.15rem; }
.notes dd { margin: 4px 0 0; font-size: var(--t-sm); color: var(--muted); }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.price { font-family: var(--display); font-size: 1.75rem; }
@media (max-width: 860px) {
  .signature { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr 1fr; }
}

/* ---------- product tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
.tile { display: flex; flex-direction: column; text-decoration: none; }
.tile-media {
  aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; position: relative;
  background: var(--paper-2); display: grid; place-items: center; margin-bottom: 16px;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-media .deva { font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--fern); text-align: center; padding: 16px; }
.tile-media .placeholder-note { position: absolute; bottom: 12px; left: 12px; font-size: .72rem; color: var(--muted); }
.tile h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tile .meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); color: var(--muted); }
.tile .tag { font-size: .75rem; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; margin-bottom: 10px; }
.on-dark .tile-media { background: var(--moss-2); }
.on-dark .tile-media .deva { color: var(--saffron-soft); }
.on-dark .tile .meta { color: rgba(227, 229, 216, .65); }

/* ---------- filters (shop) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { border: 1px solid var(--line); background: transparent; padding: .5em 1.1em; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- hospitality band ---------- */
.hosp { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.hosp-list { list-style: none; margin: 0; padding: 0; }
.hosp h2 { margin-bottom: 24px; }
.hosp .lede { margin-bottom: 32px; }
.hosp-list li { padding: 20px 0; border-top: 1px solid var(--line-dark); }
.hosp-list strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin-bottom: 4px; }
.hosp-list span { opacity: .72; font-size: var(--t-sm); }
.founders h2 { margin-bottom: 24px; }
@media (max-width: 860px) { .hosp { grid-template-columns: 1fr; } }

/* ---------- founders ---------- */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-portrait {
  aspect-ratio: 5 / 6; background: var(--paper-2); border-radius: 4px;
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px;
}
.founder-portrait .deva { font-size: clamp(3rem, 7vw, 5.5rem); color: var(--fern); display: block; }
.founders blockquote { margin: 0 0 28px; font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.2; }
.founders cite { font-style: normal; font-size: var(--t-sm); color: var(--muted); display: block; margin-top: 16px; }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } }

/* ---------- promise ---------- */
.promise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 96px); }
.promise h3 { font-size: var(--t-md); margin-bottom: 20px; }
.promise ul { list-style: none; margin: 0; padding: 0; }
.promise li { padding: 14px 0; border-top: 1px solid var(--line); }
.promise .without li { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--kumkum); text-decoration-thickness: 1px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 160px 0 clamp(48px, 7vw, 96px); }
.page-hero h1 { max-width: 16ch; margin-bottom: 24px; }
.page-hero.on-dark { background: var(--moss); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-top: 120px; }
.product-media { position: sticky; top: 96px; align-self: start; }
.product-media .tile-media { margin: 0; }
.product-info h1 { font-size: var(--t-xl); margin: 8px 0 8px; }
.product-info .deva { font-size: clamp(2rem, 4vw, 3rem); color: var(--kumkum); }
.size-picker { display: flex; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.size-picker label { cursor: pointer; }
.size-picker input { position: absolute; opacity: 0; }
.size-picker span { display: inline-block; padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; }
.size-picker input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-picker input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.accordion { border-top: 1px solid var(--line); margin-top: 36px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 18px 0; cursor: pointer; font-family: var(--display); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--body); transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .body { padding: 0 0 20px; color: var(--muted); }
.consult-note { margin-top: 24px; padding: 18px 20px; background: var(--paper-2); border-left: 2px solid var(--kumkum); font-size: .95rem; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding-top: 96px; }
  .product-media { position: static; }
}

/* ---------- contact form ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.contact h1, .contact h2 { margin-bottom: 20px; }
.contact-ways { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-ways li { padding: 16px 0; border-top: 1px solid var(--line-dark); }
.contact-ways a { text-decoration: none; font-family: var(--display); font-size: 1.35rem; }
.contact-ways a:hover { color: var(--saffron-soft); }
.contact-ways small { display: block; opacity: .65; font-size: var(--t-sm); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); opacity: .8; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 0; background: transparent; border: 0;
  border-bottom: 1px solid var(--line-dark); border-radius: 0; color: inherit;
  transition: border-color .3s var(--ease);
}
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--saffron); }
.field .error { color: var(--saffron-soft); font-size: var(--t-sm); min-height: 1.2em; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.form-status { grid-column: 1 / -1; font-size: var(--t-sm); min-height: 1.4em; }
.on-light-form .field input, .on-light-form .field select, .on-light-form .field textarea { border-bottom-color: var(--line); }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- faq ---------- */
.faq { max-width: 820px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 9vw, 120px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-top h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 14ch; margin-bottom: 20px; }
.footer-top h3 { font-family: var(--body); font-size: var(--t-sm); font-weight: 500; opacity: .6; margin-bottom: 14px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top a { text-decoration: none; opacity: .85; }
.footer-top a:hover { opacity: 1; color: var(--saffron-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: var(--t-sm); opacity: .6; }
.footer-word { font-size: clamp(4rem, 17vw, 15rem); color: #22251E; line-height: .9; margin-top: 40px; white-space: nowrap; overflow: hidden; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--saffron); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(22, 24, 19, .25);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- reveal (used once per page, on the hero) ---------- */
.js .reveal-line { overflow: hidden; display: block; }
.js .reveal-line > span { display: block; transform: translateY(105%); }
.js.is-loaded .reveal-line > span { transform: none; transition: transform 1.1s var(--ease); }
.js.is-loaded .reveal-line:nth-child(2) > span { transition-delay: .08s; }
.js.is-loaded .reveal-line:nth-child(3) > span { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal-line > span { transform: none; }
  .process-step { opacity: 1; }
}
