/* ============================================================
   STP Recycle — Design System
   "Materials Yard" — the colours of the equipment, not the brochure.
   Skip-steel green, regulatory placard gold, bare steel & concrete.
   ============================================================ */

:root {
    /* Brand greens — the painted steel of an industrial waste skip */
    --forest: #04291b; /* Skip green — weathered container steel */
    --forest-frame: #032218; /* Darker chrome for navigation and footer */
    --forest-surface: #103b2c; /* Contact cards on dark sections */
    --forest-border: #2d5a49; /* Structure without a glass effect */
    /* Possible alternative: 273C2C */
    --canopy: #3b6e2a; /* Yard green */
    --leaf: #9eca7e; /* Sorted-output / sapling accent */
    --hero-dot: rgba(158, 202, 126, 0.46);
    --mist: #eaf5e2; /* Pale fill */
    --gold: #c9a227; /* Placard gold — kept for the trust & CTA bands */
    --accent: #aee15f; /* Primary accent (lime) — buttons, links, highlights */
    --paper: #f7faf4; /* Page base */
    --border: #c8dfc0;

    /* Industrial neutrals — bare metal & the slab floor */
    --steel: #6c726b;
    --steel-dk: #444b45;
    --concrete: #e7e9e3;
    --concrete-2: #eef0ea;
    --ink: #14241a;

    /* Component tokens */
    --btn-primary-bg: var(--accent);
    --btn-secondary-bg: transparent;
    --max-width: 1200px;
    /* Must match the fixed nav's actual height -- .nav reads it, and the hero
       subtracts it so the image sits the same visible distance from the nav as
       it does from the bottom of the section. */
    --nav-height: 68px;
    /* Laptop auto-scale factor (see "Laptop auto-scale" media queries).
     1 = no scaling; each band overrides both `zoom` and this token so
     viewport-height math (e.g. the 100vh hero) can divide it back out. */
    --zoom: 1;
    /* Page gutter for the full-bleed band (nav + hero): hugs the left/right
     edges with breathing room instead of the centered 1200px box. */
    --gutter: clamp(90px, 3vw + 14px, 112px);
    --section-gap: 84px;
    --radius-card: 12px; /* softened slightly, still a hard industrial edge */
    --radius-img: 12px; /* photo tiles / placeholders */
    --radius-btn: 3px;
    --duration-ambient: 10s;
    --ease-ambient: ease-in-out;

    /* Type */
    --font-display:
        "Inter", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
    --font-body:
        "Inter", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
}

/* Primary page content uses Manrope while navigation and footer retain the
   established Inter system. */
.home-main,
.gallery-main {
    --font-display:
        "Manrope", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
    --font-body:
        "Manrope", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
    font-family: var(--font-body);
}

/* ------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #2a3a2c;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hero-decor-dots {
        animation: none;
        opacity: 0.42;
        transform: none;
    }
    .hero-decor-dots::after {
        animation: none;
        opacity: 0;
    }
}

/* ------------------------------------------------------------
   Skip link — hidden until keyboard-focused
   ------------------------------------------------------------ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--forest);
    color: var(--paper);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-btn);
}
.skip-link:focus {
    top: 12px;
}

/* ------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: var(--section-gap);
}
.section-head {
    max-width: 660px;
    margin-bottom: 44px;
}
.section-head.center {
    margin-inline: auto;
    text-align: center;
}

/* Mono eyebrow — reads like a form field label / stamp */
.eyebrow {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--canopy);
    margin: 0 0 16px;
}

h2.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--forest);
    margin: 0 0 18px;
    text-wrap: balance;
}

.section-body {
    font-size: 16.5px;
    color: #51614f;
    margin: 0;
    line-height: 1.65;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px; /* pill — unified button shape across the site */
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    line-height: 1;
    transition:
        transform 0.15s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--forest);
}
.btn-primary:hover {
    background: #bfee76;
    box-shadow: 0 6px 18px rgba(174, 225, 95, 0.32);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--paper);
    border-color: rgba(247, 250, 244, 0.32);
}
.btn-secondary:hover {
    background: rgba(247, 250, 244, 0.08);
    border-color: rgba(247, 250, 244, 0.6);
}

.btn-onforest {
    background: var(--forest);
    color: var(--paper);
}
.btn-onforest:hover {
    background: #235029;
    box-shadow: 0 6px 18px rgba(26, 61, 31, 0.28);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-btn);
}
/* Pill buttons get a pill-shaped focus ring to match their shape */
.btn:focus-visible {
    border-radius: 999px;
}

/* ------------------------------------------------------------
   1. Navigation
   ------------------------------------------------------------ */
