/* ==========================================================================
   IPS Drug Testing — Custom Styles
   Tailwind handles layout/utility. This file holds the design-system
   primitives Tailwind can't express: gradients, glass, motion, mockups.

   TABLE OF CONTENTS
   01. Design tokens
   02. Base + typography
   03. Buttons (ripple, glow)
   04. Glassmorphism + cards
   05. Hero (video, mesh gradient, floating stats)
   06. Navigation (sticky header, mega menu, mobile drawer)
   07. Services + icons
   08. Process timeline
   09. Portal / laptop mockup
   10. Logo marquee
   11. Testimonials (Swiper)
   12. Comparison table
   13. Footer
   14. Utilities + accessibility + responsive
   ========================================================================== */

/* ---------- 01. Design tokens ------------------------------------------- */
:root {
  --primary: #0f4c81;
  --secondary: #00a651;
  --dark: #081423;
  --bg: #f7f9fc;
  --accent: #3b82f6;
  --success: #16a34a;
  --text: #111827;
  --muted: #64748b;
  --footer: #0a2e4d;   /* deep tone of --primary, sits under the dark CTA */

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  /* Layered shadows — soft ambient + tight contact, the "Apple" recipe */
  --shadow-sm: 0 1px 2px rgba(8, 20, 35, 0.04), 0 2px 6px rgba(8, 20, 35, 0.04);
  --shadow: 0 4px 12px rgba(8, 20, 35, 0.05), 0 12px 32px rgba(8, 20, 35, 0.07);
  --shadow-lg: 0 8px 24px rgba(8, 20, 35, 0.07), 0 24px 64px rgba(8, 20, 35, 0.1);
  --shadow-xl: 0 12px 32px rgba(8, 20, 35, 0.09), 0 40px 96px rgba(8, 20, 35, 0.14);
  --shadow-green: 0 8px 24px rgba(0, 166, 81, 0.28), 0 2px 6px rgba(0, 166, 81, 0.2);
  --shadow-blue: 0 8px 24px rgba(15, 76, 129, 0.26);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 84px;
}

/* ---------- 02. Base + typography --------------------------------------- */
html {
  scroll-behavior: smooth;
  /* keeps anchor targets clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 24px);

  /* AOS parks fade-left/right elements ~100px outside the layout before they
     reveal, which widens the document. Clip it at the root.
     `clip` rather than `hidden`: hidden would make this a scroll container and
     break the sticky header and the sticky process heading. The value must sit
     on <html> — on <body> alone it just propagates back up to the viewport. */
  overflow-x: hidden;   /* fallback for browsers without overflow: clip */
  overflow-x: clip;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.025em;
}

