/* ==========================================================================
   Tropicoir - styles.css
   One shared stylesheet for every page. Mobile-first.

   CONCEPT: a clean, confident B2B look built from the Tropicoir brand mark -
   deep palm green + coir brown on white and warm sand, with the logo's lime
   as a small accent. Generous whitespace, large photography, tabular specs.

   Palette (from the logo):
     --green      #136B3E   brand green  (primary buttons, links, icons)
     --green-900  #0C3B22   deepest green (footer, hero overlays)
     --lime       #8DC63F   logo lime (accents, rules - never small text)
     --brown      #8F4122   coir brown  (accent buttons, highlights)
     --sand       #F7F3EC   warm sand   (alternate section grounds)
     --ink        #1C1A17   near-black text
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --green-900: #0C3B22;
  --green-800: #0F5030;
  --green: #136B3E;
  --green-ink: #0E5A34;
  --green-soft: #E4F0E8;
  --lime: #8DC63F;
  --lime-deep: #6FA52A;
  --lime-soft: #EEF6E3;
  --brown: #8F4122;
  --brown-deep: #6E3118;
  --brown-soft: #F4EAE2;
  --sand: #F7F3EC;
  --sand-2: #EFE8DC;
  --paper: #FFFFFF;
  --ink: #1C1A17;
  --ink-2: #57524A;
  --ink-3: #85807A;
  --line: #E6E0D5;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Jost", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 2px 10px rgba(28, 26, 23, 0.06);
  --shadow-md: 0 14px 34px rgba(28, 26, 23, 0.10);
  --shadow-lg: 0 24px 56px rgba(12, 59, 34, 0.18);

  --t-fast: 160ms ease;
  --t-med: 280ms cubic-bezier(.2, .7, .3, 1);

  --header-h: 104px;   /* keeps clear space around the 74px logo */
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
strong { font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--green-900); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; flex: none; }

/* Typography helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--lime); border-radius: 2px; }
.bg-green .eyebrow, .cta-band .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--lime); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--t-fast); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn-accent:hover { background: var(--brown-deep); border-color: var(--brown-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--green-ink); border-color: currentColor; }
.btn-outline:hover { background: var(--green-soft); color: var(--green-900); }
.btn-light { background: #fff; color: var(--green-900); border-color: #fff; }
.btn-light:hover { background: var(--lime-soft); color: var(--green-900); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: .8rem; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--green-ink); }
.text-link .icon { width: 1.1em; height: 1.1em; transition: transform var(--t-fast); }
.text-link:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;   /* no backdrop-filter: it would trap the fixed mobile nav panel inside the header */
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
/* flex: none stops the header squeezing the brand: with a fixed height and
   max-width:100% the logo would be squashed horizontally rather than scaled. */
.brand { flex: none; }
.brand img { width: auto; height: 74px; max-width: none; }   /* 60% up from the original 46px */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto; z-index: 99;
  background: #fff; padding: 1rem var(--gutter) 2rem; border-top: 1px solid var(--line);
}
body.nav-open .site-nav { display: block; }
body.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list > li > a {
  display: block; padding: .95rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  color: var(--ink); text-decoration: none;
}
.nav-list > li > a.is-active { color: var(--green-ink); }
.has-sub { position: relative; }
.has-sub > a { padding-right: 3rem !important; }
.sub-toggle {
  position: absolute; right: 0; top: .5rem; width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
}
.sub-toggle .icon { width: 22px; height: 22px; transition: transform var(--t-fast); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu { list-style: none; margin: 0; padding: 0 0 .6rem; display: none; }
.has-sub.is-open .sub-menu { display: block; }
.sub-menu a { display: block; padding: .5rem 0 .5rem 1rem; color: var(--ink-2); text-decoration: none; font-size: 1rem; border-left: 2px solid var(--line); }
.sub-menu a:hover { color: var(--green-ink); border-left-color: var(--lime); }
.nav-cta { padding-top: 1.2rem; }
.nav-cta .btn { width: 100%; }

@media (min-width: 1120px) {   /* desktop nav needs room beside the 192px logo */
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; inset: auto; overflow: visible; background: none; padding: 0; border: 0; align-items: center; gap: 1.2rem; }
  .nav-list { display: flex; align-items: center; gap: .1rem; }
  .nav-list > li { border: 0; }
  .nav-list > li > a { padding: .55rem .8rem; font-size: 1rem; border-radius: 8px; position: relative; }
  .nav-list > li > a:hover { background: var(--sand); }
  .nav-list > li > a.is-active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 3px; border-radius: 2px; background: var(--lime); }
  .has-sub > a { padding-right: 2rem !important; }
  .sub-toggle { right: .15rem; top: .3rem; width: 30px; height: 30px; }   /* clickable: toggles the flyout without navigating */
  .sub-toggle:hover { background: var(--sand); }
  .sub-toggle .icon { width: 18px; height: 18px; }
  .sub-menu {
    /* Sits flush under the link (no hover gap); the visual gap comes from the transparent ::before bridge */
    position: absolute; top: 100%; left: 0; min-width: 270px; margin-top: .4rem;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
    padding: .5rem; display: none;
  }
  .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
  /* With JavaScript, main.js opens/closes the flyout (hover with a short close delay, chevron click,
     outside click, Escape). Without JavaScript, plain CSS hover/focus keeps the menus usable. */
  html:not(.js) .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { padding: .55rem .8rem; border: 0; border-radius: 8px; font-size: .97rem; }
  .sub-menu a:hover { background: var(--sand); }
  .nav-cta { padding: 0; }
  .nav-cta .btn { width: auto; padding: .7rem 1.25rem; font-size: .95rem; }
}

