/* Springley Life + Wealth: site styles.
   One hand-written file, no framework. Tokens, base, layout, then components.

   Colour rules (brand colours only):
   - Text: navy on white, white or pale gold on navy.
   - Gold and slate are for large type (24px and up), rules, the logo and the steps diagram.
   - On navy, gold accents use pale gold.
   - Sand is pale gold mixed into white: a tint for lighter sections, not a new colour. */

/* ---------- Fonts (subset to Latin, WOFF2) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* The logo wordmark only: EB Garamond, subset to the letters in "Springley Life + Wealth" (3 KB). */
@font-face { font-family: "Springley Wordmark"; src: url("../fonts/eb-garamond-wordmark.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
/* Newsreader keeps its optical-size axis, so large headings get the display cut automatically. */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Brand colours, from the logo, cover images and the current site */
  --navy: #343E4B;
  --slate: #6D7888;
  --gold: #988642;
  --gold-pale: #CCC3A1;
  --white: #FFFFFF;
  --sand: #F6F4EE;                                        /* pale gold at about 18% on white */
  --line: rgba(52, 62, 75, 0.16);
  --line-on-navy: rgba(255, 255, 255, 0.18);

  /* Type: one scale, used the same way on every page */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-wordmark: "Springley Wordmark", "EB Garamond", Garamond, Georgia, serif;
  --text-sm: 0.9375rem;                                   /* 15px: captions, fine print */
  --text-base: 1.125rem;                                  /* 18px: body */
  --text-lead: 1.3125rem;                                 /* 21px: opening lines */
  --text-h3: 1.5rem;                                      /* 24px */
  --text-h2: clamp(1.875rem, 1.55rem + 1.2vw, 2.625rem);  /* 30 to 42px */
  --text-h1: clamp(2.375rem, 1.8rem + 2.4vw, 3.75rem);    /* 38 to 60px */

  /* Space */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --section: clamp(3rem, 2rem + 4.5vw, 6.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --wide: 72rem;
  --measure: 36rem;
  --radius: 12px;                                         /* cards, fields, diagrams */
  --radius-lg: 20px;                                      /* photos */
  --pill: 999px;                                          /* buttons */
  --header-h: 4.8rem;                                     /* set exactly by site.js */

  /* Motion */
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
  --lift: 0 14px 30px -16px rgba(52, 62, 75, 0.55);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 var(--text-base)/1.65 var(--font-sans);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--text-h3); }
p, ul, ol { margin: 0 0 1em; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-pale); color: var(--navy); }

.skip-link {
  position: absolute; left: var(--s2); top: -4rem; z-index: 40;
  padding: var(--s1) var(--s2); background: var(--navy); color: var(--white); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section:not(.navy):not(.sand) + .section:not(.navy):not(.sand) { border-top: 1px solid var(--line); }
.sand { background: var(--sand); }

/* Navy sections. Gold accents become pale gold here. */
.navy { background: var(--navy); color: var(--white); }
.navy a:not(.btn) { text-decoration-color: var(--gold-pale); }
.navy :focus-visible { outline-color: var(--gold-pale); }
.navy .accent { color: var(--gold-pale); }

/* The one grid: two columns that every split section shares. */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.cols--top { align-items: start; }
.spaced { margin-top: var(--s5); }
@media (max-width: 52rem) { .cols { grid-template-columns: 1fr; } }

.prose { max-width: var(--measure); }
.lead { font-size: var(--text-lead); line-height: 1.55; }
.small { font-size: var(--text-sm); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.8em 1.5em;
  border: 2px solid var(--navy); border-radius: var(--pill);
  background: var(--navy); color: var(--white);
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.navy .btn { border-color: var(--gold-pale); background: var(--gold-pale); color: var(--navy); }
.navy .btn:hover { border-color: var(--white); background: var(--white); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); }

.more { font-weight: 600; }
.more::after { content: "\2192"; display: inline-block; margin-left: 0.35em; transition: transform 0.25s var(--ease); }
.more:hover::after { transform: translateX(4px); }

/* A hand-drawn underline under one phrase of a page's main heading. It draws itself in once. */
.scribble { position: relative; white-space: nowrap; }
.scribble svg {
  position: absolute; left: -2%; bottom: -0.16em; width: 104%; max-width: none; height: 0.3em; overflow: visible;
  fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round;
}
.navy .scribble svg { stroke: var(--gold-pale); }
/* The path is about 97 units long, so a 100-unit dash covers it. */
.scribble path { stroke-dasharray: 100; animation: scribble 0.9s var(--ease) 0.35s both; }
@keyframes scribble { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s4); }
@media (max-width: 30rem) { .actions { flex-direction: column; align-items: flex-start; } }