/* Full-width solid nav, anchored to the top edge. */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    background: var(--forest-frame);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav .container {
    max-width: none;
    padding-inline: var(--gutter);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--paper);
    white-space: nowrap;
    line-height: 1;
}
.logo .accent {
    color: var(--accent);
}
/* Navbar logo image (transparent white mark) */
.nav .logo {
    display: inline-block;
    line-height: 0;
}
/* max-width:none avoids the flex circular-sizing bug that collapses width to 0 */
.nav .logo img {
    height: 55px;
    width: auto;
    max-width: none;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-block: 0;
}
.nav-links a:not(.lang-btn) {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--mist);
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}
.nav-links a:not(.lang-btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-links a:not(.lang-btn):hover {
    color: var(--paper);
}
.nav-links a:not(.lang-btn).active {
    color: var(--leaf);
}
.nav-links a:not(.lang-btn).active::after {
    transform: scaleX(1);
}
.nav-links .nav-cta {
    margin-left: 4px;
    border-radius: 999px;
    padding-inline: 20px;
    color: #102a10;
}

/* Language switch (EN / ไทย) */
.nav-lang {
    display: flex;
    align-items: center;
}
.lang-switch {
    display: inline-flex;
    border: 1px solid rgba(247, 250, 244, 0.28);
    border-radius: 999px;
    overflow: hidden;
}
.lang-btn {
    background: transparent;
    border: 0;
    color: var(--mist);
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 13px;
    line-height: 1.5;
    /* Kept above the 24px WCAG 2.5.8 minimum tap target without ballooning
     the pill's visual height inside the 68px nav. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}
.lang-btn:hover {
    color: var(--paper);
}
.lang-btn.active {
    background: var(--accent);
    color: #102a10;
}
.lang-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(247, 250, 244, 0.25);
    border-radius: var(--radius-btn);
    padding: 8px 10px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--paper);
    margin: 4px 0;
    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}
.nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------------------------------------------
   2. Hero — asymmetric: headline bleeds left, credentials rail right
   ------------------------------------------------------------ */
/* Flat forest hero with low-contrast leaf and dot motifs behind the content. */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    /* Divide the zoom back out so the hero still fills the screen when the
     laptop auto-scale shrinks the viewport-height units. */
    min-height: calc(100vh / var(--zoom));
    /* Shared with the image cut and lime seam so both begin below the fixed
     navigation at exactly the same point. */
    --hero-pad-top: 120px; /* clears the fixed nav */
    --hero-pad-bottom: 72px;
    --hero-media-width: 64%;
    --hero-cut-top: 18%;
    --hero-cut-corner-end: 20%;
    --hero-cut-corner-start-x: 17.46%;
    --hero-cut-corner-start-y: 3%;
    /* Bottom-left corner, mirrored from the top-left so the cut reads as
       vertically symmetric. The diagonal meets the bottom edge at x = 0; these
       round that corner using the same offsets as above (2% along the edge,
       0.54%/3% back up the diagonal). */
    --hero-cut-bottom: 0%;
    --hero-cut-corner-bottom-end: 2%;
    --hero-cut-corner-bottom-x: 0.54%;
    --hero-cut-corner-bottom-y: 97%;
    /* Equal *visible* gap above and below the image. The top pad is measured
       from the top of the section, but the fixed nav covers its first
       --nav-height pixels, so the eye only sees the remainder. Subtract the nav
       at the bottom to match what is actually visible. */
    --hero-media-inset-top: var(--hero-pad-top);
    --hero-media-inset-bottom: calc(var(--hero-pad-top) - var(--nav-height));
    --hero-seam-width: 4px;
    --hero-image-top-border: rgba(226, 230, 226, 0.28);
    --hero-dots-left: calc(var(--gutter) - 42px);
    --hero-dots-bottom: 16px;
    padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
    background: linear-gradient(
      to bottom,
      var(--forest) 0%,
    #0b2d20 50%,
      var(--forest) 100%
    );
}
.hero-decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    max-width: none;
}
.hero-decor-leaves {
    top: 72px;
    left: -24px;
    width: min(52vw, 800px);
    height: auto;
    opacity: 0.14;
}

/* Hero image — a full-height industrial cut with a lime seam tracing its
   diagonal edge. */
/* Carries the drop shadow only. A filter on .hero-media would be painted and
   then clipped away by that element's own clip-path, so the shadow has to live
   on an unclipped ancestor. */
.hero-media-frame {
    position: absolute;
    top: var(--hero-media-inset-top);
    right: 0;
    bottom: var(--hero-media-inset-bottom);
    width: var(--hero-media-width);
    z-index: 1;
    filter: drop-shadow(-10px 13px 26px rgba(0, 0, 0, 0.38));
}
.hero-media {
    position: absolute;
    inset: 0;

    overflow: hidden;
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--hero-image-top-border);
    border-bottom: 1px solid var(--hero-image-top-border);
    box-shadow: none;

    clip-path: polygon(
        var(--hero-cut-top) 0,
        100% 0,
        100% 100%,
        var(--hero-cut-bottom) 100%
    );
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(1) saturate(1.05);
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    top: var(--hero-media-inset-top);
    right: 0;
    bottom: var(--hero-media-inset-bottom);
    width: var(--hero-media-width);
    pointer-events: none;

    clip-path: polygon(
        calc(var(--hero-cut-top) - var(--hero-seam-width)) 0,
        var(--hero-cut-top) 0,
        calc(var(--hero-cut-bottom) + var(--hero-seam-width)) 100%,
        var(--hero-cut-bottom) 100%
    );
}

