/* ============ NAV ============ */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.5s ease;
}
.site-nav.nav-hidden {
    transform: translateY(-100%);
}
.site-nav-inner {
    max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter);
    height: var(--nav-h); display: flex; align-items: center; gap: 2rem;
}
.nav-logo img { height: 20px; width: auto; }
.nav-links { display: none; gap: 1.75rem; margin-left: auto; }
.nav-links a { font: 500 0.85rem/1 var(--font-body); color: var(--dark); transition: color .3s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: none; padding: 0.7rem 1.5rem; }
#nav-toggle {
    margin-left: auto; width: 40px; height: 40px; background: none; border: 0; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
#nav-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .3s, opacity .3s; }
#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; margin-left: 0; }
    #nav-toggle { display: none; }
}

/* Full-screen mobile menu */
#nav-overlay {
    position: fixed; inset: 0; z-index: 990; background: var(--bg);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
    opacity: 0; pointer-events: none; transition: opacity .4s;
}
#nav-overlay.open { opacity: 1; pointer-events: auto; }
.overlay-links { display: flex; flex-direction: column; gap: 1.25rem; }
.overlay-links a {
    font: 700 clamp(1.75rem, 7vw, 2.5rem)/1.1 var(--font-head);
    text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 1rem;
}
.overlay-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9rem; color: rgba(13,37,64,0.7); }

