/* ==========================================================================
   Sabi Organics: "Kraft and Kitchen" design system
   Mobile-first. Breakpoints: 600, 900, 1200.
   1 Tokens  2 Reset  3 Base type  4 Layout  5 Buttons  6 Cards, chips
   7 Motifs  8 Product card  9 Ledger  10 Page hero  11 FAQ  12 CTA band
   13 Promises, blocks, notes, prose  14 Forms  15 Header and menu
   16 Footer  17 Fixed UI  18 Utilities  19 Motion  20 Print
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --paper: #F7EFDF;
  --surface: #FFFBF2;
  --kraft-soft: #EFE2C6;
  --kraft: #E3C48E;
  --ink: #1E2A17;
  --muted: #5B5843;
  --forest: #17380F;
  --leaf: #1F5304;
  --moringa: #357A17;
  --haldi: #E8920A;
  --haldi-deep: #8F4B00;
  --line: #D9C7A0;
  --edge: #8E6F3C;
  --footer: #12260B;
  --footer-text: #F3E9D2;
  --footer-muted: #C2BC96;
  --whatsapp: #25D366;
  --wa-ink: #0C2103;
  --error: #A3271B;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  --radius: 14px;
  --radius-field: 10px;
  --radius-pill: 999px;
  --radius-arch: 48% 48% 14px 14px / 22% 22% 14px 14px;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", "Noto Sans", Roboto, Arial, sans-serif;

  --container: 1160px;
  --measure: 680px;
  --gutter: 20px;
  --header-h: 64px;
  --section-y: 56px;

  --fs-h1: clamp(2.125rem, 1.534rem + 2.955vw, 3.75rem);
  --fs-h2: clamp(1.6875rem, 1.392rem + 1.477vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.159rem + 0.455vw, 1.5rem);
  --fs-lead: clamp(1.1875rem, 1.142rem + 0.227vw, 1.3125rem);
  --fs-body: clamp(1.0625rem, 1.04rem + 0.114vw, 1.125rem);
  --fs-small: clamp(0.875rem, 0.852rem + 0.114vw, 0.9375rem);
  --fs-label: 0.8125rem;

  --accent: var(--leaf);
  --on-accent: var(--surface);
}

[data-product="moringa"] {
  --accent: var(--moringa);
  --on-accent: #FFFFFF;
}

[data-product="haldi"] {
  --accent: var(--haldi);
  --on-accent: var(--ink);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (min-width: 900px) {
  :root {
    --header-h: 72px;
    --section-y: 104px;
  }
}

/* 2. Reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, fieldset, legend { margin: 0; }

ul[class],
ol[class] { margin: 0; padding: 0; list-style: none; }

fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; }

table { border-collapse: collapse; }

[hidden] { display: none !important; }

/* 3. Base and type
   ========================================================================== */
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  color: var(--forest);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-body); font-weight: 700; line-height: 1.3; }

p { text-wrap: pretty; }

a {
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--forest); text-decoration-thickness: 2px; }

strong, b { font-weight: 700; }

::selection { background: var(--leaf); color: var(--surface); }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

.site-footer :focus-visible,
.cta-band :focus-visible,
.block--moringa :focus-visible {
  outline-color: var(--surface);
}

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
}

.label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.5;
}

.small { font-size: var(--fs-small); line-height: 1.5; }
.muted { color: var(--muted); }
.measure { max-width: var(--measure); }
.text-center { text-align: center; }
.text-center.measure,
.text-center .measure { margin-inline: auto; }

/* Muted and haldi-deep never sit on kraft */
.section--kraft .muted,
.page-hero .muted { color: var(--ink); }

