/* Pave It Yorkshire: shared stylesheet
   Section 1: design tokens. Existing blue/red palette kept as the base. */

:root {
  /* Brand (unchanged from the original site) */
  --ink: #10213f;
  --navy: #0d2f86;
  --blue: #1e5fd0;
  --hi: #e32a1c;          /* brand red, white text 4.55:1 (AA) */
  --paper: #eef3fb;
  --line: #d5dbdf;
  --mut: #4b5b66;

  /* Brand extras */
  --navy-deep: #0a2470;   /* hero gradient start */
  --hi-deep: #c8221a;     /* red hover/pressed, white text 5.68:1 */
  --blue-focus: #1b6fd1;  /* focus ring on light surfaces, 4.95:1 on white */

  /* Deeper neutrals */
  --n-950: #0b1424;
  --n-900: #0f2234;       /* footer */
  --n-800: #14232e;
  --n-700: #2a3b47;
  --n-600: #4b5b66;       /* same as --mut */
  --n-500: #66757f;       /* form borders, 4.7:1 on white (UI 3:1 needed) */
  --n-300: #cfd6da;       /* image placeholder */
  --n-200: #d5dbdf;       /* same as --line */
  --n-100: #eef3fb;       /* same as --paper */
  --white: #fff;

  /* Warm stone accent */
  --stone-900: #3d342a;
  --stone-700: #6b5d4a;   /* text on stone-100, 5.58:1 */
  --stone-500: #a39279;
  --stone-300: #d9cfbf;
  --stone-100: #f4efe7;

  /* Status */
  --ok: #177f3f;          /* WhatsApp / success, white text 5.07:1 */
  --err: #b3261e;

  /* Text on dark surfaces */
  --on-dark: #fff;
  --on-dark-soft: #dbe6ee;
  --on-dark-mut: #c5d3de;
  --on-footer: #c9d6e0;

  /* Typefaces: system stacks, zero font requests.
     Body: system UI. Headings: heavier humanist/grotesque system faces. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale (fluid where it matters) */
  --fs-xs: .8125rem;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;   /* 17px, as before */
  --fs-md: 1.1rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.17rem;
  --fs-h2: clamp(1.5rem, 4vw, 2.1rem);
  --fs-h1: clamp(2rem, 6vw, 3.3rem);
  --lh-tight: 1.06;
  --lh-snug: 1.15;
  --lh-body: 1.65;
  --ls-tight: -.02em;
  --ls-tighter: -.03em;
  --fw-medium: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
  --fw-black: 900;

  /* Spacing scale (4px base) */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --gutter: 20px;
  --section-y: 46px;
  --measure: 74ch;
  --wrap: 1120px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 14px;
  --r-pill: 50px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(16, 33, 63, .12);
  --sh-md: 0 8px 18px rgba(13, 47, 134, .35);   /* button hover */
  --sh-lg: 0 12px 26px rgba(13, 47, 134, .16);  /* card hover */
  --sh-float: 0 2px 10px rgba(0, 0, 0, .3);     /* floating contact bar */

  /* Motion */
  --t-fast: .2s;
  --t-med: .25s;
  --ease: ease;

  /* Layers */
  --z-header: 20;
  --z-bar: 30;
  --z-cookie: 40;

  /* Breakpoint (for reference; media queries cannot use variables) */
  /* --bp-md: 800px */
}

