/* ==========================================================================
   Nasami theme — main stylesheet
   Mobile-first. Breakpoints: 640 / 960 / 1200px.
   Colors only via tokens below.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Brand (theo logo) */
  --color-red:           #D7191F;
  --color-red-hover:     #B5141A;
  --color-green:         #3F9A3C;
  --color-green-dark:    #1F5A2A;
  --color-orange:        #F5A623;

  /* Surfaces */
  --color-bg:            #FFFDF8;
  --color-bg-alt:        #EAF5E4;
  --color-surface:       #FFFFFF;
  --color-border:        #D9E6D3;

  /* Text */
  --color-text:          #2A2A2A;
  --color-heading:       var(--color-green-dark);
  --color-on-dark:       #FFFFFF;

  /* Typography */
  --font-heading: "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.875rem;  --fs-base: 1rem;   --fs-lg: 1.125rem;
  --fs-h4: 1.25rem;   --fs-h3: 1.5rem;   --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 5vw, 3.75rem);
  --lh-tight: 1.15;   --lh-base: 1.65;

  /* Spacing (8px scale) */
  --space-1: 0.5rem;  --space-2: 1rem;   --space-3: 1.5rem; --space-4: 2rem;
  --space-6: 3rem;    --space-8: 4rem;   --space-12: 6rem;
  --section-y: clamp(3.5rem, 8vw, 6rem);

  /* Layout */
  --container: 1200px;  --container-narrow: 760px;  --gutter: 1rem;
  --radius-sm: 6px;  --radius: 12px;  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(31 90 42 / 0.06), 0 4px 16px rgb(31 90 42 / 0.06);
  --header-h: 72px;
  --shadow-up: 0 -4px 16px rgb(31 90 42 / 0.08);

  /* Derived */
  --color-muted: color-mix(in srgb, var(--color-text) 72%, var(--color-bg));
  --on-dark-muted: color-mix(in srgb, var(--color-on-dark) 82%, transparent);
  --on-dark-line: color-mix(in srgb, var(--color-on-dark) 22%, transparent);
  --overlay: color-mix(in srgb, var(--color-text) 55%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mobile-bar-h: 0px;
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
}

@media (min-width: 1200px) {
  :root { --gutter: 2rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul[class], ol[class] { padding: 0; list-style: none; }

img, picture, video, svg, iframe { display: block; max-width: 100%; }

img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* 3. Base
   ========================================================================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--mobile-bar-h);
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; }
h4 { font-size: var(--fs-h4); font-weight: 500; }
h5, h6 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { text-wrap: pretty; }

a { color: var(--color-green-dark); text-underline-offset: 0.2em; }

a:hover { color: var(--color-red); }

strong, b { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.bg--red :focus-visible { outline-color: var(--color-on-dark); }

::selection { background: var(--color-bg-alt); color: var(--color-green-dark); }

/* 4. Accessibility helpers
   ========================================================================== */
.skip-link {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  z-index: 1000;
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface);
  color: var(--color-green-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.screen-reader-text,
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
}

.site-main { flex: 1 0 auto; }

.site-main:focus { outline: none; }

/* 5. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }

.stack > * + * { margin-top: var(--stack, var(--space-2)); }

.grid {
  display: grid;
  gap: var(--grid-gap, var(--space-3));
  grid-template-columns: repeat(var(--cols-sm, 1), minmax(0, 1fr));
}

.grid--2, .grid--3, .grid--4, .grid--5 { --cols-sm: 1; }

@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); --grid-gap: var(--space-2); }
  .grid[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
}

.store-grid + .store-grid { margin-top: var(--space-4); }

/* 6. Section backgrounds
   ========================================================================== */
.bg--default { background: var(--color-bg); }
.bg--alt { background: var(--color-bg-alt); }

.bg--dark,
.bg--red { color: var(--color-on-dark); }

.bg--dark { background: var(--color-green-dark); }
.bg--red {
  /* Muted white fails 4.5:1 on red; use full white for secondary text on red bands. */
  --on-dark-muted: var(--color-on-dark);
  background: var(--color-red);
}

.bg--dark :is(h1, h2, h3, h4, h5, h6),
.bg--red :is(h1, h2, h3, h4, h5, h6) { color: var(--color-on-dark); }

.bg--dark a:not(.btn),
.bg--red a:not(.btn) { color: var(--color-on-dark); }

.bg--dark a:not(.btn):hover,
.bg--red a:not(.btn):hover { color: var(--on-dark-muted); }

.bg--dark .eyebrow,
.bg--red .eyebrow { color: var(--on-dark-muted); }

.bg--dark .section-head__title::after,
.bg--red .section-head__title::after { background: var(--color-on-dark); }

/* Cards keep light surfaces inside dark/red sections. */
.bg--dark .card,
.bg--red .card,
.bg--dark .surface,
.bg--red .surface { color: var(--color-text); }

.bg--dark .card :is(h2, h3, h4),
.bg--red .card :is(h2, h3, h4),
.bg--dark .surface :is(h2, h3, h4),
.bg--red .surface :is(h2, h3, h4) { color: var(--color-heading); }

.bg--dark .card a:not(.btn),
.bg--red .card a:not(.btn),
.bg--dark .surface a:not(.btn),
.bg--red .surface a:not(.btn) { color: var(--color-green-dark); }

/* 7. Typography components
   ========================================================================== */
.eyebrow {
  margin-bottom: var(--space-1);
  color: var(--color-red);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-6);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: var(--space-2);
  background: var(--color-red);
  border-radius: 2px;
}

.section-head--center .section-head__title::after { margin-inline: auto; }

.section-head__intro {
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
}

.section-head__intro > * + * { margin-top: var(--space-2); }

.lead { font-size: var(--fs-lg); }

.text-center { text-align: center; }

.muted { color: var(--color-muted); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* Prose (editor content) */
.prose > * + * { margin-top: var(--space-2); }

.prose > :is(h2, h3, h4) { margin-top: var(--space-6); }

.prose > :is(h2, h3, h4) + * { margin-top: var(--space-2); }

.prose :is(ul, ol) { padding-left: 1.25em; }

.prose li + li { margin-top: 0.35em; }

.prose li::marker { color: var(--color-green); }

.prose a { text-decoration: underline; }

.prose img, .prose figure { border-radius: var(--radius); }

.prose figcaption { margin-top: var(--space-1); color: var(--color-muted); font-size: var(--fs-sm); }

.prose blockquote {
  padding-left: var(--space-3);
  border-left: 3px solid var(--color-red);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-green-dark);
}

.prose table {
  width: 100%;
  color: var(--color-text);
  font-size: var(--fs-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-collapse: separate; /* keeps the rounded corners */
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.prose tr:last-child > :is(th, td) { border-bottom: 0; }

/* Small screens: wide tables scroll sideways; the frame hugs the content so no empty band appears. */
@media (max-width: 639px) {
  .prose table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
  }
}

.prose :is(th, td) {
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--color-bg-alt); color: var(--color-green-dark); font-weight: 600; }

:is(.bg--dark, .bg--red) .prose table a { color: var(--color-green-dark); }

.prose hr { border: 0; border-top: 1px solid var(--color-border); margin-block: var(--space-6); }

