/* =========================================================================
   APEX FRONTIER GROUP · HOMEPAGE STYLES
   -------------------------------------------------------------------------
   Styles specific to the homepage sections only. Cross-page primitives
   (container, buttons, header, footer, modal, toast) live in structure.css.
   Loaded AFTER colors_and_type.css and structure.css.
   ========================================================================= */

/* =========================================================================
   §2 · HERO
   ========================================================================= */
.apex-hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background-image: url(/images/apex/photos/operating-room.jpg);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.apex-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 20% 50%, rgba(0,152,193,0.18) 0%, transparent 60%),
    radial-gradient(80% 90% at 90% 100%, rgba(6,29,61,0.6) 0%, transparent 70%),
    linear-gradient(180deg, rgba(6,29,61,0.55) 0%, rgba(6,29,61,0.88) 100%);
  z-index: 1;
}
/* Faint grain for depth */
.apex-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.apex-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.apex-hero__h1 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--sky-300);
  margin: 0 0 var(--space-4);
  line-height: 1;
}
.apex-hero__title {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.04;
  color: #fff;
  margin: 0 0 var(--space-5);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.apex-hero__title em {
  font-style: italic;
  background: linear-gradient(180deg, #8FCFE0 0%, #4DB6D3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(143,207,224,0.25));
}
.apex-hero__lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--space-7);
  max-width: 560px;
}
.apex-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.apex-hero .apex-icon { fill: var(--sky-400); }
.apex-hero .apex-btn .apex-icon { fill: currentColor; }

/* Hero buttons get a slightly stronger glow */
.apex-hero__cta .apex-btn--primary {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 rgba(0,77,99,0.25) inset,
    0 12px 28px -8px rgba(0,152,193,0.45),
    0 4px 8px -2px rgba(0,77,99,0.20);
}
.apex-hero__cta .apex-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 rgba(0,77,99,0.25) inset,
    0 16px 36px -8px rgba(0,152,193,0.55),
    0 6px 12px -2px rgba(0,77,99,0.25);
}

/* =========================================================================
   §3 · OUR WHY  (full-bleed background image with white?sky gradient)
   ========================================================================= */
.apex-ourwhy {
  position: relative;
  background: #fff;
  overflow: hidden;
}
/* The photo — positioned in the RIGHT half of the section so the cover-cropping
   zooms in on the mask/patient (the source's center) rather than the gowns. */
.apex-ourwhy__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42%;
  right: 0;
  background: url(/images/apex/photos/anesthesia-mask.jpg) center / cover no-repeat;
  z-index: 0;
}
/* White-to-sky gradient veil. Lives over the LEFT edge of the photo so the
   transition from white text-area into the image is soft, not a hard line. */
.apex-ourwhy__veil {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 24%;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255,255,255,0.92) 35%,
    rgba(225,241,246,0.45) 75%,
    rgba(143,207,224,0) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.apex-ourwhy > .apex-container {
  position: relative;
  z-index: 2;
}
.apex-ourwhy__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-11);
  align-items: center;
  min-height: 460px;
}
.apex-ourwhy__copy { position: relative; z-index: 1; }
.apex-ourwhy__cta { margin-top: var(--space-7); }
/* Reserves the visual right column. Empty by design — image lives in the section bg. */
.apex-ourwhy__spacer {
  min-height: 360px;
  aria-hidden: true;
}

/* =========================================================================
   §4 · ABOUT + STATS
   ========================================================================= */
.apex-about { background: #fff; }
.apex-about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-11);
  align-items: center;
}
.apex-about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-7) var(--space-5);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(244,250,251,0.6)),
    var(--paper);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 1px 2px rgba(10,37,71,0.04),
    0 12px 40px -12px rgba(10,37,71,0.10),
    0 0 0 1px rgba(229,234,240,0.6);
}
.apex-stat {
  text-align: left;
  padding: var(--space-5) var(--space-3);
  border-left: 1px solid rgba(229,234,240,0.7);
  padding-left: var(--space-5);
}
.apex-stat:first-child { border-left: none; padding-left: 0; }
.apex-stat__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #E1F1F6 0%, #C5E7F0 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 1px rgba(0,152,193,0.10),
    0 4px 10px -4px rgba(0,152,193,0.20);
}
.apex-stat__icon .apex-icon { fill: var(--navy-800); }
.apex-stat__num {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.apex-stat__suffix { color: var(--sky-500); font-style: italic; }
.apex-stat__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: var(--space-2);
  line-height: 1.4;
}