.font-num,
.counter {
  font-family: "Space Grotesk", monospace;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

/* Optical sizing for the hero — 72px desktop, tight leading */
.h-hero {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.h-section {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* Let the browser even out the line lengths instead of hard-coding <br>s —
   a manual break only looks right at one viewport width. */
.balance { text-wrap: balance; }

.lede {
  font-size: clamp(1rem, 1.15vw, 1.1875rem);
  line-height: 1.7;
  color: var(--muted);
}

/* Gradient text — used sparingly, on key nouns only */
.text-gradient-green {
  background: linear-gradient(120deg, #00a651 0%, #34d17f 45%, #00c85f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(120deg, #0f4c81 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow label above section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Custom scrollbar — small detail, big polish */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: rgba(0, 166, 81, 0.22); color: var(--dark); }

/* ---------- 03. Buttons -------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;              /* clips the ripple */
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #00a651 0%, #059445 100%);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 166, 81, 0.38), 0 3px 8px rgba(0, 166, 81, 0.22);
}
.btn-primary:active { transform: translateY(0); }

.btn-blue {
  background: linear-gradient(135deg, #0f4c81 0%, #1d63a3 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 76, 129, 0.34);
}

/* Outline on light backgrounds */
.btn-outline {
  border: 1.5px solid #e2e8f0;
  color: var(--primary);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--primary);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Outline on dark/hero backgrounds */
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Ripple — span injected by main.js on click */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  animation: ripple 0.65s var(--ease-out);
  z-index: -1;
}
.btn-outline .ripple,
.btn-white .ripple { background: rgba(15, 76, 129, 0.16); }

@keyframes ripple {
  to { transform: scale(3.2); opacity: 0; }
}

/* Arrow that slides on hover — .btn:hover .arrow, .card:hover .arrow */
.arrow {
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .arrow,
.group:hover .arrow { transform: translateX(4px); }

/* ---------- 04. Glass + cards -------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.glass-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

/* Base card: white, rounded, lifts on hover with a green edge-glow */
.card {
  position: relative;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 166, 81, 0.28);
}

/* Sheen that sweeps across a card on hover */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.5), rgba(59, 130, 246, 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* Icon tile inside cards */
.icon-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #eef7f2 0%, #e6f2ff 100%);
  color: var(--primary);
  transition: transform 0.45s var(--ease-out), background 0.45s var(--ease-out),
              color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.card:hover .icon-tile,
.group:hover .icon-tile {
  background: linear-gradient(135deg, #00a651 0%, #0f4c81 130%);
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: var(--shadow-green);
}

/* Quick-value strip: large line-art icon, no card chrome */
.value-ico {
  flex: none;
  display: block;
  width: 64px;
  height: 64px;
  transition: transform 0.45s var(--ease-out), color 0.35s ease;
}
.value-ico svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.value-ico--blue  { color: var(--primary); }
.value-ico--green { color: var(--secondary); }

.value-item:hover .value-ico {
  transform: translateY(-3px) scale(1.05);
}
/* Colours swap on hover — blue picks up green, green picks up blue */
.value-item:hover .value-ico--blue  { color: var(--secondary); }
.value-item:hover .value-ico--green { color: var(--primary); }

.value-item h3 { transition: color 0.3s ease; }

/* Hairline divider with a fade at both ends */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
}

/* ---------- 05. Hero ----------------------------------------------------- */
/* The header (and, on desktop, the utility bar) sit above the hero in flow,
   so a flat 100svh would always push the stat bar below the fold.
   Subtract their heights instead. svh also dodges the mobile URL-bar jump. */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  background: var(--dark);
}

@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - 124px); }  /* 84px header + 40px utility bar */
}

/* Short laptop screens (1440x900 and friends): pull the hero type in a notch
   so the stat bar still lands above the fold. */
@media (min-width: 1024px) and (max-height: 940px) {
  .h-hero { font-size: clamp(2.5rem, 4.2vw, 3.6rem); }
}

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

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slow drift keeps the frame alive even before the video loads */
  animation: kenburns 26s var(--ease-in-out) infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}

/* Dark gradient overlay: readable text left, video breathes right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(8, 20, 35, 0.96) 0%, rgba(8, 20, 35, 0.86) 34%,
                    rgba(8, 20, 35, 0.58) 58%, rgba(8, 20, 35, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 20, 35, 0.8) 0%, transparent 28%, rgba(8, 20, 35, 0.85) 100%);
}

/* Colored light-leak — the thing that makes it feel designed, not stock */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 8% 18%, rgba(0, 166, 81, 0.24) 0%, transparent 62%),
    radial-gradient(55% 50% at 88% 78%, rgba(59, 130, 246, 0.24) 0%, transparent 60%);
  mix-blend-mode: screen;
}

/* Fine grid — reads as "technology", disappears at a glance */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
}

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

/* Live status pill */
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-ring 2s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* Floating stat bar at the bottom of the hero */
.stat-bar {
  background: rgba(12, 26, 44, 0.55);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* Rotating hero feed (Latest News <-> DOT Tips & Blogs) */
.hero-feed-panel {
  background: rgba(12, 26, 44, 0.42);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  /* Slides stack on top of one another in the same grid cell, so the panel
     auto-sizes to the tallest slide and swapping never jumps in height. */
  display: grid;
}
/* Both slides occupy the same cell; the active one crossfades over the rest. */
.hero-feed-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.hero-feed-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-feed-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.85);
}
.hero-feed-tag--green { background: rgba(22, 163, 74, 0.85); }