/* ============ FOOTER (visual parity with legacy) ============ */
.site-footer { background: var(--bg); color: var(--dark); font-weight: 600; padding-top: 4rem; }
.footer-rule { border-top: 2px solid var(--dark); margin-bottom: clamp(3rem, 6vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: clamp(4rem, 8vw, 6rem); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-logo-mask {
    height: 2.5rem; width: 10rem; background: var(--dark);
    -webkit-mask: url('../Photos/logos/mpg-logo.webp') no-repeat left center / contain;
    mask: url('../Photos/logos/mpg-logo.webp') no-repeat left center / contain;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-col a { font: 500 0.95rem/1.4 var(--font-body); transition: color .3s; }
.footer-col a:hover { color: var(--primary); }
.footer-wordmark { padding-block: 2rem 1rem; overflow: hidden; user-select: none; }
.footer-wordmark svg { width: 100%; height: auto; color: var(--dark); }
.footer-legal {
    display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center;
    padding-bottom: 2rem; font: 400 0.8rem/1 var(--font-body); color: #9ca3af;
}
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: var(--primary); }

/* ============ HERO ============ */
#hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: rgba(13, 37, 64, 0.55); }
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: var(--nav-h); }
.hero-title { font-size: clamp(2.6rem, 7vw, 6.5rem); text-transform: uppercase; color: #fff; }
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; }
.js .hero-line > span { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) { .js .hero-line > span { transform: none; } }
.hero-sub { max-width: 40rem; margin-top: 1.5rem; color: rgba(255, 255, 255, 0.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-chip {
    padding: 0.6rem 1.2rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
    font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.15em; text-transform: uppercase; color: #fff;
    background: rgba(13, 37, 64, 0.35);
}
.hero-scroll { position: absolute; bottom: 1.5rem; left: 0; right: 0; z-index: 2; color: #fff; }
.hero-scroll-rule { height: 1px; background: rgba(255, 255, 255, 0.4); margin-bottom: 0.75rem; }
.hero-scroll-row { display: flex; justify-content: space-between; align-items: center; font: 500 0.85rem/1 var(--font-body); }
.hero-scroll svg { animation: hero-bounce 1.6s ease-in-out infinite; }
@keyframes hero-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll svg { animation: none; } }

/* Below 768px, full-bleed cover crops a landscape video down to an
   unrecognizable sliver of its center frame. Letterbox it instead: the video
   keeps its native 16:9 shape at the top of the section, and the headline
   moves into a solid block below rather than overlaid on top of it. */
@media (max-width: 767px) {
    /* The fixed nav sits on top of the flow now that the video isn't full-bleed
       behind it — push the whole section down by the nav's height so the video
       starts right below it instead of getting its top edge covered. */
    #hero { min-height: 0; display: block; padding-top: calc(var(--nav-h) + 1px); } /* +1px for .site-nav's border-bottom */
    .hero-video { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .hero-shade { display: none; }
    .hero-content { position: static; background: var(--bg); padding-top: 2.5rem; padding-bottom: 3rem; }
    .hero-title { color: var(--dark); }
    .hero-sub { color: rgba(13, 37, 64, 0.72); }
    .hero-ctas .btn-secondary.on-dark { border-color: var(--dark); color: var(--dark); }
    .hero-ctas .btn-secondary.on-dark:hover { background: var(--dark); color: #fff; }
    .hero-scroll { display: none; }
}

/* ============ ABOUT ============ */
.statement {
    font-family: var(--font-head); font-weight: 500; color: var(--dark);
    font-size: clamp(1.5rem, 3.2vw, 3rem); line-height: 1.25; max-width: 62rem; letter-spacing: -0.01em;
}
.statement-word { opacity: 0.18; }
@media (prefers-reduced-motion: reduce) { .statement-word { opacity: 1; } }
.no-js .statement-word { opacity: 1; }
.about-cta { margin-top: 2.5rem; }
.about-marquee { margin-top: clamp(3rem, 6vw, 5rem); }
.about-marquee .marquee-track span {
    font: 700 clamp(4rem, 9vw, 8rem)/1 var(--font-head);
    text-transform: uppercase; color: rgba(13, 37, 64, 0.05); letter-spacing: 0.05em;
}

/* ============ GROWTH HISTORY ============ */

/* ============ GROWTH HISTORY (LEGACY SECTION) ============ */

/* Mobile/tablet: horizontal scroll-snap carousel, same mechanics as
   #range-carousel (Products). The pinned scroll-jacking desktop layout below
   only suits wide viewports — a full-viewport-height panel reads as broken
   on anything narrower, so this replaces it entirely below 1024px. */

/* #legacy can't carry the .section class (the desktop scroll-track supplies
   its own height), so the global section padding is applied here instead,
   scoped to the widths where the carousel layout is active. */
@media (max-width: 1023px) {
    #legacy { padding-block: var(--section-pad); }
}

.legacy-mobile-head { margin-bottom: 1.5rem; }

#legacy-carousel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    /* Without this, mandatory snapping aligns the active card to the raw
       scrollport edge — scrolling straight past padding-inline and pinning
       the first card flush against the screen. */
    scroll-padding-inline: var(--gutter);
    scroll-behavior: smooth;
    scrollbar-width: none;
}
#legacy-carousel::-webkit-scrollbar { display: none; }

#legacy-carousel [data-legacy-item] {
    width: 80vw;
    max-width: 340px;
    flex-shrink: 0;
    scroll-snap-align: start;
    /* flex wrapper so the .milestone inside stretches to the item's height —
       the carousel's default align-items: stretch then equalizes every card
       to the tallest one, instead of each card sizing to its own text. */
    display: flex;
}

/* The media keeps a fixed aspect-ratio; the body area absorbs the leftover
   height, so all cards share identical dimensions regardless of text length. */
#legacy-carousel .milestone {
    width: 100%;
    border: 1px solid var(--border);
}
#legacy-carousel .milestone-media {
    aspect-ratio: 4 / 3;
    flex: none;
}

.legacy-carousel-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.legacy-carousel-controls .carousel-arrows { display: flex; align-items: center; gap: 1rem; }
.legacy-carousel-controls .carousel-arrow-btn {
    width: 3rem; height: 3rem; border-radius: 50%;
    background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); cursor: pointer; transition: all 0.2s ease;
}
.legacy-carousel-controls .carousel-arrow-btn:active { background: var(--primary); color: #fff; }
.legacy-carousel-controls .carousel-dots { display: flex; align-items: center; gap: 0.75rem; }
.legacy-carousel-controls .carousel-dot {
    width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: var(--primary); border: 0; cursor: pointer;
    transition: all 0.3s ease; padding: 0; opacity: 0.4;
}
.legacy-carousel-controls .carousel-dot.active { width: 0.75rem; height: 0.75rem; background: var(--accent); opacity: 1; }

@media (min-width: 1024px) {
    .legacy-mobile-head, #legacy-carousel, .legacy-carousel-controls {
        display: none;
    }
}

#legacy-scroll-track {
    display: none;
    height: 500vh;
    position: relative;
    width: 100%;
    background: var(--tint);
}

.legacy-sticky-wrapper {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--tint);
    padding-inline: var(--gutter);
}

.legacy-top-bar {
    flex-shrink: 0;
    padding-top: 1.5rem;
}
.legacy-top-bar .section-head {
    margin-bottom: 0;
}

.legacy-cols {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 1.5rem;
}

.legacy-sticky-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1.75rem;
}

.legacy-sticky-title .section-title {
    margin: 0;
    line-height: 1.1;
}
.legacy-sticky-title .section-title br {
    display: none;
}

.legacy-progress-bar-wrap {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}
.legacy-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--dark);
    border-radius: 999px;
    transition: width 80ms linear;
    will-change: width;
}

.legacy-panels-area {
    width: 100%;
    flex: 1;
    position: relative;
    min-height: 0;
}

.legacy-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: transform 150ms ease-out;
    will-change: transform;
    transform-origin: top center;
}