/* =========================================================================
   §5 · PROCESS
   ========================================================================= */
.apex-process {
  background: var(--sky-50);
  position: relative;
}
.apex-process::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 50% 40%, rgba(0,152,193,0.05), transparent 70%);
  pointer-events: none;
}
.apex-process::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}
.apex-process__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-7);
  position: relative;
}
.apex-process__row::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 7%; right: 7%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,152,193,0.30) 15%, rgba(0,152,193,0.30) 85%, transparent 100%);
  z-index: 0;
}
.apex-step {
  display: grid;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}
.apex-step__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #E1F1F6 0%, #C5E7F0 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 4px var(--sky-50),
    0 0 0 5px rgba(0,152,193,0.18),
    0 6px 14px -4px rgba(0,152,193,0.25);
}
.apex-step__icon .apex-icon { fill: var(--navy-800); }
.apex-step__num {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #133A6B 0%, #061D3D 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  right: -6px; top: -6px;
  border: 2px solid #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.20) inset,
    0 2px 6px -1px rgba(6,29,61,0.40),
    0 0 0 2px #F4FAFB,
    0 0 0 3px rgba(0,152,193,0.20);
}
.apex-step__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.apex-step__body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0;
}

/* =========================================================================
   §6 · SERVICES
   ========================================================================= */
.apex-services { background: #fff; }
.apex-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* Services carousel — mirrors the Services Hub card slider */
.svc-scroller { scrollbar-width: none; -ms-overflow-style: none; }
.svc-scroller::-webkit-scrollbar { display: none; }
.svc-scroller > * { flex: 0 0 auto; scroll-snap-align: start; }
.svc-carousel { position: relative; padding: 0 58px; }
.svc-cards > * { width: 320px; }
.svc-arrow { transform: translateY(-50%); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.svc-arrow:hover  { transform: translateY(-50%) scale(1.08); }
.svc-arrow:active { transform: translateY(-50%) scale(0.94); }
@media (max-width: 600px) {
  .svc-carousel { padding: 0; }
  .svc-cards > * { width: 86%; }
}

/* Linked-service cards: visible "Learn more" button cue */
.apex-service { display: flex; flex-direction: column; }
.apex-service__cta {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  margin-top: auto; padding-top: var(--space-5);
}
.apex-service__cta-inner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--navy-800);
  background: rgba(0,152,193,0.10);
  box-shadow: inset 0 0 0 1px rgba(0,152,193,0.28);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.apex-service__cta-arrow { transition: transform var(--dur-base) var(--ease-out); }
.apex-service:hover .apex-service__cta-inner {
  background: linear-gradient(180deg, #133A6B 0%, #061D3D 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(6,29,61,0.25);
}
.apex-service:hover .apex-service__cta-arrow { transform: translateX(3px); }
.apex-service {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border-radius: 14px;
  padding: var(--space-7) var(--space-6) var(--space-6);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 1px 2px rgba(10,37,71,0.04),
    0 8px 24px -10px rgba(10,37,71,0.10),
    0 0 0 1px rgba(229,234,240,0.6);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.apex-service::before {
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--sky-500) 20%, var(--sky-500) 80%, transparent 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.apex-service:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 24px 48px -16px rgba(10,37,71,0.18),
    0 8px 16px -8px rgba(10,37,71,0.10),
    0 0 0 1px rgba(0,152,193,0.20);
}
.apex-service:hover::before { opacity: 1; }
.apex-service__shield {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #E1F1F6 0%, #C5E7F0 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 1px rgba(0,152,193,0.15),
    0 4px 10px -4px rgba(0,152,193,0.20);
  transition: transform var(--dur-base) var(--ease-out);
}
.apex-service:hover .apex-service__shield {
  transform: scale(1.06) rotate(-2deg);
}
.apex-service__shield .apex-icon { fill: var(--navy-800); }
.apex-service__title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-900);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}
.apex-service__body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-500);
  margin: 0;
}

