/* =============================================================
   DeltaCore Claims Adjusting — Design System
   Editorial premium · Trust & Authority · Insurance B2B
   ============================================================= */

/* ───── Fonts (self-hosted via assets/fonts) ───── */
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/public-sans-v21-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/public-sans-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/public-sans-v21-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/public-sans-v21-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/public-sans-v21-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/spectral-v15-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/spectral-v15-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/spectral-v15-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/spectral-v15-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/spectral-v15-latin-500italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/spectral-v15-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/spectral-v15-latin-700.woff2') format('woff2');
}

/* ───── Tokens ───── */
:root {
  /* Brand */
  --brand-blue:        #1B9FD4;
  --brand-blue-dark:   #0E7DAB;
  --brand-blue-deep:   #0A5475;
  --brand-blue-logo:   #42B4E9;   /* sampled from top half of D icon */
  --brand-orange:      #E8821A;
  --brand-orange-dark: #C46A14;
  --brand-orange-soft: #F4A455;

  /* Editorial palette */
  --ink:        #0A1628;   /* deep navy ink */
  --ink-2:      #1A2A3F;
  --graphite:   #2C3A4F;
  --slate:      #475569;
  --muted:      #6B7280;
  --line:       #E5E7EB;
  --line-soft:  #EEF1F5;
  --cream:      #FAF8F5;
  --cream-2:    #F5F2EC;
  --paper:      #FFFFFF;

  /* Fonts */
  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:    'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing rhythm */
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 9vw, 140px);
  --max-w: 1280px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.04), 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 22, 40, 0.12);
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-index scale */
  --z-raised: 10;
  --z-header:  100;
  --z-grain:   200;
}

/* ───── Page transitions (View Transitions API) ───── */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vt-out 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes vt-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Disable transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
/* Fallback for browsers without view transitions (e.g., Firefox):
   gentle fade-up on initial page load. */
@supports not (view-transition-name: root) {
  body { animation: page-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes page-enter {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper grain overlay — sitewide texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: multiply;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-orange); color: white; }

/* Visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ───── Utility ───── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section-cream { background: var(--cream-2); }
.section-ink { background: var(--ink); color: rgba(255,255,255,0.92); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand-orange);
}
.eyebrow.on-ink { color: var(--brand-orange-soft); }
.eyebrow.on-ink::before { background: var(--brand-orange-soft); }

/* ───── Type ───── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.04;
  color: var(--ink);
}
.display {
  font-size: clamp(36px, 4.86vw, 70px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.0;
}
.h1 { font-size: clamp(29px, 3.78vw, 52px); }
.h2 { font-size: clamp(23px, 2.88vw, 40px); }
.h3 { font-size: clamp(20px, 1.62vw, 23px); letter-spacing: -0.018em; }
.h4 { font-size: 17px; letter-spacing: -0.005em; }
.italic-accent { font-style: normal; font-weight: 700; color: var(--brand-blue-dark); }

.lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--slate);
  max-width: 56ch;
}
.body-l { font-size: 17px; line-height: 1.7; color: var(--graphite); }
.body { font-size: 15.5px; line-height: 1.7; color: var(--graphite); }
.small { font-size: 13px; line-height: 1.55; color: var(--muted); letter-spacing: 0.01em; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Editorial number marker */
.num {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-style: italic;
  color: var(--brand-orange);
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease), transform 140ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { transition: transform 250ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--brand-blue-deep); }

.btn-accent { background: var(--brand-orange); color: var(--ink); }
.btn-accent:hover { background: var(--brand-orange-dark); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: white; }

