/* ============================================================
   RISPRI LABS — CORPORATE STYLESHEET
   Inspired by Thermax / Ion Exchange design language
   ============================================================ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Brand Colors */
  --primary:       #013a6e;   /* Deep corporate blue */
  --primary-dark:  #012550;   /* Darker navy */
  --primary-mid:   #1b5ea0;   /* Mid blue */
  --primary-light: #e8f2fb;   /* Soft blue tint */
  --accent:        #e87722;   /* Orange accent */
  --accent-dark:   #c4611a;   /* Hover orange */
  --accent-light:  #fef3e8;   /* Soft orange tint */
  --teal:          #00818a;   /* Teal (lab/environment) */
  --teal-light:    #e3f5f6;   /* Soft teal tint */

  /* Neutrals */
  --white:         #ffffff;
  --off-white:     #f8fafb;
  --gray-50:       #f4f7fc;
  --gray-100:      #eef2f7;
  --gray-200:      #dce4ec;
  --gray-400:      #8fa1b4;
  --gray-600:      #5a6e7f;
  --text:          #1a2c3d;
  --text-light:    #ffffff;

  /* Shadows */
  --shadow-xs:  0 1px 4px rgba(1,58,110,0.07);
  --shadow-sm:  0 4px 14px rgba(1,58,110,0.10);
  --shadow:     0 8px 28px rgba(1,58,110,0.13);
  --shadow-lg:  0 18px 48px rgba(1,58,110,0.17);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Spacing */
  --section-pad: clamp(2rem, 3.5vw, 3rem);
  --section-pad-sm: clamp(0.8rem, 1.4vw, 1.2rem);
}