/* =========================================================================
   §7 · SAFETY + TESTIMONIAL (dark band)
   ========================================================================= */.apex-safety {
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(0,152,193,0.20) 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(19,58,107,0.50) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6,29,61,0.94), rgba(4,18,42,0.96)),
    url(/images/apex/backgrounds/fabric-texture.jpg);
  background-size: cover;
  background-position: center;
  padding: var(--space-12) 0;
  color: #fff;
  position: relative;
}
.apex-safety::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.apex-safety > * { position: relative; z-index: 1; }
.apex-safety__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.apex-safety__chips {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-5);
}
.apex-safety__chip {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  color: rgba(255,255,255,0.9);
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}
.apex-safety__chip .apex-icon { fill: var(--sky-400); }
.apex-safety .apex-icon { fill: var(--sky-400); }

/* Right column: four value tiles (replaced the testimonial block) */
.apex-safety__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.apex-safety__value {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}
.apex-safety__value-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,152,193,0.18);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(77,182,211,0.30);
}
.apex-safety__value-icon .apex-icon { fill: var(--sky-300); }
.apex-safety__value-text { flex: 1; }
.apex-safety__value-title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 var(--space-2);
}
.apex-safety__value-body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* =========================================================================
   §8 · AREAS SERVED
   ========================================================================= */
.apex-areas {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(0,152,193,0.06), transparent 70%),
    var(--sky-50);
}

/* Dark-mode variant — navy gradient surface, light text, inverted pills */
.apex-areas--dark {
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(0,152,193,0.20) 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(19,58,107,0.50) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6,29,61,0.96), rgba(4,18,42,0.98));
  color: #fff;
}
.apex-areas--dark .apex-area-pill {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}
.apex-areas--dark .apex-area-pill .apex-icon { fill: var(--sky-400); }
.apex-areas--dark .apex-area-pill:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--sky-500) 0%, var(--sky-700) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 0 1px rgba(0,152,193,0.40),
    0 8px 20px -4px rgba(0,152,193,0.40);
}
.apex-areas--dark .apex-area-pill:hover .apex-icon { fill: #fff; }
.apex-areas--dark .apex-area-pill--ghost {
  background: transparent;
  color: rgba(255,255,255,0.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.apex-areas--dark .apex-area-pill--ghost:hover {
  background: transparent;
  color: #fff;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(0,152,193,0.50);
}

.apex-areas__row {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: center;
}
.apex-area-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-900);
  border: none;
  text-decoration: none;
  cursor: default;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 1px rgba(229,234,240,0.8),
    0 2px 6px -1px rgba(10,37,71,0.06);
  transition: all var(--dur-base) var(--ease-out);
}
.apex-area-pill .apex-icon {
  fill: var(--sky-500);
  transition: fill var(--dur-base) var(--ease-out);
}
.apex-area-pill:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #133A6B 0%, #061D3D 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 0 0 1px rgba(0,152,193,0.30),
    0 8px 20px -4px rgba(6,29,61,0.30);
}
.apex-area-pill:hover .apex-icon { fill: var(--sky-400); }

.apex-area-pill--ghost {
  background: transparent;
  color: var(--ink-500);
  font-style: italic;
  box-shadow: 0 0 0 1px rgba(229,234,240,0.6);
}
.apex-area-pill--ghost:hover {
  transform: none;
  background: transparent;
  color: var(--navy-900);
  box-shadow: 0 0 0 1px rgba(0,152,193,0.30);
}

/* =========================================================================
   §9 · CONTACT CTA (split image + dark panel)
   ========================================================================= */