/* Section 2: base styles (mobile-first). Values match the original inline CSS
   unless noted "AA" (small accessibility fixes). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: var(--fs-base)/var(--lh-body) var(--font-body);
  color: var(--ink);
  background: var(--white);
  padding-bottom: 60px; /* room for the fixed mobile contact bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); margin: 0 0 var(--s-4); }
h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--hi); margin-top: 10px; border-radius: 2px; }
h3 { margin: 22px 0 6px; }
figure { margin: 0; }
figcaption { font-size: var(--fs-sm); color: var(--mut); margin-top: 6px; }
blockquote { margin: 0; border-left: 6px solid var(--hi); padding: 4px 0 4px var(--s-4); }
details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
summary { cursor: pointer; font-weight: var(--fw-bold); }
.num { font-variant-numeric: tabular-nums; }

/* Layout: wrapper, sections, grids */
.w { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-y) 0; }
.alt { background: var(--paper); }
.sec-stone { background: var(--stone-100); }
.txt { max-width: var(--measure); }
.grid { display: grid; gap: var(--s-4); }
.g2, .g3, .g4 { grid-template-columns: 1fr; }
.gal { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
.hg { display: grid; gap: var(--s-6); align-items: center; }

/* Header, nav */
header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--z-header); }
.hd { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: var(--fw-black); font-size: 1.15rem; letter-spacing: var(--ls-tight); text-decoration: none; color: var(--navy); }
.logo img { height: 46px; width: auto; }
.nav { display: none; align-self: stretch; }
.nv { display: flex; align-items: stretch; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nv > li { display: flex; align-items: center; }
.nav a { text-decoration: none; font-weight: var(--fw-medium); color: var(--ink); }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: var(--fw-bold); }
.nt { display: inline-flex; background: none; border: 0; padding: 8px 4px; margin-left: 2px; cursor: pointer; color: var(--ink); }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-fast) var(--ease); }
.hm.open .chev, .hm:hover .chev { transform: rotate(180deg); }
/* Mega-menu panel hangs off the sticky header (header is the positioned ancestor) */
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); padding: var(--s-6) 0; }
.hm:hover > .mega, .hm.open > .mega { display: block; }
.mg { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-6); }
.mh { margin: 0 0 var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-heavy); text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.mc ul { list-style: none; margin: 0; padding: 0; }
.mc a { display: block; padding: 6px 0; }

/* Mobile menu (below 800px) and header actions */
.mt { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); background: var(--white); border: 2px solid var(--navy); border-radius: var(--r-pill); color: var(--navy); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
.mti { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hd .hc { display: none; }
.mm { border-top: 1px solid var(--line); background: var(--white); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain; }
.mm[hidden], .mp[hidden] { display: none; }
.mm ul { list-style: none; margin: 0; padding: 0; }
.mm > ul > li { border-bottom: 1px solid var(--line); }
.ml, .ma { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 var(--gutter); background: none; border: 0; font: inherit; font-weight: var(--fw-bold); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.ma[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mp { padding: 0 var(--gutter) var(--s-4); }
.mp .mh { margin: var(--s-4) 0 var(--s-1); }
.mp a { display: block; padding: 10px 0; min-height: 44px; color: var(--navy); }
.mp .mall { font-weight: var(--fw-bold); }
.mm [aria-current="page"] { color: var(--navy); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; background: var(--hi); color: var(--white);
  font-weight: var(--fw-heavy); font-size: 1rem;
  padding: 13px 22px; border-radius: var(--r-md); border: 0;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: none; box-shadow: none; }
.btn.d { background: var(--navy); color: var(--white); }
.btn.o { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn.s { background: var(--stone-100); color: var(--stone-900); border: 2px solid var(--stone-300); }
.btn.sm { padding: 9px 16px; font-size: var(--fs-sm); }
.btn.blk { display: block; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Hero and proof strip */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--blue)); color: var(--white); padding: 52px 0 44px; }
.hero::before { content: ""; position: absolute; inset: -50%; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px); animation: drift 12s linear infinite; }
.hero .w { position: relative; }
.hero h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-tighter); margin: 0 0 var(--s-4); max-width: 20ch; }
.hero p { max-width: 62ch; font-size: var(--fs-md); margin: 0 0 var(--s-6); color: var(--on-dark-soft); }
.hero h1, .hero p, .hero .cta, .hero .crumb { animation: up .7s both; }
.hero p { animation-delay: .12s; }
.hero .cta { animation-delay: .24s; }
.hl { width: min(300px, 70%); margin: 0 auto; animation: fl 6s ease-in-out infinite; filter: drop-shadow(0 12px 24px rgba(0,0,0,.4)); }
.crumb { font-size: var(--fs-sm); margin-bottom: var(--s-3); color: var(--on-dark-mut); }
.crumb a { color: var(--white); }
.crumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumb li + li::before { content: "/"; margin: 0 .5em; }
.proof { background: var(--hi); color: var(--white); }
.proof .w { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 14px var(--gutter); font-weight: var(--fw-bold); }
.proof a { color: var(--white); }
.mq { background: var(--navy); color: var(--white); overflow: hidden; white-space: nowrap; padding: var(--s-3) 0; font-weight: var(--fw-bold); margin-top: var(--s-8); }
.mq div { display: inline-block; padding-left: 100%; animation: mq 35s linear infinite; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); background: var(--white); transition: transform var(--t-med), box-shadow var(--t-med); }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card.p { border-left: 6px solid var(--hi); }
.card.stone { background: var(--stone-100); border-color: var(--stone-300); }
.card h3 { margin-top: 0; }
.zoom { overflow: hidden; border-radius: var(--r-lg); }
.zoom img { transition: transform .5s; }
.zoom:hover img { transform: scale(1.06); }