/* ── 2. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
[id] { scroll-margin-top: 7rem; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── 3. TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: "Barlow", "Inter", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); }
h4 { font-size: clamp(1rem, 1.4vw, 1.2rem); }

p {
  color: var(--gray-600);
  max-width: 72ch;
  line-height: 1.7;
}

/* ── 4. LAYOUT UTILITIES ────────────────────────────────────── */
.container {
  width: min(1280px, 94vw);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section--sm {
  padding: var(--section-pad-sm) 0;
}

.section--gray { background: var(--gray-50); }
.section--blue { background: var(--primary-dark); }
.section--primary { background: var(--primary); }

/* Reduce (not eliminate) top padding between back-to-back page sections */
.page-main > .section + .section { padding-top: clamp(1.4rem, 2.5vw, 2.2rem); }

/* Subtle alternating bg to replace heavy card boxing */
.page-main > .section:not(.section--sm):nth-child(even) { background: var(--gray-50); }
.page-main > .section.section--gray { background: var(--gray-50) !important; }

.section-header {
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

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

.section-header--center p {
  margin: 0.6rem auto 0;
}

.overline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.overline--teal { color: var(--teal); }
.overline--white { color: rgba(255,255,255,0.7); }

.section-header h2 { margin-bottom: 0.5rem; }

.section-header p {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: var(--gray-600);
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.75rem 0 1rem;
}

.divider--center { margin: 0.75rem auto 1rem; }
.divider--teal { background: var(--teal); }
.divider--white { background: rgba(255,255,255,0.6); }

/* ── 5. BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(1,58,110,0.28);
}

.btn-orange {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-orange:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(232,119,34,0.35);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 14px rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover { background: #00676f; border-color: #00676f; }

.btn--lg { padding: 1rem 2.1rem; font-size: 0.88rem; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.76rem; }

.btn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Backwards-compat aliases */
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.magnetic { display: inline-flex; align-items: center; justify-content: center; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }

/* ── 6. UTILITY BAR ─────────────────────────────────────────── */
.util-bar {
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.util-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}

.util-certs {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.util-certs span,
.util-contact a {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.util-certs .cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

.util-contact {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

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

.util-contact .util-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}

/* ── 7. MAIN HEADER ─────────────────────────────────────────── */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s;
}

.main-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-text span {
  display: block;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-top: 1px;
  white-space: nowrap;
}

/* Hide tagline in header — logo + name is sufficient; footer keeps the full brand */
.main-header .brand-text span { display: none; }

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.site-nav > a,
.nav-item > .nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav > a:hover,
.site-nav > a.active,
.nav-item .nav-parent:hover,
.nav-item .nav-parent.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-parent::after {
  content: "▾";
  font-size: 0.55rem;
  margin-left: 2px;
  opacity: 0.7;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
  z-index: 300;
}

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

.dropdown-menu a {
  display: block;
  padding: 0.48rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  width: 100%;
  transition: transform 0.2s;
}

/* Header CTA */
.header-cta { flex-shrink: 0; }

/* ── 8. HERO SECTION ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(1, 37, 80, 0.88) 0%,
    rgba(1, 58, 110, 0.75) 48%,
    rgba(0, 80, 100, 0.68) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  max-width: 700px;
}

.hero-content .overline {
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .sub {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: rgba(255,255,255,0.82);
  max-width: 58ch;
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Hero trust bar */
.hero-trust {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(1,37,80,0.72);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.hero-trust-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.trust-item:last-child { border-right: none; }

.trust-icon {
  width: 30px;
  height: 30px;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 100%; height: 100%; }

.trust-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.trust-item span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* ── 9. STATS STRIP ─────────────────────────────────────────── */
.stats-strip {
  background: var(--primary);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 0;
  height: 48px;
}

.stat-number {
  display: block;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-number span {
  font-size: 1em;
}

.stat-suffix {
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.35rem;
}

/* KPI card (backwards compat) */
.bento-card.kpi {
  text-align: center;
  background: linear-gradient(160deg, #f2fbfb, #e5f4f4) !important;
  border-top: 4px solid var(--teal) !important;
  border: 1px solid rgba(0,129,138,0.18);
  padding: 1.1rem 0.9rem;
  min-height: 145px;
}

.bento-card.kpi strong {
  display: block;
  font-size: clamp(2.5rem, 4.3vw, 3.6rem);
  color: var(--teal) !important;
  font-family: "Barlow", "Inter", sans-serif;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.bento-card.kpi span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 0.03em;
}

/* ── 10. ABOUT SPLIT ────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.about-split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.about-copy {}

.about-copy h2 { margin-bottom: 0.5rem; }

.about-copy > p {
  margin-top: 0.75rem;
  margin-bottom: 1.2rem;
}

.about-verticals {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 1.5rem;
}

.about-vertical {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: var(--gray-50);
  align-items: flex-start;
}

.about-vertical:nth-child(2) {
  border-left-color: var(--teal);
}

.vertical-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.vertical-icon svg { width: 100%; height: 100%; }

.about-vertical h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-vertical p {
  font-size: 0.88rem;
  color: var(--gray-600);
  max-width: none;
}

/* ── 11. SOLUTIONS GRID ──────────────────────────────────────── */
.pillar-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.pillar-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-mid);
}

.pillar-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.pillar-card-body {
  padding: 1.4rem 1.3rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.pillar-card-body h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.pillar-card-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  flex: 1;
  max-width: none;
}

.pillar-card-body .test-action {
  margin-top: 1.1rem;
}

/* ── 12. BENTO GRID ─────────────────────────────────────────── */
.bento-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(12, 1fr);
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.bento-card h3 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--primary-dark);
  margin-bottom: 0.45rem;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.bento-grid .bento-card:not(.kpi):nth-child(3n+1) {
  border-top: 3px solid var(--primary);
}
.bento-grid .bento-card:not(.kpi):nth-child(3n+2) {
  border-top: 3px solid var(--teal);
}
.bento-grid .bento-card:not(.kpi):nth-child(3n+3) {
  border-top: 3px solid var(--accent);
}

.bento-span-4 { grid-column: span 4; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-7 { grid-column: span 7; }
.bento-span-8 { grid-column: span 8; }

/* ── 13. SERVICES STACK ─────────────────────────────────────── */
.services-stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.3rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-mid);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(27,94,160,0.15);
}

.service-card h3 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.service-card p { font-size: 0.88rem; max-width: none; }

/* ── 14. INDUSTRIES STRIP ───────────────────────────────────── */
.industries-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.industry-item:hover {
  border-color: var(--primary-mid);
  box-shadow: var(--shadow-xs);
  transform: translateY(-2px);
}

.industry-icon {
  width: 30px;
  height: 30px;
  color: var(--primary-mid);
  flex-shrink: 0;
}

.industry-item span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

/* ── 15. QUALITY STRIP ──────────────────────────────────────── */
.quality-strip {
  background: linear-gradient(140deg, var(--primary-dark), var(--primary));
}

.quality-inner {
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 2.2rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.quality-item {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  padding: 1.1rem 1rem;
  position: relative;
  overflow: hidden;
}

.quality-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.quality-item h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

.quality-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  max-width: none;
}

/* ── 16. CERTIFICATIONS BAND ────────────────────────────────── */
.certs-band {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}

.certs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.certs-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  flex-shrink: 0;
  white-space: nowrap;
}

.certs-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cert-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.cert-logo strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.cert-logo span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.cert-logo .cert-badge-pill {
  background: var(--primary-light);
  border: 1.5px solid rgba(1,58,110,0.18);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}

.cert-logo .cert-badge-pill strong {
  font-size: 0.78rem;
  color: var(--primary-dark);
}

/* ── 17. TESTIMONIALS SECTION ───────────────────────────────── */
.testimonial-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #014d5a 100%);
  padding: var(--section-pad) 0;
}

