/* ==========================================================================
   DMG Advisory Services â€” main stylesheet
   Follows DMG_Website_Documentation/design.md
   ========================================================================== */

/* Fonts ------------------------------------------------------------------ */
@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter/InterVariable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("/assets/fonts/Manrope/Manrope-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

/* Tokens ----------------------------------------------------------------- */
:root {
    --font-heading: "Manrope", sans-serif;
    --font-body: "Inter", sans-serif;

    --color-primary: #10233F;
    --color-primary-dark: #081626;
    /* "Light darker": second, lighter navy for alternating dark sections */
    --color-light-darker: #1B3358;
    --color-accent: #B8955A;
    --color-heading: #132033;
    --color-text: #374151;
    --color-muted: #667085;
    --color-background: #FFFFFF;
    --color-surface: #F5F7F9;
    --color-surface-alt: #EEF2F5;
    /* Warm ivory derived from the gold accent, for tinted page sections */
    --color-sand: #E8DCC5;
    --color-sand-border: #D6C5A6;
    --color-border: #DDE3E8;
    --color-success: #237A57;
    --color-warning: #9A6A24;
    --color-error: #B42318;

    /* Matches the background baked into dmg-logo-dark.png so the logo sits seamlessly */
    --color-logo-navy: #0D1F34;

    --container: 1280px;
    --gutter: 18px;
    /* Each section pads half the gap, so neighbouring sections sit 90px apart */
    --section-gap: 90px;
    --section-space: calc(var(--section-gap) / 2);
    --header-h: 64px;

    --card-gap: 8px;

    --radius-btn: 10px;
    --radius-card: 16px;
    --radius-media: 24px;

    --shadow-sm: 0 1px 2px rgba(16, 35, 63, .06);
    --shadow-md: 0 12px 32px rgba(16, 35, 63, .10);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
    :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
    :root { --gutter: 36px; }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--color-heading);
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h1 { font-weight: 800; }
h2 { font-size: clamp(1.875rem, 1.35rem + 1.7vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.375rem); font-weight: 600; letter-spacing: -.01em; }

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

a { color: var(--color-primary); text-underline-offset: .2em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.skip-link {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 200;
    padding: 12px 18px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-btn);
    transform: translateY(-150%);
    transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

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

.section { padding-block: var(--section-space); }
.section--surface { background: var(--color-sand); }
/* A band's edge is a visible boundary, so keep the full 90px inside it and on either side of it */
.section--surface { padding-block: calc(var(--section-gap) - 8px) var(--section-gap); } /* -8px offsets the eyebrow's line spacing */
.section--surface + .section { padding-top: var(--section-gap); }
.section:has(+ .section--surface) { padding-bottom: var(--section-gap); }
.section--surface .help-card,
.section--surface .guide-card { border-color: var(--color-sand-border); }
/* Deeper bronze so small gold labels stay readable on sand (~4.9:1 contrast) */
.section--surface .eyebrow { color: #735628; }
.section--dark { background: var(--color-primary); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Light darker: lighter navy section with white cards */
.section--light-darker {
    --section-tint: rgba(27, 51, 88, .9);
    --section-solid: var(--color-light-darker);
    background: var(--color-light-darker);
    color: rgba(255, 255, 255, .8);
}
.section--light-darker h2 { color: #fff; }
.section--light-darker .eyebrow { color: #D6BC8E; }

/* Gold: solid theme-gold section with white titles */
.section--gold {
    --section-tint: rgba(184, 149, 90, .92);
    --section-solid: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-primary);
}
.section--gold h2,
.section--gold .eyebrow { color: #fff; }

/* Optional photo behind the section's tint (light darker or gold):
   add .has-bg-image and set --section-bg, e.g. style="--section-bg: url('/assets/images/...')" */
.has-bg-image {
    background:
        linear-gradient(var(--section-tint), var(--section-tint)),
        var(--section-bg) center / cover no-repeat,
        var(--section-solid);
}

.section--light-darker .help-card,
.section--gold .help-card { border-color: transparent; }
.section--light-darker .help-card:hover,
.section--gold .help-card:hover { border-color: transparent; }

.icon {
    width: 24px; height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Typography helpers ----------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--color-accent);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 24px; height: 1px;
    background: currentColor;
}
.eyebrow--light { color: #D6BC8E; }

.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--center .eyebrow { justify-content: center; }
.section-heading > p:last-child { font-size: 1.0625rem; }

.split-heading {
    display: grid;
    gap: 16px 48px;
    align-items: end;
    margin-bottom: 48px;
}
.split-heading h2 { margin-bottom: 0; max-width: 16ch; }
.split-heading > p { max-width: 460px; font-size: 1.0625rem; }

@media (min-width: 768px) {
    .split-heading { grid-template-columns: 1fr auto; }
    .split-heading > p { text-align: right; }
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
}
.text-link span { transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(3px); }

/* Row of buttons/links under section content */
.content-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 28px; }
.content-actions--center { justify-content: center; margin-top: 40px; }
.services__intro .content-actions { margin-top: 0; }

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-btn);
    font: 500 1rem/1.2 var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--secondary { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn--secondary:hover { background: var(--color-surface-alt); }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: var(--color-surface-alt); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* Header ----------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled {
    /* Compact header once the page is scrolled; descendants (mobile drawer) pick up the new height */
    --header-h: 52px;
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
    transition: height .25s var(--ease);
}

.site-header__logo { display: block; flex: none; }
/* Primary logo PNG is 300x66: shown at native size on desktop for crisp rendering */
/* The PNG has transparent padding, so it can be slightly taller than the fixed header bar without growing it */
.site-header__logo img { width: auto; height: 48px; transition: height .25s var(--ease); }
.site-header.is-scrolled .site-header__logo img { height: 42px; }
/* Phones/tablets: cancel the PNG's built-in left padding and slight low sit so the logo mirrors the menu button (18px from each edge) */
@media (max-width: 1023px) {
    .site-header__logo { margin-left: -8px; }
    .site-header__logo img { position: relative; top: -2px; }
}
@media (min-width: 1024px) {
    .site-header__logo img { height: 66px; }
    .site-header.is-scrolled .site-header__logo img { height: 54px; }
}

.site-nav__list a,
.site-nav__link {
    color: var(--color-heading);
    text-decoration: none;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 4px;
    background: none;
    border: 0;
    font: 400 .75rem/1.2 var(--font-body);
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}
.site-nav__cta {
    min-height: 40px;
    padding: 8px 18px;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.site-nav__link:hover { color: var(--color-accent); }
.site-nav__link[aria-current="page"] { color: var(--color-primary); box-shadow: inset 0 -2px 0 var(--color-accent); }

.icon--chevron { width: 16px; height: 16px; stroke-width: 2; transition: transform .2s var(--ease); }
.site-nav__toggle[aria-expanded="true"] .icon--chevron { transform: rotate(180deg); }

.mega__heading {
    margin-bottom: 12px;
    color: var(--color-muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.mega__col ul { display: grid; gap: 2px; }
.mega__col ul a {
    display: block;
    padding: 8px 0;
    font-weight: 500;
}
.mega__col ul a:hover { color: var(--color-accent); }
.mega__col--cta p:not(.mega__heading) { font-size: .9375rem; }

/* Mobile/tablet navigation */
.menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px; height: 42px;
    padding: 0;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.menu-toggle:hover,
.menu-toggle:focus-visible { background: var(--color-accent); border-color: var(--color-accent); }
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5.5px; }
.menu-toggle__bars::after { top: 5.5px; }
.menu-toggle:hover .menu-toggle__bars,
.menu-toggle:hover .menu-toggle__bars::before,
.menu-toggle:hover .menu-toggle__bars::after,
.menu-toggle:focus-visible .menu-toggle__bars,
.menu-toggle:focus-visible .menu-toggle__bars::before,
.menu-toggle:focus-visible .menu-toggle__bars::after { background: var(--color-primary); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1023px) {
    /* Half-width drawer from the right; 280px minimum so the CTA fits on small phones */
    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0 auto;
        width: min(100%, max(50vw, 280px));
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 16px var(--gutter) 32px;
        background: #fff;
        border-top: 1px solid var(--color-border);
        border-left: 1px solid var(--color-border);
        box-shadow: -12px 0 32px rgba(16, 35, 63, .12);
        overflow-y: auto;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform .25s var(--ease), visibility 0s linear .25s;
    }
    .site-nav.is-open { visibility: visible; transform: none; transition-delay: 0s; }
    /* Dim the uncovered part of the page; tapping it closes the menu (main.js) */
    body::after {
        content: "";
        position: fixed;
        inset: var(--header-h) 0 0;
        z-index: 99;
        background: rgba(8, 22, 38, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s var(--ease), visibility 0s linear .25s;
    }
    body.nav-open::after { opacity: 1; visibility: visible; transition-delay: 0s; }
    .site-nav__list > li { border-bottom: 1px solid var(--color-border); }
    .site-nav__link { width: 100%; justify-content: space-between; padding: 12px 0; font-size: .875rem; }
    .site-nav__link[aria-current="page"] { box-shadow: none; }
    .mega { display: none; padding: 4px 0 16px; }
    .mega.is-open { display: block; }
    .mega__inner { display: grid; gap: 20px; }
    .mega__col ul a { display: flex; align-items: center; min-height: 44px; padding: 0; font-size: .9375rem; }
    .mega__col--cta { display: none; }
    .mega__heading { margin-bottom: 4px; color: var(--color-accent); font-size: .8125rem; font-weight: 700; }
    .site-nav__cta { width: 100%; min-height: 46px; }
    body.nav-open { overflow: hidden; }
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    .site-nav { display: flex; align-items: center; gap: 32px; }
    /* Mirror the logo's built-in 12px inset so the button sits the same distance inside the hero's right edge */
    .site-nav__cta { margin-right: 12px; }
    .site-nav__list { display: flex; align-items: center; gap: 14px; }
    .site-nav__list > li { display: flex; align-items: center; gap: 14px; }
    .site-nav__list > li + li::before {
        /* Soft divider between top-level items (in flow, so the mega menu still anchors to the header) */
        content: "";
        width: 1px;
        height: 18px;
        background: linear-gradient(180deg, rgba(16, 35, 63, 0), rgba(16, 35, 63, .22) 50%, rgba(16, 35, 63, 0));
    }
    /* Compact dropdown card anchored under the Services item */
    .site-nav__item--mega { position: relative; }

    .mega {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        width: 540px;
        visibility: hidden;
        opacity: 0;
        transform: translate(-50%, -6px);
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
    }
    .mega::before {
        /* Hover bridge across the gap between the trigger and the card */
        content: "";
        position: absolute;
        left: 0; right: 0;
        bottom: 100%;
        height: 12px;
    }
    .mega.is-open {
        visibility: visible;
        opacity: 1;
        transform: translate(-50%, 0);
        transition-delay: 0s;
    }
    .mega__inner {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        gap: 12px 24px;
        padding: 18px 18px 12px;
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: 14px;
        box-shadow: var(--shadow-md);
    }
    .mega__heading { margin-bottom: 4px; padding-inline: 10px; font-size: .6875rem; }
    .mega__col ul { gap: 0; }
    .mega__col ul a {
        padding: 7px 10px;
        border-radius: 8px;
        font-size: .875rem;
        font-weight: 400;
    }
    .mega__col ul a:hover { color: var(--color-primary); background: var(--color-surface); }
    .mega__col--cta {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        background: var(--color-surface);
        border-radius: 10px;
    }
    .mega__col--cta .mega__heading { margin: 0; padding: 0; }
    .mega__col--cta p:not(.mega__heading) { display: none; }
    .mega__col--cta .text-link { font-size: .8125rem; }
}

/* Narrow desktops: tighten the header so the full menu stays on one line */
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-header__inner { gap: 16px; }
    .site-nav { gap: 16px; }
    .site-nav__list,
    .site-nav__list > li { gap: 9px; }
    .site-nav__link { letter-spacing: .04em; }
    .site-nav__cta { padding-inline: 14px; }
    .site-header__logo img { height: 56px; }
    .site-header.is-scrolled .site-header__logo img { height: 48px; }
    .site-nav__cta { margin-right: 10px; }
}

/* Phones: feature panels run wider than the page margin (8px from the screen edge) */
@media (max-width: 767px) {
    .hero__panel,
    .sars .panel,
    .help__panel,
    .guides__panel,
    .situations__panel,
    .related__panel,
    .cta__panel { margin-inline: calc(8px - var(--gutter)); }
}
/* Hero ------------------------------------------------------------------- */
.hero { padding-top: 12px; }

.hero__panel {
    display: grid;
    overflow: hidden;
    background: var(--color-primary);
    border-radius: var(--radius-media);
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 36px 24px 32px;
    color: rgba(255, 255, 255, .85);
}

.hero__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 260px;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
    color: #fff;
}
.hero__note-mark {
    flex: none;
    width: 10px; height: 10px;
    margin-top: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    transform: rotate(45deg);
}

.hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.375rem, 1.3rem + 3.3vw, 4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.hero__lead { font-size: 1.0625rem; color: rgba(255, 255, 255, .88); }
/* Phones/tablets: title and paragraph are stacked, so give the title breathing room (desktop uses the grid gap) */
@media (max-width: 1023px) { .hero__aside { margin-top: 20px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Mobile: text first, image second (design.md) */
.hero__content { order: 1; }
.hero__media { order: 2; aspect-ratio: 4 / 3; }

@media (min-width: 768px) {
    .hero__panel { position: relative; min-height: 620px; }
    .hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
    .hero__media::after {
        /* Legibility scrim for text over photography */
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(0deg, rgba(8, 22, 38, .92) 0%, rgba(8, 22, 38, .55) 38%, rgba(8, 22, 38, 0) 70%),
            linear-gradient(90deg, rgba(8, 22, 38, .45) 0%, rgba(8, 22, 38, 0) 55%);
    }
    .hero__content {
        position: relative;
        justify-content: space-between;
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .hero__panel { min-height: min(720px, calc(100vh - var(--header-h) - 24px)); }
    .hero__content { padding: 48px 56px 52px; }
    .hero__main {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 56px;
        align-items: end;
    }
    .hero__title { max-width: 12ch; }
    .hero__aside { padding-bottom: 6px; }
    .hero__lead { max-width: 400px; }
}

/* Trust strip ------------------------------------------------------------ */
.trust { padding-block: 28px; border-bottom: 1px solid var(--color-border); }
.trust__list { display: grid; }
.trust__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    color: var(--color-heading);
    font-weight: 500;
    font-size: .9375rem;
}
.trust__item .icon { color: var(--color-accent); }

/* Soft fading dividers: ::before = horizontal (between rows), ::after = vertical (between columns) */
.trust__item::before,
.trust__item::after { content: none; position: absolute; pointer-events: none; }
.trust__item::before {
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 35, 63, 0), rgba(16, 35, 63, .16) 25%, rgba(16, 35, 63, .16) 75%, rgba(16, 35, 63, 0));
}
.trust__item::after {
    top: 50%; left: 0;
    width: 1px; height: 28px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(16, 35, 63, 0), rgba(16, 35, 63, .22) 50%, rgba(16, 35, 63, 0));
}

/* Phones: one column, line between each point */
@media (max-width: 639px) {
    .trust__item + .trust__item::before { content: ""; }
}
/* Tablets and small desktops: 2 x 2, line between columns and between rows */
@media (min-width: 640px) and (max-width: 1199px) {
    .trust__list { grid-template-columns: repeat(2, 1fr); }
    .trust__item { justify-content: center; padding: 16px; }
    .trust__item:nth-child(even)::after,
    .trust__item:nth-child(n+3)::before { content: ""; }
}
/* Desktop: one row, line between each */
@media (min-width: 1200px) {
    /* Flex so each column is sized to its text (no awkward wrapping) */
    .trust__list { display: flex; }
    .trust__item { flex: 1 1 auto; justify-content: center; padding: 4px 16px; }
    .trust__item:first-child { justify-content: flex-start; padding-left: 0; }
    .trust__item:last-child { justify-content: flex-end; padding-right: 0; }
    .trust__item + .trust__item::after { content: ""; }
}

/* Core services ---------------------------------------------------------- */
/* Trust strip already has 28px bottom padding; top-up so this gap matches the 90px rhythm */
.services { padding-top: var(--section-gap); } /* 90px from the trust strip's divider line */
.services__grid { display: grid; gap: 48px; }
.services__intro p { max-width: 380px; font-size: 1.0625rem; margin-bottom: 28px; }

.services__list { display: grid; gap: var(--card-gap); }

.service-card {
    position: relative;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.service-card:hover { background: var(--color-surface); border-color: var(--color-accent); }
.service-card__icon {
    box-sizing: content-box;
    width: 24px; height: 24px;
    padding: 12px;
    margin-bottom: 20px;
    color: #fff;
    background: var(--color-primary);
    border-radius: var(--radius-btn);
}
.service-card h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 8px; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { font-size: .9375rem; color: var(--color-muted); }

@media (min-width: 640px) { .services__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .services__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 72px; align-items: start; }
    .services__intro { position: sticky; top: calc(var(--header-h) + 32px); }
    .services__list { grid-template-columns: repeat(3, 1fr); }
}

/* Hero-style panels ------------------------------------------------------ */
/* Rounded panel inside the page margins, like the hero. Panel sections sit close together. */
.section--panel { padding-block: var(--section-space); }
.panel { position: relative; overflow: hidden; border-radius: var(--radius-media); }
.panel--navy { background: var(--color-primary); color: rgba(255, 255, 255, .82); }
.panel--navy h2, .panel--navy h3 { color: #fff; }

/* Photo: second on mobile (like the hero), full-bleed behind a left-to-right scrim from tablet up */
.panel__media { order: 2; aspect-ratio: 4 / 3; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__content { position: relative; order: 1; }
.panel--navy { display: flex; flex-direction: column; }

@media (min-width: 768px) {
    .panel--navy { display: block; }
    .panel__media { position: absolute; inset: 0; aspect-ratio: auto; }
    .panel__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(8, 22, 38, .95) 0%, rgba(8, 22, 38, .82) 42%, rgba(8, 22, 38, .45) 72%, rgba(8, 22, 38, .3) 100%),
            linear-gradient(0deg, rgba(8, 22, 38, .5) 0%, rgba(8, 22, 38, 0) 40%);
    }
}

/* Gold panel spacing (How can we help? / Our process) */
.help__panel,
.process__panel { padding: 56px 20px; }
@media (min-width: 768px) {
    .help__panel,
    .process__panel { padding: 80px 40px; }
}
@media (min-width: 1024px) {
    .help__panel,
    .process__panel { padding: 96px 56px; }
}

/* SARS feature ----------------------------------------------------------- */
.sars__content { display: grid; gap: 36px; padding: 40px 24px; }
.sars__intro h2 { max-width: 16ch; }
.sars__intro p { max-width: 460px; font-size: 1.0625rem; }
.sars__cta { position: static; margin-top: 28px; }

/* Four options in a frosted-glass panel over the photo */
.sars__list {
    counter-reset: sars;
    padding: 4px 24px;
    background: rgba(8, 22, 38, .5);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.sars__list .sars__item:last-child { border-bottom: 0; }
/* Phones/tablets: glass box runs closer to the panel edges (12px) for more text width */
@media (max-width: 767px) { .sars__list { margin-inline: -12px; padding-inline: 20px; } }
@media (min-width: 768px) and (max-width: 1023px) { .sars__list { margin-inline: -28px; padding-inline: 28px; } }

@media (min-width: 768px) {
    .sars__content { padding: 48px 40px; }
}
@media (min-width: 1024px) {
    .sars__content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 64px;
        align-items: center;
        min-height: 680px;
        padding: 56px;
    }
    .sars__list { padding: 8px 32px; }
}
.sars__item {
    counter-increment: sars;
    position: relative;
    padding: 22px 0 22px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.sars__item::before {
    content: counter(sars, decimal-leading-zero);
    position: absolute;
    left: 0; top: 23px;
    color: var(--color-accent);
    font: 600 1.3125rem/1 var(--font-heading);
}
.sars__item h3 { margin-bottom: 6px; font-size: 1.1875rem; }

/* Phones: number sits above the title so the text uses the full width */
@media (max-width: 767px) {
    .sars__item { padding-left: 0; }
    .sars__item::before { position: static; display: block; margin-bottom: 10px; }
}
.sars__item h3 a { color: #fff; text-decoration: none; }
.sars__item h3 a:hover { color: #D6BC8E; }
.sars__item p { font-size: .9375rem; }

/* How can we help -------------------------------------------------------- */
.help__grid { display: grid; gap: var(--card-gap); }
.help-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
    padding: 32px 30px 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(16, 35, 63, .04), 0 10px 30px -18px rgba(16, 35, 63, .35);
    text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.help-card::before {
    /* Oversized, faint gold quote mark as an editorial accent */
    content: "\201C";
    position: absolute;
    top: -18px; right: 18px;
    color: var(--color-accent);
    opacity: .14;
    font: 800 7.5rem/1 var(--font-heading);
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(16, 35, 63, .05), 0 28px 50px -24px rgba(8, 22, 38, .55);
}
.help-card:hover::before { opacity: .26; transform: translateY(4px); }

.help-card__q {
    position: relative;
    padding-right: 36px;
    color: var(--color-heading);
    font: 600 1.25rem/1.4 var(--font-heading);
    letter-spacing: -.015em;
}

/* Pill button */
.help-card__a {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 18px;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid #E6D6B8;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.help-card__arrow {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    color: #fff;
    background: var(--color-accent);
    border-radius: 50%;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}
.help-card__arrow svg {
    width: 16px; height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s var(--ease);
}
.help-card:hover .help-card__a,
.help-card:focus-visible .help-card__a { color: var(--color-primary); background: var(--color-accent); border-color: var(--color-accent); }
.help-card:hover .help-card__arrow,
.help-card:focus-visible .help-card__arrow { color: #fff; background: #8C6D3A; /* dark gold */ }
.help-card:hover .help-card__arrow svg,
.help-card:focus-visible .help-card__arrow svg { transform: translateX(2px); }

@media (min-width: 640px) { .help__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .help__grid { grid-template-columns: repeat(3, 1fr); } }

/* Why DMG — editorial layout --------------------------------------------- */
.why__grid { display: grid; gap: 56px; align-items: center; }

.why__media { position: relative; isolation: isolate; margin: 0 16px 0 0; }
.why__media::before {
    /* Offset gold hairline frame behind the photo */
    content: "";
    position: absolute;
    inset: 18px -16px -18px 16px;
    z-index: -1;
    border: 1px solid var(--color-accent);
    border-radius: 28px;
}
.why__frame { overflow: hidden; border-radius: var(--radius-media); }
.why__frame img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.why__note {
    position: relative;
    margin: -56px 20px 0;
    padding: 28px 26px 26px;
    background: var(--color-primary);
    border-radius: 18px;
    color: rgba(255, 255, 255, .86);
}
.why__note::after {
    /* Thin gold rule along the top edge */
    content: "";
    position: absolute;
    top: 0; left: 26px;
    width: 48px; height: 2px;
    background: var(--color-accent);
}
.why__quote {
    display: block;
    height: 28px;
    margin-bottom: 6px;
    color: var(--color-accent);
    font: 700 3.5rem/1 var(--font-heading);
}
.why__note p { font-size: 1.0625rem; line-height: 1.6; }

.why__content h2 { font-size: 2.125rem; }
.why__subhead {
    margin: 32px 0 8px;
    color: var(--color-muted);
    font: 600 .8125rem/1.4 var(--font-body);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.why__list { margin-bottom: 32px; border-top: 1px solid var(--color-border); }
.why__list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
/* CIPC & COIDA: the Why DMG layout, mirrored, with numbered link rows */
.cc__groups { display: grid; gap: 28px; margin-top: 32px; }
.cc__groups .why__subhead { margin: 0 0 8px; }
.cc__groups .why__subhead a { color: inherit; text-decoration: none; }
.cc__groups .why__subhead a:hover { color: var(--color-accent); }
.cc__list { margin-bottom: 0; }
.cc__list li { align-items: center; padding: 14px 0; }
.cc__list .why__num { padding-top: 0; }
.cc__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-heading);
    font: 600 1rem/1.35 var(--font-heading);
    letter-spacing: -.01em;
    text-decoration: none;
    transition: color .25s var(--ease);
}
.cc__list a::after {
    content: "\2192";
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cc__list a:hover,
.cc__list a:focus-visible { color: var(--color-accent); }
.cc__list a:hover::after,
.cc__list a:focus-visible::after { opacity: 1; transform: none; }
@media (min-width: 640px) { .cc__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.why__num {
    padding-top: 3px;
    color: var(--color-accent);
    font: 600 .9375rem/1.4 var(--font-heading);
    letter-spacing: .04em;
}
.why__list p { color: var(--color-muted); font-size: .9375rem; }
.why__list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-heading);
    font: 600 1.125rem/1.35 var(--font-heading);
    letter-spacing: -.01em;
}

@media (min-width: 1024px) {
    .why__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 104px; align-items: start; }
    /* Eyebrow sits level with the top edge of the photo */
    .why__content .eyebrow { display: flex; margin-top: -4px; }
    .why { padding-top: calc(var(--section-space) + 4px); } /* offsets the eyebrow nudge so the gap stays 90px */
    .why__media { margin: 0 24px 88px 0; } /* matches the quote card's 88px overhang */
    .why__media::before { inset: 24px -24px -24px 24px; }
    .why__frame img { aspect-ratio: 4 / 3; }
    .why__note {
        position: absolute;
        right: -48px;
        bottom: -88px;
        width: 340px;
        margin: 0;
    }
    /* Mirrored version: photo on the right, frame and card flipped */
    .why--reverse .why__media { order: 2; margin: 0 0 88px 24px; }
    .why--reverse .why__media::before { inset: 24px 24px -24px -24px; }
    .why--reverse .why__note { right: auto; left: -48px; }
}

/* Feature rows (CIPC + COIDA) -------------------------------------------- */
.feature-row { display: grid; gap: 40px; align-items: center; }
.feature-row__media img { width: 100%; border-radius: var(--radius-media); aspect-ratio: 4 / 3; object-fit: cover; }
.feature-row__content > p { font-size: 1.0625rem; }

@media (min-width: 1024px) {
    .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
    .feature-row--reverse .feature-row__media { order: 2; }
}

.checklist { display: grid; gap: 14px; margin: 24px 0 28px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: .2em;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8955A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist strong { color: var(--color-heading); font-weight: 600; }
.checklist--compact { gap: 6px; margin: 12px 0 0; }
.checklist--compact a { color: var(--color-text); text-decoration: none; }
.checklist--compact a:hover { color: var(--color-primary); text-decoration: underline; }

.cc__cols { display: grid; gap: 28px; margin-top: 28px; }
.cc__cols h3 { margin-bottom: 0; font-size: 1.1875rem; }
.cc__cols h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--color-accent); }
@media (min-width: 640px) { .cc__cols { grid-template-columns: repeat(2, 1fr); } }

/* Process ---------------------------------------------------------------- */
/* Step cards: badge on the top edge, circular photo, centred text */
.process__list {
    /* Wrapping flex row: an odd last row stays centred */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px var(--card-gap); /* extra row gap leaves room for the badges when cards wrap */
    padding-top: 16px;
}
.process__step {
    position: relative;
    flex: 0 0 100%;
    padding: 44px 20px 32px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0;
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.process__step:hover { background: #F7F2EA; border-color: #E6D6B8; }

/* Highlighted dark step with a gold pill */
.process__step--dark { background: var(--color-primary); border-color: var(--color-primary); }
.process__step--dark:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.process__step.process__step--dark h3 { color: var(--color-accent); }
.process__step.process__step--dark p { color: rgba(255, 255, 255, .8); }
.process__step--dark .process__badge { color: var(--color-primary); background: var(--color-accent); }
.process__step--dark .process__badge::after { background: var(--color-accent); }
.process__step--dark .process__badge::before { border-color: var(--color-accent); }

.process__badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 18px;
    color: #fff;
    background: var(--color-primary);
    border-radius: 999px;
    font: 600 .8125rem/1 var(--font-body);
    letter-spacing: .02em;
    white-space: nowrap;
}
/* Short arrow running out of the badge to the right */
.process__badge::after {
    content: "";
    position: absolute;
    top: 50%; left: 100%;
    width: 18px; height: 1.5px;
    background: var(--color-primary);
}
.process__badge::before {
    content: "";
    position: absolute;
    top: 50%; left: calc(100% + 13px);
    width: 6px; height: 6px;
    border-top: 1.5px solid var(--color-primary);
    border-right: 1.5px solid var(--color-primary);
    transform: translateY(-50%) rotate(45deg);
    transform-origin: center;
    margin-top: .75px;
}

.process__photo {
    position: relative;
    isolation: isolate;
    width: 168px; height: 168px;
    margin: 0 auto 32px;
}
.process__photo::before {
    /* Offset gold hairline ring behind the photo (same treatment as the Why DMG frames) */
    content: "";
    position: absolute;
    inset: 10px -10px -10px 10px;
    z-index: -1;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    transition: inset .5s var(--ease);
}
.process__step:hover .process__photo::before { inset: -8px; }
.process__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform .5s var(--ease);
}
.process__step:hover .process__photo img { transform: scale(1.04); }

.process__step h3 { margin-bottom: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; color: var(--color-accent); }
.process__step p { max-width: 240px; margin-inline: auto; font-size: .9375rem; color: var(--color-muted); }

@media (min-width: 640px) { .process__step { flex-basis: calc((100% - var(--card-gap)) / 2); } }
@media (min-width: 1024px) { .process__step { flex-basis: calc((100% - 2 * var(--card-gap)) / 3); } }
@media (min-width: 1200px) { .process__step { flex-basis: calc((100% - 4 * var(--card-gap)) / 5); } }

/* Guides ----------------------------------------------------------------- */
/* Gold panel with luxury linked cards, matching "How can we help?" */
.guides__panel { padding: 56px 20px; }
@media (min-width: 768px) { .guides__panel { padding: 80px 40px; } }
@media (min-width: 1024px) { .guides__panel { padding: 96px 56px; } }

.guides__grid { display: grid; gap: var(--card-gap); }
.guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 30px 28px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(16, 35, 63, .04), 0 10px 30px -18px rgba(16, 35, 63, .35);
    text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(16, 35, 63, .05), 0 28px 50px -24px rgba(8, 22, 38, .55);
}
.guide-card__cat {
    margin-bottom: 14px;
    color: #8C6D3A; /* deeper gold: readable on white */
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.guide-card__title {
    margin-bottom: 10px;
    color: var(--color-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.015em;
}
.guide-card__text { flex: 1; margin-bottom: 24px; color: var(--color-muted); font-size: .9375rem; }

/* Reuse the help-card pill; hover fills it */
.guide-card:hover .help-card__a,
.guide-card:focus-visible .help-card__a { color: var(--color-primary); background: var(--color-accent); border-color: var(--color-accent); }
.guide-card:hover .help-card__arrow,
.guide-card:focus-visible .help-card__arrow { color: #fff; background: #8C6D3A; }
.guide-card:hover .help-card__arrow svg,
.guide-card:focus-visible .help-card__arrow svg { transform: translateX(2px); }

.guides__more { margin-top: 40px; text-align: center; }

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

/* FAQ -------------------------------------------------------------------- */
.faq__grid { display: grid; gap: 40px; }
.faq__intro p { font-size: 1.0625rem; }
.faq__list { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 44px;
    padding: 22px 0;
    color: var(--color-heading);
    font: 600 1.125rem/1.4 var(--font-heading);
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "";
    flex: none;
    width: 12px; height: 12px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__item p { max-width: 640px; padding-bottom: 22px; }

@media (min-width: 1024px) {
    .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 80px; }
    .faq__intro h2 { max-width: 16ch; } /* two balanced lines */
}

/* Final CTA -------------------------------------------------------------- */
.cta { padding-block: var(--section-space) var(--section-gap); }
.cta--mid { padding-block: var(--section-space); } /* mid-page: normal 90px rhythm with its neighbours */
.cta__panel {
    display: grid;
    gap: 28px;
    padding: 40px 28px;
    background: var(--color-primary);
    border-radius: var(--radius-media);
    color: rgba(255, 255, 255, .82);
}
.cta__panel h2 { color: #fff; max-width: 20ch; }
.cta__panel p { font-size: 1.0625rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 1024px) {
    .cta__panel { grid-template-columns: 1fr auto; align-items: center; padding: 64px; }
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
    padding-top: 64px;
    background: var(--color-logo-navy);
    color: rgba(255, 255, 255, .72);
    font-size: .9375rem;
}
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer__top { display: grid; gap: 40px; padding-bottom: 48px; }
.site-footer__brand img { width: 100%; max-width: 300px; margin-bottom: 20px; }
.site-footer__brand p { max-width: 300px; }
.site-footer__heading {
    margin-bottom: 16px;
    color: #D6BC8E;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__caps { text-transform: uppercase; letter-spacing: .06em; }
.site-footer__contact { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { width: 18px; height: 18px; color: var(--color-accent); }
.site-footer__placeholder { color: rgba(255, 255, 255, .5); font-style: italic; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .875rem;
}
.site-footer__bottom { align-items: center; }
@media (max-width: 767px) { .site-footer__bottom { font-size: .75rem; } } /* 12px on phones */
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
/* Gold divider between legal links */
.site-footer__bottom li + li { display: flex; align-items: center; }
.site-footer__bottom li + li::before {
    content: "";
    width: 1px;
    height: 12px;
    margin-inline: 16px;
    background: var(--color-accent);
}

@media (min-width: 640px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }

/* Footer dividers on phones and tablets (desktop uses vertical lines, below) */
@media (max-width: 1023px) {
    .site-footer__top > * { position: relative; }
    .site-footer__top > *::before,
    .site-footer__top > *::after { position: absolute; pointer-events: none; }
    .site-footer__top > *::before {
        top: -20px; left: 0; right: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16) 20%, rgba(255, 255, 255, .16) 80%, rgba(255, 255, 255, 0));
    }
    .site-footer__top > *::after {
        top: 0; bottom: 0; left: -20px;
        width: 1px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16) 20%, rgba(255, 255, 255, .16) 80%, rgba(255, 255, 255, 0));
    }
}
@media (max-width: 639px) {
    .site-footer__top > * + *::before { content: ""; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .site-footer__top > :nth-child(n+3)::before,
    .site-footer__top > :nth-child(even)::after { content: ""; }
}
@media (min-width: 1024px) {
    .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
    /* Soft vertical dividers between footer columns */
    .site-footer__top > * { position: relative; }
    .site-footer__top > * + *::before {
        content: "";
        position: absolute;
        top: 0; bottom: 0;
        left: -24px;
        width: 1px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16) 20%, rgba(255, 255, 255, .16) 80%, rgba(255, 255, 255, 0));
    }
}

/* ==========================================================================
   Inner pages (service template)
   ========================================================================== */

/* Active top-level nav item for inner pages */
.site-nav__link.is-active { color: var(--color-primary); box-shadow: inset 0 -2px 0 var(--color-accent); }
@media (max-width: 1023px) { .site-nav__link.is-active { box-shadow: none; color: var(--color-accent); } }

/* Page hero: the home hero, shorter, with an inner-page H1 size */
.hero--page .hero__title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
/* Inner-page heroes: shorter than the home hero */
@media (min-width: 768px) { .hero--page .hero__panel { min-height: 380px; } } /* grows only if the content needs more room */
.hero--page + .section { padding-top: var(--section-gap); } /* no trust strip on inner pages: full 90px below the hero */

/* Breadcrumb (sits where the home hero note sits) */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.breadcrumb li { display: flex; align-items: center; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; }
.breadcrumb li + li::before {
    content: "";
    width: 5px; height: 5px;
    margin-inline: 12px;
    border-top: 1.5px solid var(--color-accent);
    border-right: 1.5px solid var(--color-accent);
    transform: rotate(45deg);
}
.breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* Editorial intro: heading left, text right */
.intro__grid { display: grid; gap: 24px 80px; }
.intro__grid h2 { margin-bottom: 0; }
.intro__text p { font-size: 1.0625rem; }
.intro__text p:first-child { color: var(--color-heading); font-size: 1.25rem; line-height: 1.55; }
@media (min-width: 1024px) {
    .intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
    .intro__grid h2 { max-width: 14ch; }
}

/* "When it may be needed" situation cards (gold panel) */
.situation-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding: 30px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(16, 35, 63, .04), 0 10px 30px -18px rgba(16, 35, 63, .35);
}
.situation-card__icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    color: #fff;
    background: var(--color-primary);
    border-radius: var(--radius-btn);
}
.situation-card h3 { margin: 0; font-size: 1.1875rem; font-weight: 700; }
.situation-card p { color: var(--color-muted); font-size: .9375rem; }
.situations__grid { display: grid; gap: var(--card-gap); }
@media (min-width: 640px) { .situations__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .situations__grid { grid-template-columns: repeat(3, 1fr); } }

/* Step cards without photos (process variant) */
.process--text .process__step { padding-top: 48px; }
.process--text .process__step h3 { margin-bottom: 10px; }

/* Plain panel spacing reused for "When it may be needed" and related services */
.situations__panel,
.related__panel { padding: 56px 20px; }
@media (min-width: 768px) { .situations__panel, .related__panel { padding: 80px 40px; } }
@media (min-width: 1024px) { .situations__panel, .related__panel { padding: 96px 56px; } }
.related__grid { display: grid; gap: var(--card-gap); }
@media (min-width: 640px) { .related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related__grid { grid-template-columns: repeat(4, 1fr); } }
/* ==========================================================================
   Service page components (svc-*): same theme as home, different layouts
   ========================================================================== */

/* Intro: text + sand callout on the left, photo with floating navy card on the right */
.text-gold { color: var(--color-accent); }
.svc-lead { display: grid; gap: 48px; align-items: center; padding-inline: calc(var(--gutter) + 15px); } /* 15px extra inset on both sides */
.svc-lead__content h2 { margin-bottom: 24px; }
.svc-lead__lede { margin-bottom: 16px; color: var(--color-heading); font-size: 1.0625rem; font-weight: 500; line-height: 1.65; }
.svc-lead__body { margin-bottom: 28px; color: var(--color-muted); font-size: .9375rem; }
.svc-lead__callout {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: #F7F2EA;
    border-radius: 16px;
}
.svc-lead__callout p { margin: 0; color: var(--color-heading); font-weight: 500; }
.svc-lead__callout-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    color: #fff;
    background: var(--color-accent);
    border-radius: 50%;
}
.svc-lead__callout-icon .icon { width: 26px; height: 26px; }

.svc-lead__media { position: relative; }
.svc-lead__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-media); }
.svc-lead__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: -48px 16px 0;
    padding: 20px 24px;
    background: var(--color-primary);
    border-radius: 18px;
}
.svc-lead__card-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    color: var(--color-primary);
    background: #fff;
    border-radius: 50%;
}
.svc-lead__card-icon .icon { width: 28px; height: 28px; stroke-width: 2; }
.svc-lead__card-label {
    margin-bottom: 4px;
    color: #D6BC8E;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.svc-lead__card-text { margin: 0; color: #fff; font: 700 1.125rem/1.3 var(--font-heading); }

@media (min-width: 1024px) {
    .svc-lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
    .svc-lead__content h2 { font-size: 2.5rem; }
    .svc-lead__card { position: absolute; right: -15px; bottom: 40px; margin: 0; } /* overhang = the 15px inset, so it lines up with the hero edge */
}
/* At a glance: light strip, sand icon circles, soft dividers */
.svc-facts {
    display: grid;
    margin: 64px 0 0;
    padding: 8px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
}
.svc-facts > div { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 22px 0; }
.svc-facts > div + div::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 35, 63, 0), rgba(16, 35, 63, .14) 20%, rgba(16, 35, 63, .14) 80%, rgba(16, 35, 63, 0));
}
.svc-facts__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    color: #fff;
    background: var(--color-accent);
    border-radius: 50%;
}
.svc-facts__icon .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.svc-facts dt { margin-bottom: 6px; color: var(--color-heading); font: 700 1.125rem/1.3 var(--font-heading); }
.svc-facts dd { margin: 0; color: var(--color-muted); font-size: .9375rem; line-height: 1.6; }
@media (min-width: 1024px) {
    .svc-facts { grid-template-columns: repeat(3, 1fr); padding: 12px 8px; }
    .svc-facts > div { padding: 28px 32px; }
    .svc-facts > div + div::before {
        top: 28px; bottom: 28px; left: 0; right: auto;
        width: 1px; height: auto;
        background: linear-gradient(180deg, rgba(16, 35, 63, 0), rgba(16, 35, 63, .14) 20%, rgba(16, 35, 63, .14) 80%, rgba(16, 35, 63, 0));
    }
}
/* Situations: navy lead card + one bordered panel of six signs with gold icon circles */
.btn--gold { background: var(--color-accent); color: var(--color-primary); }
.btn--gold:hover { background: #C9A66B; }
.svc-signs { display: grid; gap: var(--card-gap); }
.svc-signs__lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 40px 32px;
    background: var(--color-primary);
    border-radius: 22px;
    color: rgba(255, 255, 255, .8);
}
.svc-signs__lead h2 { color: #fff; }
.svc-signs__lead p:not(.eyebrow) { margin-bottom: 20px; font-size: 1rem; }
.svc-signs__list {
    display: grid;
    gap: 28px 32px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 22px;
}
.svc-signs__list li { display: flex; align-items: flex-start; gap: 16px; }
.svc-signs__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    color: #fff;
    background: var(--color-accent);
    border-radius: 50%;
}
.svc-signs__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-signs__list h3 { margin: 4px 0 6px; font-size: 1.0625rem; font-weight: 700; }
.svc-signs__list p { color: var(--color-muted); font-size: .9375rem; }
@media (min-width: 768px) {
    .svc-signs__list { grid-template-columns: repeat(2, 1fr); padding: 40px; }
}
@media (min-width: 1024px) {
    .svc-signs { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); }
    .svc-signs__lead { justify-content: center; padding: 48px 40px; }
    .svc-signs__lead h2 { font-size: 2.125rem; }
}
/* Slim sand CTA band with a gold rule (service pages) */
.svc-band__inner {
    display: grid;
    gap: 20px 40px;
    padding: 32px 28px;
    background: var(--color-primary);
    border-left: 4px solid var(--color-accent);
    color: rgba(255, 255, 255, .8);
    border-radius: 0 18px 18px 0;
}
.svc-band__inner h2 { margin-bottom: 6px; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.svc-band__inner p { color: rgba(255, 255, 255, .8); }
.svc-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) {
    .svc-band__inner { grid-template-columns: 1fr auto; align-items: center; padding: 40px 48px; }
}
/* How it works: vertical timeline with gold numbered markers */
.svc-steps__grid { display: grid; gap: 48px; }
.svc-steps__intro p { font-size: 1.0625rem; }
.svc-timeline { position: relative; }
.svc-timeline::before {
    content: "";
    position: absolute;
    top: 24px; bottom: 24px; left: 23px;
    width: 1px;
    background: linear-gradient(180deg, var(--color-accent), rgba(184, 149, 90, .25));
}
.svc-timeline li { position: relative; padding: 0 0 36px 76px; }
.svc-timeline li:last-child { padding-bottom: 0; }
.svc-timeline__node {
    position: absolute;
    top: 0; left: 0;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    color: var(--color-accent);
    background: #fff;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    font: 700 .9375rem/1 var(--font-heading);
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.svc-timeline li:hover .svc-timeline__node { color: #fff; background: var(--color-accent); }
.svc-timeline h3 { margin: 10px 0 6px; font-size: 1.25rem; font-weight: 700; }
.svc-timeline p { color: var(--color-muted); }
@media (min-width: 1024px) {
    .svc-steps__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 96px; align-items: start; }
    .svc-steps__intro { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* Documents: navy lead card + light tiles with navy icon circles + sand footer strip */
.svc-docs { display: grid; gap: var(--card-gap); }
.svc-docs__lead {
    position: relative;
    overflow: hidden;
    padding: 40px 32px;
    background: var(--color-primary);
    border-radius: 22px;
    color: rgba(255, 255, 255, .8);
}
.svc-docs__lead h2 { color: #fff; }
.svc-docs__lead p:not(.eyebrow) { position: relative; max-width: 300px; }
.svc-docs__mark {
    /* Faint folder watermark */
    position: absolute;
    right: -10px; bottom: -14px;
    width: 150px; height: 150px;
    fill: none;
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 1;
}
.svc-docs__list { display: grid; gap: var(--card-gap); }
.svc-docs__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: border-color .3s var(--ease);
}
.svc-docs__list li:hover { border-color: #E6D6B8; }
.svc-docs__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    color: #fff;
    background: var(--color-primary);
    border-radius: 50%;
}
.svc-docs__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-docs__list strong { display: block; margin: 4px 0 6px; color: var(--color-heading); font: 700 1.0625rem/1.35 var(--font-heading); }
.svc-docs__list p { color: var(--color-muted); font-size: .9375rem; }
.svc-docs__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    padding: 20px 24px;
    background: #F7F2EA;
    border-radius: 16px;
}
.svc-docs__foot p { flex: 1 1 260px; margin: 0; color: var(--color-heading); font-weight: 500; }
.svc-docs__foot-icon { display: grid; place-items: center; color: var(--color-accent); }
.svc-docs__foot-icon .icon { width: 30px; height: 30px; stroke-width: 1.4; }
@media (min-width: 768px) {
    .svc-docs__list { grid-template-columns: repeat(2, 1fr); }
    .svc-docs__foot { padding: 22px 32px; }
}
@media (min-width: 1024px) {
    .svc-docs { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); }
    .svc-docs__lead { padding: 48px 40px; }
    .svc-docs__lead h2 { font-size: 2.125rem; }
    .svc-docs__foot { grid-column: 1 / -1; }
}
/* How DMG can help: photo feature card + option tiles with gold top rules */
.svc-options__grid { display: grid; gap: 40px; }
.svc-feature {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--radius-media);
    color: rgba(255, 255, 255, .85);
}
.svc-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 22, 38, .95) 0%, rgba(8, 22, 38, .7) 45%, rgba(8, 22, 38, .1) 100%);
}
.svc-feature__body { position: relative; z-index: 1; padding: 32px 28px; }
.svc-feature__body h2 { color: #fff; }
.svc-feature__body .btn { margin-top: 20px; }
.svc-options__list { display: grid; gap: 36px 40px; align-content: center; }
.svc-option { padding-top: 22px; border-top: 2px solid var(--color-accent); }
.svc-option h3 { margin-bottom: 8px; font-size: 1.25rem; font-weight: 700; }
.svc-option h3 a { color: var(--color-heading); text-decoration: none; }
.svc-option h3 a:hover { color: var(--color-accent); }
.svc-option p { margin-bottom: 14px; color: var(--color-muted); font-size: .9375rem; }
@media (min-width: 640px) { .svc-options__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .svc-options__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
    .svc-feature { min-height: 560px; }
    .svc-feature__body { padding: 40px; }
}

/* Related services: bordered link list with arrow circles */
.svc-related { overflow: hidden; border: 1px solid var(--color-border); border-radius: 24px; }
.svc-related ul { display: grid; }
.svc-related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
    padding: 24px 28px;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: background-color .3s var(--ease);
}
.svc-related a:hover { background: #F7F2EA; }
.svc-related__cat {
    display: block;
    margin-bottom: 4px;
    color: #8C6D3A;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.svc-related__title { color: var(--color-heading); font: 700 1.125rem/1.35 var(--font-heading); }
.svc-related__arrow {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    color: #fff;
    background: var(--color-primary);
    border-radius: 50%;
    transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.svc-related__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-related a:hover .svc-related__arrow { background: var(--color-accent); transform: translateX(3px); }
@media (min-width: 768px) {
    .svc-related ul { grid-template-columns: repeat(2, 1fr); }
    .svc-related li:nth-child(odd) a { border-right: 1px solid var(--color-border); }
    .svc-related a { padding: 28px 36px; }
}

/* FAQ: centred, bordered accordion */
.svc-faq__list { display: grid; gap: var(--card-gap); max-width: 860px; margin-inline: auto; }
.svc-faq__list .faq__item { padding: 0 24px; border: 1px solid var(--color-border); border-radius: 16px; transition: border-color .3s var(--ease); }
.svc-faq__list .faq__item[open] { border-color: var(--color-accent); }
.svc-faq__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 36px; text-align: center; }
.svc-faq__more p { margin: 0; color: var(--color-heading); font-weight: 500; }
.svc-faq__note { margin-top: 20px; color: var(--color-muted); font-size: .9375rem; text-align: center; }
.svc-steps__cta { margin-top: 12px; }

/* Gold final CTA */
.cta__panel--gold { background: var(--color-accent); color: var(--color-primary); }
.cta__panel--gold h2 { color: #fff; }
.cta__panel--gold .btn--secondary { border-color: var(--color-primary); }
.cta__panel--gold .btn--secondary:hover { background: rgba(255, 255, 255, .2); }
/* ==========================================================================
   Page-builder variants (all inner pages)
   ========================================================================== */

/* Intro with the photo on the left */
@media (min-width: 1024px) {
    .svc-lead--reverse .svc-lead__media { order: -1; }
    .svc-lead--reverse .svc-lead__card { right: auto; left: -15px; }
}

/* Text-only hero (legal pages) */
.hero--plain .hero__panel { background: var(--color-primary); }
@media (min-width: 768px) { .hero--plain .hero__panel { min-height: 300px; } }

/* Service clusters (services hub, about) */
.svc-clusters { display: grid; gap: var(--card-gap); }
.svc-cluster {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: border-color .3s var(--ease);
}
.svc-cluster:hover { border-color: #E6D6B8; }
.svc-cluster__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 20px;
    color: #fff;
    background: var(--color-accent);
    border-radius: 50%;
}
.svc-cluster__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-cluster h3 { margin-bottom: 8px; font-size: 1.25rem; font-weight: 700; }
.svc-cluster h3 a { color: var(--color-heading); text-decoration: none; }
.svc-cluster h3 a:hover { color: var(--color-accent); }
.svc-cluster > p { color: var(--color-muted); font-size: .9375rem; }
.svc-cluster ul { margin: 18px 0 24px; border-top: 1px solid var(--color-border); }
.svc-cluster li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-heading);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
}
.svc-cluster li a::after { content: "\2192"; color: var(--color-accent); transition: transform .25s var(--ease); }
.svc-cluster li a:hover { color: var(--color-accent); }
.svc-cluster li a:hover::after { transform: translateX(3px); }
.svc-cluster .text-link { margin-top: auto; align-self: flex-start; }
@media (min-width: 768px) { .svc-clusters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-clusters { grid-template-columns: repeat(3, 1fr); } }

/* Contact option cards */
.contact-cards { display: grid; gap: var(--card-gap); }
.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    background: var(--color-primary);
    border-radius: 20px;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: transform .3s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; color: var(--color-primary); background: #fff; border-radius: 50%; }
.contact-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card__label { display: block; margin-bottom: 4px; color: #D6BC8E; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contact-card__value { display: block; color: #fff; font: 700 1.125rem/1.3 var(--font-heading); overflow-wrap: anywhere; }
@media (min-width: 1024px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

/* Enquiry form */
.form-wrap { display: grid; gap: var(--card-gap); }
.form-aside {
    padding: 40px 32px;
    background: var(--color-primary);
    border-radius: 22px;
    color: rgba(255, 255, 255, .8);
}
.form-aside h2 { color: #fff; }
.form-aside ol { margin-top: 24px; counter-reset: next; }
.form-aside li { position: relative; padding: 16px 0 16px 48px; border-top: 1px solid rgba(255, 255, 255, .12); counter-increment: next; }
.form-aside li::before { content: counter(next, decimal-leading-zero); position: absolute; left: 0; top: 16px; color: var(--color-accent); font: 700 1rem/1.4 var(--font-heading); }
.form-aside strong { display: block; color: #fff; font-family: var(--font-heading); }
.form-aside .form-aside__privacy { margin-top: 24px; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.enquiry-form {
    display: grid;
    gap: 18px;
    padding: 32px 28px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
}
.enquiry-form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { color: var(--color-heading); font-size: .875rem; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--color-heading);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    font: 400 1rem/1.4 var(--font-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(184, 149, 90, .2); }
.field fieldset { margin: 0; padding: 0; border: 0; }
.field-checks { display: grid; gap: 8px; margin-top: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--color-text); font-size: .9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--color-primary); }
.enquiry-form__note { color: var(--color-muted); font-size: .8125rem; }
.enquiry-form__status { display: none; padding: 14px 16px; background: #F7F2EA; border-radius: var(--radius-btn); color: var(--color-heading); font-size: .9375rem; }
.enquiry-form__status.is-visible { display: block; }
.enquiry-form__status.is-success { background: #EAF4EC; color: #1E5631; }
.enquiry-form__status.is-error { background: #FBEAEA; color: #8A1F1F; }
.enquiry-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form button[disabled] { opacity: .6; cursor: progress; }
@media (min-width: 640px) { .enquiry-form__row { grid-template-columns: repeat(2, 1fr); } .field-checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .form-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
    .form-aside { padding: 48px 40px; }
    .enquiry-form { padding: 40px; }
}

/* Grouped FAQs */
.faq-groups { display: grid; gap: 48px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-nav a {
    padding: 10px 18px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-heading);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.faq-nav a:hover { border-color: var(--color-accent); background: #F7F2EA; }
.faq-group h2 { margin-bottom: 20px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.faq-group .svc-faq__list { max-width: none; margin: 0; }
@media (min-width: 1024px) {
    .faq-groups { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
    .faq-nav { position: sticky; top: calc(var(--header-h) + 32px); flex-direction: column; }
    .faq-nav a { border-radius: 12px; }
    .faq-groups__list { display: grid; gap: 56px; }
}

/* Guides hub cards */
.guide-grid { display: grid; gap: var(--card-gap); }
.guide-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-decoration: none;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.guide-tile:hover { border-color: #E6D6B8; transform: translateY(-3px); }
.guide-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-tile__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.guide-tile__cat { margin-bottom: 10px; color: #8C6D3A; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.guide-tile h3 { margin-bottom: 8px; color: var(--color-heading); font-size: 1.1875rem; font-weight: 700; }
.guide-tile p { flex: 1; margin-bottom: 18px; color: var(--color-muted); font-size: .9375rem; }
.guide-tile__more { color: var(--color-primary); font-weight: 600; font-size: .9375rem; }
.guide-group + .guide-group { margin-top: 56px; }
.guide-group__title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 1.375rem; }
.guide-group__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--color-border), rgba(221, 227, 232, 0)); }
@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }

/* Article (guides) and prose (legal) */
.article { display: grid; gap: 40px; }
.article > * { min-width: 0; } /* lets wide tables scroll inside their box instead of widening the page */
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 28px; color: var(--color-muted); font-size: .875rem; }
.article__cat { padding: 6px 14px; color: var(--color-primary); background: #F7F2EA; border-radius: 999px; font-weight: 600; font-size: .8125rem; }
.short-answer {
    margin-bottom: 40px;
    padding: 28px;
    background: var(--color-primary);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 18px 18px 0;
    color: rgba(255, 255, 255, .88);
}
.short-answer__label { margin-bottom: 8px; color: #D6BC8E; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.short-answer p:last-child { font-size: 1.0625rem; line-height: 1.65; }
.prose { max-width: 800px; }
.prose h2 { margin: 48px 0 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose--legal h2 { font-size: 24px; } /* Terms & Privacy section titles */
.prose h3 { margin: 28px 0 10px; font-size: 1.25rem; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; }
.prose ol { counter-reset: prose; }
.prose ol li { position: relative; padding-left: 36px; margin-bottom: 10px; counter-increment: prose; }
.prose ol li::before { content: counter(prose); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: var(--color-primary); border-radius: 50%; font: 700 .75rem/1 var(--font-heading); }
.prose a:not(.btn) { color: var(--color-primary); font-weight: 500; }
.callout { margin: 28px 0; padding: 22px 24px; background: #F7F2EA; border-radius: 16px; }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--color-heading); }
.table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--color-border); border-radius: 16px; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.table-wrap th, .table-wrap td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.table-wrap th { color: #fff; background: var(--color-primary); font-family: var(--font-heading); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--color-heading); font-weight: 600; }
.toc { padding: 24px; border: 1px solid var(--color-border); border-radius: 18px; }
.toc__title { margin-bottom: 12px; color: var(--color-heading); font: 700 1rem/1.3 var(--font-heading); }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li a { display: block; padding: 8px 0; color: var(--color-text); font-size: .9375rem; text-decoration: none; }
.toc li a:hover { color: var(--color-accent); }
.aside-cta { margin-top: var(--card-gap); padding: 28px 24px; background: var(--color-primary); border-radius: 18px; color: rgba(255, 255, 255, .8); }
.aside-cta p:first-child { margin-bottom: 8px; color: #fff; font: 700 1.125rem/1.35 var(--font-heading); }
.aside-cta .btn { width: 100%; margin-top: 16px; }
@media (min-width: 1024px) {
    .article { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; }
    .article__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
/* Phone title scale ------------------------------------------------------- */
/* One consistent size per level on phones; text-wrap: balance (set on headings) keeps lines even */
@media (max-width: 767px) {
    :root {
        --title-h1-mobile: 2rem;      /* 32px */
        --title-h2-mobile: 1.625rem;  /* 26px */
    }
    .hero__title { font-size: var(--title-h1-mobile); line-height: 1.12; }
    h2,
    .why__content h2,
    .cta__panel h2 { font-size: var(--title-h2-mobile); line-height: 1.2; }
    /* Drop desktop width caps so titles balance across the full width */
    .split-heading h2,
    .sars__intro h2,
    .cta__panel h2,
    .faq__intro h2 { max-width: none; }
}
/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
