/* ==========================================================================
   Layout — top bar, header, navigation, hero, breadcrumbs, footer
   ========================================================================== */

/* --- Top bar -------------------------------------------------------------
   Navy strip with the gold gradient hairline that defines the Belfort header. */

.dm-topbar {
    position: relative;
    background: var(--dm-navy);
    color: var(--dm-white);
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid var(--dm-gold-line);
}

.dm-topbar::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--dm-gold) 50%, transparent 100%);
    opacity: .9;
    pointer-events: none;
}

.dm-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 8px;
    min-height: var(--dm-topbar-h);
}

.dm-topbar__info {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.dm-topbar a,
.dm-topbar span {
    color: var(--dm-white);
}

.dm-topbar a:hover {
    color: var(--dm-gold);
}

.dm-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dm-topbar__item svg {
    flex: 0 0 auto;
    color: var(--dm-gold);
}

/* "Licensed in BC & AB" pill */
.dm-topbar__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(202, 157, 117, .55);
    background: var(--dm-gold-soft);
    border-radius: var(--dm-radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.dm-topbar__badge svg {
    color: var(--dm-gold);
}

.dm-topbar__social {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.dm-topbar__social a {
    display: inline-flex;
    opacity: .85;
    transition: all var(--dm-transition);
}

.dm-topbar__social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* --- Header ---------------------------------------------------------------
   Three zones on one baseline: brand · navigation · call to action.
   The navigation takes the slack in the middle so the bar stays balanced
   whatever the logo width, and the whole bar condenses once it sticks. */

.dm-header {
    position: relative;
    z-index: 100;
    background: var(--dm-navy);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: background var(--dm-transition), box-shadow var(--dm-transition), border-color var(--dm-transition);
}

.dm-header__inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(14px, 1.8vw, 36px);
    min-height: var(--dm-header-h);
    transition: min-height var(--dm-transition);
}

.dm-header__logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.dm-header__logo img {
    height: var(--dm-logo-h);
    width: auto;
    max-height: none;
    transition: height var(--dm-transition), filter var(--dm-transition);
}

.dm-header__logo:hover img {
    filter: brightness(1.08);
}

.dm-header__actions {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

/* Primary call to action — gold on navy, with a light sweep on hover. */
.dm-header__cta {
    position: relative;
    overflow: hidden;
    padding: 13px 26px;
    border: 0;
    border-radius: var(--dm-radius-pill);
    background: linear-gradient(135deg, #dcb28c 0%, var(--dm-gold) 48%, var(--dm-gold-dark) 100%);
    color: var(--dm-white);
    box-shadow: 0 10px 24px -12px rgba(202, 157, 117, .95);
    letter-spacing: 1.2px;
}

.dm-header__cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-20deg);
    transition: left .55s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}

.dm-header__cta:hover {
    background: linear-gradient(135deg, #dcb28c 0%, var(--dm-gold) 48%, var(--dm-gold-dark) 100%);
    box-shadow: 0 14px 30px -12px rgba(202, 157, 117, 1);
    transform: translateY(-2px);
}

.dm-header__cta:hover::after {
    left: 115%;
}

/* Reading-progress hairline along the bottom edge. Scroll-driven where the
   browser supports it, invisible everywhere else — no JS either way. */
.dm-header__progress {
    position: absolute;
    inset: auto 0 -1px 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--dm-gold-dark), var(--dm-gold) 70%, #e6c9a8);
    opacity: 0;
    pointer-events: none;
}

@supports (animation-timeline: scroll()) {
    .dm-header__progress {
        opacity: 1;
        animation: dm-progress linear forwards;
        animation-timeline: scroll(root block);
    }
}

@keyframes dm-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Sticky variant, toggled by main.js once the top bar scrolls away. */
.dm-header--sticky {
    position: fixed;
    inset: 0 0 auto 0;
    --dm-header-h: var(--dm-header-h-stuck);
    --dm-logo-h: var(--dm-logo-h-stuck);
    background: rgba(9, 32, 59, .88);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom-color: var(--dm-gold-line);
    box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .55);
    animation: dm-slide-down .4s cubic-bezier(.4, 0, .2, 1);
}

/* Momentary resting state main.js drops the header into so it can re-measure
   its full height after a resize, without ever painting the change. */
.dm-header--sticky.dm-header--measuring {
    position: static;
    --dm-header-h: inherit;
    --dm-logo-h: inherit;
    animation: none;
    transition: none;
}

/* Fallback for browsers without backdrop-filter: stay opaque, never see-through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .dm-header--sticky {
        background: var(--dm-navy-deep);
    }
}

@keyframes dm-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.dm-header-spacer {
    display: none;
}

.dm-header-spacer--active {
    display: block;
}

/* --- Primary navigation ----------------------------------------------------
   Items never wrap: type and padding scale with the viewport between the
   1150px burger breakpoint and a wide desktop, so a long label such as
   "Awards and Achievements" always stays on one line. */

.dm-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.dm-nav > ul {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    height: var(--dm-header-h);
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: height var(--dm-transition);
}

.dm-nav li {
    position: relative;
}

.dm-nav > ul > li {
    display: flex;
    align-items: center;
}

.dm-nav > ul > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px clamp(9px, .75vw + 1px, 17px);
    border-radius: var(--dm-radius-pill);
    font-size: clamp(13px, .4vw + 8.6px, 14.5px);
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    color: rgba(255, 255, 255, .9);
    transition: color var(--dm-transition), background var(--dm-transition);
}

