/* ============================================================
   ELITETEX — style.css
   @layer cascade · compositor-safe animations · zero repaints
============================================================ */

@layer reset, base, components, utilities;

/* ============================================================
   LAYER: reset
============================================================ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    /* REMOVED: scroll-behavior: smooth — was hijacking iOS/Android
       native inertia. Smooth scroll now only applied via JS on
       deliberate nav-link clicks, never during user swipe. */
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  button { cursor: pointer; border: none; background: none; font-family: inherit; }
  input, textarea, select { font-family: inherit; }
}

/* ============================================================
   LAYER: base — tokens, fonts, body
============================================================ */
@layer base {

  /* -- Custom Properties ----------------------------------- */
  :root {
    --navy:       #0D1F4E;
    --royal:      #1A56A0;
    --glass:      #3A8FD4;
    --mist:       #A8D4F0;
    --cloud:      #F4F7FB;
    --white:      #FFFFFF;
    --text-dark:  #0D1F4E;
    --text-mid:   #2D4A6A;
    --text-muted: #6B8CAE;
    --nav-h:      72px;
    --radius:     10px;
    --radius-sm:  6px;
    --shadow:     0 4px 24px rgba(13,31,78,0.10);
    --shadow-lg:  0 8px 40px rgba(13,31,78,0.16);
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  }

  /* -- Fonts ----------------------------------------------- */
  @font-face {
    font-family: 'Barlow Condensed';
    src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
  }

  /* -- Scrollbar ------------------------------------------- */
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--royal) var(--navy);
  }
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--navy); }
  ::-webkit-scrollbar-thumb {
    background: var(--royal);
    border-radius: 99px;
    border: 2px solid var(--navy);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--glass); }
  ::-webkit-scrollbar-corner { background: var(--navy); }

  /* -- Body ------------------------------------------------ */
  body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* -- SVG sprite icon utility ----------------------------- */
  /* All icons are <svg class="icon"><use href="#ic-..."/></svg>
     stroke inherits from CSS color via currentColor on the symbol */
  .icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
    overflow: visible;
  }
  /* Size overrides — apply alongside .icon */
  .icon-sm  { width: 14px; height: 14px; }
  .icon-md  { width: 16px; height: 16px; }
  .icon-lg  { width: 20px; height: 20px; }
  .icon-xl  { width: 24px; height: 24px; }
  .icon-xxl { width: 26px; height: 26px; }
  .icon-28  { width: 28px; height: 28px; }

}

