/* ==========================================================================
   Willy Marsh Roofing - v2 stylesheet
   Plain CSS, no build step, no framework. Bump the ?v= on the stylesheet
   link in Views/Shared/_head.cshtml whenever this file changes.

   DIRECTION - "dark trade, new bones"
   Dark-first, like the site the client chose a reference for, but the
   material comes from their own job photos rather than a template:

   - Surfaces are Ironsand charcoal (a warm near-black long run colour),
     not pure black. Dark bands carry a faint vertical rib - the profile
     of a long run sheet - drawn with a repeating gradient. Reading
     sections sit on a cool zinc off-white so long copy stays comfortable.
   - Gold is the logo's real gold, #ffcc00, and it is spent in a few
     places: CTAs, the eyebrow dash, the seam on the hero photo, the
     before/after handle. Gold is far too light to sit under white text,
     so anything ON gold uses --on-gold and gold used AS text on a light
     surface uses --gold-ink.
   - Type: Archivo (a wide, heavy grotesk) for display, IBM Plex Sans for
     body, IBM Plex Mono for eyebrows, credentials and numbers - the site
     reads like a spec sheet rather than a brochure.
   - The signature is the pitched seam: every hero photo is cut on a slant
     with a gold line along the cut, the roof line from the logo.

   Two gotchas kept from v1: the mobile menu and the dropdown are
   CSS-driven with a tiny script; and every measurement below 620px was
   chosen for a 320px phone - keep minmax() floors at min(Npx, 100%).
   ========================================================================== */

:root {
    /* Dark surfaces - Ironsand, not black */
    --bg: #1a1b1d;
    --bg-2: #222427;
    --bg-3: #2c2f33;
    --bg-deep: #131415;
    --ink-on-dark: #f3f3f0;
    --mute-on-dark: #b7babd;
    --line-on-dark: rgba(255, 255, 255, .12);

    /* Light surfaces - zinc */
    --paper: #f1f2ef;
    --paper-2: #e7e9e5;
    --card: #ffffff;
    --ink: #1a1b1d;
    --mute: #585c61;
    --line: rgba(26, 27, 29, .14);

    /* Gold - the logo's */
    --gold: #ffcc00;
    --gold-2: #e9b900;
    --gold-ink: #7a5c00;
    --on-gold: #1a1b1d;

    --ff-display: "Oswald", "Arial Narrow", Impact, sans-serif;
    --ff-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    --ff-mono: "Oswald", "Arial Narrow", Impact, sans-serif;  /* eyebrows, labels, numbers - the reference sets these in Oswald too */

    --radius: 2px;
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4rem, 8vw, 6.5rem);
    --header-h: 76px;

    /* The rib - a long run profile, 16px pitch */
    --rib: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 16px);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 .6em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: .02em; line-height: 1.2; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; text-transform: none; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow { max-width: 800px; }