/* Shared by both the desktop pinned panels (.legacy-panel .milestone) and the
   mobile/tablet carousel (#legacy-carousel .milestone) — only sizing (width/
   height/media flex-basis) differs between the two contexts, set separately
   below. */
.milestone {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 1.25rem;
    background: var(--bg);
}
.legacy-panel .milestone {
    width: 100%;
    height: 100%;
}

.milestone-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 0;
}
.legacy-panel .milestone-media {
    flex: 1;
}
.milestone-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.milestone-body {
    margin-top: 1rem;
    flex-shrink: 0;
    display: grid;
    gap: 0.5rem;
}
.milestone-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.milestone-year {
    font: 700 clamp(1.8rem, 4vw, 2.5rem)/1 var(--font-head);
    color: var(--primary);
}
.milestone h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin: 0;
}
.milestone p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}
.legacy-panel .milestone .bk {
    display: none;
}

/* Desktop styles Override */
@media (min-width: 1024px) {
    #legacy-scroll-track {
        display: block;
    }

    .legacy-sticky-wrapper {
        max-width: 1600px;
        margin-inline: auto;
    }

    .legacy-top-bar {
        padding-top: clamp(2rem, 3vw, 3rem);
    }

    .legacy-cols {
        flex-direction: row;
        padding-bottom: 0;
    }

    .legacy-sticky-title {
        width: 50%;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        padding-top: clamp(2rem, 3vw, 3rem);
        padding-right: var(--gutter);
        padding-bottom: clamp(2rem, 3vw, 3rem);
        gap: 0;
    }

    .legacy-sticky-title .section-title {
        align-self: flex-start;
    }
    .legacy-sticky-title .section-title br {
        display: inline;
    }

    .legacy-progress-bar-wrap {
        width: 100%;
    }

    .legacy-panels-area {
        width: 50%;
        flex: none;
        overflow: visible;
    }

    .legacy-panel {
        top: clamp(2rem, 3vw, 3rem);
        bottom: clamp(2rem, 3vw, 3rem);
        display: flex;
        align-items: flex-start;
    }

    .legacy-panel .milestone {
        height: auto;
        max-height: 100%;
        padding: clamp(1.5rem, 2.5vw, 2.5rem);
    }

    .legacy-panel .milestone-media {
        flex: none;
        aspect-ratio: 16 / 9;
    }

    .legacy-panel .milestone-body {
        margin-top: 1.5rem;
        gap: 1.1rem;
    }
    .milestone-year {
        font: 700 clamp(2.5rem, 5vw, 4rem)/1 var(--font-head);
    }
    .legacy-panel .milestone h3 {
        font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    }
    .legacy-panel .milestone p {
        font-size: clamp(1.05rem, 1.3vw, 1.2rem);
        line-height: 1.65;
    }
}

/* ============ CERTIFICATIONS ============ */
#cert-stage {
    position: relative;
    padding-bottom: var(--section-pad);
}
#certifications .section-title {
    text-align: center;
}
.cert-intro, .products-intro {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.cert-intro p, .products-intro p {
    max-width: 42rem;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    margin: 0 auto;
    color: var(--dark);
}
#products .products-intro {
    margin-bottom: 1rem;
}
.products-download-btn {
    display: flex;
    width: fit-content;
    margin: 0 auto 1.25rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 4rem);
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
/* Card proportions match .glass-card (Suppliers) exactly; logos stay full
   color here (unlike that one). */