/* Vertical variant — tall panel pinned to the right of the hero copy */
.hero-feed-panel--vertical {
  min-height: 230px;
  align-items: center; /* grid honors align-items for centering within the cell too */
}
.hero-feed-panel--vertical .hero-feed-slide { width: 100%; }
.hero-feed-panel--vertical .hero-feed-tag { font-size: 11.5px; }
.hero-feed-panel--vertical .hero-feed-title { font-size: 1.25rem; margin-top: 0.7rem; }
.hero-feed-panel--vertical .hero-feed-copy { font-size: 0.92rem; margin-top: 0.5rem; }
.hero-feed-panel--vertical .hero-feed-link { margin-top: 0.9rem; }

/* Manual controls — small pill dots, mirrors .swiper-pagination-bullet */
.hero-feed-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.hero-feed-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.35s var(--ease-out), background 0.35s ease;
}
.hero-feed-dot:hover { background: rgba(255, 255, 255, 0.55); }
.hero-feed-dot.is-active {
  width: 28px;
  background: var(--secondary);
}
.hero-feed-title {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
@media (min-width: 1024px) {
  .hero-feed-title { font-size: 1.2rem; }
}
.hero-feed-copy {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
}
.hero-feed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4ade80;
  transition: gap 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.hero-feed-link:hover { gap: 0.65rem; color: #86efac; }
@media (prefers-reduced-motion: reduce) {
  .hero-feed-slide { transition: opacity 0.2s linear; transform: none; }
}

/* Play button with expanding halo */
.play-btn i { transition: transform 0.35s var(--ease-out); }
.play-btn:hover i { transform: scale(1.15); }
.play-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: halo 2.6s var(--ease-out) infinite;
}
@keyframes halo {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- 06. Navigation ----------------------------------------------- */
.topbar { background: var(--primary); }

.topbar a {
  position: relative;
  transition: color 0.25s ease, opacity 0.25s ease;
}
/* Underline grows from the left on hover */
.topbar .tb-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: var(--secondary);
  transition: width 0.3s var(--ease-out);
}
.topbar .tb-link:hover::after { width: 100%; }

.social-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}
.social-ico:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Sticky header — starts transparent over the hero, solidifies on scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease-out), border-color 0.4s ease,
              background-color 0.4s ease, padding 0.4s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e8eef5;
  box-shadow: 0 4px 24px rgba(8, 20, 35, 0.07);
}
.site-header.scrolled .logo-img { height: 46px; }
.logo-img { height: 56px; transition: height 0.4s var(--ease-out); }

/* Nav link — dot indicator slides up on hover */
.nav-link {
  position: relative;
  padding: 0.5rem 0.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  transition: color 0.25s ease;
}
.nav-link:hover,
.nav-link[aria-expanded="true"] { color: var(--primary); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover::after,
.nav-link[aria-expanded="true"]::after { width: 22px; }

/* Mega menu — anchored to the header container (see index.html), so it stays
   centred and inside the viewport no matter which nav item opened it. */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: min(940px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  z-index: 70;
}
.mega.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.mega-item:hover { background: var(--bg); transform: translateX(3px); }
/* Same circular icon treatment as the process steps, Why-IPS rows and tip list */
.mega-item i {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8eef5;
  color: var(--primary);
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(8, 20, 35, 0.06);
  transition: transform 0.35s var(--ease-out), color 0.25s ease, box-shadow 0.35s var(--ease-out);
}
.mega-item:hover i {
  transform: translateY(-2px) scale(1.05);
  color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.1), 0 8px 20px rgba(8, 20, 35, 0.1);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 88vw);
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.open { transform: translateX(0); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 35, 0.55);
  backdrop-filter: blur(4px);
  z-index: 85;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

/* Accordion inside the drawer */
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }
.acc-chev { transition: transform 0.35s var(--ease-out); }

/* ---------- 07. Services ------------------------------------------------- */
/* Soft radial wash behind light sections */
.section-wash {
  position: relative;
  isolation: isolate;
}
.section-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 40% at 12% 0%, rgba(0, 166, 81, 0.06) 0%, transparent 60%),
    radial-gradient(45% 40% at 92% 12%, rgba(59, 130, 246, 0.07) 0%, transparent 62%);
}