/* Gold underline that grows from the centre of the label only — not the
   full padded box, so every item reads the same width as its own text. */
.dm-nav__label {
    position: relative;
    display: inline-block;
}

.dm-nav__label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--dm-gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--dm-transition);
}

.dm-nav > ul > li > a:hover,
.dm-nav > ul > li > a:focus-visible,
.dm-nav > ul > li.is-current > a,
.dm-nav > ul > li.is-ancestor > a {
    color: var(--dm-gold);
    background: rgba(202, 157, 117, .12);
}

.dm-nav > ul > li > a:hover .dm-nav__label::after,
.dm-nav > ul > li.is-current > a .dm-nav__label::after,
.dm-nav > ul > li.is-ancestor > a .dm-nav__label::after {
    transform: scaleX(1);
}

.dm-nav__caret {
    flex: 0 0 auto;
    opacity: .65;
    transition: transform var(--dm-transition), opacity var(--dm-transition);
}

.dm-nav li:hover > a .dm-nav__caret,
.dm-nav li:focus-within > a .dm-nav__caret {
    opacity: 1;
    transform: rotate(180deg);
}

/* Dropdown — a floating card centred under its parent, flush with the bottom
   of the bar so the pointer never crosses a dead gap on its way in. */
.dm-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    min-width: 262px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: var(--dm-white);
    border-radius: 14px;
    box-shadow:
        0 28px 60px -20px rgba(8, 30, 56, .45),
        0 0 0 1px rgba(13, 42, 77, .06);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity var(--dm-transition), transform var(--dm-transition), visibility var(--dm-transition);
}

/* A long list (Services runs to nine) becomes a two-column card rather than a
   column that drops past the fold. Browsers without :has() keep one column. */
.dm-nav .sub-menu:has(> li:nth-child(7)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(236px, 1fr));
    align-content: start;
    gap: 0 6px;
    min-width: 0;
}

/* Notch pointing back up at the parent item. */
.dm-nav .sub-menu::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--dm-white);
    transform: translateX(-50%) rotate(45deg);
}

/* Last item opens to the left so a wide card cannot run off the viewport. */
.dm-nav > ul > li:last-child .sub-menu {
    left: auto;
    right: 0;
    transform: translate(0, 12px);
}

.dm-nav > ul > li:last-child .sub-menu::before {
    left: auto;
    right: 26px;
    transform: rotate(45deg);
}

.dm-nav li:hover > .sub-menu,
.dm-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dm-nav > ul > li:last-child:hover > .sub-menu,
.dm-nav > ul > li:last-child:focus-within > .sub-menu {
    transform: translate(0, 0);
}

.dm-nav .sub-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--dm-heading);
    transition: background var(--dm-transition), color var(--dm-transition);
}

/* Gold dot that stretches into a dash on hover — movement without reflow. */
.dm-nav .sub-menu a::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--dm-gold-line);
    transition: width var(--dm-transition), background var(--dm-transition);
}

.dm-nav .sub-menu a:hover,
.dm-nav .sub-menu a:focus-visible,
.dm-nav .sub-menu li.is-current > a {
    background: var(--dm-off);
    color: var(--dm-navy);
}

