/*
  Jules Makes Gates theme · main stylesheet
  Design system: "Direction C v2" (approved by Josh, 3 Oct 2026). Every value is referenced in
  designs/c2-quote-first/REFERENCES.md; inner-page components are measured from Solution Roofing's
  inner pages (noted [SR-inner]) and listed in REFERENCES-WP.md.
*/

:root {
  /* Colour: all from Meta Designs' theme (Bootstrap tokens on metadesignsslc.com) */
  --orange: #f66519;       /* MD --bs-primary */
  --orange-soft: #feede5;  /* MD orange at the same strength SR uses for --sr-blue-soft (about 11.5% on white) */
  --ink: #2c2e36;          /* MD --bs-dark, body text */
  --muted: #6c757d;        /* MD --bs-gray-600 */
  --faint: #adb5bd;        /* MD theme gray-500 */
  --light: #f8f9fa;        /* MD --bs-light */
  --border: #dee2e6;       /* MD --bs-border-color */
  --dark: #171111;         /* MD dark sections */
  --black: #000000;        /* MD sticky header and footer */
  --danger: #dc3545;       /* MD --bs-danger */

  /* Type */
  --font: "Rethink Sans", system-ui, -apple-system, sans-serif;  /* SR */
  --heading-ls: 0.01em;   /* Josh, round 2: more letter spacing on all headings (C used -0.02 to -0.035em) */
  --logo: "Baloo Bhai 2", "Rethink Sans", sans-serif;              /* SR wordmark style, placeholder logo only */

  /* Motion [SR] */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.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: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 100px; }
.skip-link:focus { top: 12px; }

/* ---------- Type [SR], recoloured ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }   /* orange kept to this small line */
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--orange); }
.h2-xl { font-weight: 800; font-size: clamp(40px, 4.4vw + 10px, 74.88px); line-height: 1; letter-spacing: var(--heading-ls); margin: 0; text-wrap: balance; }
.h2 { font-weight: 800; font-size: clamp(34px, 2.6vw + 14px, 56px); line-height: 1.06; letter-spacing: var(--heading-ls); margin: 0 0 18px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }

/* ---------- Buttons [SR pills], MD colours ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 100px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; line-height: 1.6; padding: 9.5px 18.5px; min-height: 41px; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease); } /* Josh, round 4: smaller. SR's header pill: 41px high, 11px 20px padding (here 9.5px 18.5px plus the 1.5px border), 12px/700, ls 1.2px */
.btn--accent { background: var(--orange); border-color: var(--orange); color: #fff; }   /* Josh, round 4: white text on orange (as MD's Bootstrap .btn-primary) */
.btn--accent:hover { background: #fff; border-color: var(--orange); color: var(--orange); } /* Josh, round 4: hover turns white with orange text */
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--ink); }
.btn--outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn svg { width: 14px; height: 14px; }
.btn.is-waiting { opacity: .45; }

