@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --carbon: #0B0B0C;
  --bone: #F3EEE4;
  --paper: #EBE3D3; /* light section background: warmer and a step darker than bone */
  --yerba: #23402F;
  --amber: #C08A3E;
  --clay: #8B5A3C;
  --graphite: #1A1A1A;
  --graphite-2: #2B2A28;
  --stone: #8C877D;
  --stone-light: #D9D2C3;
  --ok: #2F6B3F;
  --error: #B3382C;
  --error-text: #E8A39B; /* error text on dark surfaces */

  --serif: "DM Serif Display", "Georgia", serif;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* display rules on classes must not un-hide elements */
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; } /* anchors land below the sticky header */
body {
  margin: 0;
  background: var(--carbon);
  color: var(--bone);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--amber); color: var(--carbon); padding: .75rem 1rem;
}
.skip:focus { top: var(--gutter); }

.wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { width: min(44rem, 100%); }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: 0; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

/* Buttons: amber is the only action color */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.5rem;
  background: transparent; border: 1px solid var(--amber); border-radius: 2px; cursor: pointer;
  font: 500 .875rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; text-align: center; gap: .5rem;
  transition: background-color .2s, color .2s, transform .2s;
}
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wide { display: none; }
.btn--primary { position: relative; overflow: hidden; background: var(--amber); color: var(--carbon); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
}
.btn--primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.btn--primary:hover { background: var(--bone); border-color: var(--bone); }
.btn--ghost { color: var(--bone); border-color: var(--stone); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--small { min-height: 2.75rem; padding: .625rem 1rem; font-size: .75rem; color: var(--bone); border-color: var(--stone); }
.btn--small:hover { border-color: var(--amber); color: var(--amber); }


/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; align-items: center;
  padding-block: 2.5rem 4.75rem;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(192, 138, 62, .12), transparent 70%),
    var(--carbon);
}
.hero::before { /* slow breathing of the warm light */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 38% at 50% 32%, rgba(192, 138, 62, .10), transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .35; } }
.hero::after { /* subtle grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; }
.hero__logo { width: min(18rem, 56vw); margin-bottom: 1.5rem; }
.hero__title { font-size: clamp(2rem, 7vw, 3.75rem); max-width: 16ch; }
.hero__lead { max-width: 34rem; margin: 1.25rem 0 2rem; color: var(--stone-light); }
.hero__ctas { display: grid; gap: .75rem; width: min(22rem, 100%); }

.steam { position: absolute; inset: 0; pointer-events: none; }
.steam span {
  position: absolute; bottom: -10%; left: 50%;
  width: 18rem; height: 18rem; margin-left: -9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 238, 228, .08), transparent 65%);
  filter: blur(20px);
  animation: rise 14s ease-in infinite;
}
.steam span:nth-child(2) { left: 35%; animation-delay: -5s; animation-duration: 17s; }
.steam span:nth-child(3) { left: 65%; animation-delay: -10s; animation-duration: 19s; }
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translate3d(-2rem, -110vh, 0) scale(1.6); opacity: 0; }
}

.hero__cue {
  position: absolute; z-index: 1; left: 50%; bottom: .75rem; translate: -50% 0;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem;
  color: var(--stone-light); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.hero__cue .ico { width: 1.5rem; height: 1.5rem; animation: cue 2.2s ease-in-out infinite; }
.hero__cue:hover { color: var(--amber); }
@keyframes cue { 50% { translate: 0 5px; } }

/* Sticky header: appears once the hero buttons scroll away (main.js) */
.topnav {
  position: fixed; inset: 0 0 auto; z-index: 6;
  background: rgba(11, 11, 12, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--graphite-2);
  transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s;
}
.topnav.is-visible { transform: none; visibility: visible; transition: transform .3s ease; }
.topnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.topnav__logo { display: inline-flex; align-items: center; min-height: 44px; }
.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.topnav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem;
  color: var(--stone-light); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.topnav ul a:hover { color: var(--amber); }

/* Closing call to action */
.closing { text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(192, 138, 62, .14), transparent 70%), var(--carbon); }
.closing__inner { display: grid; justify-items: center; }
.closing p:not(.eyebrow) { max-width: 34rem; color: var(--stone-light); }
.closing .eyebrow:has(+ .section__title)::after { margin-inline: auto; transform-origin: center; }
.cta-row { display: grid; gap: .75rem; width: min(22rem, 100%); margin-top: 1rem; }