/* ---------- Header ---------- */
/* Sticky. site.js hides it while you scroll down and brings it back when you scroll up. */
.site-header {
  position: sticky; top: 0; z-index: 15;
  border-bottom: 1px solid var(--line); background: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.3s;
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(52, 62, 75, 0.6); }
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 4.75rem; }
/* Logo lockup, matching the brand: gold S mark, then "Springley" over "Life + Wealth" in gold Garamond. */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--gold); text-decoration: none; }
.brand img { width: 3.4rem; height: 3.4rem; transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(-10deg); }
.brand__name { display: block; font: 400 1.85rem/0.9 var(--font-wordmark); }
.brand__tag { display: block; margin-top: 0.12rem; font: 400 1.4rem/1 var(--font-wordmark); }

/* Menu button (phones): three lines, the middle one short, that fold into an X. */
.nav-toggle {
  display: none; align-items: center; gap: 0.65rem;
  min-height: 2.75rem; padding: 0.55rem 1.1rem 0.55rem 1rem;
  border: 0; border-radius: var(--pill);
  background: var(--sand); color: var(--navy);
  font: 600 1rem var(--font-sans); cursor: pointer;
  transition: background-color 0.2s;
}
.nav-toggle:hover { background: color-mix(in srgb, var(--gold-pale) 45%, var(--white)); }
.nav-toggle__icon { position: relative; width: 1.25rem; height: 0.875rem; }
.nav-toggle__icon span {
  position: absolute; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.2s, width 0.3s var(--ease);
}
.nav-toggle__icon span:nth-child(1) { top: 0; width: 100%; }
.nav-toggle__icon span:nth-child(2) { top: calc(50% - 1px); width: 60%; }
.nav-toggle__icon span:nth-child(3) { bottom: 0; width: 100%; }
.nav-toggle:hover .nav-toggle__icon span:nth-child(2) { width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; transform: translateX(-0.5rem); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop links: a gold line slides in under the one you point at. */
.site-nav ul { display: flex; align-items: center; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) { position: relative; display: inline-block; font-weight: 600; font-size: 1rem; text-decoration: none; padding-block: 0.4rem; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { min-height: 2.75rem; padding: 0.6em 1.25em; }
.site-nav__call { display: none; }

/* Phones: the menu opens as a full-height tray under the header. Links rise in one after another. */
@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h) + 1px); height: calc(100dvh - var(--header-h) + 1px);
    overflow-y: auto; overscroll-behavior: contain;
    padding: var(--s2) var(--gutter) var(--s5);
    border-top: 1px solid var(--line); background: var(--white);
    visibility: hidden; opacity: 0; transform: translateY(-0.75rem);
    transition: opacity 0.25s, transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.4s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li {
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(0.75rem);
    transition: opacity 0.35s, transform 0.5s var(--ease);
  }
  .site-nav.is-open li { opacity: 1; transform: none; }
  .site-nav.is-open li:nth-child(2) { transition-delay: 0.05s; }
  .site-nav.is-open li:nth-child(3) { transition-delay: 0.1s; }
  .site-nav.is-open li:nth-child(4) { transition-delay: 0.15s; }
  .site-nav.is-open li:nth-child(5) { transition-delay: 0.2s; }
  .site-nav.is-open li:nth-child(6) { transition-delay: 0.25s; }
  .site-nav a:not(.btn) {
    display: flex; justify-content: space-between; align-items: center;
    padding-block: 1rem; font: 400 1.75rem/1.2 var(--font-serif);
  }
  .site-nav a:not(.btn)::after {
    content: "\2192"; position: static; height: auto; background: none;
    font: 400 1.25rem/1 var(--font-sans); color: var(--gold);
    transform: none; transition: transform 0.25s var(--ease);
  }
  .site-nav a:not(.btn):hover::after { transform: translateX(4px); }
  .site-nav a[aria-current="page"] { font-style: italic; }
  .site-nav .site-nav__book, .site-nav .site-nav__call { border-bottom: 0; }
  .site-nav .site-nav__book { padding-top: var(--s4); }
  .site-nav .btn { width: 100%; min-height: 3.25rem; font-size: 1.0625rem; }
  .site-nav__call { display: block; padding-top: var(--s2); text-align: center; }
  .site-nav a.site-nav__phone { display: inline; padding: 0; font: 600 1rem/1.5 var(--font-sans); text-decoration: underline; text-decoration-color: var(--gold); }
  .site-nav a.site-nav__phone::after { content: none; }
}

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.photo--portrait img { aspect-ratio: 4 / 5; }
.photo figcaption { margin-top: 0.6rem; font: italic 400 var(--text-sm)/1.4 var(--font-serif); }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero h1 em { display: block; font-style: italic; }
.hero .photo img { object-position: 50% 20%; }

