/* ============================================================
   NEX HERBAL REMEDIES — Design System v2
   Concept: "The Living Formulary" — bright herbal-nutraceutical
   brand energy: deep greens, golden amber, light-yellow warmth,
   with a fluorescent lime accent for moments of energy.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Caveat:wght@600;700&display=swap');

:root{
  /* --- Color tokens --- */
  --yellow-50:  #FFFDF4;
  --yellow-100: #FFF6D8;
  --yellow-200: #FFEA9C;
  --green-900:  #0E3B22;
  --green-800:  #145C34;
  --green-700:  #187A42;
  --green-500:  #2AA855;
  --green-pale: #E5F5E4;
  --neon:       #9CFF3D;
  --neon-deep:  #6FCF1F;
  --gold-600:   #D9A404;
  --gold-700:   #B3830A;
  --ink:        #16241A;
  --ink-soft:   #4E5B4F;
  --line:       #E9DFAC;
  --white:      #FFFFFF;

  --font-display: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-script: 'Caveat', cursive;

  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--yellow-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--green-900);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1{ font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.06; font-weight: 800; }
h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.18; }
h3{ font-size: 1.2rem; line-height: 1.3; }
p{ margin: 0 0 1em; color: var(--ink); }
.lede{ font-size: 1.13rem; color: var(--ink-soft); max-width: 46em; }

.script{
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--green-700);
  font-size: 1.5rem;
  line-height: 1;
}

/* --- Layout --- */
.wrap{ max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section{ padding: 84px 0; }
.section--tight{ padding: 52px 0; }
.section--green{ background: linear-gradient(160deg, var(--green-900), var(--green-800) 70%); color: #E7F3E5; position:relative; overflow:hidden; }
.section--green h2, .section--green h3{ color: var(--white); }
.section--green p{ color: #CFE4CC; }
.section--yellow{ background: var(--yellow-100); }

.grid{ display:grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* --- Eyebrow --- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before{
  content:"";
  width: 24px; height: 2px;
  background: var(--neon-deep);
  display:inline-block;
  border-radius: 2px;
}
.section--green .eyebrow{ color: var(--neon); }

/* --- Buttons --- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--green-900);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  position: relative;
}
.btn-primary{
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(156,255,61,0.5);
  animation: glowPulse 2.6s ease-in-out infinite;
}
.btn-primary:hover{ transform: translateY(-2px); background: var(--green-700); }
@keyframes glowPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(156,255,61,0.35); }
  50%{ box-shadow: 0 0 0 8px rgba(156,255,61,0); }
}
.btn-outline{ background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn-outline:hover{ background: var(--green-900); color: var(--white); transform: translateY(-2px); }
.section--green .btn-outline{ color: var(--white); border-color: var(--neon); }
.section--green .btn-outline:hover{ background: var(--neon); color: var(--green-900); }
.section--green .btn-primary{ background: var(--neon); color: var(--green-900); border-color: var(--neon); }
.section--green .btn-primary:hover{ background: #b6ff70; }

/* ============================================================
   SIGNATURE — Seal Badge (mirrors the round quality seals
   printed on the product packaging)
   ============================================================ */
.seal-row{ display:flex; flex-wrap:wrap; gap: 22px; }
.seal{
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--white);
  border: 2px dashed var(--gold-600);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding: 12px;
  gap: 4px;
  box-shadow: 0 6px 18px rgba(20,92,52,0.1);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.seal:hover{ transform: translateY(-4px) rotate(-2deg); border-color: var(--green-700); box-shadow: 0 12px 24px rgba(20,92,52,0.18); }
.seal .seal-icon{ font-size: 1.6rem; line-height:1; }
.seal .seal-label{
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green-900);
  font-weight: 600;
}

/* --- Marquee strip --- */
.marquee{
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 14px 0;
}
.marquee-track{
  display: inline-flex;
  gap: 46px;
  animation: marquee 26s linear infinite;
}
.marquee span{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  display: inline-flex;
  align-items:center;
  gap: 10px;
}
.marquee span::before{ content:"✦"; color: var(--gold-600); }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* --- Cards --- */
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover{ transform: translateY(-5px); box-shadow: 0 16px 30px rgba(20,92,52,0.1); }
.card h3{ margin-bottom: 8px; }
.card p{ color: var(--ink-soft); font-size: 0.96rem; margin-bottom:0; }

.pill-row{ display:flex; flex-wrap:wrap; gap: 12px; }
.pill{
  font-size: 0.85rem;
  font-weight:500;
  background: var(--green-pale);
  color: var(--green-800);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--green-500);
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pill:hover{ transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20,92,52,0.12); }
.pill svg, .pill-ico{
  width: 20px !important; height: 20px !important;
  min-width: 20px;
  display: inline-block;
  margin-right: 7px;
  flex: none;
}

.num-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 14px; }
.num-list li{
  display:flex; gap: 16px; align-items:flex-start;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-600);
  border-radius: var(--radius-sm);
  transition: transform .25s ease;
}
.num-list li:hover{ transform: translateX(4px); }
.num-list .n{ font-family: var(--font-mono); color: var(--gold-700); font-size: 0.8rem; padding-top: 2px; }