/* Dotted texture for the light background sections */
.dot-grid {
  background-image: radial-gradient(#dbe3ec 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 75%);
}

/* Service card: photo header, circular icon badge straddling the seam, copy.
   Built on <a> + <span>s so the whole card is one link target. */
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out);
}
.svc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 166, 81, 0.28);
}

/* Positioning context for the badge — it hangs off the bottom of the photo */
.svc-head {
  position: relative;
  display: block;
}

.svc-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}
.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.svc:hover .svc-media img { transform: scale(1.06); }

/* Oversized watermark of the card's own icon. Gives the header a subject so it
   reads as artwork instead of an empty swatch. It sits over the media, so it
   still works as a subtle brand mark once a real photo replaces the
   placeholder — delete the <i class="svc-ghost"> if you don't want it then. */
.svc-ghost {
  position: absolute;
  right: 4%;
  top: 50%;
  z-index: 1;
  font-size: 5.5rem;
  line-height: 1;
  color: #fff;
  opacity: 0.16;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.svc:hover .svc-ghost {
  opacity: 0.26;
  transform: translateY(-50%) rotate(-8deg) scale(1.08);
}

/* Icon badge — straddles the seam between photo and body */
.svc-badge {
  position: absolute;
  bottom: -26px;
  left: 20px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--secondary);
  font-size: 1.0625rem;
  box-shadow: 0 6px 18px rgba(8, 20, 35, 0.14);
  transition: transform 0.45s var(--ease-out), background 0.45s var(--ease-out),
              color 0.45s var(--ease-out);
}
.svc:hover .svc-badge {
  transform: translateY(-3px) scale(1.06);
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-green);
}

.svc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.25rem 1.5rem 1.5rem;   /* top padding clears the badge */
}
.svc-title {
  font-family: "Manrope", sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  transition: color 0.3s ease;
}
.svc:hover .svc-title { color: var(--primary); }

.svc-copy {
  flex: 1;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}
.svc:hover .svc-link { color: var(--secondary); }

/* The right column is a tall window onto a wide photo, so object-cover only
   shows ~40% of its width. Bias the crop left so the cab and grille stay whole
   (dead-centre lops the front of the truck off). */
.why-photo { object-position: center; }

@media (min-width: 1024px) {
  .why-photo { object-position: 18% center; }
}

/* Shared circular icon — same language as the process steps, Why-IPS rows,
   tip list and mega menu. Use anywhere a section needs an icon. */
.ico-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8eef5;
  color: var(--primary);
  font-size: 1.0625rem;
  box-shadow: 0 6px 18px rgba(8, 20, 35, 0.08);
  transition: transform 0.4s var(--ease-out), color 0.35s ease, box-shadow 0.4s var(--ease-out);
}
.card:hover .ico-circle,
.group:hover .ico-circle {
  transform: translateY(-3px) scale(1.05);
  color: var(--secondary);
  box-shadow: 0 0 0 5px rgba(0, 166, 81, 0.1), 0 10px 26px rgba(8, 20, 35, 0.12);
}
/* variant for dark panels */
.ico-circle--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--secondary);
  box-shadow: none;
}

/* Pull-quote — green rule, larger display type, quiet quote mark */
.pullquote {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 3px solid var(--secondary);
}
.pullquote p {
  font-family: "Manrope", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--dark);
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  top: -1.25rem;
  left: 1.25rem;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(0, 166, 81, 0.14);
  pointer-events: none;
}

/* Dark stat panel beside the argument */
.insight-panel {
  align-self: start;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--dark);
  box-shadow: var(--shadow-xl);
}

/* DOT Tips list rows — circular icon (same treatment as the process steps and
   the Why-IPS rows), meta line, title, copy, arrow that slides on hover. */
.tip {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 1.5rem 1rem 1.5rem 0.25rem;
  border-radius: var(--radius);
  transition: background 0.35s ease, padding 0.35s var(--ease-out);
}
.tip:hover {
  background: var(--bg);
  padding-left: 1rem;
  padding-right: 0.5rem;
}

