/* ===== Global / Utility ===== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

svg {
  display: block;
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.container {
  width: min(calc(100% - (var(--container-padding) * 2)), var(--container-max));
  margin-inline: auto;
}

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

.section--soft {
  background: var(--color-bg-soft);
}

.section--emphasis {
  background: var(--color-bg-section);
}

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

.section-heading__label {
  border-left: 4px solid var(--color-brand);
  padding-left: var(--space-4);
}

.section-heading__label .section-heading__eyebrow {
  margin-bottom: var(--space-2);
}

.section-heading__label .section-heading__title {
  margin: 0;
}

.page-home .section-heading {
  margin-bottom: clamp(var(--space-5), 4vw, var(--space-6));
}

.section-heading__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.section-heading__title {
  margin: 0;
  font-size: var(--font-section-title-size);
  line-height: var(--line-height-section);
  font-weight: var(--font-weight-section);
  color: var(--color-text-primary);
}

.section-heading__text {
  margin: var(--space-4) 0 var(--space-5);
  max-width: var(--text-measure);
  color: var(--color-text-secondary);
}

/* Page-section H2 labels use the shared blue rail above.
   Hero H1, Final CTA, Footer, card, legal, and article-internal headings
   remain outside this component. */

/* Page hero rule: the page <h1> is the hero — larger title, never gets the bar.
   <h2> section titles keep the accent bar. */
h1.section-heading__title {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
}

.section .section-heading:has(h1.section-heading__title) {
  padding-left: 0;
  border-left: 0;
}

.section-heading__accent {
  color: var(--color-brand);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  color: var(--color-text-link);
}

.text-link:hover {
  color: var(--color-brand-dark);
}

/* ===== Category breadcrumb (six product category pages) =====
   Pinned under the site header so a buyer scrolling a long category page keeps
   two things: "where am I" and a way back up. Deliberately breadcrumb-only —
   a full subcategory list here would repeat the Products mega-menu, which
   already carries all six categories and their subcategories on every page.
   Same pattern as .pc-toolbar in product-center.css; see that file's note.
   Owner: docs/VERIBATH_NAV_IA.md. */
.cat-crumb {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  /* Opaque on purpose: product photography scrolling underneath ghosts through
     a translucent bar. Same reason as .pc-toolbar. */
  background: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border);
}

.cat-crumb__inner {
  display: flex;
  align-items: center;
  gap: 7px;
  /* The bar's height is the token and nothing else: .category-card[id] offsets
     itself by the same token, so any padding added here would silently push
     anchor targets back under the header. */
  min-height: var(--cat-crumb-height);
  padding-top: 0;
  padding-bottom: 0;
  font-size: var(--font-small-size);
  line-height: 1.4;
  /* Long subcategory names must not wrap the bar to two rows and change its
     height, which would break the scroll-margin offset below. */
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.cat-crumb__inner::-webkit-scrollbar { display: none; }

.cat-crumb a,
.cat-crumb__sep,
.cat-crumb__current {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cat-crumb a {
  color: var(--color-text-link);
  text-decoration: none;
  border-bottom: 1px solid var(--color-brand-line);
}

.cat-crumb a:hover,
.cat-crumb a:focus-visible { border-bottom-color: var(--color-brand); }

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

/* The last node moves within the page rather than to another page, so it is
   dotted instead of underlined. It is written by assets/js/main.js as the
   reader scrolls and stays absent without JavaScript. */
.cat-crumb__current {
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-border);
}

.cat-crumb__current:hover,
.cat-crumb__current:focus-visible {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

/* Anchor targets must clear both pinned layers. Without this the card title
   landed underneath the site header for every subcategory link in the mega-menu.
   Scoped to cards that are link targets — only the six category pages have them. */
.category-card[id] {
  scroll-margin-top: calc(var(--header-height) + var(--cat-crumb-height) + 16px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-height);
  padding: 0 var(--space-5);
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: var(--font-button-size);
  font-weight: var(--font-weight-button);
  line-height: var(--line-height-button);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn:hover {
  text-decoration: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-hover);
}

.btn-cta {
  background: var(--btn-cta-bg);
  color: var(--btn-cta-text);
  box-shadow: var(--shadow-card);
}

.btn-cta:hover {
  background: var(--btn-cta-bg-hover);
  color: var(--btn-cta-text);
  box-shadow: var(--shadow-hover);
}

.btn-lg {
  min-height: var(--btn-min-height-lg);
  padding-inline: var(--space-6);
  font-size: 17px;
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-secondary:hover {
  background: var(--color-brand-soft-2);
  color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .65);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
  transition: background-color .18s ease, box-shadow .18s ease;
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: min-height .18s ease;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: 34px;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--color-text-primary);
}

.menu-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.nav-item {
  position: relative;
}

.main-nav > .nav-link:nth-of-type(1) {
  margin-left: var(--space-4);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  transition: min-height .18s ease;
}

.nav-item--has-menu > .nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .7;
}

.main-nav a {
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--color-brand);
}

.main-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 128px;
  min-height: 42px;
  margin-left: var(--space-5);
  padding-inline: var(--space-5);
  border-radius: 6px;
  border: 1px solid var(--btn-cta-bg);
  background: var(--btn-cta-bg);
  color: var(--btn-cta-text);
  transition: min-height .18s ease, padding .18s ease, background-color .18s ease, color .18s ease;
}

.main-nav .nav-cta::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
  transition: transform .18s ease;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  background: var(--btn-cta-bg-hover);
  border-color: var(--btn-cta-bg-hover);
  color: var(--btn-cta-text);
  text-decoration: none;
}

.main-nav .nav-cta:hover::after,
.main-nav .nav-cta:focus-visible::after {
  transform: translateX(2px);
}

@media (min-width: 992px) {
  .site-header__inner {
    position: relative;
  }

  .main-nav {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
    /* Must stay >= the rendered .nav-cta width (178px), or the last nav item
       overlaps the CTA at the narrow end of the desktop range. */
    padding-right: 180px;
  }

  .main-nav > .nav-link:nth-of-type(1) {
    margin-left: 0;
  }

  .main-nav .nav-cta {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-left: 0;
  }
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 180;
  box-sizing: border-box;
  width: min(300px, calc(100vw - 32px));
  padding: var(--space-3);
  border: 1px solid rgba(23, 99, 203, 0.16);
  border-radius: 14px;
  background: var(--color-bg-section);
  box-shadow:
    0 22px 54px rgba(15, 23, 42, 0.16),
    0 8px 18px rgba(23, 99, 203, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

/* ===== Products Menu v3: 3-Column Layout ===== */
.nav-menu--products-v3 {
  display: flex !important;
  width: min(900px, calc(100vw - 32px)) !important;
  padding: 16px !important;
  gap: 0;
  height: 300px;
  max-height: 300px;
  overflow: hidden;
}

/* Left column: Category navigation */
.nav-menu__categories {
  flex: 0 0 220px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.nav-menu__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 8px;
}

.nav-menu__category {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease, padding 0.15s ease;
  text-align: left;
  position: relative;
}

.nav-menu__category:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
}

/* Active tab docks seamlessly into the subcategories panel:
   same tint, left-rounded/right-square, overlaps the panel edge by 1px,
   and is slightly taller than the resting tabs. */
.nav-menu__category.is-active {
  background: var(--color-white);
  color: var(--color-brand-dark);
  border-color: rgba(23, 99, 203, 0.14);
  border-radius: 8px 0 0 8px;
  padding-top: 13px;
  padding-bottom: 13px;
  margin-right: -1px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  z-index: 1;
}

/* Middle column: Selected category sublinks */
.nav-menu__subcategories {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(23, 99, 203, 0.12);
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header removed: the active tab's seamless dock already signals the
   current category, so the repeated title/icon row is hidden. */
.nav-menu__subcategories-header {
  display: none;
}

.nav-menu__subcategories-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--btn-cta-bg-hover);
  font-size: 18px;
  margin-right: 10px;
}

.nav-menu__subcategories-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brand);
}

/* Subcategories list */
.nav-menu__subcategories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 0;
  align-content: start;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.nav-menu__subcategories-grid[hidden] {
  display: none;
}

.nav-menu .nav-menu__subitem {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-wrap: anywhere;
}

.nav-menu .nav-menu__subitem:hover {
  color: var(--color-brand);
  background: transparent;
}

.nav-menu .nav-menu__subitem--primary {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--color-brand-line);
  color: var(--color-brand-dark);
  font-weight: 700;
}

.nav-menu .nav-menu__subitem--primary:hover {
  background: transparent;
  color: var(--color-brand);
}

/* Right column: Resource card */
.nav-menu__resource-hero {
  flex: 0 0 176px;
  margin-left: 12px;
  background: var(--color-brand);
  padding: 18px 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--color-white);
}