/* Tables, images, before/after */
table { border-collapse: collapse; width: 100%; background: var(--white); }
td, th { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.tbl-wrap { overflow-x: auto; }
.ph { background: var(--n-300); aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.ph.ph-portrait { aspect-ratio: 3/4; height: auto; object-fit: contain; max-width: 26rem; margin-inline: auto; display: block; }  /* portrait photo shown whole, never cropped */
.ba { position: relative; aspect-ratio: 16/9; background: var(--n-300); overflow: hidden; --p: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .af { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba i { position: absolute; top: 0; bottom: 0; left: var(--p); width: 4px; background: var(--hi); }
.ba input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: ew-resize; }

/* Forms */
form { display: grid; gap: var(--s-3); }
label, .field { font-weight: var(--fw-medium); display: grid; gap: var(--s-1); }
input, select, textarea {
  font: inherit; padding: var(--s-3); width: 100%;
  border: 1px solid var(--n-500); /* AA: was #8d9ba4 (2.85:1), now 4.7:1 */
  border-radius: var(--r-md); background: var(--white); color: var(--ink);
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--n-600); opacity: 1; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
input:disabled, select:disabled, textarea:disabled { background: var(--paper); color: var(--n-600); cursor: not-allowed; }
.hint { font-size: var(--fs-sm); font-weight: 400; color: var(--mut); }
.alert { padding: var(--s-3) var(--s-4); border-left: 6px solid var(--err); background: var(--stone-100); color: var(--ink); border-radius: var(--r-sm); }
.hp { position: absolute; left: -9999px; }

/* Icons (inline SVG, inherit text colour) */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.btn .icon { margin-right: .4em; }

/* Footer, floating contact bar, cookie banner */
footer { background: var(--n-900); color: var(--on-footer); padding: 40px 0 28px; }
footer a { color: var(--white); }
.fh { margin: 0 0 var(--s-2); font-weight: var(--fw-bold); color: var(--white); }
footer p { margin: 0 0 var(--s-4); }
.fl { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.fl a { display: inline-block; padding: 6px 0; min-height: 32px; }
.fg { row-gap: var(--s-4); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); display: flex; background: var(--white); border-top: 1px solid var(--line); }
.bar a { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; font-size: .95rem; flex: 1; text-align: center; padding: var(--s-4) 4px; font-weight: var(--fw-heavy); text-decoration: none; color: var(--n-800); }
.bar .wa { background: var(--ok); color: var(--white); } /* AA: was #1b9e4f (3.5:1), now 5.07:1 */
.bar .q { background: var(--hi); color: var(--white); }
#cc { position: fixed; left: var(--s-3); right: var(--s-3); bottom: 72px; z-index: var(--z-cookie); background: var(--white); border: 2px solid var(--navy); padding: var(--s-4); border-radius: var(--r-lg); display: none; }
#cc .btn { padding: 10px var(--s-4); margin: var(--s-2) var(--s-2) 0 0; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: var(--s-2); z-index: 100; background: var(--white); color: var(--navy); padding: var(--s-2) var(--s-4); font-weight: var(--fw-bold); border-radius: var(--r-md); }
.skip:focus { left: var(--s-2); }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }

/* Focus states (WCAG AA: 3:1 minimum against adjacent colours) */
:focus-visible { outline: 3px solid var(--blue-focus); outline-offset: 2px; }
.hero :focus-visible, .proof :focus-visible, footer :focus-visible, .mq :focus-visible,
.bar .wa:focus-visible, .bar .q:focus-visible { outline-color: var(--white); }
.btn.d:focus-visible, .btn:focus-visible { box-shadow: 0 0 0 2px var(--white); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--blue-focus); }
.bar a:focus-visible { outline-offset: -4px; }

/* Animations */
@keyframes drift { to { transform: translate(73.5px, 73.5px); } }
@keyframes fl { 50% { transform: translateY(-10px); } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes mq { to { transform: translateX(-100%); } }

/* Larger screens */
@media (min-width: 800px) {
  .nav { display: flex; }
  .hd .hc { display: inline-flex; }
  .mt, .mm { display: none; }
  .g2 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .gal { grid-template-columns: repeat(4, 1fr); }
  .hg { grid-template-columns: 1.2fr .8fr; }
  body { padding-bottom: 0; }
  .bar { left: auto; right: var(--gutter); bottom: var(--gutter); width: auto; border: 0; background: none; }
  .bar a { border-radius: var(--r-pill); padding: 14px 22px; box-shadow: var(--sh-float); }
  .bar .c, .bar .q { display: none; }
  #cc { max-width: 440px; left: var(--gutter); right: auto; bottom: var(--gutter); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Whole-card links */
a.lnk { text-decoration: none; color: inherit; }
.card-img { margin: -20px -20px 14px; width: calc(100% + 40px); max-width: none; border-radius: 8px 8px 0 0; }

/* shared blocks: CTA band, how we work, link chips */
.band { background: var(--hi); color: var(--white); padding: var(--s-6) 0; }
.band .w { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }
.band h2 { margin: 0 0 var(--s-2); color: var(--white); }
.band p { margin: 0; }
.steps { list-style: none; counter-reset: st; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.steps li { counter-increment: st; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); padding: var(--s-5); }
.steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--hi); color: var(--white); font-weight: var(--fw-bold); }
.steps h3 { margin: var(--s-3) 0 var(--s-2); }
.steps p { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-4) 0 0; padding: 0; }
.chips a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: var(--fw-bold); text-decoration: none; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.ph-missing { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; border: 1px dashed var(--n-500, #8a8a8a); color: var(--n-800, #333); font-size: .9rem; }

/* FAQ page: search box, jump list, count */
.faq-s { margin: 0 0 var(--s-3); }
.faq-s input { display: block; width: 100%; max-width: 32rem; margin-top: var(--s-2); }
.faq-n { min-height: 1.5em; margin: 0 0 var(--s-2); }
.faq-jump { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.faqgrp[hidden], .faqi[hidden] { display: none; }

/* Contact page: hints, postcode checker */
.hint { display: block; font-weight: var(--fw-regular, 400); color: var(--n-600); margin-top: var(--s-1); }
.pcrow { display: flex; gap: var(--s-2); }
.pcrow input { flex: 1; min-width: 0; text-transform: uppercase; }
.pcres { margin-top: var(--s-3); font-weight: var(--fw-bold); }
.cbf h3 { margin-top: 0; }

/* Projects grid and before/after slider */
.pjs[hidden], .baxs[hidden] { display: none; }
.pjg { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); margin-top: var(--s-4); }
@media (min-width: 720px) { .pjg { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .pjg { grid-template-columns: repeat(4, 1fr); } }
.pj { margin: 0; }
.pj img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); background: var(--paper); }
.pj figcaption, .bax figcaption { margin-top: var(--s-1); font-size: .9rem; color: var(--n-600, #555); }
.baxw { position: relative; max-width: 760px; margin: var(--s-4) auto 0; }
.bax { margin: 0; display: none; }
.bax.on { display: block; }
.bax-img { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-lg); background: var(--paper); user-select: none; }
.bax-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx-b { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.bx-h { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.5); pointer-events: none; }
.bx-h::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #12304a; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.bx-l, .bx-r { position: absolute; top: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(18,48,74,.85); color: #fff; font-size: .8rem; font-weight: 700; pointer-events: none; }
.bx-l { left: 10px; } .bx-r { right: 10px; }
.bax-img input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.bax-nav { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-3); }
.bax-nav button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bx-dots { display: flex; gap: 8px; }
.bx-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line, #ccc); cursor: pointer; }
.bx-dots i.on { background: var(--navy); }

/* Homepage hero quote layout */
:is(.home-hero,.page-hero) { padding: clamp(28px, 4vw, 48px) 0; background: linear-gradient(115deg, rgba(10,36,112,.88), rgba(13,47,134,.82)), url('/assets/img/after-patio-hull.webp') center/cover no-repeat; }
:is(.home-hero,.page-hero) .hg { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(24px, 5vw, 64px); }
:is(.home-hero,.page-hero) .hero-copy { max-width: 620px; }
:is(.home-hero,.page-hero) .hero-kicker { margin-bottom: 12px !important; color: var(--on-dark-mut) !important; font-size: var(--fs-sm) !important; font-weight: var(--fw-heavy); letter-spacing: .08em; text-transform: uppercase; }
:is(.home-hero,.page-hero) h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); max-width: 15ch; }
:is(.home-hero,.page-hero) .hero-copy > p:not(.hero-kicker):not(.hero-trust) { max-width: 54ch; }
.hero-trust { margin: 20px 0 0 !important; font-size: var(--fs-sm) !important; font-weight: var(--fw-bold); }
.hero-trust span { color: var(--hi); padding: 0 5px; }
:is(.home-hero,.page-hero) .hero-quote { padding: clamp(18px, 2.4vw, 26px); background: var(--white); color: var(--ink); border-top: 5px solid var(--hi); border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
:is(.home-hero,.page-hero) .hero-quote h2 { margin: 0 0 6px; color: var(--navy); font-size: clamp(1.5rem, 2vw, 1.9rem); }
:is(.home-hero,.page-hero) .hero-quote > p { margin: 0 0 12px; color: var(--mut); font-size: var(--fs-sm); }
:is(.home-hero,.page-hero) .hero-qf { gap: 8px; }
:is(.home-hero,.page-hero) .hero-qf label { gap: 3px; color: var(--ink); font-size: var(--fs-sm); }
:is(.home-hero,.page-hero) .hero-qf input { min-height: 40px; padding: 8px 12px; border-color: var(--stone-300); border-radius: var(--r-md); }
:is(.home-hero,.page-hero) .hero-qf button { width: 100%; margin-top: 1px; padding-top: 11px; padding-bottom: 11px; }
:is(.home-hero,.page-hero) .hero-qf small { text-align: center; color: var(--mut); }
@media (max-width: 799px) {
  :is(.home-hero,.page-hero) .hg { grid-template-columns: 1fr; }
  :is(.home-hero,.page-hero) { padding: 30px 0; }
  :is(.home-hero,.page-hero) h1 { font-size: clamp(2.1rem, 9vw, 3.25rem); }
  :is(.home-hero,.page-hero) .hero-quote { max-width: 560px; }
}
:is(.home-hero,.page-hero) .hero-actions { margin-top: 24px; gap: 14px; }
:is(.home-hero,.page-hero) .hero-actions .btn { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; }
:is(.home-hero,.page-hero) .hero-actions svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
:is(.home-hero,.page-hero) .hero-actions .hero-secondary { border-color: rgba(255,255,255,.7); }
:is(.home-hero,.page-hero) .hero-actions .hero-secondary:hover { background: rgba(255,255,255,.1); }
@media (max-width: 480px) { :is(.home-hero,.page-hero) .hero-actions { display: grid; grid-template-columns: 1fr; } }:is(.home-hero,.page-hero) .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 7px 14px;
  border: 1px solid rgba(227, 42, 28, .72);
  border-radius: var(--r-pill);
  background: rgba(227, 42, 28, .16);
  color: var(--on-dark) !important;
  font-size: var(--fs-xs) !important;
  letter-spacing: .1em;
}
:is(.home-hero,.page-hero) .hero-kicker::before {
  content: "\2726";
  color: #ff8d83;
  font-size: 1rem;
  line-height: 1;
}

/* Mobile: keep only a floating WhatsApp shortcut, with no full-width bar edge */
@media (max-width: 799px) {
  body { padding-bottom: 0; }
  .bar {
    left: auto;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
    border: 0;
    background: transparent;
  }
  .bar .c, .bar .q { display: none; }
  .bar .wa {
    display: flex;
    flex: none;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
  }
  .bar .wa span { display: none; }
  .bar .wa .icon { width: 28px; height: 28px; }
}
