/* =========================================================
   VITAHERBS — Premium herbal wellness, brand site
   Palette: sage-white #edf1ed | olive #8e9775 | forest #314e34
   Author: Brian for Jonah (Vitaherbs) — 2026-05-16
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=Noto+Naskh+Arabic:wght@400;600&display=swap');

/* ---------- Tokens ---------- */
:root{
  --sage:        #edf1ed;
  --sage-deep:   #dde6dc;
  --olive:       #8e9775;
  --olive-soft:  #b6bea5;
  --forest:      #314e34;
  --forest-deep: #1f3422;
  --cream:       #f6f3ec;
  --linen:       #ebe5d6;
  --gold:        #b8945c;
  --ink:         #1c1f1c;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic:  'Noto Naskh Arabic', 'Amiri', serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 28px;
  --radius-xl: 48px;

  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);

  --shadow-soft: 0 2px 6px rgba(31,52,34,.04), 0 12px 32px rgba(31,52,34,.06);
  --shadow-lift: 0 4px 14px rgba(31,52,34,.10), 0 26px 60px rgba(31,52,34,.18);

  --max: 1240px;
}

/* ---------- Base ---------- */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  font-size: clamp(15px, 1vw + 12px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap{ width: min(92%, var(--max)); margin-inline: auto; }
.eyebrow{
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--olive);
}
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 400; letter-spacing: -.005em; margin: 0; color: var(--forest); }
h1{ font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.04; }
h2{ font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.08; }
h3{ font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; }
p{ margin: 0 0 1em; }
.lede{ font-size: clamp(1.05rem, 1.2vw + .6rem, 1.35rem); color: rgba(28,31,28,.78); max-width: 56ch; }

/* ---------- Nav ---------- */
.nav{
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  transition: background .3s var(--ease-out), backdrop-filter .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled{
  background: rgba(246,243,236,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(49,78,52,.06);
}
.nav__brand{ display:flex; align-items:center; gap:10px; }
.nav__brand img{ width: 110px; height:auto; transition: opacity .3s; }
.nav__links{ display:none; gap: 28px; }
.nav__links a{
  font-size: 13.5px; font-weight: 500; letter-spacing: .04em;
  color: rgba(28,31,28,.72); position:relative;
}
.nav__links a:hover{ color: var(--forest); }
.nav__links a::after{
  content:''; position:absolute; left:0; bottom:-4px; height:1px; width:0;
  background: var(--forest); transition: width .35s var(--ease-out);
}
.nav__links a:hover::after{ width:100%; }
.nav__cta{
  display:inline-flex; align-items:center; gap:8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--forest); color: var(--cream);
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  transition: transform .3s var(--ease-out), background .3s;
}
.nav__cta:hover{ background: var(--forest-deep); transform: translateY(-1px); }

@media (min-width: 880px){
  .nav__links{ display:flex; }
}

/* ---------- HERO ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 60px;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(184,148,92,.08), transparent 60%),
    radial-gradient(80% 70% at 10% 90%, rgba(142,151,117,.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--sage) 100%);
  overflow: hidden;
}
.hero__grid{
  display: grid; gap: clamp(28px, 5vw, 48px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px){
  .hero__grid{ grid-template-columns: 1.05fr .95fr; }
}
.hero__eyebrow{ margin-bottom: 18px; display:flex; align-items:center; gap:10px; }
.hero__eyebrow::before{ content:''; width:24px; height:1px; background: var(--olive); }
.hero h1{ margin-bottom: 22px; line-height: 1.165; }
.hero h1 .ital{ font-style: italic; color: var(--olive); font-weight: 300; }
.hero h1 .word{ display:inline-block; overflow:hidden; vertical-align: baseline; }
.hero h1 .word > span{
  display:inline-block;
  transform: translateY(110%);
  animation: wordIn .9s var(--ease-out) forwards;
}
.hero h1 .word:nth-child(1) > span{ animation-delay: .1s; }
.hero h1 .word:nth-child(2) > span{ animation-delay: .18s; }
.hero h1 .word:nth-child(3) > span{ animation-delay: .26s; }
.hero h1 .word:nth-child(4) > span{ animation-delay: .34s; }
.hero h1 .word:nth-child(5) > span{ animation-delay: .42s; }
.hero h1 .word:nth-child(6) > span{ animation-delay: .50s; }
.hero h1 .word:nth-child(7) > span{ animation-delay: .58s; }
.hero h1 .word:nth-child(8) > span{ animation-delay: .66s; }
@keyframes wordIn{ to{ transform: translateY(0); } }

.hero__lede{ animation: fadeUp 1s .7s var(--ease-out) backwards; }
.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 28px; animation: fadeUp 1s .9s var(--ease-out) backwards;}
@keyframes fadeUp{ from{ opacity:0; transform: translateY(14px);} to{ opacity:1; transform:none;} }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  border: 1px solid transparent;
  transition: all .35s var(--ease-out);
  will-change: transform;
}
.btn--primary{ background: var(--forest); color: var(--cream); }
.btn--primary:hover{ background: var(--forest-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,52,34,.22); }
.btn--ghost{ background: transparent; color: var(--forest); border-color: rgba(49,78,52,.25); }
.btn--ghost:hover{ background: rgba(49,78,52,.06); border-color: var(--forest); }
.btn svg{ width: 16px; height:16px; transition: transform .35s var(--ease-out); }
.btn:hover svg{ transform: translateX(3px); }

/* Hero stage — Altibra packshot floating */
.hero__stage{
  position: relative; aspect-ratio: 1/1;
  display:flex; align-items:center; justify-content:center;
  animation: fadeUp 1.2s .4s var(--ease-out) backwards;
}
.hero__halo{
  position:absolute; inset: 6% ; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184,148,92,.20), transparent 70%);
  filter: blur(20px);
}
.hero__stage::after{
  content:''; position:absolute; left: 8%; right:8%; bottom: 6%;
  height: 28px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31,52,34,.28), transparent 70%);
  filter: blur(14px);
}
.hero__product{
  position: relative; width: min(86%, 520px); height: auto;
  transform-style: preserve-3d;
  animation: float 8s ease-in-out infinite;
  filter: drop-shadow(0 30px 30px rgba(31,52,34,.12));
}
@keyframes float{ 0%,100%{ transform: translateY(0) rotate(-1deg);} 50%{ transform: translateY(-14px) rotate(1deg);} }

