/* ==========================================================================
   Next Step Concrete site stylesheet
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Utilities
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */

@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/oswald-latin-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* Metric-matched fallback so the swap to Oswald does not shift layout. */
@font-face {
    font-family: "Oswald Fallback";
    src: local("Arial");
    size-adjust: 82%;
    ascent-override: 145.5%;
    descent-override: 35.2%;
    line-gap-override: 0%;
}

:root {
    /* Brand colours sampled from the logo: periwinkle #7188c1, navy #1e355d, dark navy #0f2b4b. */
    --navy-950: #0f2b4b;
    --navy-900: #1e355d;
    --navy-800: #294778;
    --navy-700: #35578f;
    --brand: #7188c1;
    --brand-strong: #566fad;
    --brand-strong-hover: #46609f;
    --brand-light: #9fb1df;
    --blue-600: #3f5896;
    --blue-400: #7188c1;
    --blue-200: #b9c6e6;
    --blue-100: #e6ebf7;
    --blue-50: #f4f6fb;
    --ink: #111c2e;
    --muted: #4b5870;
    --line: #dde3ee;
    --white: #fff;
    --danger: #b3261e;
    --success-bg: #e7f5ec;
    --success-ink: #14532d;

    --font-display: "Oswald", "Oswald Fallback", "Arial Narrow", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 6px;
    --radius-lg: 14px;
    --container: 76rem;
    --gutter: clamp(1.125rem, 4vw, 2rem);
    --section: clamp(4rem, 8vw, 7rem);
    --header-h: 4.75rem;
    --shadow: 0 1px 2px rgba(8, 20, 40, .05), 0 10px 28px rgba(8, 20, 40, .08);
    --shadow-lg: 0 2px 4px rgba(8, 20, 40, .06), 0 24px 60px rgba(8, 20, 40, .16);
    --grid-line: rgba(179, 193, 222, .07);
    --stripe: repeating-linear-gradient(-45deg, var(--brand) 0 .75rem, var(--navy-950) .75rem 1.5rem);
}

/* 2. Base ----------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    color: var(--navy-900);
    text-wrap: balance;
}

h1, h2 { text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.3vw, 3rem); }
h3 { font-size: 1.375rem; line-height: 1.22; letter-spacing: .01em; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-underline-offset: .18em; }
a:hover { color: var(--navy-900); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

mark { background: none; color: var(--brand-light); }

:where(ul[class], ol[class]) { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--blue-600);
    outline-offset: 3px;
    border-radius: 2px;
}

.on-dark :focus-visible,
.on-dark:focus-visible,
.on-brand :focus-visible { outline-color: var(--white); }

/* 3. Layout --------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: 50rem; }

.section { position: relative; padding-block: var(--section); }
.section--tint { background: var(--blue-50); }

.section--dark {
    background-color: var(--navy-900);
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    color: var(--blue-200);
}

.section--dark h2, .section--dark h3 { color: var(--white); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.125rem; }
.section--dark .section__head p { color: var(--blue-200); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue-600);
}

.eyebrow::before { content: ""; width: 2.25rem; height: 3px; background: var(--brand); }
.on-dark .eyebrow { color: var(--brand-light); }
.on-dark .eyebrow::before { background: var(--brand-light); }
.on-brand .eyebrow { color: var(--white); }
.on-brand .eyebrow::before { background: var(--white); }

.grid { display: grid; gap: 1.5rem; }

@media (min-width: 40rem) {
    .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 60rem) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

@media (min-width: 60rem) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--aside { grid-template-columns: 4fr 7fr; align-items: start; }
    .split--aside > :first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* 4. Components ----------------------------------------------------------- */

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--navy-900);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius);
}

.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.stripe { height: .5rem; background: var(--stripe); }

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3.25rem;
    padding: .75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand-strong); color: var(--white); box-shadow: 0 6px 18px rgba(86, 111, 173, .35); }
.btn--primary:hover { background: var(--brand-strong-hover); color: var(--white); }

.on-dark .btn--primary,
.on-brand .btn--primary { background: var(--white); color: var(--navy-950); box-shadow: 0 6px 18px rgba(8, 20, 40, .28); }

.on-dark .btn--primary:hover,
.on-brand .btn--primary:hover { background: var(--blue-100); color: var(--navy-950); }

.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); color: var(--white); }

.btn--outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

.btn--outline-light { border-color: rgba(179, 193, 222, .55); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--navy-900);
}