.cert-card {
    aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
    padding: 2rem; border-radius: 16px; cursor: pointer; background: var(--bg); overflow: hidden;
    transition: border-color .3s;
}
.cert-card:hover { border-color: var(--primary); }
@media (max-width: 768px) {
    .cert-card { aspect-ratio: 3 / 2; padding: 1.25rem; }
}
@media (max-width: 480px) {
    .cert-grid { gap: 0.75rem; }
    .cert-card { aspect-ratio: 3 / 2; }
}
.cert-num {
    position: absolute; top: clamp(0.5rem, 1vw, 0.75rem); left: clamp(0.6rem, 1.2vw, 0.9rem);
    font: 700 0.65rem/1 var(--font-head); color: rgba(13, 37, 64, 0.35); letter-spacing: 0.05em;
}
.cert-card img {
    /* width/height (not max-width/max-height + auto) so low-resolution source
       files get scaled up to fill the same box as everything else, instead
       of rendering at native pixel size when that's smaller than the box. */
    position: relative; width: 85%; height: 80%; object-fit: contain;
}
/* Modal */
.cert-modal-root { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; margin: 0; padding: 0; }
.cert-modal-close {
    position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark); background: var(--bg); border: 1px solid var(--dark); border-radius: 999px; cursor: pointer;
    transition: color .3s, background-color .3s, border-color .3s;
}
.cert-modal-close:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
@media (min-width: 768px) { .cert-modal-close { top: 2rem; right: 2rem; } }
.cert-modal-inner {
    position: relative; z-index: 10; display: flex; flex-direction: column; align-items: stretch;
    width: fit-content; min-width: min(92vw, 320px); max-width: 92vw; max-height: 90vh;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
}
.cert-modal-head {
    display: flex; align-items: center; gap: 1rem; flex-shrink: 0;
    padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.cert-modal-preview {
    flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: var(--tint); border-radius: var(--radius-sm); padding: 0.5rem;
}
.cert-modal-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-modal-head-text { min-width: 0; }
.cert-modal-title {
    color: var(--dark); font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    margin: 0 0 0.3rem;
}
.cert-modal-desc { font-size: 0.85rem; color: rgba(13, 37, 64, 0.65); margin: 0; line-height: 1.4; }
.cert-modal-doc {
    flex: 1; min-height: 0; min-width: 0; width: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--tint); border: 1px solid var(--border); border-radius: var(--radius-sm);
    overflow: auto; margin-bottom: 1.25rem;
}
.cert-modal-doc iframe { height: min(60vh, 640px); max-width: 100%; aspect-ratio: 595 / 842; border: 0; background: #fff; }
.cert-modal-doc-empty { padding: 3rem 1.5rem; text-align: center; color: rgba(13, 37, 64, 0.55); font-size: 0.9rem; }
.cert-modal-download { width: 100%; flex-shrink: 0; }

/* Enquire modal — shares .cert-modal-root/.cert-modal-close for the overlay + close button */
.enquire-modal-inner {
    position: relative; z-index: 10;
    width: min(92vw, 32rem); max-height: 90vh; overflow-y: auto;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: left;
    scrollbar-width: none; /* Firefox */
}
.enquire-modal-inner::-webkit-scrollbar { display: none; }
.enquire-modal-inner .section-head { margin-bottom: 1rem; }
.enquire-modal-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.5rem; }
.enquire-modal-inner .cta-sub { margin-bottom: 1.75rem; }
.enquire-modal-inner form { display: grid; gap: 1.25rem; }

/* ============ DAILY STATS ============ */
/* .stats-wrap inherits max-width: 1600px + padding from .container */
.stat-row { 
    border-bottom: 1px solid var(--border); 
    padding-block: 3.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 2rem; 
    flex-wrap: wrap; 
}
.stat-row:last-child { border-bottom: 0; }
.stat-top { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.stat-icon { 
    width: clamp(3rem, 6vw, 5rem); 
    height: clamp(3rem, 6vw, 5rem); 
    background: var(--dark); 
    -webkit-mask-repeat: no-repeat; 
    mask-repeat: no-repeat; 
    -webkit-mask-position: center; 
    mask-position: center; 
    -webkit-mask-size: contain; 
    mask-size: contain; 
    flex-shrink: 0; 
    transition: background-color 0.4s ease, transform 0.4s ease;
}
.stat-row h3 { 
    font-size: clamp(2.5rem, 6vw, 5rem); 
    letter-spacing: -0.03em; 
    display: inline-flex; 
    align-items: baseline; 
    color: var(--dark);
    transition: color 0.4s ease;
}
.stat-row:hover h3 {
    color: var(--primary);
}
.stat-row p { max-width: 18rem; font-size: clamp(1rem, 1.5vw, 1.25rem); text-align: right; margin-left: auto; }

/* Hover animations */
.stat-row:hover .stat-icon {
    background-color: var(--primary);
    transform: scale(1.05);
}

/* Odometer numbers slide structure */
.digit-container {
    display: inline-flex;
    height: 1.1em;
    line-height: 1.1em;
    overflow: hidden;
    vertical-align: bottom;
}
.digit-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--i) * 0.04s);
}
.digit-val {
    display: inline-flex;
    height: 1.1em;
    align-items: center;
    justify-content: center;
}
.digit-val--default {
    color: inherit;
}
.digit-val--blue {
    color: var(--primary);
}

/* Hover triggers vertical sliding */
.stat-row:hover .digit-track {
    transform: translateY(-1.1em);
}

.stat-word {
    display: inline-block;
    white-space: pre;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: calc(var(--w) * 0.03s);
}
.stat-row:hover .stat-word {
    transform: translateX(-15px);
}

@media (max-width: 768px) {
    .stat-row { flex-direction: column; align-items: flex-start; }
    .stat-row h3 { font-size: clamp(3.5rem, 10vw, 4.5rem); }
    .stat-row p { text-align: left; margin-left: 0; }
    .stat-row:hover .digit-track { transform: none; }
    .stat-row:hover .stat-word { transform: none; }
}