.btn-ghost-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: white; color: var(--ink); border-color: white; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 250ms var(--ease), color 250ms var(--ease);
}
.text-link:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.text-link svg { transition: transform 250ms var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ───── Utility bar (top) ───── */
.utility {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.utility a { color: rgba(255,255,255,0.7); transition: color 200ms var(--ease); display: inline-flex; align-items: center; gap: 7px; }
.utility a:hover { color: white; }
.utility a svg { width: 14px; height: 14px; opacity: 0.8; }

/* Skip link (keyboard accessibility) */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: var(--z-grain);
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ───── Header / Nav ───── */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}
.header.scrolled {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 6px 24px rgba(0,0,0,0.18);
}
/* Tighter horizontal padding inside the header — shifts brand further left */
.header .container { padding-inline: clamp(16px, 2.5vw, 40px); }
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 84px;
  gap: 24px;
}
.nav-inner > .brand     { justify-self: start; }
.nav-inner > nav        { justify-self: center; }
.nav-inner > .nav-cta   { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-icon {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 250ms var(--ease);
}
.brand:hover .brand-icon { transform: translateY(-1px) scale(1.03); }

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 6px;
}
.brand-text strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--brand-blue-logo);
  text-transform: uppercase;
}
.brand-text span {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-orange);
  text-align: center;
}

/* Footer brand: use the original full stacked logo PNG, hide the icon+wordmark lockup */
.footer-brand .brand-icon,
.footer-brand .brand-text { display: none; }
.footer-brand .brand-original {
  display: block;
  height: 96px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: color 200ms var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #FFFFFF; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--brand-orange-soft);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #FFFFFF;
  transition: transform 250ms var(--ease), opacity 200ms var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px var(--pad-x) 32px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ───── Page hero (inner pages) ───── */
.page-hero {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 7vw, 100px);
  position: relative;
  overflow: hidden;
}
.page-hero .display { max-width: 16ch; }
.page-hero .lead { margin-top: 28px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ───── Services — full-bleed editorial image hero ───── */
.services-image-hero {
  position: relative;
  width: 100%;
  height: clamp(360px, 52vh, 560px);
  height: clamp(360px, 52dvh, 560px);
  overflow: hidden;
  margin-bottom: clamp(40px, 5vw, 70px);
  background: var(--ink);
}
.services-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  display: block;
}
.services-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.42) 0%, rgba(10,22,40,0.05) 28%, rgba(10,22,40,0.0) 55%, rgba(10,22,40,0.55) 100%),
    linear-gradient(90deg, rgba(10,22,40,0.35) 0%, rgba(10,22,40,0.0) 45%);
  pointer-events: none;
}
.services-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(40px, 6vw, 80px);
}
.services-hero-masthead {
  max-width: 32ch;
}
.services-hero-masthead .eyebrow {
  margin-bottom: 18px;
  color: rgba(255,255,255,0.85);
}
.services-hero-masthead .eyebrow::before { background: var(--brand-orange); }
.services-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(43px, 6.3vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.018em;
  color: #fff;
  margin: 0;
}
.services-hero-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--brand-orange-soft);
}
@media (max-width: 700px) {
  .services-image-hero { height: clamp(380px, 60vh, 520px); height: clamp(380px, 60dvh, 520px); }
  .services-hero-title { font-size: clamp(36px, 9.9vw, 50px); }
}

/* ───── HOME — Hero (map-as-background, editorial scale) ───── */
.hero-home {
  position: relative;
  min-height: 68vh;
  min-height: 68dvh;
  display: flex;
  align-items: center;
  padding-block: clamp(36px, 4vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

/* Background photo layer — aerial of suburban neighborhood.
   Served via <picture> in markup so the browser can preload + pick
   a responsive WebP size, instead of the desktop JPG via CSS. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 55%;
  display: block;
}

/* Gradient overlay — keeps text crisp on the left, lets photo breathe on the right */
.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg,
    rgba(255,255,255,0.98) 0%,
    rgba(255,255,255,0.95) 24%,
    rgba(255,255,255,0.78) 40%,
    rgba(255,255,255,0.32) 60%,
    rgba(255,255,255,0.08) 78%,
    transparent 92%);
  z-index: 1;
}