.testimonial-strip-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonial-strip-head h2 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.testimonial-strip-head p { color: rgba(255,255,255,0.62); }

.testimonial-inner {
  width: min(1280px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.testimonial-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(232,119,34,0.45);
}

.testimonial-stars {
  color: #e8b44a;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
  max-width: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-author-info strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-author-info span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* ── 18. CTA BAND ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(110deg, var(--accent) 0%, #c4611a 100%);
  padding: clamp(2.8rem, 5.5vw, 4rem) 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.4rem;
}

.cta-band p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  max-width: 58ch;
}

/* ── 19. COLLECTION PANEL ───────────────────────────────────── */
.collection-panel {
  padding: 1.4rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* When .surface is paired with .collection-panel, strip its box too */
.surface.collection-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 1.4rem 0;
}

.surface {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

/* ── 20. PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #015570 100%);
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3.2rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(232,119,34,0.18), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(0,129,138,0.14), transparent 60%);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
  filter: saturate(0.4) brightness(0.8);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  max-width: 68ch;
}

.page-hero .page-actions .btn-outline {
  border-color: rgba(255,255,255,0.38);
  color: rgba(255,255,255,0.9);
}
.page-hero .page-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.page-hero .feature-badges span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
}

/* ── 21. SECTION JUMP ───────────────────────────────────────── */
.section-jump-wrap {
  position: sticky;
  top: 5.5rem;
  z-index: 900;
}

.section-jump {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.section-jump a {
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}

.section-jump a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* ── 22. TABS ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.tab-btn {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.tab-btn:not(.active):hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── 23. TEST GRID ──────────────────────────────────────────── */
.test-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
}

.test-card {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.test-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.test-grid .test-card:nth-child(3n+1) { border-top: 3px solid var(--primary); }
.test-grid .test-card:nth-child(3n+2) { border-top: 3px solid var(--teal); }
.test-grid .test-card:nth-child(3n+3) { border-top: 3px solid var(--accent); }

.test-card h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.test-card p { font-size: 0.86rem; color: var(--gray-600); max-width: none; }

.test-action {
  margin-top: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}

.test-action:hover { gap: 0.55rem; }
.test-action span { transition: transform 0.2s; }
.test-action:hover span { transform: translateX(3px); }

/* ── 24. ACCORDION ──────────────────────────────────────────── */
.accordion-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: start;
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s;
}

.accordion-item:hover { box-shadow: var(--shadow-sm); }

.accordion-item summary {
  padding: 1rem;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
  content: "+";
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s;
}

.accordion-item[open] summary::after { transform: rotate(45deg); }
.accordion-item[open] summary {
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.accordion-content { padding: 1rem; background: var(--white); }
.accordion-content p { font-size: 0.93rem; margin: 0; max-width: none; }

/* ── 25. CLIENTS GRID ───────────────────────────────────────── */
.clients-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.client-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1rem;
  min-height: 130px;
  display: grid;
  place-items: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.client-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-mid);
}

.client-card img {
  max-width: 90%;
  max-height: 75px;
  object-fit: contain;
}

/* ── 26. EDGE / TRAINING DASHBOARD ─────────────────────────── */
.edge-dashboard {
  padding: 1.2rem;
  background: linear-gradient(160deg, var(--white), var(--gray-50));
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.edge-dashboard h2 { text-align: center; margin-bottom: 0.3rem; }
.edge-sub { text-align: center; max-width: 74ch; margin: 0 auto 0.8rem; }

.edge-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
}

.edge-stat {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 0.9rem;
}

.edge-stat h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.edge-green { border-left: 4px solid #1f8f5a; }
.edge-gold  { border-left: 4px solid #b4881d; }
.edge-blue  { border-left: 4px solid var(--primary-mid); }

.edge-offer {
  margin-top: 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  padding: 0.9rem;
}

.edge-offer h3 { margin-bottom: 0.5rem; }
.edge-note { margin-top: 0.7rem; font-size: 0.82rem; text-align: center; color: var(--gray-600); }

/* ── 27. FEATURE BADGES ─────────────────────────────────────── */
.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.feature-badges span {
  border: 1px solid rgba(27,94,160,0.2);
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ── 28. QUOTE BUILDER ──────────────────────────────────────── */
.quote-builder {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--white), var(--gray-50));
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.quote-builder-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.8rem;
  align-items: center;
}

.quote-builder-head h2 { margin-bottom: 0.35rem; }

.quote-head-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.quote-head-metrics article {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  text-align: center;
  padding: 0.65rem 0.5rem;
}

.quote-head-metrics strong { display: block; font-size: 0.95rem; color: var(--primary-dark); }
.quote-head-metrics span { font-size: 0.69rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-600); }

.quote-controls {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0.8rem;
  margin: 0.8rem 0;
}

.quote-controls label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.quote-controls input,
.quote-controls select,
.quote-request-form input,
.quote-request-form select,
.quote-request-form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.8rem;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-controls input:focus,
.quote-controls select:focus,
.quote-request-form input:focus,
.quote-request-form select:focus,
.quote-request-form textarea:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(27,94,160,0.12);
  outline: none;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-panel {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
}

.catalog-meta strong { color: var(--primary-dark); font-size: 0.92rem; }

.parameter-list {
  display: grid;
  gap: 0.75rem;
  max-height: 500px;
  overflow: auto;
  padding-right: 0.25rem;
}

.parameter-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 0.85rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.parameter-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-mid);
  box-shadow: var(--shadow-sm);
}

