/* =============================================================================
   NEW BELMONT COATINGS — MAIN STYLESHEET
   Mobile-first. CSS Grid + Flexbox. No frameworks. All values via custom props.
   ============================================================================= */

/* =============================================================================
   1. BASE
   ============================================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

/* =============================================================================
   2. TYPOGRAPHY
   ============================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-navy);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

p {
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin: 0 0 var(--space-6);
}

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

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

/* =============================================================================
   3. LAYOUT & CONTAINER
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.section-eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.7;
}
.section-eyebrow::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.7;
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: 0;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-10);
}

/* =============================================================================
   4. BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Sizes */
.btn-sm {
  font-size: var(--text-xs);
  padding: 0.4rem 1rem;
}

.btn-lg {
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
}

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

/* Primary — navy fill */
.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-primary:hover {
  background-color: var(--color-navy-light);
  border-color: var(--color-navy-light);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Red — accent fill */
.btn-red {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn-red:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Outline navy */
.btn-outline-navy {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline-navy:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Outline white (for dark backgrounds) */
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
}

/* Text link button */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* =============================================================================
   5. HEADER & NAVIGATION
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-grey-mid);
  z-index: var(--z-sticky);
  transition: box-shadow var(--transition-base);
}

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

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: var(--space-8);
}

/* Logo */
.site-logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-navy);
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* Logo image — replaces text-based logo spans */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-logo .logo-img {
  filter: brightness(0) invert(1);
}

/* Desktop nav */
.site-nav {
  display: none;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  position: relative;
  transition: color var(--transition-fast);
}

/* Animated red bar — grows from center on hover, always visible on active */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-navy);
}

.nav-link:hover::after {
  width: 20px;
}

.nav-link.is-active {
  color: var(--color-navy);
  font-weight: 600;
}

.nav-link.is-active::after {
  width: 20px;
}

/* Dropdown */
.nav-item-has-children {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  padding-top: var(--space-3);
  z-index: var(--z-dropdown);
}

/* Hover/focus-within dropdown — desktop only; mobile uses JS toggle */
@media (min-width: 1024px) {
  .nav-item-has-children:hover .nav-dropdown,
  .nav-item-has-children:focus-within .nav-dropdown {
    display: block;
  }
}

.nav-dropdown li a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text);
  border-left: 2px solid transparent;
  border-radius: 0;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    padding-left var(--transition-fast);
}

.nav-dropdown li a:hover {
  background-color: var(--color-grey-light);
  color: var(--color-navy);
  border-left-color: var(--color-red);
  padding-left: calc(var(--space-4) + 4px);
}

/* Nav CTA */
.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.nav-cta:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
  background-color: var(--color-grey-light);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
  transform-origin: center;
}

.nav-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
body.nav-is-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .site-nav {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    padding: var(--space-6) var(--container-padding);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: var(--z-overlay);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li {
    border-bottom: 1px solid var(--color-grey-mid);
  }

  .nav-item-row {
    display: flex;
    align-items: center;
  }

  .nav-item-row .nav-link {
    flex: 1;
  }

  .nav-link {
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-base);
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 48px;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
  }

  .nav-submenu-toggle:hover {
    color: var(--color-navy);
  }

  .nav-submenu-toggle svg {
    transition: transform var(--transition-base);
  }

  .nav-item-has-children.submenu-is-open .nav-submenu-toggle svg {
    transform: rotate(180deg);
  }

  .nav-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 var(--space-4);
    background-color: var(--color-grey-light);
  }

  .nav-item-has-children.submenu-is-open .nav-dropdown {
    display: block;
  }

  .nav-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-submenu-toggle {
    display: none;
  }
}

/* =============================================================================
   5b. MEGAMENU — Products dropdown alternative
   Activated by adding CSS class "has-megamenu" to the Products nav item in
   WP Admin › Appearance › Menus.
   The panel anchors to the sticky .site-header by overriding position:relative
   on the <li>, making .site-header (position:sticky) the containing block.
   ============================================================================= */

/* Strip the li's own positioning context so the panel anchors to .site-header */
.has-megamenu {
  position: static;
}

/* WP children kept in DOM for fallback but never shown visually */
.nav-megamenu-fallback {
  display: none !important; /* stylelint-disable-line declaration-no-important */
}

/* ── Megamenu panel ─────────────────────────────────────────────────────────── */
/*
 * Hidden by default. Mobile uses display:none (no space in flow).
 * Desktop uses visibility/opacity so a 200 ms transition-delay keeps
 * the panel interactive while the mouse crosses the ~15 px gap between
 * the nav li bottom edge and the header bottom (where the panel anchors).
 */
.nav-megamenu {
  display: none;
  position: absolute;
  top: 100%; /* = var(--header-height); containing block is .site-header */
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 3px solid var(--color-red);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
}

/* Desktop: always in-DOM, shown/hidden via opacity + visibility */
@media (min-width: 1024px) {
  .nav-megamenu {
    display: block;
    visibility: hidden;
    opacity: 0;
    /*
     * No pointer-events override here. When visibility:hidden the element
     * naturally receives no events; when visibility:visible (during the 0.2s
     * delay before snapping to hidden) it CAN receive mouseenter, which keeps
     * the hover state alive as the mouse crosses the ~15 px dead zone between
     * the nav li bottom and the panel top.
     */
    transition:
      opacity 0.15s ease,
      visibility 0s linear 0.2s;
  }

  .has-megamenu:hover .nav-megamenu,
  .has-megamenu:focus-within .nav-megamenu {
    visibility: visible;
    opacity: 1;
    transition:
      opacity 0.15s ease,
      visibility 0s linear 0s;
  }
}

/* Mobile: JS adds .submenu-is-open; use display toggle (no transition needed) */
@media (max-width: 1023px) {
  .has-megamenu.submenu-is-open .nav-megamenu {
    display: block;
  }
}

