@font-face {
    font-family: "NHaasGroteskTX";
    src: url("/dist/fonts/NHaasGroteskTXPro-Rg.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* === app.css === */

:root {
    --teal: #1a5c6b;
    --teal-dk: #0e3d49;
    --orange: #e8521a;
    --white: #f2f2f2;
    --dark: #111111;
    --nav-h: 70px;
    --desktop-gutter: 61px;
    /* Past the 16" cap the 1440 design freezes at this zoom and centres (see
       stage-scale.js — keep --cap-zoom = MAX_W / 1440 in sync). Full-bleed
       heroes/bands use these to break back out to the full viewport width while
       the text stays in the centred column. */
    --cap-w: 1728px;
    --cap-zoom: 1.2;
    /* Full-bleed helpers (used only inside @media(min-width:1729px)): a hero/band
       set to width:var(--bleed-w) + left:var(--bleed-left) spans the whole
       viewport; content positioned at left:calc(Xpx + var(--bleed-shift)) stays
       in the centred 1440 column. */
    --bleed-w: calc(100vw / var(--cap-zoom));
    --bleed-shift: calc((100vw / var(--cap-zoom) - 1440px) / 2);
    --bleed-left: calc((1440px - 100vw / var(--cap-zoom)) / 2);
    font-family: "NHaasGroteskTX", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--dark);
    color: #f2f2f2;
    overflow-x: hidden;
}

body.page-home {
    background: #f2f2f2;
}

/* Past the 16" cap the fixed 1440 design centres and stops growing (see
   stage-scale.js). Only targeted decorative backgrounds should bleed out to the
   viewport; content sections stay at the capped 1440 composition. */
body.page-home main {
    padding-top: 0;
    /* fixed 1440 design scaled uniformly to any viewport (same pattern as .cmr-scale etc.) */
    width: 1440px;
    margin: 0 auto;
    zoom: calc(100vw / 1440px);
}
body:not(.page-home) main {
    padding-top: 0;
}
img {
    display: block;
    max-width: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
ul,
ol {
    list-style: none;
}

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

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
#site-footer {
    position: relative;
    background: #021c25;
    overflow: hidden;
    /* scale the 1440 footer design uniformly with the viewport (matches the page stages) */
    zoom: calc(100vw / 1440px);
}

/* ── Watermark — rendered as footer::before so it's never covered ── */
.footer__watermark {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 368px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 100%;
}

.footer__wm-img {
    display: block;
    width: min(1400px, calc(100% - 40px));
    height: 368px;
    margin: 0 auto;
    object-fit: contain;
    object-position: bottom;
    opacity: 0.32;
    filter: grayscale(100%) brightness(1.8);
}

/* ── Top nav grid ────────────────────────────────── */
.footer__top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 163px 307px 204px 163px;
    column-gap: 156px;
    width: calc(100% - 120px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0 368px;
}

/* ── Column titles ───────────────────────────────── */
.footer__col-title {
    font-size: 24px;
    font-weight: 700;
    color: #f2f2f2;
    margin-bottom: 18px;
    letter-spacing: 0;
    line-height: 28px;
}

.footer__col-title a {
    color: inherit;
    text-decoration: none;
}

.footer__col-title--spaced {
    margin-top: 32px;
}

.footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col li a {
/*    font-size: 20px;
    color: #778288;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
    display: block;*/

    display: block;
    font-size: 20px;
    font-weight: 400;
    padding: 1px 0;
    color: rgba(255, 255, 255, 0.50);
    transition: color 200ms;
}

.footer__col li a:hover {
/*    color: rgba(255, 255, 255, 0.95);*/
    color: rgba(242, 101, 34);
}

/* ── Social icons ────────────────────────────────── */
.footer__social {
    display: flex;
    gap: 18px;
    margin-top: 6px;
}

.footer__social-link {
    color: #1e7a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
}

.footer__social-link:hover {
    color: #4ecdc4;
}
.footer__social-link svg {
    width: 22px;
    height: 22px;
}

.footer__social-link[aria-label="X / Twitter"] {
    display: none;
}

/* ── Bottom bar ──────────────────────────────────── */
.footer__bottom {
    display: none;
}

.footer__bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__legal a:hover {
    color: #f2f2f2;
}

/* ── Product Enquiry floating button ─────────────── */
.footer__enquiry {
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 999;
    background: #ff5f1a;
    color: #111111;
    border-radius: 50px;
    width: 56px;
    height: 117px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 14px;
    gap: 0;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    text-align: center;
    overflow: visible;
}

.footer__enquiry:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(232, 82, 26, 0.55);
}