.parameter-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; }
.parameter-top h4 { font-size: 0.93rem; margin-bottom: 0.2rem; }
.parameter-top p { font-size: 0.82rem; max-width: none; }

.scope-chip {
  display: inline-flex;
  border: 1px solid rgba(1,58,110,0.18);
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

.parameter-meta { display: grid; gap: 0.2rem; margin-top: 0.45rem; }
.parameter-meta span { font-size: 0.82rem; color: var(--gray-600); }

.parameter-actions { margin-top: 0.6rem; display: flex; justify-content: flex-end; }
.parameter-actions .btn { min-width: 130px; justify-content: center; }

.quote-basket {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  padding: 1rem;
  position: sticky;
  top: 7rem;
  align-self: start;
  box-shadow: var(--shadow-xs);
}

.quote-basket h3 { margin-bottom: 0.3rem; }
.basket-note { font-size: 0.84rem; margin-bottom: 0.5rem; max-width: none; }

.basket-count {
  border: 1px solid rgba(1,58,110,0.18);
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.7rem;
}

.basket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-height: 250px;
  overflow: auto;
  margin-bottom: 0.6rem;
}

.basket-list li {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.55rem 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}

.basket-list li strong { color: var(--primary-dark); font-size: 0.88rem; }
.basket-list li small { color: var(--gray-600); }

.basket-list button {
  border: 1px solid #ecd7d7;
  background: #fff7f7;
  color: #9b3f3f;
  cursor: pointer;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.basket-clear { width: 100%; justify-content: center; }

.quote-request-form {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  padding: 1rem;
}

.quote-request-form h3 { margin-bottom: 0.35rem; }

.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.quote-form-grid label,
.quote-request-form > label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.quote-request-form textarea { resize: vertical; }

.quote-form-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  justify-content: space-between;
}

