/* ==========================================================================
   BBSI Dover, Delaware - Professional Employer Organization (PEO)
   Modern Production Stylesheet (Playbook Variant B: Precise Specialist)
   ========================================================================== */

/* --- Design Tokens & Palette --- */
:root {
  /* Palette strictly from design_brief.json with WCAG AA compliance */
  --bg: #ffffff;
  --surface: #f4f6fa;
  --text: #0f172a;
  --muted: #475569;
  --primary: #002f60;
  --primary-text: #ffffff;
  --accent: #0270aa;
  --accent-hover: #015482;
  --accent-light: #e0f2fe;
  --dark: #001833;
  --dark-text: #ffffff;
  --hero-bg: #002046;
  --hero-text: #ffffff;

  /* Accent highlights */
  --accent-cyan: #38bdf8;
  --gold: #f59e0b;
  --success: #10b981;

  /* Structural & Hairline Rules (Variant B Precision) */
  --border-light: rgba(15, 23, 42, 0.1);
  --border-subtle: rgba(15, 23, 42, 0.05);
  --border-dark: rgba(255, 255, 255, 0.15);
  --border-dark-subtle: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 24, 51, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 24, 51, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 24, 51, 0.12);
  --shadow-card: 0 4px 20px rgba(0, 47, 96, 0.06);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Container & Heights */
  --container-max: 1240px;
  --header-height: 70px;
  --topbar-height: 38px;
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px;
    --topbar-height: 34px;
  }
}

/* --- Global Reset & Box Model --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100vw;
}

main {
  overflow-x: clip;
}

/* Responsive Visibility Utilities */
.d-none-mobile {
  display: none !important;
}

.d-only-mobile {
  display: inline-flex !important;
}

@media (min-width: 768px) {
  .d-none-mobile {
    display: inline-flex !important;
  }
  span.d-none-mobile {
    display: inline !important;
  }
  span.top-bar-badge.d-none-mobile {
    display: inline-block !important;
  }
  div.d-none-mobile {
    display: block !important;
  }
  .d-only-mobile {
    display: none !important;
  }
}

/* Accessibility: Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Utility Layout Wrappers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: clamp(48px, 6vw, 84px);
}

.section-tight {
  padding-block: clamp(32px, 4vw, 56px);
}

/* Eyebrows & Section Headers */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.section-header.text-start {
  text-align: start;
  margin-inline: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow-dark {
  color: var(--accent-cyan);
}

.section-title {
  margin-bottom: 14px;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.6;
}

/* Brand Full-Width Color Bands (Never more than 2 light in a row) */
.band-hero {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--primary) 100%);
  color: var(--hero-text);
}

.band-dark {
  background-color: var(--dark);
  color: var(--dark-text);
}

.band-primary {
  background-color: var(--primary);
  color: var(--primary-text);
}

.band-surface {
  background-color: var(--surface);
  color: var(--text);
}

.band-white {
  background-color: var(--bg);
  color: var(--text);
}

/* Text on Dark Backgrounds */
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4,
.band-hero h1, .band-hero h2, .band-hero h3, .band-hero h4,
.band-primary h1, .band-primary h2, .band-primary h3, .band-primary h4 {
  color: #ffffff;
}

.band-dark .section-desc,
.band-hero .section-desc,
.band-primary .section-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   TOP BAR (Optional, non-sticky, max 36-38px)
   ========================================================================== */
.top-bar {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-dark-subtle);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  gap: 16px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.top-bar-item:hover {
  color: #ffffff;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.top-bar-badge {
  background: rgba(2, 132, 199, 0.2);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   HEADER & NAVIGATION (Sticky, Direct Child of Body)
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
  flex-wrap: nowrap;
}

/* Logo Home Link */
.header-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}

.header-logo {
  height: clamp(34px, 4.5vw, 42px);
  width: auto;
  max-width: min(60vw, 200px);
  object-fit: contain;
}

.header-location-badge {
  display: flex;
  flex-direction: column;
  border-inline-start: 1px solid var(--border-light);
  padding-inline-start: 12px;
  line-height: 1.1;
}

.header-location-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.header-location-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* Desktop Navigation */
nav.desktop-nav {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(12px, 1.8vw, 28px);
}

.nav-item a {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-item a:hover {
  color: var(--accent);
}

.nav-item a.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: var(--radius-pill);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-tel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-tel-link:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.header-tel-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile Hamburger Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 10px;
  margin-inline-start: auto;
  transition: background-color 0.2s ease;
}

.menu-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer (Full Width Below Header) */
.mobile-drawer {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  padding: 24px clamp(16px, 5vw, 32px);
  display: none;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--primary);
  color: #ffffff;
}

