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

/* --- CSS Variables (Brand Tokens) --- */
:root {
  /* Brand Colors */
  --teal: #23555A;
  --coral: #ED835E;
  --deep-blue: #2A4E64;
  --lime: #ADCF91;

  /* Extended palette */
  --teal-light: #2d6b71;
  --teal-dark: #1a3f42;
  --coral-light: #f09a7e;
  --coral-dark: #d6724f;
  --deep-blue-light: #3a6a84;
  --lime-muted: #c5ddb2;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F5F6F8;
  --warm-gray: #EDEEEF;
  --light-gray: #D8DBDF;
  --mid-gray: #6B7280;
  --dark-gray: #374151;
  --charcoal: #1F2937;
  --near-black: #111827;

  /* 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: 'Trirong', Georgia, serif;

  /* 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: 96px;
  --section-padding: clamp(4rem, 3rem + 5vw, 8rem);

  /* Borders & Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(17, 24, 39, 0.06), 0 2px 4px -2px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(17, 24, 39, 0.08), 0 4px 6px -4px rgba(17, 24, 39, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(17, 24, 39, 0.08), 0 8px 10px -6px rgba(17, 24, 39, 0.04);
  --shadow-glow-coral: 0 4px 20px rgba(237, 131, 94, 0.3);
  --shadow-glow-teal: 0 4px 20px rgba(35, 85, 90, 0.2);

  /* 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);
}

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

/* --- 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(--header-height);
}

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.02em;
}

h1 { font-size: var(--text-4xl); font-weight: 900; }
.hero h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 2.8rem); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

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

/* Accent typography — Trirong for labels only */
.label {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.label--coral { color: var(--coral); }
.label--lime { color: var(--lime); }
.label--teal { color: var(--teal); }
.label--white { color: rgba(255,255,255,0.6); }

/* --- 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);
}

.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(--white);
  border-color: var(--coral);
}
.btn--primary:hover {
  background-color: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--white);
  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 Hover Button (slide text + expanding circle) --- */
.btn--interactive {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-full);
  border: 2px solid var(--coral);
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  min-width: 220px;
}

/* Default text — visible, slides out on hover */
.btn--interactive .btn__text {
  display: inline-block;
  transition: all 900ms var(--ease-out-expo);
  position: relative;
  z-index: 10;
}
.btn--interactive:hover .btn__text {
  transform: translateX(3rem);
  opacity: 0;
}

/* Hover text + arrow — hidden, slides in on hover */
.btn--interactive .btn__hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  height: 100%;
  transform: translateX(3rem);
  opacity: 0;
  transition: all 900ms var(--ease-out-expo);
  color: var(--white);
}
.btn--interactive:hover .btn__hover {
  transform: translateX(0);
  opacity: 1;
}
.btn--interactive .btn__hover svg {
  width: 18px;
  height: 18px;
}

/* Expanding circle background */
.btn--interactive .btn__circle {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--coral);
  transition: all 900ms var(--ease-out-expo);
  z-index: 0;
}
.btn--interactive:hover .btn__circle {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transform: translateY(0) scale(1.8);
}

/* Variant: teal circle for buttons on light backgrounds */
.btn--interactive.btn--interactive-teal {
  border-color: var(--teal);
  color: var(--teal);
}
.btn--interactive.btn--interactive-teal .btn__text {
  color: var(--teal);
}
.btn--interactive.btn--interactive-teal .btn__circle {
  background-color: var(--teal);
}
.btn--interactive.btn--interactive-teal .btn__hover {
  color: var(--white);
}

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

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

/* 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: 80px;
}
.header__logo img {
  height: 80px;
  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-2xl);
}
.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;
}

.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);
}

.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: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  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: rgba(255,255,255,0.75); }
.breadcrumb__sep { color: rgba(255,255,255,0.25); margin: 0 0.4rem; }
.breadcrumb__current { color: rgba(255,255,255,0.55); }

/* ============================================
   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: 500;
  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: 800;
  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;
}

/* Background with subtle grid pattern */
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--near-black) 0%, var(--deep-blue) 50%, var(--teal) 100%);
  z-index: 0;
}

/* Precision grid overlay */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Subtle glow accent */
.hero__bg::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(173, 207, 145, 0.06) 0%, transparent 70%);
  z-index: 1;
}

.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(--coral);
  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(--coral);
  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(--coral);
  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(--coral);
  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(--coral);
  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.5fr 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__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); }

.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
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
}

.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 */
.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

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

.hero-reveal-delay-1 { transition-delay: 200ms; }
.hero-reveal-delay-2 { transition-delay: 400ms; }
.hero-reveal-delay-3 { transition-delay: 600ms; }
.hero-reveal-delay-4 { transition-delay: 800ms; }
.hero-reveal-delay-5 { transition-delay: 1000ms; }
.hero-reveal-delay-6 { transition-delay: 1200ms; }

/* ============================================
   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: 88px;
    --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: 56px;
  }

  /* 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%);
    transition: transform 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); }

  /* 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(--coral) !important; font-weight: 700; font-size: var(--text-sm); }
  .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 — 2 columns: brand left, nav links right */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl) var(--space-lg);
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-sm);
  }
  .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;
  }
  .footer__legal a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .footer__bottom span {
    min-height: 44px;
    display: flex;
    align-items: 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: Focus States ── */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(237, 131, 94, 0.25);
}

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

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
