/* ============================================================
   Pivotal Agro-Services — design system
   Brand green #00A651 sampled from the company logo.
   Modern, clean, flat, card-based with soft layered shadows.
   ============================================================ */

:root {
  /* Brand */
  --green-050: #E6F7EE;
  --green-100: #C7EEDB;
  --green-500: #00B85B;
  --green-600: #00A651;
  --green-700: #008843;
  --green-800: #006B35;
  --green-900: #03432A;
  --earth-600: #7A4E2D;

  /* Neutrals */
  --ink-900: #10231A;
  --ink-700: #2E4438;
  --ink-600: #48604F;
  --ink-400: #7C9184;
  --line: #E3ECE6;
  --surface: #FFFFFF;
  --bg: #F5F9F6;

  /* Elevation — layered low-alpha shadows for the flat/soft look */
  --shadow-sm: 0 1px 2px rgba(16, 35, 26, .05), 0 2px 8px rgba(16, 35, 26, .05);
  --shadow-md: 0 2px 4px rgba(16, 35, 26, .05), 0 8px 24px rgba(16, 35, 26, .09);
  --shadow-lg: 0 4px 8px rgba(16, 35, 26, .06), 0 18px 48px rgba(16, 35, 26, .14);
  --shadow-green: 0 6px 20px rgba(0, 166, 81, .30);

  /* Shape & type */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1180px;
  --header-h: 100px;
  --logo-w: 184px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-800); }
ul { padding: 0; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p  { margin-bottom: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--green-700); color: #fff; padding: .6rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.7rem; border: 0; border-radius: var(--radius-pill);
  font: 600 .95rem/1.2 var(--font); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-green); }
