/* ==========================================================================
   Pheromone Insect - design system
   1. Tokens   2. Base   3. Layout   4. Header   5. Hero   6. Sections
   7. Products  8. Single product  9. Forms  10. News  11. Footer  12. Utility
   13. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --green-900: #06251b;
  --green-800: #0a3427;
  --green-700: #0e4633;
  --green-600: #165c43;
  --green-500: #2c7a58;
  --green-400: #4e9a6a;
  --lime-500: #6cb33f;
  --lime-400: #85c65b;
  --lime-100: #eaf4e2;
  --sand-50: #f7f8f5;
  --sand-100: #eef1ec;
  --sand-200: #e0e5dd;
  --ink-900: #16211c;
  --ink-700: #33443c;
  --ink-500: #5d6f66;
  --ink-300: #8b9a92;
  --white: #ffffff;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --wrap-wide: 1400px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(6, 37, 27, .06), 0 1px 3px rgba(6, 37, 27, .04);
  --shadow: 0 4px 12px rgba(6, 37, 27, .07), 0 12px 32px rgba(6, 37, 27, .06);
  --shadow-lg: 0 18px 50px rgba(6, 37, 27, .13);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-600); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--lime-500); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--green-800);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.018em;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.25vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.4rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }

strong { color: var(--ink-900); font-weight: 600; }

::selection { background: var(--lime-100); color: var(--green-800); }

:focus-visible {
  outline: 2px solid var(--lime-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: var(--wrap-wide); }

.section { padding: clamp(56px, 6vw, 96px) 0; }
.section--tight { padding: clamp(40px, 4vw, 64px) 0; }
.section--sand { background: var(--sand-50); }
.section--dark { background: var(--green-900); color: #cfded7; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--lime-400); }

.sec-head { max-width: 720px; margin-bottom: clamp(28px, 3vw, 48px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: var(--ink-500); font-size: 1.03rem; margin-bottom: 0; }
.section--dark .sec-head p { color: #a9c2b6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--green-500);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime-500);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--lime-400); }

/* 4. Header ---------------------------------------------------------------- */
.topbar {
  background: var(--green-900);
  color: #b9cec4;
  font-size: .8rem;
  line-height: 1;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.topbar-list li { display: flex; align-items: center; gap: 7px; }
.topbar-list svg { width: 13px; height: 13px; opacity: .7; flex: none; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.topbar-note { display: flex; align-items: center; gap: 8px; color: var(--lime-400); font-weight: 600; }
.topbar-note::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 3px rgba(108, 179, 63, .22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--sand-200);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(6, 37, 27, .08); }

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.logo { flex: none; display: flex; align-items: center; }
.logo img { height: 42px; width: auto; max-width: 260px; }
.logo-text { display: none; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 10px 13px;
  color: var(--ink-700);
  font-size: .925rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: var(--green-700);
  background: var(--sand-50);
}
.main-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .55;
}
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 232px;
  padding: 8px;
  margin: 0;
  display: block;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: 9px 12px; font-size: .875rem; font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--green-700);
  color: #fff;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14, 70, 51, .18); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--lime-500); color: #10290f; }