/* 8. Icons
   ========================================================================== */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: inherit;
}

.icon-btn .icon { width: 1.5rem; height: 1.5rem; }

/* 9. Buttons
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-green-dark);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover { color: var(--btn-fg); }

.btn--primary { --btn-bg: var(--color-red); --btn-fg: var(--color-on-dark); --btn-border: var(--color-red); }
.btn--primary:hover { --btn-bg: var(--color-red-hover); --btn-border: var(--color-red-hover); }

.btn--secondary { --btn-fg: var(--color-green-dark); --btn-border: var(--color-green); }
.btn--secondary:hover { --btn-bg: var(--color-bg-alt); }

.btn--light { --btn-bg: var(--color-surface); --btn-fg: var(--color-red); --btn-border: var(--color-surface); }
.btn--light:hover { --btn-bg: var(--color-bg); --btn-fg: var(--color-red-hover); }

.btn--outline-light { --btn-fg: var(--color-on-dark); --btn-border: var(--color-on-dark); }
.btn--outline-light:hover { --btn-bg: var(--on-dark-line); }

.btn--link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
}

.btn--link:hover { --btn-fg: var(--color-red); }

.btn--block { display: flex; width: 100%; }

/* No red button on a red band; secondary flips to outline-light on dark/red. */
.bg--red .btn--primary { --btn-bg: var(--color-surface); --btn-fg: var(--color-red); --btn-border: var(--color-surface); }
.bg--red .btn--primary:hover { --btn-bg: var(--color-bg); --btn-fg: var(--color-red-hover); }

:is(.bg--dark, .bg--red) .btn--secondary { --btn-fg: var(--color-on-dark); --btn-border: var(--color-on-dark); }
:is(.bg--dark, .bg--red) .btn--secondary:hover { --btn-bg: var(--on-dark-line); }

.bg--red :is(.btn--secondary, .btn--outline-light):hover { --btn-bg: var(--color-red-hover); }

:is(.bg--dark, .bg--red) :is(.card, .surface) .btn--secondary { --btn-fg: var(--color-green-dark); --btn-border: var(--color-green); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.btn-group--center { justify-content: center; }

/* 10. Cards, badges, chips
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.card:has(.card__link):hover { transform: translateY(-3px); }

.card__media {
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.card__title {
  font-size: var(--fs-h4);
  font-weight: 500;
}

.card__link {
  color: inherit;
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link:hover { color: var(--color-red); }

.card__text { color: var(--color-muted); font-size: var(--fs-sm); }

.card :is(a, button):not(.card__link) { position: relative; z-index: 2; }

.badge,
.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.65em;
  background: var(--color-bg-alt);
  color: var(--color-green-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.badge--new { background: var(--color-red); color: var(--color-on-dark); }

.badge-list { display: flex; flex-wrap: wrap; gap: var(--space-1); }

.chips {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chips::-webkit-scrollbar { display: none; }

@media (min-width: 960px) {
  .chips { flex-wrap: wrap; overflow: visible; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.4rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover { border-color: var(--color-green); color: var(--color-green-dark); }

.chip.is-active {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  color: var(--color-on-dark);
}

.chip__count { opacity: .7; font-size: 0.75rem; }

/* 11. Forms (base)
   ========================================================================== */
.search-form {
  display: flex;
  gap: var(--space-1);
  max-width: 28rem;
  margin: var(--space-4) auto 0;
}

.search-form label { flex: 1; }

.search-field,
.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.search-field:focus,
.form-input:focus { border-color: var(--color-green); }

.search-submit {
  min-height: 48px;
  padding: 0 1.25rem;
  background: var(--color-red);
  color: var(--color-on-dark);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.search-submit:hover { background: var(--color-red-hover); }

.notice-admin {
  padding: var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px dashed var(--color-red);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

/* 12. Topbar
   ========================================================================== */
.topbar {
  background: var(--color-green-dark);
  color: var(--color-on-dark);
  font-size: var(--fs-sm);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 40px;
}

.topbar__contact {
  display: flex;
  gap: var(--space-3);
  min-width: 0;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-on-dark);
  text-decoration: none;
}

.topbar a:hover { color: var(--on-dark-muted); }

.topbar .icon { width: 1rem; height: 1rem; }

.topbar__contact li:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .topbar__contact li + li { display: none; }
  .topbar__contact li:first-child { min-width: 0; }
  .topbar__contact a { max-width: 100%; }
}

/* 13. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.site-brand { flex-shrink: 0; margin-right: auto; }

.site-brand img,
.custom-logo { width: auto; max-height: 48px; }

.site-brand__name {
  color: var(--color-green-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-header__cta { min-height: 44px; padding: 0.5rem 1.25rem; font-size: var(--fs-sm); }

@media (max-width: 639px) {
  .site-header__cta { display: none; }
}

.menu--primary a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.menu--primary a:hover,
.menu--primary .current-menu-item > a,
.menu--primary .current-menu-ancestor > a { color: var(--color-red); }

.menu-title { display: block; }

.menu-desc {
  display: block;
  margin-top: 0.15em;
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
}

.submenu-toggle .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }

.is-open > .submenu-toggle .icon { transform: rotate(180deg); }

/* Mobile: off-canvas panel */
@media (max-width: 959px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    display: flex;
    flex-direction: column;
    width: min(360px, 88vw);
    background: var(--color-surface);
    box-shadow: var(--shadow);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }

  .site-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform .3s var(--ease);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--overlay);
  }

  .site-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    padding: 0 var(--space-1) 0 var(--space-3);
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__label {
    color: var(--color-green-dark);
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 600;
  }

  .menu--primary { padding: var(--space-1) 0; }

  .menu--primary > li {
    position: relative;
    border-bottom: 1px solid var(--color-border);
  }

  .menu--primary > li > a {
    display: block;
    padding: 0.9rem 3.5rem 0.9rem var(--space-3);
  }

  .menu--primary > li > .submenu-toggle {
    position: absolute;
    top: 0.25rem;
    right: var(--space-1);
    width: 44px;
    height: 44px;
  }

  .menu--primary .sub-menu {
    display: none;
    padding: 0 0 var(--space-2);
    list-style: none;
  }

  .menu--primary .is-open > .sub-menu { display: block; }

  .menu--primary .sub-menu a {
    display: block;
    padding: 0.55rem var(--space-3) 0.55rem var(--space-4);
    font-size: var(--fs-sm);
  }

  .site-nav__foot {
    display: grid;
    gap: var(--space-2);
    margin-top: auto;
    padding: var(--space-3);
    background: var(--color-bg-alt);
  }

  .site-nav__contact {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-green-dark);
    font-size: var(--fs-sm);
    text-decoration: none;
  }
}

