/* ============================================
   GPW — Global Precision Works
   Industrial-Precision Design System
   ============================================ */

/* --- CSS Variables (Brand Tokens) --- */
:root {
  /* Brand Colors — official web sRGB values (brand-locked) */
  --teal: #095F5C;       /* rgba(9,95,92)    — principal / base */
  --coral: #F27257;      /* rgba(242,114,87) — CTA / accent */
  --deep-blue: #205364;  /* rgba(32,83,100)  — secondary / support */
  --lime: #A6D98E;       /* rgba(166,217,142)— decorative */

  /* Extended palette — functional shades of the locked colors (not new brand colors) */
  --teal-light: #4C8987;
  --teal-dark: #074845;
  --coral-light: #F6967C;
  --coral-dark: #E0613F;
  --deep-blue-light: #356A80;
  --lime-muted: #C4E3B4;

  /* Neutrals — cooled to a white-dominant canvas (#19 surface refresh).
     Warm cream is retired as the global surface; it survives only as the
     rare FAQ accent in --surface-cream-accent. */
  --white: #FFFFFF;
  --off-white: #F4F6F7;   /* cool near-white — primary light surface */
  --cream: #F4F6F7;       /* alias of the cool surface (warm cream moved to --surface-cream-accent) */
  --surface-cream-accent: #FCF3EC;  /* the ONE warm-cream accent — FAQ sections only */
  --warm-gray: #EDEFF1;   /* cool light fill (table stripes, hovers) */
  --light-gray: #E2E6E9;  /* cool hairline */
  --warm-stone: #CBD1D6;  /* cool divider */
  --mid-gray: #646A76;    /* darkened so muted text passes AA on light (>=4.5:1) */
  --dark-gray: #374151;
  --charcoal: #1F2937;
  --near-black: #111827;
  --ink: #1A1A1A;         /* manual: text only */
  --military: #526255;    /* secondary surface (rgba 82,98,85) */

  /* Semantic */
  --primary: var(--teal);
  --accent: var(--coral);
  --secondary: var(--deep-blue);
  --highlight: var(--lime);

  /* Typography */
  --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;  /* #19: Trirong removed (founder-approved web direction; reversible in one token) */
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;  /* #19: data/specs only — never body or headlines */

  /* Type Scale */
  --text-xs: clamp(0.8rem, 0.75rem + 0.25vw, 0.85rem);
  --text-sm: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 0.75vw, 1.75rem);
  --text-3xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-4xl: clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
  --text-5xl: clamp(2.2rem, 1.6rem + 3vw, 3.25rem);
  --text-6xl: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);

  /* Spacing */
  --space-2xs: 0.125rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 10rem;

  /* Layout */
  --max-width: 1240px;
  --header-height: 72px;                 /* audit 2026-06-08: 96->72 (slim-header band; clears 44px CTA + air) */
  --utility-bar-height: 0px;             /* utility bar removed; zeroed so --top-offset collapses to header height */
  --top-offset: calc(var(--header-height) + var(--utility-bar-height));
  --section-padding: clamp(3rem, 2rem + 4vw, 5rem);

  /* Borders & Radius — near-square, industrial (#19) */
  --radius-xs: 1px;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --radius-full: 9999px;

  /* Shadows — flat + cool (#19 surface refresh) */
  --shadow-xs: 0 1px 1px rgba(16, 40, 48, 0.04);
  --shadow-sm: 0 1px 2px rgba(16, 40, 48, 0.06);
  --shadow-md: 0 2px 4px rgba(16, 40, 48, 0.06);
  --shadow-lg: 0 4px 10px rgba(16, 40, 48, 0.08);
  --shadow-xl: 0 8px 18px rgba(16, 40, 48, 0.10);
  /* Glow shadows kept flat for a corporate, restrained look */
  --shadow-glow-coral: var(--shadow-md);
  --shadow-glow-teal: var(--shadow-md);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out-expo);
  --transition-base: 300ms var(--ease-out-expo);
  --transition-slow: 500ms var(--ease-out-expo);
  --transition-reveal: 800ms var(--ease-out-expo);

  /* ---- Refresh: semantic tokens (surface <-> guaranteed-legible on-color) ---- */
  --surface-brand: var(--teal);          --on-brand: var(--white);      /* 7.49:1 */
  --surface-secondary: var(--deep-blue); --on-secondary: var(--white);  /* 8.46:1 */
  --surface-accent: var(--coral);        --on-accent: var(--ink);       /* 6.07:1 — NEVER white on coral */
  --surface-sunken: var(--cream);        --on-sunken: var(--ink);
  --text-heading: #0F2B2A;               /* near-black teal */
  --text-body: var(--dark-gray);
  --text-muted: var(--mid-gray);
  --accent-on-light: var(--teal);        /* accent TEXT on light = teal (coral text fails AA) */
  --accent-on-dark: var(--lime);
  --rule-accent: var(--coral);           /* graphic line/fill only, never small text */
  --focus-color: var(--teal);            /* 7.49 on white; coral fails the 3:1 focus minimum */
  /* Motion durations (token-driven; zeroed under reduced-motion) */
  --dur-fast: 150ms; --dur-base: 300ms; --dur-slow: 500ms;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--top-offset);
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.15;
  color: var(--near-black);
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-4xl); font-weight: 900; letter-spacing: -0.03em; }
.hero h1 { font-size: clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem); line-height: 1.1; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin-bottom: var(--space-md); }