/* ── Inner layout ───────────────────────────────────────────────────────────── */
.megamenu-inner {
  padding-block: var(--space-8) var(--space-10);
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .megamenu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Category card ──────────────────────────────────────────────────────────── */
.megamenu-cat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--color-text);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.megamenu-cat:hover {
  background-color: var(--color-grey-light);
  border-color: var(--color-grey-mid);
  transform: translateY(-2px);
}

.megamenu-cat-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-navy);
  transition: color var(--transition-fast);
}

.megamenu-cat:hover .megamenu-cat-name {
  color: var(--color-red);
}

.megamenu-cat-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  flex: 1;
}

.megamenu-cat-arrow {
  display: flex;
  align-items: center;
  color: var(--color-red);
  padding-top: var(--space-2);
  transition: transform var(--transition-fast);
}

.megamenu-cat:hover .megamenu-cat-arrow {
  transform: translateX(3px);
}

/* ── "View All" CTA tile ────────────────────────────────────────────────────── */
.megamenu-all {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background-color: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.megamenu-all:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-2px);
}

.megamenu-all-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.megamenu-all-icon {
  color: var(--color-red);
  transition: transform var(--transition-fast);
}

.megamenu-all:hover .megamenu-all-icon {
  transform: translateX(3px);
}

/* ── Mobile megamenu layout ─────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nav-megamenu {
    position: static;
    border: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--color-red);
    border-radius: 0;
    background-color: var(--color-grey-light);
    margin-left: var(--space-4);
  }

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

  .megamenu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .megamenu-cat {
    padding: var(--space-3) var(--space-4);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--color-grey-mid);
    gap: var(--space-1);
    transform: none;
  }

  .megamenu-cat:hover {
    transform: none;
  }

  .megamenu-cat-desc {
    display: none; /* too verbose in mobile menu */
  }

  .megamenu-all {
    border-radius: 0;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
    flex-direction: row;
    align-items: center;
    transform: none;
  }

  .megamenu-all:hover {
    transform: none;
  }
}

/* =============================================================================
   6. HERO
   ============================================================================= */

.hero {
  position: relative;
  color: var(--color-white);
  min-height: 100vh;
  padding-top: clamp(5rem, 12vw, 8rem);
  padding-bottom: clamp(6rem, 14vw, 10rem);

  /* Fixed parallax background */
  background-image: url("../img/New Belmont Coatings Banner.png");
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark gradient overlay for text legibility */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 17, 42, 0.84) 0%,
    rgba(27, 42, 94, 0.68) 55%,
    rgba(11, 17, 42, 0.52) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Red accent stripe top */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-red-dark) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: var(--z-raised);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-4);
}

.hero-heading {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.hero-heading em {
  color: var(--color-red);
  font-style: normal;
}

.hero-subtext {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-loose);
  max-width: 560px;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Wave divider at bottom */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(180deg);
}

/* Fixed bg is broken on iOS Safari — fall back to scroll */
@media (max-width: 767px) {
  .hero {
    background-attachment: scroll;
    min-height: 100svh;
  }
}

/* =============================================================================
   7. PRODUCTS SECTION (HOME)
   ============================================================================= */

.products-section {
  background-color: var(--color-white);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================================================
   8. PRODUCT CARD
   ============================================================================= */

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.product-card-accent {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 100%
  );
  flex-shrink: 0;
}

.product-card:hover .product-card-accent {
  background: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-navy) 100%
  );
}

/* Product image area inside homepage cards */
.product-card-image {
  background-color: var(--color-grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-5);
  height: 180px;
}

.product-card-image img {
  height: auto;
  max-height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-base);
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-body {
  flex: 1;
  padding: var(--space-6);
}

.product-type-badge {
  display: inline-block;
  background-color: var(--color-grey-light);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.product-card-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-5);
}

.product-card-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card-specs li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-2);
}

.spec-label {
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
  min-width: 90px;
}

.product-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-grey-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* =============================================================================
   9. WHY NBC SECTION
   ============================================================================= */

.why-nbc {
  background-color: var(--color-grey-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.pillar:hover {
  background-color: var(--color-white);
  border-color: var(--color-grey-mid);
  box-shadow: var(--shadow-card);
}

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: var(--color-white);
  color: var(--color-navy);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-grey-mid);
  margin-inline: auto;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.pillar:hover .pillar-icon {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.pillar-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-wide);
}

.pillar-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* =============================================================================
   10. COLOR CHART TEASER (HOME)
   ============================================================================= */

.color-chart-teaser {
  background-color: var(--color-white);
}

/* Swatch carousel */
@keyframes swatches-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.swatch-carousel {
  overflow-x: hidden;
  padding-block: var(--space-4);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 3%,
    black 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 3%,
    black 97%,
    transparent 100%
  );
}

.swatch-carousel-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: swatches-scroll 24s linear infinite;
}

.swatch-carousel-track:hover {
  animation-play-state: paused;
}

