/* California Valuations — one stylesheet for the whole site.
   To change the look, edit the values in :root only. */

:root {
  /* Colours, taken from the logo */
  --navy: #13294b;        /* logo navy: headings, header text, dark bands */
  --navy-deep: #0c1c35;   /* footer */
  --gold: #c9a247;        /* logo gold: buttons (navy text on it) */
  --gold-deep: #85651c;   /* gold for small text and lines on light backgrounds */
  --sand: #f1e8d4;        /* the logo's hills: soft background bands */
  --paper: #f5f7fa;       /* cool off-white page background */
  --white: #ffffff;
  --ink: #1b2433;         /* body text */
  --ink-soft: #4a5872;    /* secondary text on light backgrounds */
  --on-navy: #f5f7fa;     /* text on navy */
  --on-navy-soft: #c3cee2;/* secondary text on navy */
  --line: #d9dfe8;        /* thin dividers */
  --line-navy: #2b4268;   /* dividers on navy */

  /* Fonts */
  --font-display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type scale, 1.25 ratio from 17px */
  --fs-small: 0.875rem;
  --fs-0: 1.0625rem;
  --fs-1: 1.328rem;
  --fs-2: 1.66rem;
  --fs-3: 2.075rem;
  --fs-4: 2.594rem;
  --fs-5: 3.242rem;
  --fs-h1: clamp(var(--fs-3), 5.2vw + 0.6rem, var(--fs-5));
  --fs-h2: clamp(var(--fs-2), 3vw + 0.6rem, var(--fs-4));

  /* Spacing scale */
  --s-4: 4px;  --s-8: 8px;  --s-12: 12px; --s-16: 16px;
  --s-20: 20px; --s-24: 24px; --s-32: 32px; --s-40: 40px;
  --s-48: 48px; --s-56: 56px; --s-64: 64px; --s-96: 96px;

  --gutter: var(--s-20);
  --section: var(--s-56);
  --max: 72rem;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(12, 28, 53, 0.06), 0 12px 32px rgba(12, 28, 53, 0.10);
  --callbar-h: 72px;
  --shadow-bar: 0 -4px 16px rgba(12, 28, 53, 0.08);
  /* [TODO] notes: yellow so the owner spots them */
  --todo-bg: #fff3b0;
  --todo-ink: #5a4400;
  --todo-line: #b38f00;
}

@media (min-width: 768px) {
  :root { --gutter: var(--s-32); --section: var(--s-96); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-0);
  line-height: 1.6;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 var(--s-16);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-1); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-16); max-width: 65ch; }