.text-link .icon { width: 1.1rem; height: 1.1rem; color: var(--blue-600); transition: transform .18s ease; }
.text-link:hover { color: var(--blue-600); }
.text-link:hover .icon { transform: translateX(4px); }

/* Top bar + header */

.topbar { display: none; background: var(--navy-950); color: var(--blue-200); font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: .5rem; }
.topbar__list { display: flex; gap: 1.75rem; }
.topbar__list li { display: flex; align-items: center; gap: .5rem; }
.topbar a { display: inline-block; padding-block: .15rem; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar .icon { color: var(--brand-light); width: 1rem; height: 1rem; }

@media (min-width: 60rem) { .topbar { display: block; } }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 20px rgba(8, 20, 40, .05);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.site-header__logo { flex: none; }
.site-header__logo img { width: 9.5rem; }

@media (min-width: 40rem) { .site-header__logo img { width: 11.5rem; } }

.site-header__actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--navy-900);
    color: var(--white);
    cursor: pointer;
}

.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon--close,
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.site-nav__list { display: flex; flex-direction: column; }

.site-nav__item { position: relative; }
.site-nav__parent { display: flex; align-items: center; gap: .25rem; }
.site-nav__parent .site-nav__link { flex: 1; }

.site-nav__link {
    position: relative;
    display: block;
    padding: .9rem 0;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--navy-900);
    border-bottom: 1px solid var(--line);
}

.site-nav__link[aria-current="page"] { color: var(--blue-600); }

.site-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--navy-900);
    cursor: pointer;
}

.site-nav__toggle .icon { transition: transform .2s ease; }
.site-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.site-nav__sub { display: none; }
.site-nav__sub[data-open] { display: block; }
.site-nav__sub a { display: block; padding: .7rem .9rem; font-size: 1rem; font-weight: 600; color: var(--navy-900); text-decoration: none; border-radius: var(--radius); }
.site-nav__sub a:hover { background: var(--blue-50); color: var(--blue-600); }
.site-nav__sub-all a { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue-600); }
.site-nav__sub-all .icon { width: 1rem; height: 1rem; }

@media (max-width: 59.99rem) {
    .site-nav__parent { border-bottom: 1px solid var(--line); }
    .site-nav__parent .site-nav__link { border-bottom: 0; }
    .site-nav__sub { padding: .25rem 0 .75rem .75rem; border-bottom: 1px solid var(--line); }
}

.header-call .header-call__text { display: none; }

@media (min-width: 30rem) {
    .header-call .header-call__text { display: inline; }
}

@media (max-width: 59.99rem) {
    .site-header__bar { flex-wrap: wrap; }
    .site-header__actions { margin-left: auto; }
    .site-nav { order: 3; flex-basis: 100%; padding-bottom: 1rem; }
    .header-call { min-height: 3.25rem; padding-inline: 1rem; }

    .js .nav-toggle { display: inline-flex; }
    .js .site-nav { display: none; }
    .js .site-nav[data-open] { display: block; }
}

@media (min-width: 60rem) {
    .site-nav { margin-left: auto; margin-right: 1.75rem; }
    .site-nav__list { flex-direction: row; gap: 1.75rem; }
    .site-nav__link { padding: .5rem 0; border-bottom: 0; white-space: nowrap; }

    .site-nav__link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: var(--brand);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .2s ease;
    }

    .site-nav__link:hover { color: var(--navy-900); }
    .site-nav__link:hover::after,
    .site-nav__item--has-sub:hover .site-nav__link::after,
    .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
    .site-nav__link[aria-current="page"] { color: var(--navy-900); }

    .site-nav__toggle { width: 1.75rem; height: 2rem; margin-left: -.2rem; }
    .site-nav__toggle .icon { width: 1rem; height: 1rem; }

    .site-nav__sub {
        position: absolute;
        top: calc(100% + .6rem);
        left: -.75rem;
        z-index: 60;
        min-width: 18rem;
        padding: .5rem;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    /* Invisible bridge so the pointer can travel from the link down into the panel. */
    .site-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.75rem; height: .75rem; }

    .site-nav__item--has-sub:hover .site-nav__sub { display: block; }

    .site-nav__sub--wide { min-width: 31rem; grid-template-columns: 1fr 1fr; }
    .site-nav__sub--wide[data-open],
    .site-nav__item--has-sub:hover .site-nav__sub--wide { display: grid; }
    .site-nav__sub-all { grid-column: 1 / -1; margin-top: .25rem; padding-top: .25rem; border-top: 1px solid var(--line); }
}