.btn--accent:hover { background: var(--lime-400); color: #10290f; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.btn--outline { background: transparent; border-color: var(--sand-200); color: var(--green-700); }
.btn--outline:hover { background: var(--sand-50); color: var(--green-700); border-color: var(--green-400); box-shadow: none; }
.btn--sm { padding: 9px 16px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--green-700);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.icon-btn:hover { border-color: var(--green-400); background: var(--sand-50); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* header search overlay */
.hd-search {
  position: absolute;
  top: calc(100% + 1px);
  right: 24px;
  width: min(460px, calc(100vw - 48px));
  padding: 14px;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.hd-search.is-open { display: block; }
.hd-search form { display: flex; gap: 8px; }
.hd-search input[type=search] { flex: 1; }
.hd-search input[type=search] {
  padding: 11px 14px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9rem;
  color: var(--ink-900);
  background: var(--sand-50);
}
.hd-search input[type=search]:focus { outline: none; border-color: var(--green-400); background: #fff; }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 37, 27, .93) 0%, rgba(6, 37, 27, .80) 42%, rgba(6, 37, 27, .30) 78%, rgba(6, 37, 27, .18) 100%),
    linear-gradient(0deg, rgba(6, 37, 27, .55) 0%, rgba(6, 37, 27, 0) 45%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 46vw, 620px);
  padding: clamp(56px, 6vw, 92px) 0;
}
.hero-copy { max-width: 660px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  color: #d8e8de;
  font-size: .775rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.hero-badge span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime-400);
  box-shadow: 0 0 0 3px rgba(133, 198, 91, .25);
}
.hero h1 { color: #fff; margin-bottom: 18px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--lime-400); }
.hero-lead {
  max-width: 560px;
  margin-bottom: 30px;
  color: #c3d6cc;
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  line-height: 1.68;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .13);
  background: rgba(6, 37, 27, .58);
  backdrop-filter: blur(8px);
}
.hero-facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.hero-fact {
  padding: 22px 8px 22px 0;
  border-right: 1px solid rgba(255, 255, 255, .09);
}
.hero-fact:last-child { border-right: 0; }
.hero-fact b {
  display: block;
  color: #fff;
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.hero-fact span {
  display: block;
  margin-top: 4px;
  color: #9ab4a7;
  font-size: .8rem;
  letter-spacing: .02em;
}

/* 6. Sections -------------------------------------------------------------- */
.trust-strip {
  background: var(--sand-50);
  border-bottom: 1px solid var(--sand-200);
}
.trust-strip .wrap {
  display: flex;
  align-items: center;
  gap: 14px 40px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-500);
  font-size: .845rem;
  font-weight: 500;
}
.trust-item svg { width: 17px; height: 17px; color: var(--green-500); flex: none; }

/* feature cards */
.grid { display: grid; gap: clamp(16px, 1.6vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: .93rem; margin-bottom: 0; }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-400); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--lime-100);
  color: var(--green-600);
}
.card-icon svg { width: 22px; height: 22px; }

/* category tiles */
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-800);
  color: #fff;
  isolation: isolate;
}
.cat-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.cat-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 37, 27, .18) 0%, rgba(6, 37, 27, .55) 55%, rgba(6, 37, 27, .90) 100%);
  transition: background .25s var(--ease);
}
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile:hover::after { background: linear-gradient(180deg, rgba(6, 37, 27, .10) 0%, rgba(6, 37, 27, .50) 50%, rgba(6, 37, 27, .92) 100%); }
.cat-tile h3 { color: #fff; margin-bottom: 4px; font-size: 1.15rem; }
.cat-tile p { color: #b6cabf; font-size: .84rem; margin: 0; }
.cat-tile .cat-count {
  position: absolute;
  top: 18px; right: 18px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.cat-tile--wide { grid-column: span 2; }

.cat-tile .cat-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--lime-400);
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.cat-tile:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* split media + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.split--rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split-body h2 { margin-bottom: 14px; }
.split-body p { color: var(--ink-500); }

.checks { margin: 22px 0 26px; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  color: var(--ink-700);
  font-size: .94rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .28em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--lime-100);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 6px; top: .62em;
  width: 6px; height: 3px;
  border-left: 2px solid var(--green-600);
  border-bottom: 2px solid var(--green-600);
  transform: rotate(-45deg);
}

/* stats / moat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sand-200); border-radius: var(--radius); overflow: hidden; }
.stat-band > div { padding: 28px 22px; background: #fff; }
.stat-band b { display: block; color: var(--green-700); font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.1; }
.stat-band span { color: var(--ink-500); font-size: .855rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-100);
  aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(6, 37, 27, 0);
  transition: background .2s var(--ease);
}
.gallery a:hover::after { background: rgba(6, 37, 27, .22); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px 14px 12px;
  background: linear-gradient(0deg, rgba(6, 37, 27, .78), rgba(6, 37, 27, 0));
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.gallery a:hover .gallery-cap { opacity: 1; }

/* certifications */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.cert:hover { box-shadow: var(--shadow); border-color: var(--green-400); }
.cert img { width: 100%; border-radius: var(--radius-sm); background: var(--sand-50); }
.cert h4 { margin: 12px 0 2px; font-size: .9rem; color: var(--green-800); }
.cert span { color: var(--ink-300); font-size: .78rem; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--green-800);
  color: #d5e5db;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 179, 63, .30), rgba(108, 179, 63, 0) 68%);
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(36px, 4vw, 58px) 0;
}
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { margin: 0; color: #aec7ba; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding: clamp(46px, 5vw, 76px) 0 clamp(38px, 4vw, 60px);
  background: var(--green-900);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 300px at 82% 12%, rgba(108, 179, 63, .20), rgba(108, 179, 63, 0) 70%),
    linear-gradient(180deg, rgba(6, 37, 27, 0) 40%, rgba(6, 37, 27, .55) 100%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { max-width: 680px; margin: 0; color: #b3cabd; font-size: 1.02rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 16px; color: #8ea89b; font-size: .8rem; }
.crumbs a { color: #b9cec4; }
.crumbs a:hover { color: #fff; }
.crumbs span.sep { opacity: .5; }

/* 7. Products -------------------------------------------------------------- */
.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sand-200);
}
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cat-pills a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--sand-200);
  border-radius: 100px;
  background: #fff;
  color: var(--ink-700);
  font-size: .855rem;
  font-weight: 500;
  transition: all .16s var(--ease);
}
.cat-pills a:hover { border-color: var(--green-400); color: var(--green-700); background: var(--sand-50); }
.cat-pills a.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.cat-pills .pill-count { font-size: .74rem; opacity: .65; }

