/* ============================================================
   Educational Testing Directory — design system
   Type: Bricolage Grotesque (headings) / Atkinson Hyperlegible (body)
   Palette: paper #f2f6fa / ink navy #12263a / cobalt #1d55d6 / marigold #f2b02c
   ============================================================ */

:root {
  --ink: #12263a;
  --ink-soft: #3d5266;
  --muted: #63788c;
  --paper: #f2f6fa;
  --card: #fbfdff;
  --line: #d8e2ec;
  --line-strong: #b9c9d9;
  --cobalt: #1d55d6;
  --cobalt-deep: #143f9f;
  --cobalt-tint: #e5edfc;
  --marigold: #f2b02c;
  --marigold-tint: #fdf1d7;
  --ok: #1d7a4f;
  --ok-tint: #ddf1e6;
  --err: #b3372b;
  --err-tint: #fdeeec;
  --err-line: #f0c8c2;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 38, 58, 0.06), 0 2px 8px rgba(18, 38, 58, 0.05);
  --shadow-lg: 0 4px 10px rgba(18, 38, 58, 0.06), 0 16px 40px rgba(18, 38, 58, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Bricolage Grotesque", sans-serif;
  --font-body: "Atkinson Hyperlegible", sans-serif;
  --header-h: 66px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--marigold);
  border-radius: 2px;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 253, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  flex: none;
  width: 36px;
  height: 36px;
  display: block;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.top nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav a[aria-current="page"]:not(.btn) {
  color: var(--cobalt);
  box-shadow: 0 2px 0 var(--marigold);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--cobalt); color: var(--card); }
.btn-solid:hover { background: var(--cobalt-deep); color: var(--card); }
.btn-solid:disabled { background: var(--muted); cursor: not-allowed; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(52rem 26rem at 88% -12%, var(--cobalt-tint) 0%, rgba(229, 237, 252, 0) 62%),
    linear-gradient(var(--paper), var(--paper));
  padding: 76px 0 84px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.3vw, 3.3rem);
  font-weight: 800;
  margin: 18px 0 20px;
  max-width: 19ch;
}
.hero h1 .mark {
  font-style: italic;
  background-image: linear-gradient(rgba(242, 176, 44, 0.55), rgba(242, 176, 44, 0.55));
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 84%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-sub {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.finder {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
}
.finder-field { display: grid; gap: 4px; padding: 4px 6px 6px; }
.finder-field label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.finder-field select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  border: none;
  background: transparent;
  width: 100%;
  padding: 2px 0;
  cursor: pointer;
}
.finder-field + .finder-field { border-left: 1px solid var(--line); padding-left: 16px; }
.finder .btn { align-self: center; padding: 14px 26px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero-stats span { display: inline-flex; align-items: center; gap: 8px; }
.hero-stats .tick {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

/* coverage panel */

.coverage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* hero photo card */
.hero-visual { position: relative; }
.hero-photo {
  height: 100%;
  min-height: 420px;
  border-radius: 24px;
  background:
    repeating-linear-gradient(135deg, rgba(29, 85, 214, 0.07) 0 10px, rgba(29, 85, 214, 0) 10px 20px),
    #dde7f6;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo.has-image .hero-photo-note { display: none; }
.hero-photo-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--ink-soft, #51637a);
  text-align: center;
  line-height: 1.6;
}
.hero-stat-card {
  position: absolute;
  left: -34px;
  bottom: 44px;
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: 196px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px 16px;
  box-shadow: var(--shadow-lg);
}
.hero-stat-card::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--marigold);
}
.hero-stat-num {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cobalt);
  white-space: nowrap;
}
.hero-stat-unit {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-stat-label {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}
.section .coverage { width: 100%; }

.coverage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.coverage-head h2 { font-size: 1.05rem; font-weight: 800; }
.coverage-head span { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.coverage ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.coverage li { flex: 1 1 0; min-width: 0; }
.coverage li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background-color 0.15s var(--ease);
  text-align: center;
}
.coverage li:last-child a { border-right: none; }
.coverage li a:hover { background: var(--cobalt-tint); text-decoration: none; }
.coverage .st-name { font-weight: 700; font-size: 0.92rem; }
.coverage .st-count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--cobalt);
  background: var(--cobalt-tint);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.coverage-foot {
  display: block;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--paper);
}

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin: 14px 0 10px;
}
.section-head p { color: var(--ink-soft); max-width: 52ch; }
.section-link { font-weight: 700; white-space: nowrap; }