/* ---------- Placeholders ---------- */
.tbc { outline: 2px dashed var(--orange); outline-offset: 4px; }
.tbc-note { display: inline-block; font: 600 12px/1.3 system-ui, sans-serif; letter-spacing: 0; text-transform: none; background: var(--ink); color: #fff; padding: 2px 6px; border-radius: 4px; margin: 4px 0; }
.hide-tbc .tbc { outline: none; }
.hide-tbc .tbc-note { display: none; }

/* ---------- Header [SR]: transparent with white text over the hero, white after 60px ---------- */
.site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: 85px; color: #fff; background: transparent; border-bottom: 1px solid transparent; transition: background .3s, padding .3s, border-color .3s, color .3s; }
.site-header.is-scrolled { color: var(--ink); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--logo); font-size: 26px; line-height: 1; text-decoration: none; color: inherit; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.logo b { font-weight: 600; }
.logo span { font-weight: 400; }
.logo svg { width: 28px; height: 28px; color: var(--orange); }  /* Josh, round 2: orange fence mark */
.nav { display: flex; margin-left: auto; }
.nav a { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; padding: 10px 12px; text-decoration: none; color: inherit; border-radius: 100px; transition: background-color .2s; }
.nav a:hover { background: rgba(255,255,255,.12); }
.is-scrolled .nav a:hover { background: var(--light); }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: 12px; }
.phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; text-decoration: none; color: inherit; white-space: nowrap; }
.phone svg { width: 15px; height: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; cursor: pointer; padding: 12px 11px; color: inherit; }
.is-scrolled .nav-toggle, .nav-open .nav-toggle { border-color: var(--border); background: #fff; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 3px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.mobile-nav { display: none; }
html.nav-open { overflow: hidden; }

/* ---------- Hero: A's composition [MD], darker, smaller H1 (Josh) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--dark); min-height: min(820px, 92svh); display: flex; align-items: center; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; } /* Henrybuilt hero slides: opacity 1.4s ease */
.hero__bg.is-active { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .7); } /* Josh, round 3: flat 70% black. Measured: white text 8.5:1 or better */
.hero__inner { padding: 150px 0 96px; }
.hero__copy { max-width: 880px; margin: 0 auto; text-align: center; }  /* Josh, round 2: centred hero */
.hero__title { font-family: var(--font); font-weight: 800; font-size: clamp(40px, 1.9rem + 2.4vw, 64px); line-height: 1.04; letter-spacing: var(--heading-ls); margin: 0 0 20px; text-wrap: balance; } /* same face as every heading */
.hero__title .accent { color: var(--orange); white-space: nowrap; }
.hero__sub { font-family: var(--font); font-weight: 400; font-size: 18px; line-height: 1.6; margin: 0 auto 28px; max-width: 58ch; color: rgba(255,255,255,.9); }  /* Josh, round 2: body copy font, 18px */
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.8); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 16px; height: 16px; color: var(--orange); }
/* Slideshow navigator [Minimal Steel]: count, 1px timer line that fills over 6s, total; caption crossfades [Henrybuilt .8s].
   A pause button is added so the movement can be stopped (WCAG 2.2.2). Hidden until site.js is ready, space kept. */