/* ---------- Four Foundations ----------
   Built from the bottom, in the four brand colours. Labels are 24px, so they read on every block. */
.foundations {
  display: flex; flex-direction: column-reverse; align-items: center; gap: 6px;
  margin: var(--s4) 0 0; padding: 0; list-style: none;
}
.foundations li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s2); align-items: baseline;
  width: 100%; padding: 1.25rem clamp(1rem, 0.5rem + 2vw, 2rem);
  border-radius: var(--radius);
  font: 400 var(--text-h3)/1.25 var(--font-serif);
}
.foundations li:nth-child(1) { width: 100%; background: var(--navy); color: var(--white); }
.foundations li:nth-child(2) { width: 94%; background: var(--slate); color: var(--white); }
.foundations li:nth-child(3) { width: 88%; background: var(--gold); color: var(--white); }
.foundations li:nth-child(4) { width: 82%; background: var(--gold-pale); color: var(--navy); }
.foundations__num { font-style: italic; }
.foundations-base { display: flex; align-items: center; gap: var(--s2); margin: var(--s2) 0 0; font: italic 400 var(--text-sm)/1.3 var(--font-serif); }
.foundations-base::before { content: ""; flex: 1; height: 2px; background: var(--gold); }
@media (max-width: 52rem) { .foundations li { width: 100% !important; grid-template-columns: 2.25rem minmax(0, 1fr); } }

/* ---------- Home: two small notes side by side ---------- */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) clamp(2rem, 1rem + 4vw, 5rem); }
.notes > div { padding-top: var(--s3); border-top: 2px solid var(--gold); }
.notes h2 { font-size: var(--text-h3); }
@media (max-width: 52rem) { .notes { grid-template-columns: 1fr; } }

/* ---------- Icons and contact links ---------- */
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-link { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; text-decoration: none; }
.contact-link .icon { width: 1.3rem; height: 1.3rem; color: var(--gold); }
.contact-link span { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.contact-link:hover span { text-decoration-color: currentColor; }
.navy .contact-link .icon { color: var(--gold-pale); }
.navy .contact-link span { text-decoration-color: var(--gold-pale); }
.contact-list { display: grid; justify-items: start; gap: var(--s2); margin: var(--s3) 0 0; }

/* ---------- Phones: "Book a free call" bar ---------- */
.book-bar { display: none; }
@media (max-width: 56rem) {
  .book-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 14;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line); background: var(--white);
    box-shadow: 0 -12px 30px -22px rgba(52, 62, 75, 0.6);
    transform: translateY(calc(100% + 2rem)); transition: transform 0.45s var(--ease);
  }
  @supports (backdrop-filter: blur(1px)) {
    .book-bar { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(12px); }
  }
  .book-bar.is-shown { transform: none; }
  .nav-open .book-bar { transform: translateY(calc(100% + 2rem)); }
  .book-bar .btn { flex: 1; min-height: 3rem; }
  .book-bar .btn:hover { transform: none; box-shadow: none; }
  .book-bar__call {
    display: grid; place-items: center; flex: none; width: 3rem; height: 3rem;
    border: 2px solid var(--navy); border-radius: 50%; color: var(--navy);
  }
  .book-bar__call .icon { width: 1.3rem; height: 1.3rem; }
}

/* ---------- Inner page top (navy, no photo) ---------- */
.page-top { padding-block: clamp(2rem, 1rem + 4vw, 5.5rem); }
.page-top .lead { max-width: var(--measure); }