.dm-nav .sub-menu a:hover::before,
.dm-nav .sub-menu a:focus-visible::before,
.dm-nav .sub-menu li.is-current > a::before {
    width: 16px;
    background: var(--dm-gold);
}

/* --- Mobile navigation ----------------------------------------------------- */

.dm-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    transition: border-color var(--dm-transition), background var(--dm-transition);
}

.dm-burger:hover {
    border-color: var(--dm-gold-line);
    background: rgba(202, 157, 117, .12);
}

.dm-burger span {
    display: block;
    height: 2px;
    width: 20px;
    border-radius: 2px;
    background: var(--dm-white);
    transition: all var(--dm-transition);
}

/* The short middle bar is what makes a three-line icon look drawn rather
   than stacked; it grows back to full width as the icon becomes a cross. */
.dm-burger span:nth-child(2) { width: 13px; }

.dm-burger[aria-expanded="true"] span { width: 20px; background: var(--dm-gold); }
.dm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.dm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile drawer --------------------------------------------------------- */

.dm-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(202, 157, 117, .16) 0%, transparent 55%),
        linear-gradient(180deg, var(--dm-navy) 0%, var(--dm-navy-deep) 100%);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
    overflow-x: hidden;   /* the item stagger animates in from the right */
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* The class rule above outranks the hidden attribute's UA style, so restate it
   — otherwise the closed drawer stays in the tab order. */
.dm-mobile-nav[hidden] {
    display: none;
}

.dm-mobile-nav.is-open {
    transform: translateX(0);
}

.dm-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px var(--dm-gutter);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.dm-mobile-nav__head img {
    height: 42px;
    width: auto;
}

.dm-mobile-nav__brand {
    color: var(--dm-white);
    font-family: var(--dm-font-heading);
    font-size: 1.25rem;
}

.dm-mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: var(--dm-white);
    font-size: 26px;
    line-height: 1;
    transition: all var(--dm-transition);
}

.dm-mobile-nav__close:hover {
    border-color: var(--dm-gold);
    color: var(--dm-gold);
    transform: rotate(90deg);
}

.dm-mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Child selector so it outranks the `.dm-mobile-nav ul` reset above. */
.dm-mobile-nav > .dm-mobile-nav__list {
    padding: 14px var(--dm-gutter) 0;
}

.dm-mobile-nav a {
    display: block;
    padding: 15px 2px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dm-white);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: color var(--dm-transition), padding-left var(--dm-transition);
}

.dm-mobile-nav a:hover,
.dm-mobile-nav a[aria-current="page"] {
    color: var(--dm-gold);
}

/* Items fan in behind the drawer once it lands. */
.dm-mobile-nav.is-open .dm-mobile-nav__item {
    animation: dm-drawer-in .45s cubic-bezier(.4, 0, .2, 1) backwards;
    animation-delay: calc(60ms + var(--i, 0) * 45ms);
}

@keyframes dm-drawer-in {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
}

.dm-mobile-nav .sub-menu {
    max-height: 0;
    overflow: hidden;
    margin-left: 2px;
    padding-left: 16px;
    border-left: 1px solid var(--dm-gold-line);
    transition: max-height var(--dm-transition);
}

.dm-mobile-nav .sub-menu.is-open {
    max-height: 800px;
}

.dm-mobile-nav .sub-menu a {
    font-size: 14.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, .74);
    border-bottom-color: rgba(255, 255, 255, .05);
}

.dm-mobile-nav .sub-menu li:last-child a {
    border-bottom: 0;
}

.dm-mobile-nav__toggle {
    position: absolute;
    right: 0;
    top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--dm-gold);
    font-size: 20px;
    line-height: 1;
    transition: background var(--dm-transition);
}

.dm-mobile-nav__toggle:hover {
    background: rgba(202, 157, 117, .14);
}

.dm-mobile-nav__item {
    position: relative;
}

/* Foot of the drawer: the two actions a visitor is most likely to want. */
.dm-mobile-nav__foot {
    margin-top: auto;
    display: grid;
    gap: 12px;
    padding: 26px var(--dm-gutter) 34px;
}

/* Restated because `.dm-mobile-nav a` outranks `.dm-btn--block`. */
.dm-mobile-nav__foot a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-bottom: 0;
}