/* Desktop: horizontal menu with dropdowns */
@media (min-width: 960px) {
  .nav-toggle,
  .nav-backdrop,
  .site-nav__head,
  .site-nav__foot { display: none !important; }

  .site-nav { align-self: stretch; }

  .menu--primary {
    display: flex;
    height: 100%;
    gap: var(--space-3);
  }

  .menu--primary > li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .menu--primary > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 0.9375rem;
  }

  .menu--primary > li > .submenu-toggle {
    width: 20px;
    height: 20px;
    color: var(--color-muted);
  }

  .menu--primary .sub-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 110;
    min-width: 260px;
    padding: var(--space-2);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-red);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
  }

  .menu--primary > li:hover > .sub-menu,
  .menu--primary > li:focus-within > .sub-menu,
  .menu--primary > li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
  }

  .menu--primary .sub-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
  }

  .menu--primary .sub-menu a:hover { background: var(--color-bg-alt); color: var(--color-green-dark); }

  /* Mega menu: add CSS class "mega" to the top-level item. */
  .menu--primary > li.mega { position: static; }

  .menu--primary > li.mega > .sub-menu {
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-1);
    width: min(var(--container), calc(100vw - var(--gutter) * 2));
    padding: var(--space-3);
    transform: translate(-50%, 6px);
  }

  .menu--primary > li.mega:hover > .sub-menu,
  .menu--primary > li.mega:focus-within > .sub-menu,
  .menu--primary > li.mega.is-open > .sub-menu { transform: translate(-50%, 0); }

  .menu--primary > li.mega .sub-menu a { padding: 0.75rem; }

  .menu--primary > li.mega .menu-title { font-weight: 600; color: var(--color-green-dark); }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .menu--primary { gap: var(--space-2); }
  .menu--primary > li > a { font-size: var(--fs-sm); }
}

/* 14. Page header
   ========================================================================== */
.page-header { padding-block: var(--space-6) var(--space-6); }

.page-header__title { max-width: 22ch; }

.page-header__intro {
  max-width: 46rem;
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
}

.breadcrumb {
  margin-bottom: var(--space-3);
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.breadcrumb a { color: inherit; text-decoration: none; }

.breadcrumb a:hover { color: var(--color-red); }

:is(.bg--dark, .bg--red) .breadcrumb { color: var(--on-dark-muted); }

/* 15. Footer
   ========================================================================== */
.prefooter-cta { padding-block: var(--space-8); }

.prefooter-cta__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.prefooter-cta__title { font-size: var(--fs-h2); }

.prefooter-cta__text p { margin-top: var(--space-1); color: var(--on-dark-muted); }

@media (min-width: 960px) {
  .prefooter-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .prefooter-cta__text { max-width: 40rem; }

  .prefooter-cta .btn-group { flex-shrink: 0; }
}

.site-footer__main {
  padding-block: var(--space-8) var(--space-6);
  background: var(--color-green-dark);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}

.site-footer__main a { color: var(--color-on-dark); text-decoration: none; }

.site-footer__main a:hover { color: var(--color-on-dark); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

.site-footer__brand {
  margin-bottom: var(--space-2);
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
}

.site-footer__about-text > * + * { margin-top: var(--space-1); }

.site-footer__title {
  margin-bottom: var(--space-2);
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-menu li + li { margin-top: 0.6rem; }

.footer-contact li {
  display: flex;
  gap: var(--space-1);
}

.footer-contact li + li { margin-top: var(--space-2); }

.footer-contact .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.2em; color: var(--color-orange); }

.footer-contact strong { display: block; color: var(--color-on-dark); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.socials .icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--on-dark-line);
}

.socials .icon-btn:hover { background: var(--on-dark-line); text-decoration: none; }

.socials .icon { width: 1.125rem; height: 1.125rem; }

.site-footer__bottom {
  padding-block: var(--space-3);
  background: var(--color-green-dark);
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

@media (min-width: 640px) {
  .site-footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.legal-menu a { color: var(--on-dark-muted); text-decoration: none; }

.legal-menu a:hover { color: var(--color-on-dark); }

/* WhatsApp float (desktop) */
.whatsapp-float {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-green);
  color: var(--color-on-dark);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}

.whatsapp-float:hover { background: var(--color-green-dark); color: var(--color-on-dark); transform: scale(1.06); }

.whatsapp-float .icon { width: 28px; height: 28px; }

@media (min-width: 960px) {
  .whatsapp-float { display: inline-flex; }
}

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1) var(--gutter) calc(var(--space-1) + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-up);
  transition: transform .25s var(--ease);
}

.mobile-bar .btn { flex: 1; min-height: 44px; padding-inline: var(--space-2); }

.mobile-bar.is-hidden { transform: translateY(110%); }

@media (max-width: 959px) {
  body:has(.mobile-bar) { --mobile-bar-h: 64px; }
}

@media (min-width: 960px) {
  .mobile-bar { display: none; }
}

/* 16. Blog listing, pagination, empty states, 404
   ========================================================================== */
.pagination { margin-top: var(--space-6); }

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  color: var(--color-on-dark);
}

.pagination a.page-numbers:hover { border-color: var(--color-green); color: var(--color-green-dark); }

.page-links {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-4);
}

.empty-state {
  padding: var(--space-6) var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
}

.error-404 h1 { margin-bottom: var(--space-2); }

.error-404 .btn-group { margin-top: var(--space-4); }

/* 17. Section shared
   ========================================================================== */
/* Two adjacent sections on the same background read as one block. */
.section.bg--default + .section.bg--default,
.section.bg--alt + .section.bg--alt,
.section.bg--dark + .section.bg--dark,
.section.bg--red + .section.bg--red { padding-top: 0; }

.section__actions { margin-top: var(--space-6); }

.section__block { margin-top: var(--space-6); }

.section-head + .grid,
.section-head + .faq { margin-top: 0; }

.surface {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.25em;
  line-height: 1;
}

/* Card extras */
.card__media--wide { aspect-ratio: 16 / 9; }

.card__media { position: relative; }

.card__badges {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card__badges .badge { box-shadow: var(--shadow); }

.card__badges .badge:not(.badge--new) { background: var(--color-surface); }

.card__eyebrow {
  color: var(--color-red);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: auto;
  padding-top: var(--space-1);
  color: var(--color-green-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.card__more .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }

.card:hover .card__more .icon { transform: translateX(3px); }

.card__meta-item { display: inline-flex; align-items: center; gap: 0.3em; }

.card__meta-item .icon { width: 1rem; height: 1rem; color: var(--color-green); }

.card__file {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: auto;
  padding-top: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.card__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.card__results dt {
  color: var(--color-green-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.1;
}

.card__results dd { margin: 0; color: var(--color-muted); font-size: 0.8125rem; }

/* Mini spec table */
.spec-mini {
  margin-top: var(--space-1);
  font-size: 0.8125rem;
}

.spec-mini__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.35rem;
  border-top: 1px dashed var(--color-border);
}

.spec-mini dt { color: var(--color-muted); }

.spec-mini dd { margin: 0; color: var(--color-text); font-weight: 500; text-align: right; }

/* Compact grids: two columns on phones (product, Amazon cards). */
@media (max-width: 639px) {
  .grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); --grid-gap: var(--space-2); }

  .grid--compact .card__body { padding: var(--space-2); }

  .grid--compact .card__title { font-size: var(--fs-base); }

  .grid--compact .card__badges { top: var(--space-1); left: var(--space-1); }

  .grid--compact .spec-mini { font-size: 0.75rem; }

  .grid--compact .spec-mini__row { flex-direction: column; gap: 0; }

  .grid--compact .spec-mini dd { text-align: left; }
}

.card--post .card__media { aspect-ratio: 16 / 9; }

/* Product card */
.card--product .card__title { font-size: var(--fs-lg); }

/* Solution card */
.card--solution .card__eyebrow { margin-bottom: -0.25rem; }

.solutions--pair { max-width: 960px; margin-inline: auto; }

/* Testimonial card */
.card--testimonial { margin: 0; }

.card__quote-icon { width: 2rem; height: 2rem; color: var(--color-orange); }

.card__quote {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  line-height: 1.5;
}

.card__quote > * + * { margin-top: var(--space-1); }

.card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: var(--fs-sm);
}