/* ---------- Key figures (RDSP) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) clamp(2rem, 1rem + 4vw, 5rem); margin: var(--s4) 0 0; }
.facts > div { padding-top: var(--s3); border-top: 2px solid var(--gold); }
.facts dt { font: 400 var(--text-h2)/1.1 var(--font-serif); color: var(--gold); }
.facts dd { margin: 0.5rem 0 0; }
@media (max-width: 52rem) { .facts { grid-template-columns: 1fr; } }

/* ---------- Community highlights (About) ---------- */
.highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--s4) clamp(2rem, 1rem + 4vw, 5rem); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.highlights li { padding-top: var(--s3); border-top: 1px solid var(--line); }
.highlights__name { display: block; font: 400 var(--text-h3)/1.25 var(--font-serif); }
.highlights__role { display: block; margin-top: 0.3rem; }
.navy .highlights li { border-color: var(--line-on-navy); }
.navy .highlights__role { color: var(--gold-pale); }

/* ---------- Tool list (toolbox) ---------- */
/* ---------- Link rows (toolbox, links page, 404) ----------
   A gold line icon, a serif title and a line of detail, ruled like a contents page.
   The arrow is its own flex item, so the title's hover underline never runs under it. */
.link-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-row { display: flex; align-items: center; gap: var(--s3); padding: 1.25rem 0.25rem; text-decoration: none; }
.link-row::after {
  content: "\2192"; flex: none; margin-left: auto; padding-left: var(--s1);
  font: 400 1.25rem/1 var(--font-sans); color: var(--gold);
  transition: transform 0.25s var(--ease);
}
.link-row:hover::after { transform: translateX(4px); }
.link-row__icon {
  display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; background: var(--sand); color: var(--gold);
  transition: background-color 0.25s, color 0.25s, transform 0.4s var(--ease);
}
.link-row__icon .icon { width: 1.6rem; height: 1.6rem; }
.link-row:hover .link-row__icon { background: var(--navy); color: var(--gold-pale); transform: rotate(-8deg); }
.sand .link-row__icon { background: var(--white); }
.link-row__name { display: block; font: 400 var(--text-h3)/1.25 var(--font-serif); }
.link-row:hover .link-row__name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.link-row__desc { display: block; margin-top: 0.2rem; }
@media (max-width: 30rem) {
  .link-row { gap: var(--s2); align-items: flex-start; }
  .link-row__icon { width: 2.75rem; height: 2.75rem; }
  .link-row__icon .icon { width: 1.4rem; height: 1.4rem; }
  .link-row::after { align-self: center; }
}

/* Toolbox: calculators grouped by what they're about, the group name in the left column. */
.tool-group { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 var(--s4); border-top: 1px solid var(--line); }
.tool-group:last-child { border-bottom: 1px solid var(--line); }
.tool-group__label { margin: 0; padding-top: 1.85rem; font: italic 400 var(--text-h3)/1.25 var(--font-serif); color: var(--gold); }
.tool-group .link-list { border-top: 0; }
.tool-group .link-list li:last-child { border-bottom: 0; }
@media (max-width: 40rem) {
  .tool-group { grid-template-columns: 1fr; }
  .tool-group__label { padding-top: var(--s3); }
}

/* ---------- Right now / when we're done (Family Wealth Starter) ----------
   Each row pairs a worry with what replaces it. On phones the pairs stack. */
.shift { margin-top: var(--s4); }
.shift__head, .shift dl > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) clamp(2rem, 1rem + 4vw, 5rem); }
.shift__head { padding-bottom: 0.75rem; border-bottom: 2px solid var(--gold); font: italic 400 1.1875rem/1.4 var(--font-serif); }
.shift dl { margin: 0; }
.shift dl > div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.shift dd { position: relative; margin: 0; font: 400 var(--text-h3)/1.3 var(--font-serif); }
.shift dd::before { content: "\2192"; position: absolute; left: calc(-1 * clamp(2rem, 1rem + 4vw, 5rem) / 2 - 0.5em); font: 400 1.25rem/1.5 var(--font-sans); color: var(--gold); }
@media (max-width: 52rem) {
  .shift { margin-top: var(--s2); }
  .shift__head { display: none; }
  .shift dl { border-top: 2px solid var(--gold); }
  .shift dl > div { grid-template-columns: 1fr; gap: 0.4rem; }
  .shift dd { padding-left: 1.75rem; }
  .shift dd::before { left: 0; }
}