.color-swatch-mini {
  position: relative;
  width: 180px;
  aspect-ratio: 0.75;
  flex-shrink: 0;
  background-color: var(--swatch-color, #ccc);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: default;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.color-swatch-mini:hover {
  transform: scale(1.06);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: var(--z-raised);
}

.swatch-mini-color {
  display: none;
}

.swatch-mini-info {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  padding-left: var(--space-2);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.swatch-mini-code {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

.swatch-mini-name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

/* =============================================================================
   11. CTA BANNER
   ============================================================================= */

.cta-banner {
  background-color: var(--color-navy);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* G — corrugated metal scan lines + edge vignette */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.04) 3px,
      rgba(255, 255, 255, 0.04) 4px
    ),
    radial-gradient(
      ellipse at center,
      transparent 60%,
      rgba(0, 0, 0, 0.25) 100%
    );
  background-size:
    100% 4px,
    100% 100%;
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

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

.cta-banner-content {
  flex: 1;
  max-width: 560px;
}

.cta-banner-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.cta-banner-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* =============================================================================
   12. ABOUT SECTION
   ============================================================================= */

.about-section {
  background-color: var(--color-grey-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content .section-title {
  text-align: left;
  margin-bottom: var(--space-6);
}

.about-content p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

.about-image-placeholder {
  display: flex;
  align-items: stretch;
}

.about-image-block {
  width: 100%;
  min-height: 360px;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 100%
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-8);
}

/* =============================================================================
   13. CONTACT SECTION
   ============================================================================= */

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 380px;
  }
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-label span {
  color: var(--color-red);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-grey-mid);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-grey-dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 94, 0.12);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  align-self: flex-start;
}

/* Contact info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-block {
  padding: var(--space-6);
  background-color: var(--color-grey-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-navy);
}

.contact-info-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.contact-address p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

.contact-address a {
  color: var(--color-red);
  font-weight: 500;
}

.contact-info-block p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin: 0 0 var(--space-2);
}

.contact-info-block .contact-office {
  margin: 0 0 var(--space-4);
}

/* Contact Form 7 overrides — floating label / underline style
   ------------------------------------------------------------------ */

/* Form grid: 2 equal columns on tablet+. */
.contact-form-wrap .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8) var(--space-6);
}

@media (min-width: 640px) {
  .contact-form-wrap .wpcf7-form {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Textarea, submit row, and response banner always span both columns */
  .contact-form-wrap .wpcf7-form p:has(.wpcf7-textarea),
  .contact-form-wrap .wpcf7-form p:has(.wpcf7-submit),
  .contact-form-wrap .wpcf7-response-output {
    grid-column: 1 / -1;
  }
}

/* Each <p>: reset margins */
.contact-form-wrap .wpcf7-form p {
  margin: 0;
}

/* Remove the <br> CF7 sometimes inserts */
.contact-form-wrap .wpcf7-form label br {
  display: none;
}

/* .wpcf7-form-control-wrap: block so it doesn't affect layout */
.contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
}

/* CF7 built-in Turnstile — injected as first child of the form, pushed
   down before the submit row via order. Spans both grid columns. */
.contact-form-wrap .wpcf7-form .cf-turnstile {
  grid-column: 1 / -1;
  order: 98;
}

.contact-form-wrap .wpcf7-form p:has(.wpcf7-submit) {
  order: 99;
}

/* ── Floating label container ─────────────────────────────────────── */
.contact-form-wrap .wpcf7-form label {
  position: relative;
  display: block;
  padding-top: 1.4rem; /* space for the floated label text */
  cursor: text;
}

/* ── Animated label text (wrapped by JS into .cf7-label-text) ──────── */
.contact-form-wrap .cf7-label-text {
  position: absolute;
  top: 1.55rem; /* vertically centred over the input */
  left: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  pointer-events: none;
  transform-origin: left top;
  transition:
    top 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease;
}

/* Float up when field is focused or has a value */
.contact-form-wrap label.is-active .cf7-label-text {
  top: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Tint the label navy when actively focused */
.contact-form-wrap label.is-focused .cf7-label-text {
  color: var(--color-navy);
}

/* ── Inputs: bottom border only ───────────────────────────────────── */
.contact-form-wrap .wpcf7-form-control.wpcf7-text,
.contact-form-wrap .wpcf7-form-control.wpcf7-email,
.contact-form-wrap .wpcf7-form-control.wpcf7-tel,
.contact-form-wrap .wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: var(--space-2) 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-grey-mid);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-normal);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

/* Hide browser-default placeholder — the floating label serves this role */
.contact-form-wrap .wpcf7-form-control.wpcf7-text::placeholder,
.contact-form-wrap .wpcf7-form-control.wpcf7-email::placeholder,
.contact-form-wrap .wpcf7-form-control.wpcf7-tel::placeholder,
.contact-form-wrap .wpcf7-form-control.wpcf7-textarea::placeholder {
  color: transparent;
}

/* Focus: bottom border turns navy */
.contact-form-wrap .wpcf7-form-control.wpcf7-text:focus,
.contact-form-wrap .wpcf7-form-control.wpcf7-email:focus,
.contact-form-wrap .wpcf7-form-control.wpcf7-tel:focus,
.contact-form-wrap .wpcf7-form-control.wpcf7-textarea:focus {
  border-bottom-color: var(--color-navy);
}

/* Textarea */
.contact-form-wrap .wpcf7-form-control.wpcf7-textarea {
  resize: none;
  min-height: 100px;
}

/* ── Validation ────────────────────────────────────────────────────── */
.contact-form-wrap .wpcf7-form-control.wpcf7-not-valid {
  border-bottom-color: var(--color-red);
}

.contact-form-wrap label.is-focused .wpcf7-form-control.wpcf7-not-valid {
  border-bottom-color: var(--color-red);
}

.contact-form-wrap label:has(.wpcf7-not-valid) .cf7-label-text {
  color: var(--color-red);
}

.contact-form-wrap .wpcf7-not-valid-tip {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-red);
}

/* ── Submit row ────────────────────────────────────────────────────── */
.contact-form-wrap .wpcf7-form p:has(.wpcf7-submit) {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-form-wrap .wpcf7-form-control.wpcf7-submit {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.contact-form-wrap .wpcf7-form-control.wpcf7-submit:hover {
  background-color: var(--color-red);
}

.contact-form-wrap .wpcf7-form-control.wpcf7-submit:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

/* ── Spinner ───────────────────────────────────────────────────────── */
.contact-form-wrap .wpcf7-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-grey-mid);
  border-top-color: var(--color-navy);
  border-radius: 50%;
  animation: nbc-spin 0.7s linear infinite;
}