.card__author strong { display: block; color: var(--color-green-dark); }

.card__author-meta { color: var(--color-muted); }

.card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Certification card */
.card--cert { border-color: var(--color-green); }

.card--cert__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card--cert__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-bg-alt);
  color: var(--color-green-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.card--cert__logo img { max-width: 48px; max-height: 48px; object-fit: contain; }

.card--cert__logo .icon { width: 1.75rem; height: 1.75rem; }

.card--cert__doc {
  flex: none;
  width: 56px;
  border-radius: 4px;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-text) 20%, transparent);
  overflow: hidden;
}

.card--cert__doc img { display: block; width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; }

/* Product page: certificate thumbnails with names */
.cert-badge-doc a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 72px;
  color: var(--color-green-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.cert-badge-doc .card--cert__doc { display: block; transition: transform .2s var(--ease); }

.cert-badge-doc a:hover .card--cert__doc { transform: translateY(-2px); }

.cert-badge-doc a:hover .cert-badge-doc__name { color: var(--color-red); }

/* 18. Sections
   ========================================================================== */

/* Hero */
.section--hero { position: relative; overflow: hidden; }

.hero--full { padding-block: clamp(3rem, 8vw, 6.5rem); }

.hero--compact { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.hero__inner { position: relative; z-index: 1; }

.hero__content { max-width: 40rem; }

.hero__title { font-size: var(--fs-h1); }

.hero--compact .hero__title { font-size: clamp(2rem, 4vw, 3rem); }

.hero__title--long { font-size: clamp(1.75rem, 3.4vw, 2.75rem); max-width: 40rem; }

.hero__lead {
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
  max-width: 36rem;
}

.hero__content .btn-group { margin-top: var(--space-4); }

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero__inner--split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 959px) {
  .hero__media img { aspect-ratio: 16 / 9; }
}

@media (min-width: 960px) {
  .hero__inner--split { grid-template-columns: 1.05fr 1fr; }
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-green-dark) 88%, transparent) 0%, color-mix(in srgb, var(--color-green-dark) 45%, transparent) 100%);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--hero:has(.hero__bg) { color: var(--color-on-dark); }

.section--hero:has(.hero__bg) :is(.hero__title, .eyebrow, .breadcrumb, .breadcrumb a) { color: var(--color-on-dark); }

.hero--full:has(.hero__bg) { min-height: min(80vh, 720px); display: flex; flex-direction: column; justify-content: center; }

.hero__badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 56px;
  padding: 0.4rem 0.9rem;
  background: var(--color-surface);
  color: var(--color-green-dark);
  border: 1px solid var(--color-green);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.hero__badge img { max-height: 40px; width: auto; }

.hero__badge .icon { color: var(--color-green); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
}

@media (min-width: 960px) {
  .stats { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
}

.stats__item {
  position: relative;
  padding-left: var(--space-2);
  border-left: 3px solid var(--color-orange);
}

.stats__value {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
}

.stats__label { margin: var(--space-1) 0 0; font-size: var(--fs-sm); }

:is(.bg--dark, .bg--red) .stats__value { color: var(--color-on-dark); }

:is(.bg--dark, .bg--red) .stats__label { color: var(--on-dark-muted); }

.bg--red .stats__item { border-left-color: var(--color-on-dark); }

/* Category tiles */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
}

@media (min-width: 960px) {
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cat-tile__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}

.cat-tile__link:hover { border-color: var(--color-green); color: var(--color-text); transform: translateY(-3px); }

.cat-tile__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  margin-bottom: var(--space-2);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; }

.cat-tile__icon { width: 3rem; height: 3rem; color: var(--color-green); }

.cat-tile__name {
  color: var(--color-green-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.25;
}

.cat-tile__count { margin-top: 0.25rem; color: var(--color-muted); font-size: 0.8125rem; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
}

@media (min-width: 960px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-2);
  background: var(--color-bg-alt);
  color: var(--color-green-dark);
  border-radius: 50%;
}

.feature__icon .icon { width: 1.6rem; height: 1.6rem; }

.feature__title { font-size: var(--fs-h4); }

.feature__text { margin-top: var(--space-1); color: var(--color-muted); font-size: var(--fs-sm); }

:is(.bg--dark, .bg--red) .feature__icon { background: var(--on-dark-line); color: var(--color-on-dark); }

:is(.bg--dark, .bg--red) .feature__text { color: var(--on-dark-muted); }

.bg--alt .feature__icon { background: var(--color-surface); }

/* Process */
.process {
  position: relative;
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}

.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-2);
}

.process__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 52px;
  bottom: calc(var(--space-4) * -1 + 4px);
  left: 23px;
  width: 2px;
  background: var(--color-border);
}

.process__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-orange);
  color: var(--color-text);
  border-radius: 50%;
  font-weight: 600;
}

.process__title { font-size: var(--fs-h4); }

.process__time {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.35rem;
  color: var(--color-green-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.process__time .icon { width: 1rem; height: 1rem; }

.process__text { margin-top: var(--space-1); color: var(--color-muted); font-size: var(--fs-sm); }

@media (min-width: 960px) {
  .process { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--space-3); }

  /* Six or more steps: two rows of four until the container is wide enough for one row. */
  .process--long { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-6); }

  .process--long .process__step:nth-child(4n)::before { display: none; }

  .process__step { grid-template-columns: 1fr; align-content: start; }

  .process__step:not(:last-child)::before {
    top: 23px;
    bottom: auto;
    left: 56px;
    right: calc(var(--space-3) * -1 + 8px);
    width: auto;
    height: 2px;
  }
}

@media (min-width: 1200px) {
  .process--long { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); row-gap: var(--space-3); }

  .process--long .process__step:nth-child(4n):not(:last-child)::before { display: block; }
}

.process__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.process__total {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-green-dark);
  font-weight: 600;
}

:is(.bg--dark, .bg--red) :is(.process__time, .process__total) { color: var(--color-on-dark); }

:is(.bg--dark, .bg--red) .process__text { color: var(--on-dark-muted); }

:is(.bg--dark, .bg--red) .process__step::before { background: var(--on-dark-line); }

.bg--red .process__num { background: var(--color-surface); color: var(--color-red); }

