/* ============================================================
   SERENITY HOME CARE FACILITIES — Global Design System
   ============================================================ */

/* ------------------------------------------------------------
   1. BRAND COLOR VARIABLES (preserved exactly)
   ------------------------------------------------------------ */
:root {
  --color-primary:       #3a7ca5;
  --color-primary-dark:  #2c5f7a;
  --color-accent:        #e07b39;
  --color-accent-dark:   #b85e20;
  --color-dark:          #1e2d3a;
  --color-tint:          #f4f0eb;
  --color-white:         #ffffff;
  --color-text:          #2b2b2b;
  --color-text-muted:    #5a5a5a;
  --color-border:        #d9d0c7;
  --color-focus:         #e07b39;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Typography */
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-ui:      system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-base:    1.3125rem;  /* 21px */
  --leading:      1.75;

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(30,45,58,0.10), 0 1px 4px rgba(30,45,58,0.07);
  --shadow-card-hover: 0 12px 40px rgba(30,45,58,0.18), 0 3px 10px rgba(30,45,58,0.10);
  --shadow-lg: 0 20px 60px rgba(30,45,58,0.15), 0 4px 16px rgba(30,45,58,0.08);

  /* Layout */
  --max-width: 1280px;
  --section-pad: var(--space-xl);
}

/* ------------------------------------------------------------
   2. RESET & BOX MODEL
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-primary-dark); }

/* ------------------------------------------------------------
   3. FOCUS STATES (keyboard accessibility)
   ------------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ------------------------------------------------------------
   4. SKIP LINK
   ------------------------------------------------------------ */
.skip {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip:focus { top: 0; }

/* ------------------------------------------------------------
   5. VISUALLY HIDDEN
   ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   6. LAYOUT WRAPPER
   ------------------------------------------------------------ */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ------------------------------------------------------------
   7. TYPOGRAPHY HIERARCHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--color-text);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.fineprint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

strong { font-weight: 700; }

/* ------------------------------------------------------------
   8. SECTIONS & SPACING
   ------------------------------------------------------------ */
.section {
  padding-block: var(--section-pad);
}

.section-tint {
  background: var(--color-tint);
}

/* Wrapper for section-tint used as a div wrapper (our-homes.html) */
div.section-tint {
  background: var(--color-tint);
}

.section-head {
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}
.section-head h2 {
  margin-bottom: var(--space-xs);
  position: relative;
  padding-bottom: 0.65rem;
}
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
.section-head p { color: var(--color-text-muted); margin-top: 0.5rem; }

/* after-cards spacing */
.after-cards {
  margin-top: var(--space-lg);
  text-align: center;
}

/* narrow content column */
.narrow { max-width: 680px; }
.narrow-form { max-width: 780px; }

/* ------------------------------------------------------------
   9. SITE HEADER
   ------------------------------------------------------------ */
.site-header {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(30,45,58,0.09);
  isolation: isolate;
}

/* Single-row header bar */
.header-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.25rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-dark);
  flex-shrink: 0;
  margin-right: 0.75rem;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  /* border: 2px solid var(--color-border); */
}
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1;
  align-items: center;
  text-align: center;
}
.brand-name-serif {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 490;
  font-size: 1.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  color: #1c1c1e;
}
.brand-name > span:not(.brand-name-serif) {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 450;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #62676d;
  text-align: left;
}
.brand:hover .brand-name-serif { color: var(--color-primary); }
.brand:hover .brand-name > span:not(.brand-name-serif) { color: var(--color-primary); }
.brand:hover img { border-color: var(--color-primary); }

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-left: auto;
  transition: background 0.15s, border-color 0.15s;
}
.nav-toggle:hover {
  background: var(--color-tint);
  border-color: var(--color-primary);
}

/* Phone + referral button (right side) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}
.header-phone {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.header-phone:hover { color: var(--color-primary); }

/* Keep referral button as primary blue in header */
.header-actions .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.header-actions .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(58,124,165,0.35);
}

/* ------------------------------------------------------------
   10. SITE NAV — inline with dropdowns
   ------------------------------------------------------------ */
.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* Top-level list */
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

/* Every top-level item */
.nav-item {
  position: relative;
}

/* Make a referral item — mobile nav only */
.nav-referral { display: none; }
.nav-phone    { display: none; }

/* Shared style for both <a> and <button> top-level nav items */
.site-nav > ul > .nav-item > a,
.nav-parent {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  line-height: 1.2;
  position: relative;
}
/* Animated underline on hover */
.site-nav > ul > .nav-item > a::after,
.nav-parent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
.site-nav > ul > .nav-item > a:hover,
.nav-parent:hover {
  color: var(--color-primary);
  background: rgba(58,124,165,0.06);
}
.site-nav > ul > .nav-item > a:hover::after,
.nav-parent:hover::after {
  transform: scaleX(1);
}
/* Active page — underline always visible */
.site-nav > ul > .nav-item > a[aria-current="page"],
.nav-item.active > .nav-parent {
  color: var(--color-primary);
  font-weight: 700;
}
.site-nav > ul > .nav-item > a[aria-current="page"]::after,
.nav-item.active > .nav-parent::after {
  transform: scaleX(1);
}

/* Chevron icon on dropdown triggers */
.nav-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.7;
}
.nav-item.open > .nav-parent .nav-chevron {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 12px 32px rgba(30,45,58,0.18), 0 2px 8px rgba(30,45,58,0.1);
  padding: 0.35rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 300;
}
.nav-item.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.12s, color 0.12s, padding-left 0.15s;
  white-space: nowrap;
  border-left: 3px solid transparent;
}
.nav-dropdown a:hover {
  background: var(--color-tint);
  color: var(--color-primary);
  padding-left: 1.4rem;
  border-left-color: var(--color-accent);
}
.nav-dropdown a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
  background: rgba(58,124,165,0.06);
  border-left-color: var(--color-primary);
}