/* Label / eyebrow — Lato accent (#19: Trirong removed; uppercase + tracking kept).
   font-weight 600 is loaded via the Lato <head> link so this never faux-bolds.
   Default color = teal: coral text on light fails AA (2.87:1). */
.label {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-block;
  margin-bottom: var(--space-md);
  color: var(--accent-on-light);
}

/* coral eyebrow text fails AA on light (2.87:1) -> teal on light, lime on any dark band (always legible) */
.label--coral { color: var(--accent-on-light); }
.section--dark .label--coral,
.section--deep .label--coral,
.section--teal .label--coral,
.faq-split .label--coral,
.cta-section .label--coral,
.footer .label--coral { color: var(--lime); }
.label--lime { color: var(--lime); }
.label--teal { color: var(--teal); }
.label--white { color: rgba(255,255,255,0.7); }

/* On dark/brand sections a bare eyebrow switches to lime for legibility */
.section--dark .label:not([class*="label--"]),
.section--deep .label:not([class*="label--"]),
.section--teal .label:not([class*="label--"]) { color: var(--accent-on-dark); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section--dark {
  background-color: var(--near-black);
  color: var(--white);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section--deep {
  background-color: var(--deep-blue);
  color: var(--white);
}
.section--deep h2,
.section--deep h3,
.section--deep h4 { color: var(--white); }

.section--light {
  background-color: var(--off-white);
  border-top: 1px solid var(--light-gray);   /* #19: faint cool hairline structures stacked light sections */
}

/* #19 — the ONE warm-cream accent surface, applied to FAQ sections only.
   Wins over .section--light when both classes are present (defined later). */
.section--cream {
  background-color: var(--surface-cream-accent);
}

/* The cream accent in practice: any FAQ section built on the LIGHT FAQ
   components (.faq-list or .cm-faq) gets the warm accent. The dark
   .faq-split FAQ contains neither component, so it stays dark — exactly the
   intent. Specificity (0,1,1) overrides page-level .about-faq/.rfq-faq
   backgrounds; a FAQ section that sets its background via an inline style=
   attribute is handled at the markup instead. */
section:has(.faq-list),
section:has(.cm-faq__item) {
  background-color: var(--surface-cream-accent);
}

.section--teal {
  background-color: var(--teal);
  color: var(--white);
}
.section--teal h2,
.section--teal h3 { color: var(--white); }

/* Section divider line */
.section__divider {
  width: 48px;
  height: 3px;
  background: var(--coral);
  margin-bottom: var(--space-2xl);
}

.section__divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.75rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--coral);
  color: var(--on-accent);          /* ink — white on coral fails AA (2.87:1), ink = 6.07:1 */
  border-color: var(--coral);
}
.btn--primary:hover {
  background-color: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-coral);
}

.btn--secondary {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn--secondary:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-teal);
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
  background-color: var(--white);
  color: var(--teal);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline-dark:hover {
  background-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

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

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

/* Button arrow icon */
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}
.btn:hover svg {
  transform: translateX(3px);
}

/* --- Interactive Button — simplified corporate style --- */
.btn--interactive {
  position: relative;
  border-radius: var(--radius-sm);
  border: 2px solid var(--coral);
  background-color: var(--coral);
  color: var(--on-accent);
  padding: 0.9rem 2rem;
  cursor: pointer;
  min-width: auto;
  white-space: nowrap;
  transition: background-color 200ms var(--ease-out-expo), border-color 200ms var(--ease-out-expo);
}

.btn--interactive:hover {
  background-color: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--white);
}

/* Text — always visible, no slide animation */
.btn--interactive .btn__text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Hover text + arrow — hidden (legacy elements kept for markup compatibility) */
.btn--interactive .btn__hover,
.btn--interactive .btn__circle {
  display: none;
}