#quote-template-status { font-size: 0.84rem; color: var(--gray-600); }
#quote-template-status.error { color: #b33737; }
#quote-template-status.success { color: #0e6a43; }

.command-hint {
  border: 1px dashed rgba(27,94,160,0.28);
  border-radius: var(--radius);
  padding: 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.6rem;
}

/* ── 29. JOURNEY / TIMELINE ─────────────────────────────────── */
.journey-stack { display: grid; gap: 1.5rem; }

.journey-item {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 1.2rem;
  min-height: 38vh;
}

.journey-year {
  position: sticky;
  top: 7.5rem;
  align-self: start;
  font-size: clamp(2rem, 7vw, 4.8rem);
  color: var(--gray-200);
  font-family: "Barlow", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1;
}

.journey-story {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.journey-story img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 0.7rem;
}

/* ── 30. CONTACT ────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  position: relative;
  margin-bottom: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.1rem 0.85rem 0.55rem;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(27,94,160,0.1);
  outline: none;
}

.form-field label {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  color: var(--gray-400);
  font-size: 0.84rem;
  pointer-events: none;
  transition: transform 0.2s, color 0.2s;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.5rem) scale(0.85);
  color: var(--primary);
}

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

.error-msg { color: #bf3f3f; font-size: 0.8rem; margin-top: 0.2rem; display: none; }

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  filter: grayscale(0.15) saturate(0.9) contrast(1.03);
}

/* Contact info rich cards */
.contact-info-rich { display: flex; flex-direction: column; gap: 0.85rem; }

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.92);
}

.contact-info-row-body strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.contact-info-row-body p,
.contact-info-row-body a {
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.55;
  max-width: none;
}

.contact-info-row-body a:hover { color: var(--primary); }

/* ── 31. BLOGS ──────────────────────────────────────────────── */
.masonry { columns: 3 260px; column-gap: 1.2rem; }

.blog-card {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.blog-thumb { position: relative; overflow: hidden; }

.blog-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: blur(16px);
  transform: scale(1.06);
  transition: filter 0.4s, transform 0.4s;
}

.blog-thumb img.loaded { filter: blur(0); transform: scale(1); }
.blog-body { padding: 1.2rem; }
.blog-body h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 0.35rem; }

/* ── 32. STICKY SHOWCASE ────────────────────────────────────── */
.sticky-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }

.showcase-list .item {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.showcase-list .item.active {
  border-color: var(--primary-mid);
  background: var(--primary-light);
}

.showcase-media { position: sticky; top: 7.5rem; }

.showcase-media img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

/* ── 32b. SECTION HEAD ──────────────────────────────────────── */
.section-head {
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.section-head p {
  font-size: 0.96rem;
  color: var(--gray-600);
  max-width: 68ch;
}

/* ── 33. COLLECTION LIST ────────────────────────────────────── */
.collection-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}

.collection-list article {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.1rem 1.2rem;
}

.collection-list h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--primary-dark); }
.collection-list article p { font-size: 0.88rem; color: var(--gray-600); max-width: none; line-height: 1.6; }
.collection-list article img { height: 44px; width: auto; max-width: 100px; object-fit: contain; margin-bottom: 0.5rem; }

/* Accreditation logo grid */
.accred-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.accred-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.accred-logo-item img { height: 52px; width: auto; max-width: 90px; object-fit: contain; }
.accred-logo-item span { font-size: 0.7rem; font-weight: 600; color: var(--gray-600); letter-spacing: 0.03em; text-transform: uppercase; }

/* Bento card logo */
.bento-card-logo { height: 40px; width: auto; max-width: 80px; object-fit: contain; margin-bottom: 0.6rem; }

/* Plain list */
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.plain-list li {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  background: var(--gray-50);
  color: var(--text);
  font-size: 0.9rem;
}

/* QA stack */
.qa-stack { display: grid; gap: 0.65rem; margin-top: 0.55rem; }
.qa-card { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); padding: 1.1rem 1.2rem; }
.qa-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.qa-card p { font-size: 0.9rem; max-width: none; }