/* --------------------------------------------------------------------------
   5. Sections & grids
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-sand { background: var(--sand); }
.bg-green { background: var(--green-900); color: #fff; }
.bg-green h1, .bg-green h2, .bg-green h3, .bg-green h4 { color: #fff; }
.bg-green a { color: #fff; }
.bg-green .lead, .bg-green .muted { color: rgba(255, 255, 255, .8); }
.bg-lime-soft { background: var(--lime-soft); }

.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.split-3-2 { grid-template-columns: 3fr 2fr; }
  .split.split-2-3 { grid-template-columns: 2fr 3fr; }
  .split .order-first { order: -1; }
}
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
/* Portrait photos in a split would tower over the text once the columns stack; cap them. */
.split .photo.photo-capped img { max-height: 520px; object-fit: cover; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: min(82vh, 760px); padding-block: clamp(4rem, 10vw, 7rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 59, 34, .45) 0%, rgba(12, 59, 34, .82) 40%, rgba(12, 59, 34, .94) 100%);
}
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(100deg, rgba(12, 59, 34, .92) 0%, rgba(12, 59, 34, .72) 45%, rgba(12, 59, 34, .35) 100%); }
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, .88); font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin-bottom: 2rem; }
.hero .eyebrow { color: var(--lime); }
.hero-inner { max-width: 760px; }

/* Compact page hero (inner pages) */
.page-hero {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--green-900);
}
.page-hero .hero-bg img { opacity: .7; }   /* real facility photos earn their place; the gradient below keeps text legible */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12, 59, 34, .95) 0%, rgba(12, 59, 34, .75) 55%, rgba(12, 59, 34, .5) 100%);
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, .86); }
.page-hero .eyebrow { color: var(--lime); }
.page-hero .btn-group { margin-top: 1.6rem; }
.breadcrumb { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }

/* Product hero: text left, cut-out right */
.product-hero { background: var(--sand); color: var(--ink); }
.product-hero::before { display: none; }
.product-hero h1 { color: var(--ink); }
.product-hero .lead { color: var(--ink-2); }
.product-hero .breadcrumb, .product-hero .breadcrumb a { color: var(--ink-3); }
.product-hero .eyebrow { color: var(--green-ink); }
.product-hero .hero-figure {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1.2rem;
  aspect-ratio: 1 / 1; display: grid; place-items: center; max-width: 480px; width: 100%; justify-self: center;
}
.product-hero .hero-figure img { width: 100%; height: 100%; object-fit: contain; }

/* Trust strip under home hero */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-list {
  list-style: none; margin: 0; padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: center; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
}
.trust-list li { display: inline-flex; align-items: center; gap: .5rem; }
.trust-list .icon { color: var(--lime-deep); width: 1.15rem; height: 1.15rem; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.8rem); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); margin-bottom: .8rem; }
.card p:last-child { margin-bottom: 0; }
.card .text-link { margin-top: auto; padding-top: .4rem; }

.card-dark { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.card-dark h3, .card-dark a:not(.btn) { color: #fff; }
.card-dark p { color: rgba(255, 255, 255, .82); }
.card-dark .eyebrow { color: var(--lime); }
.card-dark .checks .icon { background: rgba(255, 255, 255, .12); color: var(--lime); }

.product-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lime); color: inherit; }
.product-card .thumb { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.2rem; border-bottom: 1px solid var(--line); }
.product-card .thumb img { max-height: 100%; width: auto; object-fit: contain; transition: transform var(--t-med); }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.2rem; }
.product-card .text-link { margin-top: auto; }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .fi {
  flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--lime-soft); color: var(--green-ink);
  display: grid; place-items: center;
}
.feature .fi .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.feature p { color: var(--ink-2); margin: 0; }
.feature-list { display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.bg-green .feature .fi { background: rgba(255, 255, 255, .1); color: var(--lime); }
.bg-green .feature p { color: rgba(255, 255, 255, .8); }

.app-card { text-decoration: none; color: inherit; transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lime); color: inherit; }
.app-card .fi { width: 58px; height: 58px; border-radius: 16px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; margin-bottom: 1rem; }
.app-card .fi .icon { width: 30px; height: 30px; }