.tip-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8eef5;
  color: var(--primary);
  font-size: 1.0625rem;
  box-shadow: 0 6px 18px rgba(8, 20, 35, 0.08);
  transition: transform 0.4s var(--ease-out), color 0.35s ease, box-shadow 0.4s var(--ease-out);
}
.tip:hover .tip-ico {
  transform: translateY(-3px) scale(1.05);
  color: var(--secondary);
  box-shadow: 0 0 0 5px rgba(0, 166, 81, 0.1), 0 10px 26px rgba(8, 20, 35, 0.12);
}

.tip-body { flex: 1; }

.tip-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.tip-tag {
  border-radius: 999px;
  padding: 0.1875rem 0.625rem;
  background: rgba(0, 166, 81, 0.1);
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tip-tag--blue {
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary);
}

.tip-title {
  margin-top: 0.5rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--dark);
  transition: color 0.3s ease;
}
.tip:hover .tip-title { color: var(--primary); }

.tip-copy {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.tip-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin-top: 0.75rem;
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 0.75rem;
  transition: transform 0.35s var(--ease-out), background 0.35s ease, color 0.35s ease;
}
.tip:hover .tip-arrow {
  background: var(--secondary);
  color: #fff;
  transform: translateX(3px);
}

@media (max-width: 639px) {
  .tip-arrow { display: none; }
}

/* Call-us link paired beside a primary button: icon circle + label + number,
   so it reads as a deliberate second action rather than stray text. */
.call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}
.call-link:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.call-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 166, 81, 0.1);
  color: var(--secondary);
  font-size: 0.875rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.call-link:hover .call-ico {
  background: var(--secondary);
  color: #fff;
}

.call-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.call-num {
  display: block;
  font-family: "Space Grotesk", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

/* "Why IPS" feature rows — icon tile, title, copy, hairline between */
.why-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  transition: transform 0.35s var(--ease-out);
}
.why-row:hover { transform: translateX(3px); }

.why-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;                 /* circle, matching the process steps */
  background: #fff;
  border: 1px solid #e8eef5;          /* holds the edge against the white section */
  color: var(--primary);
  font-size: 1.0625rem;
  box-shadow: 0 6px 18px rgba(8, 20, 35, 0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              color 0.35s ease;
}
.why-row:hover .why-ico {
  transform: translateY(-3px) scale(1.05);
  color: var(--secondary);
  box-shadow: 0 0 0 5px rgba(0, 166, 81, 0.1), 0 10px 26px rgba(8, 20, 35, 0.12);
}

.why-title {
  font-family: "Manrope", sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.why-copy {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 08. Process timeline ----------------------------------------- */
.timeline {
  position: relative;
}
/* The rail */
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
}
/* Progress fill — height driven by scroll in main.js */
.timeline-fill {
  position: absolute;
  left: 27px;
  top: 12px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #00a651, #3b82f6);
  box-shadow: 0 0 16px rgba(0, 166, 81, 0.6);
  transition: height 0.25s linear;
}

.step {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
}
/* Solid white circle with a blue glyph — the icon treatment carries the step,
   not a translucent tile. */
.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
              color 0.4s ease;
}
.step.is-active .step-dot {
  color: var(--secondary);
  box-shadow: 0 0 0 6px rgba(0, 166, 81, 0.16), 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: scale(1.06);
}
.step h3 { transition: color 0.4s ease; color: rgba(255, 255, 255, 0.65); }
.step.is-active h3 { color: #fff; }
.step-num {
  font-family: "Space Grotesk", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.4s ease;
}
.step.is-active .step-num { color: var(--secondary); }

/* ---------- 09. Sparkline ------------------------------------------------ */
/* Used by the floating analytics card in "Why IPS" */
.spark path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
.spark.is-in path { animation: draw 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 10. Logo marquee --------------------------------------------- */
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  gap: 4rem;
  padding-right: 4rem;
  align-items: center;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-100%); }
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: none;
  color: #94a3b8;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.75;
  transition: color 0.35s ease, filter 0.35s ease, opacity 0.35s ease,
              transform 0.35s var(--ease-out);
}
.client-logo i { font-size: 1.25rem; }
.client-logo:hover {
  color: var(--primary);
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}
.client-logo:hover i { color: var(--secondary); }

/* ---------- 11. Testimonials --------------------------------------------- */
.quote-card {
  height: auto;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease,
              background 0.5s ease;
}
.quote-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 166, 81, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