/* Accessibility */
.skip-link {
    position: absolute; top: 0; left: 0;
    padding: .75rem 1rem;
    background: var(--gold); color: var(--on-gold);
    font-weight: 600;
    transform: translateY(-120%);
    z-index: 200;
}
.skip-link:focus { transform: none; outline: 3px solid var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.section :focus-visible { outline-color: var(--gold-ink); }

/* ------------------------------------------------------------ sections */
.section {
    background: var(--paper);
    color: var(--ink);
    padding: var(--section) 0;
}
.section--dark {
    background: var(--bg);
    color: var(--ink-on-dark);
}
.section--raised {
    background: var(--bg-2);
    color: var(--ink-on-dark);
}
.section--rib { background-image: var(--rib); }
.section--flush { padding: 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section__head {
    max-width: 720px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head--centred { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--centred .eyebrow { justify-content: center; }
.section__title { margin-bottom: .5rem; }
.section__sub {
    font-size: 1.1rem;
    color: var(--mute);
    max-width: 60ch;
    text-wrap: pretty;
}
.section--dark .section__sub, .section--raised .section__sub { color: var(--mute-on-dark); }
.section__head--centred .section__sub { margin-left: auto; margin-right: auto; }

/* Eyebrow - mono label with a gold dash */
.eyebrow {
    display: flex; align-items: center; gap: .65rem;
    margin: 0 0 1rem;
    font-family: var(--ff-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.eyebrow::before {
    content: ""; flex: none;
    width: 18px; height: 2px;
    background: var(--gold);
}
.section--dark .eyebrow, .section--raised .eyebrow, .eyebrow--on-dark { color: var(--gold); }

.gold { color: var(--gold); }
.section .gold { color: var(--gold-ink); }
/* The light-section overrides above and below must not leak into dark sections,
   which also carry the .section class for their padding. */
.section--dark .gold, .section--raised .gold { color: var(--gold); }
.section--dark :focus-visible, .section--raised :focus-visible { outline-color: var(--gold); }

/* ------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px;
    padding: .75rem 1.35rem;
    background: var(--gold); color: var(--on-gold);
    font-family: var(--ff-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .03em; line-height: 1.2;  /* buttons in Oswald 600, as the reference */
    text-decoration: none;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; }

.btn--ghost {
    background: transparent; color: inherit;
    border-color: currentColor;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: currentColor; }
.section .btn--ghost:hover { background: rgba(26, 27, 29, .06); }

.btn--lg { min-height: 56px; padding: .95rem 1.75rem; font-size: 1.05rem; }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row--centred { justify-content: center; }

/* Standalone text link with an arrow, mono */
.link-arrow {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px;
    font-family: var(--ff-mono); font-size: .8rem; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none;
    color: var(--gold);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.section .link-arrow { color: var(--gold-ink); }
.section--dark .link-arrow, .section--raised .link-arrow { color: var(--gold); }
.section--dark .btn--ghost:hover, .section--raised .btn--ghost:hover { background: rgba(255, 255, 255, .08); }

/* ------------------------------------------------------------ header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-deep);
    color: var(--ink-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

.nav-bar {
    display: flex; align-items: center; gap: 1.5rem;
    min-height: var(--header-h);
    position: relative;
}
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand__logo { width: auto; height: 40px; }

.nav { margin-left: auto; }
.nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: .25rem;
}
.nav__list li { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 44px; padding: .5rem .85rem;
    font-weight: 500; font-size: .98rem;
    color: var(--ink-on-dark);
    text-decoration: none;
    border-radius: var(--radius);
    position: relative;
}
.nav__link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 6px;
    height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .18s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__caret {
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .7;
}

/* Services dropdown - opens on hover and on focus-within, no script */
.nav__menu {
    list-style: none; margin: 0; padding: .5rem 0;
    position: absolute; top: 100%; left: 0;
    min-width: 260px;
    background: var(--bg-2);
    border: 1px solid var(--line-on-dark);
    border-top: 2px solid var(--gold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
    opacity: 1; visibility: visible; transform: none;
}
.nav__menu a {
    display: block; padding: .6rem 1rem;
    font-size: .95rem; text-decoration: none;
    color: var(--ink-on-dark);
}
.nav__menu a:hover, .nav__menu a.is-active { background: var(--bg-3); color: var(--gold); }
.nav__menu li:first-child a {
    font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--mute-on-dark);
}

.nav__cta-item { display: none; }

.nav-actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.nav-actions__phone {
    display: inline-flex; align-items: center; gap: .45rem;
    min-height: 44px;
    font-family: var(--ff-mono); font-weight: 500; font-size: .95rem; letter-spacing: .02em;
    color: var(--ink-on-dark); text-decoration: none;
}
.nav-actions__phone svg { width: 18px; height: 18px; color: var(--gold); }
.nav-actions__phone:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; padding: 10px;
    background: transparent; border: 1px solid var(--line-on-dark); border-radius: var(--radius);
    cursor: pointer;
    flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-on-dark); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
    .nav-actions__phone span { display: none; }
    .nav__link { padding: .5rem .6rem; font-size: .93rem; }
    .nav__link::after { left: .6rem; right: .6rem; }
}

/* Desktop dropdown items carry a small gold icon */
.nav__menu a { display: flex; align-items: center; gap: .6rem; }
.nav__menu-icon { width: 16px; height: 16px; flex: none; color: var(--gold); }
.nav__menu-icon svg { width: 100%; height: 100%; }
.nav__sub-toggle, .nav__foot { display: none; }

/* ---- Phone panel ---------------------------------------------------- */
body.nav-open { overflow: hidden; }
/* Transform only - never opacity - so the panel is visible even if the
   animation stalls (backgrounded tabs, some in-app browsers). */
@keyframes nav-in { from { transform: translateY(-10px); } to { transform: none; } }

@media (max-width: 999px) {
    .nav-toggle { display: flex; }
    .nav-actions__phone { display: none; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        margin: 0;
        background: var(--bg-deep);
        background-image: var(--rib);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: none;
        flex-direction: column;
    }
    .nav.is-open { display: flex; animation: nav-in .22s ease both; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) .5rem; }
    .nav__list > li { border-bottom: 1px solid var(--line-on-dark); }
    .nav__link {
        width: 100%; min-height: 60px; padding: .8rem .25rem;
        font-family: var(--ff-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em;
    }
    .nav__link::after { display: none; }
    .nav__link.is-active { color: var(--gold); }
    .nav__caret { display: none; }

    /* Services row: link + chevron button, then the chip grid when open */
    .nav__item--has-menu { display: flex; flex-wrap: wrap; align-items: center; }
    .nav__item--has-menu > .nav__link { flex: 1; width: auto; }
    .nav__sub-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px;
        background: var(--bg-3); color: var(--ink-on-dark);
        border: 1px solid var(--line-on-dark); border-radius: var(--radius);
        cursor: pointer;
    }
    .nav__sub-toggle::before {
        content: ""; width: 9px; height: 9px;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .2s ease;
    }
    .nav__item--has-menu.is-open .nav__sub-toggle { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
    .nav__item--has-menu.is-open .nav__sub-toggle::before { transform: translateY(2px) rotate(-135deg); }
    .nav__menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: none;
        flex-basis: 100%; width: 100%; min-width: 0;
        padding: .25rem 0 1rem;
        background: transparent; border: 0; box-shadow: none;
        grid-template-columns: 1fr 1fr; gap: .5rem;
    }
    .nav__item--has-menu.is-open .nav__menu { display: grid; }
    .nav__menu li:first-child { grid-column: 1 / -1; }
    .nav__menu a {
        min-height: 52px; padding: .6rem .75rem;
        background: var(--bg-2);
        border: 1px solid var(--line-on-dark); border-radius: var(--radius);
        font-size: .92rem; font-weight: 500; line-height: 1.25;
    }
    .nav__menu li:first-child a { min-height: 36px; padding: .25rem 0; background: transparent; border: 0; }
    .nav__menu a:hover { background: var(--bg-3); color: var(--ink-on-dark); }
    .nav__menu a.is-active { background: var(--bg-3); border-color: var(--gold); color: var(--gold); }
    .nav__menu-icon { width: 20px; height: 20px; }

    /* Footer: phone, email, booking button, credentials line */
    .nav__foot {
        display: grid; gap: .6rem;
        margin-top: auto;
        padding: 1.25rem var(--gutter) 2rem;
        border-top: 1px solid var(--line-on-dark);
        background: var(--bg);
    }
    .nav__foot .btn { width: 100%; margin-top: .4rem; }
    .nav__foot-phone {
        display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
        font-family: var(--ff-display); font-weight: 700; font-size: 1.7rem; letter-spacing: .01em;
        color: var(--ink-on-dark); text-decoration: none;
    }
    .nav__foot-phone svg { width: 22px; height: 22px; color: var(--gold); }
    .nav__foot-meta {
        margin: 0; min-height: 32px; display: inline-flex; align-items: center;
        font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .04em;
        color: var(--mute-on-dark); text-decoration: none;
    }
    a.nav__foot-meta:hover { color: var(--gold); }
}

/* Phone header: the nav is out of flow below 1000px, so nothing pushes the
   actions to the right unless we do it here - without this the hamburger
   sat in the middle of the bar next to the logo. */
@media (max-width: 999px) {
    .nav-actions { margin-left: auto; }
}
.nav-actions__call { display: none; }
@media (max-width: 619px) {
    :root { --header-h: 64px; }
    .nav-actions > .btn { display: none; }
    .nav-actions { gap: .6rem; }
    .brand__logo { height: 40px; }
    /* Round gold call button beside the menu - the phone is the main conversion
       path on a trades site, so it stays in the header on every page. */
    .nav-actions__call {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px;
        background: var(--gold); color: var(--on-gold);
        border-radius: var(--radius);
        text-decoration: none;
    }
    .nav-actions__call svg { width: 20px; height: 20px; }
}

/* On short landscape phones the header scrolls away to give the page room */
@media (max-height: 520px) and (max-width: 999px) {
    .site-header { position: static; }
}

/* ------------------------------------------------------------- hero */
.hero {
    background: var(--bg);
    color: var(--ink-on-dark);
    position: relative;
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    min-height: min(84vh, 780px);
}
.hero__copy {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 4.5rem)
             max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    background-image: var(--rib);
    display: flex; flex-direction: column; justify-content: center;
}
.hero__title { font-size: clamp(2.6rem, 5.2vw, 4.25rem); margin-bottom: 1.25rem; }
.hero__title .gold { color: var(--gold); }
.hero__text {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--mute-on-dark);
    max-width: 52ch;
    text-wrap: pretty;
}
.hero .btn-row { margin-top: 2rem; }

/* The seam: photo cut on a slant with a gold line along the cut */
.hero__media { position: relative; min-height: 360px; }
.hero__media::before {
    content: ""; position: absolute; inset: 0;
    background: var(--gold);
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    clip-path: polygon(calc(9% + 7px) 0, 100% 0, 100% 100%, 7px 100%);
}
/* A soft dark edge on the far right keeps the photo from fighting the page edge */
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(19, 20, 21, .35));
    pointer-events: none;
}