.dm-mobile-nav__social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.dm-mobile-nav__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: rgba(255, 255, 255, .78);
}

.dm-mobile-nav__social a:hover {
    background: var(--dm-gold);
    border-color: var(--dm-gold);
    color: var(--dm-white);
}

/* --- Hero ------------------------------------------------------------------
   Four layers, back to front: the photograph (slowly drifting), a navy wash
   that guarantees contrast on the left where the type sits, a gold bloom that
   picks up the sunset, and the content itself, which rises in on load. */

.dm-hero {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    min-height: clamp(560px, calc(100svh - var(--dm-header-h) - var(--dm-topbar-h)), 840px);
    padding-block: 120px 130px;
    background: var(--dm-navy);
    overflow: hidden;
}

.dm-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Ken Burns drift. Transform only, so it never costs a layout pass. */
.dm-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 64% 55%;
    animation: dm-kenburns 34s ease-in-out infinite alternate;
}

@keyframes dm-kenburns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.15) translate3d(-1.4%, -1.2%, 0); }
}

/*
 * Contrast floor. The diagonal wash holds white type above 8:1 across the left
 * two thirds — where every line of copy sits — then thins out so the sunset
 * still carries colour on the right instead of going flat navy.
 */
.dm-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(96deg,
        rgba(6, 24, 45, .95) 0%,
        rgba(9, 32, 59, .84) 34%,
        rgba(11, 36, 66, .52) 64%,
        rgba(13, 42, 77, .42) 100%);
}

/* Warm bloom behind the skyline, breathing on a long cycle. */
.dm-hero__glow {
    position: absolute;
    z-index: 1;
    top: 2%;
    right: -8%;
    width: min(780px, 64%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(202, 157, 117, .30) 0%,
        rgba(202, 157, 117, .12) 38%,
        transparent 68%);
    pointer-events: none;
    animation: dm-bloom 16s ease-in-out infinite alternate;
}

@keyframes dm-bloom {
    from { opacity: .5; transform: scale(.9); }
    to   { opacity: 1;  transform: scale(1.08); }
}

/* Seam into the section below. */
.dm-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    height: 170px;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 26, 49, .38) 58%, rgba(7, 26, 49, .82) 100%);
    pointer-events: none;
}

.dm-hero__inner {
    position: relative;
    z-index: 3;
    max-width: 820px;
}

/* --- Split hero: copy beside the enquiry card ------------------------------ */

.dm-hero__grid {
    position: relative;
    z-index: 3;
}

.dm-hero--split .dm-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(36px, 4vw, 72px);
    align-items: center;
}

.dm-hero--split .dm-hero__inner {
    max-width: none;
}

/* The lead had a 660px cap for a full-width hero; in half the width it only
   forces an early wrap. */
.dm-hero--split .dm-hero__lead {
    max-width: 44ch;
}

/* The card carries its own entrance, so it opts out of the child stagger that
   the copy column uses. */
.dm-hero--split .dm-hero__grid > .dm-inquiry {
    animation: dm-rise 1s cubic-bezier(.16, .84, .44, 1) .55s backwards;
}

/* Staggered entrance. Each child rises a beat after the one above it. */
.dm-hero__inner > * {
    animation: dm-rise .95s cubic-bezier(.16, .84, .44, 1) backwards;
}

.dm-hero__eyebrow { animation-delay: .15s; }
.dm-hero h1       { animation-delay: .28s; }
.dm-hero__lead    { animation-delay: .46s; }
.dm-hero__actions { animation-delay: .60s; }

@keyframes dm-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

.dm-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--dm-gold);
}

/* The rule draws itself out from the margin. */
.dm-hero__eyebrow::before {
    content: "";
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dm-gold));
    animation: dm-rule 1s cubic-bezier(.16, .84, .44, 1) .5s backwards;
}

@keyframes dm-rule {
    from { width: 0; opacity: 0; }
    to   { width: 44px; opacity: 1; }
}

