/* Alliance Behavioral Care — Sanctuary-inspired marketing site */
:root {
  --navy: #1a2b4a;
  --navy-deep: #122038;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #e6f4f1;
  --cream: #f8f4ef;
  --cream-warm: #fbf6f0;
  --white: #ffffff;
  --text: #1a2b4a;
  --muted: #5c6b7e;
  --border: #e8e2d8;
  --warm: #c4a484;
  --warm-soft: #f3ebe3;
  --hope: #2d6a6a;
  --shadow: 0 4px 24px rgba(26, 43, 74, 0.07);
  --shadow-lg: 0 16px 48px rgba(26, 43, 74, 0.12);
  --radius: 16px;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --max-narrow: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.28rem; }

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

.container {
  width: min(100% - 2.75rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section--cream { background: var(--cream); }
.section--cream-warm { background: var(--cream-warm); }
.section--white { background: var(--white); }
.section--teal-soft { background: var(--teal-soft); }
.section--navy {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 55%, #1a3d45 100%);
  color: var(--white);
}
.section--navy h2,
.section--navy h3 { color: var(--white); }

/* Eyebrow + stacked headers (Summit-inspired) */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.85rem;
}

.section-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
  color: var(--muted);
}
.section-intro .eyebrow { color: var(--teal-dark); }
.section-intro h2 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}
@media (max-width: 700px) {
  .section-intro h2 {
    white-space: normal;
  }
}

/* Force key homepage heading onto one centered line */
.heading-single-line {
  white-space: nowrap !important;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem) !important;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
@media (max-width: 520px) {
  .heading-single-line {
    white-space: normal !important;
    font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
    width: auto;
  }
}

.section-intro h2 em,
.section-intro h2 .accent {
  font-style: normal;
  font-weight: 600;
}

.section-header-stack {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header-stack .eyebrow { margin-bottom: 0.65rem; }
.section-header-stack h2 {
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.section-header-stack p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ——— Header ——— */
.site-header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  overflow: visible;
}

.header-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1.25rem 0.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(26, 43, 74, 0.06);
  box-shadow: 0 1px 0 rgba(26, 43, 74, 0.03);
  position: relative;
  z-index: 2;
}

.header-logo {
  display: block;
  line-height: 0;
}

.header-logo img {
  height: clamp(96px, 15vw, 148px);
  width: auto;
  margin: 0 auto;
}

.header-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.35rem 1rem 1rem;
  position: relative;
  background: transparent;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  gap: 0.45rem;
  align-items: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle .bars span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.85rem;
}

.main-nav a {
  display: block;
  padding: 0.65rem 1.15rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-teal {
  background: var(--teal);
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}
.btn-teal:hover { background: var(--teal-dark); color: var(--white) !important; }
.btn-navy {
  background: var(--navy);
  color: var(--white) !important;
}
.btn-navy:hover { background: var(--navy-deep); color: var(--white) !important; }
.btn-white {
  background: var(--white);
  color: var(--navy) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.btn-white:hover { background: var(--cream); color: var(--navy) !important; }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy) !important;
}
.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white) !important;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  justify-content: center;
}