/* The polygon declarations above are the cross-browser baseline. Keep the
   subtly rounded cut as a progressive enhancement outside Firefox: Firefox
   can report shape() support while resolving this custom-property curve to
   `none`, which lets the lime seam cover the complete hero image. */
@supports (
    clip-path: shape(
        from calc(20% - 4px) 0,
        curve to 17.46% 3% with 18% 0,
        line to 100% 100%,
        close
    )
) and (not (-moz-appearance: none)) {
    .hero-media {
        clip-path: shape(
            from var(--hero-cut-corner-end) 0,
            line to 100% 0,
            line to 100% 100%,
            line to var(--hero-cut-corner-bottom-end) 100%,
            curve to var(--hero-cut-corner-bottom-x) var(--hero-cut-corner-bottom-y)
                with var(--hero-cut-bottom) 100%,
            line to var(--hero-cut-corner-start-x) var(--hero-cut-corner-start-y),
            curve to var(--hero-cut-corner-end) 0 with var(--hero-cut-top) 0,
            close
        );
    }

    /* Traces the cut as a constant-width band: down the inner edge, across the
       end cap, back up the outer edge. Both ends round the same corners as
       .hero-media, offset by the seam width on the inner pass. */
    .hero::before,
    .hero::after {
        clip-path: shape(
            from calc(var(--hero-cut-corner-end) - var(--hero-seam-width)) 0,
            line to var(--hero-cut-corner-end) 0,
            curve to
                calc(var(--hero-cut-corner-start-x) + var(--hero-seam-width))
                var(--hero-cut-corner-start-y)
                with var(--hero-cut-top) 0,
            line to
                calc(var(--hero-cut-corner-bottom-x) + var(--hero-seam-width))
                var(--hero-cut-corner-bottom-y),
            curve to
                calc(var(--hero-cut-corner-bottom-end) + var(--hero-seam-width))
                100%
                with calc(var(--hero-cut-bottom) + var(--hero-seam-width)) 100%,
            line to var(--hero-cut-corner-bottom-end) 100%,
            curve to
                var(--hero-cut-corner-bottom-x) var(--hero-cut-corner-bottom-y)
                with var(--hero-cut-bottom) 100%,
            line to var(--hero-cut-corner-start-x) var(--hero-cut-corner-start-y),
            curve to
                calc(var(--hero-cut-corner-end) - var(--hero-seam-width))
                0
                with calc(var(--hero-cut-top) - var(--hero-seam-width)) 0,
            close
        );
    }
}
.hero::after {
    z-index: 2;
    background: var(--accent);
}
/* Optional cursor edge-glint experiment — isolated for easy removal. */
.hero::before {
    z-index: 3;
    background: radial-gradient(
        circle 92px at
            var(--hero-edge-glint-x, 9%)
            var(--hero-edge-glint-y, 50%),
        rgba(250, 252, 250, 0.8) 0%,
        rgba(240, 246, 239, 0.56) 24%,
        rgba(210, 232, 184, 0.22) 52%,
        rgba(174, 225, 95, 0) 100%
    );
    filter:
        blur(1.75px)
        drop-shadow(0 0 7px rgba(236, 244, 234, 0.26));
    opacity: var(--hero-edge-glint-opacity, 0);
}