.contact-form-wrap .wpcf7-form.submitting .wpcf7-spinner {
  display: inline-block;
}

@keyframes nbc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Response banner ───────────────────────────────────────────────── */
.contact-form-wrap .wpcf7-response-output {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
}

.contact-form-wrap .wpcf7-form.sent .wpcf7-response-output {
  background-color: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.contact-form-wrap .wpcf7-form.failed .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.spam .wpcf7-response-output {
  background-color: #fff1f2;
  color: #9f1239;
  border-left: 4px solid var(--color-red);
}

/* ── No-shortcode placeholder ─────────────────────────────────────── */
.contact-form-placeholder {
  padding: var(--space-6);
  background-color: var(--color-grey-light);
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--color-grey-mid);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* =============================================================================
   14. FOOTER
   ============================================================================= */

.site-footer {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0;
  border-top: 3px solid var(--color-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* Footer logo */
.footer-logo .logo-mark {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.footer-logo .logo-name {
  color: var(--color-white);
}

.footer-logo .logo-tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-white);
  margin-top: var(--space-5);
  line-height: var(--leading-snug);
}

.footer-tagline-sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-2);
  font-style: italic;
}

.footer-trademark-notice {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-4);
}

/* Footer nav columns */
.footer-nav-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-5);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-white);
}

/* Footer contact */
.footer-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-snug);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-email a {
  font-style: normal;
  color: var(--color-white);
  font-size: var(--text-base);
}

.footer-office-region {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-1);
  margin-top: var(--space-2);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--color-red);
  padding-block: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright,
.footer-disclaimer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-credit {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* =============================================================================
   15. COLOR CHART PAGE
   ============================================================================= */

.color-chart-page-header {
  background-color: var(--color-navy);
  padding-block: clamp(3rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* G — corrugated metal scan lines + edge vignette */
.color-chart-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.04) 3px,
      rgba(255, 255, 255, 0.04) 4px
    ),
    radial-gradient(
      ellipse at center,
      transparent 60%,
      rgba(0, 0, 0, 0.25) 100%
    );
  background-size:
    100% 4px,
    100% 100%;
}

.color-chart-page-header .section-eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.color-chart-page-header .page-breadcrumb {
  color: rgba(255, 255, 255, 0.55);
}

.color-chart-page-header .page-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
}

.color-chart-page-header .section-title {
  color: var(--color-white);
}

.color-chart-page-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Search bar */
.color-chart-search-bar {
  background-color: var(--color-grey-light);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-grey-mid);
}

.color-chart-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 800px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .color-chart-controls {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-6);
  }
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-grey-dark);
  pointer-events: none;
}

.color-search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  border: 1.5px solid var(--color-grey-mid);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  background-color: var(--color-white);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.color-search-input:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 94, 0.12);
}

/* Family filter pills */
.family-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.family-filter-btn {
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--color-grey-mid);
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.family-filter-btn:hover,
.family-filter-btn.is-active {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

/* Full swatch grid */
.color-chart-grid-section {
  padding-block: var(--space-12);
}

.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .color-swatches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .color-swatches-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .color-swatches-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.color-swatch {
  position: relative;
  background-color: var(--swatch-color, #ccc);
  aspect-ratio: 0.75;
  border-radius: 0;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  cursor: default;
}

.color-swatch:hover {
  transform: scale(1.06);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.swatch-color-block {
  display: none;
}

.swatch-info {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-4);
  padding-left: var(--space-2);
  background: transparent;
  border: none;
  border-left: 2px solid rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.swatch-ral-code {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.swatch-color-name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Light swatches — dark text for sufficient contrast (WCAG AA) */
.color-swatch--light .swatch-info {
  border-left-color: rgba(0, 0, 0, 0.45);
}

.color-swatch--light .swatch-ral-code {
  color: rgba(0, 0, 0, 0.65);
}

.color-swatch--light .swatch-color-name {
  color: var(--color-text);
}

/* No results message */
#no-results {
  text-align: center;
  padding: var(--space-16);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  grid-column: 1 / -1;
}

/* Color chart disclaimer */
.color-chart-disclaimer {
  background-color: var(--color-grey-light);
  border-top: 1px solid var(--color-grey-mid);
  padding-block: var(--space-8);
}

.disclaimer-box {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-6);
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-mid);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-md);
}

.disclaimer-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-red);
  margin-bottom: var(--space-3);
}

.disclaimer-box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* =============================================================================
   16. SINGLE PRODUCT PAGE
   ============================================================================= */

/* Product hero */
.product-hero {
  background-color: var(--color-navy);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* G — corrugated metal scan lines + edge vignette */
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.04) 3px,
      rgba(255, 255, 255, 0.04) 4px
    ),
    radial-gradient(
      ellipse at center,
      transparent 60%,
      rgba(0, 0, 0, 0.25) 100%
    );
  background-size:
    100% 4px,
    100% 100%;
}

.product-hero-inner {
  position: relative;
  z-index: var(--z-raised);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 1024px) {
  .product-hero-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.6875rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-5);
}

.product-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding-block: 2px;
  border-bottom: 1px solid transparent;
}

.product-breadcrumb a:hover {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.product-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  margin-inline: var(--space-2);
  color: rgba(255, 255, 255, 0.25);
  font-size: 0;
  line-height: 0;
}

.product-breadcrumb-sep::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  color: rgba(255, 255, 255, 0.3);
}

.product-hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.product-hero-name {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.product-hero-tagline {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.product-hero-actions .btn {
  flex: 1 1 auto;
  min-width: 180px;
  justify-content: center;
}

/* PDF download buttons */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-download svg {
  flex-shrink: 0;
}

/* Product quick specs */
.product-quick-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-width: 350px;
}

/* Product image thumbnail at the top of the quick-specs card */
.product-hero-thumb {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4);
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  min-height: 350px;
}