.hero__nav { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; font-size: 14px; font-weight: 600; line-height: 24px; color: #fff; visibility: hidden; }
.hero.is-ready .hero__nav { visibility: visible; }
.hero__count { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.hero__timer { position: relative; width: 40px; height: 1px; margin: 0 10px; background: rgba(255,255,255,.2); }
.hero__timer span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #fff; }
.hero__timer span.is-running { animation: heroTimer 6s linear forwards; }
.hero.is-paused .hero__timer span { animation-play-state: paused; }
@keyframes heroTimer { from { width: 0; } to { width: 100%; } }
.hero__caption { font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.8); transition: opacity .8s ease; }
.hero__caption.is-changing { opacity: 0; transition-duration: .4s; }
.hero__pause { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .3s var(--ease); }
.hero__pause:hover { border-color: #fff; }
.hero__pause svg { width: 12px; height: 12px; }
.hero__pause .i-play, .hero.is-stopped .hero__pause .i-pause { display: none; }
.hero.is-stopped .hero__pause .i-play { display: block; }

/* ---------- Quote section: C's estimator, now below the hero ---------- */
.quote-sec { background: var(--light); padding: 96px 0 72px; }
.quote-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.quote-head .eyebrow { justify-content: center; }
.estimator { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.step-card { background: #fff; border-radius: 18px; padding: 48px; border: 1px solid var(--border); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 28px; }
.seg span { height: 4px; border-radius: 2px; background: var(--border); transition: background-color .3s var(--ease); }
.step-card[data-current-step="1"] .seg span:nth-child(-n+1),
.step-card[data-current-step="2"] .seg span:nth-child(-n+2),
.step-card[data-current-step="3"] .seg span:nth-child(-n+3),
.step-card[data-current-step="4"] .seg span:nth-child(-n+4) { background: var(--orange); }
.step-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.q-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-step[hidden] { display: none; }
form[data-animate] .q-step.is-active { animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-legend { font-weight: 800; font-size: clamp(30px, 2vw + 12px, 44px); line-height: 1.08; letter-spacing: var(--heading-ls); margin: 0 0 10px; padding: 0; }
.q-legend:focus { outline: none; }
.q-help { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 24px; }
.q-step.is-invalid .q-help::after { content: " Please choose one to continue."; color: var(--danger); font-weight: 600; }

.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 24px; }
.option { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color 150ms, background-color 150ms; background: #fff; }
.option:hover { border-color: var(--ink); }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--light); flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.option .icon img { width: 100%; height: 100%; object-fit: cover; }
.option strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.option small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.option:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.option:has(input:checked) .icon { box-shadow: 0 0 0 2px var(--orange); }
.option:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

.rows { display: grid; gap: 8px; margin: 0 0 20px; }
.rows--inline { grid-template-columns: repeat(3, 1fr); }
.intent { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; transition: border-color 120ms, background-color 120ms; font-size: 15px; }
.intent:hover { border-color: var(--ink); }
.intent input { accent-color: var(--orange); margin: 0; flex: 0 0 auto; }
.intent:has(input:checked) { border-color: var(--orange); background: rgba(246,101,25,.06); }   /* SR's .06 checked tint, in MD orange */
.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group > legend { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; padding: 0; }

.field { display: block; margin: 0 0 16px; }
.field__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 20px; font-size: 17px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232c2e36' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 20px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246,101,25,.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field.is-invalid input { border-color: var(--danger); }
.field.is-invalid .field__label::after { content: " · required"; color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.photo-slot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 18px; border: 1.5px dashed var(--border); border-radius: 12px; margin: 0 0 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.photo-slot:hover, .photo-slot.is-drag { border-color: var(--orange); background: var(--orange-soft); }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--light); display: grid; place-items: center; color: var(--ink); flex: none; }
.photo-slot .icon svg { width: 22px; height: 22px; }
.photo-slot strong { display: block; font-size: 15px; }
.photo-slot small { display: block; font-size: 13px; color: var(--muted); }
.photo-slot .pill { margin-left: auto; border: 1.5px solid var(--ink); border-radius: 100px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; width: 100%; position: relative; z-index: 1; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 64px; height: 64px; border-radius: 10px; background: var(--light); display: grid; place-items: center; font-size: 11px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.thumb-remove { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; line-height: 22px; padding: 0; cursor: pointer; }
.examples { font-size: 14px; margin: 6px 0 20px; color: var(--muted); }
.examples summary { cursor: pointer; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.q-back { background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; padding: 12px 0; }
.q-back:hover { color: var(--ink); }
.q-reassure { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.q-reassure span { display: inline-flex; align-items: center; gap: 6px; }
.q-reassure svg { width: 14px; height: 14px; color: var(--orange); }
.q-done[hidden] { display: none; }
.q-done h2, .q-done h3 { font-size: 34px; font-weight: 800; letter-spacing: var(--heading-ls); margin: 0 0 8px; }

.summary { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; position: sticky; top: 110px; }
.summary h2 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.summary dl { margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.summary dd.is-empty { font-weight: 400; color: var(--faint); }
.summary .call { margin-top: 20px; font-size: 14px; color: var(--muted); }
.summary .call a { display: block; font-size: 22px; font-weight: 800; color: var(--orange); text-decoration: none; letter-spacing: var(--heading-ls); }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .lead, .section--dark .muted { color: rgba(255,255,255,.7); }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.split-head p { margin: 0; }

.statement { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; margin: 0; }
.stats div { border-top: 1px solid var(--border); padding-top: 16px; }
.stats dt { font-size: 56px; font-weight: 800; letter-spacing: var(--heading-ls); line-height: 1; }
.stats dt small { font-size: .45em; letter-spacing: 0; color: var(--orange); margin: 0 .12em; }
.stats dt sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; color: var(--orange); }
.stats dd { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.svc { grid-column: span 4; position: relative; display: block; min-height: 380px; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; background: var(--dark); transition: transform .5s, box-shadow .5s; }
.svc:hover { transform: scale(1.01); box-shadow: 0 16px 24px rgba(0,0,0,.1); }   /* SC */
.svc--lg { grid-column: span 6; min-height: 580px; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(23,17,17,.1) 0%, rgba(23,17,17,.4) 50%, rgba(23,17,17,.92) 100%); } /* SR gradient stops, MD dark */
.svc__body { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; }
.svc h3 { font-size: clamp(30px, 1.6vw + 16px, 43.2px); font-weight: 800; line-height: 1.05; letter-spacing: var(--heading-ls); margin: 0 0 10px; }
.svc p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.75); margin: 0; max-width: 46ch; }
.svc__go { position: absolute; right: 24px; top: 24px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; transition: background-color .3s var(--ease), color .3s var(--ease); }
.svc:hover .svc__go { background: #fff; color: var(--orange); }   /* Josh, round 4: orange buttons turn white with orange on hover */
.svc__go svg { width: 18px; height: 18px; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.media { position: relative; border-radius: 6px; overflow: hidden; }
.media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.chip { position: absolute; top: 16px; left: 16px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 6px 12px; }

.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.inline-form { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; max-width: 520px; transition: border-color .15s; }
.inline-form input { flex: 1; min-width: 0; border: 0; outline: none; padding: 14px 16px; font-size: 16px; background: transparent; }
.inline-form .btn { flex: none; }
.inline-form:focus-within { border-color: var(--orange); }
.text-link { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.way { background: var(--dark); color: #fff; border-radius: 6px; padding: 40px 36px; }
.way__label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin: 0 0 20px; }
.way__label span { background: var(--orange); color: #fff; font-size: 10px; letter-spacing: 1px; padding: 3px 8px; border-radius: 100px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); }
.ticks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 1px; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center; }
.ticks--dark li { color: var(--ink); }

.projects { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.project { scroll-snap-align: start; position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; transition: transform .5s, box-shadow .5s; }
.project:hover { transform: scale(1.01); box-shadow: 0 16px 24px rgba(0,0,0,.25); }
.project img { width: 100%; height: 100%; object-fit: cover; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(23,17,17,0) 50%, rgba(23,17,17,.92) 100%); }
.project__body { position: absolute; left: 24px; right: 76px; bottom: 22px; z-index: 1; }
.project small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.project strong { display: block; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: var(--heading-ls); }
.project .go { position: absolute; right: 22px; bottom: 22px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; transition: background-color .3s var(--ease), color .3s var(--ease); }
.project:hover .go { background: #fff; color: var(--orange); }
.project .go svg { width: 16px; height: 16px; }
.center-cta { text-align: center; margin-top: 40px; }
.work-strip { padding: 80px 0 72px; background: #fff; }
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.strip-head .h2 { margin: 0; }
.work-strip .projects { grid-auto-columns: calc((100% - 72px) / 4); }
.work-strip .project { aspect-ratio: 4 / 5; }

.jules { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.portrait { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 40px; background: var(--light); }
.portrait--photo { padding: 0; margin: 0; overflow: hidden; }
.portrait--photo img { width: 100%; height: 100%; object-fit: cover; }

.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.areas a { display: inline-flex; padding: 12px 18px; border: 1.5px solid var(--border); border-radius: 100px; text-decoration: none; font-weight: 600; font-size: 14px; background: #fff; transition: border-color .15s; }
.areas a:hover { border-color: var(--orange); }

.faq-wrap { display: grid; grid-template-columns: 490fr 654fr; gap: 64px; align-items: start; }
.faq-wrap .h2 { font-size: clamp(40px, 3.6vw + 10px, 72px); line-height: 1.02; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 20.16px; font-weight: 700; line-height: 1.3; letter-spacing: var(--heading-ls); }
.faq summary::-webkit-details-marker { display: none; }
.faq .ic { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; flex: none; transition: transform .3s, background-color .3s, border-color .3s; }
.faq .ic svg { width: 14px; height: 14px; }
.faq details[open] .ic { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: #fff; }
.faq [data-accordion-body] { overflow: hidden; transition: height .3s var(--ease); }
.faq [data-accordion-body] p { margin: 0 0 26px; color: var(--muted); max-width: 60ch; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; text-align: center; padding: 64px 0; } /* Josh, round 3: shorter (was 140px padding) */
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .7); } /* same 70% black as the hero. Measured: white text 8.5:1 or better */
.cta-band .eyebrow { justify-content: center; color: var(--orange); }
.cta-band h2 { font-weight: 800; font-size: clamp(32px, 2.4vw + 14px, 52px); line-height: 1.06; letter-spacing: var(--heading-ls); margin: 0 auto 28px; max-width: 900px; text-wrap: balance; }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.call-alt { margin: 0; text-align: left; line-height: 1.2; }
.cta-band .or { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.cta-band .tel { display: inline-block; margin-top: 4px; font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; }

.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 88px 0 120px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer h2 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; line-height: 22.4px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.45); }

/* Side tab [GD]: appears once the visitor has scrolled past the quote section */
.side-tab { position: fixed; right: 0; top: 50%; z-index: 40; transform-origin: 100% 100%; transform: translate(0, -50%) rotate(-90deg) translateX(50%); display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 24px; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; border-radius: 8px 8px 0 0; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), background-color .3s, color .3s; }
.side-tab.is-visible { opacity: 1; pointer-events: auto; }
.side-tab:hover { background: #fff; color: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .3s var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { padding: 14px; min-height: 48px; font-size: 12px; }

dialog.popup { border: 0; padding: 0; background: transparent; width: min(480px, 100% - 24px); max-width: 480px; color: var(--ink); }
dialog.popup::backdrop { background: rgba(23,17,17,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.popup__card { position: relative; background: #fff; border-radius: 18px; padding: 48px; transform: translateY(8px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.popup.is-open .popup__card { transform: none; opacity: 1; }
.popup__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.popup h2 { font-size: 34px; font-weight: 800; line-height: 1.06; letter-spacing: var(--heading-ls); margin: 0 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .mobile-nav { display: block; position: fixed; inset: 85px 0 0 0; z-index: 49; background: #fff; padding: 24px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; overflow-y: auto; }
  .mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
  .nav-open .site-header { background: #fff; color: var(--ink); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .estimator { grid-template-columns: 1fr; }
  .summary { position: static; }
  .mobile-bar { display: grid; }
  .side-tab { display: none; }
  .statement, .feature, .teaser, .jules, .faq-wrap, .split-head { grid-template-columns: 1fr; gap: 40px; }
  .svc, .svc--lg { grid-column: span 6; min-height: 420px; }
  .projects, .work-strip .projects { grid-auto-columns: 46%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__inner { padding: 128px 0 64px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero__nav { flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 24px; }
  .hero__caption { flex-basis: 100%; }
  .quote-sec { padding: 64px 0 48px; }
  .step-card { padding: 24px 18px; border-radius: 14px; }
  .options { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 80px 0; }
  .svc, .svc--lg { grid-column: span 12; min-height: 360px; }
  .svc__body { left: 22px; right: 22px; }
  .projects, .work-strip .projects { grid-auto-columns: 72%; }
  .work-strip { padding: 56px 0 48px; }
  .work-strip .project { aspect-ratio: 4 / 3; }   /* keeps the quote form close on phones */
  .stats dt { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 0; }
  .call-alt { text-align: center; }
  .popup__card { padding: 40px 22px 24px; }
  .logo { font-size: 22px; }
  .phone span { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Inner pages (WordPress build)
   Hero treatment matches the approved homepage hero (photo, 70% black, centred).
   Components measured from Solution Roofing's inner pages [SR-inner].
   ===================================================================== */

/* Page hero: the homepage hero, shorter */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--dark); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .7); }
.page-hero__inner { padding: 156px 0 80px; text-align: center; max-width: 880px; margin: 0 auto; } /* SR-inner sub hero padding 156px 0 80px */
.page-hero h1 { font-weight: 800; font-size: clamp(36px, 1.6rem + 2.4vw, 60px); line-height: 1.04; letter-spacing: var(--heading-ls); margin: 0 0 18px; text-wrap: balance; }
.page-hero h1 .accent { color: var(--orange); }
.page-hero__intro { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.9); margin: 0 auto 28px; max-width: 60ch; }
.page-hero .hero__actions { margin-top: 4px; }
.page-hero--plain { background: var(--light); color: var(--ink); }
.page-hero--plain::before { display: none; }
.page-hero--plain .page-hero__intro { color: var(--muted); }

/* Breadcrumbs [SR-inner]: 12px/600 uppercase, ls 1.5px, links muted, current item full colour */
.crumbs { margin: 0 0 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.crumbs li { color: rgba(255,255,255,.65); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.4); }
.crumbs a { color: rgba(255,255,255,.65); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }
.page-hero--plain .crumbs li, .page-hero--plain .crumbs a { color: var(--muted); }
.page-hero--plain .crumbs [aria-current] { color: var(--ink); }

/* Body: long-form copy with a sticky side card */
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-weight: 800; font-size: clamp(28px, 1.2vw + 18px, 38px); line-height: 1.12; letter-spacing: var(--heading-ls); margin: 48px 0 14px; text-wrap: balance; }
.prose h3 { font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: var(--heading-ls); margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.prose ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center; }
.prose ol { padding-left: 22px; margin: 0 0 22px; }
.prose strong { font-weight: 700; }
.prose figure { margin: 28px 0; }
.prose img { border-radius: 6px; }

/* Side card: SR estimator sidebar styling */
.side-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; position: sticky; top: 110px; }
.side-card h2 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.side-card dl { margin: 0 0 20px; }
.side-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.side-card dt { color: var(--muted); }
.side-card dd { margin: 0; font-weight: 700; text-align: right; }
.side-card .btn { width: 100%; }
.side-card .call { margin: 18px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.side-card .call a { display: block; font-size: 22px; font-weight: 800; color: var(--orange); text-decoration: none; letter-spacing: var(--heading-ls); }

/* Feature cards [SR-inner]: white, 1px border, radius 6, padding 32/28, 48px icon tile radius 8 */
.fcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 32px 28px; }
.fcard__icon { width: 48px; height: 48px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin-bottom: 18px; }
.fcard__icon svg { width: 24px; height: 24px; }
.fcard h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: var(--heading-ls); margin: 0 0 8px; }
.fcard p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.section--light .fcard { background: #fff; }

/* Mid-page call-to-action strip [SR-inner]: dark, padding 28px 0, heading 28px/700 */
.mid-cta { background: var(--dark); color: #fff; padding: 28px 0; }
.mid-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.mid-cta p { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: var(--heading-ls); line-height: 1.2; }
.mid-cta p .accent { color: var(--orange); }
.mid-cta__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mid-cta__actions .tel { color: #fff; font-weight: 700; text-decoration: none; font-size: 18px; }

/* Gallery grid (projects) [SR-inner our work]: 12-col grid, gap 24px, radius 6 cards */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery .project { aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery .project[hidden] { display: none; }
.gallery--wide .project:nth-child(6n+1) { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
.project .tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(255,255,255,.15); border-radius: 100px; padding: 4px 10px; margin-bottom: 8px; color: #fff; } /* SR-inner tag chip */
button.project { border: 0; padding: 0; text-align: left; font: inherit; width: 100%; background: var(--dark); }

/* Filter pills [SR-inner]: active dark pill, radius 100, padding 10px 18px, 13px/600, count 11px */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.filters button { border: 1.5px solid var(--border); background: #fff; color: var(--ink); border-radius: 100px; padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.filters button span { font-size: 11px; opacity: .7; margin-left: 4px; }

/* Lightbox (Uncommon Projects uses lightbox galleries): view a job photo larger */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 100% - 32px); width: 100%; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; background: #000; }
.lightbox figcaption { color: #fff; font-size: 15px; margin-top: 12px; text-align: center; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: rgba(0,0,0,.4); color: #fff; font-size: 24px; cursor: pointer; }

/* Suburbs grid [SR-inner location page]: dark, 14px/600 at 92% white, rows split by 12% white rules */
.suburbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.suburbs li { padding: 16px 12px 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92); }

/* Related cards [SR-inner]: white, 1px border, radius 6, padding 28px 24px, link 12px/700 */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related a.rcard { display: block; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 28px 24px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .5s, box-shadow .5s; }
.related a.rcard:hover { border-color: var(--orange); transform: scale(1.01); box-shadow: 0 16px 24px rgba(0,0,0,.08); }
.rcard small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rcard strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: var(--heading-ls); margin-bottom: 6px; }
.rcard p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.rcard .more { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--border); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-list span { color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Form notices */
.form-error { margin: 12px 0 0; padding: 12px 16px; border-radius: 10px; background: #fdecee; color: #8a1c27; font-size: 14px; }
.form-error[hidden] { display: none; }
.btn.is-sending { opacity: .6; pointer-events: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 404 */
.notfound { text-align: center; }
.notfound .areas { justify-content: center; }

/* Utility */
.section--tight { padding: 80px 0; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 24px; }
.note { font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) {
  .body-grid { grid-template-columns: 1fr; gap: 40px; }
  .side-card { position: static; }
  .fcards, .related { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery--wide .project:nth-child(6n+1) { grid-column: span 2; }
  .suburbs { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero__inner { padding: 120px 0 56px; }
  .fcards, .related { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery--wide .project:nth-child(6n+1) { grid-column: auto; aspect-ratio: 4 / 3; }
  .suburbs { grid-template-columns: 1fr 1fr; }
  .mid-cta p { font-size: 22px; }
  .prose { font-size: 17px; }
}

/* ---------- WordPress build additions ---------- */

/* Without JavaScript the quote steps show as one long form; with it, only step 1 shows until site.js is ready */
.no-js [data-next], .no-js [data-back], .no-js .seg, .no-js .step-label { display: none; }
.js form[data-quote]:not([data-ready]) .q-step ~ .q-step { display: none; }

/* Section heading block (same type as the homepage section heads) */
.section-head { max-width: 760px; margin: 0 0 40px; }
.section-head .h2 { margin: 0; }
.section--dark .section-head .eyebrow { color: var(--orange); }

/* Current page in the menu: orange underline, as with all link underlines (Josh, round 2) */
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mobile-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Footer bottom links */
.footer-links { display: inline-flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.45); }
.footer-links a:hover { color: #fff; }

/* Feature cards: four across (trade page) */
.fcards--4 { grid-template-columns: repeat(4, 1fr); }

/* "Jules also makes..." line under cards */
.more-work { margin: 28px 0 0; font-size: 16px; color: var(--muted); }
.more-work a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Popup form spacing */
.popup__form { margin-top: 18px; }
.popup .q-done h3 { font-size: 28px; }

/* Plain hero (privacy policy, new pages) */
.page-hero--plain .hero__facts { color: var(--muted); }

/* Side card and summary links */
.summary dd a, .side-card dd a { color: inherit; }

/* FAQ page groups */
.section--faq { padding: 80px 0; }
.faq-group-title { font-size: clamp(30px, 2vw + 14px, 44px) !important; }

/* Contact page */
.contact-form-head { margin-bottom: 20px; }
.contact-form-head .h2 { margin-bottom: 8px; }
.contact-grid .prose { font-size: 16px; }
.contact-grid .prose h2 { font-size: 24px; margin-top: 8px; }

/* Our work intro */
.intro-prose { margin: 0 auto 32px; text-align: center; max-width: 60ch; }

/* Long pages without a sidebar (privacy policy) */
.prose--page { margin: 0 auto; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .fcards--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fcards--4 { grid-template-columns: 1fr; }
  .section--faq { padding: 56px 0; }
}

/* ---------- Blog (guides) ---------- */
/* Guide cards: the related card [SR-inner] with the photo on top, cropped like the C v2 project cards */
.rcard--media { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.rcard--media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rcard__body { display: block; padding: 24px 24px 28px; }
.blog-grid { align-items: stretch; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.post-note { margin-top: 40px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--light); font-size: 15px; line-height: 1.6; color: var(--muted); }
.post-note p { margin: 0; }
.prose .sources { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.prose .sources li { padding-left: 0; }
.prose .sources li::before { display: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 700; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { border: 1.5px solid var(--border); border-radius: 100px; padding: 8px 14px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--black); border-color: var(--black); color: #fff; }