/* ============================================================
   LAYER: components
============================================================ */
@layer components {

  /* -- Container ------------------------------------------- */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .section-pad { padding: 96px 0; }

  /* -- Typography utilities -------------------------------- */
  .section-eyebrow {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--glass);
    margin-bottom: 12px;
  }
  .section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--navy);
  }
  .section-title.light { color: var(--white); }
  .section-sub {
    font-size: 17px;
    color: var(--text-mid);
    max-width: 560px;
    margin-top: 14px;
    line-height: 1.65;
  }
  .section-sub.light { color: var(--mist); }
  .text-center { text-align: center; }
  .text-center .section-sub { margin-left: auto; margin-right: auto; }

  /* -- Buttons --------------------------------------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    /* Only transition transform — compositor-only, zero repaints */
    transition: transform var(--transition);
    white-space: nowrap;
    position: relative;
    isolation: isolate;
  }
  .btn:active { transform: scale(0.97); }

  /* Box-shadow as pseudo-element — opacity transition is compositor-only */
  .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: -1;
  }

  .btn-primary {
    background: var(--royal);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(26,86,160,0.30);
  }
  .btn-primary::after {
    box-shadow: 0 4px 20px rgba(26,86,160,0.50);
  }
  .btn-primary:hover { background: #164888; }
  .btn-primary:hover::after { opacity: 1; }

  .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
  }
  .btn-outline:hover {
    background: rgba(255,255,255,0.10);
    border-color: var(--white);
  }

  /* -- Scroll Reveal --------------------------------------- */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* ============================================================
     NAVBAR
  ============================================================ */
  #navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: var(--navy);
    transition: box-shadow var(--transition), background var(--transition);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  #navbar.scrolled {
    box-shadow: 0 2px 20px rgba(13,31,78,0.35);
    background: rgba(13,31,78,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateZ(0);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    gap: 32px;
  }
  .nav-logo { display: flex; align-items: center; flex-shrink: 0; }
  .nav-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 auto;
  }
  .nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.80);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 3px;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--glass);
    transition: width var(--transition);
    border-radius: 2px;
  }
  .nav-links a:hover,
  .nav-links a.active-link { color: var(--white); }
  .nav-links a:hover::after,
  .nav-links a.active-link::after { width: 100%; }

  .nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

  .lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    padding: 3px;
    gap: 2px;
  }
  .lang-btn {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    padding: 4px 10px;
    border-radius: 99px;
    transition: background var(--transition), color var(--transition);
  }
  .lang-btn.active { background: var(--royal); color: var(--white); }

  .nav-cta {
    font-size: 14px;
    font-weight: 600;
    background: var(--royal);
    color: var(--white);
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    position: relative;
    isolation: isolate;
  }
  .nav-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 12px rgba(26,86,160,0.4);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
  }
  .nav-cta:hover { background: #164888; }
  .nav-cta:hover::after { opacity: 1; }

  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    margin-left: auto;
    touch-action: manipulation;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-mobile {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    /* Prevent scroll bleeding through to page on iOS */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-mobile.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-mobile a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color var(--transition);
    touch-action: manipulation;
  }
  .nav-mobile a:hover { color: var(--glass); }
  .nav-mobile .lang-toggle { margin-top: 8px; }

  /* ============================================================
     HERO
  ============================================================ */
  #hero { --_hero-min-h: 100vh; }
  @supports (min-height: 100svh) { #hero { --_hero-min-h: 100svh; } }
  @supports (min-height: 100dvh) { #hero { --_hero-min-h: 100dvh; } }

  #hero {
    position: relative;
    min-height: var(--_hero-min-h);
    background: var(--navy);
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    padding-bottom: clamp(24px, 4vh, 72px);
  }

  .hero-bg-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
  }
  .hero-bg-lines svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* 3D canvas — touch-action: pan-y so browser skips hit-test on touch */
  .hero-3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--navy);
    touch-action: pan-y;
  }
  .hero-3d canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(115deg,
        rgba(13,31,78,0.94) 0%,
        rgba(13,31,78,0.80) 30%,
        rgba(13,31,78,0.40) 58%,
        rgba(13,31,78,0.62) 100%),
      linear-gradient(to top, rgba(13,31,78,0.55) 0%, rgba(13,31,78,0) 35%);
  }
  @media (max-width: 768px) {
    .hero-overlay {
      background:
        linear-gradient(180deg,
          rgba(13,31,78,0.88) 0%,
          rgba(13,31,78,0.80) 45%,
          rgba(13,31,78,0.88) 100%);
    }
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(16px, 3vh, 48px);
    padding-bottom: clamp(16px, 3vh, 48px);
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(10px, 1.4vw, 13px);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: clamp(10px, 2vh, 22px);
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--glass);
    border-radius: 2px;
    flex-shrink: 0;
  }

  .hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(38px, 7vw, 96px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: clamp(12px, 2vh, 24px);
  }
  .hero-title .accent { color: var(--glass); }

  .hero-sub {
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--mist);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: clamp(20px, 3.5vh, 40px);
  }

  .hero-actions {
    display: flex;
    gap: clamp(10px, 2vw, 16px);
    flex-wrap: wrap;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Hero landscape / short screen */
  @media (max-height: 500px) and (orientation: landscape) {
    #hero { min-height: unset; height: auto; padding-top: var(--nav-h); padding-bottom: clamp(12px, 2vh, 24px); align-items: flex-start; }
    .hero-inner { padding-top: clamp(8px, 1.5vh, 16px); padding-bottom: clamp(8px, 1.5vh, 16px); justify-content: flex-start; }
    .hero-eyebrow { font-size: 10px; margin-bottom: 6px; }
    .hero-title { font-size: clamp(28px, 5vw, 36px); margin-bottom: 8px; line-height: 1.0; }
    .hero-sub { display: none; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { padding: 10px 18px; font-size: 13px; }
  }
  @media (max-height: 580px) and (orientation: portrait) {
    .hero-eyebrow { margin-bottom: 8px; }
    .hero-title { font-size: clamp(34px, 6vw, 52px); margin-bottom: 10px; }
    .hero-sub { font-size: 13px; margin-bottom: 16px; }
    .hero-actions .btn { padding: 11px 20px; font-size: 13px; }
  }
  @media (max-width: 768px) {
    .hero-inner { padding-top: clamp(12px, 2.5vh, 32px); padding-bottom: clamp(12px, 2.5vh, 32px); }
    .hero-title { font-size: clamp(38px, 10vw, 72px); }
    .hero-sub { font-size: clamp(14px, 3.8vw, 17px); max-width: 100%; }
    .hero-eyebrow { font-size: clamp(10px, 2.8vw, 12px); }
  }

  /* ============================================================
     TRUST BAR
  ============================================================ */
  #trust {
    background: var(--royal);
    overflow: hidden;
    border-bottom: 1px solid rgba(13,31,78,0.20);
  }
  .trust-track-wrap {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  }
  .trust-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: trust-scroll 32s linear infinite;
    padding: 18px 0;
    will-change: transform;
  }
  @keyframes trust-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .trust-track-wrap:hover .trust-track,
  .trust-track-wrap:focus-within .trust-track { animation-play-state: paused; }

  @media (prefers-reduced-motion: reduce) {
    .trust-track {
      animation: none;
      will-change: auto;
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0 8px;
      padding: 14px 24px;
    }
    .trust-track > *:nth-child(n+11) { display: none; }
  }

  .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    padding: 0 28px;
  }
  /* trust-item icon via sprite */
  .trust-item .icon { width: 16px; height: 16px; stroke: var(--mist); stroke-width: 1.75; }
  .trust-sep { font-size: 7px; color: rgba(255,255,255,0.30); flex-shrink: 0; }
  .trust-a11y {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }

  /* ============================================================
     SERVICES
  ============================================================ */
  #services {
    background: var(--cloud);
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
  }
  .services-tabs {
    display: flex;
    gap: 8px;
    margin: 40px 0 48px;
    flex-wrap: wrap;
  }
  .services-tab {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 99px;
    border: 2px solid transparent;
    color: var(--text-mid);
    background: var(--white);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    touch-action: manipulation;
  }
  .services-tab:hover { border-color: var(--glass); color: var(--royal); }
  .services-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  /* Service card filter — uses data-card-visible attribute (NOT .visible class)
     to avoid collision with the .reveal system which also uses .visible.
     Both .reveal and tab filter were writing to the same .visible class,
     causing tab toggle to fight the scroll-reveal animation state. */
  .service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid rgba(26,86,160,0.18);
    box-shadow: 0 2px 12px rgba(13,31,78,0.07), inset 0 0 0 1px rgba(58,143,212,0.10);
    /* Tab filter — opacity+scale transition on data attribute change */
    transition: opacity 0.2s ease, scale 0.2s ease, transform var(--transition);
    position: relative;
    isolation: isolate;
  }
  /* Hidden state — collapses in-flow via max-height + padding zeroing.
     position:absolute was removed: absolute children inside CSS grid leave
     visible holes as other cards don't reflow to fill them. max-height:0
     with overflow:hidden collapses the card cleanly. The opacity transition
     plays first (0.2s) then height collapses — staggered by transition-delay. */
  .service-card[data-card-visible="false"] {
    opacity: 0;
    scale: 0.97;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    overflow: hidden;
    transition: opacity 0.15s ease, scale 0.15s ease,
                max-height 0s ease 0.2s, padding 0s ease 0.2s,
                border-width 0s ease 0.2s;
  }
  /* Shown state */
  .service-card[data-card-visible="true"] {
    opacity: 1;
    scale: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 600px;
    transition: opacity 0.2s ease, scale 0.2s ease, transform var(--transition);
  }
  /* Elevated shadow on ::after — opacity transition is compositor-only, zero repaints */
  .service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: -1;
  }
  .service-card:hover { transform: translateY(-4px); }
  .service-card:hover::after { opacity: 1; }

  .service-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(58,143,212,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  .service-icon .icon { stroke: var(--royal); }
  .service-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
  }
  .service-card p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
  .service-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 14px;
  }
  .tag-cleaning { background: rgba(58,143,212,0.12); color: var(--royal); }
  .tag-construction { background: rgba(13,31,78,0.08); color: var(--navy); }

  /* ============================================================
     WHY ELITETEX
  ============================================================ */
  #why {
    background: var(--white);
    content-visibility: auto;
    contain-intrinsic-size: 0 750px;
  }
  .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 56px;
  }
  .why-card { display: flex; flex-direction: column; gap: 14px; }
  .why-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--mist);
  }
  .why-icon .icon {
    stroke: var(--mist) !important;
    fill: none !important;
  }
  .why-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
  }
  .why-card p { font-size: 15px; color: var(--text-mid); line-height: 1.65; }

  /* ============================================================
     STATS
  ============================================================ */
  #stats {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 0 480px;
  }
  .stats-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(26,86,160,0.35) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(58,143,212,0.15) 0%, transparent 60%);
    pointer-events: none;
  }
  .stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
  }
  .stat-item { padding: 24px 16px; border-right: 1px solid rgba(168,212,240,0.15); }
  .stat-item:last-child { border-right: none; }
  .stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
  }
  .stat-suffix { font-size: 0.65em; color: var(--glass); font-weight: 700; }
  .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--mist);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* ============================================================
     SERVICE AREAS
  ============================================================ */
  #areas {
    background: var(--cloud);
    content-visibility: auto;
    contain-intrinsic-size: 0 650px;
  }
  .areas-intro { max-width: 600px; margin: 0 auto 48px; }
  .areas-hub { text-align: center; margin-bottom: 32px; }
  .areas-hub-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--royal);
    border-radius: 99px;
    padding: 10px 28px;
  }
  .areas-hub-label .icon { width: 22px; height: 22px; stroke: var(--royal); stroke-width: 2; }
  .areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .area-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    background: var(--white);
    border: 1px solid rgba(168,212,240,0.50);
    border-radius: 99px;
    padding: 8px 18px;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
  }
  .area-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .area-pill .icon { width: 14px; height: 14px; stroke: var(--glass); stroke-width: 2; }

  /* ============================================================
     CONTACT
  ============================================================ */
  #contact {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 0 750px;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
  }
  .contact-info { padding-top: 8px; }
  .contact-info .section-eyebrow { color: var(--mist); }
  .contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 32px;
  }
  .contact-detail-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(58,143,212,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--glass);
  }
  .contact-detail-icon .icon {
    width: 20px !important; height: 20px !important;
    stroke: var(--glass) !important;
    stroke-width: 2 !important;
    fill: none !important;
  }
  .contact-detail-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 4px;
  }
  .contact-detail-value { font-size: 16px; font-weight: 500; color: var(--white); line-height: 1.45; }

  .contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
  }
  .form-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .form-group label { font-size: 13px; font-weight: 600; color: var(--text-mid); letter-spacing: 0.02em; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(168,212,240,0.50);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--cloud);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(26,86,160,0.12);
    background: var(--white);
  }
  .form-group textarea { resize: vertical; min-height: 110px; }
  .hp-field { display: none; }
  .form-submit {
    width: 100%;
    padding: 15px;
    background: var(--navy);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    font-family: 'DM Sans', sans-serif;
    position: relative;
    isolation: isolate;
    touch-action: manipulation;
  }
  .form-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(26,86,160,0.35);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
  }
  .form-submit:hover { background: var(--royal); }
  .form-submit:hover::after { opacity: 1; }
  .form-submit:disabled { opacity: 0.65; cursor: not-allowed; }
  .form-msg {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: none;
  }
  .form-msg.success {
    display: block;
    background: rgba(58,143,212,0.10);
    color: var(--royal);
    border: 1px solid rgba(58,143,212,0.30);
  }
  .form-msg.error {
    display: block;
    background: rgba(200,30,30,0.08);
    color: #c81e1e;
    border: 1px solid rgba(200,30,30,0.25);
  }

  /* ============================================================
     FOOTER
  ============================================================ */
  #footer {
    background: #08152F;
    padding: 56px 0 28px;
    content-visibility: auto;
    contain-intrinsic-size: 0 320px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(168,212,240,0.10);
  }
  .footer-logo img {
    height: 56px; width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
  }
  .footer-tagline { font-size: 14px; color: var(--mist); line-height: 1.65; max-width: 260px; }
  .footer-col-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .footer-links { display: flex; flex-direction: column; gap: 10px; }
  .footer-links a { font-size: 14px; color: rgba(168,212,240,0.70); transition: color var(--transition); }
  .footer-links a:hover { color: var(--white); }
  .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(168,212,240,0.70);
    margin-bottom: 10px;
  }
  .footer-contact-item .icon { width: 16px; height: 16px; stroke: var(--glass); flex-shrink: 0; stroke-width: 2; }
  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-copy { font-size: 13px; color: rgba(168,212,240,0.45); }
  .footer-lang { display: flex; gap: 8px; }
  .footer-lang-btn {
    font-size: 12px;
    font-weight: 600;
    color: rgba(168,212,240,0.55);
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid rgba(168,212,240,0.20);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    touch-action: manipulation;
  }
  .footer-lang-btn.active,
  .footer-lang-btn:hover { background: var(--royal); color: var(--white); border-color: var(--royal); }

} /* end @layer components */

/* ============================================================
   LAYER: utilities
============================================================ */
@layer utilities {

  /* -- Responsive ------------------------------------------ */
  @media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .contact-grid { gap: 48px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top > :first-child { grid-column: 1 / -1; }
  }

  @media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .section-pad { padding: 72px 0; }
    .nav-links, .nav-right { display: none; }
    .nav-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrap { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
  }

  @media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(168,212,240,0.15); }
    .stat-item:nth-child(odd) { border-right: 1px solid rgba(168,212,240,0.15); }
    .btn { padding: 12px 20px; font-size: 14px; }
    .services-tab { font-size: 13px; padding: 8px 16px; }
  }

  /* -- iOS Safari fixes ------------------------------------ */
  * { -webkit-tap-highlight-color: transparent; }
  a, button { touch-action: manipulation; }
  #navbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

}