.dm-hero h1 {
    color: var(--dm-white);
    margin-bottom: .45em;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

/* Closing word in gold, under a swash that draws in once the line has landed. */
.dm-hero__accent {
    position: relative;
    display: inline-block;
    color: var(--dm-gold);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .dm-hero__accent {
        color: transparent;
        background: linear-gradient(100deg, var(--dm-gold) 0%, #f2dcc2 52%, var(--dm-gold-dark) 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.dm-hero__accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .04em;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--dm-gold), rgba(202, 157, 117, .15));
    transform: scaleX(0);
    transform-origin: left;
    animation: dm-swash 1.1s cubic-bezier(.16, .84, .44, 1) 1.15s both;
}

@keyframes dm-swash {
    to { transform: scaleX(1); }
}

.dm-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, .84);
    margin-bottom: 2.2em;
    max-width: 660px;
}

.dm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Hero buttons take the header's pill language. */
.dm-hero__actions .dm-btn {
    position: relative;
    overflow: hidden;
    padding: 17px 36px;
    border-radius: var(--dm-radius-pill);
}

.dm-hero__actions .dm-btn--gold {
    background: linear-gradient(135deg, #dcb28c 0%, var(--dm-gold) 48%, var(--dm-gold-dark) 100%);
    border-color: transparent;
    box-shadow: 0 16px 34px -16px rgba(202, 157, 117, 1);
}

.dm-hero__actions .dm-btn--gold::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-20deg);
    transition: left .6s cubic-bezier(.4, 0, .2, 1);
}

.dm-hero__actions .dm-btn--gold:hover::after {
    left: 120%;
}

.dm-hero__actions .dm-btn--gold svg {
    transition: transform var(--dm-transition);
}

.dm-hero__actions .dm-btn--gold:hover svg {
    transform: translateX(4px);
}

.dm-hero__actions .dm-btn--ghost {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/*
 * Motion is decoration here, never the thing that reveals content. With
 * reduced motion the hero renders in its finished state immediately — the
 * global rule only shortens durations, which would still hold delayed items
 * invisible for their delay.
 */
@media (prefers-reduced-motion: reduce) {
    .dm-hero__media img,
    .dm-hero__glow,
    .dm-hero__inner > *,
    .dm-hero__eyebrow::before,
    .dm-hero__accent::after {
        animation: none;
    }

    .dm-hero__accent::after {
        transform: scaleX(1);
    }
}

/* Compact hero used by every inner page */
.dm-pagehead {
    position: relative;
    padding-block: 110px 90px;
    background: var(--dm-navy);
    overflow: hidden;
}

.dm-pagehead__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/*
 * A slow drift, gentler than the homepage hero — this band appears on every
 * inner page, so it should read as the photograph breathing rather than as an
 * effect demanding attention. Transform only, so it costs no layout.
 */
.dm-pagehead__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    animation: dm-pagehead-drift 42s ease-in-out infinite alternate;
}

@keyframes dm-pagehead-drift {
    from { transform: scale(1.04); }
    to   { transform: scale(1.12) translate3d(-1%, -.8%, 0); }
}

/* Warm bloom behind the title, on a long cycle. */
.dm-pagehead::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -46%;
    left: 50%;
    width: min(900px, 78%);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(202, 157, 117, .20) 0%, transparent 64%);
    pointer-events: none;
    animation: dm-pagehead-bloom 15s ease-in-out infinite alternate;
}

@keyframes dm-pagehead-bloom {
    from { opacity: .55; }
    to   { opacity: 1; }
}

/*
 * Two stacked overlays keep the heading legible on any photograph:
 *  1. a navy wash that holds the brand colour and floors the contrast
 *  2. a vertical gradient that darkens top and bottom, where the header and the
 *     breadcrumb bar meet the image
 * Measured contrast of white on the resulting surface stays above 7:1.
 */
.dm-pagehead__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 30, 56, .82) 0%, rgba(13, 42, 77, .68) 45%, rgba(8, 30, 56, .88) 100%),
        linear-gradient(90deg, rgba(13, 42, 77, .55) 0%, rgba(13, 42, 77, .35) 100%);
}

/* Gold hairline echoing the top bar, so the band reads as part of the header. */
.dm-pagehead--image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dm-gold), transparent);
    z-index: 2;
}

.dm-pagehead__grid {
    position: relative;
    z-index: 3;
}

.dm-pagehead__inner {
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
}

.dm-pagehead .dm-hero__eyebrow {
    justify-content: center;
}

.dm-pagehead__actions {
    justify-content: center;
    margin-top: 32px;
}

/* --- Split variant: heading beside a quick-enquiry card -------------------- */