/* Add arrow to the button text */
.btn--interactive .btn__text::after {
  content: '→';
  display: inline-block;
  margin-left: var(--space-sm);
  transition: transform 200ms var(--ease-out-expo);
  font-weight: 400;
}

.btn--interactive:hover .btn__text::after {
  transform: translateX(4px);
}

/* Variant: outline on light backgrounds (teal) */
.btn--interactive.btn--interactive-teal {
  background-color: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn--interactive.btn--interactive-teal:hover {
  background-color: var(--teal);
  color: var(--white);
}

/* Variant: outline on dark backgrounds (white border) */
.btn--interactive.btn--interactive-outline {
  background-color: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn--interactive.btn--interactive-outline:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--teal);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: var(--utility-bar-height);
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1050;
  transition: all var(--transition-base);
}

/* When the utility bar is not present (legacy pages), header sits at top */
body:not(:has(.utility-bar)) .header {
  top: 0;
}

/* Transparent on load, solid on scroll */
.header--top {
  background-color: transparent;
}
.header--top .nav__link { color: rgba(255,255,255,0.85); }
.header--top .nav__link:hover,
.header--top .nav__link--active { color: var(--white); }
.header--top .header__logo-white { opacity: 1; }
.header--top .header__logo-teal { opacity: 0; }
.header--top .nav__trigger { color: rgba(255,255,255,0.85); }
.header--top .nav__trigger:hover { color: var(--white); }
.header--top .nav__toggle span { background-color: var(--white); }

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header--scrolled .nav__link { color: var(--dark-gray); }
.header--scrolled .nav__link:hover,
.header--scrolled .nav__link--active { color: var(--teal); }
.header--scrolled .header__logo-white { opacity: 0; }
.header--scrolled .header__logo-teal { opacity: 1; }

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  height: 44px;                          /* audit 2026-06-08: 80->44 (~60% of 72px bar, restores breathing room) */
}
.header__logo img {
  height: 44px;
  width: auto;
  transition: opacity var(--transition-base);
}
/* White logo visible on transparent header, teal hidden */
.header__logo-white { opacity: 1; mix-blend-mode: screen; }
.header__logo-teal { opacity: 0; position: absolute; top: 0; left: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: nowrap;
}
.nav__close {
  display: none;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
  white-space: nowrap;
}

.nav__cta {
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;                      /* audit 2026-06-08: WCAG 2.5.5 AAA / Apple 44pt for the primary RFQ target */
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--coral);
  transition: width var(--transition-base);
}
.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Dropdown trigger */
.nav__item {
  position: relative;
}

.nav__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: inherit;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav__trigger-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
  opacity: 0.5;
}

.nav__item:hover .nav__trigger-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel — white style */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 380px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);   /* #16: align nav mega-dropdown to flat-cool --shadow-* family */
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--light-gray);
  z-index: 100;
  overflow: hidden;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items container */
.nav__dropdown-items {
  padding: var(--space-md);
}

/* Each dropdown item — icon + text layout */
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav__dropdown-item:hover {
  background: var(--off-white);
}

/* Icon circle */
.nav__dropdown-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.nav__dropdown-item:hover .nav__dropdown-icon {
  background: var(--teal);
}

.nav__dropdown-icon svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  transition: color var(--transition-fast);
}

.nav__dropdown-item:hover .nav__dropdown-icon svg {
  color: var(--white);
}

/* Text content */
.nav__dropdown-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--near-black);
  display: block;
  line-height: 1.3;
}

.nav__dropdown-desc {
  font-size: var(--text-xs);
  color: var(--mid-gray);
  font-weight: 400;
  display: block;
  line-height: 1.4;
  margin-top: 2px;
}

/* Bottom bar with CTAs */
.nav__dropdown-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--light-gray);
  background: var(--off-white);
}

.nav__dropdown-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--mid-gray);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav__dropdown-footer a:hover {
  color: var(--teal);
  background: var(--warm-gray);
}

.nav__dropdown-footer a + a {
  border-left: 1px solid var(--light-gray);
}

.nav__dropdown-footer svg {
  width: 16px;
  height: 16px;
  color: var(--coral);
}

/* Scrolled state: dropdown stays dark */
.header--scrolled .nav__trigger { color: var(--dark-gray); }
.header--scrolled .nav__trigger:hover { color: var(--teal); }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  position: relative;
  z-index: 1100;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--dark-gray);
  margin: 5px 0;
  transition: all var(--transition-base);
  border-radius: 1px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.03em; margin-bottom: 0.75rem; }