.hero .container {
    max-width: none;
    padding-inline: var(--gutter);
}
.hero-grid {
    position: relative;
    z-index: 4;
}
.hero-main {
    position: relative;
    max-width: clamp(440px, 42vw, 740px);
}
.hero-decor-dots {
    left: var(--hero-dots-left);
    bottom: var(--hero-dots-bottom);
    width: 342px;
    height: 157px;
    opacity: 0.42;
    background-image: radial-gradient(
        circle,
        var(--hero-dot) 0 2px,
        transparent 2.4px
    );
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(
        ellipse at bottom left,
        #000 0%,
        rgba(0, 0, 0, 0.92) 22%,
        rgba(0, 0, 0, 0.55) 42%,
        rgba(0, 0, 0, 0.18) 64%,
        transparent 84%
    );
    mask-image: radial-gradient(
        ellipse at bottom left,
        #000 0%,
        rgba(0, 0, 0, 0.92) 22%,
        rgba(0, 0, 0, 0.55) 42%,
        rgba(0, 0, 0, 0.18) 64%,
        transparent 84%
    );
}
.hero-decor-dots::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        var(--hero-dot) 0 3.5px,
        transparent 3.9px
    );
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(
        105deg,
        transparent 0%,
        transparent 44%,
        rgba(0, 0, 0, 0.35) 47%,
        #000 50%,
        rgba(0, 0, 0, 0.35) 53%,
        transparent 56%,
        transparent 100%
    );
    mask-image: linear-gradient(
        105deg,
        transparent 0%,
        transparent 44%,
        rgba(0, 0, 0, 0.35) 47%,
        #000 50%,
        rgba(0, 0, 0, 0.35) 53%,
        transparent 56%,
        transparent 100%
    );
    -webkit-mask-size: 260% 100%;
    mask-size: 260% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: hero-dot-wave var(--duration-ambient) var(--ease-ambient)
        infinite;
}
@keyframes hero-dot-wave {
    0% {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
    72%,
    100% {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

.hero .eyebrow {
    color: #a6d684;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    /* 4.8vw reaches the 92px cap right at 1920 (the size that looks good there)
     and scales down more on laptops, instead of maxing out by ~1530px. */
    font-size: clamp(40px, 2.8vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-transform: none;
    color: var(--paper);
    max-width: 16ch;
    margin: 0 0 22px;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(226, 240, 224, 0.62);
    max-width: 540px;
    margin: 0 0 34px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Bright pill CTA */
.btn-pill {
    background: var(--accent);
    color: #102a10;
    border-radius: 999px;
    padding: 15px 30px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}
.btn-pill:hover {
    background: #bfee76;
    box-shadow: 0 10px 28px rgba(174, 225, 95, 0.32);
}
.btn-pill:active {
    transform: translateY(1px);
}

/* Secondary text-link CTA */
.hero-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}
.hero-link:hover {
    color: var(--accent);
}

/* Accreditation badges */
.hero-badges {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 38px 0 0;
}
.badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(226, 240, 224, 0.55);
}
.badge-check {
    font-size: 20px;
    color: rgba(226, 240, 224, 0.75);
}

/* ------------------------------------------------------------
   3. Trust bar — operational scale
   ------------------------------------------------------------ */
.trust {
    background: var(--gold);
    padding-block: 26px;
}
.trust-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.trust-item {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
    padding-inline: 16px;
    border-right: 1px solid rgba(26, 61, 31, 0.22);
}
.trust-item:last-child {
    border-right: none;
}
.trust-icon {
    flex: none;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--forest);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.trust-copy {
    min-width: 0;
}
.trust-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    color: var(--forest);
    margin-bottom: 4px;
}
.trust-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(26, 61, 31, 0.78);
}

/* ------------------------------------------------------------
   4. Client marquee
   ------------------------------------------------------------ */
.marquee {
    background: var(--paper);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-block: var(--section-gap);
}
.marquee-label {
    text-align: center;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: none;
    color: #5f6b5f;
    margin-bottom: 22px;
}
/* Featured / priority accounts — each mark sits in its own card so the six
   headline clients read as a deliberate tier above the scrolling marquee. */
.clients-featured {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 40px;
    padding-inline: var(--gutter, 24px);
}
.client-featured {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 30px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-img);
    box-shadow: 0 6px 18px rgba(4, 41, 27, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.client-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(4, 41, 27, 0.12);
}
.client-featured img {
    height: 100px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.marquee-sublabel {
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #5f6b5f;
    margin: 0 0 32px;
}

.marquee-viewport {
    position: relative;
    overflow: hidden;
}
.marquee-viewport::before,
.marquee-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee-viewport::before {
    left: 0;
    background: linear-gradient(90deg, #fff, transparent);
}
.marquee-viewport::after {
    right: 0;
    background: linear-gradient(270deg, #fff, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.client {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    border-right: 1px solid var(--border);
}
/* Logos normalised to one height and desaturated so a mix of colour,
   mono, and white-background marks read as one cohesive set. */
.client img {
    height: 46px;
    width: auto;
    max-width: 176px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition:
        filter 0.3s ease,
        opacity 0.3s ease;
}

/* ------------------------------------------------------------
   Locations — interactive map + site list
   ------------------------------------------------------------ */
.locations {
    background: var(--paper);
}
.locations-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.map-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--concrete);
}
.site-map {
    width: 100%;
    height: 460px;
    min-height: 320px;
    z-index: 0; /* keep tiles below the fixed nav */
}
.site-map .leaflet-popup-content {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
}
.site-map .leaflet-container {
    font-family: var(--font-body);
}

.site-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.site-item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.site-item:hover {
    border-color: var(--canopy);
    box-shadow: 0 6px 18px rgba(4, 41, 27, 0.08);
    transform: translateY(-2px);
}
.site-item:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.site-badge {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--forest);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16.5px;
    color: var(--forest);
    margin: 2px 0 4px;
}
.site-addr {
    font-size: 14px;
    color: #51614f;
    margin: 0;
    line-height: 1.5;
}
.site-meta {
    font-size: 12.5px;
    color: var(--canopy);
    margin: 6px 0 0;
    font-weight: 600;
}
.site-dir {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--canopy);
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}
.site-dir:hover {
    color: var(--forest);
    gap: 8px;
}