/* ——— Homepage hero + referral float (header/nav styles are sitewide) ——— */
body.home .hero-wrap {
  margin-top: 0;
}
body.home .hero {
  min-height: 100vh;
  padding-top: 11.5rem;
  background:
    linear-gradient(rgba(26, 43, 74, 0.48), rgba(26, 43, 74, 0.55)),
    url("../assets/hero-bg.png") center top / cover no-repeat;
  background-position: center 18%;
}
@media (max-width: 860px) {
  .main-nav ul {
    background: rgba(26, 43, 74, 0.92);
  }
  .main-nav a {
    text-shadow: none;
  }
  body.home .hero {
    padding-top: 10rem;
  }
  .page-hero,
  .page-hero--deep {
    min-height: clamp(560px, 78vh, 780px);
    padding: 10.5rem 1.25rem 6rem;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(26, 43, 74, 0.5), rgba(26, 43, 74, 0.52)),
    url("../assets/hero-bg.png") center / cover no-repeat;
  padding: 5rem 1.5rem;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  overflow: visible;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.referral-float {
  position: absolute;
  top: auto;
  right: 0.85rem;
  bottom: 0;
  transform: translateY(48%);
  width: min(340px, calc(100vw - 1.5rem));
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 18px 50px rgba(26, 43, 74, 0.35);
  z-index: 2;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.referral-float .eyebrow {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  text-align: left;
}
.referral-float h2 {
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
.referral-float p {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.9;
}
.referral-float .btn-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.referral-float .btn {
  font-size: 0.86rem;
  padding: 0.6rem 0.95rem;
}
.section--after-hero {
  padding-top: 3rem;
}
@media (max-width: 960px) {
  .referral-float {
    position: relative;
    right: auto;
    bottom: auto;
    transform: none;
    width: min(420px, calc(100% - 2rem));
    margin: 0.75rem auto 1rem;
    z-index: 2;
  }
  .section--after-hero {
    padding-top: 2.5rem;
  }
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3);
  line-height: 1.15;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  opacity: 0.94;
  margin: 0 auto 2rem;
  max-width: 580px;
  font-weight: 400;
  line-height: 1.65;
}


.page-hero--deep {
  min-height: clamp(640px, 82vh, 900px);
  padding: 12.5rem 1.5rem 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(26, 43, 74, 0.48), rgba(26, 43, 74, 0.55)),
    url("../assets/hero-bg.png") center 28% / cover no-repeat;
}
.page-hero--deep .container {
  width: 100%;
}

.page-hero {
  background:
    linear-gradient(rgba(26, 43, 74, 0.48), rgba(26, 43, 74, 0.55)),
    url("../assets/hero-bg.png") center 28% / cover no-repeat;
  color: var(--white);
  min-height: clamp(640px, 82vh, 900px);
  padding: 12.5rem 1.5rem 7.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero .container {
  width: 100%;
}
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.1rem;
  letter-spacing: 0.18em;
}
.page-hero h1 {
  color: var(--white);
  margin: 0 auto 1.15rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.22;
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
}
.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.92;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}
.page-hero p.page-hero-subline {
  max-width: min(920px, 92vw) !important;
  width: auto;
  margin: 0.35rem auto 0;
  white-space: normal;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.5;
  padding: 0 1rem;
  overflow-x: visible;
}
@media (max-width: 900px) {
  .page-hero p.page-hero-subline {
    white-space: normal;
    width: auto;
    max-width: 36rem;
    font-size: clamp(0.98rem, 3.2vw, 1.1rem);
  }
  .page-hero h1 {
    max-width: 16ch;
  }
}


/* ——— Feature / amenity cards ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 43, 74, 0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

.feature-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 1.85rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 43, 74, 0.04);
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
  height: 100%;
}
.feature-block:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.feature-block .card-icon {
  margin-left: auto;
  margin-right: auto;
}
.feature-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}
.feature-block p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 280px;
  margin-inline: auto;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}

/* Insurance logos — equal size, real brand colors (readable) */
.section--insurance {
  background: var(--cream-warm);
}
.section--insurance .section-intro h2,
.section--insurance .section-intro p,
.section--insurance .eyebrow {
  color: var(--navy);
}
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: 0.5rem 0;
}
.insurance-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 88px;
  min-height: 88px;
  transition: box-shadow 0.2s;
}
.insurance-card:hover {
  box-shadow: var(--shadow-lg);
  transform: none;
  opacity: 1;
}
.insurance-card img {
  height: 48px !important;
  width: auto !important;
  max-width: 140px !important;
  max-height: 48px !important;
  object-fit: contain;
  object-position: center;
  filter: none !important;
  opacity: 1 !important;
}

.insurance-captions {
  max-width: min(1100px, 100%);
  margin: 1.75rem auto 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}
.insurance-caption {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  max-width: none;
  width: max-content;
  max-width: 100%;
  margin: 0;
  line-height: 1.45;
  white-space: nowrap;
}
.section--insurance .insurance-caption {
  color: var(--muted);
}

.prose { max-width: var(--max-narrow); margin: 0 auto; }
.prose ul { color: var(--muted); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.pill {
  background: var(--white);
  color: var(--navy);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  letter-spacing: 0.02em;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.75rem 0 1.75rem;
  font-size: 0.95rem;
}
.site-footer a { color: #7dd3c8; text-decoration: none; }
.site-footer a:hover { color: #a7ebe3; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
  justify-items: start;
  text-align: left;
}
.footer-grid > * {
  width: 100%;
  text-align: left;
}
.footer-brand {
  text-align: left;
  margin: 0;
  padding: 0;
}
.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  filter: none !important;
  opacity: 0.92;
}
.footer-brand p { margin: 0; line-height: 1.6; opacity: 0.88; }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.35rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}
.mission-line {
  font-family: var(--font-display);
  font-style: italic;
  opacity: 0.92;
  margin-top: 1rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ——— Mobile nav ——— */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    margin: 0 auto;
  }
  .header-nav-row { padding-bottom: 1rem; flex-direction: column; }
  .main-nav {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--cream);
    border-radius: 14px;
    padding: 0.55rem;
  }
  .main-nav a {
    text-align: center;
    padding: 0.75rem 1rem;
  }
  .hero { min-height: 78vh; padding: 4rem 1.25rem; }
}


