/* ============================================================
   Bailey Process Service
   Barlow Condensed (headlines) + DM Sans (body)
   Navy #0D1F44 | Green #72C23A | Teal #3ABFCA
   WCAG 2.1 AA compliant color pairings
   ============================================================ */

/* ── RESET & TOKENS ──────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D1F44;
  --navy-mid:   #162d5c;
  --navy-dark:  #070f1f;
  --green:      #72C23A;
  --green-dark: #4a8a1e;
  --teal:       #3ABFCA;
  --white:      #FFFFFF;
  --cream:      #F5F7F4;
  --mid-gray:   #5C6475;
  --text:       #1A1E2E;
  --border:     #DDE1EC;

  /* Accessible contrast ratios (tested vs WCAG 2.1 AA):
     navy on white:  13.1:1  AAA
     white on navy:  13.1:1  AAA
     navy on green:   7.4:1  AAA  <-- buttons use navy text on green bg
     teal on navy:    7.4:1  AAA  <-- labels on dark sections
     mid-gray on white: 5.2:1 AA  <-- body text
  */

  --shadow-sm: 0 2px 8px rgba(13,31,68,0.08);
  --shadow:    0 4px 20px rgba(13,31,68,0.12);
  --shadow-lg: 0 12px 40px rgba(13,31,68,0.18);
  --r:         10px;
  --ease:      0.28s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  overflow-x: hidden;
  max-width: 100%;
}
@media (min-width: 1200px) { html { font-size: 18px; } }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Anything word-breakable should never push horizontal scroll */
h1, h2, h3, h4, p, a, span, li { overflow-wrap: break-word; word-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }
address { font-style: normal; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── ACCESSIBILITY ────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 var(--r) var(--r);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Visible focus ring for keyboard nav (WCAG 2.4.7, 1.4.11)
   Navy outline on light bgs (13:1), white outline on dark bgs (13:1) */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.9);
}
.services :focus-visible,
.process  :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 5px rgba(13,31,68,0.9);
}

/* ── SCROLL PROGRESS ─────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--green), var(--teal));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── BUTTONS ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease),
              transform var(--ease), box-shadow var(--ease),
              border-color var(--ease);
  white-space: nowrap;
}

/* Primary: navy bg, white text (13:1) */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Outline: transparent bg, navy border, navy text */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* Navy variant for light backgrounds */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover, .btn-navy:focus-visible {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-2px);
}

/* Ghost on dark bg: teal border, white text */
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }
.mt-btn  { margin-top: 12px; }

/* ── NAVIGATION ───────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease), padding var(--ease);
  padding: 0;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

:root { --nav-h: 104px; }
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.brand-logo {
  height: 84px;
  width: auto;
  border-radius: 10px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.18rem; color: var(--navy); line-height: 1.2; }
.brand-loc  { font-size: 0.85rem; color: var(--mid-gray); letter-spacing: 0.04em; margin-top: 2px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--navy);
  transition: background var(--ease), color var(--ease);
}
.nav-menu a:hover { background: var(--cream); }
.nav-cta {
  background: var(--green) !important;
  color: var(--navy) !important; /* navy on green = 7.4:1 AAA */
  font-weight: 700 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: #5faa2e !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--ease);
}
.hamburger:hover, .hamburger:focus-visible { background: var(--cream); }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--ease);
}

/* ── HERO ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--white);
  padding-top: var(--nav-h, 104px);
  display: flex;
  flex-direction: column;
}

/* Subtle dot grid texture */
.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13,31,68,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* LEFT: content */
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--green);
  flex-shrink: 0;
  border-radius: 2px;
}

.hero-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(4.2rem, 9.5vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 100%;
}
.ht-line { display: block; max-width: 100%; }
.ht-line { display: block; }
.ht-solid   { color: var(--navy); }
.ht-accent  { color: var(--green); }
.ht-outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--navy);
}