/* ------------------------------------------------------------
   5. Services — the licensed chain (asymmetric ledger)
   ------------------------------------------------------------ */
.services {
    background: white;
}
.services-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.services-intro {
    position: sticky;
    top: 96px;
}
.services-intro .section-body {
    margin-top: 18px;
}
.services-intro .lede {
    margin-top: 22px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: var(--steel);
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.chain {
    list-style: none;
    margin: 0;
    padding: 0;
}
.chain-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 26px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.chain-row:first-child {
    border-top: 1px solid var(--border);
}
.chain-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 40px;
    line-height: 0.8;
    color: #5f8f44; /* darkened from --leaf to meet AA contrast on white */
    font-feature-settings: "tnum";
}
.chain-row:hover .chain-num {
    color: var(--accent);
}
.chain-main {
    border-left: 1px solid var(--border);
    padding-left: 26px;
}
.chain-main h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 25px;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0.005em;
    color: var(--forest);
    margin: 0 0 9px;
}
.chain-main p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #54654f;
    max-width: 52ch;
}
.chain-code {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--steel-dk);
    background: var(--concrete);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 6px 10px;
    white-space: nowrap;
    margin-top: 4px;
}

/* ------------------------------------------------------------
   7. ISO Certifications
   ------------------------------------------------------------ */
.certs {
    background: white;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.cert-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.cert-header {
    background: var(--forest);
    padding: 24px 26px;
    display: flex;
    align-items: baseline;
    gap: 18px;
}
.cert-code {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 46px;
    line-height: 0.8;
    color: var(--accent);
    letter-spacing: -0.01em;
}
.cert-std {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--leaf);
    display: block;
    margin-bottom: 6px;
}
.cert-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    text-transform: none;
    color: var(--paper);
    line-height: 1;
}
.cert-desc {
    padding: 22px 26px;
    font-size: 14px;
    color: #54654f;
    line-height: 1.6;
    flex: 1;
}

/* Document drop zone — typographic, no icon */
.dropzone {
    margin: 0 26px 26px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-img);
    background: var(--concrete-2);
    padding: 22px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}
.dropzone:hover {
    border-color: var(--canopy);
}
.dropzone-tag {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: none;
    color: #3b6e2a; /* darkened from --accent (lime) to meet AA contrast */
    margin-bottom: 7px;
}
.dropzone-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    text-transform: none;
    color: var(--forest);
    margin-bottom: 3px;
    line-height: 1;
}
.dropzone-hint {
    font-family: var(--font-body);
    font-size: 11px;
    color: #5f6b5f;
    letter-spacing: 0.02em;
}

/* A filled slot is just a "View certificate" button that opens the viewer;
   no frame or preview image on the card. */
.dropzone.has-doc {
    padding: 0;
    border: 0;
    background: none;
}
/* Underlined green text link (same treatment as the hero "View our
   services" link, coloured for the light panel), sat bottom-right. */
.cert-view-btn {
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--canopy);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.cert-view-btn:hover {
    color: var(--forest);
}
.cert-lightbox .lb-img {
    -webkit-user-drag: none;
    user-select: none;
}
.cert-lightbox .lb-btn[hidden] {
    display: none;
}

/* ------------------------------------------------------------
   8. Government Licenses
   ------------------------------------------------------------ */
.licenses {
    background: var(--paper);
}
.license-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.license-header {
    background: var(--concrete-2);
    border-bottom: 1px solid var(--border);
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.type-badge {
    flex-shrink: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff;
    background: var(--canopy);
    padding: 7px 11px;
    border-radius: 3px;
    white-space: nowrap;
}
.license-name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--forest);
    line-height: 1.4;
    padding-top: 3px;
}
.dropzone.compact {
    margin: 0;
    border: none;
    border-top: 1px dashed var(--border);
    border-radius: 0;
    padding: 16px 22px;
    background: #fff;
}
.dropzone.compact .dropzone-title {
    font-size: 15px;
}

/* Combined compliance section — compact proof register */
.compliance-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: start;
}
.compliance-panel {
    padding: 28px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}
.compliance-panel .compliance-subhead {
    margin-bottom: 8px;
}
.compliance-panel > .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
}
#licenses > .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 14px;
}
.compliance-panel .cert-card {
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}
.compliance-panel .cert-card + .cert-card {
    border-top: 1px solid var(--border);
}
.compliance-panel .cert-header {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    background: transparent;
}
.compliance-panel .cert-code {
    min-height: 62px;
    display: grid;
    place-items: center;
    padding: 8px 12px;
    background: var(--forest);
    border-radius: var(--radius-card);
    color: var(--accent);
    font-size: 24px;
    line-height: 1;
}
.compliance-panel .cert-std {
    color: var(--canopy);
    margin-bottom: 4px;
}
.compliance-panel .cert-title {
    color: var(--forest);
    font-size: 17px;
    line-height: 1.25;
}
.compliance-panel .cert-desc,
.compliance-panel .dropzone {
    display: none;
}
/* ...but a slot that actually holds a certificate stays visible (higher
   specificity than the hide rule above). Empty slots remain hidden. */
