/* Spruiell Property Co. site styles */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Color tokens ---------- */
:root {
  color-scheme: light;
  --bg: #FBF9F4;          /* ivory */
  --surface: #FFFFFF;
  --ink: #0B1A2E;         /* deep navy */
  --ink-2: #34425A;       /* secondary text */
  --line: #DCD5C7;
  --brass: #8A6326;       /* accent: logo "Co." and timeline checks only */
  --btn-bg: #0B1A2E;
  --btn-fg: #FBF9F4;
  --btn-bg-hover: #1D3354;
  --band: #0B1A2E;        /* contact band */
  --band-ink: #F6F2EA;
  --band-ink-2: #BAC4D3;
  --field-bg: #FFFFFF;
  --field-line: #8A93A3;
  --error: #A3261C;
  --band-error: #FFB4A8;
  --ok: #1E6B45;
  --focus: #1F5FAD;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #08131F;
    --surface: #0F1E30;
    --ink: #F3EFE6;
    --ink-2: #B7C1CF;
    --line: #26374F;
    --brass: #D3AE70;
    --btn-bg: #F3EFE6;
    --btn-fg: #0B1A2E;
    --btn-bg-hover: #FFFFFF;
    --band: #0F1E30;
    --band-ink: #F3EFE6;
    --band-ink-2: #B7C1CF;
    --field-bg: #0A1624;
    --field-line: #6B7A90;
    --error: #FF9C8F;
    --band-error: #FF9C8F;
    --ok: #7FD1A5;
    --focus: #8CC0F0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08131F; --surface: #0F1E30; --ink: #F3EFE6; --ink-2: #B7C1CF; --line: #26374F;
  --brass: #D3AE70; --btn-bg: #F3EFE6; --btn-fg: #0B1A2E; --btn-bg-hover: #FFFFFF;
  --band: #0F1E30; --band-ink: #F3EFE6; --band-ink-2: #B7C1CF; --field-bg: #0A1624;
  --field-line: #6B7A90; --error: #FF9C8F; --band-error: #FF9C8F; --ok: #7FD1A5; --focus: #8CC0F0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.62 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; letter-spacing: -.018em; }
h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1.01; }
h2 { font-size: clamp(32px, 4.3vw, 52px); line-height: 1.06; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg);
  padding: 12px 16px; border-radius: 2px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 0; border-radius: 2px; cursor: pointer;
  font: 600 16px/1.2 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .005em;
  text-decoration: none; transition: background-color .18s ease;
}
.btn:hover { background: var(--btn-bg-hover); text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .35em;
}
.textlink:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 27px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 500; font-size: 15.5px; text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { text-decoration: underline; }
.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; margin-right: -8px; padding: 0 8px;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  font: 600 15px "Hanken Grotesk", sans-serif;
}
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; }
  .brand img { height: 23px; }
}
@media (max-width: 360px) { .brand img { height: 20px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.08fr .92fr; grid-template-rows: auto auto auto;
  grid-template-areas: "head photo" "body photo" "stats photo"; column-gap: clamp(32px, 5vw, 72px);
}
.hero-head { grid-area: head; align-self: end; }
.hero-body { grid-area: body; align-self: start; }
.hero .stats { grid-area: stats; align-self: start; }
.hero-photo { grid-area: photo; align-self: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 44ch; margin: 26px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(28px, 4vw, 56px);
  margin: 44px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line);
}
.stats div { margin: 0; }
.stats dt { font-family: "Newsreader", Georgia, serif; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.stats dd { margin: 10px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); max-width: 21ch; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; background: #CFD8DC; }
@media (max-width: 880px) {
  /* Phones/tablets: headline, paragraph, button, then the coast photo and the numbers */
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "body" "photo" "stats"; }
  .hero-photo { margin-top: 32px; }
  .hero-photo img { aspect-ratio: 4 / 3; border-radius: 480px 480px 0 0; }
  .hero .lede { margin: 20px 0 26px; }
}
@media (max-width: 560px) {
  .hero .actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; gap: 0; margin-top: 32px; padding-top: 0; }
  .stats div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; padding-bottom: 0; }
  .stats dt { font-size: 30px; }
  .stats dd { margin: 4px 0 0; max-width: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 30ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { font-size: 18px; color: var(--ink-2); margin: 18px 0 0; max-width: 52ch; }
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .section-head p { font-size: 17px; margin-top: 14px; }
}