.nav-menu__resource-hero::before {
  content: "Product Center";
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.nav-menu__resource-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu__resource-title {
  max-width: none;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-white);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.nav-menu__resource-text {
  max-width: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 12px 0;
  line-height: 1.45;
  font-weight: 500;
}

.nav-menu__resource-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

/* Outlined button on the blue hero: white frame + white text, no arrow.
   Hover inverts to a solid white fill with brand-blue text. */
.nav-menu .nav-menu__resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  border: 1.5px solid var(--color-white);
  text-decoration: none;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu .nav-menu__resource-link:hover,
.nav-menu .nav-menu__resource-hero:hover .nav-menu__resource-link {
  background: var(--color-white);
  color: var(--color-brand);
  text-decoration: none;
}

.nav-menu__resource-cta {
  display: inline-block;
  padding: 10px 16px;
  background: var(--btn-cta-bg);
  color: var(--btn-cta-text);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  width: fit-content;
}

.nav-menu__resource-cta:hover {
  background: var(--btn-cta-bg-hover);
  transform: translateY(-1px);
}

/* ===== Resources Menu: single row of 5 even cards, sized to match the
   Products mega menu (900px wide, min-height 300). Reuses the shared card
   language (brand-faint hover tint, icon badge). ===== */
.nav-menu--resources {
  width: min(900px, calc(100vw - 32px)) !important;
  padding: 16px !important;
  min-height: 300px;
  display: flex;
  gap: 12px;
}

.nav-menu .nav-menu__res-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(23, 99, 203, 0.12);
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-menu .nav-menu__res-card:hover {
  background: var(--color-white);
  border-color: var(--color-brand);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.nav-menu .nav-menu__res-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--color-brand-faint);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.nav-menu .nav-menu__res-card:hover .nav-menu__res-icon {
  background: var(--color-white);
}

.nav-menu .nav-menu__res-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-menu .nav-menu__res-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.nav-menu .nav-menu__res-card:hover .nav-menu__res-title {
  color: var(--color-brand-dark);
}

.nav-menu .nav-menu__res-text {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

/* Resources is the 4th nav slot; a 900px menu centered under it would
   overflow. Pin it to the viewport center like the Products mega menu. */
@media (min-width: 992px) {
  .nav-menu--resources {
    position: fixed;
    top: calc(var(--header-height) - 8px);
  }
}

/* ===== Buyer Types Menu: one row of 5 even cards (four white buyer routes +
   one brand-blue Catalog resource card), sized identically to the Resources
   menu and the Products mega menu (900px wide, min-height 300). ===== */
.nav-menu--buyer-types {
  width: min(900px, calc(100vw - 32px)) !important;
  padding: 16px !important;
  min-height: 300px;
  display: flex;
  gap: 12px;
}

.nav-menu .nav-menu__route-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(23, 99, 203, 0.12);
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-menu .nav-menu__route-card:hover {
  background: var(--color-white);
  border-color: var(--color-brand);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.nav-menu .nav-menu__route-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--color-brand-faint);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.nav-menu .nav-menu__route-card:hover .nav-menu__route-icon {
  background: var(--color-white);
}

.nav-menu .nav-menu__route-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-menu .nav-menu__route-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.nav-menu .nav-menu__route-card:hover .nav-menu__route-title {
  color: var(--color-brand-dark);
}

.nav-menu .nav-menu__route-text {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

/* 5th card = brand-blue Product Center card, distinct from the four white
   buyer cards. The same treatment is reused as the last Resources card. */
.nav-menu .nav-menu__route-card--product-center {
  background: var(--color-brand);
  border-color: var(--color-brand);
  box-shadow: 0 12px 28px rgba(23, 99, 203, 0.22);
}

.nav-menu .nav-menu__route-card--product-center:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.nav-menu .nav-menu__route-card--product-center .nav-menu__route-icon,
.nav-menu .nav-menu__route-card--product-center:hover .nav-menu__route-icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
}

.nav-menu .nav-menu__route-card--product-center .nav-menu__route-title,
.nav-menu .nav-menu__route-card--product-center:hover .nav-menu__route-title {
  color: var(--color-white);
}

.nav-menu .nav-menu__route-card--product-center .nav-menu__route-text,
.nav-menu .nav-menu__route-card--product-center:hover .nav-menu__route-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Same brand-blue Product Center treatment as the last Resources card. */
.nav-menu .nav-menu__res-card--product-center {
  background: var(--color-brand);
  border-color: var(--color-brand);
  box-shadow: 0 12px 28px rgba(23, 99, 203, 0.22);
}

.nav-menu .nav-menu__res-card--product-center:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.nav-menu .nav-menu__res-card--product-center .nav-menu__res-icon,
.nav-menu .nav-menu__res-card--product-center:hover .nav-menu__res-icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
}

.nav-menu .nav-menu__res-card--product-center .nav-menu__res-title,
.nav-menu .nav-menu__res-card--product-center:hover .nav-menu__res-title {
  color: var(--color-white);
}

.nav-menu .nav-menu__res-card--product-center .nav-menu__res-text {
  color: rgba(255, 255, 255, 0.85);
}

/* The Product Center card carries a heavier title than the plain cards beside
   it, matching the Products mega-menu hero so the three entries read as one. */
.nav-menu .nav-menu__route-card--product-center .nav-menu__route-title,
.nav-menu .nav-menu__res-card--product-center .nav-menu__res-title {
  font-size: 17px;
  line-height: 1.15;
}

/* Visual button inside a card. The card itself is the <a>, so this must stay a
   <span> — an anchor inside an anchor is invalid. Mirrors the outlined button
   on the Products mega-menu hero, and fills white on card hover, not just on
   button hover. */
.nav-menu .nav-menu__card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  min-height: 40px;
  padding: 0 6px;
  border: 1.5px solid var(--color-white);
  border-radius: 6px;
  background: transparent;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover .nav-menu__card-action {
  background: var(--color-white);
  color: var(--color-brand);
}

/* Buyer Types (2nd slot) is 900px; pin to viewport center like the Products
   and Resources menus so it does not overflow. */
@media (min-width: 992px) {
  .nav-menu--buyer-types {
    position: fixed;
    top: calc(var(--header-height) - 8px);
  }
}

/* ===== About Menu: company and trust-page cards, sized to the shared
   Products / Buyer Types / Resources menu frame (900px wide, min-height 300).
   ===== */
.nav-menu--about {
  width: min(900px, calc(100vw - 32px)) !important;
  padding: 16px !important;
  min-height: 300px;
  display: flex;
  gap: 12px;
}

.nav-menu .nav-menu__about-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(23, 99, 203, 0.12);
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-menu .nav-menu__about-card:hover {
  background: var(--color-white);
  border-color: var(--color-brand);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.nav-menu .nav-menu__about-icon {
  box-sizing: border-box;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--color-brand-faint);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.nav-menu .nav-menu__about-card:hover .nav-menu__about-icon {
  background: var(--color-white);
}

.nav-menu .nav-menu__about-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-menu .nav-menu__about-icon img {
  display: block;
  max-width: 30px;
  max-height: 24px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-menu .nav-menu__about-icon--logo {
  flex: 0 0 38px;
  width: 74px;
  height: 38px;
  background: transparent;
  border: 0;
  border-radius: 0;
  justify-content: flex-start;
}

.nav-menu .nav-menu__about-card:hover .nav-menu__about-icon--logo {
  background: transparent;
}

.nav-menu .nav-menu__about-icon--logo img {
  max-width: 74px;
  max-height: 32px;
}

.nav-menu .nav-menu__about-icon--logo img[src*="tuv"] {
  max-width: 104px;
  max-height: 34px;
}

.nav-menu .nav-menu__about-icon--logo:has(img[src*="tuv"]) {
  width: 104px;
}

.nav-menu .nav-menu__about-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.nav-menu .nav-menu__about-card:hover .nav-menu__about-title {
  color: var(--color-brand-dark);
}

.nav-menu .nav-menu__about-text {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

@media (min-width: 992px) {
  .nav-menu--about {
    position: fixed;
    top: calc(var(--header-height) - 8px);
  }
}

/* ===== Lightweight inquiry modal ===== */
.inquiry-modal {
  width: min(480px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: min(720px, calc(100dvh - 32px));
  box-sizing: border-box;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text-primary);
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}

.inquiry-modal::backdrop {
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(3px);
}

.inquiry-modal__panel {
  position: relative;
  padding: clamp(var(--space-5), 4vw, var(--space-6));
}

.inquiry-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-text-secondary);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.inquiry-modal__close:hover {
  background: var(--color-border);
  color: var(--color-text-primary);
}

.inquiry-modal__close:focus-visible,
.inquiry-modal__field input:focus,
.inquiry-modal__field select:focus,
.inquiry-modal__field textarea:focus,
.inquiry-modal__alt-btn:focus-visible,
.inquiry-modal__privacy a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.inquiry-modal__header {
  padding-right: var(--space-7);
}

.inquiry-modal__eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.inquiry-modal__title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.2;
}

.inquiry-modal__description {
  margin: var(--space-2) 0 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

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

.inquiry-modal__fields {
  display: grid;
  gap: var(--space-4);
}

.inquiry-modal__fields[hidden],
.inquiry-modal__alt-row[hidden],
.inquiry-modal__privacy[hidden] {
  display: none;
}

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

.inquiry-modal__field label {
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 700;
}

.inquiry-modal__field input,
.inquiry-modal__field select,
.inquiry-modal__field textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-white);
  color: var(--color-text-primary);
  font: inherit;
}

.inquiry-modal__field textarea {
  resize: vertical;
  min-height: 80px;
}

.inquiry-modal__field--full {
  grid-column: 1 / -1;
}

.inquiry-modal__optional {
  font-weight: 400;
  color: var(--color-text-secondary);
}

.inquiry-modal__divider {
  margin: var(--space-3) 0 0;
  text-align: center;
  color: var(--color-text-muted, #888);
  font-size: var(--text-sm);
  font-weight: 700;
}

.inquiry-modal__alt-row {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
}

.inquiry-modal__alt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-brand);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-brand);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.inquiry-modal__alt-btn:hover,
.inquiry-modal__alt-btn:focus-visible {
  background: var(--color-brand-faint);
  color: var(--color-brand-dark);
}

.inquiry-modal__privacy a,
.inquiry-modal__status a {
  color: var(--color-brand);
  font-weight: 700;
}

.inquiry-modal__status {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid;
  border-radius: var(--radius-xs);
  line-height: 1.5;
}

.inquiry-modal__status[hidden] {
  display: none;
}

.inquiry-modal__status:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

.inquiry-modal__status--success {
  border-color: #6fac7b;
  background: #eef8f0;
  color: #245b2f;
}

.inquiry-modal__status--error,
.inquiry-modal__status--duplicate {
  border-color: #d6a06d;
  background: #fff7ed;
  color: #73451f;
}

.inquiry-modal__submit {
  width: 100%;
  margin-top: var(--space-5);
}

.inquiry-modal__submit:disabled {
  cursor: wait;
  opacity: .7;
}

.inquiry-modal__privacy {
  margin: var(--space-3) 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.mobile-inquiry-bar {
  display: none;
}

@media (max-width: 991px) {
  html.has-mobile-inquiry-bar body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .mobile-inquiry-bar {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 16px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
    backdrop-filter: blur(10px);
  }

  .mobile-inquiry-bar .btn {
    min-width: 0;
    min-height: 48px;
    padding-inline: 10px;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .inquiry-modal {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    border-radius: var(--radius-md);
  }

  .inquiry-modal__panel {
    padding: var(--space-4) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom));
  }

  .inquiry-modal__close {
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
  }

  .inquiry-modal__title {
    font-size: 1.5rem;
  }

  .inquiry-modal__description {
    line-height: 1.45;
  }

  .inquiry-modal__form {
    margin-top: var(--space-4);
  }

  .inquiry-modal__fields {
    gap: var(--space-3);
  }

  .inquiry-modal__field {
    gap: var(--space-1);
  }

  .inquiry-modal__field input,
  .inquiry-modal__field select,
  .inquiry-modal__alt-btn {
    min-height: 44px;
  }

  .inquiry-modal__submit {
    margin-top: var(--space-4);
  }

  .inquiry-modal__alt-row,
  .inquiry-modal__privacy {
    margin-top: var(--space-2);
  }
}