.compliance-panel .dropzone.has-doc {
    display: block;
    margin: -6px 0 20px;
    text-align: right;
}
.license-summary {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}
.license-summary .license-name {
    padding-top: 0;
    font-size: 13px;
    line-height: 1.45;
}
.license-summary .license-note {
    grid-column: 2;
    margin-top: -4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--steel);
}
.license-summary .dropzone.has-doc {
    grid-column: 2;
    margin: -4px 0 0;
    text-align: left;
}
.license-summary .cert-view-btn {
    font-size: 12px;
}

.compliance-group + .compliance-group {
    margin-top: 0;
}
.compliance-subhead {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.01em;
    color: var(--forest);
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* ------------------------------------------------------------
   9. Gallery (homepage preview)
   ------------------------------------------------------------ */
.gallery {
    background: linear-gradient(
      to bottom,
      var(--forest) 0%,
    #0b2d20 35%,
    #0b2d20 65%,
      var(--forest) 100%
    );
}
.gallery .eyebrow {
    color: var(--leaf);
}
.gallery .section-title {
    color: var(--paper);
}
.gallery .section-body {
    color: rgba(247, 250, 244, 0.62);
}

.masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 16px;
    margin-bottom: 38px;
}
.gphoto {
    position: relative;
    /* .gphoto is a <figure> — reset the UA stylesheet's default
     margin: 1em 40px, otherwise it stacks on top of .masonry's gap. */
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-img);
    overflow: hidden;
    background-color: #16331a;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04) 0,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 14px
    );
}
.gphoto.feature {
    grid-column: span 2;
    grid-row: span 2;
}
.gphoto.has-img {
    cursor: pointer;
}
.gphoto.has-img img {
    transition: transform 0.35s ease;
}
.gphoto.has-img:hover img {
    transform: scale(1.05);
}
.gphoto.has-img:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.gphoto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gphoto .gcap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: none;
    color: rgba(247, 250, 244, 0.7);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}
.gphoto .gcap::before {
    content: "▸ ";
    color: var(--accent);
}
.gallery-actions {
    text-align: center;
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact {
    background: linear-gradient(
      to bottom,
      var(--forest) 0%,
    #0b2d20 35%,
    #0b2d20 65%,
      var(--forest) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact .section-head {
    max-width: 700px;
    margin-bottom: 48px;
}
.contact .eyebrow {
    color: var(--leaf);
}
.contact .section-title {
    color: var(--paper);
}
.contact .section-body {
    color: rgba(247, 250, 244, 0.64);
}
.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin-inline: auto;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px;
    background: var(--forest-surface);
    border: 1px solid var(--forest-border);
    border-radius: var(--radius-card);
    text-align: left;
    align-items: flex-start;
}
.contact-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.contact-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--paper);
    word-break: break-word;
}
.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px; /* pill */
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    min-height: 44px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}
.contact-btn:active {
    transform: translateY(1px);
}
.contact-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 999px;
}
.contact-btn-copy {
    background: transparent;
    color: var(--paper);
    border-color: rgba(247, 250, 244, 0.42);
}
.contact-btn-copy:hover {
    border-color: rgba(247, 250, 244, 0.68);
    background: rgba(255, 255, 255, 0.08);
}
.contact-btn-copy.copied {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--forest);
}
.contact-btn-call {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--forest);
}
.contact-btn-call:hover {
    background: #bfee76;
    border-color: #bfee76;
}

/* ------------------------------------------------------------
   11. Footer
   ------------------------------------------------------------ */
.footer {
    background: var(--forest-frame);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 60px 0 32px;
    color: rgba(247, 250, 244, 0.5);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 44px;
}
.footer .logo {
    line-height: 0;
    margin-bottom: 16px;
}
.footer .logo img {
    height: 55px;
    width: auto;
    max-width: none;
    display: block;
}
.footer-brand p {
    font-size: 13.5px;
    color: rgba(247, 250, 244, 0.5);
    max-width: 340px;
    line-height: 1.65;
    margin: 0;
}
.footer-col h2 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--leaf);
    margin: 0 0 16px;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}