/* Floating chips around hero */
.chip{
  position:absolute; padding: 8px 14px;
  background: rgba(246,243,236,.85); backdrop-filter: blur(8px);
  border:1px solid rgba(49,78,52,.10);
  border-radius: 999px; font-size: 12px; letter-spacing: .04em;
  color: var(--forest); font-weight: 500;
  box-shadow: var(--shadow-soft);
  animation: fadeUp 1s .9s var(--ease-out) backwards;
}
.chip svg{ width:12px; height:12px; vertical-align:-2px; margin-right:6px; color: var(--olive); }
.chip--a{ top: 12%; left: -2%; animation-delay: 1.0s; }
.chip--b{ top: 56%; right: -2%; animation-delay: 1.2s; }
.chip--c{ bottom: 6%; left: 8%; animation-delay: 1.4s; }

.scroll-cue{
  position:absolute; left:50%; bottom: 22px; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size: 10.5px; letter-spacing: .3em; color: rgba(28,31,28,.55);
  text-transform: uppercase;
}
.scroll-cue__line{
  width: 1px; height: 36px; background: rgba(49,78,52,.4);
  animation: scrollDrop 2.4s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes scrollDrop{ 0%{ transform: scaleY(0); } 60%{ transform: scaleY(1);} 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Section base ---------- */
section{ position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.section-head{ max-width: 720px; margin: 0 0 56px; }
.section-head .eyebrow{ display: inline-block; margin-bottom: 14px; }
.section-head h2{ margin-bottom: 16px; }
.section-head p{ color: rgba(28,31,28,.72); max-width: 56ch; }

/* Reveal-on-scroll */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible{ opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .12s; }
.reveal[data-delay="2"]{ transition-delay: .24s; }
.reveal[data-delay="3"]{ transition-delay: .36s; }
.reveal[data-delay="4"]{ transition-delay: .48s; }

/* ---------- STORY ---------- */
.story{
  background: var(--cream);
  position: relative;
}
.story__grid{
  display:grid; gap: clamp(28px, 6vw, 72px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px){ .story__grid{ grid-template-columns: .9fr 1.1fr; align-items: center; } }
.story__media{
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-xl);
  overflow: hidden;
  clip-path: path('M 0 80 Q 0 0 80 0 L 100% 0 Q 100% 100% 80% 100% L 80 100% Q 0 100% 0 80 Z');
  background: var(--linen);
}
.story__media img{ width:100%; height:100%; object-fit: cover; transform: scale(1.08); transition: transform 2s var(--ease-out); }
.story__media.is-visible img{ transform: scale(1); }
.story__media::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(31,52,34,.35));
}
.story__quote{
  position:absolute; left: 24px; right: 24px; bottom: 24px; color: var(--cream);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 1.4vw, 1.4rem); line-height: 1.4;
}
.story__copy h2 .ital{ font-style: italic; color: var(--olive); font-weight: 300; }