/* ============ SERVICES — two square tiles, stacked scroll like Legacy ============ */
#services { padding-block: 0; }
@media (max-width: 1023px) {
    #services { padding-block: var(--section-pad); }
}

.services-mobile-head { margin-bottom: 1.5rem; }

/* Shared tile look — reused by the mobile carousel item, the static title
   square, and every stacked panel on desktop. */
.services-tile {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
    height: 100%;
}
.services-tile--title {
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('../Photos/assets/services-bg.webp') center / cover no-repeat;
    color: #fff;
    justify-content: space-between;
}
/* Sizing/weight/uppercase come from .section-title (css/base.css), applied
   alongside this class in the markup. These are just the tile-specific
   deltas: tighter leading for the two-line "Our Services" stack, and no
   top margin since the tile's flex layout handles spacing. */
.services-tile-heading {
    line-height: 0.95;
    margin: 0;
}
.services-progress-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
}
.services-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 999px;
    transition: width 80ms linear;
    will-change: width;
}

.services-tile--active {
    background: var(--primary-deep);
    color: #fff;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-direction: row;
    align-items: center;
}
.services-item-num {
    font: 700 clamp(4rem, 10vw, 7rem)/0.85 var(--font-head);
    color: #fff;
    flex-shrink: 0;
}
.services-item-body h3 {
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    line-height: 1.15;
}
.services-item-body p {
    font: 600 clamp(0.9rem, 1.3vw, 1.1rem)/1.4 var(--font-body);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 22ch;
}

/* ═══ MOBILE/TABLET carousel ═══ */
#services-carousel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scroll-behavior: smooth;
    scrollbar-width: none;
}
#services-carousel::-webkit-scrollbar { display: none; }
#services-carousel [data-services-item] {
    width: 80vw;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.services-carousel-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.services-carousel-controls .carousel-arrows { display: flex; align-items: center; gap: 1rem; }
.services-carousel-controls .carousel-arrow-btn {
    width: 3rem; height: 3rem; border-radius: 50%;
    background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); cursor: pointer; transition: all 0.2s ease;
}
.services-carousel-controls .carousel-arrow-btn:active { background: var(--primary); color: #fff; }
.services-carousel-controls .carousel-dots { display: flex; align-items: center; gap: 0.75rem; }
.services-carousel-controls .carousel-dot {
    width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: var(--primary); border: 0; cursor: pointer;
    transition: all 0.3s ease; padding: 0; opacity: 0.4;
}
.services-carousel-controls .carousel-dot.active { width: 0.75rem; height: 0.75rem; background: var(--accent); opacity: 1; }

@media (min-width: 1024px) {
    .services-mobile-head, #services-carousel, .services-carousel-controls {
        display: none;
    }
}

/* ═══ DESKTOP: pinned scroll-stacking, mirrors #legacy-scroll-track ═══ */
#services-scroll-track {
    display: none;
    height: 490vh;
    position: relative;
    width: 100%;
    background: var(--tint);
}

.services-sticky-wrapper {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--tint);
    padding-inline: var(--gutter);
}

.services-top-bar {
    flex-shrink: 0;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.services-grid {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.services-grid .services-tile--title,
.services-panels-area {
    aspect-ratio: 1 / 1;
}

.services-panels-area {
    position: relative;
}

.services-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: transform 150ms ease-out;
    will-change: transform;
    transform-origin: top center;
}

@media (min-width: 1024px) {
    #services-scroll-track { display: block; }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ============ PRODUCTS ============ */
#products {
    padding-block: var(--section-pad);
}
#products .section-title { text-align: center; }
/* Mobile/Tablet Horizontal Scroll Carousel */
#range-carousel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    /* Without this, mandatory snapping aligns the active card to the raw
       scrollport edge — scrolling straight past padding-inline and pinning
       the first card flush against the screen. */
    scroll-padding-inline: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

#range-carousel::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

/* Mobile/Tablet Card */
#range-carousel [data-carousel-item] {
    width: 75vw;
    max-width: 320px;
    height: 400px;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
}

@media (min-width: 768px) {
    #range-carousel [data-carousel-item] {
        width: 320px;
        height: 460px;
    }
}

#range-carousel [data-carousel-item] .absolute.inset-0 {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#range-carousel [data-carousel-item] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.7s ease;
}

#range-carousel [data-carousel-item]:hover img {
    transform: scale(1.05);
}

#range-carousel [data-carousel-item] .gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,37,64,0.9) 0%, rgba(13,37,64,0.4) 40%, rgba(13,37,64,0.9) 100%);
}

#range-carousel [data-carousel-item] .relative.z-10 {
    position: relative;
    z-index: 10;
}

#range-carousel [data-carousel-item] h4 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

#range-carousel [data-carousel-item] h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    transition: all 0.5s ease-in-out;
    max-height: 140px;
    opacity: 1;
}