/* Media + text */
.media-text {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.media-text .section-head { margin-bottom: var(--space-3); }

@media (min-width: 960px) {
  .media-text--right,
  .media-text--left { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }

  .media-text--left .media-text__media { order: -1; }
}

.media-text--solo .media-text__content { max-width: var(--container-narrow); }

.media-text__media img,
.media-text__media .lite-yt {
  width: 100%;
  border-radius: var(--radius-lg);
}

.media-text__media > img { aspect-ratio: 4 / 3; object-fit: cover; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.facts__item {
  padding: var(--space-2);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.bg--alt .facts__item { background: var(--color-surface); }

:is(.bg--dark, .bg--red) .facts__item { background: var(--on-dark-line); }

/* Lighter tiles would drop white text below 4.5:1 on red. */
.bg--red .facts__item { background: var(--color-red-hover); }

.facts dt {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.1;
}

.facts dd { margin: 0.25rem 0 0; font-size: var(--fs-sm); }

:is(.bg--dark, .bg--red) .facts dt { color: var(--color-on-dark); }

/* Lite YouTube */
.lite-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-green-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.lite-yt__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lite-yt__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  background: var(--color-red);
  color: var(--color-on-dark);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}

.lite-yt__play .icon { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }

.lite-yt__play:hover { background: var(--color-red-hover); transform: translate(-50%, -50%) scale(1.06); }

.lite-yt :is(iframe, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card { margin: 0; }

.lite-yt video { background: var(--color-text); object-fit: contain; }

/* One video: full width of the grid, capped so it still fits the screen. */
.videos--single { grid-template-columns: minmax(0, 1fr); max-width: 960px; margin-inline: auto; }

.video-card__title {
  margin-top: var(--space-2);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 500;
}

:is(.bg--dark, .bg--red) .video-card__title { color: var(--color-on-dark); }

/* Gallery + lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
}

@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gallery-grid__link {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-grid__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.gallery-grid__link:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-1);
  background: color-mix(in srgb, var(--color-text) 94%, transparent);
  color: var(--color-on-dark);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  margin: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__caption { font-size: var(--fs-sm); text-align: center; }

.lightbox .icon-btn {
  color: var(--color-on-dark);
  font-size: 2rem;
  line-height: 1;
}

.lightbox .icon-btn:hover { background: var(--on-dark-line); }

.lightbox__close { position: absolute; top: var(--space-2); right: var(--space-2); }

.lightbox__counter {
  position: absolute;
  bottom: var(--space-2);
  left: 50%;
  font-size: var(--fs-sm);
  transform: translateX(-50%);
}

.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__counter { visibility: hidden; }

/* Certifications */
.cert-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.cert-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 96px;
  padding: var(--space-2);
  background: var(--color-surface);
  border: 2px solid var(--color-green);
  border-radius: var(--radius);
}

.cert-logo img { max-height: 60px; width: auto; object-fit: contain; }

.cert-logo__text {
  color: var(--color-green-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Certificate images */
.cert-docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-3);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.cert-docs__item { width: calc(50% - var(--space-3) / 2); }

@media (min-width: 640px) {
  .cert-docs__item { width: 200px; }
}

.cert-docs__link {
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-text) 18%, transparent);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.cert-docs__link:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 32px color-mix(in srgb, var(--color-text) 24%, transparent); }

.cert-docs__link img { display: block; width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; } /* A4 */

.cert-docs__name { margin: var(--space-2) 0 0; color: var(--color-heading); font-weight: 600; }

:is(.bg--dark, .bg--red) .cert-docs__name { color: var(--color-on-dark); }

.cert-logos--small { margin-top: var(--space-4); }

.cert-logos--small .cert-logo { min-width: 0; height: auto; padding: 0.4rem 1rem; border-width: 1px; border-radius: 999px; }

/* Markets */
.flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
}

.flags__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4rem 0.9rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* FAQ */
.faq {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  overflow: hidden;
}

.faq__item + .faq__item { border-top: 1px solid var(--color-border); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3);
  color: var(--color-green-dark);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q:hover { color: var(--color-red); }

.faq__icon { width: 1.25rem; height: 1.25rem; transition: transform .2s var(--ease); }

.faq__item[open] .faq__icon { transform: rotate(180deg); }

.faq__a { padding: 0 var(--space-3) var(--space-3); color: var(--color-text); }

.faq__a a { color: var(--color-green-dark); }

/* Lead form section */
.form-section {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 960px) {
  .form-section { grid-template-columns: 0.85fr 1fr; gap: var(--space-8); }
}

.form-section .section-head { margin-bottom: var(--space-3); }

.form-section__card { padding: var(--space-4) var(--space-3); }

@media (min-width: 640px) {
  .form-section__card { padding: var(--space-6) var(--space-4); }
}

.checklist { display: grid; gap: var(--space-2); }

.checklist li { display: flex; gap: var(--space-1); }

.checklist .icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.2rem;
  background: var(--color-bg-alt);
  color: var(--color-green-dark);
  border-radius: 50%;
}

:is(.bg--dark, .bg--red) .checklist .icon { background: var(--color-surface); color: var(--color-red); }

.bg--dark .checklist .icon { color: var(--color-green-dark); }

.form-section__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-weight: 600;
}

.form-section__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
}

/* CTA banner */
.cta-banner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cta-banner .section-head { margin-bottom: 0; }

@media (min-width: 960px) {
  .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; }

  .cta-banner .btn-group { flex-shrink: 0; justify-content: flex-end; }
}

.section--cta-banner { padding-block: var(--space-8); }

/* Fluent Forms: keep plugin layout, align controls with the theme */
.lead-form .ff-el-form-control {
  min-height: 48px;
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
}

.lead-form .ff-el-form-control:focus { border-color: var(--color-green); box-shadow: none; outline: 2px solid var(--color-red); outline-offset: 1px; }

.lead-form .ff-el-input--label label { color: var(--color-text); font-weight: 500; }

.lead-form .ff-btn-submit {
  min-height: 48px;
  padding-inline: 1.75rem;
  background: var(--color-red) !important;
  color: var(--color-on-dark) !important;
  border-radius: 999px !important;
  font-weight: 600;
}

.lead-form .ff-btn-submit:hover { background: var(--color-red-hover) !important; }

.lead-form .ff-message-success {
  background: var(--color-bg-alt);
  color: var(--color-green-dark);
  border: 0;
  border-radius: var(--radius);
}

/* 19. Catalog (shop, categories, tags)
   ========================================================================== */
.page-header--shop.has-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(260px, 32vw, 420px);
  overflow: hidden;
  color: var(--color-on-dark);
}

.page-header__cover { position: absolute; inset: 0; }

.page-header__cover img { width: 100%; height: 100%; object-fit: cover; }

/* Keeps the title readable on any photo. */
.page-header__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-green-dark) 85%, transparent) 0%, color-mix(in srgb, var(--color-green-dark) 55%, transparent) 45%, color-mix(in srgb, var(--color-green-dark) 10%, transparent) 100%);
}

.page-header--shop.has-banner .page-header__inner { position: relative; z-index: 1; width: 100%; }

.page-header--shop.has-banner .page-header__text { max-width: 36rem; }

.page-header--shop.has-banner :is(.page-header__title, .eyebrow, .breadcrumb, .breadcrumb a, .page-header__intro) { color: var(--color-on-dark); }

.shop { padding-top: var(--space-4); }

.chips--cats { margin-bottom: var(--space-2); }

.chips--sub { margin-bottom: var(--space-4); }

.chips--sub .chip { min-height: 34px; padding-block: 0.25rem; font-size: 0.8125rem; }

.chips--cats + .shop__layout { margin-top: var(--space-4); }

.shop__layout {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

@media (min-width: 960px) {
  .shop__layout:has(.shop-filters) { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-6); }
}