.footer-col a {
    font-size: 13.5px;
    color: rgba(247, 250, 244, 0.64);
    transition: color 0.2s ease;
}
.footer-col a:hover {
    color: var(--paper);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p {
    font-family: var(--font-body);
    font-size: 11.5px;
    /* ≥0.55 alpha keeps this ≥4.5:1 on the forest background (WCAG AA) */
    color: rgba(247, 250, 244, 0.58);
    margin: 0;
    letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   Gallery page (gallery.html)
   ============================================================ */
.subpage-nav {
    background: var(--forest-frame);
}
.page-hero {
    background: var(--forest);
    padding: 116px 0 56px;
} /* top clears the fixed nav */
/* Back-to-home button, surfaced above the gallery filters */
.page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--canopy);
    background: #fff;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}
.page-back:hover {
    background: var(--mist);
    border-color: var(--canopy);
    color: var(--forest);
}
.page-hero .eyebrow {
    color: var(--leaf);
}
.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 68px);
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 0.92;
    color: var(--paper);
    margin: 0 0 16px;
    max-width: 16ch;
}
.page-hero p {
    color: rgba(247, 250, 244, 0.66);
    max-width: 540px;
    margin: 0;
    font-size: 16px;
}

.gallery-page {
    background: var(--paper);
    padding-block: 52px 84px;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.filter-btn {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: none;
    padding: 9px 16px;
    border-radius: 999px; /* pill */
    border: 1px solid var(--border);
    background: #fff;
    color: var(--canopy);
    min-height: 44px; /* a11y tap target */
    display: inline-flex;
    align-items: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
.filter-btn:hover {
    border-color: var(--canopy);
}
.filter-btn.active {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.page-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    border-radius: var(--radius-img);
    overflow: hidden;
    background-color: var(--concrete);
    background-image: repeating-linear-gradient(
        135deg,
        rgba(68, 75, 69, 0.06) 0,
        rgba(68, 75, 69, 0.06) 1px,
        transparent 1px,
        transparent 14px
    );
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
    padding: 0;
    font: inherit;
    display: block;
}
.page-photo:hover {
    transform: translateY(-2px);
    border-color: var(--canopy);
}
.page-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-photo .tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--steel);
}
.page-photo .pidx {
    position: absolute;
    top: 8px;
    right: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    color: rgba(68, 75, 69, 0.08);
}
.page-photo .pcap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.page-photo.has-img .pcap {
    opacity: 1;
}
.page-photo.hidden {
    display: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(12, 24, 14, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.open {
    display: flex;
}
.lb-stage {
    max-width: 1000px;
    max-height: 82vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-img {
    max-width: 100%;
    max-height: 74vh;
    border-radius: var(--radius-img);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #16331a;
}
.lb-placeholder {
    width: min(720px, 80vw);
    height: 58vh;
    border-radius: var(--radius-img);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #16331a;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 16px
    );
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 9vw, 90px);
    text-transform: none;
    color: rgba(158, 202, 126, 0.25);
}
.lb-cap {
    font-family: var(--font-body);
    color: rgba(247, 250, 244, 0.8);
    font-size: 12.5px;
    text-transform: none;
    letter-spacing: 0.04em;
    margin-top: 18px;
}
.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--paper);
    font-size: 22px;
    display: grid;
    place-items: center;
}
.lb-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}
.lb-prev {
    left: 24px;
}
.lb-next {
    right: 24px;
}
.lb-close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--paper);
    font-size: 20px;
}
.lb-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 980px) {
    /* The desktop gutter floor is large by design; pull it back once the
     layout stacks so it doesn't crush the content on tablets/phones. */
    :root {
        --gutter: 40px;
    }
    /* Stack vertically: revert the hero from the centered flex row to block
     flow so the now-static image drops below the text instead of beside it.
     Drop the forced full height too — on a phone it only adds a dead green
     band below the stacked content, so let the hero size to its content. */
    /* Stack as a full-height flex column so the hero fills the screen and the
     image grows to soak up whatever space is left below the text — keeps the
     yellow trust bar below the fold. */
    .hero {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 104px;
        padding-bottom: 0;
    }
    .hero-decor-leaves {
        top: 72px;
        left: -56px;
        width: min(92vw, 620px);
        height: auto;
        opacity: 0.08;
    }
    .hero-decor-dots {
        display: none;
    }
    .hero-main {
        max-width: none;
    }
    /* The shadow frame is desktop-only. display:contents removes its box
     entirely so .hero-media stays a direct flex child of .hero-grid and every
     rule below applies exactly as it did before the frame existed. */
    .hero-media-frame {
        display: contents;
    }
    /* Stacked layout: a slightly inset, framed image card (matching the gallery
     photos' border/radius) rather than a full-bleed faded image. */
    .hero-media {
        position: relative;
        /* The desktop rule sets top/right/bottom for absolute positioning —
       those offsets still apply under position:relative and must be reset,
       otherwise the box shifts left/up on top of the margin below. */
        top: auto;
        right: auto;
        bottom: auto;
        /* Definite width (full minus the side gutters): the image is absolutely
       positioned so the card has no intrinsic width, and the parent flex is
       align-items:center, so an auto width would collapse. */
        width: calc(100% - 2 * var(--gutter));
        flex: 1;
        min-height: 280px;
        margin: 40px var(--gutter);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-img);
        overflow: hidden;
        clip-path: none;
    }
    /* Drop the desktop left-to-right fade, and pin the image to fill the card —
     a percentage height won't resolve against the flexed parent. */
    .hero-media img {
        position: absolute;
        inset: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .hero::before,
    .hero::after {
        content: none;
    }
    .services-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .services-intro {
        position: static;
    }
    .locations-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .site-map {
        height: 360px;
    }
    .compliance-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .recovered-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .masonry {
        grid-template-columns: repeat(3, 1fr);
    }
    .page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
        --gutter: 24px;
    }
    .hero-media {
        height: 220px;
    }
    .hero-decor-leaves {
        top: 68px;
        left: -48px;
        width: 110vw;
        height: auto;
        opacity: 0.07;
    }
    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--forest);
        border-bottom: 1px solid rgba(158, 202, 126, 0.16);
        padding: 8px 24px 18px;
        margin: 0;
        display: none;
    }
    .nav.open .nav-links {
        display: flex;
    }
    .nav-links a:not(.lang-btn) {
        padding: 13px 0;
    }
    .nav-links a:not(.lang-btn)::after {
        display: none;
    }
    .nav-links .nav-cta {
        margin: 10px 0 0;
    }
    .nav-toggle {
        display: block;
    }

    .trust-row {
        flex-wrap: wrap;
    }
    .trust-item {
        flex: 0 0 33.333%;
        justify-content: flex-start;
        padding-block: 12px;
    }
    .trust-item:nth-child(3) {
        border-right: none;
    }
    .trust-item:nth-child(n + 4) {
        border-top: 1px solid rgba(26, 61, 31, 0.22);
    }

    .chain-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 16px 18px;
    }
    .chain-code {
        grid-column: 2;
        justify-self: start;
        margin-top: 8px;
    }
    .chain-main {
        padding-left: 18px;
    }
    .recovered {
        padding: 30px 24px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
    .compliance-panel {
        padding: 20px;
    }
    #licenses > .grid-2 {
        grid-template-columns: 1fr;
    }
    .license-summary {
        min-height: 72px;
    }
    .contact-card {
        padding: 24px;
    }
    .contact-actions {
        width: 100%;
    }
    .contact-btn {
        flex: 1;
    }

    .marquee-track {
        animation-duration: 72s;
    }
    .clients-featured {
        gap: 14px;
        margin-bottom: 30px;
    }
    .client-featured {
        padding: 16px 20px;
    }
    .client-featured img {
        height: 52px;
        max-width: 170px;
    }
    .masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    .page-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .lb-prev {
        left: 10px;
    }
    .lb-next {
        right: 10px;
    }
}

