:root {
  --v2-page: #f4f8f8;
  --v2-surface: #ffffff;
  --v2-ink: #12303b;
  --v2-muted: #5d737d;
  --v2-line: #d9e5e7;
  --v2-primary: #087f8c;
  --v2-primary-dark: #07566a;
  --v2-aqua: #4fd1cd;
  --v2-blue: #2878a9;
  --v2-green: #26866c;
  --v2-warning: #a76b18;
  --v2-danger: #b93645;
  --v2-shadow: 0 14px 38px rgba(18, 48, 59, 0.08);
  --v2-readable: 48rem;
  --v2-pad: clamp(1rem, 2.2vw, 2.75rem);
  --v2-section: clamp(3.5rem, 7vw, 7rem);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body.site-body {
  color: var(--v2-ink);
  background: var(--v2-page);
}

body.site-body,
button,
input,
select,
textarea {
  font-family: "Figtree", "Noto Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

body.site-body *,
body.site-body *::before,
body.site-body *::after {
  box-sizing: border-box;
}

body.site-body img {
  display: block;
  max-width: 100%;
}

body.site-body :focus-visible {
  outline: 3px solid rgba(8, 127, 140, 0.34);
  outline-offset: 3px;
}

.site-main.shell.shell--main {
  width: 100%;
  max-width: none;
  padding-inline: var(--v2-pad);
}

.site-page.site-stack {
  width: 100%;
  max-width: none;
}

.site-page.site-stack > * {
  min-width: 0;
}

.shell.shell--address {
  width: 100%;
  max-width: none;
  padding: 0.75rem var(--v2-pad) 0;
}

.location-guide {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--v2-muted);
  background: transparent;
  box-shadow: none;
}

.quick-path {
  display: none;
}

.site-trail__list {
  gap: 0.4rem;
}

.site-trail__item,
.site-trail__item a {
  color: var(--v2-muted);
  font-size: 0.78rem;
}

.site-trail__item.is-current {
  color: var(--v2-ink);
  font-weight: 800;
}

.location-guide .site-trail__item.is-current,
.location-guide .site-trail__item.is-current span {
  color: var(--v2-ink);
}

.v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--v2-primary);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.v2-kicker__icon {
  width: 1rem;
  height: 1rem;
}

.v2-kicker--inverse {
  color: #8ff0e7;
}

.v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.v2-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.v2-button:hover {
  transform: translateY(-1px);
}

.v2-button--primary {
  color: #062f39;
  background: var(--v2-aqua);
}

.v2-button--primary:hover {
  color: #052932;
  background: #69ddd8;
}

.v2-button--secondary {
  color: var(--v2-ink);
  background: var(--v2-surface);
  border-color: var(--v2-line);
}

.v2-button--secondary:hover {
  color: var(--v2-primary-dark);
  border-color: #9dc5ca;
}

.v2-button--light {
  color: #073b47;
  background: #ffffff;
}

.v2-button--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.v2-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  min-height: min(43rem, calc(100svh - 7rem));
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background: var(--v2-primary-dark);
}

.v2-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5.5rem);
  background: #07566a;
}

.v2-hero__copy::after {
  position: absolute;
  z-index: -1;
  inset: 0 -8rem 0 auto;
  width: 8rem;
  background: linear-gradient(90deg, #07566a, rgba(7, 86, 106, 0));
  content: "";
  pointer-events: none;
}

[dir="rtl"] .v2-hero__copy::after {
  inset: 0 auto 0 -8rem;
  background: linear-gradient(270deg, #07566a, rgba(7, 86, 106, 0));
}

.v2-hero .v2-kicker {
  color: #8ff0e7;
}

.v2-hero__title {
  max-width: 14ch;
  margin: 1.1rem 0 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.v2-hero__lede {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  color: #d8ebee;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  line-height: 1.75;
}

.v2-hero__media {
  min-height: 100%;
  margin: 0;
  background: #dce9e9;
}

.v2-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-page-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 6px;
  background: #dce9e9;
}

.v2-page-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--image .page-hero__sidebar {
  align-self: stretch;
}

.page-hero--image .v2-page-media {
  min-height: 15rem;
}

.page-hero--image {
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.8fr);
}

.page-hero--image .page-hero__sidebar {
  padding: 0.8rem;
}

.page-hero--image .page-hero__visual-badge,
.page-hero--image .fact-grid,
.page-hero--image .page-hero__sidebar > .btn,
.page-hero--image .page-hero__sidebar > .page-hero__sidebar-title,
.page-hero--image .page-hero__sidebar > .page-hero__sidebar-copy {
  margin-inline: 0.25rem;
}

.v2-hero__symbol {
  display: grid;
  place-items: center;
  min-height: 24rem;
  color: var(--v2-primary);
  background: #dcebec;
}

.v2-hero__symbol-icon {
  width: min(22vw, 13rem);
  height: min(22vw, 13rem);
  opacity: 0.42;
}

.v2-hero--compact {
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.65fr);
  min-height: clamp(24rem, 52svh, 34rem);
}