.product-hero-thumb img {
  height: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}

.quick-spec-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.quick-spec-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.quick-spec-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
}

/* Product color chart panel */
.product-color-chart-panel {
  background-color: var(--color-grey-light);
  border-top: 1px solid var(--color-grey-mid);
  border-bottom: 1px solid var(--color-grey-mid);
  padding-block: var(--space-12);
}

.product-color-chart-panel-header {
  margin-bottom: var(--space-10);
}

.product-color-chart-panel-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.product-color-chart-panel-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0;
  margin-bottom: 0;
}

.color-chart-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* Product body */
.product-body {
  padding-block: var(--space-16);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr 400px;
    align-items: start;
  }

  .product-sidebar {
    position: sticky;
    top: calc(80px + var(--space-8));
  }
}

/* Product description */
.product-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-10);
}

.product-description p + p {
  margin-top: var(--space-4);
}

/* Product features */
.product-section-title {
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-grey-mid);
}

.product-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check svg {
  width: 12px;
  height: 12px;
}

.feature-content h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.feature-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Product application areas */
.application-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

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

.application-area-item {
  padding: var(--space-4);
  background-color: var(--color-grey-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-navy);
}

/* Product sidebar */
.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.product-sidebar-card {
  border: 1px solid var(--color-grey-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-card-header {
  background-color: var(--color-navy);
  padding: var(--space-4) var(--space-5);
}

.sidebar-card-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-white);
}

.sidebar-card-body {
  padding: var(--space-5);
}

/* Product spec table */
.product-spec-table {
  width: 100%;
  font-size: var(--text-sm);
}

.product-spec-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--color-grey-mid);
}

.product-spec-table td {
  padding: var(--space-3) var(--space-2);
  vertical-align: top;
}

.product-spec-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 45%;
}

.product-spec-table td:last-child {
  color: var(--color-text-muted);
}

/* Download buttons */
.download-btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.download-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-grey-light);
  border: 1.5px solid var(--color-grey-mid);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.download-btn:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.download-btn-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast);
}

.download-btn:hover .download-btn-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.download-btn-meta {
  flex: 1;
}

.download-btn-label {
  display: block;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.download-btn-sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.download-btn:hover .download-btn-sub {
  color: rgba(255, 255, 255, 0.7);
}

/* Quote sidebar card */
.product-sidebar-quote .sidebar-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

/* Quality & Stewardship sidebar card */
.product-sidebar-quality .sidebar-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.product-sidebar-quality .sidebar-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.product-sidebar-quality .sidebar-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-3);
}

.product-sidebar-quality .sidebar-card-body p:last-child {
  margin-bottom: 0;
}

/* Related products */
.related-products {
  /* background-color: var(--color-grey-light); */
  padding-block: var(--section-py);
}

/* Two equal columns for related products */
.related-products .products-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Horizontal card variant — image left, content right */
.product-card--horizontal {
  flex-direction: row;
  align-items: stretch;
}

/* Accent bar spans only the content column — move it above the whole card */
.product-card--horizontal .product-card-accent {
  display: none;
}

.product-card--horizontal {
  border-top: 5px solid;
  border-image: linear-gradient(
      90deg,
      var(--color-navy) 0%,
      var(--color-navy-light) 100%
    )
    1;
}

.product-card--horizontal:hover {
  border-image: linear-gradient(
      90deg,
      var(--color-red) 0%,
      var(--color-navy) 100%
    )
    1;
}

.product-card--horizontal .product-card-image {
  width: 200px;
  min-width: 200px;
  height: auto;
  align-self: stretch;
  flex-shrink: 0;
  background-color: var(--color-grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  overflow: hidden;
}

.product-card--horizontal .product-card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* =============================================================================
   17. PAGE HEADER (generic — about, contact, products archive, blog)
   ============================================================================= */

.page-header {
  background-color: var(--color-navy);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* G — corrugated metal scan lines + edge vignette */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.04) 3px,
      rgba(255, 255, 255, 0.04) 4px
    ),
    radial-gradient(
      ellipse at center,
      transparent 60%,
      rgba(0, 0, 0, 0.25) 100%
    );
  background-size:
    100% 4px,
    100% 100%;
  pointer-events: none;
}

.page-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-red-dark) 100%
  );
}

.page-header-inner {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.page-header .section-eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.page-header .section-title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-header .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-inline: auto;
}

/* Breadcrumb in page header */
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.6875rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-5);
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.page-breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.45);
}

.page-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  margin-inline: var(--space-2);
  font-size: 0;
  line-height: 0;
  color: rgba(255, 255, 255, 0.25);
}

.page-breadcrumb-sep::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* =============================================================================
   18. ABOUT PAGE EXTRAS (values, stats, team)
   ============================================================================= */

