/* =========================================================
   Capital Service Group — Design System
   Palette: CSG brand guidelines — Carbon, Clean Emerald, Pewter, Silver Mist, Clean White (2026-09-17). Type: Inter.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-600);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --navy:        #1C1E1D;   /* Carbon: hero, dark bands, footer */
  --navy-mid:    #2A2C2B;
  --brand:       #006B54;   /* emerald darkened: SMALL green text on light ONLY (under 24px, or under 18.66px bold).
                               The exact logo green is 4.31:1 on --gray-50 and fails AA at those sizes; this is 6.15:1 */
  --emerald:     #00866A;   /* Clean Emerald — the exact logo green (csg-horiz.svg, csg-logo.png). Every fill that carries
                               white text, every icon and rule, and any display text >=24px or >=18.66px bold. White on
                               this is 4.55:1 (AA) and it is 4.31:1 as a graphic, well over the 3:1 non-text floor */
  --brand-dark:  #005240;
  --accent:      #00866A;   /* button fills. Matched to the logo 2026-09-22 on Evan's review: white on #00866A is
                               4.55:1, so the fill next to the logo is identical and AA still holds */
  --accent-ink:  #FFFFFF;
  --accent-light:#7FD1B9;   /* mint: eyebrows + highlights on dark (derived tint of Clean Emerald) */
  --tint:        #EBF5F3;   /* icon wells, chips, soft fills */
  --ink:         #1C1E1D;   /* Carbon: headings */
  --slate:       #5F6865;
  --white:       #ffffff;
  --gray-50:     #F8F9F7;   /* Clean White */
  --gray-100:    #E4E7E5;
  --gray-200:    #D5D9D6;   /* Silver Mist */
  --gray-400:    #7C8582;   /* Pewter: 3.59:1 on white — captions >=18px, borders, icons only */
  --gray-600:    #4A4F4D;
  --gray-700:    #383B3A;
  --heading:     var(--ink);
  --font-display:'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* guidelines: Inter Bold h1 / Semi-Bold h2. Halogen Flare is named for headlines but unlicensed — add @font-face + prepend it here when the web license lands */
  --r:           8px;
  --r-lg:        16px;
  --r-xl:        24px;
  --shadow-sm:   0 2px 8px rgba(28,30,29,0.06);
  --shadow:      0 4px 24px rgba(28,30,29,0.09);
  --shadow-lg:   0 12px 48px rgba(28,30,29,0.14);
  --shadow-xl:   0 24px 80px rgba(28,30,29,0.18);
  --max-w:       1200px;
  --t:           0.18s ease;
  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
}

/* ── Layout Helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; font-family: var(--font-display); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-family: var(--font-display); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--emerald);
  border-radius: 2px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--t);
  white-space: nowrap;
  position: relative;
}

/* Button fills carry WHITE text, which is the reverse pairing from green-on-light: white on the exact
   logo green is 4.55:1 and passes AA, so these never needed the darkened emerald. Hover darkens to
   --brand, which is the same green the small text uses. */
.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,134,106,0.35);
}
.btn-primary:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,134,106,0.35);
}
/* Heroes and bands take the same logo green as every other button */
.hero .btn-primary, .page-hero .btn-primary, .cta-band .btn-primary, .testimonial-wrap .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 3px rgba(0,134,106,0.35);
}
.hero .btn-primary:hover, .page-hero .btn-primary:hover, .cta-band .btn-primary:hover {
  background: var(--brand);
  box-shadow: 0 4px 16px rgba(0,134,106,0.35);
}

/* Named for the dark surfaces it was built for; all 39 instances now sit on light grounds.
   Kept as a class name so the markup did not have to change on 24 pages. */
.btn-outline-white {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--gray-200);
}
.btn-outline-white:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--ink);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.nav.scrolled {
  border-color: var(--gray-100);
  box-shadow: 0 1px 12px rgba(28,30,29,0.08);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}
@media (max-width: 768px) { .nav-container { padding: 0 20px; } }

.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #4A4F4D;
  border-radius: 6px;
  transition: all var(--t);
  cursor: pointer;
}
.nav-link:hover { color: var(--navy); background: var(--gray-50); }

.nav-chevron {
  width: 16px; height: 16px;
  transition: transform var(--t);
  flex-shrink: 0;
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Mega dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 520px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: 20px 12px 12px; /* extra top padding bridges the gap */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
/* Invisible hover bridge — keeps dropdown alive while mouse travels down */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -24px;
  right: -24px;
  height: 10px;
  background: transparent;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: 8px; /* inside the padding area */
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--gray-100);
  border-top: none;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background var(--t);
  color: var(--gray-700);
}
.dropdown a:hover { background: var(--gray-50); }
.dd-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--tint); color: var(--emerald); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dd-svg { width: 18px; height: 18px; }
.dd-text strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--heading); line-height: 1.2; }
.dd-text small { display: block; font-size: 0.75rem; color: var(--gray-400); margin-top: 2px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--emerald);
  color: #fff;
  transition: all var(--t);
  box-shadow: 0 1px 3px rgba(0,134,106,0.4);
}
.btn-nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.28s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  overflow-y: auto;
  z-index: 99;
  border-top: 1px solid var(--gray-100);
  padding: 16px 20px 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 13px 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 20px 8px 4px;
}
.mobile-cta {
  margin-top: 20px;
  background: var(--emerald);
  color: #fff !important;
  border-radius: 6px;
  text-align: center;
  border: none !important;
  padding: 16px !important;
  font-weight: 700 !important;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #F4F8F6 0%, #F8F9F7 48%, #F6F9F7 100%);
  overflow: hidden;
  padding: 44px 0 40px;
}

