/* Alpha site builder, "home" template. Colours come from each site's theme (see build.py). */
:root {
  --navy: #0F2A47;
  --day: #F6FAFD;
  --sky: #CFE6F7;
  --glow: #FBEBC8;
  --sun: #F5B82E;
  --slate: #48607A;
  --white: #FFFFFF;
  --line: color-mix(in srgb, var(--navy) 16%, transparent);
  --wide: 118%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--day);
  color: var(--navy);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

h1, h2, .bignum, .step-num, .lockup-short {
  font-stretch: var(--wide);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .75rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--day) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.lockup { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.lockup svg { flex: none; }
.lockup-text { display: grid; line-height: 1; }
.lockup-short { font-size: 1.375rem; text-transform: none; }
.lockup-rest { font-size: .8125rem; font-weight: 600; letter-spacing: .01em; margin-top: .2rem; color: var(--slate); }
.lockup-light { color: var(--white); }
.lockup-light .lockup-rest { color: var(--sky); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: color-mix(in srgb, var(--sun) 86%, var(--navy)); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: color-mix(in srgb, var(--navy) 86%, var(--white)); }
.header-call-label { margin-right: .3em; }
.textlink { font-weight: 700; text-underline-offset: .25em; text-decoration-thickness: 2px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 45%, var(--day)) 48%, var(--glow) 100%); overflow: hidden; }
.hero-copy { padding-top: clamp(3rem, 8vw, 6.5rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero h1 { font-size: clamp(2.25rem, 6.2vw, 4.75rem); max-width: 17ch; text-wrap: balance; }
.lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: 56ch; color: color-mix(in srgb, var(--navy) 88%, var(--white)); }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.skyline { line-height: 0; }
.skyline-svg { display: block; width: 100%; height: clamp(140px, 16.7vw, 260px); }
.sun { transform: translateY(46px); animation: rise 1.8s cubic-bezier(.2, .7, .2, 1) .25s forwards; }
@keyframes rise { to { transform: translateY(0); } }

/* About: sits directly under the rooftops */
.about { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 7vw, 5.5rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.statement { font-size: clamp(1.375rem, 2.5vw, 2rem); line-height: 1.35; font-weight: 500; max-width: 34ch; text-wrap: pretty; }
.office { border-left: 3px solid var(--sun); padding-left: 1.5rem; display: grid; gap: .9rem; }
.office h2 { font-size: 1.0625rem; font-stretch: 100%; letter-spacing: 0; font-weight: 700; color: var(--sky); line-height: 1.3; }
.office-line a { font-size: 1.5rem; font-weight: 800; font-stretch: var(--wide); text-decoration: none; }
.office-line a:hover { text-decoration: underline; }
.office-line span { color: var(--sky); font-size: .9375rem; }

/* How a visit works: a real sequence, so it is numbered */
.how { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.steps { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 2.5rem); border-top: 3px solid var(--navy); }
.step { padding-top: 1.5rem; display: grid; gap: .6rem; align-content: start; position: relative; }
.step::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--sun); border: 3px solid var(--navy); }
.step-num { font-size: clamp(3rem, 6vw, 4.5rem); color: var(--navy); }
.step p { color: var(--slate); max-width: 34ch; }

/* Request form (only on sites with a form endpoint) */
.request { background: var(--white); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); }
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.request-intro p { margin-top: 1rem; color: var(--slate); max-width: 38ch; }
.lead-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; }
.field label { font-weight: 700; font-size: .9375rem; }
.field input { font: inherit; color: var(--navy); background: var(--day); border: 1.5px solid color-mix(in srgb, var(--navy) 30%, transparent); border-radius: 10px; padding: .75rem .9rem; width: 100%; }
.field input:focus-visible { outline-offset: 0; border-color: var(--navy); }
.field-error { color: #A4281B; font-size: .875rem; font-weight: 600; min-height: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .875rem; line-height: 1.5; color: var(--slate); }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--navy); }
.form-status { font-weight: 600; }
.form-status[data-kind="error"] { color: #A4281B; }
.form-done { border-left: 3px solid var(--sun); padding-left: 1.5rem; display: grid; gap: .75rem; }

/* Services */
.services { background: var(--white); padding-block: clamp(3.5rem, 8vw, 6rem); }
.service-list { margin-top: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.service-list li { border-top: 1px solid var(--line); padding-top: 1.25rem; display: grid; gap: .5rem; align-content: start; }
.service-list p { color: var(--slate); max-width: 36ch; }

/* Questions */
.faq { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid h2 { position: sticky; top: 6rem; max-width: 12ch; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-block: 1.15rem; font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--slate); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding-bottom: 1.35rem; color: var(--slate); max-width: 62ch; }

/* Reschedule band */
.reschedule { background: var(--sun); padding-block: clamp(3rem, 7vw, 5.5rem); }
.reschedule p { margin-top: .9rem; max-width: 46ch; font-weight: 500; }
.bignum { display: inline-block; margin-top: 1.25rem; font-size: clamp(2.25rem, 7.4vw, 5.25rem); text-decoration: none; }
.bignum:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.footer-disclosure { margin-top: 1.25rem; max-width: 44ch; color: var(--sky); }
.footer-office strong { display: block; margin-bottom: .4rem; color: var(--sky); font-weight: 700; }
.footer-office a { font-weight: 700; }
.footer-nav { display: grid; gap: .55rem; align-content: start; }
.footer-nav a { text-underline-offset: .2em; }
.footer-base { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--white) 16%, transparent); color: var(--sky); }

/* Legal pages */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal-wrap { max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.legal-date { margin-top: .75rem; color: var(--slate); }
.legal h2 { font-size: 1.375rem; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; margin-top: 2.5rem; }
.legal p, .legal ul { margin-top: .85rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }

@media (max-width: 54rem) {
  .about-grid, .faq-grid, .request-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid h2 { position: static; max-width: none; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 3px solid var(--navy); gap: 2.25rem; padding-left: 1.5rem; }
  .step { padding-top: 0; }
  .step::before { top: .4rem; left: calc(-1.5rem - 9px); }
  .service-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 34rem) {
  .header-call-label { display: none; }
  .lockup-short { font-size: 1.1875rem; }
  .lockup-rest { font-size: .75rem; }
  .btn { padding-inline: 1.1rem; }
  .actions .btn { width: 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun { animation: none; transform: none; }
}