/* Mission statement full-width band */
.about-mission {
  background-color: var(--color-navy);
  padding-block: clamp(3rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-mission::before {
  content: none;
}

.about-mission-inner {
  position: relative;
  z-index: var(--z-raised);
  max-width: 780px;
  margin-inline: auto;
}

.about-mission-quote {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.about-mission-quote em {
  color: var(--color-red);
  font-style: normal;
}

.about-mission-sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--leading-loose);
}

/* Stats band */
.about-stats {
  background-color: var(--color-grey-light);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--color-grey-mid);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.stat-number sup {
  font-size: 0.5em;
  vertical-align: super;
}

.stat-label {
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Values grid */
.about-values {
  background-color: var(--color-white);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-item {
  padding: var(--space-8);
  background-color: var(--color-grey-light);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-navy);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.value-item:hover {
  border-top-color: var(--color-red);
  box-shadow: var(--shadow-md);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  transition: background-color var(--transition-base);
}

.value-item:hover .value-icon {
  background-color: var(--color-red);
}

.value-title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.value-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* About full page body section */
.about-body {
  background-color: var(--color-white);
}

.about-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

@media (min-width: 1024px) {
  .about-body-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about-body-content .section-title {
  text-align: left;
  margin-bottom: var(--space-6);
}

.about-body-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-5);
}

.about-body-content p:last-of-type {
  margin-bottom: 0;
}

.about-body-ctas {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.about-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 100%
  );
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================================
   19. BLOG / POST ARCHIVE
   ============================================================================= */

.blog-archive {
  background-color: var(--color-white);
  padding-block: var(--section-py);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr 280px;
    gap: var(--space-12);
  }
}

.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Post card */
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

@media (min-width: 640px) {
  .post-card {
    grid-template-columns: 280px 1fr;
  }
}

.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.post-card-image {
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 100%
  );
  aspect-ratio: 16/9;
  position: relative;
}

@media (min-width: 640px) {
  .post-card-image {
    aspect-ratio: auto;
    min-height: 200px;
  }
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.post-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.post-card-category {
  display: inline-block;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
}

.post-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.post-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-snug);
  transition: color var(--transition-fast);
}

.post-card:hover .post-card-title {
  color: var(--color-red);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  flex: 1;
}

.post-card-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-grey-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.post-card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Blog sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.blog-sidebar-card {
  border: 1px solid var(--color-grey-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-sidebar-header {
  background-color: var(--color-navy);
  padding: var(--space-4) var(--space-5);
}

.blog-sidebar-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-white);
}

.blog-sidebar-body {
  padding: var(--space-5);
}

/* Recent posts in sidebar */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.recent-post-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-grey-mid);
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  line-height: var(--leading-snug);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.recent-post-title:hover {
  color: var(--color-red);
}

.recent-post-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Category list in sidebar */
.category-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.category-count {
  display: inline-block;
  background-color: var(--color-grey-light);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 1px var(--space-2);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-wide);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-top: var(--space-10);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-grey-mid);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.page-link:hover,
.page-link.is-current {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.page-link.is-prev,
.page-link.is-next {
  width: auto;
  padding-inline: var(--space-4);
  gap: var(--space-2);
}

/* =============================================================================
   20. SINGLE POST PAGE
   ============================================================================= */

/* Post header */
.post-header {
  background-color: var(--color-navy);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* G — corrugated metal scan lines + edge vignette */
.post-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.04) 3px,
      rgba(255, 255, 255, 0.04) 4px
    ),
    radial-gradient(
      ellipse at center,
      transparent 60%,
      rgba(0, 0, 0, 0.25) 100%
    );
  background-size:
    100% 4px,
    100% 100%;
  pointer-events: none;
}

.post-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-red-dark) 100%
  );
}

.post-header-inner {
  position: relative;
  z-index: var(--z-raised);
  max-width: 800px;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.post-category-badge {
  display: inline-block;
  background-color: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

.post-header-date,
.post-header-read-time {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.post-header-sep {
  color: rgba(255, 255, 255, 0.25);
}

.post-header-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--space-6);
}

.post-header-excerpt {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: var(--leading-loose);
  max-width: 640px;
}

.post-header-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-white);
  flex-shrink: 0;
}

.post-author-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
}

.post-author-role {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* Featured image */
.post-featured-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.post-featured-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 320px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* Post layout */
.post-section {
  padding-block: var(--section-py);
  background-color: var(--color-white);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr 300px;
  }
}

/* Post content rich text */
.post-content {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
  max-width: 720px;
}

.post-content h2 {
  font-size: var(--text-2xl);
  color: var(--color-navy);
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-grey-mid);
}

.post-content h3 {
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.post-content h4 {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.post-content p {
  margin-bottom: var(--space-5);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.post-content ul li {
  list-style-type: disc;
}

.post-content ol li {
  list-style-type: decimal;
}

.post-content a {
  color: var(--color-red);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--color-red-dark);
}

.post-content blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-8);
  background-color: var(--color-grey-light);
  border-left: 4px solid var(--color-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-lg);
  color: var(--color-text);
  font-style: italic;
  line-height: var(--leading-snug);
}

.post-content blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-muted);
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin-block: var(--space-8);
}

.post-content figcaption {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-5));
  margin-bottom: var(--space-8);
}

/* Post footer (tags, share) */
.post-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-grey-mid);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

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

.post-tags {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.post-tags-label {
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.post-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border: 1.5px solid var(--color-grey-mid);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.post-tag:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

/* Post navigation (prev/next post) */
.post-nav {
  background-color: var(--color-grey-light);
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-grey-mid);
}

.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .post-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-mid);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.post-nav-link:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.post-nav-dir {
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-nav-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  line-height: var(--leading-snug);
}

.post-nav-link.is-next {
  text-align: right;
}

.post-nav-link.is-next .post-nav-dir {
  justify-content: flex-end;
}

/* Post sidebar */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

/* =============================================================================
   21. PRODUCTS ARCHIVE PAGE
   ============================================================================= */

.products-archive {
  background-color: var(--color-white);
  padding-block: var(--section-py);
}

.products-archive-intro {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-14);
}

.products-archive-intro p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-top: var(--space-4);
}

/* Archive grid — 3-column on large screens, same as .products-grid */
.products-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .products-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Archive card is like product-card but slightly more detailed */
.archive-product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-mid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.archive-product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.archive-card-accent {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 100%
  );
}

.archive-product-card:hover .archive-card-accent {
  background: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-navy) 100%
  );
}

.archive-card-image {
  background-color: var(--color-grey-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  height: 220px;
  flex-shrink: 0;
}

.archive-card-image img {
  height: auto;
  max-height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-base);
}