/* Entrance: hero pieces rise in, one after the other */
.hero__inner > * { animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__inner > :nth-child(2) { animation-delay: .12s; }
.hero__inner > :nth-child(3) { animation-delay: .22s; }
.hero__inner > :nth-child(4) { animation-delay: .34s; }
.hero__inner > :nth-child(5) { animation-delay: .46s; }
.hero__logo { animation-name: logo-in; animation-duration: 1.1s; }
@keyframes rise-in { from { opacity: 0; translate: 0 18px; } }
@keyframes logo-in { from { opacity: 0; scale: .94; filter: blur(6px); } }

/* Scroll reveal (main.js marks elements below the fold, so nothing visible ever flashes) */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; translate: none; }

/* Thin line drawn under each section label */
.eyebrow:has(+ .section__title)::after {
  content: ""; display: block; width: 2.5rem; height: 1px; margin-top: .625rem;
  background: currentColor; transform-origin: left; transition: transform .9s .25s cubic-bezier(.2, .7, .2, 1);
}
.eyebrow.reveal:not(.is-visible)::after { transform: scaleX(0); }

/* FAQ answers fade in when opened */
.faq details[open] > :not(summary) { animation: rise-in .45s ease both; }

/* Sections */
.section { padding-block: 5rem; }
.section__title { font-size: clamp(2rem, 5.5vw, 3rem); margin-bottom: 2.5rem; }
.section p { margin: 0 0 1rem; }
.section--light { background: var(--paper); color: var(--carbon); font-size: 1.0625rem; }

.section--light .eyebrow { color: var(--yerba); }
.section--yerba { background: radial-gradient(ellipse 80% 70% at 85% 20%, rgba(192, 138, 62, .14), transparent 60%), var(--yerba); }
#ritual { position: relative; overflow: hidden; }
#ritual::after { /* watermark of the ENOK "E" */
  content: ""; position: absolute; right: -6%; top: 50%; width: min(28rem, 60vw); aspect-ratio: 1; transform: translateY(-50%);
  background: url("assets/brand/monogram-dark.svg") center / contain no-repeat; opacity: .06; pointer-events: none;
}
#ritual .wrap { position: relative; z-index: 1; }
.split { display: grid; gap: .5rem; }
.section .stat { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 .75rem; }
.stat strong { font-family: var(--serif); font-size: 3.25rem; font-weight: 400; line-height: 1; color: var(--bone); }
.stat span { color: var(--stone-light); font-size: .9375rem; line-height: 1.45; max-width: 24ch; padding-left: 1rem; border-left: 1px solid rgba(243, 238, 228, .25); }
.section--yerba .eyebrow { color: var(--stone-light); }
.section--yerba .btn { margin-top: 1rem; }

/* Catalog */
@media (max-width: 39.99rem) { #yerbas { padding-top: 2.75rem; } #yerbas .section__title { margin-bottom: 1.5rem; } .hero__lead { margin: 1rem 0 1.5rem; } }
#yerbas { background: linear-gradient(180deg, var(--carbon), #121110 55%, var(--carbon)); }
.yerbas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.yerba {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 0 .875rem .875rem; overflow: hidden;
  background: var(--graphite); border: 1px solid var(--graphite-2); border-radius: 4px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.yerba:hover { border-color: rgba(192, 138, 62, .55); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.yerba.reveal { /* keep the hover transitions when the card also reveals on scroll */
  transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1), border-color .25s, transform .25s, box-shadow .25s;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s;
}
.yerba__photo {
  position: relative; aspect-ratio: 1; margin: 0 -.875rem .875rem;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(192, 138, 62, .30), rgba(192, 138, 62, .07) 36%, transparent 62%),
    linear-gradient(180deg, #201d19, #121110);
  color: var(--stone-light); font-size: .625rem; letter-spacing: .2em; text-transform: uppercase;
}
.yerba__photo::after { /* floor shadow under the package */
  content: ""; position: absolute; left: 50%; bottom: 8%; width: 52%; height: 7%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .7), transparent 70%);
}
.yerba__photo img { /* absolute so the photo never stretches the square */
  position: absolute; z-index: 1; inset: 9% 7% 13%; width: 86%; height: 78%; object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55));
  transition: transform .4s ease;
}
.yerba__photo img { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); transition: rotate .4s ease, scale .4s ease; }
.yerba:hover .yerba__photo img { rotate: -2deg; scale: 1.04; }
@keyframes float { 50% { translate: 0 -8px; } }
.yerba__photo::before { /* warmer glow on hover */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle at 50% 46%, rgba(192, 138, 62, .28), transparent 58%);
}
.yerba:hover .yerba__photo::before { opacity: 1; }
.yerba__name { font-size: 1.375rem; }
.yerba__size { display: inline-block; font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; color: var(--amber); margin-left: .25rem; vertical-align: .3em; }
.yerba__formats { color: var(--stone-light); font-size: .8125rem; margin: .125rem 0 .75rem; }
.yerba .btn { margin-top: auto; width: 100%; }
.yerba__stock { list-style: none; margin: .125rem 0 .75rem; padding: 0; display: grid; gap: .375rem; font-size: .8125rem; }
.yerba__stock li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; color: var(--stone-light); }
.yerba__stock strong { font-weight: 500; color: var(--bone); }
.yerba__stock strong::before { /* the label carries the meaning; the dot only reinforces it */
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%;
  background: var(--ok); vertical-align: .1em;
}
.yerba__stock [data-status="low"] strong::before { background: var(--amber); }
.yerba__stock [data-status="out"] strong::before { background: var(--stone); }
.yerba__stock [data-status="out"] strong { color: var(--stone-light); }