.shop__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.shop__count { color: var(--color-muted); font-size: var(--fs-sm); }

.shop__filter-toggle { min-height: 40px; padding: 0.4rem 1rem; font-size: var(--fs-sm); }

@media (min-width: 960px) {
  .shop__filter-toggle { display: none; }
}

.shop__grid { --grid-gap: var(--space-3); }

.shop__empty { margin-top: var(--space-2); }

.empty-state__title { margin-bottom: var(--space-1); font-size: var(--fs-h3); }

.empty-state .btn-group { margin-top: var(--space-3); }

/* Active filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 34px;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-alt);
  color: var(--color-green-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.active-filter:hover { background: var(--color-border); color: var(--color-green-dark); }

.active-filter__group { color: var(--color-muted); font-weight: 500; }

.active-filter__x { font-size: 1.1em; line-height: 1; }

.active-filters__clear { margin-left: var(--space-1); font-size: 0.8125rem; font-weight: 600; }

/* Filter panel: sticky sidebar on desktop, drawer on mobile */
.shop-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.shop-filters__title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
}

.shop-filters__title .icon { width: 1.1rem; height: 1.1rem; color: var(--color-green); }

.filter-group {
  min-width: 0;
  margin: 0;
  padding: var(--space-2) 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.filter-group__title {
  float: left;
  width: 100%;
  margin-bottom: var(--space-1);
  padding: 0;
  color: var(--color-green-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-group__title + * { clear: both; }

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 40px;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.filter-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-green-dark);
}

.filter-option__label { flex: 1; }

.filter-option__count {
  min-width: 1.75rem;
  padding: 0 0.4rem;
  background: var(--color-bg-alt);
  color: var(--color-muted);
  border-radius: 999px;
  font-size: 0.75rem;
  text-align: center;
}

.shop-filters__actions {
  display: grid;
  gap: var(--space-1);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  justify-items: center;
}

.shop-filters__form.is-auto [data-filter-apply] { display: none; }

.shop-filters__form.is-auto .shop-filters__actions:not(:has(a)) { display: none; }

@media (min-width: 960px) {
  .shop-filters {
    position: sticky;
    top: calc(var(--header-h) + var(--space-3));
    padding: var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
  }

  .shop-filters__close,
  .drawer-backdrop { display: none !important; }
}

@media (max-width: 959px) {
  .shop-filters {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 210;
    width: min(340px, 88vw);
    padding: var(--space-2) var(--space-3) var(--space-4);
    background: var(--color-surface);
    box-shadow: var(--shadow);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }

  .shop-filters.is-open {
    transform: none;
    visibility: visible;
    transition: transform .3s var(--ease);
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--overlay);
  }
}

/* WooCommerce pagination */
.woocommerce-pagination { margin-top: var(--space-6); }

.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
}

.woocommerce-pagination .page-numbers span.current {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  color: var(--color-on-dark);
}

/* WooCommerce notices */
.woocommerce-notices-wrapper:not(:empty) { margin-bottom: var(--space-3); }

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-alt);
  color: var(--color-green-dark);
  border-left: 3px solid var(--color-green);
  border-radius: var(--radius-sm);
  list-style: none;
}

.woocommerce-error { border-left-color: var(--color-red); }

/* Breadcrumb separators (WooCommerce fallback) */
.breadcrumb__sep { margin-inline: 0.5em; opacity: .5; }

/* 20. Single product
   ========================================================================== */
.product-hero { padding-top: var(--space-4); }

.product-hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 960px) {
  .product-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); }

  .product-hero__summary { position: sticky; top: calc(var(--header-h) + var(--space-3)); }
}

.product-hero__summary .eyebrow a { color: inherit; text-decoration: none; }

.product-hero__title { font-size: clamp(2rem, 4vw, 3rem); }

.product-hero__summary > * + * { margin-top: var(--space-3); }

.product-hero__summary .badge-list { margin-top: var(--space-2); }

.product-hero__excerpt { font-size: var(--fs-lg); }

.claims {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.badge .icon { width: 0.95em; height: 0.95em; }

.claims .badge { font-size: 0.8125rem; padding: 0.3em 0.8em; }

.product-hero__ctas .btn { flex: 1 1 auto; }

.product-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.product-hero__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
}

.product-hero__links a:hover { text-decoration: underline; }

/* WooCommerce gallery (default CSS is removed) */
/* WooCommerce fades the gallery in after its script runs; show it at once (better LCP) and
   avoid layout shift: only the first image shows before the slider exists, with room for the thumbnails. */
.woocommerce-product-gallery { position: relative; margin: 0; opacity: 1 !important; }

.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n + 2) { display: none; }

.woocommerce-product-gallery:not(:has(.flex-control-thumbs)):has(.woocommerce-product-gallery__image:nth-child(2)) {
  padding-bottom: calc((100% - 4 * var(--space-1)) / 5 + var(--space-2));
}

/* Square, clipped viewport: slides never stack vertically while the slider initialises. */
.woocommerce-product-gallery .flex-viewport {
  height: auto !important;
  aspect-ratio: 1;
}

.woocommerce-product-gallery__wrapper { margin: 0; }

.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery__image:only-child {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery img.wp-post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.woocommerce-product-gallery__image--placeholder img { border-radius: var(--radius-lg); }

.woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-1);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-bg-alt);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  opacity: .65;
  cursor: pointer;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}

.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }

.woocommerce-product-gallery .flex-control-thumbs img.flex-active { border-color: var(--color-green); opacity: 1; }

.woocommerce-product-gallery__trigger {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  color: var(--color-green-dark);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 0;
  text-decoration: none;
}

.woocommerce-product-gallery__trigger::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}

.woocommerce-product-gallery__trigger::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 7px;
  background: currentColor;
  transform: translate(6px, 6px) rotate(-45deg);
}

/* Details blocks */
.product-details__grid {
  display: grid;
  gap: var(--space-3);
  align-items: start;
}

@media (min-width: 960px) {
  .product-details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .product-block--specs { grid-row: span 2; }
}

.product-block { padding: var(--space-4) var(--space-3); }

@media (min-width: 640px) {
  .product-block { padding: var(--space-4); }
}

.product-block__title {
  margin-bottom: var(--space-3);
  font-size: var(--fs-h3);
}

.product-block__sub {
  margin: var(--space-3) 0 var(--space-1);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-block__title + .product-block__sub { margin-top: 0; }

.spec-table { font-size: var(--fs-sm); }

.spec-table th,
.spec-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.spec-table th { width: 45%; padding-right: var(--space-2); color: var(--color-muted); font-weight: 500; }

.spec-table td { color: var(--color-text); font-weight: 600; }

.spec-table tr:last-child :is(th, td) { border-bottom: 0; }

.checklist--compact { gap: var(--space-1); grid-template-columns: repeat(2, minmax(0, 1fr)); }

.checklist--compact li { font-size: var(--fs-sm); align-items: center; }

.product-block .spec-mini { margin-top: var(--space-3); font-size: var(--fs-sm); }

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.cert-badges:has(.cert-badge-doc) { gap: var(--space-2) var(--space-3); }

/* 21. Contact / quote
   ========================================================================== */

.request-tabs {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.request-tabs::-webkit-scrollbar { display: none; }

.request-tabs__tab {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.request-tabs__tab:hover { border-color: var(--color-green); color: var(--color-green-dark); }

.request-tabs__tab.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-on-dark);
}

.contact__grid {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-8); }

  .contact__aside { position: sticky; top: calc(var(--header-h) + var(--space-3)); }
}