/* ---------- RITUAL (How it works) ---------- */
.ritual{ background: linear-gradient(180deg, var(--cream), var(--sage)); }
.ritual__steps{
  display:grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 760px){ .ritual__steps{ grid-template-columns: repeat(3, 1fr); } }
.step{
  position: relative; padding: 36px 28px;
  background: rgba(246,243,236,.6);
  border: 1px solid rgba(49,78,52,.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease-out), box-shadow .4s, background .4s;
}
.step:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); background: rgba(246,243,236,.95); }
.step__num{
  font-family: var(--font-display); font-style: italic; font-size: 14px;
  color: var(--olive); letter-spacing: .08em; margin-bottom: 16px;
}
.step__icon{
  width: 64px; height: 64px; margin-bottom: 18px;
  color: var(--forest);
}
.step h3{ margin-bottom: 10px; }
.step p{ color: rgba(28,31,28,.72); font-size: 14.5px; margin: 0; }

/* ---------- PRODUCTS ---------- */
.products{ background: var(--sage); position: relative; overflow: hidden; }
.products::before{
  content:''; position:absolute; left:-10%; top: 20%; width: 50%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(142,151,117,.25), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.product{
  display:grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 1fr;
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 60px);
  background: rgba(246,243,236,.6);
  border: 1px solid rgba(49,78,52,.08);
  border-radius: var(--radius-xl);
  margin-bottom: 36px;
  position: relative; overflow: hidden;
  transition: transform .6s var(--ease-out);
}
@media (min-width: 900px){
  .product{ grid-template-columns: 1.1fr .9fr; align-items: center; }
  .product--reverse .product__media{ order: 2; }
}
.product__media{
  position:relative; aspect-ratio: 1/1;
  display:flex; align-items:center; justify-content:center;
}
.product__media img{
  width: min(86%, 540px); height: auto;
  object-fit: contain;
  transition: transform .8s var(--ease-out);
  filter: drop-shadow(0 30px 30px rgba(31,52,34,.12));
}
.product:hover .product__media img{ transform: scale(1.04) rotate(-1deg); }
.product__media .price-tag{
  position:absolute; top: 8%; right: 8%;
  background: var(--forest); color: var(--cream);
  padding: 18px 22px; border-radius: 50%;
  font-family: var(--font-display); font-style: italic;
  font-size: 13px; line-height: 1.2; text-align: center;
  transform: rotate(-12deg);
  box-shadow: var(--shadow-lift);
}
.product__media .price-tag strong{ display:block; font-size: 22px; font-style: normal; margin-top: 2px;}
.product__copy h3{ font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 8px; }
.product__sub{
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: var(--olive); margin-bottom: 18px; letter-spacing: .01em;
}
.product__desc{ color: rgba(28,31,28,.74); font-size: 15px; max-width: 52ch; }
.product__specs{
  display:grid; gap: 14px 20px; grid-template-columns: repeat(2, 1fr);
  margin: 24px 0; padding: 20px; background: rgba(255,255,255,.5);
  border-radius: var(--radius); border: 1px solid rgba(49,78,52,.06);
}
.spec{ font-size: 12px; }
.spec span{
  display:block; font-size: 10.5px; text-transform: uppercase;
  color: var(--olive); letter-spacing: .14em; margin-bottom: 4px;
}
.spec strong{ font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--forest); }