.breadcrumb__link { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.breadcrumb__link:hover { color: var(--coral); }
.breadcrumb__sep { color: rgba(255,255,255,0.4); margin: 0 0.4rem; }
.breadcrumb__current { color: rgba(255,255,255,0.55); }

/* Hero-overlay variant: breadcrumb positioned over the hero (replaces per-page inline styles) */
.breadcrumb--hero-overlay {
  position: absolute;
  top: calc(var(--top-offset) + var(--space-md));
  left: var(--space-xl);
  width: 100%;
  text-align: left;
  z-index: 3;
}

/* ============================================
   SCROLLSPY SIDEBAR
   ============================================ */
.scrollspy {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scrollspy.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scrollspy__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 0 var(--space-xl);
}

.scrollspy__link {
  position: relative;
  display: block;
  padding: 9px 20px 9px 16px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 400;   /* #16: snap to loaded Lato weight (500 faux-renders) */
  letter-spacing: 0.01em;
  color: var(--near-black);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(255,255,255,0.8), 0 0 8px rgba(255,255,255,0.5);
}

.scrollspy__link:hover {
  color: var(--teal);
}

.scrollspy__link.is-active {
  color: var(--teal);
  font-weight: 900;   /* #16: snap to loaded Lato weight (800 faux-renders ~900) */
  border-left: 4px solid var(--teal);
  text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,0.6);
}

/* Dark background variant */
.scrollspy.on-dark .scrollspy__link {
  color: rgba(255,255,255,0.85);
  text-shadow: none;
}

.scrollspy.on-dark .scrollspy__link:hover {
  color: #ffffff;
}

.scrollspy.on-dark .scrollspy__link.is-active {
  color: var(--coral);
  border-left-color: var(--coral);
  text-shadow: none;
}

/* Mobile: horizontal sticky bar at bottom */
@media (max-width: 1024px) {
  .scrollspy {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    border-top: 1px solid var(--light-gray);
    background: var(--white);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    transform: none;
  }
  .scrollspy__nav {
    flex-direction: row;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scrollspy__nav::-webkit-scrollbar { display: none; }
  .scrollspy__link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 14px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .scrollspy__link.is-active {
    border-left: none;
    border-bottom: 3px solid var(--teal);
    background: rgba(35,85,90,0.04);
  }
}

/* Hide scrollspy on very small screens */
@media (max-width: 480px) {
  .scrollspy { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-4xl)) var(--space-xl) var(--space-4xl);
}

.hero__content {
  max-width: 580px;
}

.hero__label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--lime);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-xl);
  line-height: 1.08;
}

.hero__tagline {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--lime);
  white-space: nowrap;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  font-weight: 300;
}

.hero__trust {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.hero__trust-item {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 400;
}

.hero__trust-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--coral);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero image placeholder */
.hero__media {
  position: relative;
}

.hero__image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

/* Decorative corner marks on hero image */
.hero__image-frame::before,
.hero__image-frame::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--coral);
  border-style: solid;
  z-index: 3;
}
.hero__image-frame::before {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
}
.hero__image-frame::after {
  bottom: -4px;
  right: -4px;
  border-width: 0 2px 2px 0;
}

/* Floating stat badge on hero */
.hero__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  box-shadow: var(--shadow-xl);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}
.hero__badge-number {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
}
.hero__badge-text {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  letter-spacing: 0.02em;
}

/* --- Image Placeholder (global) --- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.25);
  font-size: var(--text-xs);
  text-align: center;
  padding: var(--space-lg);
  letter-spacing: 0.02em;
}

.img-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

.img-placeholder--light {
  background-color: var(--off-white);
  border-color: var(--light-gray);
  color: var(--mid-gray);
}

/* ============================================
   SECTION: DIVISIONS
   ============================================ */
.divisions__header {
  max-width: 560px;
  margin-bottom: var(--space-3xl);
}

.divisions__header p {
  color: var(--mid-gray);
  font-size: var(--text-lg);
  font-weight: 300;
}

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

.division-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: all var(--transition-base);
}

.division-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}


.division-card__image {
  height: 200px;
  position: relative;
}

.division-card__image .img-placeholder--light {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--light-gray);
  min-height: 200px;
  height: 200px;
}

.division-card__body {
  padding: var(--space-2xl);
}

.division-card__number {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--accent-on-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.division-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.division-card__subtitle {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  font-weight: 400;
  margin-bottom: var(--space-xl);
}

.division-card__text {
  font-size: var(--text-sm);
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.division-card__features {
  margin-bottom: var(--space-xl);
}

.division-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--dark-gray);
  line-height: 1.5;
}

.division-card__feature-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--off-white);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.division-card__feature-icon svg {
  width: 10px;
  height: 10px;
  color: var(--teal);
}