/* 4. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(var(--measure) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--kraft { background: var(--kraft); }
.section--kraft-soft { background: var(--kraft-soft); }
.section--kraft .label { color: var(--forest); }

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--s6);
}

.section-head > * + * { margin-top: var(--s3); }
.section-head .label + h2 { margin-top: var(--s2); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
}

.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
}

.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack > * { margin-block: 0; }
.stack--lg { gap: var(--s6); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}

.btn-row > .btn { flex: 1 1 100%; }

.text-center .btn-row,
.section-head--center .btn-row { justify-content: center; }

@media (min-width: 480px) {
  .btn-row > .btn { flex: 0 1 auto; }
}

@media (min-width: 600px) {
  .grid--2,
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { gap: var(--s5); }
}

@media (min-width: 900px) {
  .section-head { margin-bottom: var(--s7); }
  .grid { gap: var(--s6); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s8);
    align-items: center;
  }

  .split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--reverse > :first-child { order: 2; }
}

@media (min-width: 1200px) {
  .split { gap: var(--s9); }
}

/* 5. Buttons and links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: 10px 28px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--kraft-soft); color: var(--ink); }
.btn .icon { width: 20px; height: 20px; vertical-align: 0; }

.btn--primary {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--surface);
}

.btn--primary:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--surface);
}

.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--kraft-soft); color: var(--ink); }
.section--kraft-soft .btn--secondary:hover,
.section--kraft .btn--secondary:hover,
.page-hero .btn--secondary:hover { background: var(--surface); }

.btn--on-dark {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--forest);
}

.btn--on-dark:hover {
  background: var(--kraft-soft);
  border-color: var(--kraft-soft);
  color: var(--forest);
}

.btn--on-dark.btn--secondary {
  background: transparent;
  border-color: var(--surface);
  color: var(--surface);
}

.btn--on-dark.btn--secondary:hover {
  background: var(--surface);
  color: var(--forest);
}

.btn--whatsapp,
.btn--whatsapp.btn--on-dark {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--wa-ink);
}

.btn--whatsapp:hover,
.btn--whatsapp.btn--on-dark:hover {
  background: #1FC25C;
  border-color: #1FC25C;
  color: var(--wa-ink);
}

.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--leaf);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
}

.text-link:hover { color: var(--forest); text-decoration-color: currentColor; }
.text-link .icon { width: 18px; height: 18px; transition: transform 0.15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* 6. Cards, chips, pills
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
}

.card--link:hover,
.card--link:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--forest);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-line {
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 7. Motifs
   ========================================================================== */
.crimp {
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(23, 56, 15, 0.12) 0 2px, transparent 2px 6px);
  border-bottom: 1px dashed rgba(23, 56, 15, 0.28);
}

.stitch {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--leaf);
}

.stitch::before,
.stitch::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--edge);
}

.stitch .icon { width: 14px; height: 14px; }

figure.arch {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-arch);
}

figure.arch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-arch);
  background: var(--kraft-soft);
}

figure.banner-crop {
  position: relative;
  aspect-ratio: 10 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--kraft-soft);
}

figure.banner-crop img {
  display: block;
  width: 172%;
  max-width: none;
  height: auto;
  transform: translate(-20.9%, -21.2%);
}

/* 8. Product card
   ========================================================================== */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--forest);
}

.product-card > figure.arch {
  width: auto;
  max-width: 340px;
  margin: var(--s5) auto 0;
  background: var(--paper);
}

.product-card > figure.arch,
.product-card > a > figure.arch { align-self: center; }

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
}

.product-card__name a { color: inherit; text-decoration: none; }
.product-card__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.product-card__descriptor { color: var(--muted); }
.product-card__body .btn-row { margin-top: auto; padding-top: var(--s3); }

.product-card__band {
  padding: 10px var(--s4);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 600px) {
  .product-card > figure.arch { margin-top: var(--s6); }
  .product-card__body { padding: var(--s6); }
}

/* 9. Ledger
   ========================================================================== */
.ledger { margin: 0; padding: 0; list-style: none; }

.ledger__row {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}

.ledger__row:first-child { border-top: 1px solid var(--line); }

.ledger__row dt {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: var(--s2);
  min-width: 35%;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ledger__row dt::after {
  content: "";
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--edge);
  transform: translateY(-0.25em);
}

.ledger__row dd {
  flex: 0 1 auto;
  max-width: 62%;
  font-weight: 500;
  text-align: right;
}

.section--kraft .ledger__row dt { color: var(--ink); }

.ledger--list > li {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 2px dotted var(--edge);
  font-weight: 500;
}

.ledger--list > li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 3px 3px;
  background: var(--accent);
  transform: translateY(-1px);
}