@media (min-width: 768px) {
    #range-carousel [data-carousel-item] h3 {
        font-size: 1.75rem;
        max-height: 100px;
    }
}

/* Expanded specs container for mobile */
#range-carousel [data-carousel-item] .specs-container {
    position: relative;
    z-index: 10;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: height 0.5s ease-in-out;
    height: 3rem; /* 48px */
}

/* Expanded state overrides */
#range-carousel [data-carousel-item].is-expanded h3 {
    max-height: 0 !important;
    opacity: 0;
    transform: translateY(-8px);
    margin: 0;
}

#range-carousel [data-carousel-item].is-expanded .specs-container {
    height: 260px;
}

@media (min-width: 768px) {
    #range-carousel [data-carousel-item].is-expanded .specs-container {
        height: 280px;
    }
}

#range-carousel [data-carousel-item] .specs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3rem;
    flex-shrink: 0;
    background: transparent;
}

#range-carousel [data-carousel-item] .specs-bar span {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s;
}

#range-carousel [data-carousel-item].is-expanded .specs-bar span {
    opacity: 1;
}

#range-carousel [data-carousel-item] .expand-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    transform: rotate(0);
    flex-shrink: 0;
}

#range-carousel [data-carousel-item].is-expanded .expand-btn {
    background: #fff;
    color: var(--dark);
    transform: rotate(45deg);
}

#range-carousel [data-carousel-item] .specs-content {
    padding-top: 0.75rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.1s;
    flex: 1;
    overflow-y: auto;
}

#range-carousel [data-carousel-item].is-expanded .specs-content {
    opacity: 1;
}

#range-carousel [data-carousel-item] .specs-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

#range-carousel [data-carousel-item] .specs-content li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

#range-carousel [data-carousel-item] .specs-content svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Carousel controls (arrows and dots) */
#products .carousel-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-inline: 1rem;
}

#products .carousel-arrows {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#products .carousel-arrow-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

#products .carousel-arrow-btn:active {
    background: var(--primary);
    color: #fff;
}

#products .carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#products .carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0.4;
}

#products .carousel-dot.active {
    width: 0.75rem;
    height: 0.75rem;
    background: var(--accent);
    opacity: 1;
}

/* Desktop Cinematic Expanding Panels Carousel */
#products .desktop-carousel-container {
    display: none;
    position: relative;
    width: 100%;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    #products #range-carousel {
        display: none;
    }
    #products .carousel-controls {
        display: none;
    }
    #products .desktop-carousel-container {
        display: block;
    }
}

#desktop-product-carousel {
    display: flex;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    gap: 1rem;
    padding-block: 1rem;
    align-items: stretch;
}

.carousel-panel {
    flex: 1;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.7;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #1a3a5e;
}

/* .is-preview-open mirrors :hover exactly — it's how the Whole Birds panel
   opens pre-expanded on load, before anyone has touched the row. */
.carousel-panel:hover,
.carousel-panel.is-preview-open {
    flex: 4;
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.carousel-panel .bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
    z-index: 0;
}

.carousel-panel:hover .bg-image,
.carousel-panel.is-preview-open .bg-image {
    transform: scale(1.05);
}

/* .bg-color sits underneath in full color; .bg-gray sits on top, grayscale,
   and fades out on hover (or preview-open) to reveal it. */
.carousel-panel .bg-gray {
    filter: grayscale(1);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.carousel-panel:hover .bg-gray,
.carousel-panel.is-preview-open .bg-gray {
    opacity: 0;
}

.carousel-panel .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13,37,64,0.9) 100%);
    z-index: 10;
}

.carousel-panel .panel-content {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    right: 1.5rem;
    transform: translateY(1rem);
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 20;
    pointer-events: none;
}

.carousel-panel:hover .panel-content,
.carousel-panel.is-preview-open .panel-content {
    transform: translateY(0);
}

.carousel-panel .panel-content h3 {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.2;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-panel:hover .panel-content h3,
.carousel-panel.is-preview-open .panel-content h3 {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

/* Full-Screen Modal Overlay (Desktop) */
#desktop-product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

#desktop-product-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#close-desktop-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: 0;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: color 0.2s, transform 0.3s;
    z-index: 110;
}

#close-desktop-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}

#close-desktop-modal svg {
    width: 3rem;
    height: 3rem;
}

.modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 110;
}
.modal-nav-arrow:hover { color: #fff; }
.modal-nav-prev { left: clamp(1rem, 3vw, 2rem); }
.modal-nav-prev:hover { transform: translate(-4px, -50%); }
.modal-nav-next { right: clamp(1rem, 3vw, 2rem); }
.modal-nav-next:hover { transform: translate(4px, -50%); }
.modal-nav-arrow svg { width: 2.5rem; height: 2.5rem; }

#desktop-modal-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#desktop-modal-content-wrapper::-webkit-scrollbar {
    display: none;
}