/* Narrow desktops: five menu items plus the phone button need a tighter fit. */
@media (min-width: 60rem) and (max-width: 71.99rem) {
    .site-header__logo img { width: 10rem; }
    .site-nav { margin-right: 1rem; }
    .site-nav__list { gap: 1.125rem; }
    .site-nav__link { font-size: .9375rem; letter-spacing: .04em; }
    .header-call { padding-inline: 1rem; white-space: nowrap; }
}

/* Mobile action bar */

.action-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .5rem var(--gutter) calc(.5rem + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(8, 20, 40, .1);
}

.action-bar .btn { min-height: 3rem; padding-inline: .5rem; font-size: 1rem; box-shadow: none; }
.action-bar .btn:hover { transform: none; }

body { padding-bottom: 4.5rem; }

/* The open menu has its own call button, so the bar only gets in the way. */
body:has(.site-nav[data-open]) .action-bar { display: none; }

@media (min-width: 48rem) {
    .action-bar { display: none; }
    body { padding-bottom: 0; }
}

/* Framed media with offset accent + floating badge */

.framed { position: relative; isolation: isolate; }

.framed::before {
    content: "";
    position: absolute;
    inset: .875rem -.875rem -.875rem .875rem;
    z-index: -1;
    border: 3px solid var(--brand);
    border-radius: var(--radius-lg);
}

.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.badge {
    position: absolute;
    left: -.5rem;
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .875rem 1.25rem;
    background: var(--white);
    color: var(--navy-900);
    border-radius: var(--radius);
    border-left: 5px solid var(--brand);
    box-shadow: var(--shadow-lg);
}

.badge strong { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; line-height: 1; }
.badge span { font-size: .9375rem; font-weight: 600; line-height: 1.25; }

.chip {
    position: absolute;
    top: 1.25rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .875rem;
    background: var(--navy-950);
    color: var(--white);
    border-radius: 99px;
    font-size: .875rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.chip .icon { color: var(--brand-light); }

@media (min-width: 40rem) {
    .framed::before { inset: 1.25rem -1.25rem -1.25rem 1.25rem; }
    .badge { left: -1.5rem; bottom: 2rem; }
    .chip { right: -1rem; }
}

/* Service cards */

.service {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.service:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); }
.service:hover::after { transform: scaleX(1); }

.service__num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blue-100);
}

.service__icon {
    display: grid;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background: var(--navy-900);
    color: var(--brand-light);
    transition: background-color .22s ease, color .22s ease;
}

.service:hover .service__icon { background: var(--brand-strong); color: var(--white); }
.service__icon .icon { width: 1.75rem; height: 1.75rem; }
.service p { color: var(--muted); }

/* Feature list */

.feature { display: flex; gap: 1.125rem; }
.feature + .feature { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }

.feature__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--brand-strong);
    color: var(--white);
}

.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); }

/* Process steps */

.steps { display: grid; gap: 2rem; counter-reset: step; }

.step { position: relative; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }

.step__num {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--navy-900);
}

.step__num::after { content: ""; display: block; width: 2.75rem; height: 5px; margin-top: .75rem; background: var(--brand); }

.step p { color: var(--muted); }

@media (min-width: 60rem) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 3.75rem;
        right: -1.75rem;
        width: 1.75rem;
        border-top: 3px dashed var(--blue-400);
    }
}

/* Project gallery (bento) */

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9.5rem; grid-auto-flow: dense; gap: .75rem; }
.gallery li { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--blue-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery li:hover img { transform: scale(1.06); }
.gallery .is-large { grid-column: span 2; grid-row: span 2; }
.gallery .is-wide { grid-column: span 2; }

@media (min-width: 48rem) { .gallery { grid-auto-rows: 13rem; gap: 1rem; } }
@media (min-width: 60rem) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15rem; } }

/* Reviews */

.reviews { display: grid; gap: 1.5rem; }

@media (min-width: 48rem) { .reviews { grid-template-columns: repeat(2, 1fr); } }

.review {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(179, 193, 222, .16);
    border-radius: var(--radius-lg);
}