/* 10. Inner page hero
   ========================================================================== */
.page-hero {
  background: var(--kraft);
  color: var(--ink);
}

.page-hero > .container {
  padding-block: var(--s6) var(--s7);
}

.page-hero .label { margin-top: var(--s5); color: var(--forest); }
.page-hero h1 { margin-top: var(--s2); max-width: 18ch; }

.page-hero__intro {
  max-width: var(--measure);
  margin-top: var(--s4);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.5;
}

.page-hero--product { border-bottom: 6px solid var(--accent); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  font-weight: 500;
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 10px;
  color: var(--edge);
}

.breadcrumb a { color: var(--ink); text-underline-offset: 0.2em; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb [aria-current="page"] { color: var(--forest); font-weight: 700; }

@media (min-width: 900px) {
  .page-hero > .container { padding-block: var(--s7) var(--s8); }
}

/* 11. FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: var(--s3); }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 56px;
  padding: var(--s3) var(--s5);
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--leaf); }

.faq__icon {
  display: inline-flex;
  flex: none;
  color: var(--leaf);
  transition: transform 0.2s ease;
}

.faq__icon .icon { width: 24px; height: 24px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }

.faq__a {
  padding: 0 var(--s5) var(--s5);
  max-width: calc(var(--measure) + var(--s5) * 2);
}

.faq__a > * + * { margin-top: var(--s3); }

/* 12. CTA band
   ========================================================================== */
.cta-band {
  background: var(--leaf);
  color: var(--surface);
}

.cta-band .crimp {
  background: repeating-linear-gradient(90deg, rgba(255, 251, 242, 0.22) 0 2px, transparent 2px 6px);
  border-bottom-color: rgba(255, 251, 242, 0.4);
}

.cta-band > .container {
  padding-block: var(--s7) var(--s8);
  text-align: center;
}

.cta-band h2 { color: var(--surface); }

.cta-band p {
  max-width: var(--measure);
  margin: var(--s3) auto 0;
  font-size: var(--fs-lead);
  font-weight: 500;
}

.cta-band a:not(.btn) { color: var(--surface); }
.cta-band .btn-row { justify-content: center; margin-top: var(--s6); }

@media (min-width: 900px) {
  .cta-band > .container { padding-block: var(--s8) var(--s9); }
}

/* 13. Promises, colour blocks, notes, prose
   ========================================================================== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s4);
}

.promise {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}

.promise__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  color: var(--forest);
}

.promise__icon .icon { width: 26px; height: 26px; }

.promise__text {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  line-height: 1.2;
  color: var(--forest);
}

.section-head--center + .promise-grid .promise,
.text-center .promise { align-items: center; text-align: center; }

@media (min-width: 900px) {
  .promise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
}

.block {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s6) var(--s5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.block--moringa {
  background: var(--moringa);
  border-color: var(--moringa);
  color: #FFFFFF;
}

.block--haldi {
  background: var(--haldi);
  border-color: var(--haldi);
  color: var(--ink);
}

.block--moringa h2,
.block--moringa h3,
.block--moringa .label,
.block--moringa a:not(.btn) { color: #FFFFFF; }

.block--haldi h2,
.block--haldi h3,
.block--haldi .label,
.block--haldi a:not(.btn) { color: var(--ink); }

.block--moringa .muted,
.block--haldi .muted { color: inherit; }

@media (min-width: 900px) {
  .block { padding: var(--s7); }
}

.wellness-note {
  max-width: var(--measure);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.section--kraft .wellness-note,
.page-hero .wellness-note { color: var(--ink); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s7); font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
.prose h3 { margin-top: var(--s6); }
.prose h2 + *,
.prose h3 + * { margin-top: var(--s3); }
.prose > :first-child { margin-top: 0; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s2); }
.prose li::marker { color: var(--leaf); font-weight: 700; }
.prose a { font-weight: 500; }
.prose hr { height: 0; border: 0; border-top: 1px dashed var(--edge); margin-block: var(--s6); }

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  font-size: var(--fs-small);
}

.prose th,
.prose td {
  padding: var(--s3) var(--s4) var(--s3) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { color: var(--forest); font-weight: 700; }

/* 14. Forms
   ========================================================================== */
.form { display: flex; flex-direction: column; gap: var(--s5); }

.form__panel {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }

.field__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.field__opt {
  margin-left: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 400;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--edge);
  border-radius: var(--radius-field);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.form__panel .input,
.form__panel .select,
.form__panel .textarea { background: #FFFFFF; }

.textarea { min-height: 140px; }

.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2A17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.input::placeholder,
.textarea::placeholder { color: var(--muted); opacity: 1; }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--ink); }

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--forest);
  outline-offset: 2px;
}