.division-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-on-light);
  transition: gap var(--transition-base);
}
.division-card__link:hover {
  gap: var(--space-md);
  color: var(--coral-dark);
}
.division-card__link svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   SECTION: NEARSHORE ADVANTAGE
   ============================================ */
.nearshore__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.nearshore__content {
  max-width: 480px;
}

.nearshore__content h2 {
  margin-bottom: var(--space-lg);
}

.nearshore__content > p {
  color: var(--mid-gray);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.stat-card__number {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-card__label {
  font-size: var(--text-xs);
  color: var(--mid-gray);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.nearshore__media {
  position: relative;
}

.nearshore__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
}

/* ============================================
   SECTION: INDUSTRIES
   ============================================ */
.industries__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.industries__header p {
  color: var(--mid-gray);
  font-size: var(--text-lg);
  font-weight: 300;
}

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

.industry-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--light-gray);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  transition-delay: 0ms !important;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.industry-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  color: inherit;
}

.industry-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-lg);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-card__icon svg {
  width: 100%;
  height: 100%;
}

.industry-card:hover .industry-card__icon {
  color: var(--coral);
}

.industry-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--near-black);
  line-height: 1.3;
}

.industry-card__desc {
  font-size: var(--text-xs);
  color: var(--mid-gray);
  line-height: 1.5;
  flex-grow: 1;
}

.industry-card__arrow {
  margin-top: var(--space-md);
  width: 20px;
  height: 20px;
  color: var(--light-gray);
  transition: all var(--transition-base);
}

.industry-card:hover .industry-card__arrow {
  color: var(--coral);
  transform: translateX(4px);
}

/* ============================================
   SECTION: WHY GPW (differentiators)
   ============================================ */

/* Subtle texture for dark section */
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.why__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-4xl);
  position: relative;
}

.why__header p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-lg);
  font-weight: 300;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  position: relative;
}

.diff-card {
  padding: var(--space-2xl);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.diff-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

.diff-card__number {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--coral);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  display: block;
}

.diff-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.diff-card__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   SECTION: FINAL CTA
   ============================================ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Gradient glow behind CTA */
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(237, 131, 94, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: var(--space-xl);
  position: relative;
}

.cta-section > .container > p {
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.cta-section .btn-group {
  justify-content: center;
  margin-bottom: 4rem;
}

.cta__reassurance {
  margin-top: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   EMS PAGE: TWO-COLUMN LAYOUT
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.two-col__content h2 {
  margin-bottom: var(--space-lg);
}

.two-col__content p {
  color: var(--mid-gray);
  font-size: var(--text-base);
  line-height: 1.7;
  font-weight: 300;
}

.definition-block {
  background: var(--off-white);
  border-left: 3px solid var(--coral);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.definition-block p {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--dark-gray);
}

/* ============================================
   EMS PAGE: SERVICES LIST
   ============================================ */
.services__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-4xl);
}

.services__header p {
  color: var(--mid-gray);
  font-size: var(--text-lg);
  font-weight: 300;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.service-row--reverse {
  direction: ltr;
}

.service-row--reverse .service-row__content {
  order: 2;
}

.service-row--reverse .service-row__image {
  order: 1;
}

.service-row--reverse .service-row__number {
  order: 0;
}

.service-row__number {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--accent-on-light);
  letter-spacing: 0.15em;
  padding-top: var(--space-xs);
}

.service-row__content h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.service-row__subtitle {
  font-size: var(--text-sm);
  color: var(--accent-on-light);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.service-row__content > p {
  font-size: var(--text-base);
  color: var(--mid-gray);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: var(--space-xl);
}

.service-row__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-on-light);
  transition: gap var(--transition-base);
}
.service-row__link:hover {
  gap: var(--space-md);
  color: var(--coral-dark);
}
.service-row__link svg {
  width: 14px;
  height: 14px;
}

.service-row__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

/* ============================================
   EMS PAGE: STAT CARDS (DARK)
   ============================================ */
.nearshore-ems__header {
  max-width: 620px;
  margin-bottom: var(--space-3xl);
}

.nearshore-ems__header h2 {
  margin-bottom: var(--space-lg);
}

.nearshore-ems__header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
}