.dm-pagehead--split {
    padding-block: 84px 78px;
}

.dm-pagehead--split .dm-pagehead__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(36px, 4vw, 70px);
    align-items: center;
}

/* Left column goes left-aligned — centred type beside a form reads as a
   mistake rather than a composition. */
.dm-pagehead--split .dm-pagehead__inner {
    text-align: left;
    max-width: none;
    margin-inline: 0;
}

.dm-pagehead--split .dm-hero__eyebrow,
.dm-pagehead--split .dm-pagehead__actions {
    justify-content: flex-start;
}

.dm-pagehead--split h1 {
    font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem);
}

.dm-pagehead--split .dm-pagehead__lead {
    margin-inline: 0;
    max-width: 46ch;
}

/* Eyebrow, heading and lead arrive one after another. */
.dm-pagehead__inner > * {
    animation: dm-rise .9s cubic-bezier(.16, .84, .44, 1) backwards;
}

.dm-pagehead .dm-hero__eyebrow { animation-delay: .10s; }
.dm-pagehead h1                { animation-delay: .24s; }
.dm-pagehead__lead             { animation-delay: .40s; }

.dm-pagehead h1 {
    color: var(--dm-white);
    margin-bottom: .3em;
    text-wrap: balance;
    /* Softens the edge where a light patch of photo meets white type. */
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.dm-pagehead__lead {
    color: rgba(255, 255, 255, .88);
    font-size: 1.0625rem;
    margin-bottom: 0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.dm-pagehead .dm-hero__eyebrow {
    color: var(--dm-gold);
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

/*
 * The eyebrow only ever had a rule on its left, which reads as a stray dash
 * once the label is centred. Mirrored here, and both halves draw outward from
 * the text as the band arrives.
 */
.dm-pagehead .dm-hero__eyebrow::after {
    content: "";
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, var(--dm-gold), transparent);
    animation: dm-rule 1s cubic-bezier(.16, .84, .44, 1) .5s backwards;
}

/*
 * Motion is decoration. With reduced motion the band renders finished at once —
 * the global rule only shortens durations, which would still hold the delayed
 * lines invisible for the length of their delay.
 */
@media (prefers-reduced-motion: reduce) {
    .dm-pagehead__media img,
    .dm-pagehead::before,
    .dm-pagehead__inner > *,
    .dm-pagehead .dm-hero__eyebrow::before,
    .dm-pagehead .dm-hero__eyebrow::after {
        animation: none;
    }
}

/* --- Breadcrumbs ----------------------------------------------------------- */

.dm-breadcrumbs {
    padding-block: 18px;
    background: var(--dm-off);
    border-bottom: 1px solid var(--dm-border);
    font-size: 13px;
}

.dm-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dm-muted);
}

.dm-breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: var(--dm-border);
}

.dm-breadcrumbs a {
    color: var(--dm-body);
}

.dm-breadcrumbs a:hover {
    color: var(--dm-gold);
}

.dm-breadcrumbs [aria-current="page"] {
    color: var(--dm-heading);
    font-weight: 600;
}

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

.dm-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--dm-navy);
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
}

/* Gold hairline across the top, echoing the one under the header. */
.dm-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dm-gold), transparent);
    opacity: .7;
}

/* Warm depth in the corner so the navy is not a flat slab. */
.dm-footer__glow {
    position: absolute;
    z-index: -1;
    top: -18%;
    right: -8%;
    width: min(680px, 55%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(202, 157, 117, .16) 0%, transparent 66%);
    pointer-events: none;
}

/* --- Newsletter band ------------------------------------------------------ */

.dm-footer__signup {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: rgba(0, 0, 0, .13);
}

.dm-footer__signup-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding-block: 34px;
}

.dm-footer__signup-title {
    margin: 0;
    font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem);
    color: var(--dm-white);
}

.dm-footer__newsletter {
    display: flex;
    gap: 10px;
    flex: 0 1 460px;
}

.dm-footer__newsletter input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--dm-radius-pill);
    color: var(--dm-white);
    font-size: 14px;
    transition: border-color var(--dm-transition), background var(--dm-transition);
}

.dm-footer__newsletter input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.dm-footer__newsletter input:focus {
    outline: none;
    border-color: var(--dm-gold);
    background: rgba(255, 255, 255, .1);
}