.field__hint { color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--error);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.45;
}

.field__error:empty { display: none; }
.field__error .icon { width: 18px; height: 18px; margin-top: 1px; }

.field--invalid .input,
.field--invalid .select,
.field--invalid .textarea,
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.radio-pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.radio-pill { position: relative; display: inline-flex; cursor: pointer; }

.radio-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1.5px solid var(--edge);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.radio-pill:hover span { border-color: var(--ink); }

.radio-pill input:checked + span {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--surface);
  font-weight: 700;
}

.radio-pill input:focus-visible + span {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--leaf);
  cursor: pointer;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}

.form__actions > .btn { flex: 1 1 100%; }

.alert {
  padding: var(--s4) var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--leaf);
  border-radius: var(--radius-field);
}

.alert > * + * { margin-top: var(--s2); }
.alert ul { margin: var(--s2) 0 0; padding-left: 1.2em; }

.alert__title {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--forest);
}

.alert--success { border-color: var(--leaf); border-left-color: var(--leaf); }
.alert--error { border-color: var(--error); border-left-color: var(--error); }
.alert--error .alert__title { color: var(--error); }
.alert--error a { color: var(--error); font-weight: 700; }

.hp {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 480px) {
  .form__actions > .btn { flex: 0 1 auto; }
}

@media (min-width: 600px) {
  .form__panel { padding: var(--s6); }
}

/* 15. Header and menu
   ========================================================================== */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--forest);
  border-radius: 0 0 var(--radius-field) var(--radius-field);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 0; color: var(--surface); outline-offset: -6px; outline-color: var(--surface); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: var(--header-h);
}

.site-logo { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; border-radius: 4px; }
.site-logo img { width: auto; height: clamp(26px, 8vw, 32px); }

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.site-nav__link:hover { color: var(--forest); }
.site-nav__link:hover::after,
.site-nav__link[aria-current]::after { transform: scaleX(1); }
.site-nav__link[aria-current] { color: var(--forest); font-weight: 700; }

/* Mobile menu: a native details disclosure, enhanced by main.js */
.menu { flex: none; }

.menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 16px 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle::marker { content: ""; }
.menu__toggle:hover { background: var(--kraft-soft); }
.menu__toggle .icon { width: 22px; height: 22px; }
.menu__toggle .menu__icon-close { display: none; }
.menu[open] .menu__toggle { background: var(--ink); color: var(--surface); }
.menu[open] .menu__toggle .menu__icon-open { display: none; }
.menu[open] .menu__toggle .menu__icon-close { display: inline-block; }

.menu__sheet {
  position: fixed;
  top: calc(var(--header-h) + 1px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  padding: var(--s6) var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--kraft-soft);
}

.menu__sheet::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 120px;
  width: 300px;
  height: 192px;
  background: url("../img/logo-mark.png") no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}

.menu__list { position: relative; margin: 0; padding: 0; list-style: none; }
.menu__list li { border-bottom: 1px dashed var(--edge); }

.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-block: var(--s2);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  line-height: 1.15;
  text-decoration: none;
}

.menu__link .icon { width: 22px; height: 22px; color: var(--leaf); }
.menu__link[aria-current] { color: var(--leaf); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

.menu__actions {
  position: relative;
  display: grid;
  gap: var(--s3);
  margin-top: auto;
}

.menu__note { position: relative; color: var(--ink); font-size: var(--fs-small); text-align: center; }

.site-header__cta { display: none; }

html.menu-open,
html.menu-open body { overflow: hidden; }

@media (min-width: 900px) {
  .site-logo img { height: 40px; }
  .site-nav { display: block; margin-left: auto; }
  .site-header__cta { display: inline-flex; }
  .menu { display: none; }
  html.menu-open,
  html.menu-open body { overflow: visible; }
}

/* 16. Footer
   ========================================================================== */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  font-size: 1rem;
}