.nearshore-ems__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.stat-card-dark {
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.stat-card-dark:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card-dark__number {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-card-dark__label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ============================================
   EMS PAGE: QUALITY CARDS
   ============================================ */
.quality__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
}

.quality__header p {
  color: var(--mid-gray);
  font-size: var(--text-lg);
  font-weight: 300;
}

.quality-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.quality-card {
  width: calc(33.333% - var(--space-xl));
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  transition-delay: 0ms !important;
}

.quality-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.quality-card__icon {
  width: 40px;
  height: 40px;
  color: var(--teal);
  margin-bottom: var(--space-lg);
}

.quality-card__icon svg {
  width: 100%;
  height: 100%;
}

.quality-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.quality-card p {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  line-height: 1.7;
  margin: 0;
}

.certifications__label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mid-gray);
  margin-bottom: var(--space-sm);
}

.certifications__list {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
}

/* ============================================
   EMS PAGE: FAQ ACCORDION
   ============================================ */
.faq__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--light-gray);
}

.faq-item__question {
  padding: var(--space-xl) 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--near-black);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--teal);
}

/* Custom arrow indicator */
.faq-item__question::after {
  content: '+';
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__question::after {
  content: '−';
}

/* Hide default details marker */
.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__answer {
  padding: 0 0 var(--space-xl);
}

.faq-item__answer p {
  font-size: var(--text-base);
  color: var(--mid-gray);
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}

/* ============================================
   FAQ — SPLIT LAYOUT ACCORDION
   ============================================ */
.faq-split {
  padding: var(--space-4xl) 0;
  background: var(--near-black);
}

.faq-split__grid {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: var(--space-4xl);
  align-items: start;
}

.faq-split__title h2 {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0;
  position: sticky;
  top: 120px;
}

.faq-split__list {
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Individual accordion item */
.faq-accord {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-accord__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  transition: color 0.25s ease;
}

.faq-accord__trigger:hover {
  color: var(--coral);
}

/* Plus / X icon */
.faq-accord__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-accord__icon::before,
.faq-accord__icon::after {
  content: '';
  position: absolute;
  background: var(--teal);
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Horizontal bar */
.faq-accord__icon::before {
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

/* Vertical bar — rotates to form X */
.faq-accord__icon::after {
  top: 50%;
  left: 50%;
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

/* Open state: rotate vertical bar 90° (forms minus/line) */
.faq-accord.is-open .faq-accord__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-accord.is-open .faq-accord__icon::before {
  background: var(--coral);
}

/* Panel — collapsible with max-height */
.faq-accord__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accord__panel p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
  padding: 0 0 var(--space-xl);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .faq-split__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .faq-split__title h2 {
    position: static;
    font-size: 2rem;
  }
}

/* Nav CTA button style */
.nav__link--cta {
  background-color: #B85A30;
  color: var(--white) !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-xs) !important;
}
.nav__link--cta:hover {
  background-color: var(--coral-dark);
}
.nav__link--cta::after {
  display: none;
}

/* ============================================
   RESPONSIVE — EMS PAGE
   ============================================ */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .service-row { grid-template-columns: auto 1fr; }
  .service-row__image { display: none; }
  .nearshore-ems__stats { grid-template-columns: repeat(3, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row__number { margin-bottom: calc(-1 * var(--space-md)); }
  .service-row--reverse .service-row__content,
  .service-row--reverse .service-row__image,
  .service-row--reverse .service-row__number { order: unset; }
  .nearshore-ems__stats { grid-template-columns: 1fr 1fr; }
  /* Quality cards: horizontal swipe carousel on mobile */
  .quality-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-md) !important;
    padding-bottom: var(--space-md);
    scrollbar-width: none;
    justify-content: flex-start !important;
  }
  .quality-grid::-webkit-scrollbar {
    display: none;
  }
  .quality-card {
    flex: 0 0 80vw !important;
    width: 80vw !important;
    min-width: 80vw !important;
    max-width: 80vw !important;
    scroll-snap-align: center;
    padding: var(--space-xl) !important;
  }
}

@media (max-width: 480px) {
  .nearshore-ems__stats { grid-template-columns: 1fr; }
  .ems-stats-bar__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--near-black);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand { max-width: 280px; }

.footer__logo {
  display: block;
  margin-bottom: var(--space-lg);
}
.footer__logo img {
  height: 64px;
  width: auto;
  mix-blend-mode: screen;
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,0.7);
}

.footer__contact-line {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer__contact-line a {
  color: var(--coral);
  transition: color var(--transition-fast);
}
.footer__contact-line a:hover { color: var(--coral-light); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer__contact-item:hover { color: var(--coral); }

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-2xs) 0;
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--coral); }

/* Column-based footer (used in CM + EMS pages) */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  padding: var(--space-2xs) 0;
  transition: color var(--transition-fast);
  text-decoration: none;
}
.footer__link:hover { color: var(--coral); }

.footer__brand .footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-top: var(--space-md);
  color: rgba(255,255,255,0.6);
  max-width: 260px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__bottom a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}