/* ——— Hope / storytelling bands ——— */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.trust-strip .trust-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-strip .trust-item span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

.story-band {
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--white) 100%);
}
.story-band .story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: start;
}
.story-photos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.story-photos .side-photo {
  margin: 0;
  width: 100%;
}
.story-photos .side-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .story-band .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.story-band .story-copy .eyebrow { text-align: left; }
.story-band .story-copy h2 {
  font-style: italic;
  font-weight: 500;
  text-align: left;
  margin-bottom: 1rem;
}
.story-band .story-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  text-align: left;
}
.quote-card {
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.quote-card::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.25rem;
}
.quote-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  margin: 0 0 1.25rem;
  color: var(--white);
}
.quote-card .quote-attr {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  color: rgba(255,255,255,0.85);
}

/* Calm steps (admissions path) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.35rem;
  counter-reset: step;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.85rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 43, 74, 0.04);
  position: relative;
  text-align: left;
}
.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.step-card .step-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  margin: 0 0 0.4rem;
}
.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}
.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Soft image-panel substitute (photography-style block without house photos) */
.image-panel {
  border-radius: var(--radius);
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(26, 43, 74, 0.55), rgba(13, 148, 136, 0.35)),
    url("../assets/hero-bg.png") center / cover no-repeat;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
  color: var(--white);
}
.image-panel .panel-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  margin: 0;
}

/* Soften feature blocks with warm edge */
.feature-block {
  border-top: 3px solid var(--teal);
}




/* ——— House photography gallery ——— */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
}

.photo-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 43, 74, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.photo-grid--locations .photo-card img {
  height: 240px;
}
.photo-card figcaption {
  display: none;
}

/* Seamless RTL photo strip — flush, no gaps, scrolls right → left */
.photo-marquee {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: var(--navy-deep);
}
.photo-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 0;
  margin: 0;
  padding: 0;
  animation: photo-marquee-rtl 45s linear infinite;
  will-change: transform;
}
.photo-marquee__track img {
  display: block;
  flex: 0 0 auto;
  width: min(420px, 70vw);
  height: 280px;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
@media (max-width: 700px) {
  .photo-marquee__track img {
    width: min(300px, 80vw);
    height: 200px;
  }
  .photo-marquee__track {
    animation-duration: 32s;
  }
}
@keyframes photo-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.photo-marquee:hover .photo-marquee__track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .photo-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .photo-marquee__track img[aria-hidden="true"] {
    display: none;
  }
}

.side-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.side-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.side-photo figcaption {
  padding: 0.85rem 1.15rem 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }


/* University partner logos under Who We Serve */
.partner-logos {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.partner-logos__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 1.25rem;
}
.partner-logos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.75rem;
}
.partner-logos__grid img {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow);
}
.prose .partner-logos {
  max-width: none;
}


/* Two-column layout (Coverage + Process on Referrals) */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 3.5rem 4.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.section--insurance + .section {
  padding-top: clamp(5rem, 9vw, 7rem);
}


.contact-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.contact-line {
  display: block;
}

/* Tighten space above Admissions Checklist on Referrals */
.section--white + .section--cream-warm {
  padding-top: 2rem;
}

.section--white:has(+ .section--cream-warm) {
  padding-bottom: 2rem;
}

.section--tight-bottom {
  padding-bottom: 1.75rem !important;
}
.section--tight-top {
  padding-top: 1.75rem !important;
}







.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 43, 74, 0.04);
  text-align: center;
}
.team-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.team-card .title {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Plain ampersand — match a normal keyboard & (not italic display-font glyph) */
.amp,
h1 .amp, h2 .amp, h3 .amp, h4 .amp,
.eyebrow .amp,
.partner-logos__label .amp,
.page-hero-subline .amp,
strong .amp, b .amp {
  font-family: Arial, Helvetica, "Source Sans 3", system-ui, sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  letter-spacing: 0 !important;
  font-size: 1em;
}


.section--cream .partner-logos {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 43, 74, 0.12);
}
.section--cream .partner-logos__grid img {
  height: 72px;
  max-width: 260px;
  background: #fff;
}


.partner-logos__grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.partner-logos__grid a:hover img,
.partner-logos__grid a:focus-visible img {
  box-shadow: 0 10px 28px rgba(26, 43, 74, 0.18);
  transform: translateY(-1px);
}
.partner-logos__grid a img {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}