/* Module table */
.module-table-wrap {
  margin-top: 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: auto;
  background: var(--white);
}

.module-table { width: 100%; border-collapse: collapse; min-width: 640px; }

.module-table th,
.module-table td {
  border-bottom: 1px solid var(--gray-100);
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.87rem;
  vertical-align: top;
}

.module-table th {
  background: var(--gray-50);
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.73rem;
}

/* Command palette */
.command-palette {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  background: rgba(1,37,80,0.4);
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  backdrop-filter: blur(3px);
}

.command-palette.open { display: flex; }

.command-box {
  width: min(760px, 92vw);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.command-box input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem;
  font-size: 1rem;
  outline: none;
  font: inherit;
}

.command-results { max-height: 320px; overflow: auto; }

.command-results button {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  text-align: left;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}

.command-results button:hover { background: var(--gray-50); }

/* ── 34. ISO BADGE (util bar compat) ────────────────────────── */
.iso-badge {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.67rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
}

/* ── 35. PAGE INTRO ─────────────────────────────────────────── */
.page-intro { padding: 0.9rem; }
.page-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 0.35rem; line-height: 1.2; color: var(--primary-dark); }
.page-intro > p { font-size: 0.95rem; color: var(--gray-600); }

/* ── 36. REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── 37. FOOTER ─────────────────────────────────────────────── */
.mega-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
}

.mega-inner {
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-brand {}

.footer-brand .brand {
  margin-bottom: 0.75rem;
}

.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text span { color: rgba(255,255,255,0.5); }

.footer-brand > p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: none;
}

