/* ============================================================
   ECOCUBO DESIGN SYSTEM
   Earth-toned, customer-centric, mobile-first
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --forest:        #2d5016;
  --forest-600:    #3a6a1d;
  --forest-400:    #6b9b3e;
  --forest-200:    #a8c87c;
  --cream:         #f5f1e8;
  --cream-200:     #fbf8f1;
  --cream-50:      #fefdf9;
  --terra:         #c46b3e;
  --terra-600:     #a85628;
  --ink:           #1a1a1a;
  --ink-600:       #3f3f3f;
  --ink-400:       #6b6b6b;
  --ink-200:       #d4d4d4;
  --white:         #ffffff;
  --leaf-glow:     rgba(107, 155, 62, 0.15);

  /* Typography */
  --font-serif:    'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;  --space-6: 2rem;
  --space-8: 3rem;     --space-10: 4rem;   --space-12: 6rem;
  --space-16: 8rem;

  /* Radii + shadows */
  --r-sm: 0.5rem;  --r: 0.875rem;  --r-lg: 1.25rem;  --r-xl: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 4px 16px rgba(45, 80, 22, 0.08);
  --shadow-lg: 0 12px 40px rgba(45, 80, 22, 0.15);

  /* Layout */
  --container: 1240px;
  --header-h: 80px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream-200);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 4.5vw + 1rem, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--ink-600); }

/* Reduced-motion: keep all visual storytelling, only disable parallax-style scroll behaviour. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .leaf-fall { animation-duration: 40s !important; }
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section   { padding-block: clamp(3rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 4rem); }
.eyebrow   { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); margin-bottom: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem; border-radius: var(--r);
  font-weight: 600; font-size: 0.9375rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: var(--cream); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--forest-600); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--terra); color: var(--white); }
.btn-secondary:hover { background: var(--terra-600); }
.btn-ghost { background: transparent; color: var(--forest); border: 2px solid var(--forest); padding: calc(0.875rem - 2px) calc(1.5rem - 2px); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-lg { padding: 1.125rem 2rem; font-size: 1rem; }
.btn-arrow::after { content: '→'; transition: transform 0.25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(45, 80, 22, 0.08);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.375rem; color: var(--forest); }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.9375rem; color: var(--ink-600); position: relative; padding: 0.5rem 0; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--terra); border-radius: 2px; }
.nav-cta { display: none; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--cream-50); padding: 1.5rem;
  border-bottom: 1px solid var(--ink-200);
  transform: translateY(-110%); transition: transform 0.3s var(--ease);
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile a { display: block; padding: 0.875rem 1rem; border-radius: var(--r-sm); font-weight: 500; color: var(--ink); transition: background 0.2s; }
.nav-mobile a:hover, .nav-mobile a.active { background: var(--leaf-glow); color: var(--forest); }
.nav-mobile .btn { margin-top: 0.75rem; width: 100%; justify-content: center; }
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle, .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
  background: radial-gradient(ellipse at top right, var(--leaf-glow), transparent 60%), var(--cream-200);
}
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto;
  width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(196, 107, 62, 0.12), transparent 60%);
  z-index: 0;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text h1 span.accent { color: var(--forest); display: inline-block; position: relative; }
.hero-text h1 span.accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 12px; background: var(--forest-200); opacity: 0.4; border-radius: 100px; z-index: -1; }
.hero-text p.lead { font-size: 1.1875rem; color: var(--ink-600); margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(45, 80, 22, 0.15); }
.hero-stat .num { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--forest); display: block; line-height: 1; }
.hero-stat .label { font-size: 0.8125rem; color: var(--ink-400); margin-top: 0.375rem; display: block; }
.hero-3d { aspect-ratio: 1; max-height: 520px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--leaf-glow), rgba(196, 107, 62, 0.08)); position: relative; overflow: hidden; }
.hero-3d-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.hero-3d-fallback svg { width: 70%; height: 70%; opacity: 0.85; }

/* ---------- Page title (sub-pages) ---------- */
.page-title {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-600) 100%);
  color: var(--cream); padding-block: clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.page-title::after {
  content: ''; position: absolute; right: -10%; top: -50%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 241, 232, 0.08), transparent 70%);
}
.page-title h1 { color: var(--cream); margin-bottom: 0.5rem; position: relative; }
.page-title .breadcrumb { font-size: 0.875rem; opacity: 0.85; position: relative; }
.page-title .breadcrumb a { color: var(--cream); border-bottom: 1px solid rgba(245,241,232,0.4); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.product-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  perspective: 1000px;
}
.product-card:hover { transform: translateY(-6px) rotateX(2deg); box-shadow: var(--shadow-lg); }
.product-card .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover img { transform: scale(1.06); }
.product-card .body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.125rem; color: var(--forest); margin-bottom: 0.375rem; }
.product-card p { font-size: 0.875rem; color: var(--ink-600); line-height: 1.5; flex: 1; }
.product-card .enquire-link { margin-top: 1rem; color: var(--terra); font-weight: 600; font-size: 0.875rem; }