a { color: var(--navy); text-underline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
.nowrap { white-space: nowrap; }
.lead { font-size: var(--fs-1); line-height: 1.5; color: var(--ink-soft); }
.todo {
  display: inline-block;
  background: var(--todo-bg);
  color: var(--todo-ink);
  border: 1px dashed var(--todo-line);
  padding: var(--s-4) var(--s-8);
  font-size: var(--fs-small);
  font-family: var(--font-body);
  letter-spacing: 0;
  border-radius: var(--radius);
}

.skip {
  position: absolute; left: var(--s-8); top: -100px;
  background: var(--navy); color: var(--on-navy);
  padding: var(--s-12) var(--s-16); z-index: 100; border-radius: var(--radius);
}
.skip:focus { top: var(--s-8); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Sections ---------- */
.block { padding-block: var(--section); }
.block--white { background: var(--white); }
.block--sand { background: var(--sand); }
.block--navy { background: var(--navy); color: var(--on-navy); }
.block--navy h2, .block--navy h3 { color: var(--on-navy); }
.block--navy p { color: var(--on-navy-soft); }
.block--navy a { color: var(--on-navy); }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; width: 100%;
  padding: var(--s-12) var(--s-24);
  border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-0);
  text-decoration: none; white-space: nowrap; gap: 0.3em;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.block--navy .btn--line { color: var(--on-navy); border-color: var(--on-navy); }
.btns { display: flex; flex-direction: column; gap: var(--s-12); margin-top: var(--s-24); }
@media (min-width: 640px) {
  .btns { flex-direction: row; flex-wrap: wrap; }
  .btn { width: auto; }
}
@media (hover: hover) {
  .btn--gold:hover { background: var(--navy); color: var(--on-navy); }
  .btn--line:hover { background: var(--navy); color: var(--on-navy); }
  .block--navy .btn--line:hover { background: var(--on-navy); color: var(--navy); }
  a:hover { text-decoration-thickness: 2px; }
}

/* ---------- Header ---------- */
header.site { background: var(--white); border-bottom: 1px solid var(--line); }
.header-in {
  display: flex; flex-direction: column; align-items: center;
  padding-top: var(--s-8);
}
.logo img { height: 48px; width: auto; }
nav.main { width: 100%; }
nav.main ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
nav.main a {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px;
  font-weight: 600; font-size: 0.9375rem;
  color: var(--navy); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
nav.main a[aria-current="page"] { border-bottom-color: var(--gold); }
.header-call { display: none; }

@media (min-width: 768px) {
  .header-in { flex-direction: row; justify-content: space-between; gap: var(--s-24); padding-block: var(--s-12); }
  .logo img { height: 64px; }
  nav.main { width: auto; margin-left: auto; }
  nav.main ul { display: flex; gap: var(--s-24); }
  nav.main a { padding-inline: var(--s-4); }
  .header-call { display: flex; width: auto; min-height: 44px; padding-inline: var(--s-16); }
}
@media (hover: hover) { nav.main a:hover { border-bottom-color: var(--gold-deep); } }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-40) var(--section); background: var(--paper); }
.hero-grid { display: grid; gap: var(--s-40); align-items: center; }
.hero .facts {
  list-style: none; padding: 0; margin: var(--s-24) 0 0;
  display: grid; gap: var(--s-8);
  font-weight: 600; color: var(--navy);
}
.hero .facts li { padding-left: var(--s-24); position: relative; }
.hero .facts li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 12px; height: 2px; background: var(--gold-deep);
}
@media (min-width: 900px) {
  .hero { padding-block: var(--s-64) var(--s-96); }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-64); }
}

/* The sample cash offer summary sheet */
.sheet {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--navy);
  box-shadow: var(--shadow);
  padding: var(--s-24) var(--s-20) var(--s-20);
  max-width: 30rem; width: 100%; justify-self: center;
  font-size: 0.9375rem;
  animation: rise 0.6s ease-out both;
}
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-12);
  border-bottom: 2px solid var(--navy); padding-bottom: var(--s-12); margin-bottom: var(--s-8);
}
.sheet-title { font-family: var(--font-display); font-size: var(--fs-1); color: var(--navy); line-height: 1.15; margin: 0; }
.sheet-sub { color: var(--ink-soft); font-size: var(--fs-small); margin: var(--s-4) 0 0; }
.stamp {
  flex: none;
  border: 2px solid var(--gold-deep); color: var(--gold-deep);
  font-weight: 600; font-size: var(--fs-small); letter-spacing: 0.04em;
  padding: var(--s-4) var(--s-8); border-radius: var(--radius);
  transform: rotate(-6deg);
}
.sheet dl { margin: 0; }
.sheet .row {
  display: flex; justify-content: space-between; gap: var(--s-16);
  padding-block: var(--s-12); border-bottom: 1px dotted var(--line);
}
.sheet dt { color: var(--ink-soft); }
.sheet dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.sheet .row--offer { border-bottom: 0; padding-top: var(--s-16); }
.sheet .row--offer dt { color: var(--navy); font-weight: 600; }
.sheet .blank { display: inline-block; min-width: 7rem; border-bottom: 2px solid var(--gold); color: var(--ink-soft); font-weight: 400; font-style: italic; }
.sheet-foot { margin: var(--s-12) 0 0; font-size: var(--fs-small); color: var(--ink-soft); }
.sheet-todo { margin-top: var(--s-12); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: var(--s-32) 0 0; display: grid; gap: var(--s-32); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: var(--s-16); align-items: start; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display); font-size: var(--fs-3); line-height: 1;
  color: var(--gold-deep); min-width: 1.4ch;
}
.steps h3 { margin-bottom: var(--s-8); }
.steps p { margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-40); } }