.review__mark { width: 2.75rem; height: 2.75rem; margin-bottom: 1.25rem; fill: var(--brand-light); stroke: none; }
.review blockquote { margin: 0 0 1.75rem; font-size: 1.1875rem; line-height: 1.65; color: var(--white); }
.review figcaption { display: flex; align-items: center; gap: .875rem; margin-top: auto; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; letter-spacing: .04em; color: var(--white); }

.review__avatar {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--navy-950);
    font-size: 1rem;
    font-weight: 600;
}

/* Post cards */

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.post-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-100); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }

.post-card__date {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: .3rem .75rem;
    background: var(--brand-strong);
    color: var(--white);
    border-radius: 99px;
    font-size: .8125rem;
    font-weight: 700;
}

.post-card__body { display: flex; flex-direction: column; flex: 1; gap: .75rem; padding: 1.75rem; }
.post-card__title { margin: 0; font-size: 1.375rem; }
.post-card__title a { color: var(--navy-900); text-decoration: none; }
.post-card__title a:hover { color: var(--blue-600); }
.post-card__excerpt { color: var(--muted); font-size: 1rem; }
.post-card .text-link { margin-top: auto; padding-top: .5rem; }

/* FAQ */

.faq { display: grid; gap: .875rem; }

.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s ease, box-shadow .2s ease; }
.faq__item[open] { border-color: transparent; box-shadow: var(--shadow); }

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius-lg);
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.45; letter-spacing: 0; }

.faq__toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--navy-900);
    transition: transform .22s ease, background-color .22s ease;
}

.faq__item[open] .faq__toggle { transform: rotate(180deg); background: var(--brand-strong); color: var(--white); }
.faq__answer { padding: 0 1.5rem 1.5rem; color: var(--muted); }

.help-card { margin-top: 2rem; padding: 1.75rem; background: var(--navy-900); color: var(--blue-200); border-radius: var(--radius-lg); }
.help-card h3 { color: var(--white); }
.help-card .btn { margin-top: 1.25rem; }

/* Contact card + forms */

.contact-card { display: grid; overflow: hidden; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

@media (min-width: 60rem) { .contact-card { grid-template-columns: 5fr 7fr; } }

.contact-card__info {
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 4vw, 3.25rem);
    background-color: var(--navy-900);
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    color: var(--blue-200);
}

.contact-card__info h2 { color: var(--white); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }

.contact-list { display: grid; gap: 1.5rem; margin-block: 2.25rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }

.contact-list__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background: var(--brand-strong);
    color: var(--white);
}

.contact-list strong { display: block; font-family: var(--font-display); font-size: .875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-200); }
.contact-list__icon .icon { width: 1.5rem; height: 1.5rem; }
.contact-list div > a, .contact-list div > span { display: inline-block; padding-block: .1rem; color: var(--white); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--brand-light); text-decoration: underline; }

.contact-card__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(179, 193, 222, .18);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--white);
}

.contact-card__trust li { display: flex; align-items: center; gap: .55rem; }
.contact-card__trust .icon { flex: none; width: 1.375rem; height: 1.375rem; padding: .2rem; border-radius: 50%; background: var(--brand-light); color: var(--navy-950); stroke-width: 3; }

.form-panel { padding: clamp(1.75rem, 4vw, 3.25rem); }
.form-panel__title { margin-bottom: 1.5rem; font-size: 1.625rem; }

.form-grid { display: grid; gap: 1.125rem; }

@media (min-width: 36rem) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field--full { grid-column: 1 / -1; }
}

.field label { display: block; margin-bottom: .4rem; font-size: .9375rem; font-weight: 600; color: var(--navy-900); }
.field__req { color: var(--danger); }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 3.125rem;
    padding: .7rem .9rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--blue-50);
    border: 1px solid #76829a;
    border-radius: var(--radius);
    transition: border-color .15s ease, background-color .15s ease;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--blue-400); outline-offset: 0; border-color: var(--blue-600); background: var(--white); }

.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin-top: .35rem; font-size: .9375rem; color: var(--danger); }
.field__hint { margin-top: .75rem; font-size: .9375rem; color: var(--muted); text-align: center; }

