@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --holistat-cream: #faf9f5;
}

.bg-holistat-cream {
  background-color: var(--holistat-cream);
}

.site-header {
  background-color: var(--holistat-cream);
  border-bottom: 1px solid rgba(30, 58, 76, 0.08);
}

.site-header .mobile-nav {
  background-color: var(--holistat-cream);
  border-top: 1px solid rgba(30, 58, 76, 0.08);
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #f8fafc;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.25;
}

:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: #1e3a4c;
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 76, 0.92) 0%,
    rgba(30, 58, 76, 0.78) 45%,
    rgba(44, 94, 67, 0.6) 100%
  );
}

.hero-bg {
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center;
}

.hero-logo-panel {
  background: var(--holistat-cream);
  border-radius: 0.875rem;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.hero-logo-panel--photo {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.hero-logo,
.footer-logo,
.header-logo,
.header-icon {
  width: auto;
  object-fit: contain;
}

.hero-logo {
  display: block;
  height: clamp(9.5rem, 26vw, 13.5rem);
  max-width: min(100%, 34rem);
}

.footer-logo {
  height: clamp(5.5rem, 15vw, 8rem);
  max-width: min(100%, 22rem);
}

.header-logo {
  height: clamp(2.5rem, 8vw, 3.25rem);
  max-width: min(62vw, 15rem);
}

.header-icon {
  width: clamp(2.75rem, 8.5vw, 3.25rem);
  height: clamp(2.75rem, 8.5vw, 3.25rem);
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background-color: #ffffff;
  border: 1.5px solid rgba(30, 58, 76, 0.12);
  box-shadow: 0 2px 10px rgba(30, 58, 76, 0.08);
}

.header-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1;
}

.header-wordmark-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  letter-spacing: 0.04em;
  color: #1e3a4c;
  line-height: 1;
}

.header-wordmark-subtitle {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(0.88rem, 1.9vw, 0.78rem);
  letter-spacing: 0.03em;
  color: #3a7a87;
  line-height: 1;
  white-space: nowrap;
}

.footer-logo-panel {
  background: var(--holistat-cream);
  border-radius: 0.875rem;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  display: inline-block;
}

.footer-tagline {
  font-size: clamp(0.6875rem, 2.4vw, 0.875rem);
  font-weight: 700;
  font-style: normal;
  color: rgb(148 163 184);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.cta-band {
  background: #ffffff;
  border-top: 1px solid rgba(30, 58, 76, 0.1);
  border-bottom: 1px solid rgba(30, 58, 76, 0.1);
}

.service-img {
  background-color: #e2e8f0;
  background-size: cover;
  background-position: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility widget */
.a11y-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
}

.a11y-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e3a4c;
  color: #fff;
  border: 2px solid #d4af37;
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 58, 76, 0.35);
}

.a11y-toggle:hover {
  background: #2c5e43;
}

.a11y-panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel h2 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e3a4c;
  margin: 0 0 0.75rem;
}

.a11y-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.375rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.a11y-panel button:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.a11y-panel button[aria-pressed='true'] {
  background: #ccfbf1;
  border-color: #0d9488;
  color: #115e59;
}

.a11y-panel .a11y-reset {
  margin-top: 0.5rem;
  background: #1e3a4c;
  color: #fff;
  border-color: #1e3a4c;
  text-align: center;
}

.a11y-panel .a11y-reset:hover {
  background: #2c5e43;
}

/* Accessibility modes */
html.a11y-font-lg {
  font-size: 112.5%;
}

html.a11y-font-xl {
  font-size: 125%;
}

html.a11y-readable-font body {
  font-family: 'Atkinson Hyperlegible', Verdana, Geneva, sans-serif;
}

html.a11y-highlight-links a:not(.a11y-toggle):not(.skip-link) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

html.a11y-high-contrast {
  color-scheme: light;
}

html.a11y-high-contrast body {
  background: #fff !important;
  color: #000 !important;
}

/* Dark bands: header, footer, navy sections, hero overlay */
html.a11y-high-contrast .bg-holistat-navy,
html.a11y-high-contrast header.site-header,
html.a11y-high-contrast footer,
html.a11y-high-contrast .hero-overlay {
  background: #000 !important;
  color: #fff !important;
}