@media (max-width: 991px) {
  /* ===== Mobile Menu Responsive ===== */
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    padding-block: 0;
  }

  .site-logo,
  .menu-toggle {
    position: relative;
    z-index: 100;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--color-text-primary);
    padding: 0;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    background: white;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--header-height) 0 0;
    gap: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border: none;
    position: static;
  }

  .nav-item > .nav-link,
  .main-nav > .nav-link:not(.nav-cta) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-primary);
  }

  .nav-item--has-menu > .nav-link::after {
    content: "▼";
    font-size: 12px;
    color: var(--color-brand);
    margin-left: auto;
    opacity: 1;
    transform: rotate(0);
    border: none;
    width: auto;
    height: auto;
    margin-top: 0;
    transition: transform 0.2s ease;
  }

  .nav-item--has-menu.is-expanded > .nav-link::after {
    transform: rotate(180deg);
  }

  /* Hide desktop menu on mobile */
  .nav-menu {
    display: none !important;
  }

  /* Show mobile submenu */
  .nav-menu--mobile {
    display: none;
    width: 100%;
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    background: var(--color-bg-soft);
    opacity: 1;
    visibility: visible;
    transform: none;
    animation: slideDown 0.2s ease;
  }

  .nav-menu--mobile[hidden] {
    display: none;
  }

  .nav-item--has-menu.is-expanded .nav-menu--mobile {
    display: flex;
    flex-direction: column;
  }

  .nav-menu--mobile a {
    display: block;
    padding: 12px 16px 12px 32px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text-primary);
  }

  .nav-menu--mobile a:last-child {
    border-bottom: none;
  }

  /* Mobile counterpart of the desktop Product Center card: a full-width brand
     row, closing each of the three menus it appears in. */
  .nav-menu--mobile a.nav-menu__mobile-cta {
    background: var(--color-brand);
    color: var(--color-white);
    font-weight: 700;
    border-bottom: none;
  }

  /* Route back to the parent hub page, injected by main.js as the first row of
     each mobile submenu. Reads as a level-up link, not another sibling
     category, so it carries brand colour without the filled CTA treatment. */
  .nav-menu--mobile a.nav-menu__mobile-hub {
    color: var(--color-brand);
    font-weight: 600;
    background: var(--color-brand-faint);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 500px;
    }
  }

  /* CTA button on mobile */
  .main-nav .nav-cta {
    width: calc(100% - 32px);
    box-sizing: border-box;
    position: static;
    transform: none;
    margin: 16px auto;
    min-height: 44px;
    min-width: 0;
    flex: 0 0 auto;
  }

  /* 3-column Products menu on mobile - hide */
  .nav-menu--products-v3 {
    display: none !important;
  }

  /* Mobile version: simple list (via nav-menu--mobile) */
}

.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-menu--wide {
  width: min(480px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.main-nav .nav-item:first-child .nav-menu {
  left: 0;
  transform: translate(0, -4px);
}

.main-nav .nav-item:first-child:hover .nav-menu,
.main-nav .nav-item:first-child:focus-within .nav-menu {
  transform: translate(0, 0);
}

@media (min-width: 992px) {
  .main-nav .nav-item:first-child .nav-menu--products-v3 {
    position: fixed;
    top: calc(var(--header-height) - 8px);
    left: 50%;
    transform: translate(-50%, -4px);
  }

  .main-nav .nav-item:first-child:hover .nav-menu--products-v3,
  .main-nav .nav-item:first-child:focus-within .nav-menu--products-v3 {
    transform: translate(-50%, 0);
  }
}

.nav-menu a {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--color-bg-soft);
  color: var(--color-brand-dark);
  text-decoration: none;
}

.nav-menu .nav-menu__cta {
  grid-column: 1 / -1;
  margin-top: var(--space-1);
  border-top: 1px solid var(--color-border);
  background: var(--color-brand-faint);
  color: var(--color-brand-dark);
}

.nav-menu .nav-menu__cta:hover,
.nav-menu .nav-menu__cta:focus-visible {
  background: var(--color-brand-soft-2);
}

.nav-menu span {
  display: block;
  font-weight: 800;
  line-height: 1.25;
}

.nav-menu small {
  display: block;
  margin-top: 4px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

@supports (animation-timeline: scroll()) {
  @media (min-width: 992px) {
    .site-header {
      animation: site-header-elevate linear both;
      animation-timeline: scroll();
      animation-range: 0 96px;
    }

    .site-header__inner {
      animation: site-header-compact linear both;
      animation-timeline: scroll();
      animation-range: 0 96px;
    }

    .nav-link,
    .main-nav .nav-cta {
      animation: site-nav-compact linear both;
      animation-timeline: scroll();
      animation-range: 0 96px;
    }

    .main-nav .nav-cta {
      animation-name: site-nav-cta-compact;
    }
  }
}

@keyframes site-header-elevate {
  to {
    background: rgba(248, 250, 252, .96);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  }
}

@keyframes site-header-compact {
  to {
    min-height: 72px;
  }
}

@keyframes site-nav-compact {
  to {
    min-height: 40px;
  }
}

@keyframes site-nav-cta-compact {
  to {
    min-height: 40px;
    padding-inline: var(--space-4);
  }
}

/* ===== Hero ===== */
/* Home hero: full-bleed factory ambience photo + 90° left scrim
   (same treatment as .page-hero), XL tier (~600px / 60vh). */
.hero-home {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}

.hero-home__media,
.hero-home__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-home__media {
  z-index: 0;
  pointer-events: none;
}

.hero-home__media img {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-home::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 13, 18, .9) 0%,
    rgba(8, 13, 18, .72) 52%,
    rgba(8, 13, 18, .16) 100%
  );
}

.hero-home__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  min-height: var(--hero-h-xl);
  display: flex;
  align-items: center;
  padding-block: clamp(var(--space-5), 3vw, var(--space-6));
}

.hero-home__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 680px;
}

.hero-home__eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(23, 99, 203, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
}

.hero-home__title {
  margin: 0;
  max-width: var(--hero-title-max);
  font-size: var(--font-hero-size);
  line-height: 1.12;
  font-weight: var(--font-weight-hero);
  letter-spacing: -.03em;
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .32);
}

.hero-home__title-accent {
  color: #FFFFFF;
}

.hero-home__text {
  margin: 0;
  max-width: var(--hero-lead-max);
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.hero-home__text--supporting {
  max-width: var(--text-measure);
  font-size: var(--font-body-size);
  color: rgba(255, 255, 255, .75);
}

.hero-home__proofs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: var(--text-measure);
}

.hero-home__proof {
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  color: rgba(255, 255, 255, .84);
  font-size: var(--font-small-size);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  background: rgba(8, 13, 18, .42);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-pill);
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-2);
}

.hero-home__actions .btn-primary {
  box-shadow: 0 2px 8px var(--color-brand-line-strong);
}

@media (max-width: 767px) {
  .hero-home__inner {
    min-height: min(560px, calc(100vh - var(--header-height)));
    padding-block: var(--space-6);
  }

  .hero-home__content {
    max-width: 100%;
  }
}

/* ===== Page hero (pillar/deep pages) =====
   Shared overlay hero: full-bleed ambience photo + 90° left scrim.
   Height via --page-hero-h; tier modifiers below. Reuses section-heading
   type classes for the h1/lead (hero h1 opts out of the accent bar). */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__media,
.page-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__media {
  z-index: 0;
  margin: 0;
  pointer-events: none;
}

.page-hero__media img {
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Subject sits high in the frame (head/signage near the top edge): bias the
   cover-crop upward so the wide LG band keeps it and drops empty foreground
   instead of centring and cutting the head off on ultrawide screens. */
.page-hero--focus-top .page-hero__media img {
  object-position: center 30%;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 13, 18, .9) 0%,
    rgba(8, 13, 18, .72) 52%,
    rgba(8, 13, 18, .16) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: var(--page-hero-h, var(--hero-h-lg));
  padding-block: clamp(var(--space-5), 3vw, var(--space-6));
}

.page-hero--xl { --page-hero-h: var(--hero-h-xl); }
.page-hero--md { --page-hero-h: var(--hero-h-md); }
.page-hero--sm { --page-hero-h: var(--hero-h-sm); }

.page-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 720px;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(23, 99, 203, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
}

.page-hero .section-heading__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .32);
}

.page-hero .section-heading__text {
  margin: 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.page-hero .section-heading__text strong {
  color: var(--color-white);
}

.page-hero .text-link {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero .article-date {
  color: rgba(255, 255, 255, .75);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* SM tier — utility pages (Contact, Privacy, FAQ): photo-less soft gradient
   band. No .page-hero__media; the gradient itself is the background, and the
   ::before scrim is softened since there is no photo to darken for contrast. */
.page-hero--sm {
  background: linear-gradient(118deg, var(--color-dark) 0%, var(--color-dark-blue) 100%);
}

.page-hero--sm::before {
  background: linear-gradient(
    90deg,
    rgba(8, 13, 18, .5) 0%,
    rgba(8, 13, 18, .12) 68%,
    rgba(8, 13, 18, 0) 100%
  );
}

.page-hero__note {
  margin: var(--space-2) 0 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, .68);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
}

/* ===== Blog Hero ===== */
.blog-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1600 / 533;
  min-height: 360px;
  max-height: 533px;
  padding-block: 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  isolation: isolate;
}

.blog-hero__media,
.blog-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blog-hero__media {
  z-index: 0;
  pointer-events: none;
}

.blog-hero__media img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(248, 250, 249, .98) 0%,
    rgba(248, 250, 249, .9) 42%,
    rgba(248, 250, 249, .28) 72%,
    rgba(248, 250, 249, .08) 100%
  );
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-8);
}

.blog-hero .section-heading__eyebrow,
.blog-hero .section-heading__title,
.blog-hero .section-heading__text {
  max-width: var(--hero-lead-max);
}

@media (max-width: 767px) {
  .blog-hero {
    aspect-ratio: 900 / 1125;
    min-height: 0;
    max-height: none;
  }

  .blog-hero::before {
    background: linear-gradient(
      180deg,
      rgba(248, 250, 249, .98) 0%,
      rgba(248, 250, 249, .94) 38%,
      rgba(248, 250, 249, .58) 68%,
      rgba(248, 250, 249, .12) 100%
    );
  }

  .blog-hero__inner {
    justify-content: flex-start;
    padding-block: var(--space-7);
  }
}

/* ===== Blog Card (horizontal list) ===== */
/* Soft gray page background so white cards lift off it */
.section:has(.blog-list) {
  background: #f6f7f9;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(240px, 27.2%) 1fr;
  gap: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid #e2e4ea;
  border-radius: var(--radius-xs);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
}