.check { display: flex; align-items: flex-start; gap: .7rem; }
.check input { width: 1.5rem; height: 1.5rem; min-height: 0; margin-top: .1rem; flex: none; accent-color: var(--navy-900); }
.check label { margin: 0; font-weight: 400; color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { margin-bottom: 1.25rem; padding: .9rem 1.1rem; border-radius: var(--radius); font-weight: 600; }
.alert--success { background: var(--success-bg); color: var(--success-ink); border: 1px solid #b7dfc5; }
.alert--error { background: #fdecea; color: var(--danger); border: 1px solid #f3c1bd; }

.map { width: 100%; margin-top: clamp(2rem, 4vw, 3rem); aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-100); box-shadow: var(--shadow); }

@media (min-width: 48rem) { .map { aspect-ratio: 16 / 7; } }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Breadcrumbs */

.breadcrumbs { margin-bottom: 1.25rem; font-size: .9375rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--blue-400); }
.breadcrumbs a { display: inline-block; padding-block: .2rem; color: var(--blue-200); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current] { color: var(--white); font-weight: 600; }

/* 5. Sections ------------------------------------------------------------- */

.hero {
    position: relative;
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(7rem, 12vw, 10rem);
    overflow: clip;
    background-color: var(--navy-900);
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    color: var(--blue-200);
}

.hero h1 { color: var(--white); }

@media (min-width: 60rem) { .hero .split { grid-template-columns: 1.15fr .85fr; } }
.hero__lead { max-width: 39rem; font-size: 1.0625rem; }
.hero .btn-row { margin-top: 2rem; }

.hero__checks { display: grid; gap: .625rem 1.5rem; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid rgba(179, 193, 222, .18); font-weight: 600; color: var(--white); }
.hero__checks li { display: flex; align-items: center; gap: .65rem; }
.hero__checks .icon { padding: .2rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--brand-light); color: var(--navy-950); stroke-width: 3; }

@media (min-width: 30rem) { .hero__checks { grid-template-columns: 1fr 1fr; } }

.framed-wrap { padding-right: .875rem; }

@media (min-width: 40rem) { .framed-wrap { padding-inline: 1.5rem 1.25rem; } }

/* Floating stats card overlapping the hero */

.statbar { position: relative; z-index: 2; margin-top: calc(-1 * clamp(4rem, 7vw, 5.5rem)); }
.statbar__card { display: grid; overflow: hidden; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.statbar__intro { padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--brand-strong); color: var(--white); }
.statbar__intro h2 { margin-bottom: .4em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--white); }
.statbar__intro p { font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats li { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem); border-top: 1px solid var(--line); }
.stats li:nth-child(odd) { border-right: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1; color: var(--navy-900); }
.stats span { display: block; margin-top: .5rem; font-size: .9375rem; font-weight: 600; color: var(--muted); }

@media (min-width: 60rem) {
    .statbar__card { grid-template-columns: 1fr 2.2fr; }
    .stats { grid-template-columns: repeat(4, 1fr); align-items: center; }
    .stats li { border-top: 0; border-right: 1px solid var(--line); }
    .stats li:last-child { border-right: 0; }
}

/* Brand-colour call-to-action band */

.cta-band { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--brand-strong); color: var(--white); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; left: 0; right: 0; height: .5rem; background: var(--stripe); }
.cta-band::before { top: 0; }
.cta-band::after { bottom: 0; }
.cta-band .container { display: grid; gap: 2rem; align-items: center; }
.cta-band h2 { margin-bottom: .35em; color: var(--white); }
.cta-band p { max-width: 42rem; font-size: 1.125rem; font-weight: 500; }

.cta-band__phone {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    text-decoration: none;
}

.cta-band__phone:hover { color: var(--blue-100); text-decoration: underline; }

@media (min-width: 60rem) {
    .cta-band .container { grid-template-columns: 1.3fr 1fr; }
    .cta-band__action { justify-self: end; text-align: right; }
    .cta-band__action .btn-row { justify-content: flex-end; }
}

/* Inner page header */

.page-header {
    position: relative;
    padding-block: clamp(3rem, 6vw, 5rem);
    background-color: var(--navy-900);
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    color: var(--blue-200);
}

.page-header::after { content: ""; position: absolute; inset: auto 0 0 0; height: .5rem; background: var(--stripe); }
.page-header h1 { max-width: 56rem; margin: 0; color: var(--white); font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem); }
.page-header p { max-width: 44rem; margin-top: 1.25rem; font-size: 1.125rem; }
.page-header__meta { font-size: .9375rem; }

/* Long-form content (blog posts, legal pages) */