/* Stats */
.stats { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 3px solid var(--lime); padding-left: 1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.1; color: var(--green-ink); }
.stat span { color: var(--ink-2); font-size: .95rem; }
.bg-green .stat b { color: var(--lime); }
.bg-green .stat span { color: rgba(255, 255, 255, .8); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--lime-deep); margin-bottom: .5rem; line-height: 1;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* Checklist */
.checks { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks .icon { width: 1.35rem; height: 1.35rem; color: var(--green); flex: none; margin-top: .15rem; background: var(--lime-soft); border-radius: 50%; padding: .18rem; }
.checks.two-col { grid-template-columns: 1fr; }
@media (min-width: 720px) { .checks.two-col { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.bg-green .checks .icon { background: rgba(255, 255, 255, .12); color: var(--lime); }

/* Chips (certifications, crop tags) */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px;
  background: var(--sand); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink);
  text-decoration: none;
}
a.chip:hover { border-color: var(--green); color: var(--green-ink); background: var(--green-soft); }
.chip .icon { width: 1.05rem; height: 1.05rem; color: var(--lime-deep); }
.cert-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(4, 1fr); } }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1rem; text-align: center;
}
.cert .icon { width: 34px; height: 34px; color: var(--green); margin: 0 auto .6rem; }
.cert b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.cert span { display: block; color: var(--ink-2); font-size: .88rem; margin-top: .2rem; }

/* --------------------------------------------------------------------------
   8. Spec tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.spec-table { min-width: 560px; font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--green-900); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .03em; }
.spec-table tbody tr:nth-child(even) { background: var(--sand); }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody th { font-weight: 600; color: var(--ink); }
.spec-table:not(.kv) tbody th { white-space: nowrap; }
.spec-table.kv { min-width: 0; }
.spec-table.kv th { width: 38%; }
@media (max-width: 639px) {
  /* key-value tables stack label over value on phones */
  .spec-table.kv tr { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .spec-table.kv tbody tr:last-child { border-bottom: 0; }
  .spec-table.kv th, .spec-table.kv td { display: block; width: auto; border: 0; padding: .1rem 1rem; }
  .spec-table.kv tbody th { font-family: var(--font-display); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
}
.table-note { font-size: .88rem; color: var(--ink-3); margin-top: .7rem; }

/* Key-value info tiles (packaging, MOQ, lead time) */
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.tile .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-soft); color: var(--green-ink); display: grid; place-items: center; margin-bottom: .8rem; }
.tile .fi .icon { width: 24px; height: 24px; }
.tile h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.tile p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* Product page rhythm */
.product-section + .product-section { border-top: 1px solid var(--line); }
/* One column on phones: a 160px square is too small to read a factory photo,
   and a 3-item band orphans its last tile in a 2-column grid. */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figure.contain img { object-fit: contain; padding: 1rem; }
.gallery figcaption { padding: .6rem .9rem; font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   9. CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--green-900); color: #fff; }
.cta-band .hero-bg img { opacity: .28; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 10% 50%, rgba(141, 198, 63, .22), transparent 60%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 60ch; }
.cta-inner { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } .cta-inner .btn-group { justify-content: flex-end; } }
.cta-contact { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; font-size: .98rem; }
.cta-contact li { display: inline-flex; align-items: center; gap: .5rem; }
.cta-contact a { color: #fff; text-decoration: none; }
.cta-contact a:hover { text-decoration: underline; }
.cta-contact .icon { color: var(--lime); }

/* --------------------------------------------------------------------------
   10. Forms (contact)
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field label span { color: var(--brown); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid #CFC8BC; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(19, 107, 62, .18); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--ink-3); margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: .9rem 1rem; font-size: .97rem; display: none; }
.form-status.is-ok { display: block; background: var(--lime-soft); border: 1px solid #C8E3A5; color: var(--green-900); }
.form-status.is-err { display: block; background: var(--brown-soft); border: 1px solid #E5C9B8; color: var(--brown-deep); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent input { margin-top: .3rem; width: auto; }

.offices { display: grid; gap: 1rem; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.office h3 { font-size: 1.1rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.office h3 .icon { color: var(--lime-deep); }
.office p { margin: 0 0 .4rem; color: var(--ink-2); font-size: .97rem; }
.office a { text-decoration: none; }
.office a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .82); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer-brand img { width: 200px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; }
.footer-h { font-family: var(--font-display); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-offices { font-style: normal; }
.footer-offices p { margin-bottom: .9rem; line-height: 1.5; }
.footer-offices strong { color: #fff; }
.footer-offices a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-offices a:hover { color: #fff; text-decoration: underline; }
.social { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-dark); color: #fff; }
.social a:hover { background: rgba(255, 255, 255, .1); border-color: var(--lime); }
.social .icon { width: 20px; height: 20px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .88rem; color: rgba(255, 255, 255, .65); }
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   12. Misc pages
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.anchor-target { scroll-margin-top: calc(var(--header-h) + 1rem); }
.app-section { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.app-section:first-of-type { border-top: 0; }
.app-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.app-head .fi { flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; }
.app-head .fi .icon { width: 32px; height: 32px; }
.app-head h2 { margin: 0; }
.app-products { margin-top: 1rem; }
.app-products h3 { font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }

.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--green-ink); margin-bottom: .2em; }

/* Reveal on scroll (progressive enhancement; no-JS shows everything) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .3, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
  .hero, .page-hero { color: #000; background: none; }
  .hero::before, .page-hero::before, .hero-bg { display: none; }
  .hero h1, .page-hero h1 { color: #000; }
}