/* Avatar initials */
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  background: linear-gradient(135deg, #0f4c81, #00a651);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

/* Clip to the container so the next slide doesn't bleed off-canvas.
   Extra padding keeps the hover-lift shadow from being cut. */
/* Carousel: centred active slide, neighbours scaled back and dimmed */
.carousel { position: relative; }

.swiper { padding: 8px 8px 3.5rem !important; margin: -8px -8px 0 !important; }
.swiper-wrapper { align-items: center; }

.swiper-slide {
  height: auto;
  opacity: 0.35;
  transform: scale(0.9);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
/* the cards either side get a partial lift so the deck reads as a stack */
.swiper-slide-prev,
.swiper-slide-next { opacity: 0.5; transform: scale(0.94); }

.swiper-slide-active .quote-card {
  border-color: rgba(0, 166, 81, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.swiper-pagination { bottom: 0 !important; }
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: width 0.35s var(--ease-out), background 0.35s ease;
}
.swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 999px;
  background: var(--secondary);
}

/* Arrows — flank the deck, vertically centred */
.swiper-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.swiper-nav:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-50%) scale(1.06);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
}
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

@media (min-width: 1280px) {
  .carousel-prev { left: -26px; }
  .carousel-next { right: -26px; }
}

/* On mobile the arrows would sit on top of the card — drop them under it */
@media (max-width: 639px) {
  .carousel-prev,
  .carousel-next {
    top: auto;
    bottom: -4px;
    transform: none;
  }
  .swiper-nav:hover { transform: scale(1.06); }
  .carousel-prev { left: calc(50% - 58px); }
  .carousel-next { right: calc(50% - 58px); }
  .swiper { padding-bottom: 5.5rem !important; }
  .swiper-pagination { bottom: 3.5rem !important; }
}

/* ---------- 12. Comparison ----------------------------------------------- */
/* Flat light surface. The asymmetry does the persuading: the left column is
   recessed and grey, the right is a raised white card with a green rule. */
.cmp-col {
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.cmp-col--bad {
  background: #eef1f6;
  border: 1px solid #e2e8f0;
}

.cmp-col--good {
  position: relative;
  background: #fff;
  border: 1px solid #e6edf4;
  box-shadow: var(--shadow-lg);
}
/* green rule along the top edge */
.cmp-col--good::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--secondary);
}
.cmp-col--good:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.cmp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8125rem 0;
  border-bottom: 1px solid rgba(100, 116, 139, 0.14);
  font-size: 0.9375rem;
  color: var(--muted);
}
.cmp-item:last-child { border-bottom: 0; }
.cmp-item--good {
  color: var(--text);
  font-weight: 500;
}

.cmp-x,
.cmp-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.625rem;
}
.cmp-x {
  background: #e2e8f0;
  color: #94a3b8;
}
.cmp-check {
  background: rgba(0, 166, 81, 0.12);
  color: var(--secondary);
}
.cmp-col--good:hover .cmp-check {
  background: var(--secondary);
  color: #fff;
}
.cmp-check { transition: background 0.35s ease, color 0.35s ease; }

/* VS chip on the seam between the two columns */
.cmp-vs {
  display: none;
}
@media (min-width: 768px) {
  .cmp-vs {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--dark);
    border: 4px solid var(--bg);
    color: #fff;
    font-family: "Space Grotesk", monospace;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
}

/* ---------- 13. Footer --------------------------------------------------- */
/* Deep shade of the brand blue rather than near-black, so the footer reads as
   part of the palette and separates from the almost-black CTA above it. */
.site-footer { background: var(--footer); }

.footer-link {
  position: relative;
  display: inline-block;
  color: #94a3b8;
  font-size: 0.9375rem;
  padding: 0.3125rem 0;
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}
.footer-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.3s var(--ease-out);
}
.footer-social:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-green);
}

/* ---------- 14. Utilities + a11y + responsive ---------------------------- */
/* Video lightbox */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(8, 20, 35, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  width: min(1000px, 100%);
  transform: scale(0.94);
  transition: transform 0.45s var(--ease-out);

  /* The page's chunky 10px scrollbar looks wrong inside a rounded dialog and
     collides with its corners. Give the dialog a slim, inset one instead, and
     stop scroll chaining to the page behind it. */
}