.blog-card__image {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: 100%;
  align-self: stretch;
  object-fit: cover;
  display: block;
  background: var(--color-bg-soft);
}

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

/* Top zone: category + date on one row */
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Middle zone: title + excerpt, vertically centered */
.blog-card__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}

.blog-card__category {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-brand);
  background: var(--color-brand-faint);
  padding: 2px 10px;
  border-radius: 4px;
}

.blog-card__date {
  font-size: var(--font-small-size);
  color: var(--color-text-secondary);
  letter-spacing: .02em;
}

.article-date {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--font-small-size);
  color: var(--color-text-secondary);
  letter-spacing: .02em;
}

.blog-card__title {
  font-size: var(--font-card-title-size);
  font-weight: var(--font-weight-card);
  line-height: var(--line-height-card);
  color: var(--color-text-primary);
  margin: 0;
}

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

.blog-card__title a:hover {
  color: var(--color-brand);
}

.blog-card__excerpt {
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  margin: 0;
}

.blog-card__detail {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0;
  color: var(--color-brand);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
}

.blog-card__detail::after {
  content: "→";
  margin-left: 6px;
  transition: transform .18s ease;
}

.blog-card__detail:hover {
  color: var(--color-brand-dark);
  text-decoration: none;
}

.blog-card__detail:hover::after {
  transform: translateX(3px);
}

@media (max-width: 599px) {
  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__image {
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .blog-card__body {
    padding: 0 var(--space-4) var(--space-4);
  }
}

/* ===== Who We Help ===== */
.who-we-help-home__grid {
  counter-reset: info-card;
  display: grid;
  gap: var(--space-5);
}

.who-we-help-home__card {
  counter-increment: info-card;
  padding: var(--card-padding);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.who-we-help-home__card::before {
  content: counter(info-card, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: var(--font-small-size);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
}

.who-we-help-home__card:hover {
  border-color: var(--color-brand-line-strong);
  box-shadow: var(--card-shadow-hover);
}

.who-we-help-home__card-title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
}

.who-we-help-home__card-text {
  margin: 0;
  color: var(--color-text-secondary);
}

/* ===== Buyer Route List ===== */
.buyer-route-list {
  display: grid;
  padding: var(--space-6);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-sm);
}

.buyer-route-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-5) 0;
}

.buyer-route-item:first-child {
  padding-top: 0;
}

.buyer-route-item:last-child {
  padding-bottom: 0;
}

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

.buyer-route-item__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-dark);
  color: var(--color-white);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.buyer-route-item__body {
  min-width: 0;
}

.buyer-route-item__heading {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.buyer-route-item__index-inline {
  display: none;
}

.buyer-route-item__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 var(--space-3);
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 800;
}

.buyer-route-item__title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
}

.buyer-route-item__text {
  margin: var(--space-3) 0 0;
  max-width: 76ch;
  color: var(--color-text-secondary);
}

.buyer-route-item__link {
  display: inline-flex;
  margin-top: var(--space-4);
  color: var(--color-brand-dark);
  font-weight: 800;
}

.buyer-route-item__link:hover {
  color: var(--color-brand);
}

/* ===== Buyer Type Full Cards ===== */
.buyer-type-grid {
  display: grid;
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.buyer-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: var(--card-padding);
  overflow: hidden;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.buyer-type-card::before {
  position: absolute;
  top: 0;
  left: var(--card-padding);
  width: 72px;
  height: 3px;
  content: "";
  background: var(--color-brand);
}

.buyer-type-card:hover {
  border-color: var(--color-brand-line-strong);
  box-shadow: 0 8px 20px rgba(22, 34, 48, .08);
  transform: translateY(-2px);
}

.buyer-type-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-soft);
  color: var(--color-brand);
}

.buyer-type-card__header {
  display: contents;
}

.buyer-type-card__body {
  display: contents;
}

.buyer-type-card__title {
  margin: 0 0 var(--space-3);
  color: var(--color-text-primary);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
}

.buyer-type-card__intro {
  margin: 0;
  color: var(--color-text-secondary);
}

.buyer-type-card__list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-5) 0;
  padding-left: 0;
  color: var(--color-text-secondary);
  list-style: none;
}

.buyer-type-card__list li {
  position: relative;
  padding-left: var(--space-5);
}

.buyer-type-card__list li::before {
  position: absolute;
  top: .7em;
  left: var(--space-1);
  width: 6px;
  height: 6px;
  content: "";
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  transform: translateY(-50%);
}

.buyer-type-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 40px;
  box-sizing: border-box;
  margin-top: auto;
  padding: var(--space-2) 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-link);
  font-size: .94em;
  font-weight: 600;
  line-height: var(--line-height-button);
  text-decoration: none;
  transition: color .2s ease;
}

.buyer-type-card__action span {
  flex: 0 0 auto;
  font-size: 17px;
  transition: transform .2s ease;
}

.buyer-type-card__action:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.buyer-type-card__action:hover span {
  transform: translateX(3px);
}

.buyer-type-card__action:focus-visible {
  outline: 2px solid var(--color-brand-line-strong);
  outline-offset: 3px;
}

.buyer-type-grid--compact {
  gap: var(--space-4);
}

.buyer-type-card--compact .buyer-type-card__icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  margin-bottom: var(--space-3);
}

.buyer-type-card--compact .buyer-type-card__title {
  margin-bottom: var(--space-2);
}

.buyer-type-card--compact .buyer-type-card__intro {
  font-size: .96em;
}

.buyer-type-card--compact .buyer-type-card__action {
  margin-top: var(--space-4);
}

.buyer-type-card--route {
  padding: 0;
  background: var(--color-white);
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
}

.buyer-type-card--route::before {
  display: none;
}

.buyer-type-card--route:hover {
  border-color: var(--color-brand-line-strong);
  box-shadow: 0 14px 32px rgba(22, 34, 48, .1);
}

/* Scenario band on a route card. 21:6 is deliberate: it reads as a scene
   without pushing the card's text below the fold on a laptop. Only route
   cards carry it — no other page uses .buyer-type-card__media. */
.buyer-type-card__media {
  flex: 0 0 auto;
  aspect-ratio: 21 / 6;
  overflow: hidden;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.buyer-type-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.buyer-type-card--route:hover .buyer-type-card__media img {
  transform: scale(1.03);
}

/* Slot with no approved photo yet. Neutral on purpose: it must read as a
   reserved band, not as a broken image. Swapped by dropping in an <img>. */
.buyer-type-card__media--placeholder {
  display: grid;
  place-items: center;
  color: var(--color-text-secondary);
  font-size: var(--font-small-size);
  font-weight: 700;
  letter-spacing: .04em;
}

.buyer-type-card--route .buyer-type-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 0;
  padding: var(--space-5) var(--space-5) 0;
  background: transparent;
  color: var(--color-text-primary);
}

/* Shared circular icon badge — reuse via .icon-badge; existing icons share it too. */
.icon-badge,
.buyer-type-card--route .buyer-type-card__icon,
.why-veribath__icon,
.resources-cta__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-brand);
  border: 1px solid var(--color-brand-line);
}

.buyer-type-card--route .buyer-type-card__icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  margin: 0;
}

.buyer-type-card--route .buyer-type-card__title {
  margin: 0;
  color: var(--color-text-primary);
}

.buyer-type-card--route .buyer-type-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.buyer-type-card--route .buyer-type-card__intro {
  color: var(--color-text-primary);
}

.buyer-type-card--route .buyer-type-card__list {
  margin: var(--space-5) 0 var(--space-4);
  color: var(--color-text-primary);
}

.buyer-type-card--route .buyer-type-card__list li {
  padding-left: var(--space-6);
}

.buyer-type-card--route .buyer-type-card__list li::before {
  top: .1em;
  left: 0;
  width: auto;
  height: auto;
  content: "✓";
  border-radius: 0;
  background: transparent;
  color: #0f9f6e; /* checkmark green — intentionally not tokenized */
  font-weight: 800;
  line-height: 1;
  transform: none;
}

.buyer-type-card--route .buyer-type-card__action {
  justify-content: flex-start;
  gap: var(--space-2);
  min-height: auto;
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--color-text-link);
  font-size: 1em;
  font-weight: 800;
}

.buyer-type-card--context .buyer-type-card__list {
  margin: var(--space-4) 0;
}

.buyer-type-card__list--catalog {
  gap: var(--space-1);
  font-size: .95em;
}

/* ===== Categories ===== */
.home-categories {
  background: var(--color-bg-soft);
}

.page-home .home-categories {
  background: var(--color-bg-soft);
}

.category-grid {
  display: grid;
  gap: var(--space-5);
}

.category-card {
  height: 100%;
}

.category-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.category-card__link:hover {
  border-color: var(--color-brand-line-strong);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
}

.category-card__image {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.category-card__image--placeholder {
  display: grid;
  place-items: center;
  color: var(--color-text-secondary);
  font-size: var(--font-small-size);
  font-weight: 700;
  letter-spacing: .04em;
}

.category-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.category-grid--four .category-card__image img {
  object-fit: contain;
}

.page-home .category-card__link:hover .category-card__image img {
  transform: scale(1.02);
}

section[aria-labelledby="range-heading"] .category-card__link:hover .category-card__image img {
  transform: scale(1.02);
}

section[aria-labelledby="range-heading"] .category-grid--four .category-card__link:hover .category-card__image img {
  transform: none;
}

.category-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: var(--space-5);
}

.category-card__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: 700;
  color: var(--color-text-primary);
}

.category-card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: var(--color-text-secondary);
}

.category-card__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-link);
}

.category-card__more::after {
  content: "→";
  transition: transform .2s ease;
}

.category-card__link:hover .category-card__more::after {
  transform: translateX(3px);
}

/* ===== Why VeriBath ===== */
.why-veribath {
  background: var(--color-bg-base);
}

.why-veribath__grid {
  display: grid;
  gap: var(--space-5);
}

.why-veribath__item {
  display: flex;
  flex-direction: column;
  padding: var(--card-padding);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.why-veribath__item:hover {
  border-color: var(--color-brand-line-strong);
  box-shadow: var(--card-shadow-hover);
}

.why-veribath__icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
}

/* "How It Works" section uses square icons (second why-veribath) */
.why-veribath:nth-of-type(2) .why-veribath__icon {
  border-radius: 6px;
}

/* Certification logos — normalized to equal height so different
   aspect ratios read at a similar visual size across cards. */