.catalog-search { margin-left: auto; display: flex; gap: 8px; }
.catalog-search input[type=search] {
  width: 240px;
  padding: 9px 14px;
  border: 1px solid var(--sand-200);
  border-radius: 100px;
  background: var(--sand-50);
  font: inherit;
  font-size: .875rem;
  color: var(--ink-900);
}
.catalog-search input[type=search]:focus { outline: none; border-color: var(--green-400); background: #fff; }

/* product table */
.ptable-wrap { overflow-x: auto; border: 1px solid var(--sand-200); border-radius: var(--radius); background: #fff; }
.ptable { width: 100%; border-collapse: collapse; font-size: .905rem; }
.ptable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 13px 16px;
  background: var(--sand-50);
  border-bottom: 1px solid var(--sand-200);
  color: var(--ink-500);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.ptable tbody tr { border-bottom: 1px solid var(--sand-100); transition: background .14s var(--ease); }
.ptable tbody tr:last-child { border-bottom: 0; }
.ptable tbody tr:hover { background: #fbfcfb; }
.ptable td { padding: 13px 16px; vertical-align: middle; color: var(--ink-700); }
.ptable td.name { font-weight: 500; color: var(--ink-900); }
.ptable td.name a { color: inherit; }
.ptable td.name a:hover { color: var(--green-600); }
.ptable .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .855rem; color: var(--ink-500); }
.ptable .tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--lime-100);
  color: var(--green-600);
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}
.ptable .struct-thumb {
  width: 72px; height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}
.ptable .row-act { text-align: right; white-space: nowrap; }
.ptable .row-act a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-600);
}
.ptable .row-act a:hover { color: var(--lime-500); }

/* product cards (grid mode) */
.pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-400); }
.pcard-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, var(--sand-50));
  border-bottom: 1px solid var(--sand-100);
}
.pcard-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pcard-body h3 { min-height: 2.6em; }
.pcard-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { font-size: 1rem; margin-bottom: 6px; line-height: 1.35; }
.pcard-body h3 a { color: inherit; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.pcard-meta .cas { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: var(--ink-300); }
.pcard-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard-foot .link { font-size: .84rem; font-weight: 600; }

/* pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-700);
  font-size: .875rem;
  font-weight: 500;
}
.pager .page-numbers:hover { border-color: var(--green-400); color: var(--green-700); }
.pager .page-numbers.current { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; }

/* 8. Single product -------------------------------------------------------- */
.pd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 52px); align-items: start; }
.pd-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 40%, #fff 0%, var(--sand-50) 72%);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
}
.pd-media img { max-width: 100%; max-height: 340px; object-fit: contain; }
.pd-media-cap {
  position: absolute;
  left: 16px; bottom: 14px;
  color: var(--ink-300);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pd-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-bottom: 10px; word-break: break-word; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pd-badges .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--lime-100);
  color: var(--green-600);
  font-size: .78rem;
  font-weight: 600;
}
.pd-badges .tag--outline { background: transparent; border: 1px solid var(--sand-200); color: var(--ink-500); }