.prose { font-size: 1.125rem; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.25em; padding-left: 1rem; border-left: 4px solid var(--brand); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); text-transform: none; }
.prose h3 { margin-top: 1.75em; font-size: 1.375rem; }
.prose h4 { margin-top: 1.5em; font-size: 1.125rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue-600); font-weight: 700; }
.prose img { border-radius: var(--radius-lg); }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--brand); background: var(--blue-50); color: var(--muted); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--blue-50); }

.post-hero { margin-bottom: 2.75rem; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-100); box-shadow: var(--shadow-lg); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

.callout {
    position: relative;
    margin-top: 3.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    overflow: hidden;
    background: var(--navy-900);
    color: var(--blue-200);
    border-radius: var(--radius-lg);
}

.callout::before { content: ""; position: absolute; inset: 0 0 auto 0; height: .5rem; background: var(--stripe); }
.callout h2 { margin-top: .25rem; color: var(--white); font-size: 1.75rem; }
.callout .btn-row { margin-top: 1.5rem; }

/* Footer */

.site-footer { background: var(--navy-950); color: var(--blue-200); font-size: 1rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 6vw, 5rem); }

@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
@media (min-width: 75rem) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; } }

.site-footer h2 { margin-bottom: 1.25rem; font-size: 1.0625rem; font-weight: 500; letter-spacing: .12em; color: var(--white); }
.site-footer h2::after { content: ""; display: block; width: 2rem; height: 3px; margin-top: .75rem; background: var(--brand); }
.site-footer__brand { margin-bottom: .75rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--white); }
.site-footer__brand span { color: var(--brand-light); }
.site-footer__about { margin-bottom: 1.5rem; }
.site-footer a:not(.btn) { color: var(--blue-200); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.site-footer__links { display: grid; gap: .1rem; }
.site-footer__links a { display: inline-block; padding-block: .35rem; }
.site-footer__contact { display: grid; gap: 1rem; font-style: normal; }
.site-footer__contact > * { display: flex; gap: .75rem; }
.site-footer__contact .icon { margin-top: .3rem; color: var(--brand-light); }
.site-footer__bottom { padding-block: 1.375rem; border-top: 1px solid rgba(179, 193, 222, .14); font-size: .9375rem; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

/* Error page */

.error-page { text-align: center; }
.error-page__code { margin-bottom: 0; font-family: var(--font-display); font-size: clamp(6rem, 3rem + 14vw, 11rem); font-weight: 700; line-height: 1; color: var(--navy-900); }
.error-page .stripe { max-width: 18rem; margin: 1.5rem auto 2.25rem; border-radius: 2px; }
.error-page h1 { font-size: clamp(1.875rem, 1.3rem + 2.3vw, 3rem); }
.error-page .btn-row { justify-content: center; margin-top: 2.25rem; }

/* Service and area pages */

.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--blue-600); }
.service .text-link { margin-top: auto; padding-top: 1.25rem; }

.checks { display: grid; gap: .8rem 1.5rem; }
.checks li { display: flex; align-items: flex-start; gap: .75rem; }
.checks .icon { flex: none; margin-top: .15rem; width: 1.5rem; height: 1.5rem; padding: .2rem; border-radius: 50%; background: var(--brand-strong); color: var(--white); stroke-width: 3; }

@media (min-width: 40rem) { .checks--2 { grid-template-columns: 1fr 1fr; } }

.timeline { display: grid; gap: 1.75rem; }
.timeline li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.25rem; }
.timeline__num { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.timeline h3 { margin-bottom: .3em; }
.timeline p { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .625rem; }
.chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1.1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--navy-900); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.chips a:hover { border-color: var(--brand); background: var(--blue-50); color: var(--navy-900); }
.chips a[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.area-card { display: flex; flex-direction: column; height: 100%; padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.area-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lg); }
.area-card h3 a { color: inherit; text-decoration: none; }
.area-card h3 a:hover { color: var(--blue-600); }
.area-card p { color: var(--muted); font-size: 1rem; }
.area-card .text-link { margin-top: auto; padding-top: 1rem; }

/* 6. Utilities ------------------------------------------------------------ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }

    .reveal { opacity: 1; transform: none; }
    .btn:hover, .service:hover, .post-card:hover, .area-card:hover { transform: none; }
    .gallery li:hover img, .post-card:hover .post-card__media img { transform: none; }
}

@media print {
    .site-header, .topbar, .action-bar, .site-footer, .btn-row, .skip-link { display: none; }
    body { padding: 0; color: #000; }
}