.modal-content-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.modal-content-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

#desktop-modal-category-title {
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.modal-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    font: 600 0.78rem/1 var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.modal-print-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.modal-print-btn svg {
    width: 1rem;
    height: 1rem;
}

#desktop-modal-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    #desktop-modal-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #desktop-modal-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.modal-product-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.modal-product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.modal-product-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.modal-product-card h4 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.modal-product-card p {
    color: rgba(255,255,255,0.8);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Print / "Save as PDF" output for the open product modal only */
@media print {
    body > *:not(#desktop-product-modal) {
        display: none !important;
    }
    #desktop-product-modal {
        position: static !important;
        opacity: 1 !important;
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    #close-desktop-modal,
    .modal-nav-arrow,
    .modal-print-btn {
        display: none !important;
    }
    #desktop-modal-content-wrapper {
        padding: 0.5in 0;
        overflow: visible;
    }
    #desktop-modal-category-title {
        color: #000;
        font-size: 2.5rem;
    }
    #desktop-modal-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    .modal-product-card {
        background: #fff !important;
        border: 1px solid #ccc !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        transform: none !important;
        break-inside: avoid;
    }
    .modal-product-card h4,
    .modal-product-card p {
        color: #000 !important;
    }
}

/* ============ STANDARDS (PORTED FROM LEGACY) ============ */
#standards {
    position: relative;
    z-index: 20;
    margin-top: 1rem;
    background: var(--bg);
}

/* Desktop Scroll Animation Track */
#quality-scroll-track {
    display: none;
}

@media (min-width: 1024px) {
    #quality-scroll-track {
        display: block;
        height: 400vh;
        position: relative;
        width: 100%;
    }
    #quality-scroll-track .sticky-wrapper {
        position: sticky;
        top: var(--nav-h);
        height: calc(100vh - var(--nav-h));
        width: 100%;
        max-width: 1600px;
        margin-inline: auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-inline: var(--gutter);
    }
    #quality-scroll-track .title-container {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
        z-index: 50;
        position: relative;
        padding-top: clamp(2rem, 3vw, 3rem);
    }
    #quality-scroll-track .title-container .section-head {
        margin-bottom: 0;
    }
    
    .quality-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        transition: transform 150ms ease-out;
    }
    .quality-img-wrapper {
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 45%;               /* Changed from 45vw to scale with container max-width */
        height: 60vh;
        overflow: hidden;
        border-radius: var(--radius-lg);
        z-index: 10;
        will-change: transform;
        transition: transform 150ms ease-out;
    }
    .quality-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .quality-text {
        position: absolute;
        top: 55%;
        transform: translateY(-50%);
        width: 22%;               /* Changed from 15vw to scale with container max-width */
        text-align: left;
        z-index: 20;
        will-change: opacity, transform;
        transition: opacity 150ms ease-out, transform 150ms ease-out;
    }
    .quality-text h3 {
        font-family: var(--font-head);
        font-size: clamp(1.25rem, 1.8vw, 1.75rem);
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 0.75rem;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    .quality-text p {
        color: var(--secondary);
        font-size: clamp(0.95rem, 1.2vw, 1.1rem);
        font-weight: 500;
        line-height: 1.5;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
    }
    
    .quality-panel .quality-text.left-align {
        left: 2%;                 /* Changed from 4vw */
    }
    .quality-panel .quality-text.right-align {
        right: 2%;                /* Changed from 4vw */
    }
}

/* Mobile Layout */
#standards .mobile-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding-inline: var(--gutter);
    padding-block: 3rem;
}

@media (min-width: 1024px) {
    #standards .mobile-wrapper {
        display: none;
    }
}

#standards .mobile-wrapper .title-container {
    text-align: center;
    margin-bottom: 2rem;
}

#standards .mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    #standards .mobile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.mobile-quality-card {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .mobile-quality-card {
        height: 50vh;
        min-height: 300px;
    }
}

@media (min-width: 768px) {
    .mobile-quality-card {
        height: 40vh;
    }
}

.mobile-quality-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.mobile-quality-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: background-color 0.5s ease;
}

.mobile-quality-card:hover .overlay {
    background: rgba(0, 0, 0, 0.5);
}

.mobile-quality-card .card-content {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
}

.mobile-quality-card .card-content h3 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mobile-quality-card .card-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    max-width: 24rem;
}

