/* home.css - the homepage stylesheet. Hand-written, no build step.
 *
 * Lifted from the approved design (docs/marketing/quote-page-redesign/mockup-a.html,
 * iteration 3, owner 2026-09-02) and adapted for shipping: the fonts are self-hosted
 * from /fonts/ (the site rule is no CDN), the photo and review placeholders are gone,
 * and the rules the machinery needs - the generated price table, the footer directory,
 * the failed-submit state - are added at the end.
 *
 * Only index.html links this sheet. It does not link styles.css: nothing on the page
 * uses a Tailwind class, and the frozen sheet has no source to add to.
 *
 * The quote stepper's rules are in quote-stepper.css since 2026-09-02, linked beside this one -
 * and so are the two @font-face rules per family, since that night. Bricolage Grotesque and
 * Instrument Sans are declared once, in the sheet every stepper page links, and this page takes
 * them from there. Declaring them here as well would be a second copy that a later edit to one
 * of them could silently leave behind (tests/stepper-fonts.test.js refuses a face in this file).
 */

/* Tokens. Light rendering first: the off-white page with navy stages. */
:root {
  --bg: #EEF0F4;
  --bg-alt: #E6E9EF;
  --ink: #0B1B33;
  --ink-soft: #4A5568;
  --rule: rgba(11, 27, 51, 0.16);
  --rule-strong: rgba(11, 27, 51, 0.4);
  --accent: #1A5DFC;
  --accent-hover: #124BD1;
  --on-accent: #FFFFFF;
  --danger: #B42318;

  --deep: #0B1B33;
  --deep-2: #071426;
  --on-deep: #EEF0F4;
  --on-deep-soft: #A9B6CC;
  --rule-deep: rgba(238, 240, 244, 0.16);
  --rule-deep-strong: rgba(238, 240, 244, 0.4);
  --accent-deep: #4C86FF;
  --accent-deep-hover: #6C9BFF;

  --field-bg: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 34rem;
  color-scheme: light;
}

/* Dark rendering: the whole page becomes the navy stage. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1B33;
    --bg-alt: #0E2140;
    --ink: #EEF0F4;
    --ink-soft: #A9B6CC;
    --rule: rgba(238, 240, 244, 0.16);
    --rule-strong: rgba(238, 240, 244, 0.4);
    --accent: #4C86FF;
    --accent-hover: #6C9BFF;
    --on-accent: #071426;
    --danger: #FF8A80;
    --deep: #071426;
    --deep-2: #040E1C;
    --field-bg: #10254A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1B33;
  --bg-alt: #0E2140;
  --ink: #EEF0F4;
  --ink-soft: #A9B6CC;
  --rule: rgba(238, 240, 244, 0.16);
  --rule-strong: rgba(238, 240, 244, 0.4);
  --accent: #4C86FF;
  --accent-hover: #6C9BFF;
  --on-accent: #071426;
  --danger: #FF8A80;
  --deep: #071426;
  --deep-2: #040E1C;
  --field-bg: #10254A;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.deep :focus-visible { outline-color: var(--accent-deep); }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Skip link: off-screen until focused, then a solid pill at the top left. */
.skip { position: absolute; top: -100px; left: 1rem; z-index: 50; padding: 0.5rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* The two surfaces */
.deep { background: var(--deep); color: var(--on-deep); }
.deep .soft { color: var(--on-deep-soft); }
.soft { color: var(--ink-soft); }

/* Eyebrow: small caps label that names the section, so headings can stay short */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.deep .eyebrow { color: var(--accent-deep); }

/* Buttons: one solid, one outlined, the same shape */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.375rem;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-solid:disabled { opacity: 0.6; cursor: default; }
.deep .btn-solid { background: var(--accent-deep); border-color: var(--accent-deep); color: #071426; }
.deep .btn-solid:hover { background: var(--accent-deep-hover); border-color: var(--accent-deep-hover); }
.btn-line { background: transparent; color: inherit; border-color: var(--rule-strong); }
.btn-line:hover { border-color: currentColor; }
.deep .btn-line { border-color: var(--rule-deep-strong); }
.btn-sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.9375rem; }

.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.deep .link { color: var(--accent-deep); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule-deep); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent-deep); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--on-deep-soft); }
.nav a:hover { color: var(--on-deep); }
.nav .tel { color: var(--on-deep); font-weight: 600; white-space: nowrap; }
.nav .hide-sm { display: none; }
@media (min-width: 760px) { .nav .hide-sm { display: inline; } }
@media (max-width: 759px) { .nav { gap: 1.125rem; } }
/* Phone widths: brand, number and button do not share one row below 480, so the button
   gives way to the number there - a tap on the number is a call, which is what a phone
   visitor wants, and the quote is one thumb-scroll away in the hero anyway. */
