:root {
  --bg: #F8F6F1;
  --bg-dark: #0E2438;
  --ink: #0E2438;
  --ink-soft: #4A5A6D;
  --ink-light: #F8F6F1;
  --teal: #0EA5B7;
  --teal-hover: #087B8A;
  --violet: #9B7DD4;
  --hairline: rgba(14, 36, 56, 0.12);
  --hairline-strong: rgba(14, 36, 56, 0.22);
  --hairline-light: rgba(248, 246, 241, 0.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1100px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-card: 0 1px 2px rgba(14, 36, 56, 0.04), 0 4px 12px rgba(14, 36, 56, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--teal-hover); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-hover);
  margin: 0 0 0.75rem;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ink-light);
  padding: 0.75rem 1rem; font-weight: 600; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Main nav */
.site-nav {
  border-top: 1px solid var(--hairline);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: block;
  padding: 0.6rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--teal-hover);
  box-shadow: inset 0 -2px 0 var(--teal);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  background: var(--teal); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  border: 0; border-radius: var(--radius);
  text-decoration: none;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--teal-hover); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.btn-lg {
  font-size: 1.2rem;
  padding: 1.1rem 1.6rem;
  min-height: 60px;
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--hairline-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--ink-light); border-color: var(--ink); }

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

.header-phone {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--hairline-strong);
  min-height: 44px;
}
.header-phone:hover { background: var(--ink); color: var(--ink-light); border-color: var(--ink); }
.header-phone .num { display: none; }
@media (min-width: 560px) { .header-phone .num { display: inline; } }

/* Sections */
.section { padding: 4rem 0; }
.section-dark { background: var(--bg-dark); color: var(--ink-light); }
.section-dark a { color: #6FE2F0; }
.section-dark a:hover { color: #fff; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-dark + .section, .section + .section-dark { border-top: 0; }

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
}

/* Hero */
.hero {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -50% auto;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(14, 165, 183, 0.18), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: var(--ink-light);
  max-width: 16ch;
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(248, 246, 241, 0.82);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero .badge-row {
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-light);
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.7);
}
.hero .badge-row strong { color: var(--ink-light); font-weight: 600; }
.hero .badge-row span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero .badge-row span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
}

/* Subpage hero */
.page-hero {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(14, 165, 183, 0.18), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--ink-light);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}
.page-hero p.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(248, 246, 241, 0.82);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Mission */
.mission {
  text-align: center;
  padding: 5rem 0;
}
.mission blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  font-weight: 500;
  margin: 0 auto 1.5rem;
  max-width: 32ch;
  color: var(--ink);
}
.mission .sub {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto;
}

/* Programs */
.programs h2 { max-width: 22ch; margin-bottom: 2.5rem; }
.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
.program-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.program-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.program-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* What's included */
.included h2 { max-width: 22ch; margin-bottom: 2.5rem; }
.included-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 800px) {
  .included-grid { grid-template-columns: 1.2fr 1fr; gap: 2rem; }
}
.services-list { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 500px) { .services-list { grid-template-columns: 1fr 1fr; } }
.services-list li {
  list-style: none;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hairline);
  font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
}
.services-list li:first-child, .services-list li:nth-child(2) { border-top: 0; }
@media (max-width: 499px) { .services-list li:nth-child(2) { border-top: 1px solid var(--hairline); } }
.services-list li::before {
  content: "";
  width: 18px; height: 18px;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M7.5 13.5 4 10l-1.4 1.4 4.9 4.9 10.6-10.6L16.7 4.3z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M7.5 13.5 4 10l-1.4 1.4 4.9 4.9 10.6-10.6L16.7 4.3z'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}
ul.services-list { padding: 0; margin: 0; }

.cost-card {
  background: var(--bg-dark);
  color: var(--ink-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.cost-card::after {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(14, 165, 183, 0.25), transparent 70%);
  pointer-events: none;
}
.cost-card .label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6FE2F0;
  margin-bottom: 1rem;
}
.cost-card .lines {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}
.cost-card .lines strong { display: block; color: var(--ink-light); }
.cost-card .lines em {
  font-style: normal;
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.7);
  letter-spacing: 0.02em;
}

/* Inline phone aside */
.phone-aside {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}
.phone-aside a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 1px;
}
.phone-aside a:hover { color: var(--teal-hover); }

.section-dark .phone-aside { color: rgba(248, 246, 241, 0.75); }
.section-dark .phone-aside a { color: var(--ink-light); border-bottom-color: var(--teal); }

/* Homes */
.homes h2 { max-width: 22ch; margin-bottom: 0.75rem; }
.homes .caption { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2.5rem; }
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 600px) { .home-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.home-tile {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(14, 36, 56, 0.06), rgba(14, 165, 183, 0.10));
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--hairline);
}
.home-tile img { width: 100%; height: 100%; object-fit: cover; }
.home-tile.placeholder::after {
  content: "Property photo";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Houses by program */
.house-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) { .house-groups { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.house-group {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.house-group h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}
.house-group ul { list-style: none; padding: 0; margin: 0; }
.house-group li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--hairline);
  font-weight: 500;
}
.house-group li:first-child { border-top: 0; padding-top: 0; }
.house-group li span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Locations */
.locations h2 { max-width: 22ch; margin-bottom: 2.5rem; }
.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) { .loc-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.loc-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.loc-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.loc-card .meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.loc-card p { color: var(--ink-soft); flex: 1; }
.loc-card .btn { margin-top: 1.25rem; align-self: flex-start; }

/* Trust strip */
.trust {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 1.75rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.55rem; }
.trust-row .dot {
  width: 4px; height: 4px;
  background: var(--hairline-strong);
  border-radius: 50%;
}

/* How to start */
.start h2 { max-width: 22ch; margin-bottom: 0.75rem; }
.start .lede { color: var(--ink-soft); max-width: 55ch; margin-bottom: 2.5rem; }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.step {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--teal); color: #fff;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}
.step h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.cta-row {
  text-align: center;
}
.cta-row .small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Prose (subpage body copy) */
.prose { max-width: 68ch; }
.prose h2 { margin: 0 0 1rem; }
.prose h3 { font-family: var(--serif); font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }

/* FAQ */
.faq-list { max-width: 68ch; }
.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.faq-item p { color: var(--ink-soft); }

/* Crisis */
.crisis {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.crisis a { color: var(--ink); font-weight: 600; }
.crisis strong { color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(248, 246, 241, 0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 {
  color: var(--ink-light);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.85rem;
}
.site-footer a { color: rgba(248, 246, 241, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-foot {
  font-family: var(--serif);
  color: var(--ink-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.legal {
  border-top: 1px solid var(--hairline-light);
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.55);
}
.legal .creds { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }

/* Sticky mobile call bar */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--ink); color: var(--ink-light);
  padding: 0.75rem 1rem;
  display: none;
  z-index: 60;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.call-bar.is-hidden { transform: translateY(100%); }
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  width: 100%; min-height: 48px;
  background: var(--teal); color: #fff;
  font-weight: 600; font-size: 1.02rem;
  border-radius: var(--radius);
  text-decoration: none;
  padding: 0 1rem;
}
.call-bar a:hover { background: var(--teal-hover); }
.call-bar small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}
@media (max-width: 767px) {
  .call-bar { display: block; }
  body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