/* ============ CTA + CONTACT ============ */
.cta-wrap, .contact-wrap { text-align: center; max-width: 56rem; margin-inline: auto; }
.cta-wrap .section-title, .contact-wrap .section-title { margin-block: 1rem 1.5rem; }
.cta-sub { max-width: 36rem; margin: 0 auto 2.5rem; }
#enquireForm { max-width: 32rem; margin-inline: auto; text-align: left; }
#enquireForm form { display: grid; gap: 1.25rem; }
.field label { display: block; font: 600 0.85rem/1 var(--font-body); margin-bottom: 0.4rem; }
.field label span { color: var(--primary); }
.field input, .field textarea {
    width: 100%; padding: 0.9rem 1rem; font: 400 1rem/1.4 var(--font-body); color: var(--dark);
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
    transition: border-color .3s, box-shadow .3s; resize: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.field-error { color: #C0392B; font: 500 0.8rem/1.3 var(--font-body); margin-top: 0.4rem; display: none; }
.field-error.is-visible { display: block; }
.field input.is-invalid, .field textarea.is-invalid { border-color: #C0392B; }
.field input.is-invalid:focus, .field textarea.is-invalid:focus { box-shadow: 0 0 0 1px #C0392B; }
.form-status { font: 500 0.85rem/1.4 var(--font-body); text-align: center; min-height: 1.2em; margin: 0; }
.form-status[data-state="error"] { color: #C0392B; }
.form-status[data-state="success"] { color: var(--primary); }
.form-submit { width: 100%; border-radius: var(--radius-md); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============ SUPPLIERS — Glassmorphism Redesign ============ */
.suppliers-section {
    position: relative;
    margin-top: 8rem;
}

#suppliers-scroll-track {
    position: relative;
    width: 100%;
}

.suppliers-sticky-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem);
}

.suppliers-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Video background */
.suppliers-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.suppliers-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Dark overlay on top of video for contrast */
.suppliers-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 15, 25, 0.55) 0%,
        rgba(15, 22, 35, 0.45) 40%,
        rgba(20, 28, 45, 0.35) 100%
    );
}
/* Fallback dark bg when no video is loaded */
.suppliers-video-bg video:not([src]),
.suppliers-video-bg video[src=""] {
    background: #0f1623;
}

/* Section title — pinned top-left */
.suppliers-title {
    position: absolute;
    top: clamp(2rem, 5vw, 4rem);
    left: clamp(2rem, 5vw, 5rem);
    z-index: 2;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin: 0;
}

/* Grid layout */
.suppliers-glass-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-top: clamp(5rem, 10vw, 8rem);
}

.suppliers-row {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* Top row: shifted right */
.suppliers-row--top {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 15%;
    padding-right: 0;
}

/* Bottom row: shifted left */
.suppliers-row--bottom {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 0;
    padding-right: 15%;
}

/* ===== Glassmorphism Card ===== */
.glass-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 2rem;
    border-radius: 16px;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.0) 100%
    );
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Card number */
.glass-card__num {
    position: absolute;
    top: clamp(0.6rem, 1.2vw, 1rem);
    left: clamp(0.8rem, 1.2vw, 1.2rem);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(0.65rem, 0.9vw, 0.85rem);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
}

/* Card label — replaces what used to be a partner logo */
.glass-card__label {
    font: 700 clamp(0.95rem, 1.6vw, 1.3rem)/1.3 var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #fff;
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.glass-card:hover .glass-card__label {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== Desktop: pinned full-screen video, title+cards rise from below ===== */
@media (min-width: 1024px) {
    #suppliers-scroll-track {
        height: 130vh;
    }

    .suppliers-sticky-wrapper {
        position: sticky;
        top: 0;
        height: 100vh;
        min-height: 0;
        overflow: hidden;
        display: block;
        padding: 0;
    }

    .suppliers-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 16vh;
        z-index: 1;
        padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem);
        padding-top: calc(var(--nav-h) + clamp(1.5rem, 3vw, 2.5rem));
        transform: translateY(30vh);
        transition: transform 80ms linear;
        will-change: transform;
    }

    .suppliers-title {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    }

    .suppliers-glass-grid {
        padding-top: 0;
    }
}

/* ===== Below 1024px: one unified small-screen design (no separate tablet
   tier) — the 3-column offset-row desktop treatment only ever applies at
   1024px+, avoiding the title/grid overlap that a middle tablet tier caused. */
@media (max-width: 1023px) {
    .suppliers-section {
        margin-block: 0;
    }

    .suppliers-sticky-wrapper {
        min-height: auto;
        padding: 4rem 1.25rem 3rem;
    }

    .suppliers-title {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 2rem;
    }

    .suppliers-glass-grid {
        padding-top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .suppliers-row {
        display: contents;
    }

    .glass-card {
        aspect-ratio: 3 / 2;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .suppliers-glass-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .glass-card {
        aspect-ratio: 3 / 2;
    }
}