/* ============================================================
   PRODUCT TEASER CARD (home page)
   ============================================================ */
.prod-teaser{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  text-align:center;
  transition: transform .3s ease, box-shadow .3s ease;
  display:flex; flex-direction:column;
}
.prod-teaser:hover{ transform: translateY(-6px); box-shadow: 0 18px 34px rgba(20,92,52,0.14); }
.prod-teaser .pt-img{
  aspect-ratio: 1/1;
  overflow:hidden;
  background: var(--yellow-100);
}
.prod-teaser .pt-img img{
  width:100%; height:100%; object-fit: cover;
  transition: transform .5s ease;
}
.prod-teaser:hover .pt-img img{ transform: scale(1.08); }
.prod-teaser .pt-body{ padding: 20px 20px 24px; }
.prod-teaser .pt-cat{
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* ============================================================
   PRODUCT DETAIL BLOCK (products page)
   ============================================================ */
.product-block{
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  overflow:hidden;
  margin-bottom: 46px;
}
.product-block-top{
  display:grid;
  grid-template-columns: 340px 1fr;
}
.product-photo{
  background: linear-gradient(160deg, var(--yellow-100), var(--yellow-50));
  display:flex; align-items:center; justify-content:center;
  padding: 26px;
  position:relative;
}
.product-photo img{
  max-height: 340px;
  width:auto;
  margin:0 auto;
  filter: drop-shadow(0 18px 22px rgba(20,60,30,0.18));
  transition: transform .4s ease;
}
.product-block:hover .product-photo img{ transform: scale(1.04) rotate(-1deg); }
.product-info{ padding: 34px 36px; }
.product-info .pcat{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.product-info h3{ font-size: 1.7rem; margin: 8px 0 4px; color: var(--green-900); }
.product-info .pform{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 16px; display:block; }
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.tag{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--green-pale);
  color: var(--green-800);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--green-500);
}
.tag.gold{ background: #FDF2CC; color: var(--gold-700); border-color: var(--gold-600); }

.product-benefits{ list-style:none; margin: 0 0 22px; padding:0; display:grid; gap: 10px; }
.product-benefits li{
  padding-left: 26px; position: relative; font-size: 0.95rem; color: var(--ink);
}
.product-benefits li::before{
  content:"✓";
  position:absolute; left:0; top:0;
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.85rem;
}
.dosage-box{
  font-family: var(--font-mono);
  font-size: 0.83rem;
  background: var(--yellow-100);
  border: 1px dashed var(--gold-600);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--green-900);
}
.dosage-box b{ color: var(--gold-700); }

.product-infographic{ border-top: 1px solid var(--line); }
.product-infographic img{ width:100%; display:block; }
.product-infographic-toggle{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--yellow-100);
  cursor: pointer;
  border: none;
  width: 100%;
  transition: background .2s ease;
}
.product-infographic-toggle:hover{ background: var(--yellow-200); }
.product-infographic-toggle .chev{ display:inline-block; transition: transform .3s ease; }
.product-infographic-toggle.open .chev{ transform: rotate(180deg); }
.product-infographic-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}
.product-infographic-panel.open{ max-height: 2400px; }