/* categories */

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cat:hover {
  text-decoration: none;
  border-color: var(--cobalt);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.cat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 6px;
}
.cat:nth-child(1) .cat-num { color: var(--cobalt); background: var(--cobalt-tint); }
.cat:nth-child(2) .cat-num { color: #9a6b0a; background: #fdf0d7; }
.cat:nth-child(3) .cat-num { color: #1f7a4d; background: #ddefe4; }
.cat h3 { font-size: 1.28rem; font-weight: 800; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-count {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--cobalt);
}

/* chips (shared: category cards, provider cards, profile services) */

.chip {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.chip-more { background: transparent; border-color: transparent; color: var(--muted); }

/* provider cards (shared: landing + explore) */

.providers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.pcard:hover,
.pcard.is-active { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard.is-active { border-color: var(--marigold); border-top-color: var(--marigold); }
.pcard-top { display: flex; align-items: center; justify-content: space-between; }
.monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--cobalt-tint);
  color: var(--cobalt-deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
}
.badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.badge-verified { background: var(--ok-tint); color: var(--ok); }
.badge-featured { background: var(--marigold-tint); color: #8a5d07; }
.pcard h3 { font-size: 1.14rem; font-weight: 800; }
.pcard h3 a { color: var(--ink); }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard h3 a:hover { color: var(--cobalt); text-decoration: none; }
.pcard-meta { font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }
.pcard-loc { font-size: 0.9rem; font-weight: 700; color: var(--cobalt); margin-top: 2px; }
.pcard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.pcard-fee { font-weight: 700; }
.pcard-yrs { color: var(--muted); }

/* ---------- how it works ---------- */

.how { padding: 0 0 92px; }
.how-panel {
  background: var(--ink);
  color: #e8eef5;
  border-radius: 18px;
  padding: 64px 56px;
}
.how-panel .kicker { color: var(--marigold); }
.how-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #f6f9fc;
  margin: 14px 0 44px;
  max-width: 22ch;
}
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step { position: relative; }
.how-numrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.how-numrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(232, 238, 245, 0.16);
}
.how-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--marigold);
  color: var(--ink);
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 86px 0 92px;
  text-align: center;
  background:
    linear-gradient(115deg, #faf7f0 0%, var(--paper) 45%, #eef3fb 100%);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.cta-band p { color: var(--ink-soft, #51637a); font-size: 1.08rem; margin-bottom: 30px; }
.cta-btn { border-radius: 999px; padding: 15px 30px; font-size: 1.02rem; }
.how-step h3 { font-size: 1.18rem; font-weight: 800; color: #f6f9fc; margin-bottom: 10px; }
.how-step p { font-size: 0.96rem; color: #b6c5d4; }

/* ---------- footer ---------- */

.foot {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  color: var(--ink-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.foot p { font-size: 0.95rem; max-width: 40ch; margin-top: 14px; }
.foot h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }
.foot ul a:hover { color: var(--cobalt); }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.foot-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.foot-legal a:hover { color: var(--cobalt); }

/* ---------- explore ---------- */

.explore-shell {
  display: grid;
  grid-template-columns: minmax(430px, 530px) 1fr;
  height: calc(100vh - var(--header-h));
}

.explore-panel {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--paper);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filters .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color 0.14s var(--ease), background-color 0.14s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  background: var(--card);
}
.select { cursor: pointer; }

.accordion { border-top: 1px solid var(--line); }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 12px 4px;
  cursor: pointer;
}
.accordion-toggle .acc-count {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--card);
  background: var(--cobalt);
  border-radius: 999px;
  padding: 1px 8px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.accordion-toggle .acc-count.on { opacity: 1; transform: scale(1); }
.accordion-toggle .chev {
  flex: none;
  transition: transform 0.2s var(--ease);
  color: var(--muted);
}
.accordion-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 0 4px 12px;
  flex-direction: column;
  gap: 4px;
}
.accordion-toggle[aria-expanded="true"] + .accordion-body { display: flex; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
}
.check:hover { background: var(--paper); color: var(--ink); }
.check input {
  accent-color: var(--cobalt);
  width: 16px;
  height: 16px;
  flex: none;
  cursor: pointer;
}

.filters-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.link-clear {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cobalt);
  cursor: pointer;
  padding: 0;
}
.link-clear:hover { color: var(--cobalt-deep); text-decoration: underline; }

.result-count { font-size: 0.92rem; color: var(--ink-soft); }
.result-count strong { color: var(--ink); }

.explore-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.explore-results .pcard { box-shadow: none; }
.explore-results .pcard:hover,
.explore-results .pcard.is-active { box-shadow: var(--shadow-lg); }

.empty-state {
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 48px 24px;
  color: var(--ink-soft);
}
.empty-state h3 { color: var(--ink); font-weight: 800; margin-bottom: 8px; }
.empty-state p { margin-bottom: 18px; }

.explore-map { position: relative; }

#map { position: absolute; inset: 0; background: var(--cobalt-tint); }

/* leaflet pin */

.pin-wrap { background: none; border: none; }

.pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg) translate(4px, -4px);
  background: var(--cobalt);
  border: 2.5px solid var(--card);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.14s var(--ease), transform 0.14s var(--ease);
}
.pin::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--marigold);
}
.pin.pin-hot {
  background: var(--marigold);
  transform: rotate(-45deg) translate(4px, -4px) scale(1.22);
  z-index: 999;
}
.pin.pin-hot::after { background: var(--ink); }