.apex-cta {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #fff;
}
.apex-cta__image {
  background-image: url(/images/apex/photos/surgical-team.jpg);
  background-size: cover;
  background-position: center;
  min-height: 480px;
}
.apex-cta__panel {
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(0,152,193,0.22) 0%, transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(19,58,107,0.50) 0%, transparent 70%),
    linear-gradient(135deg, #061D3D 0%, #04122A 100%);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.apex-cta__panel::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.apex-cta__inner {
  padding: var(--space-13) var(--space-11) !important;
  max-width: 620px;
  margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Light-mode variant — white panel with soft sky gradient, dark text */
.apex-cta--light .apex-cta__panel {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(0,152,193,0.10) 0%, transparent 65%),
    radial-gradient(60% 70% at 0% 100%, rgba(225,241,246,0.6) 0%, transparent 70%),
    linear-gradient(135deg, #ffffff 0%, var(--sky-50) 100%);
}
.apex-cta--light .apex-cta__panel::after {
  display: none; /* no grain overlay on the light panel */
}
.apex-cta--light .apex-cta__list li { color: var(--ink-700); }
.apex-cta--light .apex-cta__list a { color: var(--ink-900); }
.apex-cta--light .apex-cta__list a:hover { color: var(--sky-700); }
.apex-cta--light .apex-icon { fill: var(--sky-500); }
.apex-cta--light .apex-cta__small { color: var(--ink-500); }
.apex-cta .apex-icon { fill: var(--sky-400); }
.apex-cta__list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 var(--space-6);
  font-family: var(--font-body);
  font-size: 14px;
}
.apex-cta__list li {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  color: rgba(255,255,255,0.85);
}
.apex-cta__list a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border: none;
}
.apex-cta__list a:hover { color: #fff; }
.apex-cta__action {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.apex-cta__action .apex-btn--primary {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 12px 28px -8px rgba(0,152,193,0.50),
    0 4px 8px -2px rgba(0,77,99,0.25);
}
.apex-cta__small {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* =========================================================================
   RESPONSIVE — homepage layouts
   ========================================================================= */
@media (max-width: 900px) {
  .apex-hero__title { font-size: 44px; }
  .apex-hero { min-height: 70vh; }
  /* Stack: text on top with white veil; photo fills the bottom half */
  .apex-ourwhy__photo {
    left: 0;
    top: 50%;
    right: 0;
    bottom: 0;
    background-position: center;
  }
  .apex-ourwhy__veil {
    left: 0;
    top: 40%;
    width: 100%;
    height: 25%;
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(255,255,255,0.92) 35%,
      rgba(225,241,246,0.45) 75%,
      rgba(143,207,224,0) 100%
    );
  }
  .apex-ourwhy__grid,
  .apex-about__grid,
  .apex-safety__grid,
  .apex-cta { grid-template-columns: 1fr; }
  .apex-ourwhy__grid { min-height: 0; }
  .apex-ourwhy__spacer { min-height: 240px; }
  .apex-services__grid,
  .apex-process__row { grid-template-columns: repeat(2, 1fr); }
  .apex-process__row::before { display: none; }
  .apex-about__stats { grid-template-columns: 1fr; }
  .apex-safety__values { grid-template-columns: 1fr; }

  /* Metrics: center text + drop the column dividers on mobile */
  .apex-about__stats { text-align: center; }
  .apex-stat {
    text-align: center;
    border-left: none;
    padding: var(--space-4) 0;
  }
  .apex-stat:first-child { padding-left: 0; }
  .apex-stat__icon { margin-left: auto; margin-right: auto; }
  .apex-stat__label { max-width: none; }

  /* Contact CTA: tighter inner padding so it doesn't feel huge stacked */
  .apex-cta__inner { padding: var(--space-9) var(--space-6) !important; }
  .apex-cta__image { min-height: 240px; }
}
}

@media (max-width: 560px) {
  .apex-services__grid { grid-template-columns: 1fr; }
}