.why-veribath__logo {
  display: flex;
  align-items: center;
  height: 60px;
  margin-bottom: var(--space-4);
}
.why-veribath__logo img {
  max-height: 100%;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* GSO mark reads heavier than the others — trim ~20% */
.why-veribath__logo img[src*="gso"] {
  max-height: 48px;
}

/* Export-reach tile (80+ countries) — same white card as the cert tiles */
.why-veribath__stat {
  display: flex;
  align-items: center;
  height: 56px;
  margin-bottom: var(--space-4);
  font-size: 37px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--color-brand-dark);
}

.why-veribath__item-title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-card-title-size);
  line-height: 1.45;
  font-weight: 700;
}

.why-veribath__item-text {
  margin: 0;
  color: var(--color-text-secondary);
}

.why-veribath__item > .why-veribath__item-text:last-child {
  margin-top: auto;
  padding-top: var(--space-4);
}

/* ④ proof stats bar (home) */
.home-proofbar {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: 0 0 var(--space-7);
  padding: var(--space-5);
  background: var(--color-brand-soft);
  border: 1px solid var(--color-brand-line);
  border-radius: var(--radius-md);
}
.home-proofbar__item {
  text-align: center;
  padding-inline: var(--space-4);
}
.home-proofbar__num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--color-brand-dark);
}
.home-proofbar__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--font-small-size);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
@media (min-width: 768px) {
  .home-proofbar { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .home-proofbar {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .home-proofbar__item + .home-proofbar__item {
    border-inline-start: 1px solid var(--color-brand-line);
  }
  /* Rows wrap every 4 columns; the first item of each row must not carry a
     divider, or a stray edge line appears at the start of rows 2+. */
  .home-proofbar__item:nth-child(4n + 1) {
    border-inline-start: none;
  }
}

/* Distance variant (contact page): the figure carries the emphasis and the unit
   sits beside it in small type, so the place name reads as the caption of the
   number rather than a second line of equal weight. Scoped as a modifier —
   the base proofbar is shared by five other pages. */
.home-proofbar__unit {
  margin-inline-start: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.home-proofbar--distance .home-proofbar__num {
  font-size: 36px;
}
.home-proofbar--distance .home-proofbar__label {
  margin-top: var(--space-1);
  max-width: 22ch;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .home-proofbar--distance {
    row-gap: var(--space-6);
  }
}
@media (min-width: 1024px) {
  .home-proofbar--distance {
    row-gap: var(--space-7);
    padding-block: var(--space-6);
  }
  .home-proofbar--distance .home-proofbar__item {
    padding-inline: var(--space-5);
  }
}

/* client logo wall (home) */
.logo-wall {
  background: var(--color-bg-section);
}
.logo-wall__grid {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-sm);
}
.logo-wall__img {
  display: block;
  width: 100%;
  height: 56px;
  max-width: 190px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.logo-wall__img--compact {
  height: 64px;
  max-width: 150px;
}
.logo-wall__img--panoramic {
  max-width: 220px;
}
.logo-wall__ph {
  font-size: var(--font-small-size);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.logo-wall__note {
  margin: var(--space-5) 0 0;
  text-align: center;
  font-size: var(--font-small-size);
  color: var(--color-muted);
}
@media (min-width: 1024px) {
  .logo-wall__grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Solutions ===== */
.solutions-home {
  background: var(--color-bg-soft);
}

.solutions-home.section--soft {
  background: var(--color-bg-soft);
}

.solutions-home__grid {
  display: grid;
  gap: var(--space-5);
}

.solutions-home__card {
  display: flex;
  flex-direction: column;
}

.solutions-home__card-title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
}

.solutions-home__card-text {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
}

.solutions-home__card .text-link {
  margin-top: auto;
}

.solutions-home__card .text-link::after {
  content: " →";
}

.industrial-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--card-padding);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.industrial-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--card-padding);
  width: 72px;
  height: 3px;
  background: var(--color-brand);
}

.industrial-panel__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-soft);
  color: var(--color-brand);
}

.industrial-panel:hover {
  border-color: var(--color-brand-line-strong);
  box-shadow: 0 8px 20px rgba(22, 34, 48, .08);
  transform: translateY(-2px);
}

.industrial-panel--route .text-link,
.industrial-panel--compact .text-link {
  width: 100%;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.industrial-panel--evidence {
  background: var(--color-bg-soft);
}

.industrial-panel--risk {
  background: var(--color-bg-soft);
}

.industrial-panel--compact {
  padding: var(--space-4);
}

.industrial-panel--compact::before {
  left: var(--space-4);
  width: 56px;
}

.industrial-panel--compact .industrial-panel__icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  margin-bottom: var(--space-3);
}

.industrial-panel--compact .industrial-panel__icon svg {
  width: 28px;
  height: 28px;
}

/* ===== Project Highlights ===== */
.project-highlights {
  background: var(--color-bg-base);
}

.project-highlights__grid {
  display: grid;
  gap: var(--space-5);
}

.project-highlights__card {
  overflow: hidden;
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.project-highlights__card:hover {
  border-color: var(--color-brand-line-strong);
  box-shadow: var(--card-shadow-hover);
}

.project-highlights__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.project-highlights__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.page-home .project-highlights__card:hover .project-highlights__img img {
  transform: scale(1.02);
}

.project-highlights__type {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-highlights__body {
  padding: var(--space-5);
}

.project-highlights__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
}

.project-highlights__text {
  margin: 0;
  color: var(--color-text-secondary);
}

.project-highlights__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-7);
}

/* ===== Resources CTA ===== */
.resources-cta {
  background: var(--color-bg-section);
}

.resources-cta__inner {
  display: grid;
  box-sizing: border-box;
  gap: var(--space-6);
  padding: clamp(var(--space-5), 4vw, var(--space-6));
  background: var(--color-bg-soft);
  border: var(--card-border);
  border-radius: var(--radius-lg);
}

.resources-cta__lead {
  margin: var(--space-4) 0 0;
  max-width: 66ch;
  color: var(--color-text-secondary);
}

.resources-cta__list {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
}

.resources-cta__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-sm);
}

.resources-cta__item-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.resources-cta__item-title {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1.5;
}