.map-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
}
.map-popup .leaflet-popup-tip { background: var(--card); }
.map-popup .leaflet-popup-content { margin: 14px 16px; }
.map-popup h3 { font-size: 1rem; font-weight: 800; margin: 0 0 2px; }
.map-popup h3 a { color: var(--cobalt-deep); }
.map-popup h3 a:hover { color: var(--cobalt); }
.map-popup p { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

.map-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  box-shadow: var(--shadow-lg);
}
.map-toggle:active { transform: translateX(-50%) translateY(1px); }

/* ---------- provider profile ---------- */

.profile-hero {
  background: var(--ink);
  color: #e8eef5;
  padding: 48px 0 44px;
}
.profile-hero .crumb { font-size: 0.92rem; margin-bottom: 28px; }
.profile-hero .crumb a { color: var(--marigold); }
.profile-hero .crumb span { color: #7e93a8; }

.profile-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-head .monogram {
  width: 84px;
  height: 84px;
  font-size: 1.7rem;
  background: rgba(229, 237, 252, 0.12);
  color: var(--marigold);
  border: 1px solid rgba(229, 237, 252, 0.25);
}
.profile-head h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: #f6f9fc;
  margin-bottom: 4px;
}
.profile-title { color: #b6c5d4; font-size: 1.15rem; margin-bottom: 12px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.profile-stats {
  display: flex;
  margin-top: 32px;
  border-top: 1px solid rgba(229, 237, 252, 0.18);
  padding-top: 24px;
  flex-wrap: wrap;
}
.pstat { padding: 0 32px; border-left: 1px solid rgba(229, 237, 252, 0.18); }
.pstat:first-child { padding-left: 0; border-left: none; }
.pstat-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7e93a8;
  margin-bottom: 2px;
}
.pstat-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #f6f9fc;
}

.profile-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 64px;
}

.profile-main > section { margin-bottom: 48px; }
.profile-main h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.profile-main p { color: var(--ink-soft); }

.svc-group { margin-bottom: 24px; }
.svc-group h3 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.svc-group .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-group .chip {
  font-size: 0.9rem;
  padding: 6px 14px;
  background: var(--card);
  color: var(--ink);
}

#profile-map {
  height: 300px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--marigold);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.contact-card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.contact-card .contact-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 22px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.field label .opt { font-weight: 500; color: var(--muted); }

.field.is-invalid .input,
.field.is-invalid .textarea { border-color: var(--err); background: var(--err-tint); }

.field-error {
  display: none;
  color: var(--err);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 4px;
}
.field.is-invalid .field-error { display: block; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
}
.form-status.error {
  display: block;
  background: var(--err-tint);
  color: var(--err);
  border: 1px solid var(--err-line);
}

.contact-success {
  text-align: center;
  padding: 24px 0 12px;
  animation: rise-in 0.4s var(--ease);
}
.contact-success .tick {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-success h3 { font-weight: 800; margin-bottom: 8px; }
.contact-success p { color: var(--ink-soft); font-size: 0.92rem; }

.notice-page { text-align: center; padding: 96px 24px; }
.notice-page h1 { font-weight: 800; margin-bottom: 12px; }
.notice-page p { color: var(--ink-soft); margin-bottom: 24px; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { min-height: 300px; }
  .hero-stat-card { left: 18px; bottom: -18px; }
  .cats, .providers, .how-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .profile-body { grid-template-columns: 1fr; }
  .contact-card { position: static; }

  .explore-shell { display: block; height: auto; }
  .explore-panel {
    border-right: none;
    min-height: calc(100vh - var(--header-h));
  }
  .explore-map {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
  }
  body.map-open .explore-map { display: block; }
  body.map-open .explore-panel { display: none; }
  .map-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .top nav { gap: 16px; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 52px 0 60px; }
  .finder { grid-template-columns: 1fr; }
  .finder-field + .finder-field { border-left: none; border-top: 1px solid var(--line); padding-left: 6px; padding-top: 12px; }
  .finder .btn { width: 100%; }
  .cats, .providers, .how-grid { grid-template-columns: 1fr; }
  .how-panel { padding: 44px 28px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .filters .field-row { grid-template-columns: 1fr; }
  .pstat { padding: 0 16px; }
  .profile-head h1 { font-size: 1.7rem; }
}