.category-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: end; padding: 1.5rem;
  color: var(--cream); transition: transform 0.4s var(--ease);
  background-size: cover; background-position: center;
}
.category-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.2) 60%, transparent); }
.category-card:hover { transform: translateY(-6px); }
.category-card .body { position: relative; z-index: 1; }
.category-card h3 { color: var(--cream); margin-bottom: 0.25rem; }
.category-card .count { font-size: 0.875rem; opacity: 0.85; }

/* ---------- Specs Table ---------- */
.specs-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 0.9375rem; }
.specs-table thead th { background: var(--forest); color: var(--cream); padding: 1rem 1.25rem; text-align: left; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.specs-table tbody tr { border-bottom: 1px solid var(--ink-200); transition: background 0.2s; }
.specs-table tbody tr:last-child { border-bottom: 0; }
.specs-table tbody tr:hover { background: var(--cream); }
.specs-table td { padding: 0.875rem 1.25rem; color: var(--ink-600); }
.specs-table td:first-child { font-weight: 600; color: var(--ink); }
.specs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }

/* ---------- Process Flow (machinery page) ---------- */
.process-flow { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); position: relative; }
.process-step { background: var(--white); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); position: relative; transition: transform 0.3s var(--ease); }
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.process-step .step-num { position: absolute; top: -14px; left: 1.5rem; background: var(--terra); color: var(--white); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; box-shadow: var(--shadow); }
.process-step h4 { font-family: var(--font-serif); color: var(--forest); margin-bottom: 0.5rem; margin-top: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--ink-600); }
.process-step .step-img { aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 1rem; background: var(--cream); }
.process-step .step-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pillar cards (machinery) ---------- */
.pillar { background: var(--white); border-radius: var(--r-lg); padding: 2rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar .icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--forest), var(--forest-400)); display: flex; align-items: center; justify-content: center; color: var(--cream); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.pillar h3 { color: var(--forest); margin-bottom: 0.5rem; }
.pillar p { font-size: 0.9375rem; }

/* ---------- Filter chips (products page) ---------- */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; padding: 1rem; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.filter-chip { padding: 0.5rem 1.125rem; border-radius: 100px; font-size: 0.875rem; font-weight: 500; color: var(--ink-600); border: 1.5px solid transparent; transition: all 0.2s; }
.filter-chip:hover { background: var(--cream); }
.filter-chip.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* ---------- Certification strip ---------- */
.cert-strip { background: var(--white); padding: 2rem 1.5rem; border-radius: var(--r-lg); display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; align-items: center; box-shadow: var(--shadow-sm); }
.cert-item { text-align: center; }
.cert-item .badge { display: inline-flex; align-items: center; justify-content: center; height: 64px; width: 64px; border-radius: 50%; background: var(--leaf-glow); color: var(--forest); margin-bottom: 0.5rem; font-family: var(--font-serif); font-weight: 700; font-size: 0.75rem; line-height: 1.1; padding: 0.5rem; text-align: center; }
.cert-item .label { font-size: 0.75rem; color: var(--ink-400); font-weight: 500; }
.cert-item strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.875rem; }