.contact__form { padding: var(--space-4) var(--space-3); border: 1px solid var(--color-border); }

@media (min-width: 640px) {
  .contact__form { padding: var(--space-6) var(--space-4); }
}

.contact__aside { display: grid; gap: var(--space-3); }

.next-steps,
.contact-card {
  padding: var(--space-4) var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.contact-card { background: var(--color-green-dark); color: var(--on-dark-muted); }

.contact-card .next-steps__title { color: var(--color-on-dark); }

.contact-card a { color: var(--color-on-dark); }

.contact-card strong { color: var(--color-on-dark); }

.next-steps__title {
  margin-bottom: var(--space-3);
  font-size: var(--fs-h4);
}

.next-steps__list { display: grid; gap: var(--space-3); }

.next-steps__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-2);
  align-items: start;
}

.next-steps__list .process__num { width: 40px; height: 40px; }

.next-steps__list strong { display: block; color: var(--color-green-dark); }

.next-steps__list p { margin-top: 0.25rem; color: var(--color-muted); font-size: var(--fs-sm); }

/* 22. Single, archives, search
   ========================================================================== */
.single__header .eyebrow a { color: inherit; text-decoration: none; }

.single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.single__thumb { margin-top: var(--space-6); }

.single__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.info-box {
  margin-top: calc(var(--space-4) * -1);
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .info-box { padding: var(--space-4); }
}

.info-box__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-3);
}

.info-box__list dt { color: var(--color-muted); font-size: 0.8125rem; }

.info-box__list dd { margin: 0.2rem 0 0; color: var(--color-green-dark); font-weight: 600; }

.info-box .btn-group { margin-top: var(--space-3); }

.info-box__title { margin-top: var(--space-4); font-size: var(--fs-h4); }

.info-box .facts { margin-top: var(--space-2); }

.single__body { padding-top: var(--space-6); }

.inline-cta {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-3);
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .inline-cta { padding: var(--space-4); }
}

.inline-cta__title { font-size: var(--fs-h4); }

.inline-cta p { margin-top: var(--space-1); color: var(--color-muted); }

.regions { display: grid; gap: var(--space-6); }

.region__intro { max-width: var(--container-narrow); margin-bottom: var(--space-3); }

.region__intro h4 { font-size: var(--fs-h3); }

.region__actions { margin-top: var(--space-3); }

.region__title {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-h4);
}

.flags--left { justify-content: flex-start; }

/* World map with pulsing pins (markets section) */
.world-map {
  position: relative;
  max-width: 1100px;
  aspect-ratio: 1000 / 394;
  margin: 0 auto var(--space-4);
}

.world-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-green) 38%, transparent);
  -webkit-mask: url("../img/world-dots.svg") center / 100% 100% no-repeat;
  mask: url("../img/world-dots.svg") center / 100% 100% no-repeat;
}

:is(.bg--dark, .bg--red) .world-map::before { background: var(--on-dark-line); }

.world-map__pins { margin: 0; padding: 0; list-style: none; }

.world-map__pin {
  --pin: var(--color-green);
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--pin);
  border: 2px solid var(--color-surface);
  border-radius: 50%;
}

.world-map__pin::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--pin);
  animation: nasami-ping 2.4s var(--ease) var(--delay, 0s) infinite;
}

.world-map__pin--origin {
  --pin: var(--color-red);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
}

.world-map__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.5rem);
  padding: 0.15rem 0.5rem;
  background: var(--color-red);
  color: var(--color-on-dark);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(-50%);
}

@keyframes nasami-ping {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(4); opacity: 0; }
}

@media (max-width: 639px) {
  .world-map__pin { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-width: 1.5px; }

  .world-map__pin--origin { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }

  /* Above the pin, so it never runs past the screen edge. */
  .world-map__label { top: auto; bottom: calc(100% + 0.4rem); left: 50%; font-size: 0.625rem; transform: translateX(-50%); }
}

.flags__item a { color: inherit; text-decoration: none; }

.flags__item a:hover { color: var(--color-red); }

.search-results { margin-top: var(--space-6); }

.section > .container > .search-form { margin-top: 0; }

/* 23. Lead features (Phase 7)
   ========================================================================== */

/* Announcement bar */
.announce {
  background: var(--color-red);
  color: var(--color-on-dark);
  font-size: var(--fs-sm);
}

.announce__inner {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 40px;
}

.announce__icon { width: 1.1rem; height: 1.1rem; }

.announce__text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.announce__text a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--color-on-dark);
  text-decoration: none;
}

.announce__text a:hover { text-decoration: underline; }

.announce__text .icon { width: 1rem; height: 1rem; }

.announce__close { width: 36px; height: 36px; color: var(--color-on-dark); }

.announce__close .icon { width: 1.1rem; height: 1.1rem; }

.announce__close:hover { background: var(--color-red-hover); }

@media (max-width: 639px) {
  .announce__icon { display: none; }
  .announce__text { font-size: 0.8125rem; line-height: 1.35; padding-block: 0.4rem; }
}

/* Header search + quote link */
.search-toggle,
.quote-link { color: var(--color-green-dark); }

.search-toggle:hover,
.quote-link:hover { background: var(--color-bg-alt); color: var(--color-green-dark); }

.quote-link { position: relative; }