.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .93rem; }
.spec-table th {
  width: 38%;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--sand-100);
  color: var(--ink-500);
  font-weight: 500;
  text-align: left;
  vertical-align: top;
}
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--sand-100); color: var(--ink-900); font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.pd-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(26px, 3vw, 52px); align-items: start; margin-top: clamp(36px, 4vw, 58px); }
.prose { color: var(--ink-700); }
.prose > p:first-child { font-size: 1.04rem; color: var(--ink-900); }
.prose h3 { margin: 1.6em 0 .55em; font-size: 1.12rem; }
.prose h3:first-child { margin-top: 0; }
.prose table.spec-table { margin-bottom: 1.2em; }
.prose strong { color: var(--ink-900); }

.pd-aside { position: sticky; top: 100px; display: grid; gap: 16px; }

.inquiry-card {
  padding: 24px;
  background: var(--green-900);
  border-radius: var(--radius-lg);
  color: #c9dcd1;
}
.inquiry-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.inquiry-card p { color: #a5bfb2; font-size: .855rem; margin-bottom: 16px; }
.inquiry-card .btn { width: 100%; }
.inquiry-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.inquiry-card li { display: flex; align-items: flex-start; gap: 8px; color: #a5bfb2; font-size: .82rem; }
.inquiry-card li svg { width: 14px; height: 14px; color: var(--lime-400); flex: none; margin-top: 3px; }

.side-card { padding: 20px; background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); }
.side-card h4 { margin-bottom: 12px; font-size: .92rem; }
.side-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: .875rem;
}
.side-links a:hover { background: var(--sand-50); color: var(--green-700); }
.side-links .cas { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: var(--ink-300); }