@media (max-width: 460px) {
    .trust-item {
        flex: 0 0 50%;
        gap: 10px;
        padding-inline: 10px;
    }
    .trust-icon {
        width: 28px;
        height: 28px;
    }
    .trust-num {
        font-size: 26px;
    }
    .trust-label {
        font-size: 10.5px;
    }
    .trust-item:nth-child(3) {
        border-right: 1px solid rgba(26, 61, 31, 0.22);
    }
    .trust-item:nth-child(odd) {
        border-right: none;
    }
    .trust-item:nth-child(n + 3) {
        border-top: 1px solid rgba(26, 61, 31, 0.22);
    }
}

/* ------------------------------------------------------------
   Laptop auto-scale
   ------------------------------------------------------------
   The design is tuned for large (~1920px) monitors. On smaller
   laptops the fixed pixel sizes feel oversized, so we proportionally
   scale the whole UI down — the same effect as manually zooming the
   browser out, but automatic. Each band is roughly width / 1920, so a
   laptop renders the layout at the proportions of the big monitor.

   Only applies to the desktop layout (>980px) and stops at 1800px, so
   genuine large monitors (incl. 1920px) are left at full size. Tune the
   single zoom value per band if you want it more/less aggressive.

   Note: `zoom` does not change the width used to evaluate these media
   queries, so the bands stay stable (no feedback loop). */
@media (min-width: 981px) and (max-width: 1280px) {
    :root {
        zoom: 0.74;
        --zoom: 0.74;
    }
}
@media (min-width: 1281px) and (max-width: 1440px) {
    :root {
        zoom: 0.8;
        --zoom: 0.8;
    }
} /* ~1366 laptops */
@media (min-width: 1441px) and (max-width: 1600px) {
    :root {
        zoom: 0.86;
        --zoom: 0.86;
    }
} /* ~1536 laptops */
@media (min-width: 1601px) and (max-width: 1792px) {
    :root {
        zoom: 0.92;
        --zoom: 0.92;
    }
}

/* Navigation wrapper and utility classes added for accessibility */
.nav-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    .nav-menu {
        display: contents;
    }
}
.footer-bottom.no-border {
    border-top: none;
    padding-top: 0;
}
