/* ==========================================================================
   United Relocation, LLC — site styles
   Brand colors are sampled from the logo (navy #29375C, gold #CFA968).
   ========================================================================== */

:root {
  --navy-950: #10172b;
  --navy-900: #161f38;
  --navy-800: #1e2a4a;
  --navy-700: #29375c;
  --navy-600: #3b4b78;
  --navy-100: #e6e9f2;
  --navy-50: #f3f5f9;
  --gold-300: #e6cf9f;
  --gold-400: #dcbd82;
  --gold-500: #cfa968;
  --gold-600: #b38d4b;
  --gold-700: #876629;
  --cream: #f8f5ee;
  --cream-200: #f0ebdf;
  --ink: #18203a;
  --body: #3d4560;
  --muted: #646b82;
  --line: #e3e0d7;
  --line-cool: #dde1ea;
  --white: #fff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 23, 43, 0.06), 0 2px 8px -2px rgba(16, 23, 43, 0.06);
  --shadow-md: 0 2px 4px rgba(16, 23, 43, 0.04), 0 18px 40px -18px rgba(16, 23, 43, 0.22);
  --container: 1200px;
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; line-height: 1.15; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.85rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--ink); padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 16px; top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.45rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font: 600 0.975rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.925rem; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }

.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-950); box-shadow: 0 10px 24px -12px rgba(207, 169, 104, 0.8); }
.btn-navy { background: var(--navy-700); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); color: var(--white); box-shadow: 0 10px 24px -12px rgba(22, 31, 56, 0.7); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-700); color: var(--white); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.38); color: var(--white); background: rgba(255, 255, 255, 0.02); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--navy-700);
  text-decoration: none; border-bottom: 1.5px solid var(--gold-500); padding-bottom: 2px;
}
.text-link .icon { width: 17px; height: 17px; transition: transform 0.18s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-color: var(--line-cool); box-shadow: 0 8px 28px -22px rgba(16, 23, 43, 0.45); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.brand-mark { height: 46px; width: auto; }
.brand-word { height: 14.5px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; padding: 0.55rem 0.85rem; border-radius: 6px;
  color: var(--ink); font-size: 0.96rem; font-weight: 500; text-decoration: none;
}
.nav a:hover { color: var(--navy-700); background: var(--navy-50); }
.nav a[aria-current="page"] { color: var(--navy-700); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
  height: 2px; border-radius: 2px; background: var(--gold-500);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; padding: 0.5rem 0.25rem;
  color: var(--ink); font-weight: 600; font-size: 0.96rem; text-decoration: none; white-space: nowrap;
}
.header-phone .icon { width: 18px; height: 18px; color: var(--gold-600); }
.header-phone:hover { color: var(--navy-600); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 10px;
  border: 1.5px solid var(--line-cool); background: var(--white); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu { border-top: 1px solid var(--line-cool); background: var(--white); box-shadow: 0 24px 40px -28px rgba(16, 23, 43, 0.5); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 22px; }
.mobile-menu a:not(.btn) {
  padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--navy-50);
  color: var(--ink); font-weight: 550; font-size: 1.05rem; text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--navy-700); box-shadow: inset 3px 0 0 var(--gold-500); padding-left: 0.85rem; }
.mobile-menu .btn { margin-top: 18px; }
.mobile-menu .btn + .btn { margin-top: 10px; }

@media (max-width: 1120px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .brand { gap: 10px; }
  .brand-mark { height: 38px; }
  .brand-word { height: 11.5px; }
  .header-actions { gap: 8px; }
  .header-phone {
    width: 44px; height: 44px; justify-content: center; padding: 0;
    border-radius: 10px; background: var(--navy-700); color: var(--white);
  }
  .header-phone .icon { color: var(--gold-400); }
  .header-phone span { display: none; }
}
@media (max-width: 370px) {
  .brand-word { height: 10px; }
  .header-phone { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 5vw + 36px, 112px) 0; }