.hero-home > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  max-width: 680px;
  position: relative;
}
.hero-text .eyebrow { margin-bottom: 28px; }
.hero-text .display {
  margin-bottom: 28px;
  font-size: clamp(38px, 5.04vw, 74px);
}
.hero-text .display em {
  font-style: normal;
  font-weight: 700;
  color: var(--brand-blue-dark);
}
.hero-text .lead { max-width: 560px; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
}

@media (max-width: 900px) {
  /* Hero photo sits behind the text at full opacity, fading in toward the bottom */
  .hero-home {
    min-height: 88vh;
    min-height: 88dvh;
    align-items: flex-start;
    padding-top: clamp(40px, 9vw, 64px);
  }
  .hero-bg img {
    object-position: center 40%;
    opacity: 1;
  }
  .hero-home::after {
    background: linear-gradient(180deg,
      var(--cream) 0%,
      var(--cream) 30%,
      rgba(250,248,245,0.92) 46%,
      rgba(250,248,245,0.6) 64%,
      rgba(250,248,245,0.2) 82%,
      rgba(250,248,245,0) 100%);
  }
  .hero-text .display { font-size: clamp(31px, 7.65vw, 54px); }
}

/* ───── Stats marquee (rotating banner) ───── */
.stats-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 32px;
  overflow: hidden;
  position: relative;
}
.stats-marquee::before,
.stats-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 12%;
  z-index: 2;
  pointer-events: none;
}
.stats-marquee::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.stats-marquee::after  { right: 0; background: linear-gradient(to left, var(--paper), transparent); }

.stats-track {
  display: flex;
  width: max-content;
  animation: stats-scroll 38s linear infinite;
  will-change: transform;
}
.stats-marquee:hover .stats-track { animation-play-state: paused; }

@keyframes stats-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .stats-track { animation: none; transform: translateX(0); }
}

.stat-cell {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 56px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.stat-n {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 56px;
  letter-spacing: -0.035em;
  line-height: 0.95;
  white-space: nowrap;
}
.stat-n em {
  font-style: italic;
  font-weight: 300;
  color: inherit;       /* unified color — no split */
  font-variation-settings: "opsz" 144;
}
.stat-l {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  max-width: 22ch;
  letter-spacing: 0.01em;
}

/* Alternating brand colors — refined (slightly muted orange) */
.stat-blue   .stat-n { color: var(--brand-blue-dark); }
.stat-orange .stat-n { color: var(--brand-orange-dark); }

@media (max-width: 700px) {
  .stat-cell { padding: 0 36px; gap: 16px; }
  .stat-n { font-size: 44px; }
  .stat-l { font-size: 12px; max-width: 18ch; }
  .stats-marquee::before,
  .stats-marquee::after { width: 8%; }
}

/* ───── Section header (editorial) ───── */
.section-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(50px, 5vw, 80px);
}
.section-head .h2 { max-width: 14ch; font-size: clamp(28px, 3.9vw, 54px); }
.section-head .lead { max-width: 50ch; text-align: center; margin-inline: auto; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head .lead { text-align: left; margin-inline: 0; }
}

/* ───── Service preview (home) ───── */
.svc-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.svc-preview .svc-card {
  padding: 40px 32px 32px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 300ms var(--ease);
}
.svc-preview .svc-card:nth-child(3n) { border-right: 0; padding-right: 0; }
.svc-preview .svc-card:nth-child(n+2) { padding-left: 32px; }
.svc-preview .svc-card:nth-child(3n+1) { padding-left: 0; }
.svc-preview .svc-card .num { display: block; margin-bottom: 24px; }
.svc-preview .svc-card .h3 { margin-bottom: 14px; }
.svc-preview .svc-card .body { margin-bottom: 28px; max-width: 38ch; }
.svc-preview .svc-card:hover .text-link { color: var(--brand-orange); border-color: var(--brand-orange); }
@media (max-width: 900px) {
  .svc-preview { grid-template-columns: 1fr; }
  .svc-preview .svc-card { border-right: 0; padding-left: 0 !important; padding-right: 0; }
}