/* Depth behind the hero: soft emerald and mint washes that drift slowly over the light
   ground. prefers-reduced-motion stops the drift (global rule). The diagonal white sheen
   and the bottom vignette that used to sit in ::after are gone — both only read on dark. */
.hero::before, .page-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 34% 42% at 78% 18%, rgba(0,134,106,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 14% 92%, rgba(127,209,185,0.12) 0%, transparent 70%);
  animation: hero-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2.5%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -2.5%, 0) scale(1.02); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content h1 {
  color: var(--ink);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero-content h1 em { font-style: normal; color: var(--emerald); }  /* 40.8px bold is large text: 3:1 floor, so the logo green fits */

.hero-lead {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.hero-stats .stat { padding: 4px 24px 4px 0; }
.hero-stats .stat + .stat { padding-left: 24px; border-left: 1px solid var(--gray-200); }
.stat { }
.stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  font-weight: 500;
}
.star-row {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}
.star-row svg { width: 14px; height: 14px; fill: #fbbf24; }

/* ── Logos Bar ──────────────────────────────────────────── */
.logos-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 32px 0 30px;
}
.logos-bar-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 20px;
}
/* Stripe-style infinite scroll */
.logos-scroller {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: logos-scroll 48s linear infinite;
}
.logos-set { display: flex; align-items: flex-start; gap: 72px; padding-right: 72px; flex-shrink: 0; }
.logo-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-item img {
  height: 52px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: all var(--t);
  object-fit: contain;
  flex-shrink: 0;
}
.logo-item:hover img { opacity: 1; filter: grayscale(0%); }
.logo-item figcaption { font-size: 0.75rem; font-weight: 600; letter-spacing: .04em; color: var(--gray-400); white-space: nowrap; }
.logos-scroller:hover .logos-track { animation-play-state: paused; }
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-lg { padding: 112px 0; }
.section-alt { background: var(--gray-50); }   /* unused in markup; kept light so it cannot reintroduce a dark band */

.section-header { margin-bottom: 44px; }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: 16px; }
.section-header .lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 580px;
}
.section-header.center .lead { margin: 0 auto; }

/* ── Three Pillar Cards ─────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* ── Industry/Solution Grid Cards ───────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.icard {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t);
  color: inherit;
}
.icard:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); border-color: var(--gray-200); }

.icard-img {
  height: 155px;
  overflow: hidden;
  position: relative;
}
.icard-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.icard:hover .icard-img img { transform: scale(1.04); }

.icard-body { padding: 18px 20px; }
.icard-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--heading); }
.icard-body p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }
.icard-arrow {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.icard-arrow span { font-size: 0.8125rem; font-weight: 700; color: var(--brand); }
.icard-arrow svg {
  width: 16px; height: 16px; color: var(--emerald);
  transition: transform var(--t);
}
.icard:hover .icard-arrow svg { transform: translateX(5px); }

/* ── Feature cards (services section) ──────────────────── */
.feat-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--t);
}
.feat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--gray-200); }
.feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--brand);
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.feat-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }

/* ── Two Column Layout ──────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child  { order: 1; }

/* ── Feature List ───────────────────────────────────────── */
.feat-list { display: flex; flex-direction: column; gap: 22px; }
.feat-row { display: flex; gap: 16px; align-items: flex-start; }
.feat-check {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px;
  background: var(--emerald);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.feat-check svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 3; fill: none; }
.feat-row h3 { font-size: 0.9375rem; margin-bottom: 4px; color: var(--heading); }
.feat-row p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }
/* ── Photo Grid ─────────────────────────────────────────── */

