/* =================================================================
   Ecoze 2.0 — Design System
   Natural Living, Made Simple.
   ================================================================= */

/* ----- 1. Design Tokens ----- */
:root {
  /* Brand */
  --green:        #5a9e2f;   /* primary action / accent (AA on white) */
  --green-logo:   #83b256;   /* logo green, used on dark + decorative */
  --green-deep:   #3f7a1e;   /* hover / pressed */
  --green-soft:   #eef4e6;   /* tinted surface */
  --green-mist:   #f4f8ee;   /* lightest tint */

  --ink:          #141613;   /* near-black text */
  --ink-2:        #2b2f29;   /* headings on light */
  --muted:        #5a6157;   /* secondary text (AA on white) */
  --muted-2:      #868d80;   /* tertiary */
  --line:         #e7e8e1;   /* hairline borders */

  --bg:           #fcfcf9;   /* page background, warm white */
  --surface:      #ffffff;   /* cards */
  --surface-2:    #f7f8f3;   /* alt section */
  --ink-surface:  #141613;   /* dark section bg */

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (8pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* Shadow (subtle, natural) */
  --shadow-sm: 0 1px 2px rgba(20,22,19,.04), 0 2px 6px rgba(20,22,19,.05);
  --shadow-md: 0 4px 12px rgba(20,22,19,.06), 0 12px 30px rgba(20,22,19,.07);
  --shadow-lg: 0 20px 50px rgba(20,22,19,.10);

  /* Layout */
  --container: 1200px;
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: 160ms; --t-mid: 260ms;

  /* Breakpoint scale (reference — CSS @media can't read custom props,
     but ALL media queries in this project use these canonical values):
       --bp-nav:  980px   header collapses to hamburger
       --bp-lg:   960px   4/3-col grids -> 2-col
       --bp-md:   880px   split layouts / footer -> stacked or 2-col
       --bp-sm:   600px   single column / mobile hero
       --bp-xs:   480px   smallest phones
     Avoid introducing new breakpoint values; reuse the scale above. */
}

/* ----- 2. Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--green-soft); color: var(--green-deep); }

.skip-link {
  position: absolute; left: 12px; top: -100px;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--r-sm); z-index: 1000; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ----- 3. Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 460;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--muted); max-width: 65ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); line-height: 1.6; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px;
}

/* ----- 4. Layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: clamp(var(--s-8), 11vw, var(--s-10)); }
.section--tight { padding-block: var(--s-8); }
.section--mist { background: var(--green-mist); }
.section--surface2 { background: var(--surface-2); }
.section--ink { background: var(--ink-surface); color: #e9ece6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #aab2a3; }

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--s-4); }
.section-head p { margin-top: var(--s-4); }
.section-head.center p { margin-inline: auto; }

.grid { display: grid; gap: var(--s-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ----- 5. Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-6);
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-deep); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--green-mist); }

.btn--lg { min-height: 58px; font-size: 1.05rem; padding: 0 var(--s-7); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; color: var(--green-deep);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ----- 6. Header / Nav -----
   The live header markup is `.site-header2` / `.hdr` / `.menu-toggle`
   (see section "Shared header" below). It collapses to a hamburger at
   the shared --bp-nav breakpoint (980px). The previous `.site-header` /
   `.nav-links` / `.nav-toggle` system was orphaned dead code (never in the
   DOM) and has been removed. `.brand` is retained — it's used by the live header. */
.brand { display: flex; align-items: center; }

/* ----- 7. Hero ----- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(131,178,86,.16), transparent 70%),
    radial-gradient(50% 50% at 5% 90%, rgba(90,158,47,.10), transparent 70%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center;
  padding-block: clamp(var(--s-7), 8vw, var(--s-10));
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); } }
.hero-copy .display { margin-block: var(--s-4); }
.hero-copy .lead { max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .blob {
  position: absolute; inset: 4% ; z-index: 0;
  background: radial-gradient(circle at 35% 30%, var(--green-soft), var(--green-mist));
  border-radius: 48% 52% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px);
}
.hero-visual .bottle-art { position: relative; z-index: 1; width: min(380px, 80%); filter: drop-shadow(0 30px 40px rgba(20,22,19,.16)); }

/* ----- 8. Trust bar ----- */
.trustbar { border-block: 1px solid var(--line); background: var(--surface); }
.trustbar .container { padding-block: var(--s-5); }
.trustbar-title { text-align: center; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-2); margin-bottom: var(--s-4); }
.trust-items { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4) var(--s-6); }
.trust-item { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 550; font-size: 0.95rem; color: var(--ink-2); }
.trust-item svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ----- 9. Cards ----- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

