/* aducost.net — one stylesheet, system fonts (no font downloads), WCAG 2.2 AA in the light and dark
   colour schemes. Palette: cool paper, blueprint navy headings, green action buttons (accent for actions only). */
:root {
  color-scheme: light dark;
  --ink: #1c2330;          /* body text: 15.1:1 on --paper */
  --muted: #4a5566;        /* quiet text: 7.2:1 on --paper, 6.6:1 on --soft */
  --head: #1f3d66;         /* blueprint navy headings and links: 10.5:1 on --paper */
  --accent: #146b4c;       /* green: call, send and calculate buttons, white words 6.5:1 */
  --accent-hover: #0e5139; /* white words 9.3:1 */
  --on-accent: #ffffff;
  --paper: #f8fafc;
  --card: #ffffff;
  --soft: #eaf0f6;
  --line: #d3dbe5;
  --field: #667385;        /* field edges: 4.8:1 on white */
  --ring: #146b4c;         /* focus ring: 6.2:1 on --paper */
  --foot-bg: #1f3d66;
  --foot-ink: #ffffff;     /* 11:1 on --foot-bg */
  --foot-quiet: #d6e2f1;   /* 8.3:1 on --foot-bg */
  --foot-line: #5a7398;
  --radius: 10px;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ebf2;        /* 15.3:1 on --paper */
    --muted: #b3bfcd;      /* 9.8:1 on --paper, 8.8:1 on --card */
    --head: #a9c6ee;       /* 10.5:1 on --paper */
    --accent: #6fd1a8;     /* dark words 9.7:1 */
    --accent-hover: #93ddbd;
    --on-accent: #0c1a14;
    --paper: #10151d;
    --card: #18202b;
    --soft: #1d2733;
    --line: #2f3b4a;
    --field: #8592a3;      /* 5.2:1 on --card */
    --ring: #6fd1a8;       /* 9.9:1 on --paper */
    --foot-bg: #0a0e14;
    --foot-ink: #e6ebf2;   /* 16.1:1 */
    --foot-quiet: #b3bfcd; /* 10.4:1 */
    --foot-line: #2f3b4a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--head); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--head); color: var(--paper); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; }

/* header: sticky, the call button always on screen */
.top { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.name { display: flex; align-items: center; gap: .6rem; color: var(--head); font-weight: 800; font-size: 1.15rem; text-decoration: none; line-height: 1.2; min-width: 0; }
.name small { display: block; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 400; font-size: .8rem; color: var(--muted); }
.logo { width: 40px; height: 40px; flex: none; border-radius: 8px; }
.call { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .95rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; }
.call:hover { background: var(--accent-hover); color: var(--on-accent); }
.call svg, .btn svg, .foot-call svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.menu { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem .4rem; display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; }
.menu a { display: inline-block; padding: .35rem 0; min-height: 32px; color: var(--head); font-weight: 600; text-decoration: none; }
.menu a:hover { text-decoration: underline; color: var(--head); }
@media (max-width: 30rem) { .call-label, .name small { display: none; } .name { font-size: 1rem; } .call { padding: .5rem .75rem; } }
@media (max-width: 40rem) { .menu .menu-wide { display: none; } }   /* phones: the header menu keeps its three topic links, on one row at 360 px and up, so the sticky header is about 110 px tall, not 150 to 160 (audit 2026-11-20, F-102); About and Contact stay in the footer, and the bottom bar has Send a request */
@media (max-width: 30rem) { html { scroll-padding-top: 11rem; } }   /* the menu wraps to two lines on a phone: keep a jumped-to field clear of the sticky header */

.crumbs { max-width: var(--wrap); margin: 0 auto; padding: .8rem 1rem 0; font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "›"; margin-right: .3rem; }

/* page */
.page { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.page > * { max-width: 46rem; }
.page > .hero, .page > .request, .page > .cards, .page > .steps, .page > .band { max-width: none; }
h1, h2, h3 { color: var(--head); line-height: 1.25; }
h1, h2 { letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: .3rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .04em; font-size: .9rem; margin: 0; }
@media (prefers-color-scheme: light) { .eyebrow { color: var(--accent-hover); } }
.lead { font-size: 1.2rem; color: var(--ink); }
.hero { padding: .5rem 0 .5rem; display: grid; gap: 1.5rem; align-items: center; }
.hero > div { max-width: 44rem; }
.hero-art { width: 100%; max-width: 22rem; height: auto; justify-self: center; color: var(--head); }
@media (min-width: 56rem) { .hero.has-art { grid-template-columns: minmax(0, 1fr) 20rem; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1.05rem; cursor: pointer; }
.btn-call, .btn-send { background: var(--accent); color: var(--on-accent); }
.btn-call:hover, .btn-send:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-line { border-color: var(--head); color: var(--head); background: var(--card); }
.btn-line:hover { background: var(--soft); color: var(--head); }
.note { background: var(--soft); border-left: 4px solid var(--accent); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.checklist { padding-left: 1.3rem; }
.checklist li { margin: .35rem 0; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--head); }
.table-wrap { overflow-x: auto; }
.sources { font-size: .95rem; color: var(--muted); }

/* numbered steps: the order of the work, shown as a typographic sequence (no photos until real ones are cleared) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.2rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: .4rem; }
@media (prefers-color-scheme: light) { .steps li::before { color: var(--accent-hover); } }
.steps strong { color: var(--head); }

/* home: service cards and the quiet band */
.cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.cards li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--head); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.cards h3 { margin: 0 0 .4rem; }
.cards p { margin: 0; color: var(--muted); }
.band { background: var(--soft); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 2rem 0; }
.band h2 { margin-top: 0; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: .7rem 0; padding: 0 1.1rem; }
.faq summary { cursor: pointer; list-style: none; padding: .9rem 0; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; margin: 0; font-size: 1.08rem; }
.faq summary::after { content: "+"; float: right; font-weight: 700; color: var(--head); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 1rem; }

/* lead form: one per page */
.request { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem 1rem; margin: 2.6rem 0; }
.request h2 { margin-top: 0; }
.lead-form { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .lead-form { grid-template-columns: 1fr 1fr; } .lead-form .wide { grid-column: 1 / -1; } }
.lead-form p { margin: 0 0 .9rem; }
.lead-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.lead-form .opt { font-weight: 400; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--field); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }
.lead-form .consent { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.foot { background: var(--foot-bg); color: var(--foot-ink); padding: 2rem 1rem 1.2rem; }
.foot a { color: var(--foot-ink); }
.foot :focus-visible { outline-color: var(--foot-ink); }
.foot-grid { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: .3rem 0; }
.foot li a { display: inline-block; min-height: 28px; }
.foot .brand { display: flex; align-items: center; gap: .6rem; font-family: Georgia, serif; font-weight: 700; font-size: 1.15rem; margin-top: 0; }
.foot-h { color: var(--foot-ink); font-size: 1rem; margin: 0 0 .5rem; font-family: inherit; }
.foot-call { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; font-size: 1.1rem; }
.license-line { max-width: var(--wrap); margin: 1.5rem auto .5rem; padding-top: 1rem; border-top: 1px solid var(--foot-line); font-size: .92rem; color: var(--foot-quiet); }
.copy { max-width: var(--wrap); margin: 0 auto; font-size: .85rem; color: var(--foot-quiet); }
.footer-credit { max-width: var(--wrap); margin: .35rem auto 0; font-size: .82rem; color: var(--foot-quiet); }
.foot .footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* budget worksheet: inputs on the left, the running total on the right; numbers line up (tabular figures) */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin: 1.6rem 0; display: grid; gap: 1.2rem; }
.page > .calc { max-width: none; }
@media (min-width: 52rem) { .calc { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend { font-weight: 700; color: var(--head); margin-bottom: .4rem; }
.calc label { display: block; font-weight: 600; margin: .7rem 0 .25rem; }
.calc .hint { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.calc input, .calc select { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--field); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }
.calc-out { background: var(--soft); border-radius: var(--radius); padding: 1rem 1.1rem; align-self: start; }
.calc-out h2 { margin-top: 0; font-size: 1.25rem; }
.calc-out dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; font-variant-numeric: tabular-nums; }
.calc-out dt { color: var(--ink); }
.calc-out dd { margin: 0; text-align: right; font-weight: 700; color: var(--head); }
.calc-out .total { border-top: 2px solid var(--head); padding-top: .4rem; font-size: 1.1rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* A-to-Z picture sequence (/adu-cost, site/js/seq.js): one illustrated garage conversion that changes as you scroll.
   The stage is CSS-sticky inside a tall section (native scroll, nothing pinned by script); the caption sits on a solid
   footer-colour bar under the picture, never on it. Reduced motion or no JS: the finished picture, the caption and
   (with JS) a Next step button. Colours only from this site's tokens. */
.seq { margin: 1rem 0 2.5rem; }
.seq-stage { display: flex; flex-direction: column; max-width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.seq-pic { position: relative; aspect-ratio: 4 / 5; }
.seq-poster, .seq canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.seq canvas { opacity: 0; transition: opacity .3s; }
.seq.is-ready canvas { opacity: 1; }
.seq-badge { position: absolute; top: .6rem; left: .6rem; z-index: 2; padding: .25rem .65rem; border-radius: 999px; background: var(--card); color: var(--head); font-size: .875rem; font-weight: 700; pointer-events: none; }
.seq-cap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 .75rem; padding: .7rem 1rem .8rem; background: var(--foot-bg); color: var(--foot-ink); }
.seq-count { grid-column: 1; margin: 0; font-size: .875rem; color: var(--foot-quiet); }
.seq-label { grid-column: 1; display: block; font-size: 1.25rem; line-height: 1.25; }
.seq-text { grid-column: 1; margin: 0; }
.seq-next { grid-column: 2; grid-row: 1 / span 3; min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--foot-ink); border-radius: 999px; background: var(--card); color: var(--head); font: inherit; font-weight: 700; cursor: pointer; }
.seq-next:hover { background: var(--soft); }
.seq-next:focus-visible { outline: 3px solid var(--foot-ink); outline-offset: 2px; }
.seq.is-live { height: 300vh; }
.seq.is-live .seq-stage { position: sticky; top: calc(var(--seq-top, 6rem) + .5rem); width: min(100%, calc((100svh - var(--seq-top, 6rem) - 7.5rem) * .8)); }
.seq:not(.is-live) .seq-stage { width: min(100%, 30rem); }

/* Closing call band (component lab pick "cta-section", Mark, popup 2026-11-18): the service page's own call to action
   before its lead form; the site's accent as the band, its on-accent words (contrast as the buttons above). */
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: 2.5rem 1.25rem; margin: 2.6rem 0; text-align: center; }
.page > .cta-band { max-width: none; }
.cta-band-inner { max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.cta-band .cta-band-tag { margin: 0; font-size: .9rem; font-weight: 700; letter-spacing: .04em; color: var(--on-accent); }
.cta-band h2 { margin: 0; color: var(--on-accent); font-size: clamp(1.4rem, 1.1rem + 2vw, 2rem); line-height: 1.2; text-wrap: balance; }
.cta-band p { margin: 0; color: var(--on-accent); }
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.5rem; margin-top: .4rem; }
.cta-band-call, .cta-band-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; font-weight: 700; font-size: 1.0625rem; border-radius: var(--radius); }
.cta-band-call { padding: .7rem 1.4rem; background: var(--on-accent); color: var(--accent); border: 2px solid var(--on-accent); text-decoration: none; }
.cta-band-call:hover { background: transparent; color: var(--on-accent); }
.cta-band-link, .cta-band-link:hover { padding: .7rem .5rem; color: var(--on-accent); text-decoration: underline; text-underline-offset: .2em; }
.cta-band-link:hover { text-decoration-thickness: 2px; }
.cta-band a:focus-visible { outline: 3px solid var(--on-accent); outline-offset: 3px; box-shadow: 0 0 0 3px var(--accent); }
.cta-band svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.cta-band svg.arrow { fill: none; }
@media (prefers-reduced-motion: no-preference) {
  .cta-band-call { transition: background-color .15s ease, color .15s ease; }
  .cta-band-link .arrow { transition: transform .15s ease; }
  .cta-band-link:hover .arrow { transform: translateX(3px); }
}

/* Phone call bar (component lab pick "bottom-call-bar", Mark, popup 2026-11-18: "Phone call bar, all sites"): phones
   only, fixed at the bottom; the body and jump targets get its height as padding so it never covers content, the
   footer or a lead form field. */
.call-bar { display: none; }
@media (max-width: 767.98px) {
  .call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    padding: .5rem max(.75rem, env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    background: var(--card); border-top: 1px solid var(--line); }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; min-width: 0; padding: .5rem .6rem;
    font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; border-radius: var(--radius); border: 2px solid var(--accent); }
  .call-bar .call-bar-call, .call-bar .call-bar-call:hover { background: var(--accent); color: var(--on-accent); }
  .call-bar .call-bar-ask, .call-bar .call-bar-ask:hover { background: var(--card); color: var(--accent); }
  .call-bar .call-bar-ask:hover { background: var(--soft); }
  .call-bar svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
  .call-bar svg.line-icon { fill: none; }
  .call-bar a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  html { scroll-padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 23.4rem) { .call-bar svg { display: none; } }
@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
  .call-bar { animation: call-bar-in .3s ease-out both; }
  @keyframes call-bar-in { from { transform: translateY(100%); } to { transform: none; } }
}