/* ---------- Split layout (heading left, content right) ---------- */
.split { display: grid; gap: var(--s-24); }
@media (min-width: 900px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-64); } }

.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { padding-block: var(--s-24); border-top: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list p { margin-bottom: var(--s-8); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Experience band ---------- */
.big-number {
  font-family: var(--font-display); font-size: clamp(var(--fs-4), 8vw, 5rem);
  color: var(--gold); line-height: 1; margin: 0 0 var(--s-12);
}

/* ---------- Areas ---------- */
.areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.areas li {
  font-family: var(--font-display); font-size: var(--fs-2); color: var(--navy);
  padding-block: var(--s-16); border-bottom: 1px solid var(--line);
}
.areas li:first-child { border-top: 1px solid var(--line); }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding-block: var(--s-40) var(--s-48); background: var(--white); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .page-intro { padding-block: var(--s-64); } }

/* ---------- Services page ---------- */
.service { scroll-margin-top: var(--s-24); }
.checks { padding-left: var(--s-20); margin: 0 0 var(--s-16); }
.checks li { margin-bottom: var(--s-8); }
.note { border-left: 3px solid var(--gold-deep); padding-left: var(--s-16); color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-16);
  min-height: 56px; padding-block: var(--s-12);
  font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--fs-1); color: var(--gold-deep); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: var(--s-16); margin: 0; }

/* ---------- About: team and Harry's words ---------- */
.team { list-style: none; padding: 0; margin: 0; }
.team li { padding-block: var(--s-20); border-top: 1px solid var(--line); }
.team li:last-child { border-bottom: 1px solid var(--line); }
.team h3 { margin-bottom: var(--s-4); }
.team-role { color: var(--gold-deep); font-weight: 600; margin-bottom: var(--s-8); }
.team li p:last-child { margin-bottom: 0; }
.quote { margin: 0; border-left: 3px solid var(--gold); padding-left: var(--s-20); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: var(--fs-1); line-height: 1.5; color: var(--navy); }
.quote figcaption { font-weight: 600; color: var(--ink-soft); }
@media (min-width: 768px) { .quote { padding-left: var(--s-32); } }

/* ---------- Contact ---------- */
.contact-ways { list-style: none; padding: 0; margin: 0 0 var(--s-24); display: grid; gap: var(--s-12); }
.contact-ways .label { display: block; font-size: var(--fs-small); color: var(--ink-soft); }
.contact-ways a { font-weight: 600; font-size: var(--fs-1); max-width: 100%; overflow-wrap: anywhere; }
.contact-ways a[href^="mailto"] { font-size: var(--fs-0); }
.contact-ways a, .contact-ways .item { display: inline-flex; flex-direction: column; min-height: 44px; justify-content: center; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-24) var(--s-20); }
@media (min-width: 768px) { .form { padding: var(--s-32); } }
.field { margin-bottom: var(--s-20); }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: var(--s-8); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-0); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--ink-soft); border-radius: var(--radius);
  padding: var(--s-12); min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-msg { font-weight: 600; color: var(--navy); background: var(--sand); padding: var(--s-12) var(--s-16); border-radius: var(--radius); }
.form-msg[hidden] { display: none; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-deep); color: var(--on-navy-soft); padding-block: var(--s-48) var(--s-32); font-size: 0.9375rem; }
footer.site a { color: var(--on-navy); }
.foot-grid { display: grid; gap: var(--s-32); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-name { font-family: var(--font-display); color: var(--on-navy); font-size: var(--fs-1); margin: 0 0 var(--s-4); }
.foot-h { color: var(--on-navy); font-weight: 600; margin: 0 0 var(--s-8); }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-legal { border-top: 1px solid var(--line-navy); margin-top: var(--s-32); padding-top: var(--s-20); font-size: var(--fs-small); }

/* ---------- Call bar (phones only) ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8);
  padding: var(--s-8) var(--s-12) calc(var(--s-8) + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-bar);
}
.callbar .btn { min-height: 52px; padding-inline: var(--s-8); }
@media (min-width: 768px) { .callbar { display: none; } }