/* ------------------------------------------------------------
   11. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, #f9f6f2 0%, #eef4f8 100%);
  padding-block: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; gap: var(--space-md); }

.hero-who {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  max-width: none;
}

.hero-text h1 { color: var(--color-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.hero-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: none;
}

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #f9f6f2 0%, #eef4f8 100%);
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { margin-bottom: var(--space-sm); }
.page-hero .eyebrow { margin-bottom: var(--space-xs); }

/* ------------------------------------------------------------
   12. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(58,124,165,0.35);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(58,124,165,0.25);
}

/* Dark */
.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}
.btn-dark:hover {
  background: #0f1a23;
  border-color: #0f1a23;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(30,45,58,0.35);
}

/* Small variant */
.btn-small {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
   13. CARDS
   ------------------------------------------------------------ */
.cards {
  display: grid;
  gap: var(--space-md);
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 3px solid transparent;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
  border-color: rgba(58,124,165,0.25);
  border-top-color: var(--color-primary);
}
.card h3 {
  color: var(--color-dark);
  font-size: 1.1rem;
}
.card p { color: var(--color-text); flex: 1; }

/* Plain card variant (no hover lift) */
.card-plain {
  background: var(--color-tint);
  border-color: transparent;
  box-shadow: none;
}
.card-plain:hover { transform: none; box-shadow: none; }

/* "More" link inside cards */
.more {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.more::after { content: ' →'; }
.more:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ------------------------------------------------------------
   14. PHOTO / IMAGE CONTAINERS
   ------------------------------------------------------------ */
.photo {
  background: var(--color-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 220px;
  padding: var(--space-md);
  text-align: center;
}
.photo-tall { min-height: 420px; }

.photo-tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(224,123,57,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.photo-label {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.photo-pair {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.photo-pair .photo { min-height: 180px; }

.photo-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.photo-trio .photo { min-height: 200px; }

/* ------------------------------------------------------------
   15. SPLIT LAYOUT
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.split-narrow {
  grid-template-columns: 3fr 2fr;
}
.split h2 { margin-bottom: var(--space-sm); }
.split p + p { margin-top: var(--space-sm); }

/* ------------------------------------------------------------
   16. TICK LIST
   ------------------------------------------------------------ */
.ticks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block: var(--space-md);
}
.ticks li {
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.55;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
}

/* ------------------------------------------------------------
   17. STEPS LIST (ordered)
   ------------------------------------------------------------ */
.steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.steps li {
  counter-increment: steps;
  padding-left: 2.5rem;
  position: relative;
  line-height: 1.55;
}
.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   18. RIGHTS LIST
   ------------------------------------------------------------ */
.rights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.rights li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.rights li strong {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--color-dark);
}
.rights li span { color: var(--color-text-muted); font-size: 0.95rem; }

/* ------------------------------------------------------------
   19. FEATURE LIST
   ------------------------------------------------------------ */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}
.feature {
  padding: var(--space-md);
  border-left: 4px solid var(--color-primary);
  background: var(--color-white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature:hover { box-shadow: var(--shadow-card-hover); transform: translateX(4px); }
.feature h2, .feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
}
.feature p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ------------------------------------------------------------
   20. DEFINITION LIST
   ------------------------------------------------------------ */
.def-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.def-list > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  align-items: start;
}
.def-list dt {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.4;
}
.def-list dd { color: var(--color-text); font-size: 0.95rem; line-height: 1.6; }

/* ------------------------------------------------------------
   21. BAND / CTA SECTIONS
   ------------------------------------------------------------ */
.band {
  padding-block: var(--space-2xl);
}
.band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.band-row h2 { margin-bottom: var(--space-xs); }
.band-row p { max-width: 52ch; }

.band-orange {
  background: var(--color-accent);
  color: var(--color-white);
}
.band-orange h2, .band-orange p { color: var(--color-white); }
.band-orange a { color: var(--color-white); }
.band-orange a:hover { color: rgba(255,255,255,0.8); }

.band-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.band-dark h2, .band-dark p { color: var(--color-white); }

.band-callout {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-white);
  max-width: 60ch;
  line-height: 1.6;
}

/* Band contact layout */
.band-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.band-contact h2 { margin-bottom: var(--space-xs); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}
.contact-list li span {
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  min-width: 4rem;
}
.contact-list a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   22. PRE-FOOTER CTA
   ------------------------------------------------------------ */
.footer-cta {
  background: #eef4f8;
  padding-block: var(--space-xl);
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f0f7fc, var(--color-white));
  border: 1px solid rgba(58,124,165,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-lg);
}
.footer-cta-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}
.footer-cta-text p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 48ch;
}
.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.footer-cta-phone {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.footer-cta-phone svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.footer-cta-phone:hover { color: var(--color-primary-dark); }
.footer-cta-phone:hover svg { stroke: var(--color-primary-dark); }

/* ------------------------------------------------------------
   22b. SITE FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: #1C1C1E;
  color: rgba(255,255,255,0.8);
  padding-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
  padding-bottom: var(--space-xl);
  align-items: start;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}
.footer-brand-logo-wrap img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.footer-brand-name-stack {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.footer-brand .footer-brand-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-white);
  max-width: none;
  line-height: 1.25;
}
.footer-brand-tagline {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  max-width: none;
  line-height: 1.4;
}
.footer-brand-license {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  max-width: none;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

/* Link columns */
.footer-col-head {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-col-head::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-grid li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}
.footer-grid a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
  display: inline-block;
}
.footer-grid a:hover {
  color: var(--color-white);
  padding-left: 3px;
}