/* ── Testimonial ────────────────────────────────────────── */
.testimonial-wrap {
  background: linear-gradient(135deg, #F4F8F6 0%, #F8F9F7 48%, #F6F9F7 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.testimonial-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 60% 50%, rgba(0,134,106,0.07) 0%, transparent 70%);
}
.testimonial-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.testimonial-inner blockquote {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--ink);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 40px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.t-name { font-weight: 700; color: var(--ink); font-size: 0.9375rem; }
.t-role { font-size: 0.8125rem; color: var(--gray-600); margin-top: 2px; }
.t-stars { display: flex; gap: 3px; justify-content: center; margin-bottom: 24px; }
.t-stars svg { width: 18px; height: 18px; fill: #fbbf24; }

/* ── CTA Band ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(180deg, #E6F2EE 0%, #DDEEE8 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 90% at 88% 40%, rgba(0,134,106,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 8% 80%, rgba(255,255,255,0.55) 0%, transparent 70%);
}
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ink); margin-bottom: 16px; }
.cta-band p { color: var(--gray-600); font-size: 1.125rem; margin-bottom: 44px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-band .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero (Inner Pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #F4F8F6 0%, #F8F9F7 48%, #F6F9F7 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--gray-600); transition: color var(--t); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--gray-400); }
.page-hero h1 { color: var(--ink); margin-bottom: 20px; }
.page-hero p { color: var(--gray-600); line-height: 1.75; }
.page-hero .hero-lead { font-size: 1.125rem; color: var(--gray-600); line-height: 1.75; max-width: 600px; }
.page-hero .hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
/* ── Areas Grid ─────────────────────────────────────────── */

/* ── Service Area ───────────────────────────────────────── */
.sa-layout { display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:center; }
/* ── SC service-area map ────────────────────────────────── */
.sc-map { width:100%; height:auto; display:block; }
.sc-map-wrap { max-width:660px; margin:4px auto 0; }
.sa-lists { max-width:880px; margin:34px auto 0; text-align:center; }
.sa-chips { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0 0; }
.sa-chip {
  display:inline-block; padding:7px 14px; background:#fff;
  border:1px solid var(--gray-100); border-radius:999px;
  font-size:0.875rem; font-weight:500; color:var(--gray-700);
  text-decoration:none; transition:all .15s;
}
/* hover moved to a.sa-chip in the 2026-09-09 template block below */
@media (max-width: 900px) { .sa-layout { grid-template-columns:1fr; gap:32px; } }

/* ── FAQ + Prose blocks ─────────────────────────────────── */
.prose { max-width: 820px; }
.prose p { color: var(--gray-600); line-height: 1.85; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { color: var(--heading); font-size: 1.15rem; margin: 32px 0 12px; }
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--r); padding: 24px 28px;
}
.faq-item h3 {
  color: var(--heading); font-size: 1.0625rem; font-weight: 700;
  line-height: 1.45; margin-bottom: 10px;
}
.faq-item p { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.8; margin: 0; }
@media (max-width: 640px) { .faq-item { padding: 20px 20px; } }

/* ── Contact Form ───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--gray-600); line-height: 1.8; margin-bottom: 44px; }
.contact-detail {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px;
}
.c-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.c-icon svg { width: 20px; height: 20px; }
.contact-detail strong { display: block; font-size: 0.875rem; color: var(--heading); margin-bottom: 3px; }
.contact-detail span { font-size: 0.875rem; color: var(--gray-600); }

.form-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--heading); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  font-size: 0.9375rem;
  color: var(--heading);
  background: #fff;
  transition: all var(--t);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(0,134,106,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238898aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 16px 28px; border-radius: var(--r); }
.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success.visible { display: block; }
.form-success svg { width: 48px; height: 48px; color: #00866A; margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--gray-600); }
/* ── Careers Perks ──────────────────────────────────────── */

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: ''; position: absolute; left: 14px;
  top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--emerald), transparent);
}
.tl-item { position: relative; margin-bottom: 40px; }
.tl-dot {
  position: absolute; left: -38px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--emerald); border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--emerald);
}
.tl-year {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--brand); margin-bottom: 4px;
}
.tl-item h3 { font-size: 1rem; margin-bottom: 6px; }
.tl-item p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }

/* ── Stats Block ────────────────────────────────────────── */
.stats-block {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2px;
  background: var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-box {
  background: #fff; padding: 36px; text-align: center;
}
.stat-box .num {
  font-size: 2.5rem; font-weight: 800;
  color: var(--emerald); letter-spacing: -0.03em; display: block;   /* 40px/800 is large text: 3:1 floor */
}
.stat-box .lbl { font-size: 0.8125rem; color: var(--gray-600); margin-top: 4px; font-weight: 500; }
a.stat-box { display:block; transition: box-shadow .15s, transform .15s; }
a.stat-box:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
a.stat-box:hover .lbl { color: var(--brand); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #F1F3F2;
  padding: 80px 0 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--gray-200);
}
.footer-logo { height: 40px; width: auto; margin-bottom: 20px; }
.footer-brand p {
  font-size: 0.875rem; color: var(--gray-600);
  line-height: 1.75; max-width: 260px;
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--gray-700);
}
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col h2 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.875rem; color: var(--gray-600);
  transition: color var(--t);
}
.footer-col ul a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* ── About page hero image ──────────────────────────────── */
.rounded-img {
  width: 100%; height: 420px;
  object-fit: cover;
  border-radius: var(--r-xl);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { gap: 36px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col.reverse > :first-child { order: 0; }
  .two-col.reverse > :last-child  { order: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; }
  .stat-num { font-size: 1.75rem; }
  .pillars { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .logos-set { gap: 40px; padding-right: 40px; }
  .logo-item img { height: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .hero-actions .btn-outline-white { justify-content: center; width: 100%; }
  .page-hero { padding: 56px 0 44px; }
  .page-hero .hero-actions { flex-direction: column; }
  .cta-band { padding: 52px 0; }
  .cta-band .btn-group { flex-direction: column; align-items: center; }
  .testimonial-wrap { padding: 52px 0; }
  .section-header { margin-bottom: 32px; }
  .icard-img { height: 130px; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .stats-block { grid-template-columns: 1fr; }
}

/* ── Areas: locale cards + client slider ────────────────── */
.loc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.loc-card {
  background:#fff; border:1px solid var(--gray-100); border-radius:var(--r);
  padding:22px 24px; scroll-margin-top:100px;
}
.loc-card h3 { font-size:1.0625rem; font-weight:700; color:var(--heading); margin-bottom:8px; }
.loc-card p { font-size:0.875rem; color:var(--gray-600); line-height:1.7; }
.svc-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.svc-tag {
  display:inline-block; padding:4px 10px; border-radius:999px;
  background:var(--gray-50); border:1px solid var(--gray-100);
  font-size:0.75rem; font-weight:600; color:var(--gray-600); white-space:nowrap;
}

.loc-slider-wrap { position:relative; }
.loc-slider {
  display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 48px) / 3);
  gap:24px; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; padding:4px; margin:-4px;
  scrollbar-width:thin;
}
.loc-slider:focus-visible { outline:2px solid var(--emerald); outline-offset:4px; }
.loc-slide {
  scroll-snap-align:start;
  background:#fff; border:1px solid var(--gray-100); border-radius:var(--r);
  box-shadow:var(--shadow-sm); overflow:hidden;
  display:flex; flex-direction:column; transition:box-shadow .18s, transform .18s;
}
.loc-slide:hover { box-shadow:var(--shadow-lg); transform:translateY(-3px); }
/* Spotlight art is a real client photo as of 2026-09-09 (was a gradient div
   with a 44px line icon). Images ship pre-cropped to 16:9 at 880x495. */
.loc-slide-art {
  width:100%; height:auto; aspect-ratio:16/9; object-fit:cover;
  display:block; flex-shrink:0;
}
.loc-slide-inner { padding:22px 26px 24px; display:flex; flex-direction:column; flex:1; }
.loc-slide-locale {
  font-size:0.6875rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:var(--brand); margin-bottom:10px;
}
.loc-slide h3 { font-size:1.125rem; font-weight:700; color:var(--heading); line-height:1.3; }
.loc-slide-biz { font-size:0.8125rem; font-weight:600; color:var(--gray-400); margin:4px 0 14px; }
.loc-slide p { font-size:0.875rem; color:var(--gray-600); line-height:1.7; flex:1; }
.loc-slider-btn {
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:44px; height:44px; border-radius:50%;
  background:#fff; border:1px solid var(--gray-100); box-shadow:var(--shadow);
  display:flex; align-items:center; justify-content:center; color:var(--heading);
  transition:all .15s;
}
.loc-slider-btn svg { width:20px; height:20px; }
.loc-slider-btn:hover { border-color:var(--brand); color:var(--brand); }
.loc-slider-btn[disabled] { opacity:.3; cursor:default; }
.loc-slider-btn.prev { left:-22px; }
.loc-slider-btn.next { right:-22px; }

@media (max-width: 1024px) {
  .loc-grid { grid-template-columns:repeat(2,1fr); }
  .loc-slider { grid-auto-columns:calc((100% - 24px) / 2); }
  .loc-slider-btn { display:none; }
}
@media (max-width: 768px) {
  .loc-grid { grid-template-columns:1fr; }
  .loc-slider { grid-auto-columns:88%; }
}

/* ── Motion: reveal on scroll (progressive enhancement) ─── */
/* Hidden state exists ONLY under html.js, so pages stay fully visible with JS off. */
html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); will-change: opacity, transform; }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Design phase: homepage components ─────────────────── */
.eyebrow-light { color: var(--brand); }
.eyebrow-light::before { background: var(--emerald); }
.hero { padding: 72px 0 64px; }
.hero-inner { grid-template-columns: 1.2fr .8fr; gap: 56px; }
.hero-content h1 { font-size: clamp(2.1rem, 3.2vw, 2.9rem); }
.hero-content h1 em { white-space: nowrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--hero-focus, 50% 50%); border-radius: var(--r-lg); box-shadow: 0 18px 40px rgba(28,30,29,0.14); }
.hero-review {
  position: absolute; right: -20px; bottom: -22px; display: grid; gap: 4px;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 18px;
  border: 1px solid var(--gray-100);   /* a white card needs an edge once the ground is light */
  box-shadow: var(--shadow-lg); max-width: 300px; transition: transform var(--t), box-shadow var(--t);
}
.hero-review:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.hero-review .star-row { margin: 0 0 2px; }
.hero-review strong { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.hero-review > span:last-child { font-size: 0.8125rem; color: var(--gray-600); line-height: 1.4; }
.hero-stats .stat-label { color: var(--gray-600); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-lead h2 { margin-bottom: 16px; }
.split-lead .lead { font-size: 1.125rem; color: var(--gray-600); line-height: 1.75; }
.split-photo { margin: 32px 0 0; }
.split-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.split-photo figcaption { font-size: 0.8125rem; color: var(--gray-400); margin-top: 10px; }

.pillar-list { counter-reset: none; display: flex; flex-direction: column; }
.pillar-list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--gray-100); }
.pillar-list li:last-child { border-bottom: 1px solid var(--gray-100); }
.pillar-list .num { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; color: var(--emerald); letter-spacing: -0.02em; line-height: 1; padding-top: 4px; }
.pillar-list h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pillar-list p { font-size: 1rem; line-height: 1.75; color: var(--gray-600); }