@media (max-width: 479px) {
  .nav { gap: 0.875rem; }
  .brand { font-size: 1.1rem; }
  .nav .btn { display: none; }
  .nav .tel { min-height: 2.75rem; display: inline-flex; align-items: center; }
}
/* Desktop only: the header stays put. Phones keep the full viewport for content. */
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; z-index: 20; background: var(--deep); }
  html { scroll-padding-top: 4.5rem; }
}

/* Hero: headline and lede left. The photo slot on the right is empty and hidden until
   the owner's photo lands; the grid below is ready for it. */
.hero .wrap {
  display: grid; gap: 2rem;
  padding-top: 2.5rem; padding-bottom: 3.5rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  font-weight: 600;
  line-height: 0.98;
  max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--accent-deep); }
.hero .lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: var(--measure); }
.hero .hero-date { margin-top: 0.75rem; font-size: 0.9375rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.ticks li { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.ticks svg { width: 1.125rem; height: 1.125rem; color: var(--accent-deep); flex-shrink: 0; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.proof-line {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-deep);
  display: flex; flex-wrap: wrap; gap: 0.5rem 0; font-size: 0.9375rem;
}
.proof-line a { text-decoration: none; }
.proof-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* trailing separator, so a wrapped line never starts with one */
.proof-line > *:not(:last-child)::after { content: ""; display: inline-block; width: 1px; height: 0.9em; background: var(--rule-deep-strong); margin: 0 0.9rem -0.1em; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-photo { aspect-ratio: 4 / 3; }
@media (max-width: 559px) {
  .hero-actions .btn { width: 100%; }
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto;
    padding-top: 5rem; padding-bottom: 0; gap: 0 3rem;
  }
  .hero-head { grid-column: 1; grid-row: 1; padding-bottom: 2.5rem; }
  .hero-more { grid-column: 1; grid-row: 2; padding-bottom: 4rem; }
  .hero-photo { grid-column: 2; grid-row: 1 / 3; align-self: end; aspect-ratio: 4 / 5; }
}

/* Generic section shape: heading column left, content right */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--rule); }
.deep.section { border-top-color: var(--rule-deep); }
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; }
}
.section h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 16ch; }
.section h2.wide { max-width: 22ch; }
.lead { font-size: 1.125rem; max-width: var(--measure); }
.lead + .lead, .section-copy p + p { margin-top: 1rem; }
.mt { margin-top: 1.25rem; }

/* The quote stepper's rules lived here until 2026-09-02 - .quote-panel, .progress, .screen,
   .field, .control, .chips, .bar, .result, .echo, .confirm, .readback, .form-error and the
   rest. They moved to quote-stepper.css, which this page links beside this sheet, so the 21
   model pages and /inquiry could carry the same stepper from the same sheet. That sheet reads
   the tokens above (--bg, --ink, --accent ...) through its own --qs-* fallbacks, so the form
   renders here exactly as it did. One rule stays: .hint, which the generated no-bands
   fallback in #prices uses outside the stepper. */
.hint { font-size: 0.875rem; color: var(--ink-soft); }

/* Proof: heading, three real Google reviews and the link to Google. The articles
   are written by scripts/home-reviews.js on pages:build; the byline sits at the
   bottom of each so the three read level on one row. */
.reviews { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.review { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.review .who { margin-top: auto; padding-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-soft); }
.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); margin-bottom: 0.875rem; }
.stars svg { width: 1rem; height: 1rem; }
.review-count { margin-top: 1.25rem; font-size: 0.9375rem; }
@media (min-width: 760px) {
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
}