.footer__bottom a:hover { color: rgba(255,255,255,0.6); }

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   2026-06-10 — No-JS fallback: the hidden state (opacity:0) only applies
   under html.js (set by an inline <script> in each page head). If JS never
   runs (blocked by corporate policy, crawler edge cases), content stays
   visible instead of opacity:0 forever. Note: .js .reveal (0,2,0) outranks
   a bare .reveal--visible (0,1,0), so the .js-scoped --visible rules below
   are mandatory for reveals to show at all.
   Known residual risk (accepted 2026-06-10): the inline script sets html.js,
   but the --visible classes come from js/main.js. If main.js specifically
   fails to load (404/CSP/network) while inline scripts run, reveals stay
   hidden. Strictly better than the old unconditional opacity:0, but not
   zero-risk — revisit if main.js ever moves to a third-party host.
   ============================================ */
.reveal {
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}

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

.js .reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }
.reveal-delay-7 { transition-delay: 700ms; }
.reveal-delay-8 { transition-delay: 800ms; }

/* Hero-specific entrance
   2026-06-10 — Same no-JS fallback as .reveal (hidden state gated on html.js).
   Also sped up: 1s→0.8s durations + delays compressed to 100–600ms so the
   hero finishes entering at ~1.4s instead of ~2.2s. */
.hero-reveal {
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.js .hero-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.hero-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.js .hero-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-reveal-delay-1 { transition-delay: 100ms; }
.hero-reveal-delay-2 { transition-delay: 200ms; }
.hero-reveal-delay-3 { transition-delay: 300ms; }
.hero-reveal-delay-4 { transition-delay: 400ms; }
.hero-reveal-delay-5 { transition-delay: 500ms; }
.hero-reveal-delay-6 { transition-delay: 600ms; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__media { display: none; }

  .hero__content { max-width: 600px; }

  .divisions__grid { grid-template-columns: 1fr; }

  .nearshore__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .nearshore__media { order: -1; }

  .nearshore__image-frame { aspect-ratio: 16/9; }

  .industry-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;               /* audit 2026-06-08: 88->64 (mobile slim header) */
    --section-padding: clamp(3rem, 2rem + 4vw, 5rem);
  }

  .container { padding: 0 var(--space-lg); }

  /* Logo scales to fit mobile header */
  .header__logo,
  .header__logo img {
    height: 36px;                        /* audit 2026-06-08: 56->36 (fits 64px mobile bar with air) */
  }

  /* Hide breadcrumbs on mobile */
  .breadcrumb {
    display: none !important;
  }

  /* FAQ answer padding for readability */
  .faq-item__answer {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  /* Hero buttons min touch target */
  .btn {
    min-height: 44px;
  }

  /* Hamburger — larger for mobile touch */
  .nav__toggle span {
    width: 33px;
    height: 3px;
    margin: 7px 0;
  }

  /* Close button inside nav panel */
  .nav__close {
    display: block;
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 10;
  }
  .nav__close svg {
    width: 32px;
    height: 32px;
    color: var(--dark-gray);
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-sm);
    transform: translateX(100%);
    /* visibility keeps the parked drawer out of the document scroll width
       (scrollWidth > clientWidth at 375px) and out of the tab order; the
       0s delay lets the slide-out transform finish before it hides. */
    visibility: hidden;
    transition: transform var(--transition-base), visibility 0s var(--transition-base);
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999;
  }

  .nav--open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition-base), visibility 0s;
  }

  /* Always dark text in mobile nav panel */
  .nav--open .nav__link { color: var(--dark-gray) !important; }
  .nav--open .nav__link:hover { color: var(--teal) !important; }

  .nav__toggle { display: block; }

  /* Hide the header hamburger X when nav is open (close button is inside panel) */
  .nav__toggle--active {
    opacity: 0;
    pointer-events: none;
  }
  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle--active span:nth-child(2) { opacity: 0; }
  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  .nav-overlay--visible {
    opacity: 1;
    visibility: visible;
  }

  .nav__dropdown {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    /* Hidden by default on mobile — toggled via JS */
    opacity: 0;
    visibility: hidden;
    display: none;
  }
  .nav__dropdown--open {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  /* Prevent desktop :hover from interfering */
  .nav__item:hover .nav__dropdown {
    transform: none !important;
  }
  .nav__trigger-arrow {
    transition: transform 0.25s ease;
  }
  .nav__item--open .nav__trigger-arrow {
    transform: rotate(180deg);
  }
  .nav__dropdown-items { padding: var(--space-sm) 0 var(--space-sm) var(--space-lg); }
  .nav__dropdown-item { padding: var(--space-sm) 0; gap: var(--space-md); }
  .nav__dropdown-icon { display: none; }
  .nav__dropdown-title { color: var(--dark-gray); font-size: var(--text-sm); }
  .nav__dropdown-desc { display: none; }
  .nav__dropdown-footer { display: none; }
  .nav__dropdown-item--all { margin-top: var(--space-xs); padding-top: var(--space-sm) !important; }
  .nav__dropdown-item--all .nav__dropdown-title { color: var(--accent-on-light) !important; font-weight: 700; font-size: var(--text-sm); }   /* #19 AA: coral on white mobile nav -> teal */
  .nav__trigger {
    color: var(--dark-gray) !important;
    font-size: var(--text-base);
    width: 100%;
    justify-content: space-between;
    padding: var(--space-sm) 0;
  }

  .nav__item { width: 100%; }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__trust {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group .btn { width: 100%; }

  /* Grids mobile */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .diff-grid { grid-template-columns: 1fr; }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  /* Footer mobile — single column stacked */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .footer__brand {
    max-width: 100%;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer__logo img {
    height: 48px;
  }
  .footer__heading {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
  }
  .footer__links a {
    padding: var(--space-sm) 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .industry-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: var(--text-4xl); }
}

/* ── Accessibility: Skip link ── */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -120%;
  z-index: 9999;
  background: var(--teal);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-md); }