/* hero with a picture (Mark, 2026-11-18: "no hero eys need to find it all sites need heros", "yes every paghe need to
   have one"): text first on phones, the picture below it; from 900 px the picture fills the hero to the right edge of
   the screen ("wide in the background") under a solid --paper fade, so the hero text always sits on solid page colour
   (readable-colour rule). AI pictures carry the "AI illustration" tag. */
.page > .hero.hero-split { max-width: none; }
.page > .hero.hero-split > * { max-width: none; }
.hero-split .hero-text { max-width: 44rem; }
.hero-media { margin: 0; }
.hero-media img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.hero-media figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.ai-tag { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--head); color: var(--paper); font-weight: 700; font-size: .78rem; }
@media (min-width: 900px) {
  .page > .hero.hero-split { position: relative; display: block; min-height: 30rem; padding: 3.5rem 0 3rem; }
  .hero-split .hero-text { position: relative; z-index: 2; max-width: min(38rem, 46%); }
  .hero-split .hero-media { position: absolute; z-index: 0; top: 0; bottom: 0; right: calc(50% - 50vw); width: calc(50vw + 8%); margin: 0; }
  .hero-split .hero-media img { width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }
  .hero-split .hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 18%, color-mix(in srgb, var(--paper) 55%, transparent) 48%, color-mix(in srgb, var(--paper) 5%, transparent) 100%); }
  .hero-split .hero-media figcaption { position: absolute; z-index: 2; right: 1rem; bottom: .8rem; margin: 0; padding: .25rem .6rem;
    border-radius: 999px; background: var(--paper); color: var(--ink); }
}
html, body { overflow-x: clip; }   /* the wide hero picture reaches the screen edge; never a sideways scroll */

/* the phone call bar gives way while a first-screen button sits under it (js/site.js; Mark, 2026-11-22: "fix it") */
.call-bar.is-off { transform: translateY(110%); visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .call-bar { transition: transform .2s ease, visibility .2s; } }
