/* =========================================================================
   Raven Point Wealth Management — design system
   Brand identity preserved from 2022 Embody Design guidelines.
   ========================================================================= */

/* ---------- Fonts (self-hosted from brand kit) ---------- */
/* Audrey covers everything EXCEPT the quote/apostrophe codepoints
   (U+0022 " , U+0027 ' , U+2018 ' , U+2019 ' , U+201C " , U+201D " ), whose
   glyphs are malformed in Audrey. Those are served by Montserrat below. */
@font-face {
  font-family: "Audrey";
  src: url("../fonts/Audrey-Normal.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0-21, U+23-26, U+28-2B, U+2D-AD, U+AF, U+B1-2017, U+201A-201B, U+201E-10FFFF;
}
@font-face {
  font-family: "Audrey";
  src: url("../fonts/Audrey-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0-21, U+23-26, U+28-2B, U+2D-AD, U+AF, U+B1-2017, U+201A-201B, U+201E-10FFFF;
}
@font-face {
  font-family: "Audrey";
  src: url("../fonts/Audrey-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0-21, U+23-26, U+28-2B, U+2D-AD, U+AF, U+B1-2017, U+201A-201B, U+201E-10FFFF;
}
@font-face {
  font-family: "Sifonn";
  src: url("../fonts/Sifonn-Basic.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Audrey's apostrophe/quote glyphs are malformed and collide with the next
   letter. Override just those codepoints with Montserrat's clean marks while
   keeping Audrey for everything else. Declared after the Audrey faces so it
   wins for the overlapping range. */
@font-face {
  font-family: "Audrey";
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0022, U+0027, U+002C, U+00AE, U+00B0, U+2018, U+2019, U+201C, U+201D;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (HEX authoritative, from guidelines) */
  --midnight: #37414e;
  --cerulean: #588599;
  --cerulean-deep: #34596b;  /* accessible link/accent on light */
  --sky: #a5c6d1;
  --ice: #e3f2f6;
  --slate: #bcbec0;

  /* Working neutrals */
  --ink: #2b333d;
  --ink-muted: #566270;
  --paper: #ffffff;
  --paper-2: #f5f9fb;
  --line: #dde6ea;

  /* Typography */
  --font-display: "Audrey", "Playfair Display", Georgia, serif;
  --font-label: "Sifonn", "Audrey", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 2rem);
  --step-3:  clamp(1.9rem, 1.62rem + 1.4vw, 2.85rem);
  --step-4:  clamp(2.3rem, 1.9rem + 2.1vw, 3.85rem);
  --step-5:  clamp(2.7rem, 2.1rem + 3vw, 4.5rem);

  /* Space */
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --space-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  --container: 1200px;
  --container-narrow: 760px;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(43, 51, 61, 0.06), 0 4px 16px rgba(43, 51, 61, 0.06);
  --shadow-md: 0 10px 40px rgba(43, 51, 61, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* quint-ish */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index scale */
  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: var(--cerulean-deep); text-decoration: none; }
a:hover { color: var(--midnight); }
:focus-visible {
  outline: 3px solid var(--cerulean);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--midnight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }
/* Smaller headings/cards: heavier Audrey + tighter tracking so they read solid,
   not airy (h1/h2 stay at the lighter display weight). */
h3, h4 { font-weight: 700; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

.label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--step--1);
  color: var(--cerulean-deep);
  font-weight: 400;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  max-width: 60ch;
}
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.measure { max-width: var(--container-narrow); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.5rem + 3vw, 3rem);
}
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.bg-ice { background: var(--ice); }
.bg-paper2 { background: var(--paper-2); }
.bg-midnight { background: var(--midnight); color: #eaf1f4; }
.bg-midnight h1, .bg-midnight h2, .bg-midnight h3, .bg-midnight h4 { color: #fff; }
.bg-midnight .label, .bg-midnight .eyebrow { color: var(--sky); }
.bg-midnight a { color: var(--sky); }

.center { text-align: center; margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.site-header__logo { position: relative; display: inline-flex; align-items: center; }
.site-header__logo img { height: 56px; width: auto; transition: opacity 0.3s; }
.site-header__logo .logo-white { position: absolute; top: 0; left: 0; }
/* default (over hero): white logo + light text */
.site-header .logo-color { opacity: 0; }
.site-header .logo-white { opacity: 1; }
.site-nav a { color: #fff; }
/* Client Login (ghost) in the header bar: keep it legible over hero photos
   with a soft dark scrim + white outline. */
.header-actions .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(43, 51, 61, 0.32);
}
.header-actions .btn--ghost:hover {
  background: rgba(43, 51, 61, 0.6);
  border-color: #fff;
  color: #fff;
}

/* scrolled / solid */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(43, 51, 61, 0.06);
}
.site-header.is-solid .logo-color { opacity: 1; }
.site-header.is-solid .logo-white { opacity: 0; }
.site-header.is-solid .site-nav a { color: var(--midnight); }
.site-header.is-solid .header-actions .btn--ghost {
  color: var(--midnight);
  border-color: var(--slate);
  background: transparent;
}
.site-header.is-solid .header-actions .btn--ghost:hover {
  background: var(--midnight);
  border-color: var(--midnight);
  color: #fff;
}
.site-header.is-solid .nav-toggle__bar { background: var(--midnight); }

/* pages without a hero use the solid header from the start */
.site-header.is-static {
  position: sticky;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--line);
}
.site-header.is-static .logo-color { opacity: 1; }
.site-header.is-static .logo-white { opacity: 0; }
.site-header.is-static .site-nav a { color: var(--midnight); }
.site-header.is-static .nav-toggle__bar { background: var(--midnight); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav > .btn { display: none; } /* Client Login lives in header-actions on desktop, drawer on mobile */
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-block: 0.3rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--midnight); color: #fff; }
.btn--primary:hover { background: #2b333d; color: #fff; box-shadow: var(--shadow-md); }
.btn--accent { background: var(--cerulean-deep); color: #fff; } /* deeper blue, white text ~7.5:1 (AA) */
.btn--accent:hover { background: #284755; color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--ghost-dark { background: transparent; border-color: var(--midnight); color: var(--midnight); }
.btn--ghost-dark:hover { background: var(--midnight); color: #fff; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn .arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.header-actions .btn { padding: 0.6rem 1.15rem; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 26px; height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 940px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 120%;
  object-fit: cover;
  will-change: transform;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43,51,61,0.5) 0%, rgba(43,51,61,0.16) 30%, rgba(43,51,61,0.46) 56%, rgba(43,51,61,0.9) 100%),
    linear-gradient(90deg, rgba(43,51,61,0.4) 0%, rgba(43,51,61,0.08) 48%, transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
  padding-top: 9rem;
  width: 100%;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.3rem, 1.7rem + 2.4vw, 3.65rem);
  font-weight: 500;
  max-width: 17ch;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(20,26,33,0.35);
}
.hero__sub {
  margin-top: 1.4rem;
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 46ch;
  color: #eef5f8;
  font-weight: 400;
}
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.9rem;
  color: #d4e7ef; /* lighter than sky for legibility over photos */
  text-shadow: 0 1px 14px rgba(20, 26, 33, 0.6);
  margin-bottom: 1.4rem;
}
.hero__kicker::before {
  content: ""; width: 40px; height: 2px; background: currentColor; opacity: 0.9;
}

/* Compact hero for interior pages */
.hero--compact { min-height: clamp(440px, 62vh, 600px); align-items: center; }
.hero--compact .hero__inner { padding-top: 8rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero--compact .hero__title { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); max-width: 20ch; }
.hero--compact .hero__media::after {
  background: linear-gradient(180deg, rgba(43,51,61,0.55) 0%, rgba(43,51,61,0.35) 50%, rgba(43,51,61,0.6) 100%);
}

/* small helpers */
.muted { color: var(--ink-muted); }
.flow-lg > * + * { margin-top: 1.5rem; }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.place-figure { margin: 0; }
.place-figure img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }
.place-figure figcaption { margin-top: 0.8rem; font-size: var(--step--1); color: var(--ink-muted); font-style: italic; }

/* ---------- Generic two-column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--wide { aspect-ratio: 5 / 4; }

/* ---------- Value props row ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.feature {
  padding-top: 1.6rem;
  border-top: 2px solid var(--sky);
}
.feature h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.feature p { color: var(--ink-muted); font-size: var(--step-0); }

/* ---------- Service pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.25rem;
}
/* Home services overview: 8 single-concept tiles in a balanced 4-up grid */
.pillars--overview { grid-template-columns: repeat(4, 1fr); }
.pillars--overview .pillar { padding: clamp(1.25rem, 2vw, 1.75rem); }
.pillars--overview .pillar p { font-size: var(--step--1); }
@media (max-width: 900px) { .pillars--overview { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars--overview { grid-template-columns: 1fr; } }
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.pillar__icon {
  width: 46px; height: 46px;
  color: var(--cerulean);
  margin-bottom: 1.1rem;
}
.pillar__icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.pillar p { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.55; }
.bg-ice .pillar { background: #fff; }

/* ---------- Detailed service list ---------- */
.svc-list { display: grid; gap: 1.5rem; }
.svc-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.4rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc-item:first-child { border-top: 1px solid var(--line); }
.svc-item__icon { color: var(--cerulean); width: 44px; height: 44px; }
.svc-item h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.svc-item p { color: var(--ink-muted); max-width: 62ch; }

/* ---------- Photo band ---------- */
.photo-band {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.photo-band__media { position: absolute; inset: 0; z-index: -1; }
.photo-band__media img { width: 100%; height: 100%; object-fit: cover; }
.photo-band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,51,61,0.82), rgba(43,51,61,0.7));
}
.photo-band .container { position: relative; }
.photo-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.photo-band p { color: #e7eff2; max-width: 52ch; margin: 1.2rem auto 0; }

/* ---------- Fee table ---------- */
.fee-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  align-items: start;
}
.fee-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
  height: 100%;
}
.fee-card__amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--midnight);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}
.fee-card__amount span { font-size: var(--step-0); color: var(--ink-muted); font-family: var(--font-body); }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.fee-table th, .fee-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-0);
}
.fee-table th { font-weight: 600; color: var(--midnight); }
.fee-table th:last-child, .fee-table td:last-child { text-align: right; }
.fee-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--cerulean-deep); }
.fee-note { font-size: var(--step--1); color: var(--ink-muted); margin-top: 1rem; }