a.insurance-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.insurance-card:hover,
a.insurance-card:focus-visible {
  box-shadow: 0 10px 28px rgba(26, 43, 74, 0.18);
  transform: translateY(-1px);
}


.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .route-grid {
    grid-template-columns: 1fr;
  }
}
.route-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 43, 74, 0.06);
  text-align: left;
  overflow: hidden;
  min-width: 0;
}
.route-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  color: var(--navy);
}
.route-card p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.callout {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 43, 74, 0.06);
  max-width: 640px;
  margin: 0 auto;
}
.callout .mt-0 { margin-top: 0; }


/* Halfway between full section padding and tight (Careers Contact gap) */
.section--mid-tight-bottom {
  padding-bottom: clamp(3rem, 5.5vw, 4.25rem) !important;
}
.section--mid-tight-top {
  padding-top: clamp(3rem, 5.5vw, 4.25rem) !important;
}


.nowrap {
  white-space: nowrap;
}
.route-card p.contact-person {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.route-card .contact-title {
  display: block;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.15rem;
  font-weight: 400;
}


/* ——— Employment application form ——— */
.container--form {
  width: min(100% - 2.75rem, 880px);
  margin-inline: auto;
}

.section--apply {
  padding-top: clamp(2.75rem, 5vw, 3.75rem);
}

.form-note {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.55;
}
.form-note--muted {
  background: var(--warm-soft);
  color: var(--muted);
  border: 1px solid rgba(196, 164, 132, 0.35);
}
.form-note--info {
  background: var(--teal-soft);
  color: var(--navy);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.employment-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 43, 74, 0.06);
  padding: clamp(1.5rem, 3.5vw, 2.35rem);
}

.employment-form .form-section {
  border: none;
  margin: 0 0 2rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid var(--border);
}
.employment-form .form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}
.employment-form legend {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
  color: var(--navy);
  margin: 0 0 1rem;
  padding: 0;
  width: 100%;
}

.section-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.35rem 0 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}
.form-grid--stack {
  grid-template-columns: 1fr;
}
.form-field--span2 {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field--span2 {
    grid-column: auto;
  }
}

.form-field label,
.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.form-field .optional,
.field-label .optional {
  font-weight: 500;
  color: var(--muted);
}
.req {
  color: var(--teal-dark);
  font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="file"],
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field textarea {
  resize: vertical;
  min-height: 5rem;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
  background: var(--white);
}
.form-field input[type="file"] {
  padding: 0.55rem 0.65rem;
  background: var(--white);
  cursor: pointer;
}

.check-row,
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin-top: 0.2rem;
}
.check-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.check-label input {
  margin-top: 0.28rem;
  accent-color: var(--teal);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.check-label--ack {
  align-items: flex-start;
  line-height: 1.5;
  max-width: 40rem;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.qa-item .section-hint {
  margin: 0.25rem 0 0.5rem;
}
.form-field--follow {
  margin-top: 0.75rem;
}

.repeat-block {
  background: var(--cream);
  border: 1px solid rgba(26, 43, 74, 0.05);
  border-radius: 12px;
  padding: 1.15rem 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.repeat-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 0.9rem;
}

.ack-box {
  background: var(--teal-soft);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.15rem;
  color: var(--navy);
  font-size: 0.95rem;
}
.ack-box p {
  margin: 0 0 0.65rem;
  font-weight: 600;
}
.ack-box ul {
  margin: 0;
  padding-left: 1.2rem;
}
.ack-box li {
  margin-bottom: 0.45rem;
}
.ack-box li:last-child {
  margin-bottom: 0;
}
.form-field--ack {
  margin-bottom: 1.15rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.form-footnote {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* Honeypot — hidden from users */
.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.callout--thanks {
  max-width: 560px;
}
.callout--thanks h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}


/* Our Program: Programming + photo side by side, centered */
.program-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.25rem 2.75rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.program-split__copy .eyebrow {
  text-align: left;
}
.program-split__copy h2 {
  text-align: left;
  margin-bottom: 1rem;
}
.program-split__copy p,
.program-split__copy li {
  color: var(--muted);
}
.program-split__copy ul {
  padding-left: 1.25rem;
  margin: 0.85rem 0 0;
}
.program-split__copy li {
  margin-bottom: 0.45rem;
}
.program-split__photo {
  margin: 0;
  width: 100%;
}
.program-split__photo img {
  width: 100%;
  height: min(420px, 52vw);
  object-fit: cover;
  display: block;
}
@media (max-width: 800px) {
  .program-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 640px;
  }
  .program-split__photo img {
    height: 280px;
  }
}



/* Current Employees placeholder */
.page-hero--coming-soon h1 {
  margin-bottom: 0;
}