.section-tight { padding: clamp(48px, 4vw + 24px, 80px) 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy-900); color: rgba(255, 255, 255, 0.8); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.bg-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 3vw + 20px, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--body); }
.bg-navy .lead { color: rgba(255, 255, 255, 0.78); }

.blueprint { position: relative; isolation: isolate; overflow: hidden; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 75% 30%, #000 10%, transparent 75%);
}
.blueprint::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; right: -240px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 169, 104, 0.2), transparent 65%);
}

/* ---------- Home hero ---------- */
.hero { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
  padding: clamp(64px, 6vw + 24px, 120px) 0 clamp(72px, 6vw + 32px, 128px);
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero .lead { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.tag-row li {
  padding: 0.38rem 0.85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
}

.stat-panel {
  border-radius: var(--radius-lg); padding: 30px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.stat-panel-title {
  margin: 0 0 6px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 24px 8px 6px; }
.stat:nth-child(odd) { padding-right: 22px; }
.stat:nth-child(even) { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 18px; }
.stat-num {
  display: block; font-family: var(--font-serif); font-weight: 600; line-height: 1;
  font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.1rem); color: var(--gold-400); letter-spacing: -0.02em;
}
.stat-label { display: block; margin-top: 10px; font-size: 0.92rem; line-height: 1.4; color: rgba(255, 255, 255, 0.76); }

/* Light stat panel (About page) */
.stat-panel.light { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-md); }
.stat-panel.light .stat-panel-title { color: var(--gold-700); border-color: var(--line); }
.stat-panel.light .stat-num { color: var(--navy-700); }
.stat-panel.light .stat-label { color: var(--muted); }
.stat-panel.light .stat:nth-child(even),
.stat-panel.light .stat:nth-child(n+3) { border-color: var(--line); }

/* ---------- Interior page hero ---------- */
.page-hero { background: var(--navy-900); color: rgba(255, 255, 255, 0.8); }
.page-hero-inner { padding: clamp(56px, 5vw + 24px, 104px) 0 clamp(56px, 5vw + 28px, 108px); max-width: 820px; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.8); margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 32px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: var(--body); }
.card-hover:hover { border-color: #d3cdbd; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.icon-tile {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 12px; background: var(--navy-50); color: var(--navy-700);
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile.gold { background: #f6efe1; color: var(--gold-700); }
.icon-tile.dark { background: var(--navy-700); color: var(--gold-400); }

.audience-card { border-top: 3px solid var(--gold-500); }

.card-dark { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.11); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255, 255, 255, 0.74); }
.card-dark .program-name { display: block; margin-bottom: 12px; font: 600 1.9rem/1 var(--font-serif); color: var(--gold-400); }

.risk-card { background: var(--cream); border: 1px solid var(--cream-200); border-radius: var(--radius-lg); padding: clamp(28px, 3vw + 10px, 40px); }
.risk-card h3 { font-size: 1.1rem; margin-bottom: 18px; }

.link-light { color: var(--gold-400); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(220, 189, 130, 0.5); }
.link-light:hover { color: var(--gold-300); }
.req-inline { color: #a8432b; font-weight: 700; }

/* Feature list (Why section) */
.split, .split-even { display: grid; gap: clamp(40px, 6vw, 96px); }
.split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }

.feature-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.feature .icon-tile { margin: 0; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.98rem; }

/* Services snapshot */
.service-card { padding: 28px 26px; }
.service-card .icon-tile { width: 48px; height: 48px; margin-bottom: 20px; }
.service-card h3 { font-size: 1.08rem; }
.service-card p { font-size: 0.95rem; color: var(--muted); }
.section-foot { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.section-foot.center { justify-content: center; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 68px; right: -12px; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), rgba(207, 169, 104, 0.25));
}
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%;
  border: 2px solid var(--gold-500); background: var(--navy-900); color: var(--gold-400);
  font: 600 1.2rem/1 var(--font-serif);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.74); }