/* Contact column icon links */
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-contact-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Divider */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0;
}

.footer-base {
  padding-block: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-base p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  max-width: none;
}

/* ------------------------------------------------------------
   23. FORMS
   ------------------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: var(--space-md); }

.form-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-section legend {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
  padding-inline: 0.5rem;
}

.subgroup {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}
.subgroup legend {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding-inline: 0.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58,124,165,0.18);
  outline: none;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}
.field input[type="file"] {
  padding: 0.5rem;
  background: var(--color-tint);
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; }

.hint {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: none;
  margin: 0;
}

.optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85em;
}

/* Radio / checkbox groups */
.group legend {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: var(--color-primary); background: rgba(58,124,165,0.05); }
.choice input { accent-color: var(--color-primary); }

/* Grid helpers inside forms */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-md); }

/* Form notices and errors */
.notice {
  background: rgba(224,123,57,0.1);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  max-width: none;
}
.form-errors {
  background: #fdf2f2;
  border: 1.5px solid #e74c3c;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.form-errors p { max-width: none; font-weight: 600; margin-bottom: 0.4rem; }
.form-errors ul { list-style: disc; padding-left: 1.25rem; }
.form-errors li { margin-bottom: 0.25rem; }
.form-errors a { color: #c0392b; }

.err {
  color: #c0392b;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-status {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  min-height: 1.4em;
}
.form-status.info { color: var(--color-primary); }

.form-note {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: none;
}

.form-done {
  padding: var(--space-lg);
  background: #f0f9f4;
  border: 1.5px solid #27ae60;
  border-radius: var(--radius-md);
}
.form-done h3 { color: #1e7e44; margin-bottom: var(--space-xs); }

/* Honeypot */
.hp { display: none; }

/* EEO statement */
.eeo {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  max-width: none;
}

/* ------------------------------------------------------------
   24. CONTACT PAGE GRID
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info h2 { margin-bottom: var(--space-md); }

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.info-list > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.info-list dt {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.info-list dd {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.form-card h2 { margin-bottom: var(--space-md); }

/* ------------------------------------------------------------
   25. PLACEHOLDER BOX (privacy page)
   ------------------------------------------------------------ */
.placeholder-box {
  background: #fffbf0;
  border: 1.5px dashed var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: none;
}

/* ------------------------------------------------------------
   26. RESPONSIVE — TABLET (≤ 900px)
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  :root {
    --section-pad: 3rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .photo-tall { min-height: 260px; }

  .split,
  .split-narrow { grid-template-columns: 1fr; }

  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }

  .photo-trio { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta-inner { padding: var(--space-lg); }

  .contact-grid { grid-template-columns: 1fr; }

  .rights { grid-template-columns: 1fr; }

  .def-list > div { grid-template-columns: 1fr; }

  .grid-3 { grid-template-columns: 1fr 1fr; }

  /* Nav tablet sizing */
  .site-nav > ul > .nav-item > a,
  .nav-parent { padding: 0.6rem 0.7rem; font-size: 0.95rem; }
  .header-phone { display: none; }
}

/* ------------------------------------------------------------
   27. RESPONSIVE — MOBILE (≤ 700px)
   ------------------------------------------------------------ */
@media (max-width: 700px) {
  :root {
    --section-pad: 2.25rem;
    --space-xl: 2.25rem;
    --space-2xl: 3rem;
    --space-lg: 1.75rem;
  }

  .wrap { padding-inline: var(--space-sm); }

  /* Brand name: scale down on mobile */
  .brand-name-serif { font-size: 1.3rem; letter-spacing: 0.08em; }
  .brand-name > span:not(.brand-name-serif) { font-size: 0.50rem; letter-spacing: 0.18em; }

  /* Header: single row with hamburger */
  .nav-toggle { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
  .header-phone { display: none; }
  .header-actions { min-width: 0; }
  .header-referral { display: none; }

  /* Make a referral lives in the mobile nav instead */
  .nav-referral { display: block; }
  .nav-referral a {
    display: block;
    margin: var(--space-sm);
    text-align: center;
    border-radius: var(--radius-md);
  }

  /* Phone number in mobile nav */
  .nav-phone { display: block; }
  .nav-phone a {
    display: block;
    padding: 0.9rem var(--space-sm);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
  }

  /* Nav panel slides down */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 3px solid var(--color-accent);
    box-shadow: 0 8px 24px rgba(30,45,58,0.12);
    display: none;
    flex-direction: column;
    z-index: 199;
  }
  .site-nav.open { display: flex; }

  /* Top-level list stacks vertically */
  .site-nav > ul {
    flex-direction: column;
    width: 100%;
  }
  .nav-item { width: 100%; }

  .site-nav > ul > .nav-item > a,
  .nav-parent {
    width: 100%;
    padding: 0.9rem var(--space-sm);
    font-size: 1rem;
    color: var(--color-text);
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    justify-content: space-between;
  }
  /* Remove animated underline on mobile */
  .site-nav > ul > .nav-item > a::after,
  .nav-parent::after { display: none; }
  .site-nav > ul > .nav-item > a:hover,
  .nav-parent:hover {
    background: var(--color-tint);
    color: var(--color-primary);
  }
  .site-nav > ul > .nav-item > a[aria-current="page"] {
    background: rgba(58,124,165,0.06);
    border-left: 3px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
  }

  /* Dropdown becomes inline accordion */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0;
    display: none;
    background: var(--color-tint);
  }
  .nav-item.open > .nav-dropdown { display: block; }
  .nav-dropdown a {
    padding: 0.8rem var(--space-sm) 0.8rem 2.25rem;
    border-bottom: 1px solid var(--color-border);
    border-left: none;
    font-size: 0.95rem;
    color: var(--color-text);
  }
  .nav-dropdown a:hover {
    background: rgba(58,124,165,0.06);
    color: var(--color-primary);
    padding-left: 2.25rem;
    border-left: none;
  }
  .nav-dropdown a[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(58,124,165,0.06);
    border-left: none;
  }

  /* Cards */
  .cards-2,
  .cards-3,
  .cards-4 { grid-template-columns: 1fr; }

  /* Photo */
  .photo-trio { grid-template-columns: 1fr; }
  .photo-tall { min-height: 200px; }

  /* Buttons */
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }

  /* Band */
  .band-row,
  .band-contact { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 0.4rem; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; padding: var(--space-md); }
  .footer-cta-actions { width: 100%; }

  /* Forms */
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  /* Feature list */
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   28. SCROLL REVEAL
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   29. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #eef4f8 0%, #f9f6f2 60%, #fdf5ee 100%);
  padding-block: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: var(--space-md); }