.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.icard-img { height: auto; aspect-ratio: 3 / 2; }
.icard-body h3 { font-size: 1.0625rem; }
.icard-body p { font-size: 0.9375rem; }

.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--gray-100); }
.svc-row { display: flex; align-items: center; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--gray-100); color: inherit; transition: background var(--t), padding var(--t); }
.svc-row:hover { background: var(--gray-50); padding-left: 12px; }
.svc-row-text { flex: 1; display: grid; gap: 4px; }
.svc-row-text strong { font-size: 1.125rem; color: var(--heading); font-weight: 700; }
.svc-row-text span { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }
.svc-row svg { width: 20px; height: 20px; color: var(--emerald); flex-shrink: 0; transition: transform var(--t); }
.svc-row:hover svg { transform: translateX(4px); }

.testimonial-inner blockquote { font-style: normal; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.t-name { font-size: 1rem; }

@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { display: block; margin-bottom: 24px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 0 44px; }
  .hero-content h1 em { white-space: normal; }
  .hero-br { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats .stat { padding-right: 10px; }
  .hero-stats .stat + .stat { padding-left: 12px; }
  .hero-stats .stat-num { font-size: 1.5rem; }
  .hero-stats .stat-label { font-size: 0.75rem; }
  .hero-review { position: static; margin-top: 16px; max-width: none; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pillar-list li { grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; }
  .pillar-list .num { font-size: 1.375rem; }
  .section-lg { padding: 64px 0; }
}
@media (max-width: 480px) { .grid-5 { grid-template-columns: 1fr; } }

/* Industry cards: equal title rows on desktop, compact list rows on phones */
.grid-5 .icard-body h3 { min-height: 2.5em; display: flex; align-items: flex-end; }
@media (max-width: 480px) {
  .grid-5 .icard { display: grid; grid-template-columns: 112px 1fr; align-items: center; }
  .grid-5 .icard-img { aspect-ratio: auto; width: 112px; height: 100%; min-height: 112px; }
  .grid-5 .icard-img img { height: 100%; }
  .grid-5 .icard-body { padding: 12px 14px; }
  .grid-5 .icard-body h3 { min-height: 0; font-size: 1rem; margin-bottom: 4px; }
  .grid-5 .icard-body p { font-size: 0.8125rem; line-height: 1.45; }
  .grid-5 .icard-arrow { margin-top: 8px; }
  .grid-5 .icard-arrow span { font-size: 0.75rem; }
}

/* ── Design phase: industry + solution template ─────────── */
.page-hero { padding: 64px 0 64px; }
.page-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.page-hero-content h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.page-hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 18px 40px rgba(28,30,29,0.14); }
.page-hero .eyebrow { color: var(--brand); }
.page-hero .eyebrow::before { background: var(--emerald); }

.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-duo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 3 / 4; }
.photo-duo img:last-child { margin-top: 40px; }
.feat-row p { font-size: 0.9375rem; color: var(--gray-600); }
.in-link { color: var(--brand); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(0,107,84,.35); text-underline-offset: 3px; }
.in-link:hover { text-decoration-color: var(--brand); }

.prose-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.jump { position: sticky; top: 96px; }
.jump-label { font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 12px; }
.jump a { display: block; padding: 9px 0 9px 14px; border-left: 2px solid var(--gray-100); font-size: 0.9375rem; color: var(--gray-600); transition: color var(--t), border-color var(--t); }
.jump a:hover { color: var(--brand); border-left-color: var(--brand); }
.prose h3 { scroll-margin-top: 96px; font-size: 1.25rem; margin: 36px 0 12px; }
.prose p { font-size: 1.0625rem; }

.scard-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.scard { flex: 0 1 calc((100% - 40px) / 3); background: #fff; border: 1px solid var(--gray-100); border-radius: var(--r-lg); padding: 26px 26px 22px; color: inherit; display: flex; flex-direction: column; transition: all var(--t); }
.scard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--gray-200); }
.scard-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--emerald); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.scard-icon svg { width: 22px; height: 22px; }
.scard h3 { font-size: 1.125rem; margin-bottom: 8px; }
.scard p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.65; flex: 1; }
.scard .icard-arrow { margin-top: 18px; }

.faq-list { gap: 0; border-top: 1px solid var(--gray-100); }
.faq-item { border: 0; border-bottom: 1px solid var(--gray-100); border-radius: 0; padding: 24px 0; background: transparent; display: grid; grid-template-columns: 5fr 7fr; gap: 32px; }
.faq-item h3 { margin: 0; font-size: 1.125rem; }
.faq-item p { font-size: 1rem; }
.section-alt .faq-item { background: transparent; }