/* ---------- Signature (About) ----------
   One pen stroke, 1,066 units long. When it scrolls into view, it writes itself in. */
.signature { width: 11rem; margin-top: var(--s3); fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.signature.animate path { stroke-dasharray: 1066; stroke-dashoffset: 1066; transition: stroke-dashoffset 2.4s cubic-bezier(0.5, 0.1, 0.35, 1) 0.3s; }
.signature.animate.is-in path { stroke-dashoffset: 0; }

/* ---------- At a glance (About) ---------- */
.glance { margin: 0; border-top: 1px solid var(--line); }
.glance > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s2); padding: 1rem 0; border-bottom: 1px solid var(--line); }
.glance dt { font: italic 400 1.1875rem/1.45 var(--font-serif); }
.glance dd { margin: 0; }
@media (max-width: 30rem) { .glance > div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* ---------- Questions ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2);
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font: 400 var(--text-h3)/1.3 var(--font-serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 var(--text-h3)/1 var(--font-sans); color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { max-width: var(--measure); padding-bottom: var(--s3); }
.faq details > div p:last-child { margin-bottom: 0; }

.navy .faq, .navy .faq details { border-color: var(--line-on-navy); }
.navy .faq summary::after { color: var(--gold-pale); }

/* ---------- Contact ---------- */
.form-status { margin: var(--s2) 0 0; font-weight: 600; }
.form-status[data-state="error"] { color: #A12C21; }
.req { font-weight: 400; }

/* ---------- Quote form (white card on navy) ---------- */
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius); background: var(--white); color: var(--navy); }
.form-card h2 { font-size: var(--text-h3); }
.navy .form-card .btn { border-color: var(--navy); background: var(--navy); color: var(--white); width: 100%; }
.navy .form-card .btn:hover { background: var(--white); color: var(--navy); }
.navy .form-card a:not(.btn) { text-decoration-color: var(--gold); }
.navy .form-card :focus-visible { outline-color: var(--gold); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s3); }
@media (max-width: 26rem) { .field-row { grid-template-columns: 1fr; } }
.choices { min-width: 0; margin: 0 0 var(--s3); padding: 0; border: 0; }
.choices legend { margin-bottom: 0.35rem; padding: 0; font-weight: 600; }
.choices__row { display: flex; gap: var(--s4); min-height: 3rem; align-items: center; }
.choices label { display: inline-flex; align-items: center; gap: 0.5rem; }
.choices input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); }
.form-error { font-weight: 600; color: #A12C21; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Calculators ---------- */
[hidden] { display: none !important; }
.more-options { margin: 0 0 var(--s3); }
.more-options summary { padding: 0.5rem 0; font-weight: 600; cursor: pointer; }
.more-options[open] summary { margin-bottom: var(--s2); }
.result { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius); }
.result__label { margin: 0 0 0.25rem; color: var(--gold-pale); }
.result__big { margin: 0 0 0.5rem; font: 400 var(--text-h2)/1.15 var(--font-serif); color: var(--white); }
.result__big--text { font-size: var(--text-h3); line-height: 1.3; }
.result__rows { margin: var(--s2) 0 0; }
.result__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 0.35rem 0; }
.result__rows dd { margin: 0; font-weight: 600; text-align: right; }
.copy-form { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line-on-navy); }
.copy-form__title { margin: 0 0 var(--s2); font: 400 var(--text-h3)/1.2 var(--font-serif); }
.navy .form-status[data-state="error"] { color: var(--gold-pale); }
.navy .help { color: var(--white); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: 0.5rem 0.6rem; text-align: right; border-bottom: 1px solid var(--line-on-navy); }
.table th:first-child, .table td:first-child { text-align: left; }