/* ---------- Turnover day (signature) ---------- */
.turnover .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.turnover .section-head { margin-bottom: 0; }
.sheet {
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 40px);
  box-shadow: 0 28px 60px -36px rgba(11, 26, 46, .45);
}
.sheet-top {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px;
  padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.sheet-top h3 { font-size: 22px; }
.sheet-top p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.sheet ol { list-style: none; margin: 0; padding: 0; }
.sheet li {
  display: grid; grid-template-columns: 64px 24px 1fr; gap: 12px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px dotted var(--line);
}
.sheet li:last-child { border-bottom: 0; padding-bottom: 4px; }
.sheet time { font-family: "Newsreader", Georgia, serif; font-size: 20px; font-variant-numeric: tabular-nums; }
.sheet li p { margin: 0; font-size: 16px; line-height: 1.5; }
.check {
  position: relative; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink-2); transition: background-color .3s ease, border-color .3s ease;
}
.check svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.check path { fill: none; stroke: var(--surface); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .35s ease .12s; }
.sheet li.done .check { background: var(--brass); border-color: var(--brass); }
.sheet li.done .check path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .check, .check path { transition: none; }
}
@media (max-width: 880px) { .turnover .wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sheet li { grid-template-columns: 52px 22px 1fr; gap: 10px; } .sheet time { font-size: 18px; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); margin: 0; }
.services-grid div { padding: 26px 0 34px; border-top: 1px solid var(--ink); }
.services-grid dt { font-family: "Newsreader", Georgia, serif; font-size: 25px; line-height: 1.2; letter-spacing: -.01em; }
.services-grid dd { margin: 12px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 40ch; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid div { padding: 20px 0 24px; }
  .services-grid div:last-child { padding-bottom: 0; }
}

/* ---------- Terms ---------- */
.terms-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.section-head-tight { margin-bottom: 32px; }
.phone-line { margin: 8px 0 0; }
.terms-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.terms-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.terms-note { margin: 26px 0 30px; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 760px) { .terms-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-grid .copy p { font-size: 18px; max-width: 58ch; }
.about-grid .areas { color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #CFD8DC; }
.about-photo figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid .areas { margin-bottom: 0; }
  .about-photo { max-width: 460px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-family: "Newsreader", Georgia, serif; font-size: clamp(20px, 2vw, 24px); line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
}
.faq-list details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat; }
.faq-list details p { margin: 0 0 24px; color: var(--ink-2); max-width: 66ch; font-size: 17px; }

/* ---------- Contact band ---------- */
.contact { background: var(--band); color: var(--band-ink); padding: clamp(72px, 9vw, 128px) 0; }
.contact :focus-visible { outline-color: #9CC8F2; }
.contact .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact h2 { max-width: 16ch; }
.contact .intro p { color: var(--band-ink-2); font-size: 18px; max-width: 42ch; margin: 22px 0 0; }
.contact .direct { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); color: var(--band-ink-2); font-size: 16px; }
.contact .direct a { color: var(--band-ink); font-weight: 600; font-size: 19px; display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form-card {
  background: var(--bg); color: var(--ink);
  padding: clamp(24px, 3.4vw, 44px); border-radius: 2px;
}
.form-card h3 { font-size: 28px; margin-bottom: 6px; }
.form-card .req-note { font-size: 14.5px; color: var(--ink-2); margin: 0 0 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 16px/1.4 "Hanken Grotesk", system-ui, sans-serif; color: var(--ink);
  background: var(--field-bg); border: 1.5px solid var(--field-line); border-radius: 2px;
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .hint { font-size: 14px; color: var(--ink-2); }
.field .error { font-size: 14.5px; font-weight: 600; color: var(--error); }
.field .error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { grid-column: 1 / -1; min-height: 65px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 4px; }
.form-actions .btn { width: 100%; }
.form-status { font-weight: 600; margin: 0; }
.form-status.is-error { color: var(--error); }
.form-status:empty { display: none; }
.form-privacy { font-size: 14px; color: var(--ink-2); margin: 0; }
.form-done h3 { margin-bottom: 12px; }
.form-done p { color: var(--ink-2); margin: 0; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 44px; font-size: 15px; color: var(--ink-2); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.site-footer .top img { height: 25px; width: auto; margin-bottom: 12px; }
.site-footer .top p { margin: 0; max-width: 40ch; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.site-footer .fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 22px; font-size: 13.5px; }
.site-footer .fine p { margin: 0; }

/* ---------- Simple pages (legal, 404, thanks) ---------- */
.page { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 18px; }
.page h2 { font-size: clamp(26px, 3vw, 32px); margin: 44px 0 14px; }
.page p, .page li { font-size: 17.5px; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .5em; }
.draft-note { border: 1.5px solid var(--ink); padding: 16px 20px; margin: 0 0 36px; font-size: 16px; }
.draft-note strong { display: block; margin-bottom: 4px; }
.center-page { min-height: 62vh; display: flex; align-items: center; }
.center-page .lede { font-size: 19px; color: var(--ink-2); max-width: 48ch; margin: 0 0 30px; }
.center-page .actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }

/* ---------- Phone spacing overrides (keep last) ---------- */
@media (max-width: 600px) {
  .section-head, .section-head-tight { margin-bottom: 26px; }
  .contact { padding: 56px 0; }
  .contact .wrap { gap: 32px; }
  .contact .direct { margin-top: 26px; }
}