.resources-cta__item-desc {
  display: block;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.resources-cta__form {
  align-self: start;
  padding: var(--card-padding);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.resources-cta__form-note {
  margin: 0 0 var(--space-4);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.resources-cta__whatsapp {
  margin: var(--space-3) 0 0;
}

.resources-cta__form .btn-primary {
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px var(--color-brand-line);
}

.resources-cta__form-label {
  margin: 0 0 var(--space-4);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}

.resources-cta__input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  margin-bottom: var(--space-4);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-text-primary);
  transition: var(--transition-base);
}

.resources-cta__input:hover {
  border-color: var(--color-brand);
}

.resources-cta__input:focus {
  outline: none;
  border-color: var(--color-brand-dark);
  box-shadow: var(--focus-ring);
}

.resources-cta__browse {
  display: inline-flex;
  margin-top: var(--space-4);
  font-weight: 700;
}

/* ===== Resource Need Selector ===== */
.resource-need-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.resource-need-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid var(--color-brand-soft-2);
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.resource-need-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand-line-strong);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.resource-need-card__top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.resource-need-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.resource-need-card__title {
  margin: 3px 0 0;
  color: var(--color-text-primary);
  font-size: clamp(22px, 2vw, 24px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

.resource-need-card__text {
  margin: var(--space-4) 0 0;
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.resource-need-card__topics {
  margin: var(--space-4) 0 0;
  padding-left: 1.15em;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.resource-need-card__topics li + li {
  margin-top: 2px;
}

.resource-need-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin-top: auto;
  padding-top: var(--space-4);
  color: var(--color-brand);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.resource-need-card__link:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
  transform: translateX(2px);
}

/* ===== Content Topic Cards ===== */
.content-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.content-topic-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid var(--color-brand-soft-2);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.content-topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand-line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.content-topic-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.content-topic-card__index,
.content-topic-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.content-topic-card__index {
  justify-content: center;
  width: 34px;
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

.content-topic-card__label {
  padding: 0 10px;
  color: var(--color-brand-dark);
  background: var(--color-brand-faint);
}

.content-topic-card__title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.content-topic-card__text {
  margin: var(--space-3) 0 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.content-topic-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--space-4);
  color: var(--color-brand);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.content-topic-card__link:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
  transform: translateX(2px);
}

/* ===== Final CTA ===== */
.final-cta {
  background: var(--color-dark-blue);
  color: var(--color-white);
  padding-block: clamp(64px, 8vw, 112px);
}

.final-cta__inner {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.final-cta__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.final-cta__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.03em;
}

.final-cta__text {
  margin: var(--space-4) auto 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, .78);
}

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

.final-cta__actions .btn-primary {
  min-height: var(--btn-min-height-lg);
  padding-inline: var(--space-6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.final-cta__actions .btn-ghost {
  border-color: rgba(255, 255, 255, .72);
}

.final-cta__actions .btn-ghost:hover {
  border-color: rgba(255, 255, 255, .92);
}

.final-cta__whatsapp {
  margin: var(--space-4) 0 0;
}

.final-cta .text-link {
  color: rgba(255, 255, 255, .92);
}

.final-cta .text-link:hover {
  color: var(--color-white);
}

/* ===== Contact page ===== */
.page-contact {
  background: var(--color-bg-base);
}

.page-contact .section {
  padding-block: clamp(var(--space-7), 7vw, var(--space-9));
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
}

.contact-note {
  margin: var(--space-4) 0 0;
  max-width: var(--text-measure);
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-section--soft {
  background: var(--color-bg-soft);
}

.contact-section__heading {
  max-width: var(--section-heading-max);
  margin-bottom: var(--space-5);
}

.contact-section--inquiry {
  background: var(--color-bg-section);
  border-bottom: 1px solid var(--color-brand-line);
}

.contact-inquiry-layout {
  display: grid;
  gap: var(--space-6);
}

.contact-inquiry-intro {
  align-self: start;
}

.contact-inquiry-notice {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-white);
  color: var(--color-text-secondary);
}

.contact-inquiry-notice strong {
  color: var(--color-text-primary);
}

.contact-inquiry-points {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding-left: 1.25em;
  color: var(--color-text-secondary);
}

.contact-inquiry-form {
  min-width: 0;
  padding: clamp(var(--space-4), 4vw, var(--space-6));
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.contact-form-grid {
  display: grid;
  gap: var(--space-4);
}

.contact-form-field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.contact-form-field label {
  font-weight: 700;
  color: var(--color-text-primary);
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-white);
  color: var(--color-text-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form-field input,
.contact-form-field select {
  min-height: 48px;
  padding: 0 var(--space-4);
}

.contact-form-field textarea {
  min-height: 144px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.contact-form-field input:hover,
.contact-form-field select:hover,
.contact-form-field textarea:hover {
  border-color: var(--color-brand-line-strong);
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: var(--focus-ring);
}

.contact-form-confirmation {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-5);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form-confirmation input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: var(--color-brand);
}

.contact-form-submit {
  width: 100%;
  margin-top: var(--space-5);
}

.contact-form-footnote {
  margin: var(--space-3) 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-form-status {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid;
  border-radius: var(--radius-xs);
  line-height: 1.55;
}

.contact-form-status[hidden] {
  display: none;
}

.contact-form-status:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

.contact-form-status--success {
  border-color: #6fac7b;
  background: #eef8f0;
  color: #245b2f;
}

.contact-form-status--error,
.contact-form-status--duplicate {
  border-color: #d6a06d;
  background: #fff7ed;
  color: #73451f;
}

.contact-form-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.privacy-policy {
  max-width: 780px;
}

.privacy-policy__updated {
  margin: var(--space-3) 0 var(--space-6);
  color: var(--color-muted);
}

.privacy-policy h2 {
  margin: var(--space-7) 0 var(--space-3);
  color: var(--color-text-primary);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.privacy-policy p,
.privacy-policy li {
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.privacy-policy ul {
  display: grid;
  gap: var(--space-2);
  padding-left: 1.25em;
}

.contact-grid,
.contact-buyer-grid {
  display: grid;
  gap: var(--space-4);
}

.contact-grid--map-intro {
  margin-bottom: var(--space-7);
}

.contact-card {
  min-width: 0;
  padding: var(--space-5);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-xs);
  box-shadow: var(--card-shadow);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-soft);
  color: var(--color-brand);
}

.contact-card__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.contact-card__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
  color: var(--color-text-primary);
}

.contact-card__line,
.contact-card__text {
  margin: 0;
  color: var(--color-text-secondary);
}

.contact-card__line + .contact-card__line,
.contact-card__line + .contact-card__text,
.contact-card__text + .contact-card__text {
  margin-top: var(--space-3);
}

.contact-card__line--value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
}

.contact-card .text-link {
  overflow-wrap: anywhere;
}

.contact-map-section {
  display: grid;
  gap: var(--space-5);
}

.contact-map-section .contact-section__heading {
  margin-bottom: 0;
}

.contact-map-embed {
  width: 100%;
  min-width: 0;
  min-height: 320px;
  box-sizing: border-box;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--radius-xs);
  box-shadow: var(--card-shadow);
  background: var(--color-bg-soft);
}

/* Click-to-load placeholder. It fills the same box the iframe would, so the
   section keeps its height whether or not the visitor loads the map. */
.contact-map-embed__consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: var(--space-5);
  border: 0;
  background: var(--color-bg-soft);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.contact-map-embed__title {
  font-weight: 600;
  color: var(--color-text-primary);
}

.contact-map-embed__note {
  max-width: 52ch;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-map-embed__action {
  pointer-events: none;
}

.contact-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.contact-checklist {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.contact-checklist li {
  position: relative;
  min-width: 0;
  padding: var(--space-4) var(--space-4) var(--space-4) 44px;
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-xs);
  color: var(--color-text-secondary);
  box-shadow: var(--card-shadow);
}

.contact-checklist li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: var(--space-4);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-soft);
}

.contact-catalog-cta {
  display: grid;
  gap: var(--space-5);
  padding: clamp(var(--space-5), 5vw, var(--space-7));
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-xs);
  box-shadow: var(--card-shadow);
}

.contact-catalog-cta .section-heading__text {
  max-width: 68ch;
}

.contact-bottom-cta {
  background: var(--color-dark-blue);
  color: var(--color-white);
}

.contact-bottom-cta__inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}



.contact-bottom-cta__note {
  margin: var(--space-5) auto 0;
  max-width: 68ch;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Homepage section rhythm ===== */
/* Full-bleed hero scale: roomy type for the 700px overlay hero. */
.page-home .hero-home__title {
  max-width: 22ch;
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-home .hero-home__text {
  max-width: 42ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

.page-home .hero-home__proofs {
  margin-top: var(--space-1);
}

.page-home .hero-home__proof {
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
}

.page-home .hero-home__proof::before {
  margin-right: var(--space-1);
  content: "✓";
  color: var(--color-white);
  font-weight: 700;
}

.page-home .hero-home__proof[data-proof="export"]::before {
  content: "🌐";
}

.page-home .hero-home__actions {
  margin-top: var(--space-5);
}

.page-home .hero-home__actions .btn-primary {
  min-height: 0;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
}

.page-home .hero-home__actions .btn-secondary {
  min-height: 0;
  padding: 14px 28px;
  color: var(--color-brand);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .72);
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(8, 13, 18, .12);
}

.page-home .hero-home__actions .btn-secondary:hover {
  color: var(--color-brand-dark);
  background: var(--color-white);
  border-color: var(--color-white);
}

.page-home .section {
  padding-block: clamp(var(--space-7), 6vw, var(--section-space));
}

.page-home .who-we-help-home {
  background: var(--color-bg-section);
}

.page-home .why-veribath {
  background: var(--color-bg-base);
}

.page-home .why-veribath + .why-veribath {
  background: var(--color-bg-section);
}

/* ===== CTA Visual Unification ===== */
.hero-home__actions .btn,
.final-cta__actions .btn,
.resources-cta__form .btn {
  min-height: 0;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
}

.hero-home__actions .btn-secondary,
.page-hero__actions .btn-secondary {
  min-height: 0;
  padding: 14px 28px;
  color: var(--color-brand);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .72);
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(8, 13, 18, .12);
}

.hero-home__actions .btn-secondary:hover,
.page-hero__actions .btn-secondary:hover {
  color: var(--color-brand-dark);
  background: var(--color-white);
  border-color: var(--color-white);
}

.final-cta__actions .btn-ghost {
  min-height: 0;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
}

/* ===== FAQ Accordion Utility ===== */
.section-heading__label + .faq-list {
  margin-top: var(--space-6);
}

.faq-list {
  display: grid;
  gap: var(--space-3);
  width: 100%;
  max-width: 920px;
}

.faq-item {
  overflow: hidden;
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-4) var(--space-5);
  color: var(--color-text-primary);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
  list-style: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--color-brand);
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.faq-question:hover {
  background: var(--color-bg-soft);
}

.faq-question:focus-visible {
  outline: 3px solid var(--color-brand-line);
  outline-offset: -3px;
}

.faq-item[open] .faq-question {
  background: var(--color-bg-soft);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: var(--card-border);
  color: var(--color-text-secondary);
}

.faq-answer p {
  margin: 0;
  color: inherit;
  line-height: 1.7;
}

.faq-answer p + p,
.faq-answer ul,
.faq-answer ol {
  margin-top: var(--space-3);
}

.faq-answer ul,
.faq-answer ol {
  margin-bottom: 0;
  padding-left: var(--space-5);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-footer);
  color: var(--color-text-on-footer);
  border-top: 1px solid var(--color-border-footer);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-5);
  padding-block: clamp(48px, 5vw, 56px);
}

.site-footer__title {
  margin: 0 0 var(--space-2);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-text-on-footer-strong);
}

.site-footer__title img {
  display: block;
  width: auto;
  height: 34px;
}

.site-footer__backed-by {
  margin: 4px 0 0;
  font-size: 12px;
  /* No opacity here: 0.7 on top of --color-text-on-footer (white .88) over the
     blue footer dropped contrast to 3.16:1, below the 4.5:1 needed at 12px. */
  color: var(--color-text-on-footer);
}

.site-footer__text {
  margin: 0;
  max-width: 30ch;
  color: var(--color-text-on-footer);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer__links {
  display: grid;
  gap: var(--space-4);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.site-footer__col-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-on-footer-strong);
}

.site-footer__col a,
.site-footer__contact p {
  color: var(--color-text-on-footer);
}

.site-footer__col a {
  font-size: 14px;
  line-height: 1.42;
}

.site-footer__col a:hover {
  color: var(--color-text-on-footer-strong);
}

.site-footer__contact {
  display: grid;
  gap: 7px;
  align-content: start;
}

.site-footer__contact p.site-footer__contact-company {
  font-weight: 700;
  color: var(--color-text-on-footer-strong);
}

.site-footer__contact p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.site-footer__contact p:last-child {
  margin-bottom: 0;
}

/* Copyright line closing the footer. Separated from the contact block by a rule
   so it reads as a legal notice rather than one more contact detail. */
.site-footer__legal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--color-text-on-footer) 22%, transparent);
}

.site-footer__legal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer__contact a,
.site-footer__backed-by a {
  color: var(--color-text-on-footer);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .4);
}