/* RDSP income-range picker and plan */
.yr-row { margin-bottom: var(--s3); }
.yr-year { margin: 0 0 0.4rem; font-weight: 600; }
.yr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.yr-opt { display: block; padding: 0.6rem 0.75rem; border: 1px solid var(--slate); border-radius: var(--radius); background: var(--white); color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.yr-opt:hover { border-color: var(--navy); }
.yr-opt.active { border-color: var(--gold); background: var(--gold-pale); }
.yr-opt__range { display: block; font-weight: 600; }
.yr-opt__sub { display: block; font-size: var(--text-sm); }
.year-block { margin-top: var(--s3); }
.year-block__year { margin: 0; font: 400 var(--text-h3)/1.2 var(--font-serif); color: var(--gold-pale); }
@media (max-width: 30rem) { .yr-grid { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */
.day { margin-bottom: var(--s3); }
.day__hd { margin: 0 0 0.5rem; font-weight: 600; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.slot-btn { min-height: 3rem; padding: 0.6rem; border: 1px solid var(--slate); border-radius: var(--radius); background: var(--white); color: var(--navy); font: inherit; cursor: pointer; }
.slot-btn:hover { border-color: var(--navy); }
.slot-btn[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-pale); font-weight: 600; }
.skeleton { height: 7rem; border-radius: var(--radius); background: rgba(52, 62, 75, 0.06); }
#availability.collapsed #slots { display: none; }
.selected-card { margin-bottom: var(--s3); padding: var(--s3); border-left: 3px solid var(--gold); }
.selected-card__time { margin: 0 0 var(--s2); font: 400 var(--text-h3)/1.3 var(--font-serif); }
.notice { margin-top: var(--s3); padding-left: var(--s2); border-left: 3px solid var(--gold); font-weight: 600; }
.notice--error { border-color: #A12C21; color: #A12C21; }
.booked { position: fixed; inset: 0; z-index: 20; display: none; }
.booked[aria-hidden="false"] { display: block; }
.booked__backdrop { position: absolute; inset: 0; background: rgba(38, 46, 56, 0.5); }
.booked__dialog { position: relative; max-width: min(30rem, 92vw); margin: 12vh auto 0; padding: var(--s4); border-radius: var(--radius); background: var(--white); color: var(--navy); }
.booked__close { position: absolute; top: 0.5rem; right: 0.75rem; border: 0; background: transparent; color: var(--navy); font-size: 1.75rem; line-height: 1; cursor: pointer; }
@media (max-width: 40rem) { .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Long text (privacy, disclosures) ---------- */
.legal { max-width: var(--measure); }
.legal h2 { margin-top: var(--s4); font-size: var(--text-h3); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }

/* ---------- Lists on navy ---------- */
.navy .checklist li::before {
  content: ""; position: absolute; left: 0.3rem; top: 0.3rem;
  width: 0.55rem; height: 1rem;
  border: solid var(--gold); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ---------- Checklist ---------- */
.checklist { margin: 0 0 var(--s3); padding: 0; list-style: none; }
.checklist li { position: relative; padding: 0 0 0 2.2rem; }
.checklist li + li { margin-top: var(--s3); }
.checklist li::before {
  content: ""; position: absolute; left: 0.35rem; top: 1.25rem;
  width: 0.65rem; height: 1.15rem;
  border: solid var(--gold); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s3); }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.field .help { margin: 0.35rem 0 0; font-size: var(--text-sm); }
.field .error { margin: 0.35rem 0 0; font-size: var(--text-sm); font-weight: 600; color: #A12C21; }
.input, .select, .textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--slate); border-radius: var(--radius);
  background: var(--white); color: var(--navy); font: inherit; font-size: 1.0625rem;
}
.textarea { min-height: 5.5rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--gold-pale); outline-offset: 0; border-color: var(--navy); }
.input[aria-invalid="true"] { border-color: #A12C21; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; accent-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--s5) var(--s4); background: var(--navy); color: var(--white); font-size: 1rem; border-top: 1px solid var(--line-on-navy); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold-pale); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.site-footer h2 { margin: 0 0 var(--s2); font: 400 var(--text-base)/1.3 var(--font-serif); color: var(--gold-pale); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .brand { margin-bottom: var(--s2); color: var(--gold-pale); }  /* light logo on navy */
.site-footer address { font-style: normal; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line-on-navy); font-size: var(--text-sm); }
@media (max-width: 56rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
/* site.js adds .animate to the four steps and the signature, then .is-in when they scroll into view.
   Without JavaScript both simply show. */
/* The four steps build from the ground up, one block at a time. */
.foundations.animate li { opacity: 0; transform: translateY(1.25rem); transition: opacity 0.5s, transform 0.7s var(--ease); }
.foundations.animate.is-in li { opacity: 1; transform: none; }
.foundations.animate.is-in li:nth-child(2) { transition-delay: 0.15s; }
.foundations.animate.is-in li:nth-child(3) { transition-delay: 0.3s; }
.foundations.animate.is-in li:nth-child(4) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