/* ---------- Modal (enquiry) ---------- */
dialog.enquiry-modal { padding: 0; border: 0; border-radius: var(--r-lg); background: var(--cream-50); width: min(92vw, 520px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.enquiry-modal::backdrop { background: rgba(26, 26, 26, 0.55); backdrop-filter: blur(4px); }
.modal-head { padding: 1.5rem 1.5rem 0.5rem; display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.modal-head h3 { color: var(--forest); margin: 0; font-size: 1.5rem; }
.modal-head p { font-size: 0.875rem; margin-top: 0.25rem; }
.modal-close { font-size: 1.5rem; color: var(--ink-400); padding: 0.25rem 0.5rem; border-radius: var(--r-sm); transition: background 0.2s; }
.modal-close:hover { background: var(--ink-200); color: var(--ink); }
.modal-body { padding: 1.5rem; }
.modal-body .grid { display: grid; gap: 0.875rem; grid-template-columns: 1fr 1fr; }
.modal-body .grid-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: 0.375rem; }
.field input, .field textarea { width: 100%; padding: 0.75rem 0.875rem; border: 1.5px solid var(--ink-200); border-radius: var(--r-sm); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--forest-400); box-shadow: 0 0 0 3px var(--leaf-glow); }
.field textarea { min-height: 90px; resize: vertical; font-family: inherit; }
.field.error input, .field.error textarea { border-color: var(--terra); }
.field .err-msg { display: none; font-size: 0.75rem; color: var(--terra); margin-top: 0.25rem; }
.field.error .err-msg { display: block; }
.modal-footer { padding: 0 1.5rem 1.5rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.modal-footer .btn { flex: 1; justify-content: center; }
.modal-footer .or { font-size: 0.8125rem; color: var(--ink-400); }
.form-status { padding: 0.875rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: 0.875rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: var(--leaf-glow); color: var(--forest); border: 1px solid var(--forest-400); }
.form-status.error   { background: rgba(196,107,62,0.12); color: var(--terra-600); border: 1px solid var(--terra); }

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--cream); padding-block: 4rem 2rem; margin-top: 4rem; }
.site-footer h4 { color: var(--cream); font-family: var(--font-serif); font-size: 1.125rem; margin-bottom: 1rem; }
.site-footer .grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer p, .site-footer li, .site-footer a { color: rgba(245, 241, 232, 0.85); font-size: 0.9375rem; }
.site-footer a:hover { color: var(--cream); }
.site-footer ul li { padding: 0.25rem 0; }
.site-footer .brand { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--cream); margin-bottom: 0.75rem; display: inline-block; }
.site-footer .contact-line { display: flex; gap: 0.625rem; align-items: start; margin-bottom: 0.5rem; font-size: 0.875rem; }
.site-footer .contact-line svg { flex-shrink: 0; margin-top: 3px; opacity: 0.8; }
.site-footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(245, 241, 232, 0.15); text-align: center; font-size: 0.8125rem; opacity: 0.75; }

/* ---------- Sections + utilities ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { font-size: 1.0625rem; }

.bg-cream { background: var(--cream); }
.bg-cream-50 { background: var(--cream-50); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest p, .bg-forest h2 { color: var(--cream); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 3rem; }
@media (min-width: 880px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-gallery { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.product-gallery .main-img { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); box-shadow: var(--shadow); }
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-bottom: 1rem; }
.product-info .lead { font-size: 1.125rem; color: var(--ink-600); margin-bottom: 1.5rem; }
.usecase-list { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.usecase-list li { padding: 0.4rem 0.875rem; background: var(--leaf-glow); color: var(--forest); border-radius: 100px; font-size: 0.8125rem; font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--terra) 0%, var(--terra-600) 100%); color: var(--white); padding: 3rem; border-radius: var(--r-xl); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.92); margin-bottom: 1.5rem; max-width: 580px; margin-inline: auto; }
.cta-band .btn-primary { background: var(--white); color: var(--terra-600); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ---------- Util ---------- */
.text-center { text-align: center; }
.flex { display: flex; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up    { animation: fadeUp 0.7s var(--ease) both; }
.fade-up-2  { animation: fadeUp 0.7s var(--ease) 0.12s both; }
.fade-up-3  { animation: fadeUp 0.7s var(--ease) 0.24s both; }
.fade-up-4  { animation: fadeUp 0.7s var(--ease) 0.36s both; }

@keyframes float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float            { animation: float 6s ease-in-out infinite; }

@keyframes floatRot { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(8deg); } 100% { transform: translateY(0) rotate(0deg); } }
.float-rot         { animation: floatRot 7s ease-in-out infinite; }