.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 0.2em; }

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s7);
  padding-block: var(--s8) var(--s7);
}

.site-footer__brand img { width: 200px; height: auto; }

.site-footer__brand p {
  max-width: 34ch;
  margin-top: var(--s5);
  color: var(--footer-muted);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6) var(--s5);
}

.site-footer__col--wide { grid-column: 1 / -1; }

.site-footer__heading {
  margin-bottom: var(--s3);
  color: var(--footer-muted);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer__list { margin: 0; padding: 0; list-style: none; }

.site-footer__list a,
.site-footer__list span.site-footer__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding-block: 6px;
  line-height: 1.35;
}

.site-footer__list .icon { width: 18px; height: 18px; color: var(--footer-muted); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding-block: var(--s5) var(--s6);
  border-top: 1px dashed rgba(194, 188, 150, 0.45);
  color: var(--footer-muted);
  font-size: var(--fs-small);
}

.site-footer .wellness-note { max-width: 70ch; color: var(--footer-muted); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
}

.site-footer__legal a { text-decoration: underline; text-underline-offset: 0.2em; }

@media (min-width: 600px) {
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__col--wide { grid-column: auto; }
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--s8);
    padding-block: var(--s9) var(--s8);
  }
}

/* 17. Fixed UI: floating WhatsApp and action bar
   ========================================================================== */
.wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border: 2px solid var(--forest);
  border-radius: var(--radius-pill);
  color: var(--wa-ink);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.wa-float:hover {
  color: var(--wa-ink);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--forest);
}

.wa-float .icon { width: 28px; height: 28px; }
.wa-float__label { display: none; }

html.menu-open .wa-float,
html.field-focus .wa-float,
html.field-focus .action-bar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--s2);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.action-bar .btn {
  min-height: 48px;
  padding-inline: 12px;
  font-size: 1rem;
}

.action-bar .btn:not(.btn--whatsapp):not(.btn--primary) { background: var(--surface); }

@media (max-width: 899.98px) {
  body.has-action-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.has-action-bar .wa-float { display: none; }
  html.field-focus body.has-action-bar { padding-bottom: 0; }
}

@media (min-width: 900px) {
  .wa-float {
    right: 24px;
    bottom: 24px;
    width: auto;
    height: 52px;
    padding: 0 22px 0 18px;
    font-size: 1.0625rem;
  }

  .wa-float .icon { width: 24px; height: 24px; }
  .wa-float__label { display: inline; }
  .action-bar { display: none; }
}

/* 18. Utilities
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 899.98px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 900px) {
  .hide-desktop { display: none !important; }
}

/* 19. Motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card--link:hover,
  .card--link:focus-within,
  .product-card:hover,
  .product-card:focus-within,
  .wa-float:hover { transform: none; }
}

/* 20. Print
   ========================================================================== */
@media print {
  :root { --section-y: 24px; }

  body { background: #FFFFFF; color: #000000; font-size: 11pt; }

  .site-header { position: static; border-bottom: 1px solid #999999; }

  .skip-link,
  .site-nav,
  .site-header__cta,
  .menu,
  .wa-float,
  .action-bar,
  .site-footer__cols,
  .cta-band .btn-row,
  .form__actions { display: none !important; }

  body.has-action-bar { padding-bottom: 0; }

  .section--kraft,
  .section--kraft-soft,
  .page-hero,
  .cta-band,
  .site-footer { background: #FFFFFF !important; color: #000000 !important; }

  .cta-band h2,
  .site-footer .wellness-note,
  .site-footer__bottom { color: #000000 !important; }

  .site-footer__brand img { display: none; }
  .site-footer__top { padding-block: 12px; }

  [data-reveal] { opacity: 1 !important; transform: none !important; }

  a { color: #000000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

  .card,
  .product-card,
  .faq__item,
  figure.arch { break-inside: avoid; box-shadow: none !important; transform: none !important; }

  h1, h2, h3 { break-after: avoid; color: #000000; }
}