/* Corner tag on the photo: the real job it shows */
.photo-tag {
    position: absolute; right: 0; bottom: 0; z-index: 2;
    max-width: min(320px, 90%);
    padding: .75rem 1rem;
    background: var(--bg-deep); color: var(--mute-on-dark);
    font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
    border-left: 2px solid var(--gold);
}
.photo-tag strong { display: block; color: var(--ink-on-dark); font-weight: 500; }

@media (max-width: 899px) {
    .hero__grid { grid-template-columns: 1fr; min-height: 0; }
    .hero__copy { padding: clamp(2.5rem, 7vw, 4rem) var(--gutter); }
    .hero__media { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
    .hero__media::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
    .hero__media img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 0 calc(88% - 7px)); }
    .hero__media::after { display: none; }
    .photo-tag { display: none; }
}

/* Credentials rail - a mono ticker, scrolls sideways on phones */
.rail {
    background: var(--bg-deep);
    color: var(--ink-on-dark);
    border-top: 1px solid var(--line-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
}
.rail__list {
    list-style: none; margin: 0; padding: 0;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.rail__list::-webkit-scrollbar { display: none; }
.rail__list li {
    flex: 1 0 auto;
    display: inline-flex; align-items: center; gap: .6rem;
    padding: 1rem 1.5rem;
    border-right: 1px solid var(--line-on-dark);
    font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap;
}
.rail__list li:last-child { border-right: 0; }
.rail__list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
/* Eight items never fit one row, even at 1920px. From 1000px up the rail is a
   4 x 2 grid inside the container; below that it stays a sideways scroller. */
@media (min-width: 1000px) {
    .rail__list {
        display: grid; grid-template-columns: repeat(4, 1fr);
        max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
        overflow: visible;
    }
    .rail__list li { white-space: normal; padding: .9rem 1.25rem; }
    .rail__list li:nth-child(-n+4) { border-bottom: 1px solid var(--line-on-dark); }
    .rail__list li:nth-child(4n) { border-right: 0; }
}

/* ------------------------------------------------------- photo cards */
/* Four core services: 4-up, then 2-up, then stacked - never 3 + 1 */
.photo-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 1099px) { .photo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .photo-cards { grid-template-columns: 1fr; } }
.photo-card {
    display: flex; flex-direction: column;
    background: var(--bg-2);
    color: var(--ink-on-dark);
    text-decoration: none;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.photo-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-card:hover .photo-card__media img { transform: scale(1.04); }
.photo-card__body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; position: relative; }
.photo-card__body::before {
    content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
    background: var(--gold);
    transition: width .3s ease;
}
.photo-card:hover .photo-card__body::before, .photo-card:focus-visible .photo-card__body::before { width: 100%; }
.photo-card__title { margin: 0; font-size: 1.3rem; }
.photo-card__text { margin: 0; color: var(--mute-on-dark); font-size: .98rem; flex: 1; }
.photo-card .link-arrow { margin-top: .5rem; }

/* Compact rows for the two specialist services */
.row-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.row-card {
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1.35rem;
    background: var(--bg-3); color: var(--ink-on-dark);
    border: 1px solid var(--line-on-dark);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    text-decoration: none;
    min-height: 44px;
}
.row-card:hover { background: #33373c; }
.row-card__icon { flex: none; width: 40px; height: 40px; color: var(--gold); }
.row-card__icon svg { width: 100%; height: 100%; }
.row-card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.row-card p { margin: 0; color: var(--mute-on-dark); font-size: .95rem; }

/* --------------------------------------------------------- cards (light) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 1.25rem;
}
.card {
    display: flex; flex-direction: column; gap: .6rem;
    padding: 1.6rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    position: relative;
}
.card--link { min-height: 44px; }
.card--link::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.card--link:hover::after, .card--link:focus-visible::after { transform: scaleX(1); }
.card__icon { width: 36px; height: 36px; color: var(--gold-ink); }
.card__icon svg { width: 100%; height: 100%; }
.card__title { margin: 0; font-size: 1.25rem; }
.card__text { margin: 0; color: var(--mute); font-size: .98rem; flex: 1; }
.card__link {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
    font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold-ink); margin-top: .25rem;
}
.card__link svg { width: 16px; height: 16px; flex: none; transition: transform .15s ease; }
.card--link:hover .card__link svg { transform: translateX(4px); }
.section--dark .card, .section--raised .card {
    background: var(--bg-3); border-color: var(--line-on-dark); color: var(--ink-on-dark);
}
.section--dark .card__icon, .section--raised .card__icon, .section--dark .card__link, .section--raised .card__link { color: var(--gold); }
.section--dark .card__text, .section--raised .card__text { color: var(--mute-on-dark); }

/* -------------------------------------------------------- before / after */
.ba {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-3);
    border: 1px solid var(--line-on-dark);
    --pos: 50%;
    user-select: none;
    -webkit-user-select: none;
}
.ba img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle {
    position: absolute; top: 0; bottom: 0;
    left: var(--pos);
    width: 2px; margin-left: -1px;
    background: var(--gold);
    pointer-events: none;
}
.ba__handle::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: var(--gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1b1d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 3 12 9 18'/%3E%3Cpolyline points='15 6 21 12 15 18'/%3E%3C/svg%3E");
    background-size: 24px; background-position: center; background-repeat: no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.ba__label {
    position: absolute; top: .75rem; z-index: 2;
    padding: .35rem .6rem;
    font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    background: var(--bg-deep); color: var(--ink-on-dark);
    pointer-events: none;
}
.ba__label--before { left: .75rem; }
.ba__label--after { right: .75rem; background: var(--gold); color: var(--on-gold); }
/* The range input drives it: full-size and invisible, so it works with a
   mouse, a finger, and the keyboard - and there is nothing to script for a11y */
.ba__range {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none; appearance: none;
    background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
.ba:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.ba__caption {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
    margin-top: 1rem;
    font-size: .95rem; color: var(--mute-on-dark);
}
.ba__caption strong { color: var(--ink-on-dark); font-weight: 500; }

.ba-wrap { max-width: 1000px; margin: 0 auto; }

/* ----------------------------------------------------------- about */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
/* The copy runs well past the photo. Centred, the photo floated mid-column with
   a blank gap above it; top-aligned and sticky it stays beside whatever you are
   reading. Released on one column. */
.about-split__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.about-split__media img { width: 100%; border-radius: var(--radius); }
.stat-badge {
    position: absolute; right: -.5rem; bottom: -.5rem;
    display: flex; flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--gold); color: var(--on-gold);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.stat-badge__value { font-family: var(--ff-display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.stat-badge__label { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }
.about-split__copy p { text-wrap: pretty; }
.about-split__tagline { font-family: var(--ff-display); font-size: 1.25rem; margin-top: 1.25rem; }

@media (max-width: 899px) {
    .about-split { grid-template-columns: 1fr; }
    .about-split__media { max-width: 560px; position: relative; top: auto; }
    .stat-badge { right: .75rem; bottom: .75rem; }
}

/* Tick lists */
.ticks, .creds {
    list-style: none; margin: 1.25rem 0 0; padding: 0;
    display: grid; gap: .5rem .75rem;
}
.creds { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: 1.5rem; }
.ticks li, .creds li {
    position: relative; padding-left: 1.75rem;
    font-size: 1rem; line-height: 1.5;
}
.ticks li::before, .creds li::before {
    content: ""; position: absolute; left: 0; top: .3em;
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5c00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9 17.5 20 6.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section--dark .ticks li::before, .section--raised .ticks li::before, .section--dark .creds li::before, .section--raised .creds li::before, .book .creds li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcc00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9 17.5 20 6.5'/%3E%3C/svg%3E");
}
.ticks a { color: var(--gold-ink); }
.section--dark .ticks a, .section--raised .ticks a { color: var(--gold); }

/* ---------------------------------------------------------- process */
.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.25rem;
}
.process__step {
    padding: 1.75rem 1.5rem 1.75rem;
    background: var(--bg-3);
    border: 1px solid var(--line-on-dark);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
}
.process__num {
    display: block;
    font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .14em;
    color: var(--gold);
    margin-bottom: 1rem;
}
.process__step h3 { margin-bottom: .5rem; }
.process__step p { color: var(--mute-on-dark); margin: 0; font-size: .98rem; }

/* Ordered steps used on service pages (light) */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.25rem;
    counter-reset: steps;
}
.steps__item {
    counter-increment: steps;
    padding: 1.5rem 1.5rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.steps__item::before {
    content: "0" counter(steps);
    display: block;
    font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .14em;
    color: var(--gold-ink);
    margin-bottom: .75rem;
}
.steps__title { margin-bottom: .4rem; }
.steps__item p { margin: 0; color: var(--mute); font-size: .98rem; }

/* ------------------------------------------------------------ gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.25rem;
}
.gallery__item { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item figcaption { padding: .9rem 1rem 1rem; font-size: .93rem; line-height: 1.45; }
.gallery__item figcaption strong { display: block; font-weight: 600; margin-bottom: .15rem; }
.gallery__item figcaption span { color: var(--mute); }
.section--dark .gallery__item, .section--raised .gallery__item { background: var(--bg-3); border-color: var(--line-on-dark); }
.section--dark .gallery__item figcaption span, .section--raised .gallery__item figcaption span { color: var(--mute-on-dark); }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.25rem;
    max-width: 960px;
}
.video-grid__item { margin: 0; }
.video-grid__item video { width: 100%; aspect-ratio: 9 / 16; background: var(--bg-deep); border-radius: var(--radius); }
.video-grid__item figcaption { padding: .75rem 0 0; font-size: .93rem; line-height: 1.45; }
.video-grid__item figcaption strong { display: block; font-weight: 600; }
.video-grid__item figcaption span { color: var(--mute); }
.section--dark .video-grid__item figcaption span { color: var(--mute-on-dark); }

/* Job header strip on Our Work */
.job-head {
    display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: baseline;
    padding-bottom: 1.5rem; margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}
.job-head__num {
    font-family: var(--ff-display); font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1;
    color: var(--gold-ink);
}
.section--dark .job-head { border-color: var(--line-on-dark); }
.section--dark .job-head__num { color: var(--gold); }
.job-head h2 { margin-bottom: .35rem; }
.job-head p { margin: 0; color: var(--mute); }
.section--dark .job-head p { color: var(--mute-on-dark); }
@media (max-width: 619px) { .job-head { grid-template-columns: 1fr; gap: .25rem; } }

/* --------------------------------------------------------------- FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq__q {
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 0;
    min-height: 56px;
    font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25;
    cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: ""; flex: none;
    width: 12px; height: 12px;
    border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-right: 4px;
}
.faq[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 0 1.25rem; color: var(--mute); max-width: 70ch; }
.section--dark .faq-list, .section--dark .faq { border-color: var(--line-on-dark); }
.section--dark .faq__q::after { border-color: var(--gold); }
.section--dark .faq__a { color: var(--mute-on-dark); }

/* ---------------------------------------------------------- page hero */
.page-hero {
    background: var(--bg);
    color: var(--ink-on-dark);
    overflow: hidden;
}
.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 12fr) minmax(0, 11fr);
    min-height: 420px;
}
.page-hero__copy {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem)
             max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    background-image: var(--rib);
    display: flex; flex-direction: column; justify-content: center;
}
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: .75rem; }
.page-hero__sub { font-size: 1.1rem; color: var(--mute-on-dark); max-width: 52ch; text-wrap: pretty; margin: 0; }
.page-hero__crumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1.25rem;
    font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--mute-on-dark);
}
.page-hero__crumbs a { color: var(--gold); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.page-hero__crumbs .sep { opacity: .5; }
.page-hero__media { position: relative; min-height: 260px; }
.page-hero__media::before {
    content: ""; position: absolute; inset: 0;
    background: var(--gold);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.page-hero__media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    clip-path: polygon(calc(12% + 7px) 0, 100% 0, 100% 100%, 7px 100%);
}
@media (max-width: 899px) {
    .page-hero__grid { grid-template-columns: 1fr; min-height: 0; }
    .page-hero__copy { padding: clamp(2rem, 6vw, 3rem) var(--gutter); }
    .page-hero__media { min-height: 0; aspect-ratio: 16 / 9; order: -1; }
    .page-hero__media::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%); }
    .page-hero__media img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 0 calc(84% - 7px)); }
}