html.a11y-high-contrast header.site-header,
html.a11y-high-contrast footer {
  border-color: #fff !important;
}

/* Light text on dark backgrounds (override Tailwind slate/white utilities) */
html.a11y-high-contrast .bg-holistat-navy :where(h1, h2, h3, h4, p, li, span, address, summary, .header-wordmark-title, .header-wordmark-subtitle),
html.a11y-high-contrast header.site-header :where(h1, h2, h3, p, span, .header-wordmark-title, .header-wordmark-subtitle),
html.a11y-high-contrast footer :where(h1, h2, h3, p, li, span, address, .footer-tagline),
html.a11y-high-contrast .hero-bg :where(h1, h2, h3, p, li, span) {
  color: #fff !important;
}

html.a11y-high-contrast .bg-holistat-navy .text-holistat-gold,
html.a11y-high-contrast .hero-bg .text-holistat-gold,
html.a11y-high-contrast header.site-header .text-holistat-gold {
  color: #ffff00 !important;
}

/* Body copy on light sections */
html.a11y-high-contrast main :where(.text-slate-600, .text-slate-500, .text-slate-700, .text-holistat-navy) {
  color: #000 !important;
}

html.a11y-high-contrast .county-card,
html.a11y-high-contrast .faq-item,
html.a11y-high-contrast .county-section,
html.a11y-high-contrast article {
  background: #fff !important;
  border-color: #000 !important;
}

