/* ==========================================================================
   Dawson's Skipper Training — main stylesheet
   ========================================================================== */

:root {
    --navy-900: #071a33;
    --navy: #0b2545;
    --navy-700: #13315c;
    --ocean: #1d6fb8;
    --ocean-600: #185f9e;
    --sky: #e7f0f9;
    --foam: #f5f9fc;
    --accent: #f26b1d;
    --accent-600: #d95a10;
    --flag-yellow: #f7c600;
    --flag-red: #d62828;
    --text: #1b2a3a;
    --muted: #5a6b7d;
    --line: #d9e3ee;
    --white: #ffffff;

    --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-head: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(7, 26, 51, .08);
    --shadow: 0 12px 32px rgba(7, 26, 51, .12);
    --shadow-lg: 0 24px 60px rgba(7, 26, 51, .22);

    --container: 1200px;
    --gutter: clamp(1.1rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* 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(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ocean-600); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
address { font-style: normal; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    margin: 0 0 .5em;
    letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }

:focus-visible { outline: 3px solid var(--flag-yellow); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--flag-yellow); color: var(--navy); padding: .75rem 1.1rem;
    font-weight: 700; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.dst-icon { width: 1.1em; height: 1.1em; flex: none; }

.site-main:focus { outline: none; }

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px; padding: .8rem 1.5rem;
    font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em;
    text-transform: uppercase; text-decoration: none; line-height: 1.1;
    border: 2px solid transparent; border-radius: 999px; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .dst-icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.btn:hover .dst-icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }

.btn--accent { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(242, 107, 29, .3); }
.btn--accent:hover { background: var(--accent-600); color: var(--white); }
.btn--primary { background: var(--ocean); color: var(--white); }
.btn--primary:hover { background: var(--ocean-600); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin: 0; }

.text-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    text-decoration: none; color: var(--ocean);
}
.text-link:hover .dst-icon { transform: translateX(3px); }
.text-link .dst-icon { transition: transform .2s; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    margin: 0 0 .9rem; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--ocean);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); }
.eyebrow--light { color: #9cc7f0; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }

/* Top bar ---------------------------------------------------------------- */

.topbar { background: var(--navy-900); color: #c6d6e8; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__tagline { display: flex; align-items: center; gap: .45rem; margin: 0; }
.topbar__tagline .dst-icon { color: var(--accent); }
.topbar__contact { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar__contact a { display: inline-flex; align-items: center; gap: .4rem; color: #e3edf7; text-decoration: none; }
.topbar__contact a:hover { color: var(--flag-yellow); }
.topbar__contact .dst-icon { width: .95em; height: .95em; color: #7fb2e5; }

@media (max-width: 900px) { .topbar__tagline, .topbar__email { display: none; } .topbar__inner { justify-content: center; } }
@media (max-width: 420px) { .topbar__contact { gap: .9rem; font-size: .82rem; } }

/* Header ----------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--navy); }
.brand__mark { display: block; }
.brand__mark .dst-flags { width: 22px; height: auto; filter: drop-shadow(0 1px 1px rgba(7, 26, 51, .25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; letter-spacing: .02em; text-transform: uppercase; }
.brand__sub { font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ocean); margin-top: .2rem; }
.brand--light { color: var(--white); }
.brand--light .brand__sub { color: #9cc7f0; }
.brand--light .brand__mark .dst-flags { filter: none; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
    position: relative; display: block; padding: .6rem .9rem;
    font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--navy); text-decoration: none;
}
.site-nav__list a::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px; border-radius: 3px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after { transform: scaleX(1); }
.site-nav__cta { min-height: 44px; padding: .65rem 1.25rem; font-size: .98rem; }

.nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px;
    background: var(--sky); color: var(--navy); cursor: pointer;
}
.nav-toggle .dst-icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.site-nav__close { display: none; }

@media (max-width: 1020px) {
    :root { --nav-push: min(300px, 84vw); }
    .site-header__inner { min-height: 72px; }
    .brand__name { font-size: 1.45rem; }
    .brand__sub { font-size: .8rem; }
    .nav-toggle { display: inline-flex; position: relative; z-index: 2; }

    .site-canvas { position: relative; transition: transform .45s ease; }
    body.is-nav-open .site-canvas { will-change: transform; }
    .site-canvas__shade {
        position: absolute; inset: 0; z-index: 140;
        background: rgba(7, 26, 51, .45);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .45s ease, visibility .45s;
    }
    html, body { overflow-x: clip; }
    body.is-nav-open .site-canvas { transform: translate3d(var(--nav-push), 0, 0); }
    body.is-nav-open .site-canvas__shade { opacity: 1; visibility: visible; pointer-events: auto; }
    body.is-nav-open .site-header { z-index: 160; }

    .site-nav {
        position: fixed; z-index: 300; top: 0; left: 0;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .35rem;
        width: 0; height: 100%; height: 100dvh; margin: 0;
        padding: 1.1rem 0 2rem; overflow: hidden; visibility: hidden;
        background: var(--navy); color: #e7f0f9;
        box-shadow: none;
        transition: width .45s ease, visibility .45s;
    }
    .site-nav.is-open {
        width: var(--nav-push); visibility: visible;
        padding-left: 1.35rem; padding-right: 1.35rem;
        box-shadow: var(--shadow-lg);
    }
    .site-nav__close {
        display: inline-flex; align-self: flex-end; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin: 0 0 .35rem; padding: 0;
        border: 0; border-radius: 12px; background: transparent; color: #e7f0f9; cursor: pointer;
    }
    .site-nav__close .dst-icon { width: 26px; height: 26px; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__list a {
        padding: 1rem .15rem; border-bottom: 1px solid rgba(255, 255, 255, .14);
        color: #e7f0f9; font-size: 1.2rem;
    }
    .site-nav__list a:hover { color: var(--flag-yellow); }
    .site-nav__list a::after { left: .15rem; right: auto; width: 36px; bottom: -2px; background: var(--flag-yellow); }
    .site-nav__cta { width: 100%; margin-top: 1.25rem; }
}
/* Without JS the menu stays in the header and reachable. */
.no-js .site-nav {
    position: static; width: auto; height: auto; visibility: visible; overflow: visible;
    background: transparent; color: inherit; box-shadow: none; padding: 0;
}
.no-js .site-nav__close, .no-js .nav-toggle, .no-js .site-canvas__shade { display: none; }

/* Sections --------------------------------------------------------------- */

.section { padding: var(--section-y) 0; }
.section--foam { background: var(--foam); }
.section--sky { background: var(--sky); }
.section--center { text-align: center; }
.section--center .eyebrow { justify-content: center; }
.section--center .btn-row { justify-content: center; }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Home hero -------------------------------------------------------------- */

.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: radial-gradient(1200px 600px at 85% 10%, #1d4f8a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
    color: #dbe7f4;
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(6rem, 12vw, 9rem);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M-2 12.8L0 12C20 4 40 4 60 12S100 20 120 12L122 11.2' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 120px 24px;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { color: var(--white); margin-bottom: .35em; }
.hero__title span { display: block; color: var(--flag-yellow); }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 34em; margin-bottom: 2rem; color: #d3e1f0; }
.hero__points { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; list-style: none; padding: 0; margin: 2rem 0 0; font-weight: 500; }
.hero__points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__points .dst-icon { color: var(--flag-yellow); }

.hero__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.hero__photo {
    position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .08);
    grid-column: 1 / -1; aspect-ratio: 700 / 360;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__photo--secondary {
    grid-column: 1; margin: -3.5rem 0 0 -1.5rem; aspect-ratio: 470 / 300;
    border-width: 5px; border-color: var(--navy);
}
.hero__photo--secondary img { object-position: 70% 50%; }
.hero .weather-card { grid-column: 2; margin: -3.5rem -1rem 0 0; position: relative; z-index: 1; }

.hero__wave, .page-hero__wave {
    position: absolute; left: 0; right: 0; bottom: -1px; color: var(--white); line-height: 0;
}
.hero__wave svg, .page-hero__wave svg { width: 100%; height: clamp(30px, 5vw, 60px); }

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { max-width: 640px; margin-top: .5rem; }
    .hero__photo--secondary { margin-left: 0; }
    .hero .weather-card { margin-right: 0; }
}
@media (max-width: 520px) {
    .hero__media { grid-template-columns: 1fr; }
    .hero__photo--secondary { display: none; }
    .hero .weather-card { grid-column: 1; margin: -2.5rem .75rem 0; }
}

/* Weather card ----------------------------------------------------------- */

.weather-card {
    display: grid; gap: .85rem;
    padding: 1.15rem 1.25rem; border-radius: var(--radius);
    background: linear-gradient(160deg, #2b83d6 0%, #1a5fa6 100%);
    color: var(--white); box-shadow: var(--shadow-lg);
}
.weather-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; font-size: .9rem; }
.weather-card__place { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.weather-card__desc { color: #d6e8fa; text-align: right; }
.weather-card__main { display: flex; align-items: center; gap: .75rem; }
.weather-card__icon .dst-icon { width: 44px; height: 44px; color: var(--flag-yellow); }
.weather-card__temp { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.weather-card__range { margin-left: auto; font-size: .92rem; color: #d6e8fa; }
.weather-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; }
.weather-card__stats div { padding: .5rem .65rem; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.weather-card__stats dt { display: flex; align-items: center; gap: .3rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #cfe3f7; }
.weather-card__stats dd { margin: .1rem 0 0; font-weight: 600; font-size: 1.05rem; }
.weather-card__link {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem; border-radius: 10px; background: rgba(7, 26, 51, .28);
    color: var(--white); font-size: .9rem; font-weight: 600; text-decoration: none;
}
.weather-card__link:hover { background: rgba(7, 26, 51, .45); color: var(--white); }
.weather-card.is-error .weather-card__stats, .weather-card.is-error .weather-card__main { opacity: .55; }

/* Stats strip ------------------------------------------------------------ */

.stats { position: relative; z-index: 2; margin-top: clamp(-4.5rem, -6vw, -3rem); }
.stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    overflow: hidden;
}
.stat { padding: clamp(1.25rem, 3vw, 2rem) 1.25rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--navy); }
.stat__value em { font-style: normal; color: var(--accent); }
.stat__label { display: block; margin-top: .4rem; color: var(--muted); font-size: .95rem; line-height: 1.35; }
@media (max-width: 760px) {
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.stats--flat { margin-top: 0; }

/* Framed image ----------------------------------------------------------- */

.framed { position: relative; margin: 0; }
.framed img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.framed::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
    border-radius: var(--radius-lg); background: var(--sky);
}
.framed__badge {
    position: absolute; left: -14px; bottom: 24px;
    display: flex; align-items: center; gap: .65rem;
    padding: .8rem 1.1rem; border-radius: 12px; background: var(--navy); color: var(--white);
    box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 600; letter-spacing: .04em;
}
.framed__badge .dst-flags { width: 14px; }
.framed-wrap { position: relative; isolation: isolate; padding: 0 18px 18px 0; }

/* Check list ------------------------------------------------------------- */

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .dst-icon {
    width: 26px; height: 26px; padding: 4px; margin-top: 1px; border-radius: 50%;
    background: var(--sky); color: var(--ocean);
}

/* Courses ---------------------------------------------------------------- */

.courses { position: relative; overflow: hidden; background: var(--navy); color: #cfdcec; }
.courses::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .03);
}
.courses h2, .courses h3 { color: var(--white); }
.courses .section-head p { color: #b5c7dc; }
.courses__label { font-family: var(--font-head); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--flag-yellow); font-size: .9rem; margin-bottom: .35rem; }
.courses__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 920px; margin: 0 auto; position: relative; z-index: 1; }
.course-card {
    position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
}
.course-card--featured { background: var(--white); color: var(--text); border-color: var(--white); box-shadow: var(--shadow-lg); }
.course-card--featured h3 { color: var(--navy); }
.course-card--featured .courses__label { color: var(--accent); }
.course-card__tag {
    position: absolute; top: 1.25rem; right: 1.25rem; padding: .25rem .7rem; border-radius: 999px;
    background: var(--accent); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.course-card__options { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .75rem; }
.course-card__options li {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .9rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .06);
}
.course-card--featured .course-card__options li { background: var(--foam); }
.course-card__options strong { font-family: var(--font-head); font-size: 1.35rem; color: inherit; }
.course-card--featured .course-card__options strong { color: var(--navy); }
.course-card__options span { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.course-card__options .dst-icon { color: var(--accent); }
.courses__cta { margin-top: 2.5rem; text-align: center; position: relative; z-index: 1; }
.courses__cta p { margin-bottom: 1.1rem; font-size: 1.1rem; color: var(--white); }
@media (max-width: 760px) { .courses__grid { grid-template-columns: 1fr; } }

/* Licence steps ---------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: background .4s ease, border-color .4s ease, color .4s ease; }
.step:not(.step--final):hover { background: var(--navy); border-color: var(--navy); color: #cfdcec; }
.step:not(.step--final):hover::before { color: var(--flag-yellow); }
.step:not(.step--final):hover h3 { color: var(--white); }
.step:not(.step--final):hover p { color: #b5c7dc; }
.js .step[data-reveal] { transition: opacity .6s ease, transform .6s ease, background .4s ease, border-color .4s ease, color .4s ease; }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block; margin-bottom: .9rem;
    font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--ocean);
    transition: color .4s ease;
}
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 2.9rem; right: -1.3rem; width: 1rem; height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px);
}
.step h3 { font-size: 1.3rem; transition: color .4s ease; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; transition: color .4s ease; }
.step--final { background: var(--navy); border-color: var(--navy); color: #cfdcec; }
.step--final::before { color: var(--flag-yellow); }
.step--final h3 { color: var(--white); }
.step--final p { color: #b5c7dc; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step::after { display: none; } }

/* Feature cards ---------------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature {
    padding: 1.75rem 1.5rem; border-radius: var(--radius); background: var(--white);
    border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 1.1rem;
    border-radius: 14px; background: var(--navy); color: var(--flag-yellow);
}
.feature__icon .dst-icon { width: 28px; height: 28px; }
.feature h3 { font-size: 1.3rem; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Testimonials ----------------------------------------------------------- */

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote-card {
    position: relative; display: flex; flex-direction: column;
    margin: 0; padding: 2rem 1.75rem 1.5rem; border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.quote-card > .dst-icon { width: 38px; height: 38px; color: var(--accent); opacity: .9; margin-bottom: .9rem; }
.quote-card blockquote { margin: 0 0 1.25rem; flex: 1; }
.quote-card blockquote p { font-size: 1.02rem; }
.quote-card blockquote p:last-child { margin-bottom: 0; }
.quote-card figcaption { display: flex; flex-direction: column; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote-card cite { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.quote-card figcaption span { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .quote-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

.quote-masonry { columns: 3 320px; column-gap: 1.5rem; }
.quote-masonry .quote-card { break-inside: avoid; margin-bottom: 1.5rem; display: inline-flex; width: 100%; background: var(--white); border-color: var(--line); color: var(--text); }
.quote-masonry .quote-card cite { color: var(--navy); }
.quote-masonry .quote-card figcaption { border-color: var(--line); }
.quote-masonry .quote-card figcaption span { color: var(--muted); }

.section-foot { margin-top: 2.5rem; text-align: center; }

/* CTA band --------------------------------------------------------------- */

.cta-band { padding: var(--section-y) 0; }
.cta-band__inner {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center;
    padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--ocean) 0%, var(--navy-700) 100%); color: #e0ecf8;
}
.cta-band__inner::after {
    content: ""; position: absolute; inset: auto -40px -60px auto; width: 300px; height: 300px; z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2a3 3 0 0 1 1 5.83V9h3v2h-3v8.9A7 7 0 0 0 18.9 14H17l3-4 3 4h-2.1A9 9 0 0 1 3.1 14H1l3-4 3 4H5.1A7 7 0 0 0 11 19.9V11H8V9h3V7.83A3 3 0 0 1 12 2zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: .07;
}
.cta-band h2 { color: var(--white); margin-bottom: .35em; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band__actions { display: grid; gap: .75rem; justify-items: stretch; }
.cta-band__phone {
    display: flex; align-items: center; gap: .85rem; padding: .85rem 1.1rem; border-radius: 14px;
    background: rgba(255, 255, 255, .1); color: var(--white); text-decoration: none; transition: background-color .2s;
}
.cta-band__phone:hover { background: rgba(255, 255, 255, .18); color: var(--white); }
.cta-band__phone .dst-icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--accent); }
.cta-band__phone small { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #b9d3ee; }
.cta-band__phone strong { font-family: var(--font-head); font-size: 1.35rem; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* Inner page hero -------------------------------------------------------- */

.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
    color: #d3e1f0; padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(5rem, 10vw, 7rem);
}
.page-hero__media { position: absolute; inset: 0 0 0 auto; width: 55%; z-index: -1; }
.page-hero__media img {
    width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .45;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.page-hero .eyebrow { color: #9cc7f0; }
.page-hero__title { color: var(--white); margin: 0 0 .3em; }
.page-hero__intro { max-width: 34em; margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
@media (max-width: 760px) { .page-hero__media { width: 100%; } .page-hero__media img { opacity: .22; } }

/* About page ------------------------------------------------------------- */

.chip-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.chip-group { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.chip-group h3 { font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ocean); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: .35rem .8rem; border-radius: 999px; background: var(--foam); border: 1px solid var(--line); font-size: .93rem; font-weight: 500; }
@media (max-width: 760px) { .chip-groups { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.person {
    position: relative; padding: clamp(1.75rem, 3vw, 2.25rem); border-radius: var(--radius-lg);
    background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.person__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.person__avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(140deg, var(--ocean), var(--navy)); color: var(--white);
    font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em;
}
.person h3 { margin: 0; }
.person__role { margin: .15rem 0 0; color: var(--accent); font-weight: 600; font-size: .95rem; }
.person p { color: var(--muted); }
.person .chips li { background: var(--sky); border-color: transparent; color: var(--navy); }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }

.slogan-band { background: var(--navy); color: var(--white); text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.slogan-band__flags { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.slogan-band__flags .dst-flags { width: 26px; transform: rotate(-90deg); margin: -30px 0; }
.slogan-band blockquote { margin: 0 auto; max-width: 820px; }
.slogan-band blockquote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.25; color: var(--white); }
.slogan-band blockquote strong { color: var(--flag-yellow); }

/* Contact page ----------------------------------------------------------- */

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside { display: grid; gap: 1.5rem; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-card__name { margin: 0; font-size: 1.4rem; }
.contact-card__role { margin: .1rem 0 .9rem; color: var(--accent); font-weight: 600; font-size: .95rem; }
.contact-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.contact-card__list a { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-card__list a:hover { color: var(--ocean); }
.contact-card__list .dst-icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--sky); color: var(--ocean); }
.contact-postal { display: flex; gap: .9rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--foam); border: 1px solid var(--line); }
.contact-postal > .dst-icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--navy); color: var(--flag-yellow); }
.contact-postal h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.contact-panel { padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); scroll-margin-top: 120px; }
.contact-panel h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

/* Form ------------------------------------------------------------------- */

.enquiry-form { margin-top: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; color: var(--navy); }
.form-field label span { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; min-height: 50px; padding: .75rem .95rem;
    font: inherit; font-size: 1rem; color: var(--text);
    background: var(--foam); border: 1.5px solid var(--line); border-radius: 12px;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; background: var(--white); border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(29, 111, 184, .15);
}
.form-field.is-invalid input, .form-field.is-invalid textarea { border-color: var(--flag-red); }
.form-captcha__row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.form-captcha__image { line-height: 0; border-radius: 10px; border: 1.5px solid var(--line); overflow: hidden; transition: opacity .2s; user-select: none; }
.form-captcha__image .captcha-svg { width: 210px; height: 60px; }
.form-captcha.is-loading .form-captcha__image { opacity: .5; }
.form-captcha__refresh {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ocean); cursor: pointer;
    transition: background-color .2s, color .2s, transform .3s;
}
.form-captcha__refresh:hover { background: var(--sky); }
.form-captcha__refresh:active { transform: rotate(-90deg); }
.form-captcha__refresh .dst-icon { width: 22px; height: 22px; }
.form-field .form-captcha__row input { flex: 1 1 140px; max-width: 180px; text-transform: uppercase; letter-spacing: .3em; font-weight: 600; }
.form-captcha__help { margin: .45rem 0 0; font-size: .88rem; color: var(--muted); }
.form-captcha.is-invalid .form-captcha__row input { border-color: var(--flag-red); }
.form-footnote { margin: 1rem 0 1.25rem; font-size: .9rem; color: var(--muted); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; margin-bottom: 1.25rem; border-radius: 12px; }
.form-notice p { margin: 0; }
.form-notice--success { background: #e6f6ec; color: #145c32; }
.form-notice--success .dst-icon { width: 24px; height: 24px; }
.form-notice--error { background: #fdecec; color: #8a1c1c; }
.enquiry-form .btn { width: 100%; }
@media (min-width: 601px) { .enquiry-form .btn { width: auto; } }

/* Legal / prose pages ---------------------------------------------------- */

.legal-blocks { display: grid; gap: 1.25rem; max-width: 860px; margin: 0 auto; }
.legal-block { padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.legal-block h2 { font-size: 1.6rem; }
.legal-block p:last-child { margin-bottom: 0; }

/* Footer ----------------------------------------------------------------- */

.site-footer { position: relative; background: var(--navy-900); color: #b3c4d8; margin-top: 3rem; }
.site-footer__wave { position: absolute; left: 0; right: 0; top: -59px; color: var(--navy-900); line-height: 0; }
.site-footer__wave svg { width: 100%; height: 60px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem; }
.site-footer__slogan { margin: 1.1rem 0 .4rem; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; color: var(--flag-yellow); }
.site-footer__title { margin-bottom: 1rem; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.site-footer__col a { color: #d5e2f0; text-decoration: none; }
.site-footer__col a:hover { color: var(--flag-yellow); }
.site-footer__col .site-nav__list, .site-footer__links { display: grid; gap: .5rem; }
.site-footer__col .site-nav__list a { padding: 0; font-family: var(--font-body); font-weight: 400; font-size: 1rem; letter-spacing: 0; text-transform: none; color: #d5e2f0; }
.site-footer__col .site-nav__list a::after { display: none; }
.site-footer__contact li { display: flex; flex-direction: column; }
.site-footer__contact strong { color: var(--white); font-weight: 600; }
.site-footer .dst-address { color: #93a8c0; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .92rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #d5e2f0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Reveal on scroll ------------------------------------------------------- */

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