/* =====================================================================
   MAIN STYLES - layout and components.
   Colours, fonts and sizes come from theme.css; change them there.
   Mobile-first: base styles are for phones, @media blocks add larger screens.
   ===================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for the mobile call bar */
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.2; margin: 0 0 var(--space-4); color: var(--color-primary-darker); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); letter-spacing: -.01em; }
h3, .h3 { font-size: 1.3rem; }
.h4, h4 { font-size: 1.1rem; }
p { margin: 0 0 var(--space-4); }
a { color: var(--color-primary); text-underline-offset: .2em; }
a:hover { color: var(--color-primary-dark); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.small { font-size: .875rem; }
.muted { color: var(--color-muted); }
.lead { font-size: 1.2rem; color: var(--color-muted); max-width: 60ch; }
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; background-color: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; } /* see partials/icons.njk */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-5 { margin-bottom: var(--space-5); }
.form-error { background: #fdecea; color: var(--color-error); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: var(--space-4); top: -100px; background: var(--color-primary); color: var(--color-on-primary); padding: var(--space-3) var(--space-4); z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: var(--space-4); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 640px) { .container { padding: 0 var(--space-5); } }
.section { padding: var(--space-7) 0; }
.section-alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
@media (min-width: 900px) { .section { padding: var(--space-8) 0; } }
.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, filter .15s ease-out, transform .15s steps(1, jump-start);
  position: relative;
  /* Hover lift rules (measured in Firefox/Zen with tools/anim-sync and tools/scroll-sync):
     - no transform at rest: a resting 3D transform puts the element on its own layer that slides by fractions of a pixel while the
       page scrolls in whole pixels, so its text visibly jumped while scrolling;
     - the lift moves only in whole pixels (steps()): a fractional translate snaps the box and the label to different pixels, so the
       label stepped against the edge. Whole-pixel steps keep both on the same grid. */
}
/* Invisible strip under the button so the 1px lift never moves the pointer off it (that made hover flicker on the bottom edge). */
.btn::after { content: ""; position: absolute; inset: 0 0 -2px; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-on-primary); }
/* Outline buttons draw their ring as an inset shadow, not a border: a rounded border slides by fractions of a pixel while the page
   scrolls in whole pixels (tools/scroll-sync), the shadow stays on the pixel grid with the label. */
.btn-outline { border-color: transparent; box-shadow: inset 0 0 0 2px var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary-light); }
.btn-light { background: #fff; color: var(--color-primary-dark); }
.btn-light:hover { background: var(--color-primary-light); color: var(--color-primary-darker); }
.btn-outline-light { border-color: transparent; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .7); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header ---------- */
/* Header: deep navy bar that continues into the hero gradient. The logo is the blue house with sky-blue wording. */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, var(--color-primary-darker), hsl(calc(var(--brand-hue) + 6) 70% 11%)); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .1); box-shadow: 0 8px 24px rgb(8 18 40 / .22); }
:root { --hdr-mark: 62px; --hdr-text: 13px; --hdr-gap: 18px; --hdr-pad: 9px; --hdr-ls: .28em; --hdr-lh: 1.59; --hdr-ini: 1.22em; }
.site-header .container { max-width: var(--hdr-width, var(--container)); }
.header-inner { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--hdr-pad); }
.brand { display: flex; align-items: center; gap: var(--hdr-gap); text-decoration: none; color: #fff; margin-right: auto; min-width: 0; }
.brand img { width: var(--hdr-mark); height: var(--hdr-mark); flex: none; }
/* Logo wording: Fredoka SemiBold, uppercase subset, with the A and R feet raised to sit level with the other capitals. */
@font-face { font-family: "ACT Logo"; src: url("/assets/fonts/act-logo.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
.brand-text { display: flex; flex-direction: column; position: relative; top: .054em; min-width: 0; font-family: "ACT Logo", var(--font-body); font-weight: 600; font-size: var(--hdr-text); line-height: var(--hdr-lh); letter-spacing: var(--hdr-ls); color: var(--color-logo); }
.brand-text .ini { font-size: var(--hdr-ini); line-height: 0; }

.header-call { display: none; min-height: 40px; padding: .35rem 1rem; font-size: .9rem; }
@media (min-width: 760px) { .header-call { display: inline-flex; } }

.nav-toggle { display: none; align-items: center; gap: .35rem; min-height: 48px; padding: .5rem .8rem; border: 2px solid rgb(255 255 255 / .3); border-radius: var(--radius); background: rgb(255 255 255 / .06); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.js .nav-toggle { display: inline-flex; }
.nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

.site-nav ul { list-style: none; margin: 0; padding: var(--space-2) 0 var(--space-4); }
.site-nav a { display: block; padding: .8rem var(--space-2); text-decoration: none; font-weight: 600; color: rgb(255 255 255 / .88); border-bottom: 1px solid rgb(255 255 255 / .1); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--color-accent); padding-left: var(--space-4); }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

/* Wide screens: one row. Logo on the left, nav centred, call button on the right. */
@media (min-width: 1080px) {
  .site-header { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--hdr-pad); padding-inline: max(var(--space-4), calc((100% - var(--hdr-width, var(--container))) / 2 + var(--space-4))); }
  .header-inner { display: contents; }
  .brand { order: 1; margin-right: 0; }
  .site-nav { order: 2; flex: 1; }
  .site-nav .container { padding: 0; max-width: none; }
  .site-nav ul { justify-content: center; }
  .header-call { order: 3; }
  .js .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; border-top: 0; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-1); padding: 0; }
  .site-nav a { border: 0; padding: .7rem .85rem; font-size: 1rem; border-radius: 6px; }
  .site-nav a:hover { background: rgb(255 255 255 / .08); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-accent); padding-left: .85rem; border-radius: 0; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(circle at 85% 15%, hsl(var(--brand-hue) 80% 55% / .35), transparent 45%),
  linear-gradient(135deg, var(--color-primary-darker), var(--color-primary) 120%); }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgb(255 255 255 / .05); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--space-6); padding-block: var(--space-7); }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.25fr .9fr; align-items: center; padding-block: var(--space-8); } }