/* ---------- Checklists ---------- */
.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checklist.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.checklist li { position: relative; padding-left: 34px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.05em; width: 22px; height: 22px; border-radius: 50%;
  background: #f4ecdc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23876629' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist.spaced { margin: 28px 0 34px; }
.checklist.sm li { font-size: 0.95rem; padding-left: 30px; }
.checklist.sm li::before { width: 19px; height: 19px; background-size: 11px; top: 0.12em; }
.checklist.on-dark li { color: rgba(255, 255, 255, 0.86); }
.checklist.on-dark li::before {
  background-color: rgba(207, 169, 104, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dcbd82' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Program panel ---------- */
.program-panel { border-radius: var(--radius-lg); background: var(--navy-900); color: rgba(255, 255, 255, 0.78); padding: 36px; box-shadow: var(--shadow-md); }
.program-panel h3 { color: var(--gold-400); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.program-list { margin: 0; padding: 0; list-style: none; }
.program-list li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.program-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.program-list strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: var(--white); line-height: 1.2; }
.program-list span { font-size: 0.95rem; line-height: 1.5; }

/* ---------- Resident callout & CTA ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold-500);
  border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow-sm);
}
.callout .icon-tile { margin: 0; width: 60px; height: 60px; }
.callout h2 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); margin-bottom: 6px; }
.callout p { color: var(--body); }
.callout-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.cta-panel {
  border-radius: var(--radius-lg); background: var(--navy-900); color: rgba(255, 255, 255, 0.8);
  padding: clamp(40px, 4vw + 20px, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 32px 48px; align-items: center;
}
.cta-panel h2 { color: var(--white); margin-bottom: 12px; }
.cta-panel p { font-size: 1.08rem; max-width: 620px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Services page ---------- */
.service-group { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.service-group + .service-group { margin-top: clamp(64px, 6vw, 104px); padding-top: clamp(64px, 6vw, 104px); border-top: 1px solid var(--line); }
.group-num { display: block; font: 700 0.85rem/1 var(--font-sans); letter-spacing: 0.16em; color: var(--gold-700); margin-bottom: 14px; }
.service-group h2 { font-size: clamp(1.7rem, 1.25rem + 1.4vw, 2.3rem); }
.service-stack { display: grid; gap: 20px; }
.service-detail { padding: 32px; }
.service-detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.service-detail-head .icon-tile { margin: 0; width: 48px; height: 48px; flex: none; }
.service-detail-head h3 { margin: 0; font-size: 1.18rem; }
.service-detail > p { margin-bottom: 18px; }

/* ---------- Residents page ---------- */
.steps-v { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps-v li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: 34px; }
.steps-v li:last-child { padding-bottom: 0; }
.steps-v li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 58px; bottom: 4px; width: 2px; background: var(--line); }
.steps-v .num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-700); color: var(--gold-400); font: 600 1.2rem/1 var(--font-serif);
}
.steps-v h3 { margin: 12px 0 6px; }

.resident-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(36px, 5vw, 72px); align-items: start; }
.call-card {
  position: sticky; top: calc(var(--header-h) + 28px);
  background: var(--navy-900); color: rgba(255, 255, 255, 0.8); border-radius: var(--radius-lg); padding: 34px 30px;
}
.call-card h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 10px; }
.call-card .big-phone {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 14px;
  font: 600 1.7rem/1.1 var(--font-serif); color: var(--gold-400); text-decoration: none; letter-spacing: -0.01em;
}
.call-card .big-phone .icon { width: 26px; height: 26px; }
.call-card .btn { width: 100%; margin-top: 8px; }
.call-card small { display: block; margin-top: 16px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); line-height: 1.5; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq details[open] { border-color: #d6cfbd; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; font-size: 1.04rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--gold-600); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 24px 22px; }
.faq .answer p { font-size: 0.99rem; }

.tips-card { background: var(--cream); border: 1px solid var(--cream-200); border-radius: var(--radius-lg); padding: clamp(28px, 3vw + 12px, 44px); }
.tips-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw + 10px, 44px); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.field .req { color: #a8432b; margin-left: 2px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid #d3d7e1; border-radius: 10px;
  background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329375c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.9rem center / 18px no-repeat;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9bfce; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(59, 75, 120, 0.15); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 26px; }