.modal-scroll {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.modal.open .modal-box { transform: scale(1); }

.modal-scroll::-webkit-scrollbar { width: 10px; }
.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 18px 0;            /* keeps the track clear of the rounded corners */
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: #d3dbe6;
  border-radius: 999px;
  border: 3px solid transparent;   /* inset the thumb from the edge */
  background-clip: content-box;
}
.modal-scroll::-webkit-scrollbar-thumb:hover { background: #b6c2d1; background-clip: content-box; }

/* Quote request form ------------------------------------------------------
   Scoped under #quote-form so nothing here can be flattened by a utility
   framework's form reset landing later in the cascade. */
#quote-form .form-label,
#quote-form legend.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--dark);
}
#quote-form .req { color: var(--secondary); }

#quote-form .form-input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e6ebf2;
  border-radius: 14px;
  background: #f4f6fa;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
#quote-form .form-input::placeholder { color: #9aa8b8; }
#quote-form .form-input:hover { border-color: #d7dfea; }
#quote-form .form-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.12);
}
#quote-form textarea.form-input {
  min-height: 108px;
  resize: vertical;
}
#quote-form .form-input.invalid {
  border-color: #ef4444;
  background: #fef4f4;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

#quote-form .form-error {
  margin-top: 0.4375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #dc2626;
}

/* Areas of interest — selectable cards rather than bare checkboxes */
#quote-form .check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8125rem 1rem;
  border: 1.5px solid #e6ebf2;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out);
}
#quote-form .check-row:hover {
  border-color: #cfe6d9;
  background: #fafcfb;
  transform: translateX(2px);
}
/* checked state — needs :has(), which every current browser ships */
#quote-form .check-row:has(input:checked) {
  border-color: var(--secondary);
  background: rgba(0, 166, 81, 0.06);
}

#quote-form .check-row input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
#quote-form .check-row input::after {
  content: "\2713";
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  transform: scale(0);
  transition: transform 0.2s var(--ease-out);
}
#quote-form .check-row input:checked {
  background: var(--secondary);
  border-color: var(--secondary);
}
#quote-form .check-row input:checked::after { transform: scale(1); }
#quote-form .check-row input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

#quote-form .check-row span {
  font-family: "Manrope", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

/* Skip link *//* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* Any focusable element gets a visible ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.no-scroll { overflow: hidden; }

/* Respect reduced-motion: kill all decorative motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-media video,
  .hero-media img { animation: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 20, 35, 0.9) 0%, rgba(8, 20, 35, 0.78) 45%, rgba(8, 20, 35, 0.95) 100%);
  }
  .mega { display: none; }
}

/* Mobile */
@media (max-width: 767px) {
  .timeline::before,
  .timeline-fill { left: 22px; }
  .step { gap: 1rem; }
  .step-dot { width: 46px; height: 46px; border-radius: 14px; }
  .quote-card { padding: 1.5rem; }
  .btn { padding: 0.875rem 1.5rem; }
  .marquee-track { gap: 2.5rem; padding-right: 2.5rem; }
}

/* =========================================================================
   14. INNER PAGES
   Page hero, breadcrumbs, editorial prose, feature cards, FAQ accordion,
   contact blocks and article lists. Shared by every page except index.html.
   ========================================================================= */