/* ----------------------------------------------------------- service */
.service {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.service__copy p { text-wrap: pretty; }
.service__title { margin-bottom: 1rem; }
.service__tagline { font-family: var(--ff-display); font-size: 1.2rem; margin-top: 1.25rem; }
.service__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.service__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 899px) {
    .service { grid-template-columns: 1fr; }
    .service__media { position: static; order: -1; max-width: 640px; }
}

.prose { max-width: 70ch; }
.prose p { text-wrap: pretty; }

/* --------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

.detail-list { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.detail-list > div { display: flex; gap: 1rem; align-items: flex-start; }
.detail-list__icon { flex: none; width: 40px; height: 40px; padding: 9px; color: var(--gold-ink); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-list__icon svg { width: 100%; height: 100%; }
.detail-list dt { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.detail-list > div > div { min-width: 0; }
.detail-list dd { margin: .1rem 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.detail-list dd a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.detail-list dd a:hover { color: var(--gold-ink); }

.map-placeholder {
    margin-top: 2rem; padding: 2rem 1.5rem;
    border: 1px dashed var(--line); border-radius: var(--radius);
    color: var(--mute); font-size: .95rem; text-align: center;
}

/* ------------------------------------------------------------- forms */
.form { display: grid; gap: 1.1rem; }
.form--panel { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form--dark { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--bg-3); border: 1px solid var(--line-on-dark); border-top: 2px solid var(--gold); border-radius: var(--radius); color: var(--ink-on-dark); }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.1rem; }
.form__row { display: grid; gap: .4rem; }
.form label {
    font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--mute);
}
.form--dark label { color: var(--mute-on-dark); }
.form__input {
    width: 100%; min-height: 52px;
    padding: .75rem .9rem;
    font: inherit; color: var(--ink);
    background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
}
.form__input:focus { outline: 2px solid var(--gold-ink); outline-offset: 0; border-color: var(--gold-ink); }
.form--dark .form__input { background: var(--bg-deep); color: var(--ink-on-dark); border-color: var(--line-on-dark); }
.form--dark .form__input:focus { outline-color: var(--gold); border-color: var(--gold); }
textarea.form__input { resize: vertical; min-height: 120px; }
.form__error { display: block; font-size: .88rem; color: #b42318; }
.form--dark .form__error { color: #ffb4a8; }
.form__error:empty { display: none; }
.input-validation-error { border-color: #b42318 !important; }
.form__note { margin: 0; font-size: .92rem; color: var(--mute); }
.form--dark .form__note { color: var(--mute-on-dark); }
.form__note a { color: inherit; }
.form .btn { justify-self: start; }

.alert { padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1rem; font-size: .98rem; }
.alert:empty { display: none; }
.alert--success { background: #eaf6ea; border-color: #2e7d32; color: #1b4d1e; }
.alert--error { background: #fdecea; border-color: #b42318; color: #7a1a12; }
.alert ul { margin: .25rem 0 0 1.2rem; padding: 0; }

/* --------------------------------------------------------- book band */
.book {
    background: var(--bg);
    background-image: var(--rib);
    color: var(--ink-on-dark);
    padding: var(--section) 0;
    border-top: 1px solid var(--line-on-dark);
}
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 899px) { .book__grid { grid-template-columns: 1fr; } }
.book__title .gold { color: var(--gold); }
.book__lead { font-size: 1.1rem; color: var(--mute-on-dark); text-wrap: pretty; }
.book__left, .contact__details { min-width: 0; }
.book__contact { display: grid; gap: .25rem; margin-top: 2rem; }
.book__contact a {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
    max-width: 100%;
    color: var(--ink-on-dark); text-decoration: none;
    overflow-wrap: anywhere;
}
.book__contact a:hover { color: var(--gold); }
.book__contact svg { width: 18px; height: 18px; color: var(--gold); }
.book__phone { font-family: var(--ff-display); font-weight: 700; font-size: 1.8rem; letter-spacing: .01em; }
.book__alt, .book__email { font-family: var(--ff-mono); font-size: .95rem; }

/* ----------------------------------------------------------- CTA band */
.cta-band {
    background: var(--gold);
    color: var(--on-gold);
}
.cta-band__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.cta-band__title { margin: 0 0 .25rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band__text { margin: 0; font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn { background: var(--bg-deep); border-color: var(--bg-deep); color: var(--ink-on-dark); }
.cta-band .btn:hover { background: var(--bg); border-color: var(--bg); }
.cta-band .btn--ghost { background: transparent; color: var(--on-gold); border-color: var(--on-gold); }
.cta-band .btn--ghost:hover { background: rgba(26, 27, 29, .1); }
.cta-band :focus-visible { outline-color: var(--on-gold); }

/* ------------------------------------------------------------ footer */
.site-footer {
    background: var(--bg-deep);
    background-image: var(--rib);
    color: var(--mute-on-dark);
    border-top: 3px solid var(--gold);
}
/* Four named areas so the order can change per breakpoint */
.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr .9fr .9fr 1.25fr;
    grid-template-areas: "brand services company contact";
    gap: 2.5rem;
    padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4rem);
}
.footer__brand { grid-area: brand; }
.footer__services { grid-area: services; }
.footer__company { grid-area: company; }
.footer__contact-col { grid-area: contact; }
@media (max-width: 999px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "brand contact" "services company";
        gap: 2rem;
    }
}
@media (max-width: 559px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "contact contact" "brand brand" "services company";
        gap: 1.5rem 1rem;
    }
}
.footer__heading {
    display: flex; align-items: center; gap: .6rem;
    margin: 0 0 .75rem;
    font-family: var(--ff-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold);
}
.footer__heading::before { content: ""; width: 14px; height: 2px; background: var(--gold); }
.footer__logo-link { display: inline-flex; min-height: 44px; align-items: center; }
.footer__logo { height: 44px; width: auto; }
.footer__text { font-size: .95rem; max-width: 34ch; text-wrap: pretty; margin-top: .75rem; }
.footer__tagline { font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-on-dark); margin: .5rem 0 0; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list a, .footer__contact a {
    display: inline-flex; align-items: center; min-height: 40px;
    color: var(--ink-on-dark); text-decoration: none; font-size: .95rem; line-height: 1.3;
}
.footer__list a:hover, .footer__contact a:hover { color: var(--gold); }

/* Contact card */
.footer__card {
    padding: 1.4rem 1.4rem 1.5rem;
    background: var(--bg-2);
    border: 1px solid var(--line-on-dark);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
}
.footer__phone {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
    font-family: var(--ff-display); font-weight: 700; font-size: 1.7rem; letter-spacing: .01em;
    color: var(--ink-on-dark); text-decoration: none;
    margin-bottom: .25rem;
}
.footer__phone svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.footer__phone:hover { color: var(--gold); }
.footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: center; font-size: .95rem; min-height: 36px; overflow-wrap: anywhere; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.footer__card .btn { width: 100%; margin-top: 1rem; }

/* Bottom bar */
.footer__bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
    padding-top: 1.1rem; padding-bottom: 1.1rem;
    border-top: 1px solid var(--line-on-dark);
    font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .04em;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--ink-on-dark); }