.site-footer__contact a:hover,
.site-footer__backed-by a:hover {
  color: var(--color-text-on-footer-strong);
  text-decoration-color: var(--color-text-on-footer-strong);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .buyer-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .who-we-help-home__grid,
  .solutions-home__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid.category-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-veribath__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-highlights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-cta__inner {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .9fr);
    align-items: start;
  }

  .contact-grid--reach {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-inquiry-layout {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
    align-items: start;
  }

  .contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-field--full {
    grid-column: 1 / -1;
  }

  .contact-grid--map-intro {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-buyer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-catalog-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: minmax(170px, 1.05fr) minmax(390px, 2.8fr) minmax(220px, 1.15fr);
    align-items: start;
    gap: var(--space-5);
  }

  .site-footer__contact {
    padding-left: var(--space-4);
    border-left: 1px solid var(--color-border-footer);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .contact-map-embed {
    aspect-ratio: auto;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__contact {
    padding-left: 0;
    border-left: 0;
  }
}

@media (min-width: 1024px) {
  .resources-cta__form {
    align-self: center;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid.category-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .why-veribath__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-highlights__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-highlights__grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

/* The wide Footer track minimums need more room than the 1024px container.
   Keep the smaller track minimums through 1199px to prevent horizontal overflow. */
@media (min-width: 1200px) {
  .site-footer__inner {
    grid-template-columns: minmax(210px, 1.3fr) minmax(520px, 2.8fr) minmax(260px, 1.3fr);
    gap: clamp(var(--space-5), 3vw, var(--space-7));
  }

  .site-footer__links {
    grid-template-columns: minmax(105px, .8fr) minmax(170px, 1.2fr) minmax(105px, .8fr);
    gap: clamp(var(--space-4), 2.2vw, var(--space-6));
  }
}

@media (max-width: 767px) {
  .buyer-route-list {
    padding: var(--space-4);
  }

  .buyer-route-item {
    display: block;
  }

  .buyer-route-item__index {
    display: none;
  }

  .buyer-route-item__heading {
    align-items: baseline;
  }

  .buyer-route-item__index-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-dark);
    color: var(--color-white);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
  }

  .resource-need-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .resource-need-card {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .resource-need-card__top {
    gap: var(--space-2);
  }

  .resource-need-card__index {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 13px;
  }

  .resource-need-card__title {
    font-size: 21px;
  }

  .resource-need-card__text {
    font-size: 16px;
    line-height: 1.5;
  }

  .resource-need-card__topics {
    font-size: 14px;
  }

  .content-topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .content-topic-card {
    padding: var(--space-4);
  }

  .content-topic-card__meta {
    margin-bottom: var(--space-3);
  }

  .content-topic-card__index,
  .content-topic-card__label {
    min-height: 26px;
    font-size: 12px;
  }

  .content-topic-card__index {
    width: 32px;
  }

  .content-topic-card__title {
    font-size: 20px;
  }

  .content-topic-card__text {
    font-size: 15px;
    line-height: 1.5;
  }

  .nav-link {
    min-height: auto;
  }

  .nav-menu {
    display: none;
  }

  .hero-home__actions,
  .final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .category-hero--overlay::before {
    background: linear-gradient(
      180deg,
      rgba(8, 13, 18, .76) 0%,
      rgba(8, 13, 18, .7) 50%,
      rgba(8, 13, 18, .9) 100%
    );
  }

  .category-hero--overlay .category-hero__media img {
    object-position: center;
  }

  .category-hero__inner {
    min-height: clamp(620px, 160vw, 760px);
  }

  .category-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .category-hero__actions .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .hero-home::before {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--color-dark) 78%, transparent) 0%,
      color-mix(in srgb, var(--color-dark) 70%, transparent) 55%,
      color-mix(in srgb, var(--color-dark) 88%, transparent) 100%
    );
  }

  .hero-home__inner {
    min-height: clamp(560px, 86vh, 680px);
  }

  .page-home .hero-home__actions .btn,
  .page-home .final-cta__actions .btn,
  .page-home .resources-cta__form .btn-primary {
    width: 100%;
    box-sizing: border-box;
  }

  .page-home .resources-cta__inner {
    box-sizing: border-box;
  }

  .page-contact .contact-actions,
  .page-contact .final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-contact .contact-actions .btn,
  .page-contact .final-cta__actions .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-card,
  .contact-catalog-cta {
    padding: var(--space-4);
  }

  .contact-map-embed {
    min-height: 260px;
    aspect-ratio: auto;
  }

  .resources-cta__form {
    padding: var(--space-4);
  }

  .faq-question {
    padding: var(--space-4);
    font-size: 17px;
  }

  .faq-answer {
    padding: var(--space-4);
  }

  .who-we-help-home__card,
  .solutions-home__card,
  .buyer-type-card {
    padding: var(--space-4);
  }
}

.home-categories .category-card .category-card__image {
  aspect-ratio: 3 / 2;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.home-categories .category-card .category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== Products index category cards ===== */
.home-categories:has(h1.section-heading__title) .category-card {
  height: 100%;
  border-radius: 18px;
}

.home-categories:has(h1.section-heading__title) .category-card__link {
  background-color: var(--color-bg-soft);
  border: .5px solid rgba(0, 0, 0, .07);
  border-radius: 18px;
  box-shadow:
    0 0 0 .5px rgba(0, 0, 0, .03),
    0 4px 12px rgba(0, 0, 0, .02);
}

.home-categories:has(h1.section-heading__title) .category-card__link:hover {
  border-color: rgba(0, 0, 0, .1);
  box-shadow:
    0 0 0 .5px rgba(0, 0, 0, .04),
    0 6px 16px rgba(0, 0, 0, .035);
}

.home-categories:has(h1.section-heading__title) .category-card__image,
.home-categories:has(h1.section-heading__title) .category-card__body {
  vertical-align: middle;
}

.home-categories:has(h1.section-heading__title) .category-card__image img {
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  object-fit: cover;
  filter: brightness(.97) saturate(.88);
}

.home-categories:has(h1.section-heading__title) .category-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: var(--space-5);
}

.home-categories:has(h1.section-heading__title) .category-card__title {
  margin-bottom: 4px;
  color: var(--color-text-primary);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.home-categories:has(h1.section-heading__title) .category-card__text {
  color: var(--color-muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.75;
}

.home-categories:has(h1.section-heading__title) .category-card__more {
  position: relative;
  display: inline-block;
  margin-top: auto;
  padding-top: 8px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color .3s ease;
}

.home-categories:has(h1.section-heading__title) .category-card__more::before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: .5px;
  content: "";
  background-color: rgba(0, 0, 0, .07);
}

.home-categories:has(h1.section-heading__title) .category-card__more::after {
  content: "";
}

.home-categories:has(h1.section-heading__title) .category-card__link:hover .category-card__more {
  color: var(--color-text-primary);
}

.home-categories:has(h1.section-heading__title) .category-card__link:hover .category-card__more::after {
  position: relative;
  left: 3px;
  content: "→";
}

/* ===== Catalog Download Cards ===== */
.catalog-download-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.catalog-download-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-download-card:hover {
  border-color: var(--color-brand-line);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.catalog-download-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-soft);
}

.catalog-download-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.catalog-download-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-4);
}

.catalog-download-card__meta {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: .82em;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.catalog-download-card__meta span {
  display: block;
  color: var(--color-brand);
}

.catalog-download-card--supporting .catalog-download-card__meta span {
  color: var(--color-muted);
}

.catalog-download-card__title {
  margin: 0 0 var(--space-2);
  color: var(--color-text-primary);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
}

.catalog-download-card__text,
.catalog-download-card__fit {
  margin: 0;
  color: var(--color-text-secondary);
}

.catalog-download-card__fit {
  margin-top: var(--space-2);
}

.catalog-download-card__actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-top: var(--space-4);
}

.catalog-download-card__actions .btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

@media (min-width: 768px) {
  .catalog-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 767px) {
  .catalog-download-card__body {
    padding: var(--space-4);
  }

  .catalog-download-card__actions .btn {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ===================================================================
   Article chapter system (Blog / long-form articles)
   Reusable "heading + media (image / video / product card) + text"
   chapter unit. Mobile-first, stacked; two-column on desktop with
   alternating media side. Reuses existing design tokens only.
   =================================================================== */
.article-body {
  display: block;
}

.article-chapter {
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border);
}
.article-chapter:first-child {
  border-top: 0;
}

.article-chapter__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.article-chapter__media {
  width: 100%;
}

.article-chapter__body {
  min-width: 0;
}

.article-chapter__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.article-chapter__title {
  margin: 0 0 var(--space-4);
  font-size: var(--font-section-title-size);
  line-height: var(--line-height-section);
  font-weight: var(--font-weight-section);
  color: var(--color-text-primary);
}

.article-chapter__text {
  margin: 0;
  max-width: var(--text-measure);
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}
.article-chapter__text + .article-chapter__text {
  margin-top: var(--space-4);
}

.article-chapter__list {
  margin: var(--space-4) 0 0;
  padding-left: var(--space-5);
  max-width: var(--text-measure);
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}
.article-chapter__list li + li {
  margin-top: var(--space-2);
}

.article-chapter__actions {
  margin-top: var(--space-5);
}

/* Media slot — figure (image or video) */
.article-figure {
  margin: 0;
}
.article-figure__frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-soft);
  box-shadow: var(--card-shadow);
}
.article-figure__frame img,
.article-figure__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder shown until real photography is supplied */
.article-figure__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--color-brand-soft);
  border: 1px dashed var(--color-border);
  padding: var(--space-5);
  text-align: center;
}
.article-figure__placeholder span {
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-text-secondary);
}
.article-figure__caption {
  margin-top: var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-muted);
}

/* Media slot — product card variant */
.article-product-card {
  display: block;
  border: var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-base);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}
.article-product-card:hover {
  box-shadow: var(--card-shadow-hover);
}
.article-product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.article-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-product-card__body {
  padding: var(--space-4);
}
.article-product-card__name {
  margin: 0;
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
  color: var(--color-text-primary);
}
.article-product-card__meta {
  margin: var(--space-2) 0 0;
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .article-chapter {
    padding-block: var(--space-8);
  }
  .article-chapter__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: center;
  }
  .article-chapter--media-right .article-chapter__media {
    order: 2;
  }
  /* Text-only chapters span the full measure */
  .article-chapter--full .article-chapter__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===================================================================
   Article block kit — generic blocks (Prose / Steps / Process-flow /
   Compare / Takeaway / Gallery / Media-feature / Inline-CTA).
   All share the .article-block base (same rhythm + divider as Chapter)
   and the .article-block__* typography. Reuses design tokens only.
   The Chapter block keeps its own .article-chapter* classes.
   =================================================================== */
.article-block {
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border);
}
.article-block:first-child {
  border-top: 0;
}
.article-block__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.article-block__title {
  margin: 0 0 var(--space-4);
  font-size: var(--font-section-title-size);
  line-height: var(--line-height-section);
  font-weight: var(--font-weight-section);
  color: var(--color-text-primary);
}
.article-block__text {
  margin: 0;
  max-width: var(--text-measure);
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}
.article-block__text + .article-block__text {
  margin-top: var(--space-4);
}
.article-block__list {
  margin: var(--space-4) 0 0;
  padding-left: var(--space-5);
  max-width: var(--text-measure);
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}
.article-block__list li + li {
  margin-top: var(--space-2);
}

/* --- Steps (ordered how-to) --- */
.article-steps__list {
  list-style: none;
  counter-reset: step;
  margin: var(--space-5) 0 0;
  padding: 0;
  max-width: var(--text-measure);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.article-steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
}
.article-steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-weight: 700;
  font-size: var(--font-card-title-size);
  color: var(--color-brand);
  line-height: 1.2;
}
.article-steps__item h3 {
  grid-column: 2;
  margin: 0 0 var(--space-2);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
  color: var(--color-text-primary);
}
.article-steps__item p {
  grid-column: 2;
  margin: 0;
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}