.archive-product-card:hover .archive-card-image img {
  transform: scale(1.05);
}

.archive-card-body {
  flex: 1;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.archive-card-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.archive-card-spec-row {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.archive-spec-label {
  font-weight: 600;
  color: var(--color-text);
  min-width: 90px;
  flex-shrink: 0;
}

.archive-spec-value {
  color: var(--color-text-muted);
}

.archive-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-grey-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* =============================================================================
   UTILITIES — Spacing
   Based on the spacing scale defined in variables.css.
   Placed at end of file so utility classes win over component-level spacing.
   Margin:  mt-* mb-* ml-* mr-* mx-* my-*
   Padding: pt-* pb-* pl-* pr-* px-* py-*
   Suffix key: 0 1 2 3 4 5 6 8 10 12 14 16 20 24 32
   ============================================================================= */

/* ── Margin top ── */
.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: var(--space-1) !important;
}
.mt-2 {
  margin-top: var(--space-2) !important;
}
.mt-3 {
  margin-top: var(--space-3) !important;
}
.mt-4 {
  margin-top: var(--space-4) !important;
}
.mt-5 {
  margin-top: var(--space-5) !important;
}
.mt-6 {
  margin-top: var(--space-6) !important;
}
.mt-8 {
  margin-top: var(--space-8) !important;
}
.mt-10 {
  margin-top: var(--space-10) !important;
}
.mt-12 {
  margin-top: var(--space-12) !important;
}
.mt-14 {
  margin-top: var(--space-14) !important;
}
.mt-16 {
  margin-top: var(--space-16) !important;
}
.mt-20 {
  margin-top: var(--space-20) !important;
}
.mt-24 {
  margin-top: var(--space-24) !important;
}
.mt-32 {
  margin-top: var(--space-32) !important;
}

/* ── Margin bottom ── */
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: var(--space-1) !important;
}
.mb-2 {
  margin-bottom: var(--space-2) !important;
}
.mb-3 {
  margin-bottom: var(--space-3) !important;
}
.mb-4 {
  margin-bottom: var(--space-4) !important;
}
.mb-5 {
  margin-bottom: var(--space-5) !important;
}
.mb-6 {
  margin-bottom: var(--space-6) !important;
}
.mb-8 {
  margin-bottom: var(--space-8) !important;
}
.mb-10 {
  margin-bottom: var(--space-10) !important;
}
.mb-12 {
  margin-bottom: var(--space-12) !important;
}
.mb-14 {
  margin-bottom: var(--space-14) !important;
}
.mb-16 {
  margin-bottom: var(--space-16) !important;
}
.mb-20 {
  margin-bottom: var(--space-20) !important;
}
.mb-24 {
  margin-bottom: var(--space-24) !important;
}
.mb-32 {
  margin-bottom: var(--space-32) !important;
}

/* ── Margin left ── */
.ml-0 {
  margin-left: 0 !important;
}
.ml-1 {
  margin-left: var(--space-1) !important;
}
.ml-2 {
  margin-left: var(--space-2) !important;
}
.ml-3 {
  margin-left: var(--space-3) !important;
}
.ml-4 {
  margin-left: var(--space-4) !important;
}
.ml-5 {
  margin-left: var(--space-5) !important;
}
.ml-6 {
  margin-left: var(--space-6) !important;
}
.ml-8 {
  margin-left: var(--space-8) !important;
}
.ml-10 {
  margin-left: var(--space-10) !important;
}
.ml-12 {
  margin-left: var(--space-12) !important;
}
.ml-auto {
  margin-left: auto !important;
}

/* ── Margin right ── */
.mr-0 {
  margin-right: 0 !important;
}
.mr-1 {
  margin-right: var(--space-1) !important;
}
.mr-2 {
  margin-right: var(--space-2) !important;
}
.mr-3 {
  margin-right: var(--space-3) !important;
}
.mr-4 {
  margin-right: var(--space-4) !important;
}
.mr-5 {
  margin-right: var(--space-5) !important;
}
.mr-6 {
  margin-right: var(--space-6) !important;
}
.mr-8 {
  margin-right: var(--space-8) !important;
}
.mr-10 {
  margin-right: var(--space-10) !important;
}
.mr-12 {
  margin-right: var(--space-12) !important;
}
.mr-auto {
  margin-right: auto !important;
}

/* ── Margin x-axis (left + right) ── */
.mx-0 {
  margin-inline: 0 !important;
}
.mx-1 {
  margin-inline: var(--space-1) !important;
}
.mx-2 {
  margin-inline: var(--space-2) !important;
}
.mx-3 {
  margin-inline: var(--space-3) !important;
}
.mx-4 {
  margin-inline: var(--space-4) !important;
}
.mx-5 {
  margin-inline: var(--space-5) !important;
}
.mx-6 {
  margin-inline: var(--space-6) !important;
}
.mx-8 {
  margin-inline: var(--space-8) !important;
}
.mx-10 {
  margin-inline: var(--space-10) !important;
}
.mx-12 {
  margin-inline: var(--space-12) !important;
}
.mx-auto {
  margin-inline: auto !important;
}

/* ── Margin y-axis (top + bottom) ── */
.my-0 {
  margin-block: 0 !important;
}
.my-1 {
  margin-block: var(--space-1) !important;
}
.my-2 {
  margin-block: var(--space-2) !important;
}
.my-3 {
  margin-block: var(--space-3) !important;
}
.my-4 {
  margin-block: var(--space-4) !important;
}
.my-5 {
  margin-block: var(--space-5) !important;
}
.my-6 {
  margin-block: var(--space-6) !important;
}
.my-8 {
  margin-block: var(--space-8) !important;
}
.my-10 {
  margin-block: var(--space-10) !important;
}
.my-12 {
  margin-block: var(--space-12) !important;
}
.my-16 {
  margin-block: var(--space-16) !important;
}