/* Hide the existing SVG */
.footer__enquiry svg {
    display: none;
}

.footer__enquiry span {
    position: absolute;
    width: 48px;
    height: 23px;
    left: calc(50% - 48px / 2 - 1px);
    top: 64px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 13px;
    color: #021c25;
}
.enquiry__icon {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 44px;
    background: #fafafa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 3px solid #ff5f1a; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); */
}

.enquiry__icon svg {
    width: 29px;
    height: 34px;
    display: block;
}

/* ── Responsive ──────────────────────────────────── */
/* 768px–∞ is handled by the zoom scale above; below 768 is the phone footer */
@media (max-width: 767px) {
    #site-footer {
        zoom: 1;
    }
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 36px 40px;
        padding-bottom: 368px;
    }
}

@media (max-width: 560px) {
    .footer__top {
        grid-template-columns: 1fr;
        padding: 40px 24px 368px;
    }
    .footer__bottom {
        padding: 16px 24px;
    }
    .footer__wm-text {
        font-size: 18vw;
    }
    .footer__enquiry {
        bottom: 20px;
        right: 20px;
        width: 62px;
        height: 62px;
    }
}

/* ── Safety Core full-width image ───────────────────────── */
.safety-core-img {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    line-height: 0;
    overflow: hidden;
}

.safety-core-img img {
    width: 100%;
    height: auto;
    display: block;
}
/* Shared hero swipe control — positioned from the CMR Figma reference. */
[data-swipe] {
    position: absolute !important;
    inset: auto !important;
    right: 60px !important;
    bottom: 50px !important;
    z-index: 3;
    width: 52px !important;
    height: 62px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #f2f2f2 !important;
    font-family: "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    text-align: center;
    cursor: pointer;
}
[data-swipe]::before { content: ""; width: 21px; height: 40px; background: url("/dist/images/common/hero-swipe.svg") center / 21px 40px no-repeat; flex: 0 0 40px; }
[data-swipe]::after { content: "Swipe"; }
[data-swipe] > * { display: none !important; }
/* Remove the hero "Swipe" hint on phones across every page. */
@media (max-width: 767px) {
    [data-swipe],
    .esg-swipe,
    .swipe {
        display: none !important;
    }

    /* Show the plain hero photo on phones — drop the dark gradient/tint overlays.
       Hero titles carry their own text-shadow for legibility. */
    .ab-hero__shade,
    .alr-hero__overlay,
    .cmr-hero__overlay,
    .cu-hero__overlay,
    .gap-hero__overlay,
    .gss-hero__overlay,
    .hero-shade,
    .ir-hero__shade,
    .md-hero__overlay,
    .reach-hero__shade,
    .tel-hero__overlay {
        display: none !important;
    }

    /* No hover/tap animation on phones — it isn't noticeable on touch. Kill hover/tap
       transitions and lift/scale transforms on buttons/links. NOTE: don't blanket-kill
       [class*="card"] transitions — carousels rely on them (the active-card scale). */
    a, button,
    [class*="btn"], [class*="cta"] {
        transition: none !important;
    }
    a:hover, a:active, a:focus,
    button:hover, button:active, button:focus,
    [class*="btn"]:hover, [class*="btn"]:active,
    [class*="cta"]:hover, [class*="cta"]:active,
    [class*="card"]:hover, [class*="card"]:active {
        transform: none !important;
    }
}