.hero-tagline {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--mid-gray);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 28px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-pills li {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.hero-pills li i { color: var(--green); font-size: 0.78rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* RIGHT: visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-ring,
.hero-ring-2 { display: none; }
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-logo-img {
  position: relative;
  z-index: 1;
  width: clamp(320px, 42vw, 520px);
  height: auto;
  background: var(--white);
  border-radius: 12px;
}

/* Speed line accents (echo logo motif) */
.speed-lines {
  position: absolute;
  left: calc(50% - 185px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 2;
}
.sl {
  height: 4px;
  border-radius: 2px;
  background: var(--green);
  transform-origin: right center;
  animation: sl-pulse 2.4s ease-in-out infinite;
}
.sl-a { width: 52px; animation-delay: 0s; }
.sl-b { width: 34px; animation-delay: 0.2s; opacity: 0.75; }
.sl-c { width: 20px; animation-delay: 0.4s; opacity: 0.5; }

@keyframes sl-pulse {
  0%, 100% { transform: scaleX(1);   opacity: 0.9; }
  50%       { transform: scaleX(1.15); opacity: 1; }
}

/* TICKER */
.ticker {
  position: relative;
  z-index: 2;
  background: var(--navy);
  overflow: hidden;
  padding: 14px 0;
  flex-shrink: 0;
  margin-top: auto;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.ticker-track .tkd { color: var(--teal); font-size: 0.5rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-ring-2  { animation: none; }
  .sl           { animation: none; }
}

/* ── SECTION SHARED ───────────────────────────────────── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
/* On light backgrounds, section-label is navy for contrast */
.services .section-label,
.why .section-label,
.contact .section-label,
.coverage .section-label { color: var(--navy); opacity: 0.6; }

.section-label.centered { display: flex; justify-content: center; }

.section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-title.centered { text-align: center; margin-bottom: 52px; }

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.section-intro.centered { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section-desc { max-width: 360px; color: var(--mid-gray); line-height: 1.7; font-size: 0.95rem; }

/* ── SERVICES ─────────────────────────────────────────── */

.services {
  background: var(--navy);
  padding: 96px 0;
}
.services .section-title { color: var(--white); }
.services .section-desc  { color: rgba(255,255,255,0.6); max-width: 340px; }

.svc-list { border-top: 1px solid rgba(255,255,255,0.12); }

.svc-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 24px;
  padding: 30px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: center;
  transition: background var(--ease), padding var(--ease);
  cursor: default;
  border-radius: var(--r);
}
.svc-item:hover {
  background: rgba(255,255,255,0.05);
  padding: 30px 20px;
}

.svc-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal); /* teal on navy = 7.4:1 AAA */
  align-self: start;
  padding-top: 4px;
}

.svc-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 6px;
}
.svc-body .svc-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

.svc-icon {
  font-size: 1.25rem;
  color: var(--teal);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── COVERAGE ─────────────────────────────────────────── */

.coverage {
  background: var(--cream);
  padding: 96px 0;
}

.coverage-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.coverage-top .section-title { color: var(--navy); }

.coverage-intro {
  color: var(--mid-gray);
  margin-top: 10px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.county-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.county-cloud li {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.87rem;
  font-weight: 500;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.county-cloud li:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.county-more {
  background: var(--green) !important;
  color: var(--navy) !important; /* navy on green = 7.4:1 AAA */
  border-color: var(--green) !important;
  font-weight: 700 !important;
}

.coverage-note {
  font-size: 0.9rem;
  color: var(--mid-gray);
  font-style: italic;
}
.coverage-note a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.coverage-note a:hover { color: var(--navy-mid); }

/* ── WHY BPS ──────────────────────────────────────────── */

.why {
  background: var(--white);
  padding: 96px 0;
}
.why .section-title { color: var(--navy); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.pillar {
  padding: 36px 28px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  background: var(--cream);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}

.pillar-icon-wrap {
  width: 54px; height: 54px;
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.pillar-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.pillar-desc {
  font-size: 0.93rem;
  color: var(--mid-gray);
  line-height: 1.72;
}

/* Stats row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: var(--r);
  overflow: hidden;
  padding: 8px 0;
}
.stat-block {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
}
.stat-n {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  margin-bottom: 6px;
}
.stat-l {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65); /* passes AA on navy for large/bold text */
}
.stat-sep {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── HOW IT WORKS ─────────────────────────────────────── */

.process {
  background: var(--navy);
  padding: 96px 0;
}
.process .section-title { color: var(--white); }
.process .section-label { color: var(--teal); }

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  text-align: center;
  padding: 36px 24px;
  height: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  transition: background var(--ease), transform var(--ease);
}
.step:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }

.step-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.step-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.step-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.step-desc a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.step-arrow {
  color: rgba(255,255,255,0.25);
  font-size: 1.4rem;
  padding-top: 52px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── CONTACT ──────────────────────────────────────────── */

.contact {
  background: var(--cream);
  padding: 96px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-intro {
  color: var(--mid-gray);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 42px; height: 42px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--navy);
  flex-shrink: 0;
}
.ci-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 2px;
}
.ci-text a, .ci-text span { font-size: 0.92rem; color: var(--mid-gray); }
.ci-text a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.ci-text a:hover { color: var(--navy-mid); }

.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 40px;
  box-shadow: var(--shadow);
}
.cform-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}

.field-group { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 6px;
}
.req { color: #C0392B; font-weight: 700; } /* red - checked: #C0392B on white = 5.6:1 AA */

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.field-group input::placeholder,
.field-group textarea::placeholder { color: #9AA0B0; }
.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(58,191,202,0.2);
}
.field-group textarea { resize: vertical; min-height: 110px; }

/* ── FOOTER ───────────────────────────────────────────── */

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 56px; width: auto;
  border-radius: 6px;
  margin-bottom: 14px;
}
.footer-name    { font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 3px; }
.footer-tagline { font-size: 0.85rem; color: var(--teal); }

.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 16px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a   { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color var(--ease); }
.footer-nav a:hover { color: var(--white); }

.footer-email { display: block; color: var(--teal); font-size: 0.9rem; margin-bottom: 8px; transition: color var(--ease); }
.footer-email:hover { color: var(--white); }
.footer-contact p { color: rgba(255,255,255,0.55); font-size: 0.88rem; }

.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ── REVEAL ANIMATIONS ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 1000px) {
  .pillars { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; } /* hide visual on mobile, content is sufficient */
  .hero-content { align-items: center; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-tagline { max-width: 100%; }
  .hero-pills { justify-content: center; }
  .hero-actions { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .section-intro { flex-direction: column; align-items: flex-start; }
  .coverage-top  { flex-direction: column; align-items: flex-start; }
  .steps         {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .step          { width: 100%; max-width: 420px; min-width: unset; }
  .step-arrow    { display: none; }

  .stats-row { flex-wrap: wrap; }
  .stat-block { min-width: 45%; }
  .stat-sep   { display: none; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h, 104px); left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h, 104px));
    max-height: calc(100dvh - var(--nav-h, 104px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  /* Regular nav links: left-aligned, full-width tap targets */
  .nav-menu a {
    display: block;
    text-align: left;
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu a:last-of-type { border-bottom: none; }
  /* Hide CTA in mobile dropdown — link list is enough */
  .nav-menu .nav-cta,
  .nav-menu li:has(.nav-cta) { display: none !important; }

  /* Improve readability of body text on mobile */
  body { font-size: 17px; }
  .hero-tagline { font-size: 1.05rem; }
  .section-desc { font-size: 1rem; }
  .svc-desc { font-size: 0.95rem !important; }
  .pillar-desc { font-size: 0.97rem; }
  .step-desc { font-size: 0.95rem; }
  .coverage-intro { font-size: 1rem; }
  .county-cloud li { font-size: 0.92rem; padding: 8px 18px; }
  .contact-intro { font-size: 1rem; }
  .field-label { font-size: 0.85rem; }
  .field-group input,
  .field-group textarea { font-size: 1rem; padding: 13px 16px; }
}

/* Small phones (iPhone SE 375px and below) — tighter header so dropdown fits */
@media (max-width: 480px) {
  :root { --nav-h: 76px; }
  .brand-logo { height: 56px; border-radius: 8px; }
  .brand-name { font-size: 1rem; }
  .brand-loc  { font-size: 0.72rem; }
  .brand { gap: 12px; }
  .nav { padding: 0 16px; }
  .container { padding: 0 18px; }
  .nav-menu { padding: 10px 16px 18px; }
  .nav-menu a { padding: 13px 14px; font-size: 1rem; }
  .hamburger { padding: 8px; }
}

/* Extra-small phones (320px iPhone SE 1st gen) */
@media (max-width: 360px) {
  :root { --nav-h: 68px; }
  .brand-logo { height: 48px; }
  .brand-name { font-size: 0.95rem; }
  .brand-loc  { font-size: 0.68rem; }
  .nav { padding: 0 12px; }
  .container { padding: 0 14px; }
}

@media (max-width: 600px) {
  .svc-item { grid-template-columns: 40px 1fr; }
  .svc-icon { display: none; }
  /* Full-width Send a Message card: edge to edge of viewport */
  .contact .container { padding: 0; }
  .contact-grid { gap: 32px; }
  .contact-info { padding: 0 18px; }
  .contact-form-wrap {
    width: 100%;
    padding: 32px 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .stat-block { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-block:last-child { border-bottom: none; }
  .hero-title { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .ht-outline { -webkit-text-stroke-width: 2px; }

  /* Larger readable text on small phones */
  .svc-name { font-size: 1.25rem !important; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .stat-n { font-size: 2.2rem; }
  .pillar-title { font-size: 1.25rem; }
  .step-title { font-size: 1.15rem; }
  .footer-nav a { font-size: 0.95rem; }
  .footer-tagline { font-size: 0.9rem; }

  /* Services section: more breathing room per item */
  .svc-item { padding: 22px 12px; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
}