.mobile-drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary-light {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary-light:hover {
  background-color: var(--surface);
  color: var(--primary);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION (Split Layout, Brand Gradient, Never White)
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(56px, 8vw, 92px);
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.hero-headline {
  color: var(--hero-text);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subheadline {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}

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

/* Proof Strip inside Hero */
.hero-proof-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-proof-icon {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
  flex-shrink: 0;
}

/* Google Review Hero Tag */
.hero-google-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: #ffffff;
  width: fit-content;
  margin-bottom: 20px;
}

.hero-google-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* Hero Media Frame */
.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 24, 51, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  aspect-ratio: 4 / 3;
  background-color: var(--hero-bg);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero Floating Badge */
.hero-floating-card {
  position: absolute;
  bottom: -20px;
  inset-inline-start: -16px;
  background: #ffffff;
  color: var(--text);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 310px;
}

.hero-floating-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-floating-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.hero-floating-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.hero-floating-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ==========================================================================
   SIGNATURE MOMENT: Institutional Fiduciary & Scale Dashboard
   (Variant B: High contrast, hairline rules, oversized numerals)
   ========================================================================== */
.signature-dashboard {
  background-color: var(--dark);
  color: var(--dark-text);
  padding-block: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border-dark);
}

.dashboard-title-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.dashboard-metric {
  padding: clamp(24px, 3.5vw, 40px) clamp(16px, 2.5vw, 28px);
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  display: flex;
  flex-direction: column;
}

.metric-numeral {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-numeral span.accent-plus {
  color: var(--accent-cyan);
  font-size: 0.8em;
}

.metric-label {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.metric-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

/* Official Accreditation & Authority Emblems */
.accreditations-bar {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 32px;
  border-top: 1px solid var(--border-dark-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accreditations-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.accreditations-list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.accreditation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  padding: 10px 18px;
  border-radius: var(--radius-md);
}

.accreditation-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.accreditation-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

/* ==========================================================================
   SERVICES SECTION (Card Grid, Accessible Icons)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(2, 132, 199, 0.4);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  border-color: var(--primary);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon-box svg {
  fill: #ffffff;
}

.service-title {
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84375rem;
  color: var(--text);
}

.service-feature-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}

.service-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   CO-EMPLOYMENT MODEL (Full-Width Rich Navy Band #002f60)
   ========================================================================== */
.co-employment-section {
  background-color: var(--primary);
  color: var(--primary-text);
}

.co-employment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

.co-emp-column {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
}

.co-emp-column.bbsi-col {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.co-emp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 16px;
}

.co-emp-badge-owner {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.co-emp-badge-bbsi {
  background: var(--accent);
  color: #ffffff;
}

.co-emp-title {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.co-emp-lead {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.5;
}

.co-emp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.co-emp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: #ffffff;
}

.co-emp-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.co-emp-item.owner svg {
  fill: #38bdf8;
}

.co-emp-item.bbsi svg {
  fill: #34d399;
}

.co-emp-summary-banner {
  margin-top: 40px;
  background: rgba(0, 24, 51, 0.4);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
}

.co-emp-summary-text {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   MEET THE DOVER TEAM (Surface Background #f4f6fa)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 960px;
  margin-inline: auto;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr;
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.team-photo-wrap {
  position: relative;
  background-color: var(--surface);
  aspect-ratio: 1 / 1;
  max-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-details {
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
}

.team-name {
  color: var(--primary);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.team-bio {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.team-contact-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.team-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-contact-link:hover {
  color: var(--accent);
}

.team-contact-link svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   CLIENT OUTCOMES & GOOGLE REVIEWS (White Background)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
}

.review-quote {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
}

.review-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.review-source-tag svg {
  width: 12px;
  height: 12px;
  fill: #4285f4;
}

/* Featured Client Case Study (Adam Sedlack / UFC Gym) */
.case-study-card {
  margin-top: 48px;
  background: var(--dark);
  color: var(--dark-text);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.case-study-quote {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-style: italic;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 18px;
}

.case-study-author {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.case-study-role {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   TRANSPARENT PRICING & EVALUATION (Full-Width Brand Band #001833)
   ========================================================================== */
.pricing-section {
  background-color: var(--dark);
  color: var(--dark-text);
}

.pricing-explainer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
}

.pricing-explainer-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 24px;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.diagnostic-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.diagnostic-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
}

.diagnostic-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.diagnostic-title {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.diagnostic-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* Pricing Model Comparison Table */
.pricing-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.9375rem;
}

.pricing-table th, .pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dark);
}

.pricing-table th {
  background: rgba(0, 47, 96, 0.7);
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-table td {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr.highlight-row {
  background: rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   AEO FAQ SECTION (Surface Background #f4f6fa)
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

/* ==========================================================================
   CONTACT & DOVER OFFICE SECTION (Brand Band #002046)
   ========================================================================== */
.contact-section {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--dark) 100%);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-cyan);
}

.contact-info-text {
  display: flex;
  flex-direction: column;
}

.contact-info-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-info-val a {
  color: #ffffff;
  text-decoration: none;
}

.contact-info-val a:hover {
  color: var(--accent-cyan);
}

/* Dover Office Map Container */
.map-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  margin-top: 12px;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Consultation Form */
.consultation-form-wrap {
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 24px;
}

.form-title {
  color: var(--primary);
  margin-bottom: 8px;
}

.form-promise {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-promise svg {
  width: 16px;
  height: 16px;
  fill: var(--success);
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
  background-color: #ffffff;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-submit-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* Form Status Messages */
.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  margin-bottom: 16px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   FOOTER (Comprehensive Multi-Column, Deep Dark Navy #001833)
   ========================================================================== */
footer.site-footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: 32px;
  border-top: 1px solid var(--border-dark);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-dark-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-credit-line {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Strict Mobile-First)
   ========================================================================== */

/* Small Devices (480px and up) */
@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
  }

  .form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  /* Show Desktop Navigation, Hide Mobile Drawer & Toggle */
  nav.desktop-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-drawer {
    display: none !important;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-metric:nth-child(odd) {
    border-inline-end: 1px solid var(--border-dark);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .co-employment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card {
    grid-template-columns: 280px 1fr;
  }

  .team-photo-wrap {
    max-height: 100%;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .diagnostics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study-card {
    grid-template-columns: 200px 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-metric {
    border-inline-end: 1px solid var(--border-dark);
    border-bottom: none;
  }

  .dashboard-metric:last-child {
    border-inline-end: none;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .diagnostics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* ==========================================================================
   MOTION & ACCESSIBILITY (Inside prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