.v2-hero--compact .v2-hero__title {
  font-size: clamp(2.2rem, 4vw, 4.25rem);
}

.v2-section {
  padding-block: var(--v2-section);
}

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

body.site-body .site-page.site-stack > .v2-section {
  padding-inline: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v2-section__head {
  display: flex;
  max-width: 80rem;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

.v2-section__title {
  max-width: 20ch;
  margin: 0.65rem 0 0;
  color: var(--v2-ink);
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.v2-section__lede {
  max-width: var(--v2-readable);
  margin: 0.75rem 0 0;
  color: var(--v2-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.v2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.v2-card {
  min-width: 0;
  padding: clamp(1.15rem, 2vw, 1.75rem);
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
  box-shadow: 0 8px 26px rgba(18, 48, 59, 0.045);
}

.v2-card:hover {
  border-color: #a8c9cd;
}

.v2-card__title {
  margin: 0;
  color: var(--v2-ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}

.v2-card__body {
  margin: 0.65rem 0 0;
  color: var(--v2-muted);
  line-height: 1.7;
}

.v2-consultation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-block: var(--v2-section) 0;
  padding: clamp(1.5rem, 3.2vw, 3rem);
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background: #073f52;
}

body.site-body .site-page.site-stack .v2-consultation {
  color: #ffffff;
  background: #073f52;
}

body.site-body .site-page.site-stack .v2-consultation__title {
  color: #ffffff;
}

body.site-body .site-page.site-stack .v2-consultation__body {
  color: #d6e8ec;
}

.v2-consultation__icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #8ff0e7;
  background: rgba(255, 255, 255, 0.08);
}

.v2-consultation__icon-svg {
  width: 1.7rem;
  height: 1.7rem;
}

.v2-consultation__title {
  margin: 0.55rem 0 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  line-height: 1.15;
}

.v2-consultation__body {
  max-width: 46rem;
  margin: 0.7rem 0 0;
  color: #d6e8ec;
  line-height: 1.7;
}

.v2-consultation__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.v2-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.v2-directory-results {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.v2-directory-results__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  padding: 0.8rem 1rem;
  border-block: 1px solid var(--v2-line);
  color: var(--v2-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.v2-directory-results__summary strong {
  display: grid;
  min-width: 2.35rem;
  min-height: 2.35rem;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: var(--v2-primary-dark);
  font-size: 1rem;
}

.v2-grid--providers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed #b9ced2;
  border-radius: 8px;
  color: var(--v2-muted);
  text-align: center;
  background: #ffffff;
}

.v2-filter {
  display: grid;
  grid-template-columns: minmax(15rem, 2fr) repeat(2, minmax(10rem, 1fr)) auto;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.v2-filter label {
  display: grid;
  gap: 0.4rem;
  color: var(--v2-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.v2-form label {
  display: grid;
  gap: 0.4rem;
  color: #e7f4f5;
  font-size: 0.76rem;
  font-weight: 800;
}

.v2-filter input,
.v2-filter select,
.v2-form input,
.v2-form select,
.v2-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #bdd0d4;
  border-radius: 6px;
  color: var(--v2-ink);
  background: #ffffff;
}

.v2-filter input:focus,
.v2-filter select:focus,
.v2-form input:focus,
.v2-form select:focus,
.v2-form textarea:focus {
  border-color: var(--v2-primary);
  outline: 3px solid rgba(8, 127, 140, 0.12);
}

.v2-rich {
  width: min(100%, 62rem);
  margin-inline: auto;
  color: #294854;
  font-size: 1.03rem;
  line-height: 1.85;
}

.v2-rich h2,
.v2-rich h3 {
  color: var(--v2-ink);
  line-height: 1.25;
}

.v2-rich h2 {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.v2-rich h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.28rem;
}

.v2-rich a {
  color: var(--v2-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.v2-article {
  width: 100%;
}

.v2-article > .detail-card {
  width: min(100%, 68rem);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.faq-stack {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.faq-item + .faq-item {
  margin-top: 0.65rem;
}

.faq-item summary {
  min-height: 3.5rem;
  padding: 1rem 1.2rem;
  color: var(--v2-ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-item__answer {
  padding: 0 1.2rem 1.2rem;
  color: var(--v2-muted);
  line-height: 1.75;
}

.intake-flow {
  width: min(100%, 66rem);
  margin-inline: auto;
}

.intake-flow__header,
.intake-flow__card {
  border-radius: 8px;
  border-color: var(--v2-line);
  box-shadow: none;
}

.intake-flow__card label {
  color: var(--v2-ink);
  font-weight: 700;
}

/* Upgrade existing page families while templates are migrated. */
.site-page.site-stack > .page-hero,
.site-page.site-stack .page-hero.page-hero--split {
  width: 100%;
  max-width: none;
  min-height: clamp(22rem, 48svh, 34rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #07566a;
  box-shadow: none;
}

.site-page.site-stack .page-hero__title,
.site-page.site-stack .page-hero__lede,
.site-page.site-stack .page-hero__eyebrow {
  color: #ffffff;
}

.site-page.site-stack .page-hero__title {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.08;
}

.site-page.site-stack .page-hero__lede {
  max-width: 44rem;
  color: #d8ebee;
  font-size: 1.08rem;
  line-height: 1.75;
}

.site-page.site-stack .page-hero__sidebar {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.site-page.site-stack .page-hero .btn-primary {
  color: #052f38;
  background: var(--v2-aqua);
  border-color: var(--v2-aqua);
}

.site-page.site-stack .page-hero .btn-secondary {
  color: var(--v2-primary-dark);
  background: #ffffff;
  border-color: #ffffff;
}

.site-page.site-stack .page-hero .btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.directory-grid,
.results-grid,
.support-grid,
.story-grid {
  gap: 1rem;
}

.service-card,
.provider-card,
.support-tile,
.insight-card,
.detail-card,
.story-card,
.blog-card {
  border-radius: 8px;
  border-color: var(--v2-line);
  box-shadow: none;
}

.service-card:hover,
.provider-card:hover,
.support-tile:hover,
.blog-card:hover {
  border-color: #a8c9cd;
  box-shadow: var(--v2-shadow);
  transform: translateY(-2px);
}

body.site-body .site-page .v2-grid--services .service-card {
  min-height: 17rem;
  padding: 1.5rem;
  border: 1px solid var(--v2-line);
  color: var(--v2-ink);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(18, 48, 59, 0.045);
}

body.site-body .site-page .v2-grid--services .service-card__title {
  margin-top: 1.35rem;
  color: var(--v2-ink);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.35;
}

body.site-body .site-page .v2-grid--services .service-card__body {
  color: var(--v2-muted);
  line-height: 1.75;
}

body.site-body .site-page .v2-grid--services .service-card__cta,
body.site-body .site-page .v2-grid--services .service-card__eyebrow {
  color: var(--v2-primary);
}

body.site-body .site-page .v2-grid--services .service-card__icon-wrap {
  color: var(--v2-primary);
  background: #e9f5f4;
  border-color: #cde5e4;
}

body.site-body .site-page .provider-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 18rem;
  padding: 1.4rem;
  border: 1px solid var(--v2-line);
  color: var(--v2-ink);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(18, 48, 59, 0.045);
}

body.site-body .site-page .provider-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
}

body.site-body .site-page .provider-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}

body.site-body .site-page .provider-card__title {
  margin-top: 0.35rem;
  color: var(--v2-ink);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.35;
}

body.site-body .site-page .provider-card__desc,
body.site-body .site-page .provider-card__meta {
  color: var(--v2-muted);
}

body.site-body .site-page .provider-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

body.site-body .site-page .provider-card__desc {
  flex: 1;
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.7;
}

body.site-body .site-page .provider-card__avatar {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  place-items: center;
  border: 1px solid #cde5e4;
  border-radius: 6px;
  color: var(--v2-primary);
  background: #e9f5f4;
  border-color: #cde5e4;
}

body.site-body .site-page .provider-card__services {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
}

body.site-body .site-page .provider-card__services .badge,
body.site-body .site-page .provider-card__top > .badge {
  display: inline-flex;
  width: auto;
  min-height: 1.9rem;
  height: auto;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  line-height: 1.3;
}

.page-search input::placeholder,
.site-search__input::placeholder {
  color: #7b8e96;
}

@media (max-width: 1023px) {
  .v2-grid--providers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-hero,
  .v2-hero--compact {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .v2-hero__copy {
    min-height: 26rem;
    padding: clamp(1.5rem, 7vw, 3rem);
  }

  .v2-hero__copy::after {
    display: none;
  }

  .v2-hero__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

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

  .v2-consultation {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .v2-consultation__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .v2-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero--image {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .v2-grid--providers {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .site-page.site-stack .h-scroll-rail.h-scroll-rail--directory {
    display: block;
    width: 100%;
    overflow: visible;
  }

  .site-page.site-stack .h-scroll-rail--directory .h-scroll-rail__head {
    display: none;
  }

  .site-page.site-stack .directory-grid.directory-grid--rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
    gap: 1rem;
  }

  .site-page.site-stack .directory-grid--rail .service-card {
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 639px) {
  :root {
    --v2-pad: 0;
    --v2-section: 3.5rem;
  }

  .site-page.site-stack {
    gap: 1.25rem;
  }

  .v2-hero,
  .v2-consultation,
  .site-page.site-stack > .page-hero,
  .site-page.site-stack .page-hero.page-hero--split {
    border-radius: 0;
  }

  .v2-hero__title {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .v2-grid,
  .v2-filter {
    grid-template-columns: 1fr;
  }

  .v2-consultation {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .v2-consultation__actions {
    display: grid;
    grid-column: auto;
  }

  .v2-button {
    width: 100%;
  }

  .site-page.site-stack > .page-hero,
  .site-page.site-stack .page-hero.page-hero--split {
    min-height: 0;
    padding: 1.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