.hero h1 { color: #fff; }
/* Home heading: the company name is the big text, the old tagline sits under it as a supporting line. */
.hero .eyebrow { margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-name { display: block; font-size: 1.05em; line-height: 1.08; }
.hero-name span { display: block; }
.hero-tag { display: block; margin-top: .9rem; font-size: max(.4em, 1.05rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.hero .lead { color: rgb(255 255 255 / .9); }
.hero .eyebrow { color: var(--color-primary-soft); }
.hero-points { list-style: none; padding: 0; margin: var(--space-5) 0; display: grid; gap: var(--space-2); }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; }
.hero-points .icon { color: var(--color-accent); margin-top: .2em; }
.hero-card { background: #fff; color: var(--color-text); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-lg); }
.hero-card h2 { font-size: 1.35rem; }

/* ---------- Trust strip ---------- */
.trust { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trust ul { list-style: none; margin: 0; padding: var(--space-4) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(3, 1fr); } }
.trust li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; color: var(--color-primary-darker); }
.trust .icon { color: var(--color-primary); width: 1.6em; height: 1.6em; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card-accent { background: var(--color-primary); color: #fff; border: 0; }
.card-accent h2, .card-accent h3 { color: #fff; }
.card-link { position: relative; isolation: isolate; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s steps(3, jump-start), border-color .2s ease-out; } /* lift in whole pixels, no resting transform: see .btn */
/* The hover shadow is a separate layer, exactly card-sized, whose opacity fades, so the big blur is painted once instead of on every frame. (It used to be 4px taller for hover safety; a shadow is never painted inside its own box, so that left a visible slab under the lifted card.) */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s ease-out; }
@media (hover: hover) { .card-link:hover { transform: translateY(-3px); border-color: var(--color-primary-soft); color: inherit; } .card-link:hover::after { opacity: 1; } }
.card-link:focus-visible::after { opacity: 1; }
.card-link h3 { margin-bottom: var(--space-2); }
.card-link p { color: var(--color-muted); font-size: 1rem; }
/* Invisible 4px strip under the card so the 3px lift never moves the pointer off it (that made hover flicker on the bottom edge). */
.card-link .card-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; }
.card-more { margin-top: auto; font-weight: 700; color: var(--color-primary); display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--color-primary-light); color: var(--color-primary); margin-bottom: var(--space-4); }
.icon-badge .icon { width: 26px; height: 26px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: var(--space-5); padding-top: calc(var(--space-5) + 2.6rem); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.steps li::before { content: counter(step); position: absolute; top: var(--space-5); left: var(--space-5); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary); color: #fff; font-weight: 800; }
.steps h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.steps p { margin: 0; color: var(--color-muted); font-size: 1rem; }

/* ---------- Testimonials ---------- */
.quote { margin: 0; display: flex; flex-direction: column; }
.quote .stars { color: var(--color-star); display: flex; gap: 2px; margin-bottom: var(--space-3); }
.quote blockquote { margin: 0 0 var(--space-4); font-size: 1.05rem; }
.quote figcaption { margin-top: auto; font-weight: 700; color: var(--color-primary-darker); }
.quote figcaption span { display: block; font-weight: 400; color: var(--color-muted); font-size: .9rem; }

/* ---------- Split layout & lists ---------- */
.split { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
.split-center { align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .icon { color: var(--color-success); margin-top: .2em; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li + li { border-top: 1px solid var(--color-border); }
.link-list a { display: block; padding: .6rem 0; font-weight: 600; text-decoration: none; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-list li { background: var(--color-primary-light); color: var(--color-primary-dark); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .95rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--color-primary-darker), var(--color-primary)); color: #fff; padding: var(--space-6) 0 var(--space-7); }
.page-hero h1 { color: #fff; margin-bottom: var(--space-3); }
.page-hero .lead { color: rgb(255 255 255 / .9); margin: 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; opacity: .7; }
.breadcrumbs a { color: rgb(255 255 255 / .9); }
.breadcrumbs [aria-current] { color: rgb(255 255 255 / .75); }

/* ---------- Prose (long text pages) ---------- */
.prose { max-width: var(--prose-width); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-5); font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--color-border); }
.prose th { background: var(--color-primary-light); color: var(--color-primary-darker); }
.meta { color: var(--color-muted); font-size: .95rem; }
.note { background: var(--color-primary-light); border-left: 4px solid var(--color-primary); padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius) var(--radius) 0; margin: var(--space-6) 0; font-size: 1rem; }
.note p:last-child { margin: 0; }

.with-sidebar { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-7); } .sidebar { position: sticky; top: 8rem; } }
.sidebar { display: grid; gap: var(--space-4); align-content: start; }


/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: 1rem; }
.field .hint { font-weight: 400; color: var(--color-muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; font: inherit; font-size: 1.05rem; color: var(--color-text);
  background: #fff; border: 2px solid var(--color-border); border-radius: var(--radius);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 4px var(--color-primary-soft); }
.field-radio { display: grid; gap: var(--space-2); border: 0; padding: 0; margin: 0; }
.field-radio legend { font-weight: 700; margin-bottom: .35rem; font-size: 1rem; }
.field-radio label { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border: 2px solid var(--color-border); border-radius: var(--radius); cursor: pointer; font-weight: 600; min-height: 50px; }
.field-radio label:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-light); }
.field-radio input, .field-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-primary); flex: none; }
.field-check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.honeypot { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--color-muted); margin: 0; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; } .calc-results { position: sticky; top: 8rem; } }
.calc-results { background: var(--color-primary-darker); color: #fff; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-lg); }
.calc-results h2 { color: #fff; font-size: 1.3rem; }
.calc-results dl { margin: 0; display: grid; }
.calc-results .row { display: flex; justify-content: space-between; gap: var(--space-4); padding: .75rem 0; border-bottom: 1px solid rgb(255 255 255 / .15); }
.calc-results dt { color: rgb(255 255 255 / .85); }
.calc-results dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.calc-results .total { border-bottom: 0; padding-top: var(--space-4); font-size: 1.25rem; }
.calc-results .total dt { color: #fff; font-weight: 700; }
.calc-results .note-text { font-size: .9rem; color: rgb(255 255 255 / .8); margin: var(--space-4) 0; }
.calc-saving { background: rgb(255 255 255 / .1); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-top: var(--space-3); font-size: .95rem; }
.calc-saving:empty { display: none; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--color-muted); }
.input-prefix input { padding-left: 1.9rem; font-size: 1.25rem; font-weight: 700; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-list .icon-badge { margin: 0; width: 46px; height: 46px; }
.contact-list strong { display: block; color: var(--color-primary-darker); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-primary); color: #fff; padding: var(--space-7) 0; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-band p { color: rgb(255 255 255 / .9); margin: 0; }
.cta-points { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; color: rgb(255 255 255 / .9); }
.cta-points li { display: flex; align-items: center; gap: .5rem; }
.cta-points li::before { content: ""; width: .45rem; height: .45rem; background: currentColor; flex: none; }
.cta-inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-actions { display: grid; gap: var(--space-3); justify-items: stretch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-darker); color: rgb(255 255 255 / .85); padding-top: var(--space-7); font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: var(--space-6); padding-bottom: var(--space-6); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr .8fr; } }
.site-footer p { text-wrap: balance; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; }
.footer-legal { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: .3rem; font-size: .9rem; color: rgb(255 255 255 / .7); }
.footer-heading { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; word-break: break-word; }
.footer-contact .icon { color: var(--color-accent); margin-top: .2em; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .15); padding-block: var(--space-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Mobile call bar ---------- */
.call-bar { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 16px rgb(0 0 0 / .12); }
.call-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 60px; font-weight: 800; text-decoration: none; font-size: 1.05rem; padding-bottom: env(safe-area-inset-bottom); }
.call-bar-call { background: var(--color-primary); color: #fff; }
.call-bar-estimate { background: #fff; color: var(--color-primary-dark); }
@media (min-width: 760px) { .call-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Optional visual elements (switched on by styles/*.css) ---------- */
/* Hero illustration: hidden unless a style shows it */
.hero-art { display: none; position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.hero-illustration { display: block; width: 100%; height: auto; }
.art-blob { fill: var(--art-blob, rgb(255 255 255 / .07)); }
.art-ring { fill: none; stroke: var(--art-ring, rgb(255 255 255 / .2)); stroke-width: 2; stroke-dasharray: 4 10; }
.art-line, .art-mullion { fill: none; stroke: var(--art-line, rgb(255 255 255 / .6)); stroke-width: 4; stroke-linecap: round; }
.art-mullion { stroke-width: 3; stroke: var(--art-mullion, var(--color-primary)); }
.art-house { fill: var(--art-house, #fff); }
.art-roof { fill: none; stroke: var(--art-roof, var(--color-accent)); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.art-door { fill: var(--art-door, var(--color-primary)); }
.art-knob { fill: var(--art-knob, #fff); }
.art-window { fill: var(--art-window, var(--color-primary-soft)); }
.art-tree { fill: var(--art-tree, rgb(255 255 255 / .25)); }
.art-doc { fill: var(--art-doc, #fff); filter: drop-shadow(0 10px 18px rgb(0 0 0 / .18)); }
.art-doc-lines { stroke: var(--art-doc-lines, var(--color-primary-soft)); stroke-width: 6; stroke-linecap: round; }
.art-signature { fill: none; stroke: var(--art-signature, var(--color-primary)); stroke-width: 3; stroke-linecap: round; }
.art-key { fill: none; stroke: var(--art-key, #f5c451); stroke-width: 9; }
.art-key-hole { fill: var(--art-key, #f5c451); }
.art-key-shaft { fill: none; stroke: var(--art-key, #f5c451); stroke-width: 9; stroke-linecap: round; }

.float-card { position: absolute; display: flex; align-items: center; gap: .6rem; background: #fff; color: var(--color-text); border-radius: 14px; padding: .65rem .9rem; box-shadow: var(--shadow-lg); font-size: .9rem; line-height: 1.25; animation: float 6s ease-in-out infinite; will-change: transform; }
a.float-card { text-decoration: none; }
.float-card strong { display: block; color: var(--color-primary-darker); }
.float-card small { color: var(--color-muted); font-size: .8rem; }
.float-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--color-primary-light); color: var(--color-primary); }
.float-stars { display: flex; gap: .1rem; color: var(--color-star); margin-bottom: .2rem; }
.float-stars .icon { width: 1.1rem; height: 1.1rem; vertical-align: top; }
.float-card-1 { top: 6%; left: -2%; }
.float-card-2 { bottom: 4%; right: -2%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* Stats band: hidden unless a style shows it */
.stats { display: none; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats ul { grid-template-columns: repeat(3, 1fr); } }
.stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .stats li:last-child:nth-child(odd) { grid-column: auto; } }
.stats li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-5) var(--space-3); }
.stats strong { font-family: var(--font-heading); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); line-height: 1.1; color: var(--color-primary); }
.stats span { color: var(--color-muted); font-size: .95rem; margin-top: .25rem; }

/* ---------- Print ---------- */
@media print {
  .site-nav, .nav-toggle, .call-bar, .cta-band, .header-call, .sidebar { display: none !important; }
  .page-hero, .hero { background: none; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
  body { padding: 0; }
}

/* Home: the calculator card is a bit taller, content centred, same text sizes */
.calc-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
@media (min-width: 900px) { .calc-card { min-height: 24rem; } }