/* 9. Forms ----------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink-700); font-size: .82rem; font-weight: 600; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: .92rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(76, 154, 106, .13);
}
.field .hint { color: var(--ink-300); font-size: .76rem; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; grid-column: 1 / -1; }
.field--check input { width: 17px; height: 17px; margin-top: 3px; flex: none; }
.field--check label { font-weight: 400; font-size: .84rem; color: var(--ink-500); line-height: 1.55; }

.form-note { margin-top: 12px; color: var(--ink-300); font-size: .78rem; }

.form-msg {
  display: none;
  padding: 13px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
}
.form-msg.is-visible { display: block; }
.form-msg--ok { background: #e9f6e6; border: 1px solid #b9dfae; color: #256b2b; }
.form-msg--err { background: #fdecea; border: 1px solid #f3c2bd; color: #a5302a; }

.btn.is-loading { pointer-events: none; opacity: .72; position: relative; }
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(26px, 3vw, 56px); align-items: start; }
.info-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--sand-100); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: var(--lime-100);
  color: var(--green-600);
}
.info-list .ico svg { width: 17px; height: 17px; }
.info-list b { display: block; margin-bottom: 2px; color: var(--ink-900); font-size: .82rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.info-list span, .info-list a { color: var(--ink-500); font-size: .93rem; line-height: 1.55; }
.info-list a:hover { color: var(--green-600); }

/* 10. News ---------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); }
.ncard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.ncard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-400); }
.ncard-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-100); }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.ncard:hover .ncard-img img { transform: scale(1.05); }
.ncard-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ncard-date { margin-bottom: 9px; color: var(--ink-300); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.ncard h3 { font-size: 1.02rem; margin-bottom: 9px; line-height: 1.42; }
.ncard h3 a { color: inherit; }
.ncard h3 a:hover { color: var(--green-600); }
.ncard p { color: var(--ink-500); font-size: .885rem; margin-bottom: 14px; }
.ncard .read { margin-top: auto; color: var(--green-600); font-size: .83rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ncard .read svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ncard:hover .read svg { transform: translateX(3px); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 3vw, 56px); align-items: start; }
.post-body { max-width: 760px; }
.post-body h2, .post-body h3 { margin-top: 1.5em; }
.post-body img { border-radius: var(--radius); margin: 1.4em 0; }
.post-body p { color: var(--ink-700); }

/* 11. Footer -------------------------------------------------------------- */
.site-footer { background: var(--green-900); color: #a3bcb0; font-size: .9rem; }
.footer-main {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.15fr;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(44px, 5vw, 68px) 0 clamp(30px, 3vw, 44px);
}
.footer-brand img { height: 40px; width: auto; max-width: 100%; margin-bottom: 16px; opacity: .96; }
.footer-brand p { color: #8fa99c; font-size: .875rem; line-height: 1.7; margin-bottom: 18px; max-width: 34ch; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  color: #a3bcb0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer-col a { color: #9db5a8; font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; color: #9db5a8; font-size: .875rem; line-height: 1.55; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--lime-400); }
.footer-contact a { color: #cfe0d6; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #7e978a;
  font-size: .815rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #7e978a; }
.footer-bottom a:hover { color: #fff; }

/* 12. Utility ------------------------------------------------------------- */
.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: 16px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--green-700);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.breadcrumb-sep { margin: 0 2px; opacity: .5; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--ink-500); }
.empty-state h2 { margin-bottom: 8px; }

.notice {
  padding: 14px 18px;
  border-left: 3px solid var(--lime-500);
  border-radius: var(--radius-sm);
  background: var(--lime-100);
  color: var(--green-700);
  font-size: .9rem;
}

/* lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(6, 37, 27, .88);
  backdrop-filter: blur(4px);
}
.lb.is-open { display: flex; }
.lb img { max-width: min(1100px, 92vw); max-height: 88vh; object-fit: contain; border-radius: var(--radius-sm); background: #fff; }
.lb-close {
  position: absolute;
  top: 20px; right: 22px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .26); }

/* 13. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 10px; font-size: .89rem; }
  .hero-facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero-fact:nth-child(2) { border-right: 0; }
  .hero-fact:nth-child(1), .hero-fact:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .pd-top { grid-template-columns: 1fr; }
  .pd-body { grid-template-columns: 1fr; }
  .pd-aside { position: static; }
  .post-layout { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  /* The drawer stays docked inside the viewport and is hidden with opacity +
     visibility. Any off-canvas positioning (right:-340px or translateX(100%))
     still contributes to the document scroll width and produces a horizontal
     scrollbar on phones, even when the element is invisible. */
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 120;
    width: min(340px, 86vw);
    max-width: 86vw;
    margin: 0;
    padding: 76px 18px 28px;
    background: #fff;
    box-shadow: -12px 0 40px rgba(6, 37, 27, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s var(--ease), visibility .24s var(--ease);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  html, body { overflow-x: hidden; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--sand-100); }
  .main-nav a { padding: 14px 6px; font-size: 1rem; border-radius: 0; }
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 14px;
    background: transparent;
    min-width: 0;
  }
  .main-nav .menu-item-has-children > a::after { display: none; }
  .main-nav .sub-menu a { padding: 9px 6px; font-size: .9rem; color: var(--ink-500); }
  .header-actions .btn--quote { display: none; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(6, 37, 27, .42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s var(--ease), visibility .24s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .topbar-list li:nth-child(2) { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .header-row { min-height: 64px; gap: 12px; }
  .logo img { height: 34px; max-width: 190px; }
  .topbar .wrap { min-height: 34px; }
  .topbar-note { display: none; }
  .hero-inner { min-height: 460px; padding: 44px 0 52px; }
  .hero-media img { object-position: 62% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(6,37,27,.92) 0%, rgba(6,37,27,.80) 55%, rgba(6,37,27,.72) 100%); }
  .hero-actions .btn { flex: 1 1 auto; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .cat-tile--wide { grid-column: span 1; }
  .grid--2 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .catalog-search { margin-left: 0; width: 100%; }
  .catalog-search input[type=search] { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .ptable thead th:nth-child(4), .ptable tbody td:nth-child(4) { display: none; }
  .pcard-thumb { height: 148px; padding: 12px; }
  .pd-media { min-height: 220px; padding: 22px; }
  .pd-media img { max-height: 210px; }
}

@media (max-width: 480px) {
  .hero-facts .wrap { grid-template-columns: 1fr 1fr; }
  .hero-fact { padding: 16px 6px 16px 0; }
  .hero-fact b { font-size: 1.25rem; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .cat-tile { min-height: 200px; }
  .cat-tile--wide { grid-column: span 1; }
  .ptable thead th:nth-child(3), .ptable tbody td:nth-child(3) { display: none; }
  .hero-badge { font-size: .7rem; }
}

/* 14. Inquiry panel (product page + contact) ------------------------------ */
.inquiry-split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.inquiry-panel {
  padding: clamp(22px, 2.4vw, 34px);
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.inquiry-panel .form-grid { gap: 16px; }
.inquiry-panel .form-note { margin-top: 14px; }

/* honeypot field: hidden from people, present for bots */
.pi-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .inquiry-split { grid-template-columns: 1fr; }
}
