:root {
  color-scheme: light;
  --emerald-950: #032c25;
  --emerald-900: #073f34;
  --emerald-800: #075745;
  --emerald-700: #0b6d55;
  --emerald-100: #dff2ea;
  --emerald-50: #eef8f4;
  --gold: #caa654;
  --gold-soft: #f0dfb7;
  --blue-950: #16344f;
  --blue-900: #1b4668;
  --blue-200: #bcd8ea;
  --blue-100: #dcecf6;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #17352e;
  --muted: #60756d;
  --border: #d5e3dd;
  --max: 1180px;
  --shadow: 0 24px 65px rgba(5, 63, 52, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Aptos, Arial, sans-serif;
  line-height: 1.55;
  margin: 0;
  min-width: 320px;
}
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { color: var(--emerald-950); letter-spacing: -.04em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }

.skip-link {
  background: var(--gold);
  border-radius: 0 0 8px 8px;
  font-weight: 900;
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: -6rem;
  z-index: 100;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.directory-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(7, 87, 69, .14);
  display: flex;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { align-items: center; display: flex; text-decoration: none; }
.brand img { display: block; height: 86px; mix-blend-mode: multiply; object-fit: contain; width: 86px; }
.directory-header nav { align-items: center; display: flex; gap: clamp(.85rem, 2.5vw, 2rem); }
.directory-header nav a { color: var(--muted); font-size: .88rem; font-weight: 850; text-decoration: none; }
.directory-header nav a:hover { color: var(--emerald-700); }
.directory-header nav a:last-child { background: var(--emerald-900); border-radius: 999px; color: white; padding: .65rem 1rem; }

.eyebrow { color: var(--emerald-700); font-size: .74rem; font-weight: 900; letter-spacing: .17em; margin: 0 0 .75rem; text-transform: uppercase; }
.directory-hero {
  align-items: center;
  background: radial-gradient(circle at 8% 8%, rgba(185, 223, 209, .68), transparent 27rem), linear-gradient(145deg, #fffdf8 0%, #f4faf7 61%, #eaf4f9 100%);
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .75fr);
  min-height: 650px;
  padding: 5.5rem max(22px, calc((100vw - var(--max)) / 2));
}
.hero-copy { max-width: 720px; }
.directory-hero h1 { font-size: clamp(3.65rem, 7vw, 6.8rem); line-height: .88; margin: 0; }
.hero-lead { color: var(--muted); font-size: clamp(1.05rem, 1.65vw, 1.26rem); margin: 1.6rem 0 0; max-width: 680px; }
.directory-status {
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(5, 63, 52, .07);
  display: flex;
  gap: .9rem;
  margin-top: 2rem;
  max-width: 600px;
  padding: 1rem 1.1rem;
}
.status-dot { background: var(--gold); border: 4px solid var(--gold-soft); border-radius: 50%; flex: 0 0 auto; height: 16px; margin-top: .22rem; width: 16px; }
.directory-status div { display: grid; gap: .15rem; }
.directory-status strong { color: var(--emerald-900); }
.directory-status span:not(.status-dot) { color: var(--muted); font-size: .83rem; }

.coverage-card { background: linear-gradient(150deg, var(--blue-950), var(--blue-900)); border-radius: 24px; box-shadow: var(--shadow); color: white; padding: clamp(1.7rem, 4vw, 3rem); }
.coverage-card .eyebrow { color: var(--gold-soft); }
.coverage-card h2 { color: white; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .98; margin: 0 0 2rem; }
.coverage-card ul { display: grid; list-style: none; margin: 0; padding: 0; }
.coverage-card li { align-items: center; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; font-size: 1rem; font-weight: 800; gap: 1rem; padding: 1rem 0; }
.coverage-card li span { color: var(--gold-soft); font-size: .72rem; letter-spacing: .1em; }

.referral-steps {
  background: linear-gradient(90deg, var(--emerald-900) 0 66.66%, var(--blue-900) 66.66%);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  padding: 1px max(22px, calc((100vw - var(--max)) / 2));
}
.referral-steps article { background: var(--emerald-900); display: flex; gap: 1rem; padding: 1.8rem; }
.referral-steps article:last-child { background: var(--blue-900); }
.referral-steps article > span { color: var(--gold-soft); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.referral-steps strong { color: white; }
.referral-steps p { color: #bad4cc; font-size: .82rem; margin: .3rem 0 0; }

.provider-directory, .listing-preview, .approval-process, .directory-notice {
  margin: 0 auto;
  max-width: var(--max);
  padding: 7rem 22px;
}
.section-heading { align-items: end; display: grid; gap: 3rem; grid-template-columns: 1.1fr .7fr; margin-bottom: 2.4rem; }
.section-heading h2, .preview-copy h2, .approval-process h2, .directory-notice h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .96; margin: 0; }
.section-heading > p, .preview-copy > p:not(.eyebrow) { color: var(--muted); margin: 0; }

.region-filters { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; }
.region-filter {
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--emerald-900);
  cursor: pointer;
  display: inline-flex;
  font-size: .83rem;
  font-weight: 850;
  gap: .6rem;
  min-height: 44px;
  padding: .55rem .7rem .55rem 1rem;
}
.region-filter b { align-items: center; background: var(--emerald-50); border-radius: 50%; display: inline-flex; font-size: .72rem; height: 27px; justify-content: center; min-width: 27px; }
.region-filter:hover { border-color: var(--emerald-700); }
.region-filter[aria-pressed="true"] { background: var(--emerald-900); border-color: var(--emerald-900); color: white; }
.region-filter[aria-pressed="true"] b { background: rgba(255, 255, 255, .14); color: var(--gold-soft); }

.provider-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.provider-group { margin-top: 2.2rem; }
.provider-group + .provider-group { border-top: 1px solid var(--border); margin-top: 3.2rem; padding-top: 3.2rem; }
.provider-group-heading { align-items: end; display: grid; gap: 2rem; grid-template-columns: 1fr minmax(260px, .8fr); margin-bottom: 1.4rem; }
.provider-group-heading h3 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.05; margin: .55rem 0 0; }
.provider-group-heading > p { color: var(--muted); font-size: .86rem; margin: 0; }
.profile-state { border-radius: 999px; display: inline-flex; font-size: .68rem; font-weight: 900; letter-spacing: .09em; padding: .42rem .7rem; text-transform: uppercase; width: fit-content; }
.profile-state-approved { background: var(--emerald-100); color: var(--emerald-900); }
.profile-state-provisional { background: var(--gold-soft); color: #654b11; }
.card-profile-state { margin-bottom: 1rem; }
.provider-card-provisional { border-top: 4px solid var(--gold); box-shadow: 0 18px 55px rgba(96, 70, 14, .08); }
.empty-state { background: linear-gradient(135deg, var(--emerald-50), #eef5fa); border: 1px dashed #9bbcaf; border-radius: 20px; padding: clamp(2rem, 5vw, 4rem); text-align: center; }
.empty-state > span { color: var(--gold-text, #80631f); font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.empty-state h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: .7rem 0 .5rem; }
.empty-state p { color: var(--muted); margin: 0 auto; max-width: 660px; }

.listing-preview { align-items: center; border-top: 1px solid var(--border); display: grid; gap: clamp(2.5rem, 7vw, 7rem); grid-template-columns: .78fr 1.22fr; }
.preview-copy { max-width: 470px; }
.preview-copy > p:not(.eyebrow) { margin-top: 1.5rem; }
.provider-card { background: white; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 18px 55px rgba(5, 63, 52, .08); display: flex; flex-direction: column; min-width: 0; padding: clamp(1.3rem, 3vw, 2rem); }
.provider-card-preview { background: linear-gradient(145deg, #ffffff, #fbfdfc); position: relative; }
.preview-label { background: var(--gold-soft); border-radius: 999px; color: var(--emerald-950); font-size: .68rem; font-weight: 900; letter-spacing: .08em; margin: 0 0 1.5rem; padding: .45rem .7rem; text-transform: uppercase; width: fit-content; }
.provider-head { align-items: center; display: flex; gap: 1rem; }
.provider-head > div:last-child { min-width: 0; }
.logo-placeholder, .provider-logo { align-items: center; background: var(--emerald-100); border: 1px solid var(--border); border-radius: 16px; color: var(--emerald-800); display: flex; flex: 0 0 74px; font-size: .68rem; font-weight: 900; height: 74px; justify-content: center; letter-spacing: .08em; object-fit: contain; padding: .35rem; width: 74px; }
.provider-region { color: var(--blue-900); display: block; font-size: .7rem; font-weight: 900; letter-spacing: .08em; margin-bottom: .25rem; text-transform: uppercase; }
.provider-card h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.05; margin: 0; }
.provider-summary { color: var(--muted); font-size: .9rem; margin: 1.35rem 0; }
.service-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.service-list span { background: var(--blue-100); border-radius: 999px; color: var(--blue-950); font-size: .72rem; font-weight: 800; padding: .42rem .65rem; }
.service-list span:nth-child(even) { background: var(--emerald-100); color: var(--emerald-900); }
.provider-details { border-top: 1px solid var(--border); margin: 1.4rem 0 0; }
.provider-details div { border-bottom: 1px solid var(--border); display: grid; gap: .8rem; grid-template-columns: 125px 1fr; padding: .85rem 0; }
.provider-details dt { color: var(--emerald-900); font-size: .73rem; font-weight: 900; }
.provider-details dd { color: var(--muted); font-size: .78rem; margin: 0; }
.provider-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.provider-actions a, .provider-actions > span { border-radius: 8px; display: inline-flex; font-size: .78rem; font-weight: 900; justify-content: center; min-height: 44px; padding: .75rem 1rem; text-decoration: none; }
.provider-actions .primary-action, .provider-actions > span:first-child { background: var(--emerald-900); color: white; }
.provider-actions .secondary-action, .provider-actions > span:last-child { border: 1px solid var(--blue-900); color: var(--blue-900); }
.provider-card-preview .provider-actions > span { opacity: .78; }

.approval-process { border-top: 1px solid var(--border); display: grid; gap: clamp(2.5rem, 7vw, 7rem); grid-template-columns: .8fr 1.2fr; }
.approval-process ol { list-style: none; margin: 0; padding: 0; }
.approval-process li { border-top: 1px solid var(--border); display: grid; gap: 1rem; grid-template-columns: 42px 1fr; padding: 1.25rem 0; }
.approval-process li > span { color: var(--gold-text, #80631f); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.approval-process strong { color: var(--emerald-900); }
.approval-process p { color: var(--muted); font-size: .84rem; margin: .25rem 0 0; }

.directory-notice { background: var(--blue-950); border-radius: 24px; color: white; margin-bottom: 7rem; max-width: calc(var(--max) - 44px); padding: clamp(2rem, 5vw, 4rem); }
.directory-notice .eyebrow { color: var(--gold-soft); }
.directory-notice h2 { color: white; }
.directory-notice > p:last-child { color: var(--blue-200); margin: 1.4rem 0 0; max-width: 900px; }

footer { align-items: center; background: linear-gradient(100deg, #021f19, var(--blue-950)); color: #c6ddd5; display: grid; gap: 1.5rem; grid-template-columns: .6fr 1fr 1fr; padding: 3rem max(22px, calc((100vw - var(--max)) / 2)); }
.footer-brand { align-items: center; background: white; border-radius: 12px; display: flex; height: 102px; justify-content: center; overflow: hidden; width: 102px; }
.footer-brand img { height: 100%; object-fit: contain; width: 100%; }
footer p, footer small { color: #a9c9c0; font-size: .8rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-self: end; }
.footer-links a { color: var(--gold-soft); font-size: .8rem; font-weight: 800; text-decoration: none; }
footer small { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .directory-header { align-items: flex-start; flex-direction: column; padding-bottom: .65rem; padding-top: .5rem; }
  .directory-header nav { align-self: stretch; overflow-x: auto; padding: .25rem 0; }
  .directory-header nav a { white-space: nowrap; }
  .directory-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 4rem; }
  .coverage-card { max-width: 630px; width: 100%; }
  .section-heading, .provider-group-heading, .listing-preview, .approval-process { grid-template-columns: 1fr; }
  .preview-copy { max-width: 700px; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-self: start; }
}

@media (max-width: 640px) {
  .directory-header { padding-left: 16px; padding-right: 16px; }
  .directory-header nav { gap: 1rem; }
  .directory-header nav a:last-child { background: transparent; color: var(--muted); padding: 0; }
  .directory-hero { padding: 4rem 16px; }
  .directory-hero h1 { font-size: clamp(3.15rem, 16vw, 5rem); }
  .referral-steps { grid-template-columns: 1fr; padding: 0; }
  .referral-steps article { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .provider-directory, .listing-preview, .approval-process { padding: 4.5rem 16px; }
  .section-heading { gap: 1.2rem; }
  .region-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .region-filter { justify-content: space-between; min-width: 0; }
  .provider-grid { grid-template-columns: 1fr; }
  .provider-details div { gap: .3rem; grid-template-columns: 1fr; }
  .provider-actions, .provider-actions a, .provider-actions > span { width: 100%; }
  .directory-notice { border-radius: 0; margin-bottom: 0; max-width: none; }
  footer { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 400px) {
  .region-filters { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