/* ---------- Reveal on scroll (smooth, no jitter) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-2 { transition-delay: 0.1s; }
.reveal-3 { transition-delay: 0.2s; }
.reveal-4 { transition-delay: 0.3s; }

/* ---------- Floating decorative leaves ---------- */
.leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.leaves svg { position: absolute; opacity: 0; }
.leaf-fall {
  position: absolute; pointer-events: none;
  animation: leafDrift 18s linear infinite;
  opacity: 0.5;
  will-change: transform;
}
@keyframes leafDrift {
  0%   { transform: translate(0, -30px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.55; }
  50%  { transform: translate(60px, 50vh) rotate(180deg); }
  90%  { opacity: 0.4; }
  100% { transform: translate(-30px, 100vh) rotate(360deg); opacity: 0; }
}
.leaf-fall.l1 { left: 8%;  animation-delay: 0s;    animation-duration: 18s; }
.leaf-fall.l2 { left: 22%; animation-delay: 4s;    animation-duration: 22s; color: #6b9b3e; }
.leaf-fall.l3 { left: 38%; animation-delay: 9s;    animation-duration: 20s; }
.leaf-fall.l4 { left: 60%; animation-delay: 2s;    animation-duration: 24s; color: #a8c87c; }
.leaf-fall.l5 { left: 78%; animation-delay: 11s;   animation-duration: 19s; }
.leaf-fall.l6 { left: 90%; animation-delay: 6s;    animation-duration: 23s; color: #6b9b3e; }

/* (reduced-motion handling now lives in the global block above) */

/* ---------- Section wave divider ---------- */
.wave-divider { display: block; width: 100%; height: 60px; }
.wave-divider svg { display: block; width: 100%; height: 100%; }

/* ---------- Animated stat counter ---------- */
.stat-num { display: inline-block; transition: transform 0.4s var(--ease); }

/* ---------- Plastic-vs-Compostable visual ---------- */
.versus {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem;
  align-items: stretch; max-width: 980px; margin: 0 auto;
  padding: 2rem; background: var(--white);
  border-radius: var(--r-xl); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.versus-side {
  padding: 1.5rem; border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 0.75rem;
  position: relative;
}
.versus-side.bad {
  background: linear-gradient(135deg, rgba(196,107,62,0.12), rgba(196,107,62,0.04));
  border: 2px solid rgba(196,107,62,0.2);
}
.versus-side.good {
  background: linear-gradient(135deg, rgba(107,155,62,0.18), rgba(107,155,62,0.05));
  border: 2px solid var(--forest-200);
}
.versus-side h3 {
  font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.versus-side.bad  h3 { color: var(--terra-600); }
.versus-side.good h3 { color: var(--forest); }
.versus-side ul { display: flex; flex-direction: column; gap: 0.5rem; }
.versus-side li { display: flex; gap: 0.5rem; align-items: start; font-size: 0.9375rem; color: var(--ink-600); }
.versus-side li::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; }
.versus-side.bad  li::before { background: rgba(196,107,62,0.18); box-shadow: inset 0 0 0 2px var(--terra); }
.versus-side.good li::before { background: rgba(107,155,62,0.22); box-shadow: inset 0 0 0 2px var(--forest-400); }
.versus-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 60px; color: var(--forest);
  font-size: 1.5rem;
  position: relative;
}
.versus-arrow::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--forest-400), transparent);
  transform: translateX(-50%);
}
.versus-arrow span {
  background: var(--forest); color: var(--cream);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: var(--shadow);
  position: relative; z-index: 1;
  animation: pulse 3s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,155,62,0.4), var(--shadow); }
  50%      { box-shadow: 0 0 0 12px rgba(107,155,62,0), var(--shadow); }
}
@media (max-width: 720px) {
  .versus { grid-template-columns: 1fr; }
  .versus-arrow { width: auto; height: 60px; flex-direction: row; }
  .versus-arrow::before { left: 0; right: 0; top: 50%; bottom: auto; height: 2px; width: auto; background: linear-gradient(to right, transparent, var(--forest-400), transparent); }
}

/* ---------- Plastic-free badge ---------- */
.pfree-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--forest); color: var(--cream);
  padding: 0.5rem 1rem; border-radius: 100px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(45,80,22,0.3);
}
.pfree-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--forest-400); box-shadow: 0 0 0 0 var(--forest-400);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(168,200,124,0.7); }
  100% { box-shadow: 0 0 0 12px rgba(168,200,124,0); }
}

/* ---------- Glow accent for hero ---------- */
.glow-accent {
  position: absolute; pointer-events: none; opacity: 0.5;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--forest-200), transparent 65%);
  filter: blur(40px);
  animation: glowDrift 14s ease-in-out infinite;
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.15); }
}

/* ---------- Number ticker ---------- */
.ticker { display: inline-block; min-width: 1ch; font-variant-numeric: tabular-nums; }