@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .prose-layout { grid-template-columns: 1fr; gap: 0; }
  .jump { display: none; }
  .scard { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 768px) {
  .page-hero { padding: 44px 0 40px; }
  .photo-duo img:last-child { margin-top: 24px; }
  .faq-item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .scard { flex-basis: 100%; }
}
.section-title, .two-col h2, .prose h2 { margin-bottom: 16px; }

/* Header wrapping (Rivers 2026-09-09): let headings run as long as they fit; when they
   wrap, even the lines out and never strand a single word. Manual <br/>s were removed
   from the inner page heroes at the same time (the homepage hero keeps its composed
   three-line break). */
h1, h2 { text-wrap: balance; }

/* .proof-card / .proof-stats / .related-title / .related-list / .split-even were removed
   2026-09-09: the "Why Capital Service Group" card came off the solution pages (Rivers)
   and Related Services moved to the shared .scard-grid, leaving every one of them unused. */

/* Remaining pages */
.body-p { margin-bottom: 20px; line-height: 1.8; }
.body-p-last { margin-bottom: 32px; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.t-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.t-stars-left { justify-content: flex-start; margin-bottom: 0; }
.t-card blockquote { margin: 0; color: var(--gray-700); line-height: 1.7; font-size: 1rem; flex: 1; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.t-who { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--gray-100); padding-top: 16px; }
.t-card .t-name { color: var(--heading); font-size: 0.9375rem; font-weight: 700; }
.t-card .t-role { font-size: 0.8125rem; color: var(--gray-400); margin-top: 2px; }
.rounded-img { aspect-ratio: 4 / 3; height: auto; }

/* Nav phone link + hero review link + text stat */
.nav-phone { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; color: var(--navy); transition: background var(--t), color var(--t); }
.nav-phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-phone:hover { background: var(--gray-50); color: var(--brand); }
@media (max-width: 768px) {
  .nav-phone { padding: 8px; }
  .nav-phone span { display: none; }
  .nav-phone svg { width: 20px; height: 20px; }
}
.hero-review-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.8125rem; font-weight: 700; color: var(--brand) !important; }
.hero-review-link svg { width: 14px; height: 14px; transition: transform var(--t); }
.hero-review:hover .hero-review-link svg { transform: translateX(3px); }
.stat-text { font-size: 1.75rem; padding-top: 6px; white-space: nowrap; }
@media (max-width: 768px) { .stat-text { font-size: 1.125rem; padding-top: 6px; } }

/* Pin "Learn more" to the bottom of every card in a row */
.icard { display: flex; flex-direction: column; }
.icard-body { display: flex; flex-direction: column; flex: 1; }
.icard-body p { flex: 1; }
.icard-body .icard-arrow { margin-top: 16px; }
.scard-body { display: flex; flex-direction: column; flex: 1; }
.scard-body p { flex: 1; }

/* County map labels + county-grouped locale list */
/* Map annotations (2026-09-08): labels sit OUTSIDE the shape on leader lines —
   county polygons are too small to hold 38px type without crowding. */
.sc-cty { font-family: var(--font-display); font-weight: 800; font-size: 27px; fill: var(--navy);
  paint-order: stroke; stroke: rgba(248,249,247,.92); stroke-width: 5px; stroke-linejoin: round;
  letter-spacing: -0.01em; dominant-baseline: middle; }
.sc-lead { stroke: var(--slate); stroke-width: 2; opacity: .55; fill: none; }
.sc-pin { fill: #fff; stroke: var(--emerald); stroke-width: 3; }
.county-list { display: flex; flex-direction: column; margin: 24px 0 0; }
.county-list li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--gray-100); }
.county-list li:last-child { border-bottom: 1px solid var(--gray-100); }
.county-list strong { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--heading); }
.county-list span { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.8; }
.county-list a { color: var(--gray-700); }
.county-list a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.sa-cta { margin-top: 28px; }
@media (max-width: 640px) { .county-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; } }

/* ── Nine-card industry grid (retail removed 2026-09-04): five columns, four-card second row centered ── */
.grid-9 { grid-template-columns: repeat(10, 1fr); }
.grid-9 > .icard { grid-column: span 2; }
.grid-9 > .icard:nth-child(6) { grid-column: 2 / span 2; }
@media (max-width: 1100px) {
  .grid-9 { grid-template-columns: repeat(3, 1fr); }
  .grid-9 > .icard, .grid-9 > .icard:nth-child(6) { grid-column: auto; }
}
@media (max-width: 768px) { .grid-9 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-9 { grid-template-columns: 1fr; } }

/* ── Homepage hero wash (Variant 1, Evan 9/21) ──────────────────────────
   The three glow positions the dark hero used, at a fraction of the strength: emerald
   upper-right, mint lower-left, a faint emerald bloom mid-right. */