.footer__top {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
    text-decoration: none; color: var(--ink-on-dark);
}
.footer__top svg { width: 16px; height: 16px; transform: rotate(-90deg); color: var(--gold); }
.footer__top:hover { color: var(--gold); }
@media (max-width: 559px) {
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .footer__top { order: -1; align-self: stretch; justify-content: center; border-bottom: 1px solid var(--line-on-dark); margin-bottom: .5rem; }
}
.footer__social { margin-top: 1.25rem; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; }
.social__link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line-on-dark); border-radius: var(--radius);
    color: var(--ink-on-dark);
}
.social__link:hover { color: var(--gold); border-color: var(--gold); }
.social__icon { width: 18px; height: 18px; }

/* ----------------------------------------------- sticky call button */
.fab-call {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: none; align-items: center; justify-content: center; gap: .5rem;
    min-height: 56px;
    background: var(--gold); color: var(--on-gold);
    font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.fab-call svg { width: 20px; height: 20px; }
@media (max-width: 619px) {
    .fab-call { display: flex; }
    body { padding-bottom: 56px; }
}

/* --------------------------------------------------------- sponsor */
.sponsor-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sponsor-split__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.sponsor-split__credit { margin-top: .5rem; font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 899px) { .sponsor-split { grid-template-columns: 1fr; } .sponsor-split__media { max-width: 480px; } }

/* ------------------------------------------------- hero entrance */
@media (prefers-reduced-motion: no-preference) {
    .hero__copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
    .hero__copy > :nth-child(2) { animation-delay: .08s; }
    .hero__copy > :nth-child(3) { animation-delay: .16s; }
    .hero__copy > :nth-child(4) { animation-delay: .24s; }
    .hero__copy > :nth-child(5) { animation-delay: .32s; }
    .hero__media img { animation: reveal .9s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------ print */
@media print {
    .site-header, .site-footer, .fab-call, .cta-band, .book, .nav-toggle { display: none !important; }
    body { background: #fff; color: #000; }
    .section--dark, .section--raised, .hero, .page-hero { background: #fff; color: #000; }
}

/* ---------------------------------------------------------- utilities */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.mt-lg { margin-top: clamp(3rem, 6vw, 4.5rem); }
.ba--square { aspect-ratio: 1 / 1; }
.ba-wrap--narrow { max-width: 760px; }
.centred { text-align: center; }
.centred .eyebrow { justify-content: center; }
.lead { font-size: 1.1rem; color: var(--mute); }
.section--dark .lead, .section--raised .lead { color: var(--mute-on-dark); }

/* ------------------------------------------------- phone de-duplication */
/* On a phone the same two calls to action stacked up five deep: the section's
   own Book + Call buttons, the gold band with the same pair, the footer card
   with the phone and Book again, and a Book link in the footer's Company list -
   all while the sticky call bar pins the number to the bottom of the screen.
   Each rule below removes one repeat; the reason is next to it. */
@media (max-width: 619px) {
    /* Same breakpoint as .fab-call. While that bar is on screen the "Call ..."
       ghost button beside every Book button is the same link twice. */
    .btn--ghost[href^="tel:"] { display: none; }
    /* The footer's contact card sits directly under the band on a phone and
       carries the same Book button and the phone number in large type. */
    .cta-band { display: none; }
}

/* The credentials rail was a sideways scroller with the scrollbar hidden: on a
   phone it showed one item cut mid-word and nothing said it scrolled. Below the
   1000px grid it is now two columns that wrap, so all eight are visible. */
@media (max-width: 999px) {
    .rail__list { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
    .rail__list li {
        white-space: normal; padding: .8rem 1rem; font-size: .72rem; line-height: 1.35;
        border-bottom: 1px solid var(--line-on-dark);
    }
    .rail__list li:nth-child(odd) { border-right: 1px solid var(--line-on-dark); }
    .rail__list li:nth-child(even) { border-right: 0; }
    .rail__list li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------------------------------------------------------------------------
   Credentials rail as eight cards (revision brief, 18 Sep 2026): "individual
   outlined cards with clear spacing", each with a heading and a supporting
   line. Overrides the one-line spec-rail styling above at every width: the
   bordered-grid look is replaced by spaced, outlined cells that alternate a
   subtle gold tint. Four per row on desktop, two on tablet, one on a phone.
   --------------------------------------------------------------------------- */
.rail__list--cards,
.rail__list--cards.rail__list {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem;
    max-width: var(--container); margin: 0 auto; padding: 1.25rem var(--gutter);
    overflow: visible;
}
.rail__list--cards li,
.rail__list--cards li:nth-child(-n+4),
.rail__list--cards li:nth-child(4n),
.rail__list--cards li:last-child {
    display: grid; grid-template-columns: 22px 1fr; column-gap: .7rem; align-items: start;
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px;
    background: var(--bg-2);
    white-space: normal; text-transform: none; letter-spacing: 0;
    font-family: var(--ff-body); font-size: .86rem; line-height: 1.4;
}
.rail__list--cards li:nth-child(even) { background: rgba(255, 204, 0, .07); border-color: rgba(255, 204, 0, .35); }
.rail__list--cards li svg { margin-top: .1rem; }
.rail__list--cards li span { display: block; color: var(--ink-on-dark); }
.rail__list--cards li strong {
    display: block; margin-bottom: .15rem;
    font-family: var(--ff-display); font-weight: 600; font-size: .92rem;
    letter-spacing: .03em; text-transform: uppercase; color: var(--gold);
}
.rail__list--cards li span::after { content: ""; }
@media (max-width: 999px) { .rail__list--cards, .rail__list--cards.rail__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rail__list--cards, .rail__list--cards.rail__list { grid-template-columns: 1fr; } }

/* Urgent-leak line on the repairs page (revision brief, 18 Sep 2026). */
.service__urgent { padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--bg-2); margin: 1.5rem 0; }
.service__urgent a { color: var(--gold); font-weight: 600; white-space: nowrap; }