/* Links on light backgrounds */
html.a11y-high-contrast main a:not(.a11y-toggle):not(.skip-link):not([class*='bg-teal']):not([class*='border-white']),
html.a11y-high-contrast address a {
  color: #0000ee !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

html.a11y-high-contrast main a:visited:not(.a11y-toggle):not([class*='bg-teal']) {
  color: #551a8b !important;
}

/* Links on dark backgrounds */
html.a11y-high-contrast .bg-holistat-navy a:not(.a11y-toggle):not(.skip-link):not([class*='bg-teal']),
html.a11y-high-contrast header.site-header a:not(.a11y-toggle):not(.skip-link):not([class*='bg-teal']),
html.a11y-high-contrast footer a:not(.a11y-toggle):not(.skip-link):not([class*='bg-teal']),
html.a11y-high-contrast .hero-bg a:not(.a11y-toggle):not(.skip-link):not([class*='bg-teal']) {
  color: #ffff00 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

html.a11y-high-contrast .bg-holistat-navy a:visited,
html.a11y-high-contrast header.site-header a:visited,
html.a11y-high-contrast footer a:visited,
html.a11y-high-contrast .hero-bg a:visited {
  color: #ffcc00 !important;
}

/* CTA / button-style links */
html.a11y-high-contrast a[class*='bg-teal'],
html.a11y-high-contrast button[type='submit'],
html.a11y-high-contrast .a11y-reset {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

html.a11y-high-contrast a[class*='border-white'] {
  background: transparent !important;
  color: #ffff00 !important;
  border: 2px solid #fff !important;
  text-decoration: underline !important;
}

html.a11y-high-contrast .hero-overlay {
  background: rgba(0, 0, 0, 0.92) !important;
}

html.a11y-high-contrast .a11y-panel {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

html.a11y-high-contrast .a11y-panel h2,
html.a11y-high-contrast .a11y-panel button {
  color: #000 !important;
}

html.a11y-high-contrast .a11y-panel button[aria-pressed='true'] {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

html.a11y-high-contrast .a11y-toggle {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #ffff00 !important;
}

html.a11y-high-contrast.a11y-highlight-links a:not(.a11y-toggle):not(.skip-link) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.spam-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

#turnstile-widget:empty {
  display: none;
}

.form-error-banner {
  margin-bottom: 0.75rem;
}
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Service area / coverage page */
.coverage-map-frame {
  aspect-ratio: 16 / 11;
  min-height: 18rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(30, 58, 76, 0.12);
  box-shadow: 0 12px 40px rgba(30, 58, 76, 0.08);
}

.coverage-map-frame iframe {
  display: block;
  border: 0;
}

.coverage-schematic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem;
  max-width: 16rem;
  margin-inline: auto;
}

.coverage-schematic__region {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a4c;
  border: 2px solid rgba(30, 58, 76, 0.15);
}

.coverage-schematic__region--denton {
  grid-column: 1 / -1;
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
}

.coverage-schematic__region--collin {
  background: rgba(44, 94, 67, 0.12);
  border-color: rgba(44, 94, 67, 0.35);
}

.coverage-schematic__region--dallas {
  background: rgba(30, 58, 76, 0.08);
}

.coverage-schematic__region--tarrant {
  background: rgba(13, 148, 136, 0.14);
  border-color: rgba(13, 148, 136, 0.45);
}

.coverage-schematic__hq {
  position: absolute;
  bottom: 0.35rem;
  right: 0.45rem;
  font-size: 0.625rem;
  font-weight: 800;
  color: #fff;
  background: #0d9488;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.coverage-legend__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.coverage-legend__swatch--tarrant { background: rgba(13, 148, 136, 0.55); }
.coverage-legend__swatch--dallas { background: rgba(30, 58, 76, 0.25); }
.coverage-legend__swatch--collin { background: rgba(44, 94, 67, 0.35); }
.coverage-legend__swatch--denton { background: rgba(212, 175, 55, 0.45); }

.county-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(30, 58, 76, 0.08);
  box-shadow: 0 4px 24px rgba(30, 58, 76, 0.05);
  border-top: 4px solid #1e3a4c;
}

.county-card--tarrant { border-top-color: #0d9488; }
.county-card--dallas { border-top-color: #1e3a4c; }
.county-card--collin { border-top-color: #2c5e43; }
.county-card--denton { border-top-color: #d4af37; }

.county-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.county-card__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.county-card__cities li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.county-card__cities a {
  color: inherit;
  text-decoration: none;
}

.county-card__cities a:hover {
  color: #0f766e;
}

.county-sections {
  max-width: 48rem;
}

.county-section {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(30, 58, 76, 0.08);
}

.county-section--tarrant { border-left: 4px solid #0d9488; }
.county-section--dallas { border-left: 4px solid #1e3a4c; }
.county-section--collin { border-left: 4px solid #2c5e43; }
.county-section--denton { border-left: 4px solid #d4af37; }

.county-section__marker {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
  transform: rotate(45deg);
  border-radius: 2px;
}

.county-section--tarrant .county-section__marker { background: #0d9488; }
.county-section--dallas .county-section__marker { background: #1e3a4c; }
.county-section--collin .county-section__marker { background: #2c5e43; }
.county-section--denton .county-section__marker { background: #d4af37; }

.county-section__body {
  flex: 1;
  min-width: 0;
}

.county-section__header {
  margin-bottom: 0.5rem;
}

.county-section__intro {
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.county-section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.county-section__advantage {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.65;
}

.county-section__advantage strong {
  color: #1e3a4c;
}

/* FAQ accordion */
.faq-item {
  background: #fff;
  border: 1px solid rgba(30, 58, 76, 0.1);
  border-radius: 0.875rem;
  padding: 0 1.25rem;
  box-shadow: 0 2px 12px rgba(30, 58, 76, 0.04);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #1e3a4c;
  padding: 1.1rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: #0d9488;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: #475569;
  line-height: 1.65;
  padding-bottom: 1.15rem;
  margin: 0;
}

.breadcrumb-nav {
  font-size: 0.8125rem;
  color: #64748b;
}

.breadcrumb-nav a {
  color: #0d9488;
}

.breadcrumb-nav a:hover {
  color: #0f766e;
}

.city-services-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .city-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.city-service-link {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 600;
  color: #1e3a4c;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.city-service-link:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 4px 16px rgba(30, 58, 76, 0.06);
}

.footer-social {
  margin-top: 1rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.2s;
}

.footer-social__link:hover {
  color: #fff;
}

.footer-social__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.hipaa-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 2px solid #dc2626;
  background-color: #fef2f2;
}

.hipaa-notice__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #dc2626;
}

.hipaa-notice__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #991b1b;
}

html.a11y-high-contrast .hipaa-notice {
  border-color: #000;
  background-color: #fff;
}

html.a11y-high-contrast .hipaa-notice__icon,
html.a11y-high-contrast .hipaa-notice__text {
  color: #000;
}

@media print {
  header,
  .no-print,
  .a11y-widget {
    display: none !important;
  }

  body {
    background: white;
  }
}