.hero::before {
  background:
    radial-gradient(ellipse 48% 60% at 82% 12%, rgba(0,134,106,0.13) 0%, rgba(0,134,106,0.05) 44%, transparent 72%),
    radial-gradient(ellipse 42% 52% at 6% 96%, rgba(127,209,185,0.20) 0%, rgba(127,209,185,0.07) 45%, transparent 72%),
    radial-gradient(ellipse 34% 38% at 56% 64%, rgba(0,134,106,0.06) 0%, transparent 70%);
}

/* ── Homepage hero media: photo top-left, Google badge pushed further bottom-right (Rivers 9/4) ── */
@media (min-width: 1025px) {
  .hero-media { padding: 0 36px 72px 0; }
  .hero-media img { transform: translate(-20px, -20px); }
  .hero-review { right: -28px; bottom: -36px; }
}
/* Rivers 9/21: the badge still covered too much of the photo. Photo moves further up-left and
   the badge further down-right, so the badge overlaps only the photo's bottom-right corner. */
@media (min-width: 1280px) {
  .hero-review { right: -44px; }
}

/* ── Our Team page (added 2026-09-08, Evan feedback) ─────────────
   Exec row: 4 columns. Team leaders: 6 per row, second row of 4 centered
   using a 12-track grid (same technique as .grid-9). */
.dropdown-sm { min-width: 320px; }
.dropdown-sm .dropdown-grid { grid-template-columns: 1fr; }

.team-grid { display: grid; gap: 24px; }
.team-exec { grid-template-columns: repeat(4, 1fr); }
/* 5 x 2 while there are ten leaders (Rivers 2026-09-09; was 6 + 4 centered on a
   12-track grid). If the count changes, revisit the column count. */
.team-leads { grid-template-columns: repeat(5, 1fr); gap: 20px; }