.btn-primary:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-700); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--green-800); box-shadow: var(--shadow-md); }
.btn-light:hover { color: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-outline { background: #fff; color: var(--green-700); border: 1.5px solid var(--green-600); }
.btn-outline:hover { background: var(--green-050); color: var(--green-800); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.site-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.brand img { width: var(--logo-w); height: auto; border-radius: 8px; }
.site-motto {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700); line-height: 1.2; white-space: nowrap;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; }
.main-nav a:not(.btn) {
  display: block; padding: .55rem .95rem; border-radius: var(--radius-pill);
  color: var(--ink-700); font-weight: 600; font-size: .95rem;
  transition: background .15s, color .15s;
}
.main-nav a:not(.btn):hover { color: var(--green-700); background: var(--green-050); }
.main-nav a.is-active { color: var(--green-700); background: var(--green-050); }
.nav-cta { margin-left: .75rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 12px; width: 22px; height: 2px;
  border-radius: 2px; background: var(--ink-900); transition: transform .25s, top .25s, opacity .2s;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (image slideshow, centered content) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(88vh, 760px);
  display: grid; place-items: center; text-align: center;
  background: var(--green-900); /* shown while first image loads */
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides .slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slides .slide.is-active {
  opacity: 1;
  animation: hero-zoom 9s ease-out forwards; /* subtle Ken Burns */
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 34, 22, .62), rgba(6, 34, 22, .45) 45%, rgba(3, 67, 42, .72)),
    radial-gradient(1000px 500px at 50% 110%, rgba(0, 166, 81, .30), transparent 65%);
}
.hero-content {
  position: relative; z-index: 1; max-width: 52rem;
  padding-block: clamp(5rem, 12vw, 8rem);
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: .4rem 1.1rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero-lead {
  margin-top: 1.2rem; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 36rem;
  color: rgba(255,255,255,.94); text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.4rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section-alt { background: var(--surface); }
.section-head { max-width: 44rem; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; color: var(--green-700); font-weight: 800;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .7rem;
}
.section-head p { margin-top: .8rem; color: var(--ink-600); font-size: 1.05rem; }
.section-foot { text-align: center; margin-top: 2.6rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-100); }

/* Category cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; list-style: none; }
.category-card { display: block; padding: 1.5rem 1.4rem; height: 100%; }
.category-card .cat-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green-700);
  border-radius: 13px; margin-bottom: 1rem; font-size: 1.25rem;
}
.category-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.category-card p { font-size: .85rem; color: var(--ink-400); }
.category-card .count {
  display: inline-block; margin-top: .8rem; font-size: .8rem; font-weight: 700; color: var(--green-700);
}

/* Product cards */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem; list-style: none;
}
.product-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-card .thumb {
  display: block; height: 230px; /* preset box — identical for every card */
  background: #fff;
  border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
.product-card .thumb img {
  position: absolute; inset: 1.4rem;
  width: calc(100% - 2.8rem); height: calc(100% - 2.8rem);
  object-fit: contain; /* scales any photo — big or small — into the box */
  transition: transform .3s ease;
}
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body { padding: 1.15rem 1.3rem 1.4rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.product-card h3 { font-size: 1.05rem; }
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--green-700); }
.product-card .excerpt { margin-top: .45rem; font-size: .87rem; color: var(--ink-600); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .more {
  margin-top: 1rem; font-size: .88rem; font-weight: 700; color: var(--green-700);
  display: inline-flex; align-items: center; gap: .35rem;
}
.product-card .more::after { content: "→"; transition: transform .18s; }
.product-card:hover .more::after { transform: translateX(4px); }

.cat-tag {
  display: inline-block; background: var(--green-050); color: var(--green-800);
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .26rem .75rem; border-radius: var(--radius-pill); margin-bottom: .6rem;
}

/* ---------- Filter chips & search ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; }
.chip {
  display: inline-block; padding: .5rem 1.1rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-700); font-size: .88rem; font-weight: 600;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--green-500); color: var(--green-700); transform: translateY(-1px); }
.chip.is-active { background: var(--green-600); border-color: var(--green-600); color: #fff; box-shadow: var(--shadow-green); }

.search-box { position: relative; margin-left: auto; }
.search-box input {
  width: min(320px, 74vw); padding: .68rem 1.1rem .68rem 2.7rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); font: 500 .92rem var(--font); color: var(--ink-900);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(0,166,81,.14); }
.search-box::before {
  content: ""; position: absolute; left: 1rem; top: 50%; translate: 0 -50%;
  width: 16px; height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2348604F" stroke-width="2.4" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>') center/contain no-repeat;
}

.results-meta { font-size: .9rem; color: var(--ink-400); margin-bottom: 1.2rem; }
.empty-state {
  text-align: center; padding: 4rem 1rem; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-600);
}

/* ---------- Feature / why-us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; list-style: none; }
.feature-card { padding: 1.7rem 1.5rem; }
.feature-card .icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green-600), var(--green-500));
  color: #fff; font-size: 1.3rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-green);
}
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { font-size: .92rem; color: var(--ink-600); }

/* Partner strip */
.partner-strip { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; }
.partner-strip li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .55rem 1.25rem; font-weight: 700; font-size: .9rem; color: var(--ink-600);
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(120deg, var(--green-800), var(--green-600));
  color: #fff;
}
.cta-band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem; padding-block: clamp(2.6rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; max-width: 30ch; }
.cta-band p { margin-top: .5rem; color: rgba(255,255,255,.88); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #B9CCC0; font-size: .93rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-brand img { width: 150px; margin-bottom: 1.1rem; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: #B9CCC0; }
.footer-col a:hover { color: #fff; }
address { font-style: normal; }
.footer-phones { margin-top: .7rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: #86A092;
}

/* ---------- Page hero (inner pages, image background) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--green-900);
  color: #fff; padding-block: clamp(3.4rem, 7vw, 5.2rem);
}
.page-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4, 47, 30, .88) 0%, rgba(3, 67, 42, .72) 55%, rgba(0, 136, 67, .55) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { margin-top: .7rem; max-width: 44rem; color: rgba(255,255,255,.9); font-size: 1.05rem; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(300px, 480px) 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: start; }
.product-figure {
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 2.4rem; display: grid; place-items: center;
  position: sticky; top: calc(var(--header-h) + 1.2rem);
}
.product-figure img { max-height: 440px; object-fit: contain; }
.product-info .category-pill {
  display: inline-block; background: var(--green-050); color: var(--green-800);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .35rem .95rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
}
.product-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.product-info .lead { margin-top: 1.1rem; font-size: 1.08rem; color: var(--ink-600); }
.product-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.product-note {
  margin-top: 2rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
  background: var(--green-050); border: 1px solid var(--green-100);
  font-size: .88rem; color: var(--ink-700);
}

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 0 1.2rem; display: grid; gap: .45rem; }
.fact-card { padding: 1.8rem 1.6rem; position: sticky; top: calc(var(--header-h) + 1.2rem); }
.fact-card h3 { margin-bottom: 1.1rem; }
.fact-list { list-style: none; display: grid; gap: .85rem; font-size: .92rem; }
.fact-list b { display: block; color: var(--ink-900); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.timeline { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.timeline li { position: relative; padding-left: 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--green-600);
  box-shadow: 0 0 0 4px var(--green-050);
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-cards { display: grid; gap: 1.1rem; }
.contact-card { padding: 1.5rem 1.5rem; display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-card .icon {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green-700); font-size: 1.2rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.contact-card p, .contact-card a { font-size: .93rem; color: var(--ink-600); }
.contact-card a:hover { color: var(--green-700); }

.form-card { padding: clamp(1.6rem, 4vw, 2.4rem); }
.form-card h2 { margin-bottom: .4rem; }
.form-card > p { color: var(--ink-600); margin-bottom: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: grid; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .88rem; font-weight: 700; color: var(--ink-900); }
.form-field .req { color: var(--green-600); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .78rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #FBFDFB; font: 500 .95rem var(--font); color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(0,166,81,.13);
}
.form-hint { font-size: .8rem; color: var(--ink-400); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.3rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-size: .95rem; font-weight: 500; }
.alert-icon { display: inline-flex; vertical-align: -4px; margin-right: .4rem; color: var(--green-700); }
.alert-success { background: var(--green-050); border: 1px solid var(--green-100); color: var(--green-900); }
.alert-error { background: #FDECEC; border: 1px solid #F5C6C6; color: #8A1F1F; }
.alert ul { margin: .4rem 0 0 1.2rem; }

/* ---------- Spray guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; list-style: none; }
.guide-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; }
.guide-card .icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green-700); font-weight: 800; font-size: .72rem; letter-spacing: .04em;
}
.guide-card h3 { font-size: .96rem; }
.guide-card span { font-size: .8rem; color: var(--ink-400); }

/* ---------- 404 ---------- */
.notfound-hero { display: grid; place-items: center; min-height: min(70vh, 620px); }
.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 5rem); }
.notfound .code {
  font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.35); text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.notfound h1 { margin-top: .4rem; color: #fff; }
.notfound p { margin: 1rem auto 0; max-width: 34rem; color: rgba(255,255,255,.92); }
.notfound .hero-actions { margin-top: 2rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .chip, .product-card .thumb img { transition: none !important; }
  .hero-slides .slide { transition: none; }
  .hero-slides .slide.is-active { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-figure { position: static; max-width: 480px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .fact-card { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 88px; --logo-w: 158px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem;
    transform: translateY(-115%); opacity: 0; visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .main-nav a:not(.btn) { padding: .85rem 1rem; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 80px; --logo-w: 138px; }
  .site-motto { font-size: .68rem; letter-spacing: .06em; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cta-band-actions .btn { width: 100%; }
  .cta-band-actions { width: 100%; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ============================================================
   WordPress compatibility
   ============================================================ */

/* Custom logo in header */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: var(--logo-w); height: auto; border-radius: 8px; }

/* Menu active states from wp_nav_menu */
.main-nav .current-menu-item > a:not(.btn),
.main-nav .current_page_item > a:not(.btn),
.main-nav .current-menu-ancestor > a:not(.btn) { color: var(--green-700); background: var(--green-050); }
.main-nav ul { list-style: none; margin: 0; }
.footer-col ul.menu, .footer-col ul { list-style: none; }

/* Page/editor content */
.page-prose { max-width: 62rem; }
.prose h2 { margin-top: 2.2rem; margin-bottom: .7rem; }
.prose h3 { margin-top: 1.6rem; margin-bottom: .5rem; }
.prose ul, .prose ol { margin: 1rem 0 0 1.2rem; display: grid; gap: .45rem; }
.prose img { border-radius: var(--radius); }
.prose a { text-decoration: underline; text-decoration-color: var(--green-100); }
.prose .wp-block-table table { border-collapse: collapse; width: 100%; }
.prose .wp-block-table td, .prose .wp-block-table th {
  border: 1px solid var(--line); padding: .6rem .8rem; text-align: left;
}
.alignwide, .alignfull { max-width: 100%; }

/* Product single: editor content inherits lead styling */
.product-info .lead p + p { margin-top: .9rem; }

/* Screen-reader text used by WP core */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

/* ============================================================
   Product flyers (brochure PDFs)
   ============================================================ */

/* "View details" pointing at a PDF gets a download glyph instead of the arrow */
.product-card .more.is-flyer::after {
  content: "";
  width: 15px; height: 15px; flex: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23008843" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>') center/contain no-repeat;
  transition: transform .18s;
}
.product-card:hover .more.is-flyer::after { transform: translateY(2px); }

/* Flyer button on the single product page */
.btn-icon { display: inline-flex; }
.btn-meta {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  opacity: .7; margin-left: .1rem;
}

/* ============================================================
   Insights (blog)
   ============================================================ */
.kicker-light { color: #9BE7C0; }
.page-hero .kicker { margin-bottom: .45rem; }

.insights-intro { max-width: 52rem; margin-bottom: 2.4rem; color: var(--ink-600); }

.insights-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.8rem, 4vw, 3rem); align-items: start;
}
.insights-main { min-width: 0; }

/* ---------- Post cards ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem; list-style: none;
}
.post-grid > li.is-featured { grid-column: 1 / -1; }

.post-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.post-card .thumb {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--green-050);
  border-bottom: 1px solid var(--line);
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--green-500);
  background: linear-gradient(140deg, var(--green-050), #fff);
}
.post-card .body { padding: 1.2rem 1.35rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.post-card h3 { font-size: 1.08rem; margin-top: .55rem; }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--green-700); }
.post-card .excerpt { margin-top: .5rem; font-size: .89rem; color: var(--ink-600); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more {
  margin-top: 1.1rem; font-size: .88rem; font-weight: 700; color: var(--green-700);
  display: inline-flex; align-items: center; gap: .35rem;
}
.post-card .more::after { content: "→"; transition: transform .18s; }
.post-card:hover .more::after { transform: translateX(4px); }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--ink-400); font-weight: 600;
}
.post-meta .cat-tag { margin-bottom: 0; }
.post-meta .dot { opacity: .55; }

/* Wide lead card on page 1 */
@media (min-width: 860px) {
  .post-card-lead { flex-direction: row; }
  .post-card-lead .thumb { flex: 0 0 46%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .post-card-lead .body { padding: clamp(1.6rem, 3vw, 2.4rem); justify-content: center; }
  .post-card-lead h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
  .post-card-lead .excerpt { font-size: .98rem; -webkit-line-clamp: 4; flex: 0 1 auto; }
}

/* ---------- Sidebar widgets ---------- */
.insights-sidebar { display: grid; gap: 1.1rem; position: sticky; top: calc(var(--header-h) + 1.2rem); }
.widget { padding: 1.35rem 1.4rem; }
.widget:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.widget-title {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: .95rem;
}
.widget .search-box { margin-left: 0; }
.widget .search-box input { width: 100%; }

.widget-list { list-style: none; display: grid; gap: .1rem; }
.widget-list a {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .5rem .65rem; border-radius: var(--radius-sm);
  color: var(--ink-700); font-size: .92rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.widget-list a:hover, .widget-list a.is-active { background: var(--green-050); color: var(--green-800); }
.widget-list .count {
  flex: none; background: var(--bg); color: var(--ink-400);
  font-size: .74rem; font-weight: 700; padding: .1rem .5rem; border-radius: var(--radius-pill);
}
/* wp_get_archives() prints the count as a sibling of the link, not inside it */
.widget-archive li {
  display: flex; align-items: baseline; gap: .35rem;
  font-size: .8rem; font-weight: 700; color: var(--ink-400);
}
.widget-archive a { flex: 1; justify-content: flex-start; }

.widget-posts { list-style: none; display: grid; gap: .3rem; }
.widget-posts a {
  display: flex; gap: .8rem; align-items: center; padding: .5rem .5rem;
  border-radius: var(--radius-sm); color: var(--ink-700); transition: background .15s;
}
.widget-posts a:hover { background: var(--green-050); }
.widget-posts strong { display: block; font-size: .88rem; font-weight: 700; line-height: 1.35; color: var(--ink-900); }
.widget-posts time { font-size: .76rem; color: var(--ink-400); }
.mini-thumb {
  flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  background: var(--green-050); color: var(--green-600); display: grid; place-items: center;
}
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

.widget-cta { background: linear-gradient(150deg, var(--green-050), #fff); border-color: var(--green-100); }
.widget-cta p { font-size: .9rem; color: var(--ink-600); margin-bottom: 1.1rem; }
.widget-cta .btn { width: 100%; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 2.6rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--ink-700); font-size: .9rem; font-weight: 700;
  transition: all .15s ease;
}
.pagination .page-numbers:hover { border-color: var(--green-500); color: var(--green-700); transform: translateY(-1px); }
.pagination .page-numbers.current {
  background: var(--green-600); border-color: var(--green-600); color: #fff; box-shadow: var(--shadow-green);
}
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- Single post ---------- */
.post-hero .crumbs {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  font-size: .84rem; font-weight: 700; margin-bottom: .8rem;
}
.post-hero .crumbs a { color: #9BE7C0; }
.post-hero .crumbs a:hover { color: #fff; }
.post-hero .crumbs span { color: rgba(255,255,255,.5); }
.post-hero h1 { max-width: 22ch; }
.post-meta-light { color: rgba(255,255,255,.82); margin-top: .9rem; }
.post-meta-light .dot { color: rgba(255,255,255,.5); }

.post-single { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.post-figure { margin: 0; }
.post-figure img { width: 100%; max-height: 460px; object-fit: cover; }
.post-body { padding: clamp(1.5rem, 4vw, 2.6rem); max-width: 46rem; font-size: 1.03rem; }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.post-body blockquote {
  margin: 1.6rem 0; padding: .2rem 0 .2rem 1.3rem;
  border-left: 3px solid var(--green-500); color: var(--ink-600); font-size: 1.08rem; font-style: italic;
}
.post-body figure { margin: 1.6rem 0; }
.post-body figcaption { font-size: .84rem; color: var(--ink-400); margin-top: .5rem; }

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none;
  padding: 0 clamp(1.5rem, 4vw, 2.6rem) 1.4rem; }
.post-tags .chip { font-size: .82rem; }

.post-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  padding: 1.2rem clamp(1.5rem, 4vw, 2.6rem); border-top: 1px solid var(--line); background: #FBFDFB;
}
.post-share > span { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.share-btn {
  padding: .42rem 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: .84rem; font-weight: 600; color: var(--ink-700); transition: all .15s;
}
.share-btn:hover { border-color: var(--green-500); color: var(--green-700); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.post-nav-link { padding: 1.1rem 1.3rem; display: block; }
.post-nav-link span { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: .3rem; }
.post-nav-link strong { color: var(--ink-900); font-size: .95rem; line-height: 1.4; }
.post-nav-link.is-next { text-align: right; grid-column: 2; }

/* Site-wide search page */
.search-box-wide { margin-left: 0; }
.search-box-wide input { width: min(520px, 100%); }

@media (max-width: 900px) {
  .insights-layout { grid-template-columns: 1fr; }
  .insights-sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.is-next { text-align: left; grid-column: 1; }
}