/* ───── Coverage ───── */
.coverage-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .coverage-grid { grid-template-columns: 1fr; } }

.state-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--graphite);
}
.state-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.map-frame {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.map-frame img { width: 100%; height: auto; }
.map-frame .map-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.map-frame .map-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-frame .map-count {
  font-family: var(--font-display);
  font-size: 28px;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.map-frame .map-count em { font-style: italic; color: var(--brand-orange); font-weight: 300; }

/* ───── Team ───── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(80px, 8vw, 120px);
}
.team-member {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.team-member.reverse { grid-template-columns: 1fr 360px; }
.team-member.reverse .team-photo { order: 2; }
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--cream);
}
.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(10,22,40,0.05);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.team-member:hover .team-photo img { transform: scale(1.03); }

.team-info .tag { color: var(--brand-orange); }
.team-info h2 {
  font-family: var(--font-display);
  font-size: clamp(31px, 3.6vw, 49px);
  font-variation-settings: "opsz" 144;
  margin: 14px 0 8px;
  letter-spacing: -0.025em;
}
.team-info .role {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--brand-orange);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144;
}
.team-info .body-l { margin-bottom: 18px; max-width: 60ch; }

@media (max-width: 800px) {
  .team-member, .team-member.reverse { grid-template-columns: 220px 1fr; gap: 32px; }
  .team-member.reverse .team-photo { order: 0; }
}
@media (max-width: 600px) {
  .team-member, .team-member.reverse { grid-template-columns: 1fr; }
  .team-photo { max-width: 220px; }
}

/* ───── Forms ───── */
.form-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}
.form-group label .req { color: var(--brand-orange); margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(27,159,212,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.file-input {
  position: relative;
  display: block;
}
.file-input input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.file-input .file-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  background: var(--cream);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.file-input:hover .file-display { border-color: var(--brand-blue); background: white; }
.file-input .file-display svg { color: var(--brand-blue); flex-shrink: 0; }
.file-input .file-display .file-text { font-size: 14px; color: var(--graphite); }
.file-input .file-display .file-text em { color: var(--brand-orange); font-style: normal; font-weight: 500; }

.form-submit {
  width: 100%;
  background: var(--ink);
  color: white;
  padding: 16px 24px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
  margin-top: 8px;
}
.form-submit:hover { background: var(--brand-blue-deep); }
.form-submit:active { transform: scale(0.99); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  padding: 18px 20px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--r);
  color: #065F46;
  font-size: 14.5px;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

.form-success.is-error {
  background: #FEF3F2;
  border-color: #FECDCA;
  color: #B42318;
}
.form-error {
  display: block;
  color: #B42318;
  font-size: 12.5px;
  margin-top: 6px;
}
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #B42318;
}
.form-group input[aria-invalid="true"]:focus,
.form-group select[aria-invalid="true"]:focus,
.form-group textarea[aria-invalid="true"]:focus {
  border-color: #B42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}
.hp-field { display: none; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ───── Contact split ───── */
.contact-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }

.contact-info { padding-top: 8px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-card:first-child { border-top: 1px solid var(--line); }
.contact-card .ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-orange);
  flex-shrink: 0;
}
.contact-card .tag { margin-bottom: 4px; }
.contact-card a { color: var(--ink); font-size: 17px; font-weight: 500; transition: color 200ms var(--ease); }
.contact-card a:hover { color: var(--brand-orange); }
.contact-card .info { line-height: 1.4; }

/* ───── Perks (careers) ───── */
.perks {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.perk {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: start;
}
.perk-ico {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.perk h4 { margin-bottom: 6px; }
.perk p { color: var(--graphite); font-size: 14.5px; line-height: 1.6; }

/* ───── CTA strip ───── */
.cta-strip {
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 60%; height: 160%;
  background: radial-gradient(ellipse at center, rgba(27,159,212,0.16), transparent 60%);
  pointer-events: none;
}
.cta-strip::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -10%;
  width: 60%; height: 160%;
  background: radial-gradient(ellipse at center, rgba(232,130,26,0.10), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: left;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 60px;
  align-items: center;
}
.cta-inner .display { color: white; max-width: 16ch; }
.cta-inner .display em { color: var(--brand-orange-soft); font-style: normal; font-weight: 700; }
.cta-inner .lead { color: rgba(255,255,255,0.7); margin-top: 24px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-actions .btn { padding: 18px 28px; }
@media (max-width: 800px) {
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ───── About strip (home) ───── */
.about-strip {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-quote {
  position: relative;
  padding-left: 28px;
  border-left: 3px solid var(--brand-orange);
}
.about-quote .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 24px;
}
.about-quote .attr {
  display: flex; align-items: center; gap: 14px;
}
.about-quote .attr-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
}
.about-quote .attr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-quote .attr-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.about-quote .attr-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) {
  .about-strip { grid-template-columns: 1fr; gap: 40px; }
}

/* ───── Footer ───── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: clamp(60px, 7vw, 90px) 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;       /* center logo + text horizontally as one block */
  text-align: center;        /* center text inside the description */
}
.footer-brand .brand-original { margin-inline: auto; }
.footer-brand .small { color: rgba(255,255,255,0.55); max-width: 38ch; margin-inline: auto; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 200ms var(--ease);
}
.footer-col ul a:hover { color: white; }
.footer-col ul a.with-arrow { display: inline-flex; align-items: center; gap: 6px; }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: color 200ms var(--ease); }
.footer-bottom a:hover { color: white; }
.footer-legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-legal a { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ───── Privacy page ───── */
.policy {
  max-width: 640px;
  margin-inline: auto;
  padding-top: 80px;
  padding-bottom: 100px;
}
.policy h1 { margin-bottom: 14px; }
.policy .last-updated { color: var(--muted); font-size: 13.5px; letter-spacing: 0.04em; margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.policy h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.015em;
  margin-top: 48px;
  margin-bottom: 14px;
}
.policy p { font-size: 16px; line-height: 1.75; color: var(--graphite); margin-bottom: 16px; }
.policy ul { margin: 0 0 16px 22px; }
.policy ul li { font-size: 16px; line-height: 1.75; color: var(--graphite); margin-bottom: 6px; }

/* ───── Reveal animation ───── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }

/* ───── Mobile adjustments ───── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .utility-left .util-hide-mobile { display: none; }
}
@media (max-width: 600px) {
  .utility { font-size: 11.5px; }
  .utility-inner { height: 34px; }
  .utility-left, .utility-right { gap: 14px; }
  .nav-inner { height: 70px; }
  .brand { gap: 10px; }
  .brand-icon { height: 44px; }
  .brand-text strong { font-size: 20px; }
  .brand-text span { font-size: 8.5px; letter-spacing: 0.2em; }
}
/* hide subtitle on very small screens to keep things tight */
@media (max-width: 380px) {
  .brand-text span { display: none; }
}

/* ───── Utilities (extracted from inline styles) ───── */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure-36 { max-width: 36ch; }
.measure-50 { max-width: 50ch; }
.measure-60 { max-width: 60ch; }
.mt-6  { margin-top: 6px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }
.mb-6  { margin-bottom: 6px; }
.mb-18 { margin-bottom: 18px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.section-tight { padding-top: 24px; }
.section-snug  { padding-top: 40px; }
.coverage-top  { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 6vw, 90px); }
.section-cream-top { padding-top: clamp(60px, 7vw, 90px); }
.footer-place  { color: rgba(255,255,255,0.5); }
.label-hint    { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.contact-value { color: var(--ink); font-size: 17px; font-weight: 500; }
.policy-link   { color: var(--brand-blue-deep); text-decoration: underline; }
.text-link-lg  { font-size: 15px; }
.error-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