.hero-text h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); line-height: 1.12; color: var(--color-dark); }
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(30,45,58,0.14);
  min-height: 460px;
  background: var(--color-tint);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  text-align: center;
}
.who-section { padding-block: var(--space-xl); }
.who-section .section-head { max-width: 100%; margin-bottom: var(--space-lg); }
.who-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(58,124,165,0.15), rgba(58,124,165,0.08));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-xs); flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(58,124,165,0.15);
}
.who-card-icon svg { width: 28px; height: 28px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.homes-section { padding-block: var(--space-2xl); background: var(--color-tint); }
.homes-section .section-head { margin-bottom: var(--space-lg); }
.homes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.home-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.home-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-6px); }
.home-card-photo {
  min-height: 220px;
  background: #dde8f0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-xs); padding: var(--space-md); text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.home-card-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.home-card-body h3 { font-size: 1.25rem; color: var(--color-dark); }
.home-card-location { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.home-card-body p { color: var(--color-text); flex: 1; }
.daily-section { padding-block: var(--space-xl); }
.daily-section .section-head { margin-bottom: var(--space-lg); }
.daily-rows { display: flex; flex-direction: column; gap: var(--space-xl); }
.daily-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.daily-row.reverse { direction: rtl; }
.daily-row.reverse > * { direction: ltr; }
.daily-row-text h3 { font-size: 1.3rem; margin-bottom: var(--space-sm); color: var(--color-dark); }
.daily-row-text p { color: var(--color-text); }
.daily-row-photo {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 240px;
  background: var(--color-tint); border: 1px solid var(--color-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-xs); padding: var(--space-md); text-align: center;
}
.nursing-section { padding-block: var(--space-2xl); background: var(--color-tint); }
.nursing-section .section-head { margin-bottom: var(--space-lg); }
.nursing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.nursing-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary); border-radius: var(--radius-lg);
  padding: var(--space-md); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.nursing-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.nursing-card h3 { font-size: 1.05rem; color: var(--color-dark); }
.nursing-card p { font-size: 0.9rem; color: var(--color-text-muted); flex: 1; }
.rights-band { padding-block: var(--space-2xl); background: var(--color-accent); color: var(--color-white); }
.rights-band h2, .rights-band p { color: var(--color-white); }
.rights-band .section-head { margin-bottom: var(--space-lg); }
.rights-band .section-head p { color: rgba(255,255,255,0.85); }
.rights-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-bottom: var(--space-lg); }
.rights-pillar { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-lg); padding: var(--space-md); display: flex; flex-direction: column; gap: 0.5rem; backdrop-filter: blur(4px); transition: background 0.2s, transform 0.2s; }
.rights-pillar:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }
.rights-pillar-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rights-pillar-icon svg { width: 24px; height: 24px; stroke: var(--color-white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rights-pillar strong { font-family: var(--font-ui); font-size: 1rem; color: var(--color-white); display: block; }
.rights-pillar p { font-size: 0.875rem; color: rgba(255,255,255,0.85); max-width: none; }
.rights-band .btn-dark { background: var(--color-dark); border-color: var(--color-dark); }
.contact-band { padding-block: var(--space-2xl); background: var(--color-dark); color: var(--color-white); }
.contact-band-inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xl); align-items: center; }
.contact-band h2 { color: var(--color-white); margin-bottom: var(--space-xs); }
.contact-band p { color: rgba(255,255,255,0.75); max-width: 52ch; }
.contact-band-actions { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-end; }
.contact-band-links { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
.contact-band-links a { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8); text-decoration: none; }
.contact-band-links a:hover { color: var(--color-white); text-decoration: underline; }
.contact-band-links span { font-size: 0.75rem; font-weight: 400; color: rgba(255,255,255,0.45); margin-right: 0.35rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { min-height: 280px; }
  .homes-grid { grid-template-columns: 1fr; }
  .daily-row, .daily-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .nursing-cards { grid-template-columns: repeat(2, 1fr); }
  .rights-pillars { grid-template-columns: repeat(2, 1fr); }
  .contact-band-inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .contact-band-actions, .contact-band-links { align-items: flex-start; }
}
@media (max-width: 700px) {
  .nursing-cards { grid-template-columns: 1fr; }
  .rights-pillars { grid-template-columns: 1fr 1fr; }
  .who-section .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rights-pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   OUR HOMES
   ============================================================ */
.homes-hero { background: linear-gradient(135deg, #eef4f8 0%, #f9f6f2 60%, #fdf5ee 100%); padding-block: var(--space-2xl); border-bottom: 1px solid var(--color-border); }
.homes-hero h1 { margin-bottom: var(--space-sm); }
.homes-hero .lead { max-width: 56ch; }
.homes-hero-nav { display: flex; gap: var(--space-sm); margin-top: var(--space-md); flex-wrap: wrap; }
.homes-hero-nav a { font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600; color: var(--color-primary); text-decoration: none; padding: 0.45rem 1rem; border: 1.5px solid var(--color-primary); border-radius: 999px; transition: background 0.15s, color 0.15s; }
.homes-hero-nav a:hover { background: var(--color-primary); color: var(--color-white); }
.home-showcase { padding-block: var(--space-2xl); }
.home-showcase-tint { background: var(--color-tint); }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.showcase-grid.reverse .showcase-photo { order: 2; }
.showcase-grid.reverse .showcase-body { order: 1; }
.showcase-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 8px 40px rgba(30,45,58,0.13), 0 2px 8px rgba(30,45,58,0.07); min-height: 460px; background: #dde8f0; border: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs); padding: var(--space-lg); text-align: center; position: relative; }
.showcase-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; border-radius: 24px; }
.showcase-body { display: flex; flex-direction: column; gap: var(--space-md); }
.showcase-body h2 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); margin-bottom: 0; }
.showcase-body > p { color: var(--color-text); font-size: 1.05rem; }
.feature-chips { display: flex; flex-direction: column; gap: 0.65rem; }
.feature-chip { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.home-showcase-tint .feature-chip { background: var(--color-white); }
.home-showcase:not(.home-showcase-tint) .feature-chip { background: var(--color-tint); box-shadow: none; border-color: transparent; }
.chip-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(58,124,165,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem; }
.chip-icon svg { width: 16px; height: 16px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-text strong { display: block; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; color: var(--color-dark); line-height: 1.3; }
.chip-text span { font-family: var(--font-ui); font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.4; }
.showcase-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; padding-top: var(--space-sm); border-top: 1px solid var(--color-border); }
.showcase-footer .fineprint { flex: 1; min-width: 0; }
.homes-contact { padding-block: var(--space-2xl); background: var(--color-dark); color: var(--color-white); }
.homes-contact-inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xl); align-items: center; }
.homes-contact h2 { color: var(--color-white); margin-bottom: var(--space-xs); }
.homes-contact p { color: rgba(255,255,255,0.75); max-width: 52ch; }
.homes-contact-actions { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-end; flex-shrink: 0; }
.homes-contact-links { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
.homes-contact-links a { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8); text-decoration: none; }
.homes-contact-links a:hover { color: var(--color-white); text-decoration: underline; }
.homes-contact-links span { font-size: 0.75rem; font-weight: 400; color: rgba(255,255,255,0.45); margin-right: 0.35rem; }