/* ── Padding top ── */
.pt-0 {
  padding-top: 0 !important;
}
.pt-1 {
  padding-top: var(--space-1) !important;
}
.pt-2 {
  padding-top: var(--space-2) !important;
}
.pt-3 {
  padding-top: var(--space-3) !important;
}
.pt-4 {
  padding-top: var(--space-4) !important;
}
.pt-5 {
  padding-top: var(--space-5) !important;
}
.pt-6 {
  padding-top: var(--space-6) !important;
}
.pt-8 {
  padding-top: var(--space-8) !important;
}
.pt-10 {
  padding-top: var(--space-10) !important;
}
.pt-12 {
  padding-top: var(--space-12) !important;
}
.pt-16 {
  padding-top: var(--space-16) !important;
}
.pt-20 {
  padding-top: var(--space-20) !important;
}

/* ── Padding bottom ── */
.pb-0 {
  padding-bottom: 0 !important;
}
.pb-1 {
  padding-bottom: var(--space-1) !important;
}
.pb-2 {
  padding-bottom: var(--space-2) !important;
}
.pb-3 {
  padding-bottom: var(--space-3) !important;
}
.pb-4 {
  padding-bottom: var(--space-4) !important;
}
.pb-5 {
  padding-bottom: var(--space-5) !important;
}
.pb-6 {
  padding-bottom: var(--space-6) !important;
}
.pb-8 {
  padding-bottom: var(--space-8) !important;
}
.pb-10 {
  padding-bottom: var(--space-10) !important;
}
.pb-12 {
  padding-bottom: var(--space-12) !important;
}
.pb-16 {
  padding-bottom: var(--space-16) !important;
}
.pb-20 {
  padding-bottom: var(--space-20) !important;
}

/* ── Padding left ── */
.pl-0 {
  padding-left: 0 !important;
}
.pl-1 {
  padding-left: var(--space-1) !important;
}
.pl-2 {
  padding-left: var(--space-2) !important;
}
.pl-3 {
  padding-left: var(--space-3) !important;
}
.pl-4 {
  padding-left: var(--space-4) !important;
}
.pl-5 {
  padding-left: var(--space-5) !important;
}
.pl-6 {
  padding-left: var(--space-6) !important;
}
.pl-8 {
  padding-left: var(--space-8) !important;
}
.pl-10 {
  padding-left: var(--space-10) !important;
}
.pl-12 {
  padding-left: var(--space-12) !important;
}

/* ── Padding right ── */
.pr-0 {
  padding-right: 0 !important;
}
.pr-1 {
  padding-right: var(--space-1) !important;
}
.pr-2 {
  padding-right: var(--space-2) !important;
}
.pr-3 {
  padding-right: var(--space-3) !important;
}
.pr-4 {
  padding-right: var(--space-4) !important;
}
.pr-5 {
  padding-right: var(--space-5) !important;
}
.pr-6 {
  padding-right: var(--space-6) !important;
}
.pr-8 {
  padding-right: var(--space-8) !important;
}
.pr-10 {
  padding-right: var(--space-10) !important;
}
.pr-12 {
  padding-right: var(--space-12) !important;
}

/* ── Padding x-axis (left + right) ── */
.px-0 {
  padding-inline: 0 !important;
}
.px-1 {
  padding-inline: var(--space-1) !important;
}
.px-2 {
  padding-inline: var(--space-2) !important;
}
.px-3 {
  padding-inline: var(--space-3) !important;
}
.px-4 {
  padding-inline: var(--space-4) !important;
}
.px-5 {
  padding-inline: var(--space-5) !important;
}
.px-6 {
  padding-inline: var(--space-6) !important;
}
.px-8 {
  padding-inline: var(--space-8) !important;
}
.px-10 {
  padding-inline: var(--space-10) !important;
}
.px-12 {
  padding-inline: var(--space-12) !important;
}
.px-16 {
  padding-inline: var(--space-16) !important;
}

/* ── Padding y-axis (top + bottom) ── */
.py-0 {
  padding-block: 0 !important;
}
.py-1 {
  padding-block: var(--space-1) !important;
}
.py-2 {
  padding-block: var(--space-2) !important;
}
.py-3 {
  padding-block: var(--space-3) !important;
}
.py-4 {
  padding-block: var(--space-4) !important;
}
.py-5 {
  padding-block: var(--space-5) !important;
}
.py-6 {
  padding-block: var(--space-6) !important;
}
.py-8 {
  padding-block: var(--space-8) !important;
}
.py-10 {
  padding-block: var(--space-10) !important;
}
.py-12 {
  padding-block: var(--space-12) !important;
}
.py-16 {
  padding-block: var(--space-16) !important;
}

/* =============================================================================
   GUTENBERG BLOCK OVERRIDES
   ============================================================================= */

p.wp-block-paragraph {
  margin-block: var(--space-4);
}

/* Gutenberg fixed-layout table block */
table.has-fixed-layout {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin-block: var(--space-6);
}

table.has-fixed-layout thead th {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border: 1px solid var(--color-navy);
}

table.has-fixed-layout tbody tr:nth-child(odd) {
  background-color: var(--color-grey-light);
}

table.has-fixed-layout tbody tr:nth-child(even) {
  background-color: var(--color-white);
}

table.has-fixed-layout tbody tr:hover {
  background-color: rgba(27, 42, 94, 0.05);
}

table.has-fixed-layout td,
table.has-fixed-layout th {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-grey-mid);
  color: var(--color-text);
  vertical-align: top;
}

table.has-fixed-layout td:first-child {
  font-weight: 600;
  color: var(--color-navy);
}

@media (max-width: 640px) {
  table.has-fixed-layout {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