/* Coming soon */
.soon { display: grid; gap: 1rem; }
.soon__item {
  position: relative; padding: 1.75rem 1.5rem; border: 1px solid var(--graphite-2); border-radius: 4px;
  background: linear-gradient(160deg, var(--graphite), var(--carbon));
  transition: border-color .3s, transform .3s;
}
.soon__item::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--amber), transparent); }
.soon__item:hover { border-color: rgba(192, 138, 62, .45); transform: translateY(-3px); }
.soon__icon { color: var(--amber); margin-bottom: 1rem; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.soon__item:hover .soon__icon { transform: rotate(-8deg) scale(1.08); }
.soon__item h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.soon__item p { color: var(--stone-light); }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(11, 11, 12, .14); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; color: var(--carbon);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--yerba); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.25rem; color: var(--graphite-2); }
.faq a { color: var(--yerba); font-weight: 600; }

/* Footer */
.footer { padding-block: 3rem 6rem; border-top: 1px solid var(--graphite-2); }
.footer__inner { display: grid; gap: 1.5rem; justify-items: start; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer__links a, .footer__links li > span { display: inline-flex; align-items: center; gap: .625rem; min-height: 44px; }
.footer__links .ico { color: var(--amber); }
.footer__links li, .footer__links a { text-decoration: none; color: var(--stone-light); }
.footer__links a:hover { color: var(--amber); }
.footer__legal { margin: 0; font-size: .8125rem; color: var(--stone-light); }

/* Floating WhatsApp: hidden until the hero CTAs scroll away (main.js) */
.wa-float {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 5;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.125rem; border-radius: 999px;
  background: var(--amber); color: var(--carbon);
  font: 600 .875rem/1 var(--sans); text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  transform: translateY(150%); transition: transform .3s;
}
.wa-float.is-visible { transform: none; }
@media (max-width: 39.99rem) {
  .wa-float { width: 3.5rem; height: 3.5rem; padding: 0; justify-content: center; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* 10) on touch screens the card glow and tilt play when the card is in view (main.js adds .lit) */
@media (hover: none) {
  .yerba.lit .yerba__photo::before { opacity: 1; }
  .yerba.lit .yerba__photo img { rotate: -2deg; scale: 1.04; }
}

@media (min-width: 40rem) {
  .hero { min-height: 100svh; padding-block: 4rem 5rem; }
  .hero__logo { width: min(18rem, 72vw); margin-bottom: 2.5rem; }
  .hero__ctas, .cta-row { grid-auto-flow: column; width: auto; }
  .wide { display: inline; }
  .hero__title { max-width: 23ch; }
  .yerbas { gap: 1.25rem; }
  .yerba { padding: 0 1.25rem 1.25rem; }
  .yerba__photo { margin: 0 -1.25rem 1.25rem; }
  .yerba__name { font-size: 1.75rem; }
  .yerba__formats, .yerba__stock { font-size: .9375rem; }
}
@media (min-width: 64rem) {
  .soon { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
  .split .section__title { margin-bottom: 0; }
  .yerbas { grid-template-columns: repeat(3, 1fr); }
  .section { padding-block: 7rem; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steam span { animation: none; opacity: 1; transform: translateY(-40vh); }
  *, *::before, *::after { transition: none !important; }
  .hero__inner > *, .yerba__photo img, .hero::before, .faq details[open] > *, .hero__cue .ico { animation: none !important; }
  .reveal { opacity: 1; translate: none; }
}