.footer-cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-cert-row .cert-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.mega-footer h4 {
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.mega-footer a,
.mega-footer address p {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.55;
  font-style: normal;
}

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

.mega-footer p {
  color: rgba(255,255,255,0.62);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: none;
}

.mega-footer ul { list-style: none; margin: 0; padding: 0; }
.mega-footer ul li { margin-bottom: 0.45rem; }

.footer-newsletter { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; }

.newsletter-inner {
  width: min(1280px, 94vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.newsletter-inner > div h4 {
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.newsletter-inner > div p { color: rgba(255,255,255,0.55); font-size: 0.84rem; max-width: none; }

.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.newsletter-form input[type="email"] {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  min-width: 220px;
}

.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.38); }
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
}

.mega-legal {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
  color: rgba(255,255,255,0.38);
  font-size: 0.78rem;
}

.mega-legal a { color: rgba(255,255,255,0.55); text-decoration: none; display: inline; margin: 0 0.4rem; }
.mega-legal a:hover { color: var(--white); }

/* ── 38. RESPONSIVE ─────────────────────────────────────────── */

/* Nav collapses to hamburger at 1380px — full nav needs ~1380px+ to breathe */
@media (max-width: 1380px) {
  .header-cta { display: none; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-top: 3px solid var(--accent);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    padding: 0.6rem 1.25rem 1rem;
    z-index: 500;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .site-nav.show { display: flex; }

  .menu-toggle { display: flex; }

  .site-nav > a,
  .nav-item > .nav-parent {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
  }

  .site-nav > a:last-child { border-bottom: none; }

  .nav-item { width: 100%; flex-direction: column; align-items: stretch; }

  .nav-parent::after {
    margin-left: auto;
    transition: transform 0.2s;
    flex-shrink: 0;
  }

  .nav-item.open > .nav-parent::after { transform: rotate(180deg); }

  /* Dropdowns hidden by default on mobile — toggled open via .open class (JS) */
  .dropdown-menu {
    display: none;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--gray-200);
    border-radius: 0;
    padding: 0.4rem 0 0.5rem 0.75rem;
    background: var(--gray-50);
    flex-direction: column;
    margin-bottom: 0.25rem;
  }

  /* Disable desktop hover/focus-within on mobile */
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu { display: none !important; }

  .nav-item.open .dropdown-menu { display: flex !important; }

  .nav-item.open > .nav-parent {
    color: var(--primary);
    background: var(--primary-light);
  }

  .dropdown-menu a {
    font-size: 0.78rem;
    color: var(--gray-600);
    padding: 0.6rem 0.9rem;
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    text-decoration: none;
  }

  .dropdown-menu a:active { color: var(--primary); background: var(--primary-light); }
}

@media (max-width: 1200px) {
  .mega-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .sticky-showcase,
  .journey-item,
  .contact-layout,
  .quote-layout { grid-template-columns: 1fr; }

  .showcase-media { position: static; }
  .test-grid { grid-template-columns: repeat(2, 1fr); }
  .services-stack, .collection-list { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .edge-stats { grid-template-columns: 1fr; }
  .quality-inner { grid-template-columns: 1fr 1fr; }
  .quote-controls { grid-template-columns: 1fr; }
  .quote-builder-head { grid-template-columns: 1fr; }
  .quote-head-metrics { grid-template-columns: repeat(3, 1fr); }
  .quote-basket { position: static; }
  .section-jump-wrap { top: 5rem; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .about-split { grid-template-columns: 1fr; }
  .about-split img { height: 280px; }
  .accordion-wrapper { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  /* util bar: stack certs above contact info */
  .util-bar-inner { flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.45rem 0; min-height: auto; }
  .util-certs { justify-content: center; flex-wrap: wrap; gap: 0.35rem; }
  .util-certs .cert-badge { font-size: 0.6rem; padding: 0.14rem 0.5rem; }
  .util-contact { justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
  .util-contact a { font-size: 0.65rem; }
  .util-sep { display: none; } /* replace pipe separators with flex gap */

  /* hero: pull trust strip into normal flow so it sits BELOW hero content */
  .hero { min-height: auto; align-items: start; }
  .hero-content { padding: clamp(2rem, 7vw, 3.5rem) 0 2rem; }
  .hero-trust { position: relative; bottom: auto; z-index: 1; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero .sub { font-size: 0.92rem; }
  .hero-trust-inner { flex-wrap: wrap; }
  .trust-item { flex: none; width: 50%; border-right: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
  .trust-item:nth-child(2n) { border-right: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-actions, .btn-actions { flex-direction: column; align-items: stretch; }
  .page-actions .btn, .btn-actions .btn { width: 100%; justify-content: center; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-span-4, .bento-span-5, .bento-span-6, .bento-span-7, .bento-span-8 { grid-column: span 1; }
  .test-grid, .quote-form-grid { grid-template-columns: 1fr; }
  .quality-inner { grid-template-columns: 1fr; }
  .mega-inner { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input[type="email"] { min-width: 0; flex: 1; }
  .pillar-grid, .services-stack { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { flex-direction: column; gap: 1.5rem; }
  .testimonial-inner { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .accordion-wrapper { grid-template-columns: 1fr; }
  [id] { scroll-margin-top: 5rem; }
  .section-jump-wrap { top: 4.5rem; }
  .section-jump { border-radius: var(--radius-lg); }
  .catalog-meta { flex-direction: column; align-items: flex-start; }
  .quote-form-actions .btn { width: 100%; }
  .page-hero { padding: clamp(2rem, 6vw, 3.5rem) 0; }
  .page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .section-header h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  h3 { font-size: clamp(1.05rem, 4vw, 1.3rem); }
  .contact-layout { gap: 1.25rem; }
  .quality-strip { padding: 1.5rem 0; }
  .quality-inner { gap: 0.75rem; }
  .quality-item { padding: 1rem 1.25rem; }
  .surface.page-intro { padding: 1.5rem; }
  .bento-card { padding: 1.25rem; }
  .cta-band { padding: 2rem 0; }
  .cta-band h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
}

@media (max-width: 480px) {
  .trust-item strong { font-size: 0.72rem; }
  .trust-item span { font-size: 0.62rem; }
  .brand img { width: 36px; height: 36px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text span { display: none; }
  .header-inner { min-height: 60px; }
  .site-nav { top: 60px; max-height: calc(100vh - 60px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { width: 100%; border-right: none; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .footer-cert-row { flex-wrap: wrap; gap: 0.4rem; }
}

@media (min-width: 481px) and (max-width: 1380px) {
  .testimonial-inner { grid-template-columns: 1fr 1fr; }
}