/* How it works: one row, three steps, hairlines between */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; }
.steps li { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.steps .n { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 0.9375rem; letter-spacing: 0.02em; }
.steps h3 { font-size: 1.5rem; margin-top: 0.5rem; }
.steps p { margin-top: 0.625rem; color: var(--ink-soft); max-width: 26rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
  .steps li { border-top: 0; padding: 2rem 2rem 0.5rem 0; }
  .steps li + li { border-left: 1px solid var(--rule); padding-left: 2rem; }
}

/* Price table. Capped at 640px so the figures sit next to the model names instead of at
   the far edge. The generator writes the table between the HOME-PRICE-BANDS markers; the
   classes here are the contract it writes to. */
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; max-width: 640px; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.price-table th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td.model { font-weight: 500; }
.price-table td.model a { color: inherit; text-decoration: none; }
.price-table td.model a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.price-table td.range { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.25rem, 4.5vw, 1.5rem); white-space: nowrap; }
/* The rest of the models, behind one hairline row. Open, it is the same table again. */
.all-prices { max-width: 640px; }
.all-prices summary { list-style: none; cursor: pointer; min-height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); color: var(--accent); font-weight: 600; }
.all-prices summary::-webkit-details-marker { display: none; }
.all-prices summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.all-prices[open] summary::after { content: "\2212"; }
.all-prices[open] summary { border-bottom: 0; }
.all-prices .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.table-foot { margin-top: 1.25rem; font-size: 0.9375rem; max-width: 640px; }
.no-bands h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.no-bands p + p { margin-top: 0.75rem; }

/* Local, not mail-in */
.local .split { align-items: start; }
.suburbs { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5; }
.suburbs span, .suburbs a { display: inline-block; text-decoration: none; } /* inline-block so the run can break between suburbs on a phone */
.suburbs a:hover { color: var(--accent); }
.suburbs > * + *::before { content: "\00B7"; color: var(--accent); margin: 0 0.6rem; }
.about-copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 1rem; max-width: var(--measure); }
.about-copy p + p { margin-top: 0.875rem; }
.about-copy strong { font-weight: 600; }
.about-copy a { color: var(--accent); }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; min-height: 4rem; display: flex; align-items: center; padding: 1.25rem 2.75rem 1.25rem 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-weight: 400; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .a { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: var(--measure); }

/* Final call */
.final .wrap { display: grid; gap: 2rem; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.final h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 14ch; }
.final .actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
@media (max-width: 559px) {
  .final .actions { flex-direction: column; align-items: stretch; }
  .final .actions .btn { width: 100%; }
}
@media (min-width: 900px) {
  .final .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .final .actions { justify-content: flex-end; }
}

/* Footer: contact row, then the directory - every model page and suburb page, two tight
   columns of small type. Present for crawlers; not a feature. */
.site-footer { border-top: 1px solid var(--rule-deep); font-size: 0.9375rem; }
.site-footer .wrap { padding-top: 1.75rem; padding-bottom: 2rem; }
.site-footer a { text-decoration: none; color: var(--on-deep-soft); }
.site-footer a:hover { color: var(--on-deep); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.foot-row .links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-review { margin-top: 1.25rem; font-size: 0.9375rem; }
.foot-review a { color: var(--accent-deep); }
.directory { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-deep); display: grid; gap: 1.25rem 2rem; font-size: 0.8125rem; line-height: 1.7; }
@media (min-width: 560px) { .directory { grid-template-columns: 1fr 1fr; } }
.directory h3 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-deep-soft); margin-bottom: 0.25rem; }
.directory p { margin: 0; }
.directory .series { color: var(--on-deep-soft); }
.directory a + a::before, .directory a + span::before, .directory span + a::before, .directory span + span::before { content: "\00B7"; color: var(--rule-deep-strong); margin: 0 0.4rem; }
.foot-legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-deep); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.8125rem; color: var(--on-deep-soft); }
.foot-legal .links { display: flex; gap: 1.25rem; }

/* Sections below the fold ease in once script has announced itself; the inline rule in
   index.html holds them at opacity 0 under .js, and this returns them. */
.fade-in.visible { opacity: 1; transform: none; }