/* ── Accessibility: Focus States (teal ring — coral fails the 3:1 minimum) ── */
:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(9, 95, 92, 0.22);
}

.nav__link:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* On dark/brand sections the focus ring switches to white to stay >= 3:1 */
.section--dark :focus-visible,
.section--deep :focus-visible,
.section--teal :focus-visible,
.footer :focus-visible,
.hero :focus-visible { --focus-color: var(--white); }

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0.01ms; --dur-base: 0.01ms; --dur-slow: 0.01ms; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;      /* 2026-06-10: reveal staggers (up to 800ms) must not persist as latency */
    scroll-behavior: auto !important;
  }
}

/* ============================================
   #19 — IBM Plex Mono on DATA/SPEC readouts only
   Shared + EMS stat numbers and the EMS service index.
   Never body text or headlines (those stay Lato).
   Placed last so it wins font-family over component rules
   (e.g. .service-row__number was var(--font-accent)).
   ============================================ */
.stat-card__number,
.stat-card-dark__number,
.hero__badge-number,
.ems-stat-card__number,
.mid-cta__stat-number,
.hero-stat__number {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1, 'zero' 1;
  letter-spacing: -0.01em;
}

.service-row__number {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1, 'zero' 1;
  font-weight: 500;
}

/* ============================================
   #16 AA: final-CTA muted lines are duplicated inline across the EMS service
   pages + industry pages at rgba(255,255,255,0.5) (3.63:1 on the dark CTA band).
   Their links (.final-cta__contact a / __related-links a at 0.7) already pass.
   Bump the muted base text to 0.65 (~4.9:1) from one place; `body .class` (0,1,1)
   outranks the single-class inline rule (0,1,0) without !important.
   ============================================ */
body .final-cta__contact,
body .final-cta__related-label {
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Issue #18 — 390px horizontal-reflow fix (WCAG 1.4.10) =====
   Long interactive CTAs used white-space:nowrap, forcing the hero grid track
   wider than small viewports. The hover/circle swap is display:none, so
   letting the label wrap is purely cosmetic and animation-safe. */
@media (max-width: 768px) {
  .btn--interactive { white-space: normal; }
  .ind-hero__text,
  .ind-hero__grid > * { min-width: 0; }
}

/* ============================================
   CONTEXT "CONTINUE READING" — 2026-06-10 (#10 text-wall compression)
   Industry pages: #context keeps its first 2 paragraphs visible and
   collapses the rest into a <details>. Content stays in the DOM, so
   search engines index it fully; readers opt into the long version.
   ============================================ */
.context-more { margin-top: var(--space-sm); }
.context-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--teal);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 4px 0;
}
.context-more > summary::-webkit-details-marker { display: none; }
.context-more > summary::marker { content: ''; }
.context-more > summary:hover { color: var(--coral); }
.context-more[open] > summary { margin-bottom: var(--space-sm); }
.context-more__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.context-more[open] .context-more__arrow { transform: rotate(180deg); }
.context-more__open { display: none; }
.context-more[open] .context-more__closed { display: none; }
.context-more[open] .context-more__open { display: inline; }
@media (max-width: 768px) {
  .context-more > summary { padding: 10px 0; } /* >=44px touch target */
}