@media (max-width: 780px){
  .product-block-top{ grid-template-columns: 1fr; }
  .product-photo img{ max-height: 260px; }
  .product-info{ padding: 26px 22px; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,253,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav{
  max-width: 1160px; margin:0 auto; padding: 12px 28px;
  display:flex; align-items:center; justify-content: space-between;
}
.brand{ display:flex; align-items:center; gap: 10px; }
.brand img{ height: 46px; width:auto; }
.nav-links{ list-style:none; display:flex; gap: 28px; margin:0; padding:0; }
.nav-links a{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--green-800); border-color: var(--neon-deep); }
.menu-toggle{
  display:none;
  font-family: var(--font-display); font-weight:600;
  font-size: 0.85rem;
  background: var(--green-800); color:#fff;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  cursor:pointer;
}
@media (max-width: 860px){
  .menu-toggle{ display:inline-block; }
  .nav-links{
    display:none; position:absolute; top: 100%; left:0; right:0;
    background: var(--yellow-50);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0;
  }
  .nav-links.show{ display:flex; }
  .nav-links li{ border-top: 1px solid var(--line); }
  .nav-links a{ display:block; padding: 14px 28px; border-bottom:none; }
}

/* ============================================================
   HERO with slideshow
   ============================================================ */
.hero{
  position: relative;
  min-height: 88vh;
  display:flex; align-items:center;
  overflow: hidden;
  color: var(--white);
}
.hero-slideshow{ position:absolute; inset:0; z-index:0; }
.hero-slideshow img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; animation: heroFade 20s infinite;
}
.hero-slideshow img:nth-child(1){ animation-delay: 0s; }
.hero-slideshow img:nth-child(2){ animation-delay: 4s; }
.hero-slideshow img:nth-child(3){ animation-delay: 8s; }
.hero-slideshow img:nth-child(4){ animation-delay: 12s; }
.hero-slideshow img:nth-child(5){ animation-delay: 16s; }
@keyframes heroFade{
  0%{ opacity:0; }
  4%{ opacity:1; }
  20%{ opacity:1; }
  26%{ opacity:0; }
  100%{ opacity:0; }
}
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(120deg, rgba(14,59,34,0.93) 0%, rgba(14,59,34,0.82) 45%, rgba(14,59,34,0.55) 100%);
}
.hero-inner{ position:relative; z-index:2; max-width: 720px; padding: 60px 0; }
.hero .eyebrow{ color: var(--neon); }
.hero h1{ color: var(--white); }
.hero-tagline{ font-family: var(--font-script); font-size: 1.7rem; color: var(--yellow-200); margin-top: 4px; }
.hero p.lede{ color: #DCEBDA; }
.hero-cta{ display:flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero.hero--small{ min-height: 46vh; }
.hero .btn-outline{ color: var(--white); border-color: rgba(255,255,255,0.75); }
.hero .btn-outline:hover{ background: var(--white); color: var(--green-900); }
.hero .btn-primary{ background: var(--neon); color: var(--green-900); border-color: var(--neon); }
.hero .btn-primary:hover{ background: #b6ff70; }

/* --- Reveal-on-scroll animation --- */
.reveal{ opacity:0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; }
.reveal-delay-3{ transition-delay: .3s; }
.reveal-delay-4{ transition-delay: .4s; }

/* --- Stat counters --- */
.stat-row{ display:flex; flex-wrap:wrap; gap: 40px; }
.stat{ text-align:left; }
.stat .stat-num{
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.6rem; color: var(--neon);
  line-height:1;
}
.stat .stat-label{
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform:uppercase;
  color: #CFE4CC; margin-top: 8px; display:block;
}

/* --- Leaf motif decoration --- */
.leaf-deco{
  position:absolute;
  width: 160px; opacity: 0.14;
  animation: sway 7s ease-in-out infinite;
  pointer-events:none;
}
@keyframes sway{
  0%, 100%{ transform: rotate(-4deg) translateY(0); }
  50%{ transform: rotate(4deg) translateY(-10px); }
}
.leaf-border{
  height: 46px;
  background-image: url('images/leaf-motif.png');
  background-repeat: repeat-x;
  background-size: 46px auto;
  background-position: center;
  opacity: 0.9;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background: var(--green-900); color: #B9D2B6; padding: 0 0 30px; position:relative; }
.footer-main{ padding: 64px 0 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4{
  color: var(--neon); font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-logo{ height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer a{ color: #B9D2B6; transition: color .2s ease; }
.site-footer a:hover{ color: var(--neon); }
.footer-links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px; margin: 0 28px;
  display:flex; justify-content: space-between; flex-wrap:wrap; gap: 10px;
  font-size: 0.8rem; color: #7FA07C; font-family: var(--font-mono);
  max-width: 1160px; margin-left:auto; margin-right:auto;
}

a:focus-visible, button:focus-visible{ outline: 2px solid var(--neon-deep); outline-offset: 2px; }
