/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --blue:    #5BCEFA;
  --pink:    #F5A9B8;
  --navy:    #1B2F4E;
  --ink:     #1B2F4E;
  --body:    #374E6A;
  --muted:   #6B82A0;
  --border:  #DDE5EE;
  --off:     #F5F7FA;
  --white:   #FFFFFF;
  --purple:  #3A6B9A;
  --ff-d:    'DM Sans', system-ui, sans-serif;
  --ff-b:    'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #22223A; }
body {
  font-family: var(--ff-b);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.contact-page { flex: 1; }

/* ─── SAFE EXIT ──────────────────────────────────────────── */
#safe-exit {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, #5BCEFA 0%, #C8C0E0 42%, #F5A9B8 100%);
  color: var(--navy);
  font-family: var(--ff-b);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 10px;
  border-radius: 8px 0 0 8px;
  cursor: pointer; text-decoration: none;
  border: none; line-height: 1;
  transition: opacity 0.2s;
}
#safe-exit:hover { opacity: 0.85; }

/* ─── NAV ────────────────────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 1200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.nav-logo svg { display: block; }
.nav-logo-text {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #5A5A7A; line-height: 1.6;
}
.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--body); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-contact {
  font-family: var(--ff-b);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 30px;
  border: 2px solid var(--pink); color: var(--ink);
  background: var(--white); cursor: pointer;
  text-decoration: none; transition: background 0.2s;
}
.nav-contact:hover { background: #fff0f3; }

/* ─── HOME ───────────────────────────────────────────────── */
.hero {
  min-height: 506px;
  background: linear-gradient(160deg, #C5EEF8 0%, #E5F5F0 40%, #F8E5F0 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.hero-content {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  text-align: left;
  padding: 4.6rem 2.875rem 4.6rem 4rem;
}
.hero-title-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.hero-h1 {
  font-family: var(--ff-d);
  font-size: 69px; font-weight: 400;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 0.35rem;
}
.hero-initial {
  font-weight: 700;
  background: linear-gradient(160deg, #5BCEFA 0%, #C8C0E0 50%, #F5A9B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-chapter {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  align-self: flex-end; text-align: right;
}
.hero-sub {
  font-size: 17px; color: var(--body);
  line-height: 1.75; margin-bottom: 2.3rem;
  max-width: 460px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.hero-map-visual {
  position: relative;
  overflow: hidden;
  background: transparent;
}
.canada-silhouette {
  position: absolute;
  width: 150%; height: 150%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(35deg);
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-map-visual { display: none; }
  .hero-content { padding: 3.5rem 1.75rem; }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--ff-b); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 30px;
  background: var(--ink); color: var(--white);
  border: none; cursor: pointer; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-sec {
  font-family: var(--ff-b); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 30px;
  background: var(--white); color: var(--ink);
  border: 2px solid rgba(0,0,0,0.15); cursor: pointer;
  transition: background 0.2s;
}
.btn-sec:hover { background: var(--off); }
.btn-outline {
  font-family: var(--ff-b); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 30px;
  border: 2px solid var(--ink); color: var(--ink);
  background: var(--white); cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--off); }

/* Page title strip */
.page-title-strip {
  padding: 2.5rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--ff-d); font-size: 42px;
  font-weight: 700; letter-spacing: 0.04em; color: var(--ink);
  margin-bottom: 0.5rem;
}
.flag-rule {
  display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-bottom: 1.25rem;
}
.flag-rule span { flex: 1; }
.what-q { font-size: 15px; font-weight: 700; color: var(--ink); }

/* ─── ACTION CARDS ───────────────────────────────────────── */
.action-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 2rem; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--border);
}
.ac { position: relative; height: 160px; cursor: pointer; overflow: hidden; }
.ac:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.5); }
.ac-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: filter 0.2s; }
.ac:hover .ac-bg { filter: brightness(0.95); }
.ac-bg.b { background: linear-gradient(160deg,#C5ECF8,#A5D8F0); }
.ac-bg.m { background: linear-gradient(160deg,#C5EDF0,#A8E0E8); }
.ac-bg.p { background: linear-gradient(160deg,#F5DFF0,#EEC5DC); }
.ac-icon { font-size: 40px; opacity: 0.75; }
.ac-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 9px 10px;
  background: rgba(255,255,255,0.88);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-align: center;
  border-top: 1px solid rgba(255,255,255,0.7);
}

/* ─── QUOTE BAND ─────────────────────────────────────────── */
.quote-band {
  margin-top: 2rem; padding: 2.75rem 3rem;
  background: var(--navy);
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--ff-d); font-size: 17px;
  font-style: italic; color: var(--white);
  line-height: 1.75; max-width: 540px;
  margin: 0 auto;
}
.quote-band blockquote::before {
  content: '\201C';
  display: block; font-size: 48px; line-height: 0.6;
  color: rgba(255,255,255,0.5); margin-bottom: 1rem;
}

/* ─── HOME MAP SECTION ───────────────────────────────────── */
.home-map-section { border-top: 1px solid var(--border); padding: 2.5rem 0 0; }
.home-map-header  { padding: 0 2rem 1.5rem; }
.home-map-frame-wrap { padding: 0 2rem 2.5rem; }
.home-map-frame {
  border: 1.5px solid rgba(26,26,46,0.28);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(26,26,46,0.06);
}
.home-map-h1 {
  font-family: var(--ff-d); font-size: 34px;
  font-weight: 700; color: var(--ink);
  margin-bottom: 0.6rem; line-height: 1.2;
}

/* ─── HOME CARDS SECTION ─────────────────────────────────── */
.home-cards-section { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.cards-h2 {
  font-family: var(--ff-d); font-size: 24px;
  font-weight: 700; color: var(--ink);
  margin-bottom: 1.25rem; padding: 0 2rem;
}

/* ─── SECTION UTILITIES ──────────────────────────────────── */
.section-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.section-h2 {
  font-family: var(--ff-d); font-size: 26px;
  font-weight: 700; color: var(--ink); margin-bottom: 0.5rem;
}
.section-body {
  font-size: 14px; line-height: 1.75; color: var(--body);
  margin-bottom: 1.5rem; max-width: 560px;
}

/* ─── LEAFLET MAP CONTAINERS ─────────────────────────────── */
#canada-map-home { width: 100%; height: 560px; overflow: hidden; }
#canada-map-dir  { width: 100%; height: 560px; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.map-wrap { position: relative; }
.leaflet-container { background: var(--off) !important; }

/* ─── LEAFLET TOOLTIP ────────────────────────────────────── */
.tlan-tip {
  background: var(--ink) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
  color: #fff !important;
  font-family: var(--ff-b) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}
.tlan-tip.leaflet-tooltip-top::before { border-top-color: var(--ink) !important; }

/* ─── LEAFLET POPUP ──────────────────────────────────────── */
.tlan-popup .leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10) !important;
  padding: 0 !important;
}
.tlan-popup .leaflet-popup-content { margin: 0 !important; width: auto !important; }
.tlan-pop { padding: 14px 16px; font-family: var(--ff-b); }
.tlan-pop-name { font-family: var(--ff-d); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.tlan-pop-role { font-size: 12px; font-weight: 700; color: var(--body); margin-bottom: 2px; }
.tlan-pop-loc  { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.tlan-pop-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tlan-pop-tag  { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 20px; }
.tlan-pop-tag.ac { background: #D5F0E8; color: #2A7A5A; }
.tlan-pop-tag.vt { background: #D5EEF8; color: #2A7A9A; }
.tlan-pop-tag.pb { background: #EDE5F8; color: #6A3A9A; }

/* ─── PROVIDER PIN & CLUSTER ─────────────────────────────── */
.tlan-pin-wrap { background: transparent !important; border: none !important; }
.tlan-pin-dot  { width: 16px; height: 16px; background: #5BCEFA; border: 2.5px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,0.22); cursor: pointer; }
.tlan-cluster-wrap  { background: transparent !important; border: none !important; }
.tlan-cluster-inner { width: 38px; height: 38px; background: #5BCEFA; border: 3px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ff-b); font-size: 13px; font-weight: 700; color: var(--ink); box-shadow: 0 2px 8px rgba(91,206,250,0.45); cursor: pointer; }
.region-lbl { background: transparent !important; border: none !important; pointer-events: none; }

/* ─── CONTACT ROW ────────────────────────────────────────── */
.contact-row {
  padding: 2rem 2rem; display: grid;
  grid-template-columns: 1fr auto; align-items: center;
  gap: 2rem; border-top: 1px solid var(--border);
}
.contact-row h3 {
  font-family: var(--ff-d); font-size: 22px;
  font-weight: 700; margin-bottom: 6px;
}
.contact-row p { font-size: 13px; line-height: 1.7; color: var(--body); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: #22223A; padding: 2.5rem 2rem;
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 2rem;
}
.footer-partners-col { text-align: center; }
.page-about footer { grid-template-columns: 1fr 1fr; }
.page-about .footer-partners-col { display: none; }
.footer-partner-logos {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.75rem;
}
.footer-partner-chip {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 6px; padding: 5px 12px;
  opacity: 0.70; transition: opacity 0.2s;
}
.footer-partner-chip:hover { opacity: 0.95; }
.footer-partner-chip img {
  height: 26px; width: auto; display: block;
}
.footer-links a {
  display: block; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.55); text-decoration: none;
  margin-bottom: 6px; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-col-h {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.footer-partner { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.65); margin-bottom: 5px; }
.footer-partner span { color: rgba(255,255,255,0.3); font-weight: 400; }

/* ─── DIRECTORY PAGE ─────────────────────────────────────── */
.dir-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 600px;
  border-top: 1px solid var(--border);
}
.dir-sidebar {
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--off);
  position: sticky; top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.dir-sidebar h3 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 4px; letter-spacing: 0.04em;
}
.filter-select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--white); font-family: var(--ff-b);
  font-size: 13px; color: var(--body);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A7A9A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.toggle-row:last-of-type { border-bottom: none; }
.toggle-label { font-size: 13px; font-weight: 500; color: var(--body); }
.toggle {
  position: relative; width: 36px; height: 20px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #D0D0E0; border-radius: 20px;
  cursor: pointer; transition: background 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 14px; height: 14px; left: 3px; top: 3px;
  background: var(--white); border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }
.filter-btn {
  width: 100%; padding: 11px; border-radius: 6px;
  background: var(--blue); color: var(--ink);
  font-family: var(--ff-b); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer; margin-top: 1rem;
  transition: background 0.2s;
}
.filter-btn:hover { background: #44BCEC; }
.clear-btn {
  width: 100%; padding: 8px; border-radius: 6px;
  background: transparent; color: var(--muted);
  font-family: var(--ff-b); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border); cursor: pointer; margin-top: 6px;
  transition: background 0.2s;
}
.clear-btn:hover { background: var(--border); }
.dir-results { padding: 1.5rem 2rem; }
.dir-results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.dir-results-header h2 {
  font-family: var(--ff-d); font-size: 22px;
  font-weight: 700; color: var(--ink);
}
.result-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.provider-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.provider-card:last-child { border-bottom: none; }
.provider-name {
  font-family: var(--ff-d); font-size: 24px;
  font-weight: 400; color: var(--ink);
  margin-bottom: 6px; cursor: pointer;
}
.provider-name:hover { color: var(--purple); }
.provider-role { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.provider-meta { font-size: 14px; color: var(--body); margin-bottom: 8px; line-height: 1.6; }
.provider-meta a { color: var(--purple); text-decoration: none; }
.provider-meta a:hover { text-decoration: underline; }
.provider-desc { font-size: 15px; color: var(--body); line-height: 1.75; margin-bottom: 12px; max-width: 600px; }
.provider-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px; border-radius: 30px;
  background: var(--off); color: var(--body);
  border: 1px solid var(--border);
}
.tag.accepting { background: #D5F0E8; color: #2A7A5A; border-color: #B0DFD0; }
.tag.virtual   { background: #D5EEF8; color: #2A7A9A; border-color: #A8D8F0; }
.tag.probono   { background: #EDE5F8; color: #6A3A9A; border-color: #C8B8E8; }
.more-info-btn {
  font-family: var(--ff-b); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 30px;
  border: 2px solid var(--border); color: var(--body);
  background: var(--white); cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.more-info-btn:hover { border-color: var(--blue); color: var(--ink); }
.dir-map-wrap { padding: 1.5rem 4rem; border-top: 1px solid var(--border); }


/* ─── DIRECTORY HERO ─────────────────────────────────────── */
.dir-hero {
  background: linear-gradient(160deg, #C5EEF8 0%, #E5F5F0 50%, #F8E5F0 100%);
  padding: 3.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.dir-hero-h1 {
  font-family: var(--ff-d); font-size: 38px;
  font-weight: 700; color: var(--ink);
  margin-bottom: 1.25rem; margin-top: 0.4rem;
}
.dir-hero-lead {
  font-size: 16.5px; line-height: 1.85; color: var(--body);
  max-width: 70%; margin-bottom: 0.85rem;
}
.dir-hero-body {
  font-size: 15.5px; line-height: 1.85; color: var(--body);
  max-width: 70%;
}
.dir-hero-note {
  font-size: 15.5px; font-style: italic; color: var(--muted);
  max-width: 70%; line-height: 1.7; margin-top: 1.25rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(27,47,78,0.1);
}

/* ─── PROVIDER STANDARDS ─────────────────────────────────── */
.dir-standards { border-bottom: 1px solid var(--border); }
.dir-standards-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.75rem 2rem; cursor: pointer; list-style: none;
  user-select: none; transition: background 0.15s;
}
.dir-standards-summary:hover { background: var(--off); }
.dir-standards-summary::-webkit-details-marker { display: none; }
.dir-standards-title {
  font-family: var(--ff-d); font-size: 22px;
  font-weight: 700; color: var(--ink);
}
.dir-standards-chevron { transition: transform 0.2s; flex-shrink: 0; color: var(--muted); }
details[open] .dir-standards-chevron { transform: rotate(180deg); }
.dir-standards-body {
  padding: 0 2rem 2.5rem;
  border-top: 1px solid var(--border);
}
.affirmation-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: affirm; max-width: 80%;
}
.affirmation-list li {
  display: grid; grid-template-columns: 52px 1fr;
  gap: 1.5rem; padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  counter-increment: affirm;
  font-size: 16px; color: var(--body); line-height: 1.85;
}
.affirmation-list li:last-child { border-bottom: none; }
.affirmation-list li::before {
  content: counter(affirm, decimal-leading-zero);
  font-family: var(--ff-d); font-size: 26px;
  font-weight: 700; color: var(--border);
  line-height: 1; padding-top: 2px;
}

/* ─── DIRECTORY DISCLAIMER ───────────────────────────────── */
.dir-disclaimer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.dir-disclaimer p {
  font-size: 12px; color: var(--muted);
  line-height: 1.75; max-width: 720px; font-style: italic;
}

/* ─── MAP LEGEND ─────────────────────────────────────────── */
.map-legend {
  position: absolute; bottom: 1.25rem; left: 1.25rem; z-index: 1000;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; display: flex; flex-direction: column; gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  pointer-events: none;
}
.legend-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--body);
}
.legend-dot {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
  display: inline-block;
}

/* ─── SEARCH BAR ─────────────────────────────────────────── */
.search-wrap { position: relative; }
.search-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.search-input { padding-left: 34px !important; }

/* ─── ACTIVE FILTER CHIPS ────────────────────────────────── */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--navy); color: #fff;
  font-family: var(--ff-b); font-size: 11px; font-weight: 600;
  border: none; cursor: pointer; transition: opacity 0.15s;
}
.filter-chip:hover { opacity: 0.8; }
.filter-chip span { font-size: 13px; line-height: 1; opacity: 0.7; }

/* ─── PROVIDER CARD ACCENT ───────────────────────────────── */
.provider-card {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  transition: border-left-color 0.2s;
}
.provider-card.card-accepting { border-left-color: var(--blue); }
.provider-card-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1.5rem;
}
.provider-role {
  font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 10px;
}
.provider-areas { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.area-tag {
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  padding: 5px 13px; border-radius: 20px;
  background: transparent; color: var(--body);
  border: 1px solid var(--border);
}

/* ─── NO RESULTS ─────────────────────────────────────────── */
.no-results {
  padding: 3rem 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.no-results p { font-size: 14px; color: var(--muted); }

/* ─── CTA STRIP ──────────────────────────────────────────── */
.dir-cta-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; margin-top: 2.5rem; padding: 2rem 2.25rem;
  background: linear-gradient(135deg, #EBF7FD 0%, #F0ECF8 50%, #FDE8EF 100%);
  border-radius: 14px; border: 1px solid var(--border);
}
.dir-cta-text strong {
  display: block; font-family: var(--ff-d);
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.dir-cta-text p { font-size: 13px; color: var(--body); line-height: 1.65; max-width: 440px; }

/* ─── PROVIDER MODAL ─────────────────────────────────────── */
.provider-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(27,47,78,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.provider-modal.open { opacity: 1; pointer-events: all; }
.provider-modal-box {
  background: var(--white); border-radius: 16px;
  width: 100%; max-width: 540px; max-height: 85vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(12px);
  transition: transform 0.2s;
}
.provider-modal.open .provider-modal-box { transform: translateY(0); }
.modal-close {
  position: sticky; top: 0; float: right;
  margin: 1rem 1rem 0 0;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--body); z-index: 1;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }
.modal-header { padding: 1.75rem 2rem 1rem; }
.modal-name {
  font-family: var(--ff-d); font-size: 26px;
  font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.modal-role { font-size: 14px; font-weight: 700; color: var(--body); margin-bottom: 2px; }
.modal-loc   { font-size: 13px; color: var(--muted); }
.modal-phone { font-size: 13px; color: var(--muted); margin-top: 2px; }
.modal-tags { padding: 0 2rem 1.25rem; display: flex; flex-wrap: wrap; gap: 6px; }
.modal-section-head {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 2rem; margin-bottom: 8px; margin-top: 1.25rem;
}
.modal-desc { font-size: 14px; color: var(--body); line-height: 1.8; padding: 0 2rem; }
.modal-areas { padding: 0 2rem; display: flex; flex-wrap: wrap; gap: 6px; }
.modal-contact-note {
  margin: 1.75rem 2rem 2rem;
  padding: 1rem 1.25rem;
  background: var(--off); border-radius: 8px;
  font-size: 13px; color: var(--body); line-height: 1.7;
}
.modal-contact-note a { color: var(--purple); text-decoration: none; }
.modal-contact-note a:hover { text-decoration: underline; }

/* ─── MOBILE FILTER TOGGLE ───────────────────────────────── */
.filter-toggle-bar {
  display: none; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off);
}
.filter-toggle-btn {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-b); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 30px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--ink); cursor: pointer; transition: background 0.15s;
}
.filter-toggle-btn:hover { background: var(--border); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .filter-toggle-bar { display: flex; }
  .dir-layout { grid-template-columns: 1fr; }
  .dir-sidebar {
    position: fixed; left: -300px; top: 64px;
    width: 280px; height: calc(100vh - 64px);
    z-index: 1100; transition: left 0.28s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.10);
  }
  .dir-sidebar.open { left: 0; }
  .provider-card-inner { flex-direction: column; }
  .dir-cta-strip { flex-direction: column; text-align: center; }
  .dir-cta-text p { max-width: none; }
  .affirmation-list { max-width: 100%; }
  .dir-hero-lead, .dir-hero-body { max-width: 100%; }
}

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(160deg, #C5EEF8 0%, #E5F5F0 50%, #F8E5F0 100%);
  padding: 3rem 2rem; text-align: center;
}
.about-hero h1 {
  font-family: var(--ff-d); font-size: 38px;
  font-weight: 700; color: var(--ink); margin-bottom: 1rem;
}
.about-hero p {
  font-family: var(--ff-d); font-size: 16px;
  font-style: italic; color: var(--body);
  max-width: 540px; margin: 0 auto; line-height: 1.75;
}
.about-body { padding: 2.5rem 2rem; max-width: 1224px; margin: 0 auto; }
.about-body h2 {
  font-family: var(--ff-d); font-size: 26px;
  font-weight: 700; color: var(--ink); margin-bottom: 1rem;
}
.about-body p { font-size: 15px; line-height: 1.85; color: var(--body); margin-bottom: 1.25rem; }
.affirm-items {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 0.625rem;
  margin: 1.25rem 0 0;
}
.affirm-items li {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--blue);
  background: rgba(91,206,250,0.06);
  border-radius: 0 8px 8px 0;
  font-size: 14px; line-height: 1.85; color: var(--body);
}
.affirm-items li:nth-child(3n+2) { border-left-color: var(--pink); background: rgba(245,169,184,0.06); }
.affirm-items li:nth-child(3n)   { border-left-color: #C8C0E0;    background: rgba(200,192,224,0.06); }
/* ─── CONTACT PAGE ───────────────────────────────────────── */
.contact-page { padding: 3rem 2rem; max-width: 640px; margin: 0 auto; }
.contact-page h1 { font-family: var(--ff-d); font-size: 36px; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.contact-page .flag-rule { margin-bottom: 1.5rem; }
.contact-page p { font-size: 15px; line-height: 1.8; color: var(--body); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--ff-b); font-size: 14px; color: var(--ink);
  background: var(--white); transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.provider-fields { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.provider-fields.open { max-height: 4000px; }
.provider-section-head {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 1.75rem 0 1rem;
  display: flex; align-items: center; gap: 10px;
}
.provider-section-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 6px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); cursor: pointer; line-height: 1.4; }
.check-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.form-note { font-size: 13px; font-style: italic; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.affirm-block {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.75rem;
}
.affirm-block ol { padding-left: 1.25rem; font-size: 12px; line-height: 1.75; color: var(--body); }
.affirm-block li { margin-bottom: 0.6rem; }
.affirm-block li:last-child { margin-bottom: 0; }
.affirm-confirm {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer; line-height: 1.5;
}
.affirm-confirm input[type="checkbox"] { margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; width: 15px; height: 15px; }

/* ─── HAMBURGER BUTTON ───────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--ink); border-radius: 6px;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--off); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.how-it-works { border-top: 1px solid var(--border); padding: 2.5rem 2rem; }
.how-it-works-header { margin-bottom: 1.75rem; }
.steps {
  display: flex; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.step {
  flex: 1; padding: 1.5rem 1.25rem;
  background: var(--white);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.step-number {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.step-title {
  font-family: var(--ff-d); font-size: 16px;
  font-weight: 700; color: var(--ink);
}
.step-desc { font-size: 13px; line-height: 1.75; color: var(--body); }

/* ─── PRIVACY NOTICE ─────────────────────────────────────── */
.privacy-notice {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  background: var(--off);
  text-align: center;
}
.privacy-notice p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── TEAM SECTION ───────────────────────────────────────── */
.team-section {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  max-width: 1224px;
  margin: 0 auto;
  width: 100%;
}
.team-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-top: 1.25rem;
}
.team-card {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.75rem;
  border-top: 3px solid var(--blue);
}
.team-card:nth-child(2) { border-top-color: var(--pink); }
.team-pronouns {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.team-name {
  font-family: var(--ff-d); font-size: 22px;
  font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.team-role {
  font-size: 13px; font-weight: 600;
  color: var(--muted); margin-bottom: 1rem;
}
.team-bio {
  font-size: 14px; line-height: 1.85; color: var(--body);
}

/* ─── COALITION SECTION ──────────────────────────────────── */
.coalition-section {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem; text-align: center;
}
.partner-logos {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 2.625rem; margin-top: 1.5rem;
}
.partner-logo-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
}
.partner-logo-item img {
  height: 48px; width: auto;
  filter: grayscale(20%); opacity: 0.85;
  transition: opacity 0.2s, filter 0.2s;
}
.partner-logo-item:hover img { opacity: 1; filter: grayscale(0%); }
.partner-logo-item span {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}
.partner-card img {
  max-height: 40px; max-width: 100%;
  object-fit: contain; margin-bottom: 0.75rem;
}

/* ─── TABLET (≤820px) ────────────────────────────────────── */
@media (max-width: 820px) {
  footer { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .hero-h1 { font-size: 51px; }
  .dir-hero-note { max-width: 100%; }
}

/* ─── MOBILE (≤640px) ────────────────────────────────────── */
@media (max-width: 640px) {
  /* Nav — hamburger */
  #nav { padding: 0 1.25rem; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0;
    z-index: 1199;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { display: block; }
  .nav-links a {
    display: block; padding: 14px 1.5rem;
    font-size: 14px; border-bottom: 1px solid var(--border);
  }
  .nav-contact { display: none; }

  /* Hero */
  .hero-h1 { font-size: 37px; }
  .hero-content { padding: 2.3rem 1.44rem; }

  /* Home sections */
  .home-map-header { padding: 0 1.25rem 1.25rem; }
  .home-map-frame-wrap { padding: 0 1.25rem 1.5rem; }
  .contact-row { grid-template-columns: 1fr; text-align: center; gap: 1rem; }

  /* Footer */
  footer { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Maps */
  #canada-map-home, #canada-map-dir { height: 320px; }
  .dir-map-wrap { padding: 1rem 1.25rem; }

  /* Directory */
  .dir-hero { padding: 2rem 1.25rem; }
  .dir-hero-h1 { font-size: 26px; }

  /* About */
  .about-hero { padding: 2rem 1.25rem; }
  .about-hero h1 { font-size: 28px; }
  .partner-grid { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr; }
  .team-section { padding: 2rem 1.25rem; }

  /* Resources */
  .resources-grid { grid-template-columns: 1fr; }
  .resources-hero { padding: 2rem 1.25rem; }
  .resources-hero h1 { font-size: 28px; }

  /* Contact form */
  .contact-page { padding: 2rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }

  /* Provider modal — slides up from bottom on phone */
  .provider-modal { padding: 0; align-items: flex-end; }
  .provider-modal-box {
    max-height: 92vh; max-width: 100%;
    border-radius: 16px 16px 0 0;
  }

  /* How It Works / Steps */
  .steps { flex-direction: column; }
  .how-it-works { padding: 2rem 1.25rem; }

  /* Action cards */
  .action-cards { grid-template-columns: 1fr; margin: 0 1.25rem; }
  .ac { height: 80px; }

  /* Privacy / Coalition */
  .privacy-notice { padding: 1rem 1.25rem; }
  .coalition-section { padding: 2rem 1.25rem; }

  /* Misc */
  .page-title { font-size: 28px; }
  .section-h2 { font-size: 22px; }
}