/* --- Horizontal icon flow (left-to-right process with SVG icons) --- */
.flow {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.flow__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-brand-soft);
  color: var(--color-brand);
}
.flow__num {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--font-small-size);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-brand);
}
.flow__title {
  margin: 0 0 var(--space-1);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
  color: var(--color-text-primary);
}
.flow__text {
  margin: 0;
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-text-secondary);
}
@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-6);
  }
  .flow__step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-3);
  }
  /* directional connector between steps, aligned to the icon centre */
  .flow__step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: calc(var(--space-5) + 23px);
    right: calc(var(--space-6) / -2);
    transform: translate(50%, -50%);
    color: var(--color-brand);
    font-size: 20px;
    line-height: 1;
  }
}

/* --- Media cards: image-top (3:2) + label, responsive grid --- */
.media-cards {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.media-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.media-card__media {
  aspect-ratio: 3 / 2;
  background: var(--color-bg-soft);
}
.media-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-cards--order-experience .media-card__media {
  position: relative;
  overflow: hidden;
}
.media-cards--order-experience .media-card__media img {
  position: absolute;
  inset: 0;
}
.media-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: var(--space-4);
  text-align: center;
  background: var(--color-brand-soft);
  border-bottom: 1px dashed var(--color-border);
}
.media-card__placeholder span {
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 600;
  color: var(--color-text-secondary);
}
.media-card__media--diagram {
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: var(--color-brand-soft);
}
.media-card__media--diagram img {
  object-fit: contain;
}
.media-card__body {
  padding: var(--space-4);
}
.media-card__title {
  margin: 0;
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
  color: var(--color-text-primary);
}
.media-card__meta {
  margin: var(--space-1) 0 0;
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-text-secondary);
}
@media (min-width: 640px) {
  .media-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .media-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Process-flow (manufacturing / finishing stages) --- */
.article-process__flow {
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.article-process__stage {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border: var(--card-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-base);
}
.article-process__num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: var(--font-small-size);
  font-weight: 700;
}
.article-process__stage h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--font-card-title-size);
  line-height: var(--line-height-card);
  font-weight: var(--font-weight-card);
  color: var(--color-text-primary);
}
.article-process__stage p {
  margin: 0;
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-text-secondary);
}

/* --- Compare (table / matrix) --- */
.article-compare__wrap {
  margin: var(--space-5) 0 0;
  overflow-x: auto;
}
.article-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
}
.article-compare__table th,
.article-compare__table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.article-compare__table thead th {
  color: var(--color-text-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.article-compare__table tbody th {
  font-weight: 600;
  color: var(--color-text-secondary);
}
.article-compare__table td {
  color: var(--color-text-secondary);
}

/* --- Takeaway (highlighted key points) --- */
.article-takeaway__box {
  margin: var(--space-4) 0 0;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}
.article-takeaway__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-card-title-size);
  font-weight: 700;
  color: var(--color-text-primary);
}
.article-takeaway__list {
  margin: 0;
  padding-left: var(--space-5);
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}
.article-takeaway__list li + li {
  margin-top: var(--space-2);
}

/* --- Gallery (set of equal photos) --- */
.article-gallery__grid {
  margin: var(--space-5) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.article-gallery__item {
  margin: 0;
}
.article-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}
.article-gallery__cap {
  margin-top: var(--space-2);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-muted);
}

/* --- Media-feature (one large photo / video) --- */
.article-feature__media {
  margin: var(--space-5) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-soft);
  box-shadow: var(--card-shadow);
}
.article-feature__media img,
.article-feature__media video,
.article-feature__media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
}
.article-feature__cap {
  margin-top: var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-muted);
}

/* --- Inline CTA (mid / end conversion anchor) --- */
.article-cta__box {
  margin: var(--space-4) 0 0;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  text-align: center;
}
.article-cta__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-card-title-size);
  font-weight: 700;
  color: var(--color-text-primary);
}
.article-cta__text {
  margin: 0 auto;
  max-width: var(--text-measure);
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}
.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
}

@media (min-width: 768px) {
  .article-block {
    padding-block: var(--space-8);
  }
  .article-process__flow {
    flex-direction: row;
  }
  .article-process__stage {
    flex: 1;
    flex-direction: column;
  }
}

@media (min-width: 576px) {
  .article-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .article-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   .range-entry — product-range inline entry (机制 B 组件)
   Build-time generated: numbers and thumbs are baked into the
   HTML by scripts/build_range_entry.py, never rendered by JS.
   Variant A3 (--stack): category/hub pages, overlapping thumbs.
   Variant B2 (--rule):  blog/guide body, editorial count block.
   ============================================================ */
.range-entry {
  display: flex;
  align-items: center;
  gap: 24px;
  /* Separated from the card grid above it: without this the band reads as a
     ninth card stuck to the last row instead of the section's closing step. */
  margin-top: var(--space-6);
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-bg-section);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.range-entry:hover {
  border-color: var(--color-brand);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.range-entry:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.range-entry__body { flex: 1 1 auto; min-width: 0; }
/* Type is set on the page's own scale, not a smaller one of its own: the band
   sits between 20px card titles and 16px card copy, and anything lighter than
   that reads as fine print. */
.range-entry__title {
  display: block; margin: 0 0 4px;
  font-size: 20px; font-weight: 700; line-height: 1.25;
  color: var(--color-text-primary);
}
.range-entry__text {
  display: block; margin: 0;
  font-size: var(--font-body-size); line-height: 1.5;
  color: var(--color-text-secondary);
}
/* Outlined, not a bare text link: at the far end of a full-width band a 13px
   text link disappears. It stays outlined rather than solid so it never
   competes with the orange inquiry CTA further down the page. */
.range-entry__action {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--color-brand); border-radius: 6px;
  font-size: 15px; font-weight: 700;
  color: var(--color-brand-dark);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.range-entry:hover .range-entry__action {
  background: var(--color-brand); color: var(--color-white);
}
.range-entry__action svg { width: 14px; height: 14px; transition: transform .2s ease; }
.range-entry:hover .range-entry__action svg { transform: translateX(2px); }

/* Variant A3 — overlapping product thumbs (category / hub) */
.range-entry__thumbs { display: flex; flex: 0 0 auto; }
.range-entry__thumb {
  width: 76px; height: 76px;
  border-radius: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  object-fit: contain;
  padding: 5px;
  box-sizing: border-box;
}
.range-entry--stack .range-entry__thumb { margin-left: -22px; box-shadow: 0 2px 6px rgba(15,23,42,.10); }
.range-entry--stack .range-entry__thumb:first-child { margin-left: 0; }

/* Variant B2 — editorial count block (blog / guide) */
/* A rule, not a box: boxed, the number reads as a separate part sitting next
   to the text; ruled, the number and the copy read as one line of information. */
.range-entry__count {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 96px; padding-right: 24px;
  border-right: 1px solid var(--color-brand-line);
}
.range-entry__count-num {
  /* Same figure treatment as .why-veribath__stat, so the two number blocks on
     a category page read as one system rather than two dialects. */
  font-size: 37px; font-weight: 900; line-height: 1;
  letter-spacing: -.02em;
  color: var(--color-brand-dark);
  font-variant-numeric: tabular-nums;
}
.range-entry__count-unit {
  margin-top: 3px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-muted);
}
.range-entry--rule {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-brand-line);
  border-bottom: 1px solid var(--color-brand-line);
  border-radius: 0;
  padding: 16px 0;
}
.range-entry--rule:hover { box-shadow: none; border-color: var(--color-brand); }
.range-entry--rule .range-entry__count { border: 0; background: transparent; padding: 0; min-width: 74px; }
.range-entry--rule .range-entry__count-num { font-size: 33px; }
.range-entry--rule .range-entry__title { font-size: 18px; }
/* Inside prose the action stays a text link: an outlined button in a paragraph
   run reads as an ad unit, which is what the rule variant exists to avoid. */
.range-entry--rule .range-entry__action {
  min-height: 0; padding: 0; border: 0; font-size: 15px;
}
.range-entry--rule:hover .range-entry__action {
  background: transparent; color: var(--color-brand);
}

@media (max-width: 767px) {
  .range-entry { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .range-entry__body { flex: 1 1 100%; order: 2; }
  .range-entry__thumbs, .range-entry__count { order: 1; }
  .range-entry__thumb { width: 60px; height: 60px; }
  .range-entry__thumb:nth-child(n+4) { display: none; }
  .range-entry__action {
    order: 3; flex: 1 1 100%; justify-content: center;
    min-height: 44px; border: 1.5px solid var(--color-brand); border-radius: 6px;
  }
}

/* --- Video feature section (text left / video right) --- */
.video-feature {
  display: grid;
  gap: var(--space-5);
}
.video-feature__body {
  align-self: center;
}
.video-feature__points {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.video-feature__point-label {
  margin: 0 0 var(--space-1);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.video-feature__point-text {
  margin: 0;
  color: var(--color-text-secondary);
}
.video-feature__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-soft);
  box-shadow: var(--card-shadow);
}
.video-feature__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
}
.video-feature__cap {
  margin-top: var(--space-3);
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-muted);
}
@media (min-width: 1024px) {
  .video-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.35fr);
    gap: var(--space-6);
    align-items: center;
  }
}

/* ===== Consent banner (GA4 / Consent Mode v2) =====
   Markup is built by assets/js/analytics.js and never appears in page HTML.
   Layering: z-index 95 sits above page content and the sticky header (90/100)
   but below the mobile full-screen nav (99) and nav dropdowns (180).
   The inquiry modal is a native <dialog> in the browser top layer, so it is
   always above this banner regardless of z-index. */
.consent-banner {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 95;
  box-sizing: border-box;
  width: min(360px, calc(100vw - var(--space-8)));
  padding: var(--space-4);
  border: var(--card-border);
  border-radius: var(--card-radius);
  background: var(--color-bg-card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}

.consent-banner__text {
  margin: 0;
  font-size: var(--font-small-size);
  line-height: var(--line-height-small);
  color: var(--color-text-secondary);
}

.consent-banner__link {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--font-footnote-size);
  line-height: var(--line-height-footnote);
  color: var(--color-text-link);
}

.consent-banner__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* The two buttons reuse .btn-ghost / .btn-cta. Compact them for the card
   without touching the shared sizing used elsewhere on the site. */
.consent-banner .btn {
  flex: 1 1 0;
  min-height: 40px;
  padding-inline: var(--space-3);
  font-size: var(--font-body-size);
}

/* .btn-ghost is authored for dark backgrounds (white text, translucent white
   border). On this white card it would be invisible, so it is re-coloured
   here only. Scoped on purpose: the shared class is used elsewhere over dark
   sections and must not change. */
.consent-banner .btn-ghost {
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.consent-banner .btn-ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-soft);
  border-color: var(--color-muted);
}

@media (max-width: 599px) {
  .consent-banner {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-width: 1px 0 0;
    border-radius: 0;
  }
}