@media (max-width: 900px) {
  .showcase-grid, .showcase-grid.reverse { grid-template-columns: 1fr; }
  .showcase-grid.reverse .showcase-photo, .showcase-grid.reverse .showcase-body { order: unset; }
  .showcase-photo { min-height: 320px; }
  .homes-contact-inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .homes-contact-actions, .homes-contact-links { align-items: flex-start; }
}
@media (max-width: 700px) {
  .showcase-photo { min-height: 240px; border-radius: var(--radius-lg); }
  .homes-hero-nav { gap: 0.5rem; }
  .showcase-footer { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   NURSING CARE
   ============================================================ */
.nc-hero { background: linear-gradient(135deg, #eef4f8 0%, #f4f0eb 100%); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.nc-hero h1 { margin-bottom: var(--space-sm); }
.nc-hero .eyebrow { margin-bottom: var(--space-xs); }
.nc-icf { background: #e8f2f9; border: 1px solid #c2daea; border-radius: var(--radius-lg); padding: var(--space-lg); margin-top: var(--space-lg); display: flex; gap: var(--space-md); align-items: flex-start; max-width: 72ch; }
.nc-icf-icon { flex-shrink: 0; width: 40px; height: 40px; background: var(--color-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.nc-icf-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nc-icf-body { display: flex; flex-direction: column; gap: 0.35rem; }
.nc-icf-body strong { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary-dark); }
.nc-icf-body p { color: var(--color-text); font-size: 1rem; max-width: none; margin: 0; }
.nc-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-md); }
.nc-card { background: var(--color-white); border: 1px solid #c2daea; border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 0.6rem; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }
.nc-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-5px); border-color: rgba(58,124,165,0.5); }
.nc-card-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #d0e8f5, #e8f2f9); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(58,124,165,0.15); }
.nc-card-icon svg { width: 22px; height: 22px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nc-card h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; color: var(--color-dark); line-height: 1.3; }
.nc-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; max-width: none; margin: 0; }
.nc-staff-section { background: #e8f2f9; border-top: 1px solid #c2daea; border-bottom: 1px solid #c2daea; padding-block: var(--space-2xl); }
.nc-staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.nc-staff-card { background: var(--color-white); border: 1px solid #c2daea; border-radius: var(--radius-xl); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); box-shadow: var(--shadow-card); transition: box-shadow 0.25s, transform 0.25s; }
.nc-staff-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.nc-staff-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(58,124,165,0.35); }
.nc-staff-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nc-staff-card h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; color: var(--color-dark); }
.nc-staff-card p { font-size: 0.95rem; color: var(--color-text); line-height: 1.65; max-width: none; margin: 0; }

@media (max-width: 900px) { .nc-staff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .nc-icf { flex-direction: column; } .nc-staff-grid { grid-template-columns: 1fr; } .nc-services { grid-template-columns: 1fr; } }

/* ============================================================
   BEHAVIOR MANAGEMENT
   ============================================================ */
.bm-hero { background: linear-gradient(135deg, #eef4f8 0%, #f4f0eb 100%); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.bm-hero h1 { margin-bottom: var(--space-sm); }
.bm-hero .eyebrow { margin-bottom: var(--space-xs); }
.bm-principle { background: #e8f2f9; border: 1px solid #c2daea; border-radius: var(--radius-lg); padding: var(--space-lg); margin-top: var(--space-lg); display: flex; gap: var(--space-md); align-items: flex-start; max-width: 72ch; }
.bm-principle-icon { flex-shrink: 0; width: 40px; height: 40px; background: var(--color-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.bm-principle-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bm-principle-body { display: flex; flex-direction: column; gap: 0.35rem; }
.bm-principle-body strong { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary-dark); }
.bm-principle-body p { color: var(--color-text); font-size: 1rem; max-width: none; margin: 0; }
.bm-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-md); }
.bm-card { background: var(--color-white); border: 1px solid #c2daea; border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 0.6rem; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }
.bm-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-5px); border-color: rgba(58,124,165,0.5); }
.bm-card-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #d0e8f5, #e8f2f9); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(58,124,165,0.15); }
.bm-card-icon svg { width: 22px; height: 22px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bm-card h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; color: var(--color-dark); line-height: 1.3; }
.bm-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; max-width: none; margin: 0; }
.bm-safeguards { background: #e8f2f9; border-top: 1px solid #c2daea; border-bottom: 1px solid #c2daea; padding-block: var(--space-2xl); }
.bm-safeguards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.bm-safeguard-card { background: var(--color-white); border: 1px solid #c2daea; border-radius: var(--radius-xl); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); box-shadow: var(--shadow-card); transition: box-shadow 0.25s, transform 0.25s; }
.bm-safeguard-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.bm-safeguard-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(58,124,165,0.35); }
.bm-safeguard-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bm-safeguard-card h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; color: var(--color-dark); }
.bm-safeguard-card p { font-size: 0.95rem; color: var(--color-text); line-height: 1.65; max-width: none; margin: 0; }

@media (max-width: 700px) { .bm-principle { flex-direction: column; } .bm-services { grid-template-columns: 1fr; } .bm-safeguards-grid { grid-template-columns: 1fr; } }

/* ============================================================
   RIGHTS AND ADVOCACY
   ============================================================ */
.ra-hero { background: linear-gradient(135deg, #eef4f8 0%, #f4f0eb 100%); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.ra-hero .eyebrow { margin-bottom: var(--space-xs); }
.ra-hero h1 { margin-bottom: var(--space-sm); }
.ra-rights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.ra-right-card { background: linear-gradient(135deg, #e8f2f9, #f0f7fc); border: 1px solid #c2daea; border-radius: var(--radius-xl); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); box-shadow: var(--shadow-card); transition: box-shadow 0.25s, transform 0.25s; }
.ra-right-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.ra-right-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(58,124,165,0.35); }
.ra-right-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ra-right-card h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; color: var(--color-dark); line-height: 1.3; }
.ra-right-card p { font-size: 0.95rem; color: var(--color-text); line-height: 1.65; max-width: none; margin: 0; }
.ra-protect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.ra-protect-card { background: var(--color-white); border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 0.5rem; transition: box-shadow 0.25s, transform 0.25s; }
.ra-protect-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.ra-protect-card h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; color: var(--color-dark); }
.ra-protect-card p { font-size: 0.95rem; color: var(--color-text); line-height: 1.65; max-width: none; margin: 0; }
.ra-hrc-box { background: #e8f2f9; border: 1px solid #c2daea; border-radius: var(--radius-lg); padding: var(--space-lg); margin-top: var(--space-lg); }
.ra-hrc-box p { max-width: none; margin: 0; line-height: 1.75; }
.ra-hrc-box p + p { margin-top: var(--space-sm); }
.ra-hrc-label { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary-dark); margin-bottom: var(--space-xs); }

@media (max-width: 900px) { .ra-rights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .ra-rights-grid { grid-template-columns: 1fr; } .ra-protect-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MOVING IN
   ============================================================ */
.mi-hero { background: linear-gradient(135deg, #f9f6f2 0%, #eef4f8 100%); padding-block: var(--space-2xl); border-bottom: 1px solid var(--color-border); }
.mi-hero h1 { margin-bottom: var(--space-sm); }
.mi-hero .lead { max-width: 56ch; }
.mi-pathways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.mi-pathway { border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.mi-pathway--ca { background: var(--color-white); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); transition: box-shadow 0.25s, transform 0.25s; }
.mi-pathway--ca:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.mi-pathway--out { background: var(--color-dark); border: 1px solid var(--color-dark); }
.mi-pathway--out .eyebrow { color: var(--color-accent); }
.mi-pathway--out h3 { color: var(--color-white); }
.mi-pathway--out p { color: rgba(255,255,255,0.8); }
.mi-pathway h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-top: 0.25rem; }
.mi-pathway > p { margin-bottom: 0; }
.mi-timeline { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: var(--space-xs); }
.mi-timeline li { display: grid; grid-template-columns: 3rem 1fr; gap: 0 var(--space-sm); position: relative; }
.mi-timeline li:not(:last-child) .mi-step-track::after { content: ''; position: absolute; top: 3rem; left: 1.4rem; width: 2px; bottom: 0; background: var(--color-border); }
.mi-pathway--out .mi-timeline li:not(:last-child) .mi-step-track::after { background: rgba(255,255,255,0.15); }
.mi-step-track { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 0.15rem; }
.mi-step-num { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-primary); color: var(--color-white); font-family: var(--font-ui); font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.mi-pathway--out .mi-step-num { background: var(--color-accent); }
.mi-step-body { padding-bottom: var(--space-md); padding-top: 0.35rem; font-size: 0.95rem; line-height: 1.6; color: var(--color-text); }
.mi-timeline li:last-child .mi-step-body { padding-bottom: 0; }
.mi-step-body strong { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 700; color: var(--color-dark); display: block; margin-bottom: 0.2rem; }
.mi-pathway--out .mi-step-body strong { color: var(--color-white); }
.mi-pathway--out .mi-step-body { color: rgba(255,255,255,0.8); }
.mi-note { margin-top: var(--space-lg); padding: var(--space-sm) var(--space-md); background: rgba(58,124,165,0.06); border-left: 3px solid var(--color-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.55; }
.mi-resources { display: flex; flex-direction: column; gap: var(--space-sm); }
.mi-resource { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm) var(--space-md); align-items: start; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-sm) var(--space-md); transition: box-shadow 0.25s, transform 0.25s; }
.mi-resource:hover { box-shadow: var(--shadow-card-hover); transform: translateX(4px); }
.mi-resource-icon { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); background: rgba(58,124,165,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem; }
.mi-resource-icon svg { width: 1.1rem; height: 1.1rem; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mi-resource dt { font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; color: var(--color-dark); line-height: 1.4; }
.mi-resource dt a { color: var(--color-primary); text-decoration: none; }
.mi-resource dt a:hover { text-decoration: underline; color: var(--color-primary-dark); }
.mi-resource dd { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.55; margin-top: 0.15rem; }

@media (max-width: 820px) { .mi-pathways { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .mi-hero { padding-block: var(--space-xl); }
  .mi-pathway { padding: var(--space-md); }
  .mi-timeline li { grid-template-columns: 2.5rem 1fr; }
  .mi-step-num { width: 2.25rem; height: 2.25rem; font-size: 0.95rem; }
  .mi-timeline li:not(:last-child) .mi-step-track::after { left: 1.1rem; top: 2.5rem; }
  .mi-resource { grid-template-columns: 1fr; }
  .mi-resource-icon { display: none; }
}

/* ============================================================
   CAREERS
   ============================================================ */
.cr-hero { background: linear-gradient(135deg, #eef4f8 0%, #f4f0eb 100%); padding-block: var(--space-2xl); border-bottom: 1px solid var(--color-border); }
.cr-hero .eyebrow { margin-bottom: var(--space-xs); }
.cr-hero h1 { margin-bottom: var(--space-sm); }
.cr-hero .lead { margin-bottom: var(--space-lg); }
.cr-hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cr-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--color-primary-dark); background: rgba(58,124,165,0.1); border: 1px solid rgba(58,124,165,0.2); border-radius: 999px; padding: 0.3rem 0.85rem; }
.cr-badge svg { width: 14px; height: 14px; stroke: var(--color-primary); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cr-why-intro { max-width: 62ch; margin-bottom: var(--space-lg); }
.cr-why-intro h2 { margin-bottom: var(--space-sm); }
.cr-why-intro p + p { margin-top: var(--space-sm); }
.cr-benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); margin-top: var(--space-md); }
.cr-benefit-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 0.5rem; transition: box-shadow 0.25s, transform 0.25s; }
.cr-benefit-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.cr-benefit-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #d0e8f5, #e8f2f9); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(58,124,165,0.15); }
.cr-benefit-icon svg { width: 20px; height: 20px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cr-benefit-card h3 { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; color: var(--color-dark); line-height: 1.3; }
.cr-benefit-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.55; max-width: none; margin: 0; }
.cr-roles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-top: var(--space-lg); }
.cr-role-group { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-lg); box-shadow: var(--shadow-card); }
.cr-role-group h3 { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: var(--space-md); padding-bottom: 0.6rem; border-bottom: 2px solid #e8f2f9; }
.cr-resp-list { display: flex; flex-direction: column; gap: 0.65rem; list-style: none; padding: 0; margin: 0; }
.cr-resp-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; line-height: 1.55; color: var(--color-text); }
.cr-resp-list li::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.15em; background: #e8f2f9; border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a7ca5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }
.cr-apply-head { margin-bottom: var(--space-lg); }
.cr-apply-head h2 { margin-bottom: var(--space-xs); }
.cr-apply-head p { color: var(--color-text-muted); }
.form-section { background: var(--color-white); }
.form-section legend { font-size: 1.05rem; letter-spacing: -0.01em; }
.file-zone { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; background: var(--color-tint); border: 2px dashed var(--color-border); border-radius: var(--radius-md); padding: var(--space-md); transition: border-color 0.15s; }
.file-zone:focus-within { border-color: var(--color-primary); }
.file-zone input[type="file"] { border: none; background: transparent; padding: 0; font-family: var(--font-ui); font-size: 0.9rem; cursor: pointer; width: 100%; }
.file-zone .hint { margin: 0; }
.cr-cert-note { font-family: var(--font-ui); font-size: 0.875rem; color: var(--color-text-muted); background: #f0f9f4; border-left: 3px solid #27ae60; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.65rem var(--space-md); max-width: none; margin-bottom: var(--space-sm); }
.cr-apply-cta { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; color: var(--color-primary); text-decoration: none; margin-top: var(--space-sm); }
.cr-apply-cta:hover { color: var(--color-primary-dark); text-decoration: underline; }
.cr-apply-cta::after { content: ' ↓'; }

@media (max-width: 900px) { .cr-roles { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .cr-benefits-grid { grid-template-columns: 1fr 1fr; } .cr-roles { gap: var(--space-md); } }
@media (max-width: 480px) { .cr-benefits-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.ct-hero { background: linear-gradient(135deg, #f9f6f2 0%, #eef4f8 100%); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.ct-hero h1 { margin-block: var(--space-xs) var(--space-sm); }
.ct-layout { display: grid; grid-template-columns: 2fr 3fr; gap: var(--space-xl); align-items: start; padding-block: var(--space-xl); }
.ct-info h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: var(--space-md); }
.ct-contact-items { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-md); }
.ct-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.ct-contact-icon { flex-shrink: 0; width: 36px; height: 36px; background: rgba(58,124,165,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.ct-contact-icon svg { width: 18px; height: 18px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-contact-body { display: flex; flex-direction: column; gap: 0.15rem; }
.ct-contact-label { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-text-muted); }
.ct-contact-value { font-size: 1rem; color: var(--color-text); line-height: 1.5; }
.ct-contact-value a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.ct-contact-value a:hover { text-decoration: underline; }
.ct-divider { border: none; border-top: 1px solid var(--color-border); margin-block: var(--space-md); }
.ct-form-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-card); }
.ct-form-card h2 { margin-bottom: var(--space-sm); }
.ct-form-card .notice { margin-bottom: var(--space-md); }
.ct-form-card .form { gap: var(--space-sm); }
.ct-form-card .field input, .ct-form-card .field select, .ct-form-card .field textarea { padding: 0.7rem 0.9rem; border-width: 1.5px; }
.ct-form-card .btn-primary { width: 100%; padding-block: 0.85rem; font-size: 1.05rem; margin-top: var(--space-xs); }

@media (max-width: 860px) { .ct-layout { grid-template-columns: 1fr; gap: var(--space-lg); } }
@media (max-width: 700px) { .ct-layout { padding-block: var(--space-lg); } .ct-form-card { padding: var(--space-md); } }

/* ============================================================
   PRIVACY
   ============================================================ */
.priv-hero { background: linear-gradient(135deg, #f9f6f2 0%, #eef4f8 100%); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.priv-hero .eyebrow { margin-bottom: var(--space-xs); }
.priv-hero h1 { margin-bottom: var(--space-sm); }
.priv-body { max-width: 750px; margin-inline: auto; }
.priv-section { padding-block: var(--space-xl); }
.priv-body h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-top: var(--space-lg); margin-bottom: var(--space-xs); padding-top: var(--space-sm); border-top: 1px solid var(--color-border); }
.priv-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.priv-body p, .priv-body ul, .priv-body ol { margin-bottom: var(--space-sm); max-width: none; }
.priv-body p:last-child, .priv-body ul:last-child, .priv-body ol:last-child { margin-bottom: 0; }
.priv-body ul { list-style: disc; padding-left: 1.5rem; }
.priv-body ul li { margin-bottom: 0.4rem; line-height: var(--leading); }
.priv-body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.priv-body a:hover { color: var(--color-primary-dark); }
.priv-contact { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-border); font-family: var(--font-ui); font-size: 0.95rem; line-height: 1.8; }

@media (max-width: 700px) { .priv-body h2 { margin-top: var(--space-md); } }


/* ----- out-of-area modal ----- */
#oa-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.42);
  opacity: 0;
  transition: opacity 0.32s ease;
  padding: 1rem;
}
#oa-modal[hidden] { display: none; }
#oa-modal.oa-visible { opacity: 1; }

.oa-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(28,28,30,0.04),
    0 8px 24px rgba(28,28,30,0.10),
    0 24px 56px rgba(28,28,30,0.14);
  transform: translateY(18px);
  transition: transform 0.36s cubic-bezier(0.22,1,0.36,1);
}
#oa-modal.oa-visible .oa-box { transform: translateY(0); }

/* ---- Top zone ---- */
.oa-top {
  background: #eaf1f8;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  border-bottom: 1px solid rgba(121,155,192,0.18);
}

.oa-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(121,155,192,0.25);
  border-radius: 50%;
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #5a6a7a;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.oa-close svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round;
}
.oa-close:hover {
  background: #fff;
  border-color: rgba(121,155,192,0.5);
  color: #1c1c1e;
}

.oa-icon-wrap {
  width: 2.75rem; height: 2.75rem;
  background: #fff;
  border: 1px solid rgba(246,146,30,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px rgba(246,146,30,0.12);
}
.oa-icon-wrap svg {
  width: 1.2rem; height: 1.2rem;
  stroke: #f6921e; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.oa-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6921e;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.oa-eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.25rem; height: 2px;
  background: #f6921e;
  border-radius: 2px;
  flex-shrink: 0;
}

.oa-heading {
  font-family: var(--font-ui);
  font-size: clamp(1.4rem, 3.5vw, 1.7rem);
  font-weight: 800;
  color: #1c1c1e;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: none;
  padding-right: 1.5rem;
}

/* ---- Bottom zone ---- */
.oa-bottom {
  background: #f7fafd;
  padding: 1.5rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.oa-question {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0 0 0.5rem;
  max-width: none;
}

.oa-desc {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0 0 1.35rem;
  max-width: none;
}

.oa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #799bc0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
  margin-bottom: 0.85rem;
}
.oa-cta:hover {
  background: #5a7fa8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(121,155,192,0.38);
  transform: translateY(-1px);
}
.oa-cta:active { transform: translateY(0); }

.oa-dismiss {
  background: none; border: none;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #9aa5b4;
  text-align: center;
  cursor: pointer;
  padding: 0;
  width: 100%;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.oa-dismiss:hover { color: #1c1c1e; }

/* ---- Mobile ---- */
@media (max-width: 520px) {
  .oa-top  { padding: 1.5rem 1.25rem 1.35rem; }
  .oa-bottom { padding: 1.25rem 1.25rem 1.5rem; }
  .oa-box { border-radius: 16px; }
  .oa-heading { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  #oa-modal, .oa-box { transition: none; }
}