.form-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; margin-bottom: 22px; font-size: 0.96rem; line-height: 1.5; }
.alert[hidden] { display: none; }
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert-error { background: #fcf1ee; color: #7f2a17; border: 1px solid #f0c9bf; }
.alert-info { background: #f6efe1; color: #5e4618; border: 1px solid #ead9b8; }

.info-stack { display: grid; gap: 20px; }
.info-card { background: var(--navy-900); color: rgba(255, 255, 255, 0.8); border-radius: var(--radius-lg); padding: 32px 30px; }
.info-card h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 4px; }
.info-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .icon-wrap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(207, 169, 104, 0.14); color: var(--gold-400); }
.info-list .icon-wrap .icon { width: 21px; height: 21px; }
.info-list .label { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 3px; }
.info-list a, .info-list .value { color: var(--white); font-weight: 600; text-decoration: none; line-height: 1.45; }
.info-list a.phone { font-family: var(--font-serif); font-size: 1.45rem; color: var(--gold-400); }
.info-card.light { background: var(--cream); color: var(--body); border: 1px solid var(--cream-200); }
.info-card.light h2 { color: var(--ink); font-size: 1.25rem; }

/* ---------- Simple pages (thank you / 404) ---------- */
.simple-page { min-height: 62vh; display: grid; align-items: center; }
.simple-page .inner { max-width: 640px; margin-inline: auto; text-align: center; padding: 96px 0; }
.simple-page .icon-tile { margin: 0 auto 26px; width: 68px; height: 68px; border-radius: 50%; }
.simple-page .icon-tile .icon { width: 32px; height: 32px; }
.simple-page .hero-actions { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.7); padding-top: clamp(56px, 5vw + 24px, 88px); font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1.3fr; gap: 40px; }
.footer-logo { width: 176px; margin-bottom: 22px; }
.footer-brand p { max-width: 330px; line-height: 1.6; }
.footer-heading { margin-bottom: 18px; color: var(--white); font: 700 0.78rem/1.3 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold-500); }
.footer-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer-contact .icon { width: 19px; height: 19px; margin-top: 2px; color: var(--gold-500); }
.footer-contact .phone { font-weight: 600; color: var(--white); font-size: 1.05rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: clamp(48px, 4vw + 20px, 72px); padding: 24px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem; color: rgba(255, 255, 255, 0.52);
}

/* ---------- Spacing utilities (kept after components so they win) ---------- */
.space-top { margin-top: clamp(56px, 5vw + 20px, 88px); }
.space-top-md { margin-top: 32px; }
.space-top-sm { margin-top: 18px; }
.pt-0 { padding-top: 0; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-group > .reveal:nth-child(2) { transition-delay: 0.07s; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: 0.14s; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: 0.21s; }
.js .reveal-group > .reveal:nth-child(5) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .timeline .step:nth-child(3)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-inner, .split, .split-even, .service-group, .resident-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-col { position: static; }
  .call-card { position: relative; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout { grid-template-columns: auto 1fr; }
  .callout-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .timeline .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; padding-bottom: 32px; }
  .timeline .step:last-child { padding-bottom: 0; }
  .timeline .step-num { margin: 0; grid-row: span 2; }
  .timeline .step h3 { margin-top: 13px; }
  .timeline .step:not(:last-child)::after,
  .timeline .step:nth-child(3)::after {
    display: block; top: 58px; bottom: 2px; left: 27px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--gold-500), rgba(207, 169, 104, 0.25));
  }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .checklist.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat-panel { padding: 22px 18px; }
  .stat:nth-child(odd) { padding-right: 14px; }
  .stat:nth-child(even) { padding-left: 14px; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px; }
  .callout { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .callout-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .program-panel { padding: 28px 22px; }
  .program-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .service-detail { padding: 26px 22px; }
  .card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq summary { padding: 18px; }
  .faq .answer { padding: 0 18px 20px; }
}