.tags{ display:flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag{
  font-size: 11.5px; padding: 6px 12px; border-radius: 999px;
  background: rgba(49,78,52,.08); color: var(--forest);
  letter-spacing: .04em; font-weight: 500;
}

/* ---------- INGREDIENTS / HERITAGE ---------- */
.heritage{
  background: var(--forest);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.heritage h2, .heritage h3{ color: var(--cream); }
.heritage .eyebrow{ color: var(--olive-soft); }
.heritage__grid{
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px){ .heritage__grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px){ .heritage__grid{ grid-template-columns: repeat(4, 1fr); } }
.herb{
  padding: 32px 26px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: background .4s, transform .4s;
}
.herb:hover{ background: rgba(255,255,255,.08); transform: translateY(-4px); }
.herb__icon{
  width: 56px; height: 56px; margin-bottom: 18px;
  color: var(--olive-soft);
}
.herb h3{ font-size: 1.4rem; margin-bottom: 6px; color: var(--cream); }
.herb__ar{
  font-family: var(--font-arabic); font-size: 1.4rem; color: var(--olive-soft);
  direction: rtl; margin-bottom: 14px; line-height: 1.3;
}
.herb p{ color: rgba(246,243,236,.7); font-size: 13.5px; margin: 0; }

/* ---------- BENEFITS marquee ---------- */
.benefits{
  background: var(--forest-deep);
  color: var(--cream);
  padding: 60px 0;
  overflow: hidden;
}
.marquee{
  display:flex; gap: 56px; white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem); color: var(--olive-soft);
}
.marquee span{ display:inline-flex; align-items:center; gap: 56px; }
.marquee span::after{
  content:'✦'; color: var(--gold); font-size: .6em; font-style: normal;
}
@keyframes scroll{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- CONTACT ---------- */
.contact{
  background: linear-gradient(180deg, var(--sage), var(--cream));
  text-align: center;
}
.contact__inner{ max-width: 720px; margin: 0 auto; }
.contact h2{ font-size: clamp(2.2rem, 5vw, 4rem); }
.contact h2 .ital{ font-style: italic; color: var(--olive); font-weight: 300; }
.contact__channels{
  display:flex; gap: 14px; flex-wrap:wrap; justify-content: center; margin-top: 40px;
}
.channel{
  display:inline-flex; align-items:center; gap:10px;
  padding: 16px 24px; border-radius: 999px;
  background: rgba(246,243,236,.7);
  border: 1px solid rgba(49,78,52,.12);
  font-size: 14px; color: var(--forest); font-weight: 500;
  transition: all .35s var(--ease-out);
}
.channel:hover{ background: var(--forest); color: var(--cream); transform: translateY(-2px); }
.channel svg{ width: 18px; height: 18px; }

.channel--whatsapp{ background: var(--forest); color: var(--cream); border-color: var(--forest);}
.channel--whatsapp:hover{ background: #1d8754; border-color:#1d8754; }

/* ---------- FOOTER ---------- */
.footer{ background: var(--forest-deep); color: rgba(246,243,236,.7); padding: 56px 0 32px; font-size: 13px; }
.footer__top{ display:flex; gap: 24px; justify-content: space-between; align-items:center; flex-wrap:wrap; margin-bottom: 28px; }
.footer img{ width: 120px; opacity: .85; }
.footer__bot{
  padding-top: 24px;
  border-top: 1px solid rgba(246,243,236,.08);
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11.5px; color: rgba(246,243,236,.5);
}
.footer__bot a:hover{ color: var(--olive-soft); }

/* ---------- Scroll progress bar ---------- */
.progress{
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--olive), var(--forest));
  width: 0; z-index: 100;
  transition: width .15s linear;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position: fixed; right: clamp(16px, 3vw, 24px); bottom: clamp(16px, 3vw, 24px);
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 60; transition: transform .35s var(--ease-out);
  animation: pulseRing 2.5s ease-out infinite;
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width: 28px; height: 28px; }
@keyframes pulseRing{
  0%{ box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 18px rgba(37,211,102,0); }
  100%{ box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

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

/* ---------- Hover utilities ---------- */
.u-no-touch-hover:hover{ /* placeholder for hover-only styles */ }
@media (hover: hover){ .u-only-hover{ display:initial; } }

/* ---------- Decorative line svg (scroll-drawn) ---------- */
.deco-line{
  position: absolute; pointer-events: none; opacity: .5;
}
.deco-line path{ fill:none; stroke: rgba(49,78,52,.18); stroke-width:1.2; stroke-linecap: round; }