/* ---------- Page hero ---------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
}
.page-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.5;
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 20, 35, 0.96) 0%, rgba(8, 20, 35, 0.86) 45%, rgba(8, 20, 35, 0.7) 100%),
    radial-gradient(60% 70% at 88% 12%, rgba(0, 166, 81, 0.2) 0%, transparent 65%);
}
.page-hero .hero-grid { z-index: -1; opacity: 0.35; }

.h-page {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 800;
}
.h-sub {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

/* ---------- Breadcrumbs -------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before {
  content: "\f054";                    /* fa chevron-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}
.crumbs a { color: rgba(255, 255, 255, 0.65); transition: color 0.25s var(--ease-out); }
.crumbs a:hover { color: var(--secondary); }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Editorial prose ---------------------------------------------- */
.prose-ips > * + * { margin-top: 1.15rem; }
.prose-ips h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--dark);
  margin-top: 2.5rem;
}
.prose-ips h2:first-child { margin-top: 0; }
.prose-ips h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
}
.prose-ips p { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.prose-ips strong { color: var(--text); font-weight: 600; }
.prose-ips a:not(.btn) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 76, 129, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s var(--ease-out);
}
.prose-ips a:not(.btn):hover { text-decoration-color: var(--secondary); }
.prose-ips ul, .prose-ips ol { margin-top: 1.15rem; display: grid; gap: 0.75rem; }
.prose-ips ul > li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}
.prose-ips ul > li::before {
  content: "\f00c";                    /* fa check */
  position: absolute;
  left: 0;
  top: 0.28rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--secondary);
}
.prose-ips ol { counter-reset: ips; }
.prose-ips ol > li {
  counter-increment: ips;
  position: relative;
  padding-left: 2.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}
.prose-ips ol > li::before {
  content: counter(ips, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: "Space Grotesk", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Callout box inside prose */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-sm);
  background: #eef6fc;
  border-left: 3px solid var(--primary);
}
.callout--warn { background: #fff7ed; border-left-color: #f59e0b; }
.callout--ok   { background: #ecfdf3; border-left-color: var(--secondary); }
.callout i { flex: none; margin-top: 0.2rem; color: var(--primary); }
.callout--warn i { color: #f59e0b; }
.callout--ok i { color: var(--secondary); }
.callout p { font-size: 0.9375rem !important; line-height: 1.65 !important; margin: 0 !important; }

/* ---------- Feature cards ------------------------------------------------ */
.feat {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e8eef5;
  box-shadow: 0 1px 2px rgba(8, 20, 35, 0.04);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 166, 81, 0.35);
  box-shadow: 0 18px 40px rgba(8, 20, 35, 0.09);
}
.feat-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef6fc;
  color: var(--primary);
  font-size: 1rem;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.feat:hover .feat-ico { background: var(--secondary); color: #fff; }
.feat-title {
  margin-top: 1.15rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
}
.feat-copy { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.65; color: var(--muted); }

/* ---------- FAQ accordion ------------------------------------------------ */
.faq-q {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  text-align: left;
  font-family: "Manrope", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  transition: color 0.25s var(--ease-out);
}
.faq-q:hover { color: var(--primary); }
.faq-chev {
  flex: none;
  margin-top: 0.28rem;
  font-size: 0.8rem;
  color: var(--secondary);
}
.faq-a { padding: 0 0 1.5rem; font-size: 0.9688rem; line-height: 1.75; color: var(--muted); }
.faq-a p + p { margin-top: 0.85rem; }
.faq-a strong { color: var(--text); font-weight: 600; }
.faq-a a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Spec / compliance table -------------------------------------- */
.spec-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid #e8eef5; }
.spec { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
.spec th, .spec td { padding: 0.95rem 1.25rem; text-align: left; font-size: 0.9375rem; }
.spec thead th {
  background: var(--dark);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spec tbody tr + tr { border-top: 1px solid #eef2f7; }
.spec tbody td { color: var(--muted); }
.spec tbody td:first-child { color: var(--text); font-weight: 600; }
.spec tbody tr:hover { background: #f7f9fc; }

/* ---------- Contact info tiles ------------------------------------------- */
.contact-tile {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e8eef5;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(8, 20, 35, 0.08); }
.contact-tile i {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef6fc;
  color: var(--primary);
}

/* ---------- Article / news list ------------------------------------------ */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-media { position: relative; overflow: hidden; border-radius: 1rem 1rem 0 0; aspect-ratio: 16 / 9; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.post-card:hover .post-media img { transform: scale(1.06); }

/* ---------- Misc --------------------------------------------------------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-blue  { background: rgba(15, 76, 129, 0.1); color: var(--primary); }
.badge-green { background: rgba(0, 166, 81, 0.1); color: var(--secondary); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: #b45309; }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.anchor-nav a {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.25s var(--ease-out);
}
.anchor-nav a:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(0, 166, 81, 0.06); }

@media (max-width: 767px) {
  .prose-ips h2 { margin-top: 2rem; }
  .faq-q { font-size: 1rem; }
}