/* ---------- Fee estimator ---------- */
.estimator {
  background: var(--ice);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
.estimator__intro { max-width: 60ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.estimator__intro h3 { font-size: var(--step-2); }
.estimator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.estimator__controls { display: flex; flex-direction: column; gap: 1.4rem; }

/* resident toggle */
.est-toggle {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.est-toggle:has(input:checked), .est-toggle.is-checked { border-color: var(--cerulean); background: #eef6f9; }
.est-toggle:focus-within { box-shadow: 0 0 0 3px rgba(88,133,153,0.3); border-color: var(--cerulean); }
.est-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.est-toggle__box {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  border: 1.6px solid var(--slate); border-radius: 5px;
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.est-toggle:has(input:checked) .est-toggle__box, .est-toggle.is-checked .est-toggle__box { background: var(--cerulean); border-color: var(--cerulean); }
.est-toggle__box::after {
  content: ""; width: 11px; height: 6px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform 0.15s var(--ease-out);
}
.est-toggle:has(input:checked) .est-toggle__box::after, .est-toggle.is-checked .est-toggle__box::after { transform: rotate(-45deg) scale(1); }
.est-toggle__text { display: flex; flex-direction: column; gap: 0.15rem; font-size: var(--step-0); }
.est-toggle__text .muted { font-size: var(--step--1); }

/* assets field */
.est-fieldlabel { display: block; font-weight: 600; color: var(--midnight); font-size: var(--step-0); }
.est-input {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.5rem; padding: 0.7rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  font-family: var(--font-display); font-size: var(--step-2); color: var(--midnight);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.est-input:focus-within { border-color: var(--cerulean); box-shadow: 0 0 0 3px rgba(88,133,153,0.25); }
.est-input span { color: var(--ink-muted); }
.est-input input { border: 0; outline: 0; width: 100%; background: transparent; font: inherit; color: inherit; }
.est-range { width: 100%; margin-top: 1rem; accent-color: var(--cerulean); cursor: pointer; }
.est-scale { display: flex; justify-content: space-between; margin-top: 0.35rem; font-size: var(--step--1); color: var(--ink-muted); }
.est-note { font-size: var(--step--1); color: var(--ink-muted); line-height: 1.5; }

/* results panel (midnight focal point) */
.estimator__results {
  background: var(--midnight);
  color: #d7e2e8;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.est-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.est-row > span:first-child { color: #b9cad3; font-size: var(--step-0); }
.est-row--asset { align-items: center; }
.est-rowlabel { display: flex; flex-direction: column; gap: 0.1rem; white-space: nowrap; }
.est-subrate { display: block; line-height: 1.5; min-height: 1.5em; font-style: normal; color: #8ea4af; font-size: var(--step--1); }
.est-amt { font-weight: 600; font-size: var(--step-1); color: #fff; white-space: nowrap; }
.est-amt small, .est-total small { font-family: var(--font-body); font-weight: 400; color: #8ea4af; font-size: 0.62em; margin-left: 0.15rem; }
.est-row--total { border-bottom: 0; padding-top: 1.1rem; }
.est-row--total > span:first-child { color: #fff; font-size: var(--step-1); white-space: nowrap; }
.est-total { font-family: var(--font-display); font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem); color: #fff; line-height: 1; white-space: nowrap; }
.est-waived { color: var(--sky); }
.est-resnote {
  margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: var(--sky); font-size: var(--step--1); line-height: 1.55;
}
.est-disclaimer { margin-top: 1.25rem; font-size: 0.78rem; color: var(--ink-muted); line-height: 1.6; }
.est-disclaimer p + p { margin-top: 0.5rem; }

@media (max-width: 820px) {
  .estimator__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .estimator { padding: 1.25rem; }
  .estimator__results { padding: 1.25rem; }
  .est-rowlabel { white-space: normal; }
  .est-row--total > span:first-child { white-space: normal; }
  .est-total { font-size: 1.6rem; }
}

/* ---------- Contact / Calendly ---------- */
.calendly-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
  min-height: 732px;
}
.calendly-inline-widget { min-width: 320px; height: 732px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-detail { display: flex; gap: 0.9rem; align-items: flex-start; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.contact-detail svg { width: 22px; height: 22px; color: var(--cerulean); flex: none; margin-top: 3px; }
.contact-detail a { color: var(--ink); }
.contact-detail a:hover { color: var(--cerulean-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: #c4d2da; font-size: var(--step--1); }
.site-footer a { color: #d6e3ea; }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 3.5vw, 3.25rem);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 50px; margin-bottom: 1.1rem; }
.footer-brand p { color: #aebfc8; max-width: 34ch; line-height: 1.55; }
.footer-address { color: #92a5af; font-size: var(--step--1); margin-top: 0.65rem; line-height: 1.5; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 0.8rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; line-height: 1.2; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-disclosures {
  padding-block: 0.95rem 1.9rem;
  color: #aebfc7; /* ~5.5:1 on midnight (AA for small text) */
  font-size: 0.78rem;
  line-height: 1.55;
  display: grid;
  gap: 0.55rem;
}
.footer-disclosures p { max-width: 110ch; }
.footer-crs a {
  font-family: var(--font-body);
  color: #aebfc7; /* match the disclosure text; underlined as a link */
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-crs a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; align-items: center; margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ---------- Reveal animation (enhances already-visible default) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { height: 100%; }
  .btn:hover, .pillar:hover { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 3 / 4; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-toggle { display: flex; z-index: calc(var(--z-header) + 1); }
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    background: var(--midnight);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo), visibility 0s linear 0.4s;
    box-shadow: -10px 0 40px rgba(0,0,0,0.25);
    visibility: hidden;
    pointer-events: none;
  }
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible; /* visible instantly on open so focus can move in */
    pointer-events: auto;
    transition: transform 0.4s var(--ease-out-expo), visibility 0s;
  }
  .site-nav a, .site-header.is-solid .site-nav a, .site-header.is-static .site-nav a { color: #fff; font-size: 1.2rem; }
  .header-actions .btn { display: none; }
  .site-nav .btn { display: inline-flex; margin-top: 0.5rem; color: #fff; border-color: #fff; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--midnight);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  z-index: var(--z-toast);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Print / PDF export (compliance review) ---------- */
@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  @page { margin: 0.5in; }
  html, body { background: #fff !important; }

  /* sticky header -> static, shown once, no overlap */
  .site-header { position: static !important; background: #fff !important; box-shadow: none !important; }
  .site-header.is-solid { box-shadow: none !important; }
  .header-actions, .nav-toggle, .skip-link { display: none !important; }

  /* all scroll-reveal content forced visible (JS reveal may not have fired) */
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* tame full-bleed hero heights so each doesn't eat a page */
  .hero { min-height: 460px !important; }
  .hero--compact { min-height: 300px !important; }
  .hero__media img { transform: none !important; }

  /* keep meaningful blocks intact across page breaks */
  .feature, .pillar, .svc-item, .fee-card, .estimator, figure, .place-figure,
  .contact-detail, .fee-wrap, .fee-table, img { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }

  /* dark full-bleed blocks must not split (background only paints one page if they do) */
  .site-footer, .bg-midnight { break-inside: avoid; }

  /* empty Calendly iframe can't render in a static PDF — hide the blank box */
  .calendly-inline-widget { display: none !important; }
}