.dm-footer__newsletter .dm-btn {
    padding: 14px 28px;
    border-radius: var(--dm-radius-pill);
}

/* --- Columns -------------------------------------------------------------- */

.dm-footer__top {
    padding-block: 64px 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.dm-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
    gap: 40px;
}

.dm-footer h3 {
    position: relative;
    margin-bottom: 26px;
    padding-bottom: 14px;
    font-size: 1.2rem;
    color: var(--dm-white);
}

.dm-footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 2px;
    background: var(--dm-gold);
}

.dm-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-footer a {
    color: rgba(255, 255, 255, .72);
    transition: color var(--dm-transition), transform var(--dm-transition);
}

.dm-footer a:hover {
    color: var(--dm-gold);
}

/*
 * Link lists nudge on hover with a transform rather than padding-left. Padding
 * reflows the line box, which shifts neighbouring text; a transform does not.
 */
.dm-footer__links li {
    margin-bottom: 11px;
}

.dm-footer__links a {
    display: inline-block;
}

.dm-footer__links a:hover {
    transform: translateX(4px);
}

/* --- Brand column --------------------------------------------------------- */

.dm-footer__logo img {
    height: 52px;
    width: auto;
    margin-bottom: 22px;
}

.dm-footer__licence {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    padding: 7px 14px;
    border: 1px solid rgba(202, 157, 117, .4);
    border-radius: var(--dm-radius-pill);
    background: var(--dm-gold-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.dm-footer__licence svg {
    flex: 0 0 auto;
    color: var(--dm-gold);
}

.dm-footer__reach {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.dm-footer__phone,
.dm-footer__email {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.dm-footer__phone svg,
.dm-footer__email svg {
    flex: 0 0 auto;
    color: var(--dm-gold);
}

/* The number is the single most useful thing in the footer — sized to match. */
.dm-footer__phone {
    font-family: var(--dm-font-heading);
    font-size: 1.375rem;
    color: var(--dm-white);
}

.dm-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.dm-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: rgba(255, 255, 255, .8);
    transition: all var(--dm-transition);
}

.dm-footer__social a:hover {
    background: var(--dm-gold);
    border-color: var(--dm-gold);
    color: var(--dm-white);
    transform: translateY(-3px);
}

/* --- Offices column ------------------------------------------------------- */

.dm-footer__offices li {
    margin-bottom: 20px;
}

.dm-footer__offices li:last-child {
    margin-bottom: 0;
}

.dm-footer__offices strong {
    display: block;
    margin-bottom: 6px;
    color: var(--dm-white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .4px;
}

.dm-footer__offices li > span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
    font-size: 14.5px;
}

.dm-footer__offices svg {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--dm-gold);
}

.dm-footer__hours {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
}

.dm-footer__hours strong {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: var(--dm-white);
    font-weight: 600;
}

.dm-footer__hours strong svg {
    color: var(--dm-gold);
}

.dm-footer__hours span {
    display: block;
    line-height: 1.7;
}

/* --- Legal bar ------------------------------------------------------------ */

.dm-footer__bottom {
    padding-block: 24px;
    background: var(--dm-navy-deep);
    font-size: 14px;
}

.dm-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

/* --- Floating call / WhatsApp buttons --------------------------------------- */

/* --- Quick-contact dock ----------------------------------------------------
 *
 * Bottom-left, every viewport. Left rather than right because the right-hand
 * corner is where third-party chat and cookie widgets land, and because the two
 * buttons would otherwise sit on top of the footer's own call-to-action.
 *
 * z-index 150 is deliberate: above the sticky header (100), below the mobile
 * navigation (200), so an open menu covers the dock instead of fighting it.
 */
.dm-contact-dock {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.dm-contact-dock__btn {
    --dock-size: 56px;

    position: relative;
    display: flex;
    align-items: center;
    height: var(--dock-size);
    border-radius: 999px;
    overflow: hidden;
    color: var(--dm-white);
    text-decoration: none;
    box-shadow: var(--dock-shadow);
    transition: transform var(--dm-transition), box-shadow var(--dm-transition);
}

.dm-contact-dock__icon {
    display: grid;
    place-items: center;
    flex: 0 0 var(--dock-size);
    width: var(--dock-size);
    height: var(--dock-size);
}

/*
 * The label is laid out but clipped to zero width, so it costs no space at rest
 * and needs no JS to reveal. max-width rather than the grid 0fr/1fr technique
 * because this has to behave identically in every browser a client might use.
 */
.dm-contact-dock__label {
    max-width: 0;
    padding-right: 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--dm-font-body);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: max-width .4s cubic-bezier(.4, 0, .2, 1), padding-right .4s cubic-bezier(.4, 0, .2, 1);
}

.dm-contact-dock__btn:hover .dm-contact-dock__label,
.dm-contact-dock__btn:focus-visible .dm-contact-dock__label {
    max-width: 190px;
    padding-right: 24px;
}

.dm-contact-dock__btn:hover,
.dm-contact-dock__btn:focus-visible {
    color: var(--dm-white);
    transform: translateY(-3px);
    box-shadow: var(--dock-shadow-lift);
    animation: none;                    /* stop the attract pulse once engaged */
}

.dm-contact-dock__btn:focus-visible {
    outline: 2px solid var(--dm-white);
    outline-offset: 3px;
}

/*
 * Call takes the brand gold — the same colour as the site's primary CTA, so the
 * dock reads as part of this site rather than a bolted-on plugin.
 *
 * Gold also solves a contrast problem the obvious choices do not: the pages
 * alternate white sections with deep-navy ones, and a navy button disappeared
 * into the hero while a red one clashed with the palette. Gold holds on both.
 * The mark and label go navy rather than white — dark-on-gold is the readable
 * pairing (~6:1), white-on-gold is not.
 */
.dm-contact-dock__btn--call {
    --dock-ring: rgba(202, 157, 117, .55);
    --dock-shadow: 0 10px 26px -10px rgba(88, 60, 32, .55), 0 2px 6px rgba(8, 30, 56, .26);
    --dock-shadow-lift: 0 16px 34px -12px rgba(88, 60, 32, .62), 0 3px 8px rgba(8, 30, 56, .3);
    background: linear-gradient(135deg, #dcb392, var(--dm-gold));
    color: var(--dm-navy);
}

.dm-contact-dock__btn--call:hover,
.dm-contact-dock__btn--call:focus-visible {
    color: var(--dm-navy);
}

.dm-contact-dock__btn--call:focus-visible {
    outline-color: var(--dm-navy);
}

/* WhatsApp keeps its own green — the colour IS the recognition. */
.dm-contact-dock__btn--wa {
    --dock-ring: rgba(37, 211, 102, .5);
    --dock-shadow: 0 10px 26px -10px rgba(11, 94, 47, .6), 0 2px 6px rgba(8, 30, 56, .26);
    --dock-shadow-lift: 0 16px 34px -12px rgba(11, 94, 47, .7), 0 3px 8px rgba(8, 30, 56, .3);
    background: linear-gradient(135deg, #2ee06f, #12a24a);
}

/*
 * A short attract pulse — three cycles after a beat, then still. An endless
 * pulse is the tell of a cheap plugin and competes with the page for attention
 * for as long as the visitor stays.
 */
@keyframes dm-dock-pulse {
    0%   { box-shadow: var(--dock-shadow), 0 0 0 0 var(--dock-ring); }
    70%  { box-shadow: var(--dock-shadow), 0 0 0 15px transparent; }
    100% { box-shadow: var(--dock-shadow), 0 0 0 0 transparent; }
}

.dm-contact-dock__btn {
    animation: dm-dock-pulse 2.6s cubic-bezier(.4, 0, .2, 1) 1.4s 3;
}

.dm-contact-dock__btn--wa {
    animation-delay: 2s;                /* stagger, so they read as two buttons */
}

@media (prefers-reduced-motion: reduce) {
    .dm-contact-dock__btn,
    .dm-contact-dock__label {
        animation: none;
        transition: none;
    }
}

/* --- Flash messages --------------------------------------------------------- */

.dm-flash {
    padding: 16px 22px;
    margin-bottom: 26px;
    border-radius: var(--dm-radius);
    border-left: 3px solid;
    font-size: 15px;
}

.dm-flash--success {
    background: #eef7f0;
    border-color: #3f9f5f;
    color: #24603a;
}

.dm-flash--error {
    background: #fdeeee;
    border-color: #c8443c;
    color: #8f2f29;
}