/* category card */
.cat-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.cat-card .cat-visual {
  aspect-ratio: 16/11; display: grid; place-items: center;
  background: var(--green-mist); position: relative; overflow: hidden;
}
.cat-card .cat-visual svg.bottle-art { width: 46%; filter: drop-shadow(0 14px 18px rgba(20,22,19,.12)); transition: transform var(--t-mid) var(--ease); }
.cat-card:hover .cat-visual svg.bottle-art { transform: translateY(-6px) scale(1.03); }
.cat-card .cat-body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.cat-card h3 { color: var(--ink-2); }
.cat-card .tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.tag {
  font-size: 0.8rem; font-weight: 550; color: var(--green-deep);
  background: var(--green-soft); padding: 5px 12px; border-radius: var(--r-pill);
}

/* feature (why) */
.feature { display: flex; flex-direction: column; gap: var(--s-3); }
.feature .ic {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep);
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3, .feature h4 { color: var(--ink-2); font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

/* product card */
.product-card { padding: 0; overflow: hidden; }
.product-card .p-visual { aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.product-card .p-visual svg.bottle-art { width: 52%; transition: transform var(--t-mid) var(--ease); }
.product-card .p-visual img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform var(--t-mid) var(--ease); }
.product-card:hover .p-visual img { transform: translateY(-5px); }
.product-card:hover .p-visual svg.bottle-art { transform: translateY(-5px); }
.product-card .p-body { padding: var(--s-5); }
.product-card .p-body h3 { margin-bottom: 6px; font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink-2); }
.product-card .p-body p { font-size: 0.95rem; }

/* ----- 10. Split / About preview ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--s-7); } .split.reverse .split-media { order: 0; } }
.split-media {
  aspect-ratio: 4/3.4; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(circle at 30% 25%, var(--green-soft), var(--green-mist));
  display: grid; place-items: center; position: relative;
}
.split-media svg.bottle-art { width: 50%; filter: drop-shadow(0 24px 30px rgba(20,22,19,.14)); }

/* split-media holding a real product photo (no gradient box, no crop) */
.split-media.whyimg { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; display: grid; place-items: center; }
.split-media.whyimg img { width: 100%; max-width: 400px; height: auto; border-radius: 18px; box-shadow: var(--shadow-md); }

/* stat row */
.stats { display: flex; flex-wrap: wrap; gap: var(--s-7); margin-top: var(--s-6); }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--green-deep); line-height: 1; }
.stat .lbl { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }

/* checklist */
.checklist { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--ink-2); font-weight: 500; }
.checklist svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }

/* ----- 11. CTA band ----- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(var(--s-7), 7vw, var(--s-9)); text-align: center; background: var(--ink-surface); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(131,178,86,.28), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c2c9bb; margin: var(--s-4) auto var(--s-6); }

/* ----- 12. Footer ----- */
.site-footer { background: var(--ink-surface); color: #aab2a3; padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand p { color: #8b9384; margin-top: var(--s-4); max-width: 32ch; }
.footer-col .footer-heading { color: #fff; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; margin-bottom: var(--s-4); letter-spacing: 0.02em; }
.footer-col a { display: block; padding: 7px 0; color: #aab2a3; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--green-logo); }
.foot-addr { font-style: normal; color: #8b9384; font-size: 0.92rem; line-height: 1.65; margin-bottom: 10px; max-width: 32ch; }

/* ----- Blog ----- */
.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.blog-card .b-visual { aspect-ratio: 16/10; background: var(--green-mist); display: grid; place-items: center; color: var(--green-deep); }
.blog-card .b-visual svg { width: 56px; height: 56px; }
.blog-card .b-body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.blog-card h3 { font-size: 1.25rem; color: var(--ink-2); }
.blog-card p { font-size: 0.97rem; margin: 0; }
.blog-card .link-arrow { margin-top: auto; }
.blog-meta { font-size: 0.85rem; color: var(--muted-2); }

/* ----- Article ----- */
.article { max-width: 760px; margin-inline: auto; }
.article p { max-width: none; margin-top: var(--s-4); }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: var(--s-7); }
.article ul.bullets { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.article ul.bullets li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--ink-2); }
.article ul.bullets li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--green); flex: none; }
.article .article-cta { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }

/* ----- Shared header (announcement bar + topbar nav) ----- */
.topbar { background: #163310; color: #eaf3e2; font-size: 13.5px; font-weight: 500; }
.topbar .bar { display: flex; justify-content: center; align-items: center; overflow: hidden; max-width: 1440px; margin: 0 auto; padding: 9px 28px; }
.topbar .ticker { display: flex; }
.topbar .ticker-group { display: flex; align-items: center; flex: none; }
.topbar .ticker-group:nth-child(2) { display: none; }
.topbar .item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar .ticker-group .item { margin-right: 48px; }
.topbar .ticker-group .item:last-child { margin-right: 0; }
.topbar .item svg { width: 15px; height: 15px; color: #9cd06a; flex: none; }
@media (max-width: 880px) {
  .topbar .bar { justify-content: flex-start; }
  .topbar .ticker { animation: ticker-scroll 24s linear infinite; }
  .topbar .ticker-group:nth-child(2) { display: flex; }
  .topbar .ticker-group .item:last-child { margin-right: 48px; }
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .topbar .ticker { animation: none; } }

.site-header2 { position: sticky; top: 0; z-index: 100; background: #fcfcf9; border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 12px 28px; }
.hdr .brand img { height: 50px; width: auto; }
.hdr nav { display: flex; align-items: center; gap: 26px; }
.hdr nav a { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: #3a3f37; position: relative; padding: 6px 0; }
.hdr nav a:hover { color: var(--green-deep); }
.hdr nav a.active { color: var(--green-deep); font-weight: 600; }
.hdr nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--green-deep); border-radius: 2px; }
.hdr .actions { display: flex; align-items: center; gap: 14px; }
.btn-contact { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; padding: 0 20px; border-radius: 8px; transition: background .2s; }
.btn-contact:hover { background: var(--green-deep); }
.btn-contact svg { width: 16px; height: 16px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: #222; }
.menu-toggle svg { width: 24px; height: 24px; }
@media (max-width: 1040px) { .hdr nav { gap: 18px; } .hdr nav a { font-size: 14px; } }
@media (max-width: 980px) {
  .hdr nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fcfcf9; border-bottom: 1px solid var(--line); box-shadow: 0 12px 26px rgba(0,0,0,.08); padding: 14px 28px; display: none; }
  .site-header2.nav-open nav { display: flex; }
  .hdr nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 4px; font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .btn-contact { display: none; }
}
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; align-items: center;
  font-size: 0.88rem; color: #8b9384;
}

/* ----- 13. Page hero (interior) ----- */
.page-hero { background: var(--green-mist); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(var(--s-8), 9vw, var(--s-9)); }
.page-hero .eyebrow { margin-bottom: var(--s-4); }
.page-hero p { margin-top: var(--s-5); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s-5); }
.breadcrumb a:hover { color: var(--green-deep); }

/* ----- 14. Forms (contact) ----- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.field label .req { color: var(--green-deep); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; min-height: 52px; width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft);
}
.field .help { font-size: 0.85rem; color: var(--muted-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: var(--s-5); }
.info-item { display: flex; gap: var(--s-4); align-items: flex-start; }
.info-item .ic { width: 44px; height: 44px; flex: none; border-radius: var(--r-md); background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item h4 { margin-bottom: 2px; }
.info-item p { font-size: 0.97rem; margin: 0; }

/* ----- 15. Misc ----- */
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s-7); }
.text-center { text-align: center; }
.mt-6 { margin-top: var(--s-6); }

/* ----- 16. Scroll reveal ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .card, .link-arrow svg, .cat-card .cat-visual svg { transition: none !important; }
}