.quote-link__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--color-red);
  color: var(--color-on-dark);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.header-search {
  padding-block: var(--space-2);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.header-search__form {
  position: relative;
  display: flex;
  gap: var(--space-1);
  max-width: 760px;
  margin-inline: auto;
}

.header-search__icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: var(--color-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.header-search__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.header-search__input:focus { border-color: var(--color-green); }

/* Add to quote */
.quote-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  color: var(--color-green-dark);
  text-decoration: none;
  cursor: pointer;
}

.quote-toggle .quote-toggle__added { display: none; }

.quote-toggle.is-added .quote-toggle__add { display: none; }

.quote-toggle.is-added .quote-toggle__added { display: inline-block; }

.quote-toggle--icon {
  position: absolute !important;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 3 !important;
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.quote-toggle--icon .quote-toggle__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.quote-toggle--icon:hover { background: var(--color-bg-alt); color: var(--color-green-dark); }

.quote-toggle--icon.is-added { background: var(--color-green-dark); border-color: var(--color-green-dark); color: var(--color-on-dark); }

.quote-toggle--full {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px dashed var(--color-green);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.quote-toggle--full:hover { background: var(--color-bg-alt); color: var(--color-green-dark); }

.quote-toggle--full.is-added { background: var(--color-bg-alt); border-style: solid; }

@media (max-width: 639px) {
  .grid--compact .quote-toggle--icon { top: var(--space-1); right: var(--space-1); width: 36px; height: 36px; }
}

/* Feedback on click (main.js adds .is-pop / .is-bump): the toggle pops and the check draws itself, the header count bounces. */
.quote-toggle.is-pop { animation: quote-pop .4s var(--ease); }

.quote-toggle.is-pop.is-added .quote-toggle__added path {
  stroke-dasharray: 24;
  animation: quote-draw .35s .1s var(--ease) both;
}

.quote-link__count.is-bump { animation: quote-bump .45s var(--ease); }

@keyframes quote-pop {
  0% { transform: scale(1); }
  35% { transform: scale(.82); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes quote-draw {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

@keyframes quote-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  70% { transform: scale(.9); }
  100% { transform: scale(1); }
}

.product-hero__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.product-hero__secondary .btn--link { font-size: var(--fs-sm); }

/* Quote list on the contact page */
.contact__main { display: grid; gap: var(--space-3); align-content: start; }

/* Quick quote tab + dialog */
.quick-quote-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 95;
  display: none;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) 0.6rem;
  background: var(--color-red);
  color: var(--color-on-dark);
  border: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.quick-quote-tab .icon { transform: rotate(90deg); }

.quick-quote-tab:hover { background: var(--color-red-hover); }

@media (min-width: 960px) {
  .quick-quote-tab { display: inline-flex; }
}

.quick-quote {
  width: min(600px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 2 * var(--space-4));
  padding: var(--space-4);
  background: var(--color-surface);
  color: var(--color-text);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.quick-quote::backdrop { background: var(--overlay); }

.quick-quote__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.quick-quote__title { font-size: var(--fs-h3); }

.quick-quote__frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

.quick-quote__loading { padding-block: var(--space-4); color: var(--color-muted); text-align: center; }

/* Lead form frame document */
body.is-frame {
  min-height: 0;
  padding: 0;
  background: var(--color-surface);
}

.form-frame { padding: 2px 2px var(--space-2); }

/* Catalog keyword + popular searches */
.filter-group--keyword { border-top: 0; padding-top: 0; }

.filter-keyword { position: relative; }

.filter-keyword__input { min-height: 44px; padding-right: 3rem; font-size: var(--fs-sm); }

.filter-keyword__submit {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--color-green-dark);
}

.filter-keyword__submit .icon { width: 1.1rem; height: 1.1rem; }

.hot-searches__label { margin-top: var(--space-2); color: var(--color-muted); font-size: 0.75rem; }

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.chip--sm { min-height: 30px; padding: 0.2rem 0.7rem; font-size: 0.75rem; }

/* Product tabs */
.product-tabs__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.product-tabs__tab { cursor: pointer; }

.product-tabs__tab.is-active {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  color: var(--color-on-dark);
}

/* Search groups */
.search-group { margin-top: var(--space-6); }

.search-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.search-group__title { margin-bottom: var(--space-3); font-size: var(--fs-h3); }

.search-group__head .search-group__title { margin-bottom: 0; }

.search-group__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
  text-decoration: none;
}

/* Reveal on scroll (JS adds .js-reveal only when motion is allowed) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease) var(--reveal-delay, 0ms), transform .5s var(--ease) var(--reveal-delay, 0ms);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Product picker (lead form "product" field) */
.product-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.product-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-green);
  border-radius: 999px;
  color: var(--color-green-dark);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
}

.product-picker__chip span { overflow-wrap: anywhere; }

.product-picker__remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.product-picker__remove:hover { background: var(--color-surface); color: var(--color-red); }

.product-picker__row { display: flex; gap: var(--space-1); }

.product-picker__search { flex: 1; min-width: 0; }

.product-picker__add { flex: none; min-height: 44px; padding: 0.5rem 1.1rem; font-size: var(--fs-sm); }

.product-picker__hint { margin: 0.5rem 0 0; color: var(--color-muted); font-size: 0.8125rem; }

/* 24. Content & consent (Phase 8)
   ========================================================================== */

/* Hero: dark style. The section stays light; the green panel carries the padding,
   the badge strip sits on the light part below it. */
.hero--dark.hero--full,
.hero--dark.hero--compact { padding-block: 0; }

.hero--dark.hero--full:has(.hero__bg) { display: block; min-height: 0; }

/* The panel is dark, so the next section never shares its background. */
.section.hero--dark.bg--default + .section { padding-top: var(--section-y); }

.hero__panel {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem);
  background:
    radial-gradient(60rem 32rem at 90% -10%, color-mix(in srgb, var(--color-green) 50%, transparent), transparent 70%),
    radial-gradient(40rem 24rem at -10% 110%, color-mix(in srgb, var(--color-orange) 16%, transparent), transparent 70%),
    var(--color-green-dark);
}

.hero--compact .hero__panel { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.hero--full .hero__panel:has(.hero__bg) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(80vh, 720px);
}

.hero__panel .hero__lead { color: var(--on-dark-muted); }

.hero__panel .hero__media img { box-shadow: 0 24px 48px color-mix(in srgb, var(--color-text) 30%, transparent); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--on-dark-line);
}

@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
}

.hero__stat-value {
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
}

.hero__stat-label {
  margin: 0.4rem 0 0;
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}

.hero__band { padding-block: var(--space-3); }

.hero__band .hero__badges { justify-content: center; margin-top: 0; }

/* Downloads */
.downloads { margin: 0; padding: 0; list-style: none; }

.card--download__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.card--download__cover img { width: 100%; height: 100%; object-fit: contain; }

.card--download__cover .icon { width: 3rem; height: 3rem; color: var(--color-green); }

.card--download__meta { margin: 0; color: var(--color-muted); font-size: 0.8125rem; }

.card--download .btn { align-self: flex-start; margin-top: auto; }

.card--download .card__text + .btn,
.card--download__meta + .btn { margin-top: var(--space-2); }

@media (max-width: 639px) {
  .card--download { flex-direction: row; }

  .card--download__cover {
    flex: 0 0 6.5rem;
    aspect-ratio: auto;
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
  }
}

/* Cookie banner: fixed, so showing it never shifts the page. */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 150;
  max-height: 85vh;
  overflow-y: auto;
  padding-block: var(--space-3);
  border-top: 1px solid var(--on-dark-line);
  box-shadow: var(--shadow-up);
}

.cookie-banner__inner { display: grid; gap: var(--space-2); }

.cookie-banner__text { margin: 0; font-size: var(--fs-sm); }

.cookie-banner__text a { text-decoration: underline; }

.cookie-banner__prefs {
  display: grid;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: var(--space-2) 0 0;
  border: 0;
  border-top: 1px solid var(--on-dark-line);
}

.cookie-pref {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
  cursor: pointer;
}

.cookie-pref strong { display: block; color: var(--color-on-dark); }

.cookie-pref input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  accent-color: var(--color-green);
}

.cookie-pref input:disabled { cursor: not-allowed; }

.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }

.cookie-banner__actions .btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-sm);
}

@media (min-width: 640px) {
  .cookie-banner__prefs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .cookie-banner__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-6); }

  .cookie-banner__prefs { grid-column: 1 / -1; grid-row: 2; }

  .cookie-banner__actions .btn { flex: 0 0 auto; }
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  align-items: center;
}

.cookie-settings-link {
  min-height: 24px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--on-dark-muted);
  font: inherit;
  cursor: pointer;
}

.cookie-settings-link:hover { color: var(--color-on-dark); text-decoration: underline; }

/* 25. Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:has(.card__link):hover { transform: none; }
}