/* ---------- Hover lift utility ---------- */
.lift { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- Sticky leaf decorations on hero ---------- */
.hero { position: relative; }
.hero-decor { position: absolute; pointer-events: none; opacity: 0.45; z-index: 0; }
.hero-decor.tl { top: 8%;  left: 4%;  animation: floatRot 10s ease-in-out infinite; }
.hero-decor.br { bottom: 12%; right: 6%; animation: floatRot 13s ease-in-out infinite reverse; }
.hero-decor.ml { top: 50%; left: 48%; animation: float 8s ease-in-out infinite; }
.hero > .container { position: relative; z-index: 2; }

/* ---------- Page-title decorative leaves ---------- */
.page-title { position: relative; }
.page-title::before {
  content: ''; position: absolute; top: -20px; right: 8%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(168,200,124,0.18), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.page-title .container { position: relative; z-index: 1; }

/* ---------- Card extras ---------- */
.product-card .img-wrap { position: relative; }
.product-card .img-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(45,80,22,0.0) 60%, rgba(45,80,22,0.18) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.product-card:hover .img-wrap::after { opacity: 1; }

/* Category card hover scale on bg image */
.category-card { position: relative; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); background-size: 110% auto; background-position: center; }
.category-card:hover { background-size: 125% auto; box-shadow: var(--shadow-lg); }

/* ---------- Hero stats - punched-in feel ---------- */
.hero-stat { transition: transform 0.3s var(--ease); }
.hero-stat:hover { transform: translateY(-3px); }
.hero-stat .num { background: linear-gradient(120deg, var(--forest), var(--forest-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- CTA arrow link with sliding bar ---------- */
.btn-arrow { position: relative; }

/* ---------- Section heading subtle leaf accent ---------- */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ''; display: block; width: 56px; height: 6px; margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--terra), var(--forest-400));
  border-radius: 100px;
}

/* ---------- Animated SVG fallbacks (visible even without 3D) ---------- */
.fb-cube     { transform-origin: center; animation: spinSlow 14s linear infinite; }
.fb-leaf-top { transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
.fb-particle { animation: orbit 8s linear infinite; transform-box: fill-box; transform-origin: center; }
.fb-particle:nth-child(2) { animation-duration: 11s; animation-delay: -2s; }
.fb-particle:nth-child(3) { animation-duration: 13s; animation-delay: -5s; }
.fb-particle:nth-child(4) { animation-duration: 9s;  animation-delay: -7s; }

@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sway     { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes orbit    { from { transform: rotate(0deg) translateX(70px) rotate(0deg); } to { transform: rotate(360deg) translateX(70px) rotate(-360deg); } }

/* Machinery fallback specific */
.fb-granule  { animation: drop 1.6s ease-in infinite; }
.fb-granule:nth-child(2) { animation-delay: 0.4s; }
.fb-granule:nth-child(3) { animation-delay: 0.8s; }
.fb-granule:nth-child(4) { animation-delay: 1.2s; }
.fb-bubble   { animation: breathe 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.fb-heat     { animation: heatPulse 2.2s ease-in-out infinite; }
.fb-heat:nth-of-type(2) { animation-delay: 0.4s; }
.fb-heat:nth-of-type(3) { animation-delay: 0.8s; }
.fb-flow-dot { animation: flowDot 3.2s ease-in-out infinite; }
.fb-flow-dot:nth-child(2) { animation-delay: 0.5s; }
.fb-flow-dot:nth-child(3) { animation-delay: 1.0s; }

@keyframes drop      { 0% { transform: translateY(-20px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@keyframes breathe   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes heatPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes flowDot   { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(80px); opacity: 0; } }

/* ---------- Animated underline on accent words ---------- */
.hero-text h1 span.accent::after { animation: dashGrow 1.4s var(--ease) 0.6s both; transform-origin: left; }
@keyframes dashGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Partner card ---------- */
.partner-card {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .partner-card { grid-template-columns: 200px 1fr; }
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  background: var(--cream);
  border-radius: var(--r-lg);
  min-height: 160px;
}
.partner-logo img {
  max-width: 150px;
  height: auto;
}
.partner-info h3 {
  color: var(--forest);
  margin-bottom: 0.375rem;
  font-size: 1.75rem;
}
.partner-tagline {
  font-weight: 600;
  color: var(--ink-600);
  font-size: 1rem;
  margin-bottom: 0.875rem;
  font-style: italic;
}
.partner-certs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.cert-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.875rem;
  background: var(--leaf-glow);
  color: var(--forest);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(107,155,62,0.3);
  white-space: nowrap;
}
.partner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ---------- 5-column category grid ---------- */
.card-grid.cols-5 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* ---------- PeelON category card accent ---------- */
.category-card.peelon-card .body {
  background: linear-gradient(to top, rgba(0,40,20,0.82) 0%, rgba(0,40,20,0.3) 100%);
}
.category-card.peelon-card .body h3::after {
  content: ' ✦';
  font-size: 0.65em;
  opacity: 0.7;
}