.tcard {
  margin: 0; background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tcard-img { aspect-ratio: 4 / 5; background: var(--tint); }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.tcard-body { padding: 16px 18px 18px; }
.tcard-body h3 { font-size: 1.0625rem; margin: 0 0 3px; letter-spacing: -0.01em; }
.tcard-body p { font-size: 0.875rem; color: var(--slate); margin: 0; line-height: 1.4; }
.team-leads .tcard-body { padding: 13px 14px 15px; }
.team-leads .tcard-body h3 { font-size: 0.9375rem; }
.team-leads .tcard-body p { font-size: 0.8125rem; }

@media (max-width: 1200px) {
  .team-leads { grid-template-columns: repeat(4, 1fr); }

}
@media (max-width: 900px) {
  .team-exec { grid-template-columns: repeat(2, 1fr); }
  .team-leads { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { gap: 14px; }
  .team-exec, .team-leads { grid-template-columns: repeat(2, 1fr); }
  .tcard-body { padding: 12px 13px 14px; }
  .tcard-body h3 { font-size: 0.9375rem; }
  .tcard-body p { font-size: 0.8125rem; }
}

/* ── Split section header (Rivers 2026-09-08) ────────────────────
   A left-aligned heading over a full-width grid left half the row empty on
   desktop. Heading left, supporting copy right, bottoms aligned. */
.head-split .head-split-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end;
}
.head-split .head-split-row h2 { margin-bottom: 0; }
.head-split .lead {
  max-width: 100%; margin-bottom: 0; padding-bottom: 6px; position: relative;
}
/* Short accent rule sitting in the gutter, separating heading from supporting copy.
   Top-aligned to the lead's first line, not full-height, so the split reads as one row. */
.head-split .lead::before {
  content: ""; position: absolute; left: -28px; top: 0.2em;
  width: 3px; height: 1.7em; border-radius: 2px; background: var(--emerald);
}
@media (max-width: 900px) {
  .head-split .head-split-row { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .head-split .lead { padding-bottom: 0; }
  /* Stacked layout separates the two on its own; a vertical rule has no gutter to sit in. */
  .head-split .lead::before { display: none; }
}

/* Value-props lead action (Rivers 2026-09-09) */
.split-cta { margin-top: 28px; }

/* ── Testimonial band -> CTA band seam (Rivers 2026-09-08, relit 2026-09-21) ───────
   Both bands were navy and their radial glows met in a hard diagonal, which took a shared
   gradient to hide. Both are light now, so the seam is a single emerald hairline. Scoped to
   the homepage pairing so every other page's CTA band is untouched. */
.testimonial-wrap + .cta-band { border-top: 1px solid rgba(0,134,106,0.10); }

/* ── Industry / solution template pass (Rivers 2026-09-09) ───────

   1. CTA band -> footer seam, site-wide.
   This used to be two dark bands meeting at a hard lighter line, fixed by running both
   into the same tone. Since the 9/21 light pass the CTA band is an emerald tint and the
   footer is light grey, so the seam is one hairline and nothing has to be blended. */
.footer { border-top: 1px solid var(--gray-100); }

/* 2. Feature-row icons. Every row used to carry the same checkmark, which said
   nothing. Icons are now keyed to the row's subject, so the circle needs a little
   more room than an 11px tick had. */
.feat-check { width: 28px; height: 28px; margin-top: 1px; }

/* A feature row with a heading and no paragraph is one line of text next to a 28px
   circle, so top-alignment leaves the circle hanging below it. Centre those rows and
   drop the heading's bottom margin, which would otherwise pull the text up off centre.
   Rows that carry a paragraph stay top-aligned. (Contact's "Why Clients Choose Us"
   card is the only place this pattern appears today.) */
.feat-row:not(:has(p)) { align-items: center; }
.feat-row:not(:has(p)) h3 { margin-bottom: 0; }
.feat-row:not(:has(p)) .feat-check { margin-top: 0; }
.feat-check svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2; fill: none; }

/* 3. Area chips are a CLAIM, not navigation. On /areas they deep-link to their own
   community card; on industry and solution pages all 15 pointed at /areas — the same
   destination as the "See all areas we serve" link directly beneath them. They are
   plain <span> there now, so nothing looks clickable that does not go somewhere new. */
a.sa-chip:hover { border-color: var(--brand); color: var(--brand); }
span.sa-chip { cursor: default; }

/* 4. Section-header link, for "See all services" above a curated card grid. */
.sh-cta { margin-top: 18px; }
.section-header.center .sh-cta { text-align: center; }

/* ── Contact form: services multi-select (Rivers 2026-09-09) ─────
   A <details> dropdown of checkboxes: reads as a dropdown, takes multiple picks, and
   still works with JS disabled (it just opens as a list). main.js fills .ms-value with
   the current selection and closes the menu on outside click. */
.form-label { display:block; font-size:0.875rem; font-weight:600; color:var(--heading); margin-bottom:8px; }
/* Grid/flex items default to min-width:auto, so the nowrap summary text was setting
   the column's min-content width — every extra pick widened the field and shifted the
   whole form. Zero out min-width down the chain so the ellipsis can actually engage. */
.form-row > .form-group { min-width:0; }
.ms { position:relative; min-width:0; }
.ms summary {
  list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between;
  gap:10px; width:100%; padding:13px 16px; border:1px solid var(--gray-200); border-radius:8px;
  background:#fff; font-size:0.9375rem; color:var(--gray-600); user-select:none;
}
.ms summary::-webkit-details-marker { display:none; }
.ms summary svg { width:16px; height:16px; flex-shrink:0; color:var(--gray-400); transition:transform .15s; }
.ms[open] summary { border-color:var(--brand); }
.ms[open] summary svg { transform:rotate(180deg); }
.ms summary .ms-value { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; }
.ms summary .ms-value.has-picks { color:var(--ink); }
.ms-menu {
  position:absolute; z-index:20; top:calc(100% + 6px); left:0; right:0;
  background:#fff; border:1px solid var(--gray-200); border-radius:8px;
  box-shadow:var(--shadow-lg); padding:8px; max-height:280px; overflow-y:auto;
}
.ms-menu label {
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:6px;
  font-size:0.9rem; color:var(--ink); cursor:pointer;
}
.ms-menu label:hover { background:var(--gray-50); }
.ms-menu input[type="checkbox"] { width:16px; height:16px; accent-color:var(--emerald); flex-shrink:0; }
html:not(.js) .ms-menu { position:static; box-shadow:none; margin-top:6px; }

/* ── Brand refresh (Evan's guidelines, 2026-09-17) ───────────────────
   Tokens above were remapped by tools/apply-brand-0917.py. Only additions live here. */
.about-seal { display: block; width: 150px; height: 150px; margin-top: 32px; }
@media (max-width: 768px) { .nav-logo img { height: 40px; } }
/* The horizontal lockup is 163px wide (the old logo was 90px), which pushed the nav links
   onto two lines between the tablet collapse (768px) and ~1100px. Links no longer wrap;
   in that band they tighten and the phone number drops to its icon. */
.nav-link { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 769px) {
  .nav-link { padding: 8px 11px; font-size: 0.9375rem; }
  .nav-phone span { display: none; }
  .nav-phone { padding: 8px; }
}

/* Visually hidden, still read by screen readers and counted in the heading outline.
   Used where a section needs a heading for a valid outline but the design does not
   show one (the /solutions/ service grid). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Netlify Forms honeypot on the contact form. Hidden from sight and from screen readers
   (the wrapper carries aria-hidden), but still present in the DOM so a bot fills it in
   and Netlify drops the submission. display:none would stop some bots seeing it. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact form validation. The text and select fields are validated natively (the form no
   longer carries `novalidate`, so they hold up with JS disabled too). The services field is a
   checkbox group, which HTML cannot mark required, so main.js validates it and shows this. */
.field-error { color: #B42318; font-size: 0.8125rem; margin-top: 6px; }   /* 6.6:1 on white */
.ms.invalid > summary { border-color: #B42318; }
.form-group .opt { color: var(--gray-400); font-weight: 400; }

/* Footer social profiles (2026-09-21). Icon-only links, so each needs a hit area of its own:
   36px square clears the 24px minimum for touch without making the row look like buttons. */
.footer-social { display: flex; gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--gray-200);
  color: var(--gray-600); transition: color var(--t), border-color var(--t), background var(--t);
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); background: var(--tint); }
.footer-social a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.footer-social svg { width: 17px; height: 17px; }
