/* ==========================================================================
   Minar Group — corporate profile website
   Brand palette taken from the Knit Concept Ltd. / KCL Fashion company pads:
   warm ivory paper, espresso ink, burnished copper accents, antique bronze
   highlights, heritage maroon for hover/selected, lavender for watermarks only.
   ========================================================================== */

:root {
    /* ---- stationery master palette (single source of truth) ---- */
    --brand-espresso:  #211b19;
    --brand-maroon:    #772a1d;
    --brand-copper:    #9b5735;
    --brand-bronze:    #b7864d;
    --brand-ivory:     #faf8f5;
    --brand-champagne: #f3ede6;
    --brand-lavender:  #d0c5e1;
    --brand-muted:     #6f6865;
    --brand-white:     #ffffff;
    --brand-border:    #ded0be;

    /* ---- semantic roles ---- */
    --color-bg: var(--brand-ivory);
    --color-surface: var(--brand-white);
    --color-text: var(--brand-espresso);
    --color-text-muted: var(--brand-muted);
    --color-primary: var(--brand-copper);
    --color-primary-hover: var(--brand-maroon);
    --color-accent: var(--brand-bronze);
    --color-border: var(--brand-border);
    --color-dark-section: var(--brand-espresso);

    /* ---- espresso scale: dark sections, footer, overlays ---- */
    --navy-900: #211b19;
    --navy-800: #2a2320;
    --navy-700: #3a302c;
    --navy-600: #4a3e39;

    /* ---- copper / bronze scale: the interactive accent family ---- */
    --brand-700: #7e4529;
    --brand-600: #9b5735;
    --brand-500: #a9643f;
    --brand-400: #b7864d;
    --brand-100: #f3ede6;
    --brand-50:  #faf8f5;

    /* ---- heritage maroon: hover / selected only ---- */
    --accent-600: #772a1d;
    --accent-500: #b7864d;
    --accent-100: #f3ede6;

    /* certification / compliance marks keep their own official colour */
    --green-500: #6fbe44;

    /* form + alert states */
    --danger-600: #8e2f22;
    --danger-100: #f7ebe8;

    --ink: #211b19;
    --ink-soft: #5b5450;
    --muted: #6f6865;
    --line: #ded0be;
    --line-soft: #efe9e4;
    --bg: #faf8f5;
    --bg-alt: #f3ede6;

    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(33, 27, 25, .06), 0 4px 16px rgba(33, 27, 25, .05);
    --shadow-md: 0 10px 30px rgba(33, 27, 25, .11);
    --shadow-lg: 0 24px 60px rgba(33, 27, 25, .16);

    --container: 1240px;
    --header-h: 78px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Barlow Condensed', 'Inter', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* anchor targets must clear the sticky header */
[id] { scroll-margin-top: 104px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--brand-copper); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-maroon); }

h1, h2, h3, h4, h5, .display {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.005em;
    margin: 0 0 .6rem;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.18rem; }

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

::selection { background: var(--brand-600); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; }

.section { padding: 92px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--brand-espresso); color: rgba(250, 248, 245, .78); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--brand-ivory); }

@media (max-width: 767px) {
    .section { padding: 60px 0; }
    .section-sm { padding: 44px 0; }
}

/* ---------- shared bits ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 30px; height: 2px;
    background: var(--brand-bronze);
    display: inline-block;
}
.section-dark .eyebrow { color: var(--brand-bronze); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { color: var(--muted); font-size: 1.04rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }

.lead { font-size: 1.1rem; color: var(--ink-soft); }
.section-dark .lead { color: rgba(255, 255, 255, .8); }

.text-accent { color: var(--brand-bronze); }
.text-brand { color: var(--brand-copper); }

/* Espresso image overlay for photographic heroes (stationery spec: .62–.70). */
.hero-overlay { background: rgba(33, 27, 25, .66); }

/* Oversized decorative logo/symbol fragments — watermark tone, never UI. */
.brand-watermark {
    color: var(--brand-lavender);
    opacity: .03;
    pointer-events: none;
    user-select: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .22s ease;
    white-space: nowrap;
}
.btn i { font-size: 1.05em; }

/* Primary — burnished copper, white text; hover to heritage maroon. */
.btn-primary { background: var(--brand-copper); border-color: var(--brand-copper); color: #fff; }
.btn-primary:hover {
    background: var(--brand-maroon); border-color: var(--brand-maroon); color: #fff;
    transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* Accent — the key conversion button (Request a Quotation). One primary accent
   per component, and copper is the default, so this matches .btn-primary. */
.btn-accent { background: var(--brand-copper); border-color: var(--brand-copper); color: #fff; }
.btn-accent:hover {
    background: var(--brand-maroon); border-color: var(--brand-maroon); color: #fff;
    transform: translateY(-2px); box-shadow: var(--shadow-md);
}
/* on espresso grounds a hairline bronze edge keeps the filled button defined */
.section-dark .btn-primary, .section-dark .btn-accent,
.cta-band .btn-primary, .cta-band .btn-accent,
.hero .btn-primary, .hero .btn-accent,
.page-hero .btn-primary, .page-hero .btn-accent,
.site-footer .btn-primary, .site-footer .btn-accent { border-color: var(--brand-bronze); }

/* Secondary — transparent with copper border + text; fills copper on hover. */
.btn-outline { border-color: var(--brand-copper); color: var(--brand-copper); background: transparent; }
.btn-outline:hover { background: var(--brand-copper); border-color: var(--brand-copper); color: #fff; }

/* On dark (espresso) sections the outline button uses bronze / white. */
.btn-ghost-light { border-color: var(--brand-bronze); color: var(--brand-bronze); background: transparent; }
.btn-ghost-light:hover { background: var(--brand-bronze); color: var(--brand-espresso); border-color: var(--brand-bronze); }
/* On the slider the button can sit over the bright factory photo where its
   bronze text/border washes out — give it a solid dark backing + white text so
   it reads clearly on every slide (same fix as .cta-band). */
.hero .btn-ghost-light {
    background: rgba(28, 22, 20, .82); color: #fff; border-color: var(--brand-bronze);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.hero .btn-ghost-light:hover {
    background: var(--brand-bronze); color: var(--brand-espresso); border-color: var(--brand-bronze);
    text-shadow: none;
}
.section-dark .btn-outline, .cta-band .btn-outline, .hero .btn-outline, .page-hero .btn-outline {
    border-color: var(--brand-bronze); color: var(--brand-bronze); background: transparent;
}
.section-dark .btn-outline:hover, .cta-band .btn-outline:hover,
.hero .btn-outline:hover, .page-hero .btn-outline:hover {
    background: var(--brand-bronze); border-color: var(--brand-bronze); color: var(--brand-espresso);
}

.btn-sm { padding: 10px 20px; font-size: .92rem; }

/* keyboard focus stays visible on every button variant */
.btn:focus-visible {
    outline: 2px solid var(--brand-copper); outline-offset: 3px;
}
.section-dark .btn:focus-visible, .cta-band .btn:focus-visible,
.hero .btn:focus-visible, .page-hero .btn:focus-visible {
    outline-color: var(--brand-bronze);
}

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
}
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */

/* ---------- utility bar ---------- */

.topbar {
    background: var(--brand-espresso);
    color: rgba(250, 248, 245, .62);
    font-size: .82rem;
    position: relative;
}
/* a single thin copper-to-bronze rule, per the stationery direction */
.topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-copper) 0%, var(--brand-bronze) 100%);
    opacity: .95;
}
.topbar .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; min-height: 62px; flex-wrap: nowrap;
    padding-top: 9px; padding-bottom: 9px;
}
.topbar-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.topbar-right { align-items: flex-end; text-align: right; }
.topbar-line { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; }
.topbar a { color: rgba(255, 255, 255, .78); transition: color .2s ease; }
.topbar a:hover { color: #fff; }
.topbar-tag {
    font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase;
    color: rgba(183, 134, 77, .95); font-size: .82rem; font-weight: 600;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-loc, .topbar-email { position: relative; padding-left: 15px; color: rgba(255, 255, 255, .74); }
.topbar-loc::before, .topbar-email::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 15px; background: rgba(255, 255, 255, .22);
}
.topbar-loc i { color: var(--brand-bronze); font-size: .95em; }
.topbar-email i { color: var(--brand-400); font-size: .95em; }
.topbar-toprow { gap: 24px; }
.topbar-certs {
    color: rgba(255, 255, 255, .7); font-size: .78rem; font-weight: 500; letter-spacing: .02em;
    display: inline-flex; align-items: center; gap: 8px;
}
.topbar-certs i { color: var(--green-500); font-size: 1.02em; }
.topbar-phone { color: rgba(255, 255, 255, .92); font-weight: 600; letter-spacing: .01em; }
.topbar-phone i { color: var(--brand-400); font-size: .95em; }

/* ---------- main bar ---------- */

.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-stuck {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 34px rgba(33, 27, 25, .13);
    border-color: transparent;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    min-height: var(--header-h); transition: min-height .25s ease;
}
.site-header.is-stuck .container { min-height: 64px; }

.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand-mark {
    width: 52px; height: 52px; border-radius: 11px; overflow: hidden; flex: 0 0 auto;
    position: relative; background: var(--navy-900);
    box-shadow: 0 6px 18px rgba(33, 27, 25, .22);
    transition: width .25s ease, height .25s ease, transform .25s ease, box-shadow .25s ease;
}
.brand-mark::after {
    content: ""; position: absolute; inset: 0; border-radius: 11px; pointer-events: none;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18);
}
.brand:hover .brand-mark { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(33, 27, 25, .28); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-header.is-stuck .brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--font-display); font-weight: 700; font-size: 1.55rem;
    letter-spacing: .07em; text-transform: uppercase; color: var(--navy-800);
    transition: font-size .25s ease;
}
.site-header.is-stuck .brand-name { font-size: 1.36rem; }
.brand-sub {
    display: flex; align-items: center; gap: 7px;
    font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted); margin-top: 6px; font-weight: 600;
}
.brand-sub::before { content: ""; width: 16px; height: 2px; background: var(--brand-bronze); }

.main-nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 15px; margin: 0 1px; border-radius: 7px;
    font-size: .855rem; font-weight: 600; letter-spacing: .045em;
    text-transform: uppercase; color: var(--ink);
    position: relative; white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.main-nav > li > a::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px;
    height: 2px; border-radius: 2px;
    background: var(--brand-copper);
    transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.main-nav > li > a:hover { color: var(--brand-600); background: var(--brand-50); }
.main-nav > li > a:hover::after,
.main-nav > li.active > a::after { transform: scaleX(1); }
.main-nav > li.active > a { color: var(--brand-600); }
.main-nav .caret { font-size: .56rem; opacity: .55; transition: transform .25s ease; }
.main-nav > li:hover .caret, .main-nav > li:focus-within .caret { transform: rotate(180deg); opacity: 1; }

/* ---------- mega dropdown ---------- */

.mega {
    position: absolute; top: 100%; left: -14px;
    background: #fff; display: grid;
    border: 1px solid var(--line); border-top: 2px solid var(--brand-600);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 30;
}
.main-nav > li:hover > .mega,
.main-nav > li:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-wide { width: 620px; grid-template-columns: 1fr 1fr 210px; }
.mega-narrow { width: 320px; grid-template-columns: 1fr; }
.mega-col { padding: 14px 8px; }
.mega-col + .mega-col { border-left: 1px solid var(--line-soft); }
.mega-head {
    font-family: var(--font-display); font-size: .7rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted); padding: 6px 14px 10px;
}
.mega a {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 14px; font-size: .9rem; color: var(--ink-soft);
    border-radius: 3px; transition: background .18s ease, color .18s ease;
}
.mega a .num {
    font-family: var(--font-display); font-size: .8rem; font-weight: 700;
    color: var(--brand-400); min-width: 19px; transition: color .18s ease;
}
.mega a:hover { background: var(--brand-50); color: var(--brand-600); }
.mega a:hover .num { color: var(--brand-600); }
.mega a.is-current { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }

.mega .m-item { display: block; padding: 13px 14px; }
.mega .m-item strong {
    display: block; font-family: var(--font-display); font-size: 1.02rem;
    text-transform: uppercase; letter-spacing: .05em; color: var(--ink); transition: color .18s ease;
}
.mega .m-item span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.mega .m-item:hover strong { color: var(--brand-600); }

.mega-side {
    background: var(--brand-espresso);
    color: #fff; padding: 22px 20px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.mega-side .v { font-family: var(--font-display); font-size: 2.15rem; font-weight: 700; line-height: 1; }
.mega-side .u { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-bronze); margin-top: 6px; font-weight: 600; }
.mega-side p { font-size: .84rem; color: rgba(255, 255, 255, .68); margin: 12px 0 0; }
.mega-side a {
    padding: 0; margin-top: 16px; color: var(--brand-bronze); background: none;
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .09em; font-size: .82rem;
}
.mega-side a:hover { background: none; color: #fff; }

/* ---------- header actions ---------- */

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-actions .btn-primary {
    background: var(--brand-copper);
    border: 0; box-shadow: 0 6px 16px rgba(155, 87, 53, .26);
    letter-spacing: .04em;
    transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}
.header-actions .btn-primary:hover {
    background: var(--brand-maroon);
    box-shadow: 0 9px 22px rgba(119, 42, 29, .30); transform: translateY(-1px);
}
.header-actions .btn-primary:hover .bi { transform: translateX(2px); }
.header-actions .btn-primary .bi { transition: transform .2s ease; }
.icon-btn {
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
    display: none; align-items: center; justify-content: center;
    color: var(--navy-800); font-size: 1.1rem; background: #fff; cursor: pointer;
    transition: all .2s ease;
}
.icon-btn:hover { border-color: var(--brand-600); color: var(--brand-600); background: var(--brand-50); }
.nav-toggle {
    display: none; color: #fff; cursor: pointer;
    background: var(--brand-espresso);
    border: 0; width: 48px; height: 46px; border-radius: 10px;
    align-items: center; justify-content: center;
    font-size: 1.4rem; box-shadow: 0 5px 14px rgba(33, 27, 25, .24);
    transition: all .2s ease;
}
.nav-toggle:hover { background: var(--brand-copper); }
.nav-toggle:active { transform: scale(.95); }

@media (max-width: 1299px) {
    .main-nav > li > a { padding: 14px 11px; font-size: .82rem; }
    .main-nav > li > a::after { left: 11px; right: 11px; }
    .mega-wide { width: 560px; }
}
@media (max-width: 1199px) {
    .brand-sub { display: none; }
    .brand-name { font-size: 1.4rem; }
    .main-nav > li > a { padding: 14px 9px; font-size: .78rem; }
    .main-nav > li > a::after { left: 9px; right: 9px; }
    .mega-wide { width: 470px; grid-template-columns: 1fr 1fr; }
    .mega-side { display: none; }
}
@media (max-width: 991px) {
    .main-nav-wrap { display: none; }
    .header-actions .btn { display: none; }
    .icon-btn, .nav-toggle { display: flex; }
    .brand-sub { display: flex; }
}
/* narrower desktops: trim the long certification string first */
@media (max-width: 1099px) {
    .topbar-certs { display: none; }
    .topbar-toprow { gap: 0; }
}
/* tablets: drop the marketing tagline, keep contacts */
@media (max-width: 991px) {
    .topbar-tag { display: none; }
    .topbar .container { min-height: 54px; }
}
/* narrow laptops / landscape tablets — keep the full nav, just tighten it */
@media (max-width: 1099px) and (min-width: 992px) {
    .brand-mark { width: 44px; height: 44px; }
    .brand-name { font-size: 1.28rem; }
    .main-nav > li > a { padding: 14px 7px; font-size: .745rem; letter-spacing: .03em; }
    .main-nav > li > a::after { left: 7px; right: 7px; }
    .header-actions .btn { padding: 10px 15px; font-size: .82rem; }
    .mega-wide { width: 430px; }
}
@media (max-width: 767px) {
    .topbar { font-size: .8rem; }
    /* stack into a tidy centered block: location + phone + email */
    .topbar .container {
        flex-direction: column; align-items: center; justify-content: center;
        gap: 5px; min-height: 0; padding-top: 8px; padding-bottom: 8px; text-align: center;
    }
    .topbar-col { align-items: center; gap: 5px; }
    .topbar-right { align-items: center; text-align: center; }
    .topbar-toprow { gap: 0; }
    .topbar-loc, .topbar-email { padding-left: 0; }
    .topbar-loc::before, .topbar-email::before { display: none; }
    .brand-name { font-size: 1.28rem; }
    .brand-sub { font-size: .55rem; letter-spacing: .16em; margin-top: 4px; }
    .brand-mark { width: 46px; height: 46px; border-radius: 10px; }
    .site-header .container { min-height: 66px; }
    .header-actions { gap: 8px; }
}
/* small phones: keep just phone + email so nothing crowds */
@media (max-width: 575px) {
    .topbar-loc { display: none; }
}
@media (max-width: 420px) {
    .brand-sub { display: none; }
    .brand-name { font-size: 1.16rem; }
    .brand { gap: 11px; }
    .brand-mark { width: 42px; height: 42px; }
    .header-actions { gap: 7px; }
    .icon-btn, .nav-toggle { width: 44px; height: 44px; }
}

/* ---------- mobile drawer ---------- */

.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(33, 27, 25, .58);
    opacity: 0; visibility: hidden; transition: all .25s ease; z-index: 1100;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 90vw;
    background: #fff; z-index: 1101; transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; background: var(--navy-900); position: sticky; top: 0; z-index: 2;
}
.drawer-head .brand-name { color: #fff; font-size: 1.2rem; }
.drawer-head .brand-mark { width: 38px; height: 38px; border-radius: 7px; }
.drawer-close {
    background: rgba(255, 255, 255, .1); border: 0; color: #fff; cursor: pointer;
    width: 36px; height: 36px; border-radius: var(--radius); font-size: 1.35rem; line-height: 1;
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.drawer-close:hover { background: var(--brand-copper); }

.drawer-nav { padding: 4px 0 8px; }
.drawer-nav > a, .drawer-acc {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 15px 20px;
    font-family: var(--font-display); font-size: 1.04rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em; text-align: left;
    color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
}
.drawer-nav > a.active, .drawer-nav > a:hover,
.drawer-acc:hover, .drawer-acc.open { color: var(--brand-600); background: var(--brand-50); }
.drawer-nav > a.active { box-shadow: inset 3px 0 0 var(--brand-copper); }
.drawer-acc i { font-size: .68rem; color: var(--muted); transition: transform .25s ease; }
.drawer-acc.open i { transform: rotate(180deg); color: var(--brand-600); }

.drawer-sub { max-height: 0; overflow: hidden; transition: max-height .32s ease; background: var(--bg-alt); }
.drawer-sub.open { max-height: 620px; }
.drawer-sub a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px 12px 28px; font-size: .92rem; color: var(--muted);
    border-bottom: 1px solid var(--line-soft);
}
.drawer-sub a .num { font-family: var(--font-display); font-weight: 700; color: var(--brand-400); min-width: 18px; }
.drawer-sub a.active, .drawer-sub a:hover { color: var(--brand-600); background: #fff; }

.drawer-foot {
    margin-top: auto; padding: 20px; border-top: 1px solid var(--line);
    font-size: .89rem; background: var(--bg-alt);
}
.drawer-foot .btn { width: 100%; margin-bottom: 16px; }
.drawer-foot .dl { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; color: var(--ink-soft); word-break: break-word; }
.drawer-foot .dl i { color: var(--brand-600); }
.drawer-foot .dl:hover { color: var(--brand-600); }

/* ==========================================================================
   Hero — split slider + sister-concern thumbnail selector

   Layout follows the reference pattern: a solid espresso panel on the left
   carrying the copy, the slide photo filling the right half behind a diagonal
   cut, and a horizontal strip of concern thumbnails anchored bottom-right.
   Colours, type, buttons, radii and shadows are the site's own brand tokens.

   Slides come from Admin → Banners. Picking a concern filters the deck down to
   that concern and restarts autoplay inside it; "All" restores every slide.
   ========================================================================== */

.hero {
    position: relative;
    background: var(--navy-900);
    overflow: hidden;
}
.hero-slides { position: relative; height: clamp(560px, calc(100vh - var(--header-h) + 68px), 1150px); }

.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1.1s ease;
    display: flex; align-items: flex-end;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
/* filtered out by the concern selector — out of the deck entirely */
.hero-slide.is-off { display: none; }

/* ---- image-first, full-bleed photo (matches the inner-page banner pattern) ---- */
.hero-media {
    position: absolute; inset: 0;
    width: 100%;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.06);
    transition: transform 9s linear;
}
.hero-slide.active .hero-bg { transform: scale(1); }
/* IMAGE-FIRST: a localized left-weighted gradient (dark enough behind the copy on
   the left, fading to fully transparent by the centre so the factory image on the
   right stays crisp), plus a soft bottom wash to seat the bottom-left copy and keep
   the control band readable. Same approach as .page-hero — transparent → dark near text. */
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg,
            rgba(28, 22, 20, .82) 0%,
            rgba(28, 22, 20, .60) 26%,
            rgba(28, 22, 20, .24) 46%,
            rgba(28, 22, 20, .04) 62%,
            rgba(28, 22, 20, 0)   78%),
        linear-gradient(to top,
            rgba(28, 22, 20, .58) 0%,
            rgba(28, 22, 20, .18) 26%,
            rgba(28, 22, 20, 0)   50%);
}

/* Reserves exactly the control band: bottom offset + thumbnail height + gap.
   padding-top keeps the copy clear of the sticky header. */
.hero-inner { position: relative; z-index: 3; width: 100%; padding: 30px 0 240px; }
.hero-copy { max-width: 520px; color: #fff; }
/* all text + accent signs on the slider are white, with a stronger per-character
   shadow so the copy reads crisply; small text (label + description) is a touch bolder */
.hero-copy .eyebrow {
    color: #fff; font-weight: 700;
    text-shadow: 0 2px 5px rgba(15, 10, 8, .85), 0 1px 2px rgba(15, 10, 8, .9);
}
.hero-copy .eyebrow::before { background: #fff; }
.hero-copy h1 {
    color: #fff; text-transform: uppercase; letter-spacing: -.01em;
    margin-bottom: 0;
    font-size: clamp(2.15rem, 3.25vw, 3.55rem);
    line-height: 1.06;
    text-shadow: 0 2px 6px rgba(15, 10, 8, .8), 0 1px 3px rgba(15, 10, 8, .9);
}
.hero-copy h1 .thin { font-weight: 300; color: #fff; }
.hero-copy p {
    font-size: 1.13rem; margin-bottom: 0; color: #fff; font-weight: 500;
    text-shadow: 0 2px 5px rgba(15, 10, 8, .85), 0 1px 2px rgba(15, 10, 8, .9);
}

/* the accent rule that separates headline from paragraph */
.hero-rule {
    display: block;
    width: 200px; max-width: 60%; height: 3px;
    background: #fff;
    margin: 15px 0 17px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* subtle staggered lift as each slide takes over */
.hero-copy > * { opacity: 0; transform: translateY(18px); }
.hero-slide.active .hero-copy > * {
    opacity: 1; transform: none;
    transition: opacity .75s ease, transform .75s cubic-bezier(.22, .61, .36, 1);
}
.hero-slide.active .hero-copy > *:nth-child(1) { transition-delay: .14s; }
.hero-slide.active .hero-copy > *:nth-child(2) { transition-delay: .22s; }
.hero-slide.active .hero-copy > *:nth-child(3) { transition-delay: .30s; }
.hero-slide.active .hero-copy > *:nth-child(4) { transition-delay: .38s; }
.hero-slide.active .hero-copy > *:nth-child(5) { transition-delay: .46s; }

/* ------------------------------------------------- bottom control band */

/* sits above the overlapping stat strip */
.hero-controls { position: absolute; left: 0; right: 0; bottom: 112px; z-index: 6; }
.hero-controls-inner {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 30px;
}
.hero-controls-bar { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }

.hero-dots { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* the visible bar stays hairline-thin while the tap target is a full 24px */
.hero-dot {
    background: none; border: 0; padding: 11px 0; cursor: pointer;
    line-height: 0; -webkit-tap-highlight-color: transparent;
}
.hero-dot > span {
    display: block; width: 26px; height: 3px;
    background: rgba(255, 255, 255, .3);
    transition: background .25s ease;
}
.hero-dot.active > span { background: var(--brand-bronze); }
.hero-dot:hover > span { background: rgba(255, 255, 255, .6); }
.hero-dot[hidden] { display: none; }
/* hidden, not removed — keeps the row's height so the thumbnail strip
   underneath does not jump when a concern has only one slide */
.hero-dots.is-single { visibility: hidden; }

/* ------------------------------------------ sister concern thumbnails */

.hero-concerns { min-width: 0; }
.hero-concern-list {
    position: relative;
    display: flex; gap: 10px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* room for the focus ring / hover lift without clipping them */
    padding: 4px 3px 9px;
    margin: -4px -3px -9px;
}
.hero-concern { scroll-snap-align: center; }
.hero-concern-list::-webkit-scrollbar { display: none; }

.hero-concern {
    flex: 0 0 auto;
    width: 144px;
    /* align-items must be explicit — a <button> does not inherit stretch here,
       which left the white logo chip shrink-wrapped to the image */
    display: flex; flex-direction: column; align-items: stretch; gap: 7px;
    text-align: left;
    padding: 9px 10px 10px;
    background: rgba(33, 27, 25, .62);
    border: 1px solid rgba(255, 255, 255, .14);
    border-top: 3px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: background .24s ease, border-color .24s ease, transform .24s ease;
    -webkit-tap-highlight-color: transparent;
}
.hero-concern:hover:not(.is-empty) {
    background: rgba(33, 27, 25, .80);
    border-color: rgba(183, 134, 77, .55);
    transform: translateY(-3px);
}
.hero-concern.is-active {
    background: rgba(155, 87, 53, .94);
    border-color: var(--brand-copper);
    border-top-color: var(--brand-bronze);
    box-shadow: var(--shadow-md);
}
.hero-concern.is-empty { opacity: .42; cursor: default; }
.hero-concern:focus-visible { outline: 2px solid var(--brand-bronze); outline-offset: 2px; }

/* title row: name left, chevron right — as on the reference thumbnails */
.hero-concern .hc-head {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.hero-concern .hc-name {
    min-width: 0;
    font-family: var(--font-display);
    font-size: .8rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase;
    color: rgba(255, 255, 255, .90);
    line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-concern .hc-arrow {
    flex: 0 0 auto;
    font-size: .78rem;
    color: var(--brand-bronze);
    transition: transform .24s ease;
}
.hero-concern:hover:not(.is-empty) .hc-arrow { transform: translateX(3px); }
.hero-concern.is-active .hc-name { color: #fff; }
.hero-concern.is-active .hc-arrow { color: #fff; }

/* the logo always sits on a white chip so every mark keeps its own colours */
.hero-concern .hc-logo {
    display: grid; place-items: center;
    height: 50px;
    background: #fff;
    border-radius: 3px;
    padding: 4px 8px;
    overflow: hidden;
}
/* Fill the chip and letterbox. min-width/min-height:0 are required — a grid
   item's automatic minimum size is the image's intrinsic height, which
   otherwise wins over height:100% and pushes tall marks out of the chip. */
.hero-concern .hc-logo img {
    width: 100%; height: 100%;
    min-width: 0; min-height: 0;
    object-fit: contain;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg, .hero-slide.active .hero-bg { transition: none; transform: none; }
    .hero-copy > *, .hero-slide.active .hero-copy > * { opacity: 1; transform: none; transition: none; }
    .hero-concern:hover:not(.is-empty) { transform: none; }
    .hero-concern:hover:not(.is-empty) .hc-arrow { transform: none; }
}

/* ----------------------------------------------- hero: tablet & phone

   ≥1200px  image-first — full-bleed photo behind a localized left/bottom
            gradient (matches the inner-page banner pattern); the thumbnail
            strip sits on the same line as the slide controls.
   ≤1199px  the photo stays full-bleed but the gradient rises from the bottom
            and the strip moves onto its own line under the controls.
   ≤767px   arrows give way to swipe; JS scrolls the active concern into view.
   -------------------------------------------------------------------- */

@media (max-width: 1399px) {
    /* wide enough to keep the headline on two lines and the two CTAs side by side */
    .hero-copy { max-width: 510px; }
}

@media (max-width: 1199px) {
    /* --- MOBILE / SMALL-TABLET SLIDER: image-first ---
       Full-bleed photo with no diagonal. Instead of darkening the whole image,
       a controlled gradient rises only from the bottom (slightly stronger at the
       bottom-left) so the picture stays bright while the copy that sits inside it
       stays readable. transparent → subtle dark → stronger dark near the text. */
    .hero-media { width: 100%; clip-path: none; }
    /* intentional mobile crop — keeps the factory subject high in frame rather
       than centering it, since the copy now occupies the bottom band */
    .hero-bg { background-position: center 34%; }
    /* IMAGE-FIRST: the upper ~half of the photo stays clear; the dark tone is
       localized to the bottom-left and made deeper right where the copy sits, so
       the text reads reliably over any bright photo while the factory subject
       above stays visible. transparent → subtle → strong only near the text. */
    .hero-media::after {
        background:
            linear-gradient(to top,
                rgba(22, 16, 14, .97) 0%,
                rgba(22, 16, 14, .90) 18%,
                rgba(22, 16, 14, .62) 34%,
                rgba(22, 16, 14, .28) 50%,
                rgba(22, 16, 14, .08) 64%,
                rgba(22, 16, 14, 0)   76%),
            linear-gradient(105deg,
                rgba(22, 16, 14, .48) 0%,
                rgba(22, 16, 14, .18) 38%,
                rgba(22, 16, 14, 0)   64%);
    }

    /* copy drops to the bottom, sitting inside the readable gradient just above
       a compact control band */
    .hero-slide { align-items: flex-end; }
    .hero-slides { height: clamp(520px, calc(100vh - var(--header-h)), 760px); }
    .hero-inner { padding: 0 0 202px; }
    .hero-copy { max-width: 560px; color: #fff; }
    /* stronger per-character shadow keeps the white copy crisp over any bright
       photo without darkening the image */
    .hero-copy h1 { text-shadow: 0 2px 4px rgba(15, 10, 8, .9), 0 1px 2px rgba(15, 10, 8, .95), 0 2px 14px rgba(15, 10, 8, .6); }
    /* white label on the mobile slider, a touch bolder + deeper shadow */
    .hero-copy .eyebrow { color: #fff; font-weight: 700; text-shadow: 0 2px 4px rgba(15, 10, 8, .9), 0 1px 2px rgba(15, 10, 8, .95); }
    .hero-copy p {
        font-size: 1.02rem; color: #fff; font-weight: 600;
        text-shadow: 0 2px 4px rgba(15, 10, 8, .9), 0 1px 2px rgba(15, 10, 8, .95), 0 2px 10px rgba(15, 10, 8, .6);
        /* keep the description to ~3 lines so it never blankets the photograph */
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
        overflow: hidden;
    }
    .hero-cta { gap: 10px; margin-top: 20px; }
    /* keep the CTAs compact & inline so they never blanket the photograph */
    .hero-cta .btn { flex: 0 0 auto; width: auto; }

    /* controls stack: slide dots on top, concern rail beneath, tucked low so the
       photograph keeps the upper two-thirds of the frame */
    .hero-controls { bottom: 22px; }
    .hero-controls-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-controls-bar { order: 1; gap: 16px; }
    .hero-concerns { order: 2; }

    /* concern selector → clean, touch-friendly horizontal pills (was a stack of
       tall cards that covered too much of the hero image) */
    .hero-concern {
        flex-direction: row-reverse; justify-content: flex-end; align-items: center;
        gap: 8px;
        width: auto; max-width: 210px;
        padding: 5px 14px 5px 5px;
        border-radius: 999px;
        border-top-width: 1px;
        /* a touch more opaque so the concern names stay legible over the photo,
           with a soft shadow lifting the secondary rail off the image */
        background: rgba(28, 22, 20, .66);
        box-shadow: 0 2px 8px rgba(20, 15, 13, .28);
    }
    .hero-concern:hover:not(.is-empty) { transform: none; }
    .hero-concern.is-active {
        border-top-color: var(--brand-copper);
        box-shadow: 0 2px 10px rgba(155, 87, 53, .5);
    }
    .hero-concern .hc-head { justify-content: flex-start; }
    .hero-concern .hc-arrow { display: none; }
    .hero-concern .hc-name { font-size: .76rem; letter-spacing: .04em; }
    .hero-concern .hc-logo {
        flex: 0 0 auto;
        width: 42px; height: 26px;
        padding: 2px 5px; border-radius: 999px;
    }

    /* the reworked slider ends in a low control band, so the stat strip no longer
       overlaps the hero — it sits cleanly beneath it */
    .stat-strip { margin-top: 0; }
}

/* Short-but-wide desktop windows (e.g. 1920x600, or a 1366 laptop with a lot
   of browser chrome): scale the copy and thumbnails down so the whole slider —
   concern selector included — still clears the fold. */
@media (min-width: 1200px) and (max-height: 700px) {
    .hero-copy h1 { font-size: clamp(1.95rem, 2.7vw, 2.85rem); }
    .hero-copy p { font-size: 1.05rem; }
    .hero-rule { margin: 13px 0 15px; width: 180px; }
    .hero-cta { margin-top: 20px; }
    .hero-inner { padding: 22px 0 222px; }
    .hero-controls { bottom: 104px; }
    .hero-concern .hc-logo { height: 46px; }
}

@media (max-width: 991px) {
    .hero-slides { height: clamp(500px, 78vh, 660px); }
    .hero-inner { padding: 0 0 200px; }
    .hero-copy h1 { font-size: clamp(2rem, 5vw, 2.7rem); }
    .hero-rule { margin: 16px 0; width: 170px; }
}

@media (max-width: 767px) {
    .hero-slides { height: clamp(480px, 80vh, 600px); }
    .hero-inner { padding: 0 0 192px; }
    .hero-copy p { font-size: .98rem; -webkit-line-clamp: 2; }
    /* title stays within 2–3 lines and never sprawls across the photo */
    .hero-copy h1 {
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
        overflow: hidden;
    }
    .hero-controls { bottom: 18px; }
    .hero-dot { padding: 8px 0; }
    .hero-dot > span { width: 24px; }
    /* comfortable touch target + clear active state for the concern pills */
    .hero-concern { max-width: 190px; min-height: 40px; }
}

@media (max-width: 575px) {
    .hero-slides { height: clamp(460px, 82vh, 560px); }
    .hero-inner { padding: 0 0 188px; }
    .hero-copy h1 { font-size: 1.95rem; }
    .hero-copy p { font-size: .95rem; }
    .hero-rule { margin: 14px 0; width: 140px; }
    .hero-cta { gap: 9px; margin-top: 18px; }
    .hero-concern { max-width: 170px; }
    .hero-concern .hc-name { font-size: .72rem; }
    .hero-concern .hc-logo { width: 40px; height: 24px; }
}

@media (max-width: 400px) {
    .hero-slides { height: clamp(440px, 84vh, 520px); }
    .hero-inner { padding: 0 0 184px; }
    .hero-copy h1 { font-size: 1.78rem; }
    .hero-concern { max-width: 150px; }
    .hero-concern .hc-name { font-size: .7rem; }
    .hero-dot > span { width: 22px; }
}

/* stat strip overlapping hero */
.stat-strip { position: relative; z-index: 5; margin-top: -68px; }
.stat-strip-inner {
    background: #fff; box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
}
.stat-cell { padding: 30px 26px; border-right: 1px solid var(--line-soft); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .val {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
    color: var(--brand-copper); line-height: 1;
}
.stat-cell .lbl {
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin-top: 8px; font-weight: 600;
}
.stat-cell .bar { width: 34px; height: 3px; background: var(--brand-bronze); margin-bottom: 16px; }
@media (max-width: 767px) {
    .stat-strip { margin-top: 0; }
    .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-cell { padding: 22px 18px; border-bottom: 1px solid var(--line-soft); }
    .stat-cell:nth-child(2n) { border-right: 0; }
}


/* ==========================================================================
   People — Board of Directors & Team cards
   ========================================================================== */

.person-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
/* the board is a short list — larger cards, centred under the heading */
.person-grid-board {
    grid-template-columns: repeat(3, 1fr);
    max-width: 940px;
    margin: 0 auto;
}

.person-card {
    background: var(--color-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.person-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-bronze);
}

.person-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--bg-alt);
    display: grid; place-items: center;
    overflow: hidden;
}
.person-photo img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
/* shown until a photograph is uploaded */
.person-initials {
    font-family: var(--font-display);
    font-size: 3.2rem; font-weight: 700;
    letter-spacing: .04em;
    color: var(--brand-copper);
    background: var(--brand-champagne);
    width: 108px; height: 108px;
    border-radius: 50%;
    display: grid; place-items: center;
    border: 2px solid var(--brand-bronze);
}
/* a copper hairline anchors the photo to the text block */
.person-photo::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px; background: var(--brand-copper);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
}
.person-card:hover .person-photo::after { transform: scaleX(1); }

.person-body { padding: 20px 20px 22px; }
.person-body h3 {
    font-size: 1.16rem;
    margin: 0 0 6px;
    color: var(--ink);
}
.person-role {
    display: block;
    font-family: var(--font-display);
    font-size: .84rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-copper);
}
.person-dept {
    display: inline-block; margin-top: 10px;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 4px 10px;
}
.person-body p {
    margin: 12px 0 0;
    font-size: .93rem;
    color: var(--ink-soft);
}

@media (max-width: 1099px) { .person-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) {
    .person-grid-board { grid-template-columns: repeat(3, 1fr); max-width: none; }
    .person-initials { width: 92px; height: 92px; font-size: 2.6rem; }
}
@media (max-width: 767px) {
    .person-grid, .person-grid-board { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .person-body { padding: 16px 16px 18px; }
    .person-body h3 { font-size: 1.05rem; }
    .person-role { font-size: .78rem; letter-spacing: .1em; }
    .person-initials { width: 76px; height: 76px; font-size: 2.1rem; }
}
@media (max-width: 420px) {
    .person-grid, .person-grid-board { grid-template-columns: 1fr; }
    .person-initials { width: 96px; height: 96px; font-size: 2.6rem; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

/* image-first inner-page banner: the photograph is the hero. Text anchors to
   the bottom-left inside a localized gradient (darker bottom-left, fully clear
   toward the top-right) so both the picture and the copy read clearly — one
   reusable design shared by every public page. */
.page-hero {
    position: relative; background: var(--brand-espresso);
    min-height: 400px;
    display: flex; align-items: flex-end;
    padding: 128px 0 52px; overflow: hidden;
}
.page-hero .bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 1;
}
/* DESKTOP: left-weighted gradient — dark enough behind the text on the left,
   fading to fully transparent by the centre so the factory image on the right
   stays crisp and clear. A faint bottom wash seats the bottom-left text block. */
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg,
            rgba(28, 22, 20, .82) 0%,
            rgba(28, 22, 20, .60) 26%,
            rgba(28, 22, 20, .24) 46%,
            rgba(28, 22, 20, .04) 62%,
            rgba(28, 22, 20, 0)   78%),
        linear-gradient(to top,
            rgba(28, 22, 20, .55) 0%,
            rgba(28, 22, 20, .16) 22%,
            rgba(28, 22, 20, 0)   44%);
}
.page-hero .container { position: relative; z-index: 3; }
/* content stays in the left ~45% so it never covers the image subject */
.page-hero .ph-text { position: relative; display: inline-block; max-width: 560px; }
/* text colour pattern matched to the homepage slider: all-white copy with a
   stronger per-character shadow, and slightly bolder small text (label + line) */
.page-hero h1 {
    color: #fff; text-transform: uppercase; margin-bottom: 14px;
    text-shadow: 0 3px 10px rgba(15, 10, 8, .92), 0 2px 5px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1);
}
.page-hero p {
    color: #fff; max-width: 520px; font-size: 1.06rem; font-weight: 500;
    text-shadow: 0 3px 8px rgba(15, 10, 8, .95), 0 2px 4px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1);
    /* one short supporting line — longer copy belongs in the section below */
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
}
.page-hero .eyebrow {
    color: #fff; font-weight: 700;
    text-shadow: 0 3px 8px rgba(15, 10, 8, .95), 0 2px 4px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1);
}
.page-hero .eyebrow::before { background: #fff; }

.crumbs {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    font-size: .82rem; color: rgba(255, 255, 255, .9); margin-top: 20px;
    text-transform: uppercase; letter-spacing: .1em;
    text-shadow: 0 3px 8px rgba(15, 10, 8, .95), 0 2px 4px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1);
}
.crumbs a { color: #fff; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .45; }

/* ==========================================================================
   Grid helpers
   ========================================================================== */

.grid { display: grid; gap: 26px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1099px) { .g-5 { grid-template-columns: repeat(3, 1fr); } .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px)  { .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split.wide-left { grid-template-columns: 1.25fr 1fr; }
.split.wide-right { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 991px) { .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; gap: 40px; } }

/* ==========================================================================
   Cards
   ========================================================================== */

.card-flat {
    background: #fff; border: 1px solid var(--line);
    padding: 30px 26px; transition: all .25s ease; height: 100%;
    position: relative; overflow: hidden;
}
.card-flat::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--brand-600); transform: scaleY(0); transform-origin: top;
    transition: transform .3s ease;
}
.card-flat:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card-flat:hover::before { transform: scaleY(1); }
.card-flat h4 { margin-bottom: 8px; }
.card-flat p { color: var(--muted); font-size: .95rem; margin: 0; }

.icon-badge {
    width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
    background: var(--brand-50); color: var(--brand-600);
    font-size: 1.5rem; margin-bottom: 18px; border-radius: var(--radius);
    transition: all .25s ease;
}
.card-flat:hover .icon-badge { background: var(--brand-600); color: #fff; }
.icon-badge.accent { background: var(--accent-100); color: var(--accent-500); }
.card-flat:hover .icon-badge.accent { background: var(--accent-500); color: #fff; }

/* department card */
.dept-card {
    position: relative; display: block; overflow: hidden;
    background: var(--navy-800); height: 100%;
    min-height: 300px; color: #fff;
}
.dept-card .thumb {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform .7s ease; opacity: 1;
}
.dept-card.no-photo .thumb {
    background: linear-gradient(150deg, var(--brand-700), var(--navy-700) 60%, var(--navy-900));
    opacity: 1;
}
.dept-card:hover .thumb { transform: scale(1.07); }
.dept-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(33, 27, 25, .82) 4%, rgba(33, 27, 25, .38) 46%, rgba(33, 27, 25, .06) 100%);
    transition: opacity .3s ease;
}
.dept-card .body {
    position: relative; z-index: 3; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 26px 24px;
}
.dept-card .no {
    font-family: var(--font-display); font-size: 3rem; font-weight: 700;
    color: rgba(255, 255, 255, .2); line-height: 1; margin-bottom: auto;
}
/* department overview text matched to the slider colour pattern: all-white copy,
   stronger per-character shadow, slightly bolder description */
.dept-card h3 {
    color: #fff; margin-bottom: 6px; text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(15, 10, 8, .8), 0 1px 3px rgba(15, 10, 8, .9);
}
.dept-card p {
    font-size: .9rem; color: #fff; margin: 0 0 14px; font-weight: 500;
    text-shadow: 0 2px 5px rgba(15, 10, 8, .85), 0 1px 2px rgba(15, 10, 8, .9);
}
.dept-card .more {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
    font-size: .82rem; color: var(--brand-bronze); display: inline-flex; align-items: center; gap: 8px;
}
.dept-card:hover .more { color: #fff; }
.dept-card .cap-chip {
    position: absolute; top: 22px; right: 22px; z-index: 4;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(3px);
    padding: 5px 11px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
    font-family: var(--font-display); color: #fff;
}

/* product card */
.product-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: all .25s ease; }
.product-card .ph { position: relative; padding-top: 118%; background: var(--bg-alt); overflow: hidden; }
.product-card .ph img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top center; transition: transform .6s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card:hover .ph img { transform: scale(1.06); }
.product-card .meta { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card .nm { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); text-transform: uppercase; }
.product-card .gp { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); font-weight: 600; }

/* certificate card — a fixed frame keeps the row even whatever scan is uploaded */
.cert-card { background: #fff; border: 1px solid var(--line); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.cert-card .shot {
    background: var(--bg-alt); padding: 16px; border-bottom: 1px solid var(--line);
    aspect-ratio: 4 / 5; width: 100%; overflow: hidden;
}
.cert-card .shot img {
    width: 100%; height: 100%; object-fit: contain; object-position: center;
    filter: drop-shadow(0 1px 3px rgba(33, 27, 25, .12));
}
.cert-card.compact .shot { aspect-ratio: 3 / 2; padding: 12px; }
@media (max-width: 575px) { .cert-card .shot { aspect-ratio: 4 / 3; } }
.cert-card .body { padding: 22px; }
.cert-card h4 { margin-bottom: 6px; font-size: 1.1rem; }
.cert-card .who { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.cert-card .meta { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.cert-card .valid {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
    font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
    color: #2f7d32; background: #eaf7ea; padding: 4px 10px; font-weight: 600;
}

/* ==========================================================================
   Process flow
   ========================================================================== */

.flow { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); background: #fff; }
.flow-step {
    flex: 1 1 0; min-width: 140px; padding: 26px 18px; text-align: center;
    border-right: 1px solid var(--line-soft); position: relative; transition: background .25s ease;
}
.flow-step:last-child { border-right: 0; }
.flow-step:hover { background: var(--brand-50); }
.flow-step i { font-size: 1.7rem; color: var(--brand-600); display: block; margin-bottom: 12px; }
.flow-step .nm {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
    font-size: .95rem; font-weight: 600; color: var(--ink);
}
.flow-step .idx { position: absolute; top: 10px; left: 14px; font-size: .7rem; color: var(--line); font-weight: 700; }
@media (max-width: 767px) { .flow-step { flex: 1 1 45%; border-bottom: 1px solid var(--line-soft); } }

/* numbered step list */
.steps { counter-reset: st; display: grid; gap: 2px; }
.step-row {
    display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: start;
    background: #fff; border: 1px solid var(--line); padding: 22px 24px;
    transition: all .25s ease;
}
.step-row:hover { border-color: var(--brand-400); background: var(--brand-50); }
.step-row .n {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
    color: var(--brand-600); line-height: 1;
}
.step-row h4 { margin-bottom: 4px; }
.step-row p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 575px) { .step-row { grid-template-columns: 48px 1fr; gap: 12px; padding: 18px; } }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line); padding: 9px 16px;
    font-size: .9rem; color: var(--ink-soft); transition: all .2s ease;
}
.pill i { color: var(--brand-600); font-size: .95rem; }
.pill:hover { border-color: var(--brand-400); color: var(--brand-600); }
.section-dark .pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .84); }
.section-dark .pill i { color: var(--brand-bronze); }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.spec-table th, .spec-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table thead th {
    background: var(--navy-800); color: #fff; font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .1em; font-size: .84rem; font-weight: 600;
    border-bottom: 0;
}
.spec-table tbody tr:nth-child(even) { background: var(--brand-50); }
.spec-table tbody tr:hover { background: var(--brand-100); }
.spec-table td.num { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--navy-800); }
.spec-table th.dept-col, .spec-table td.dept-col { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* fact table */
.fact-table { width: 100%; border-collapse: collapse; }
.fact-table tr { border-bottom: 1px solid var(--line); }
.fact-table tr:last-child { border-bottom: 0; }
.fact-table th {
    text-align: left; padding: 15px 20px 15px 0; width: 34%;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    text-transform: uppercase; letter-spacing: .07em; color: var(--navy-800); vertical-align: top;
}
.fact-table td { padding: 15px 0; color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 575px) {
    .fact-table th, .fact-table td { display: block; width: 100%; padding: 12px 0 0; }
    .fact-table td { padding: 4px 0 12px; }
}

/* ==========================================================================
   Dark stat tiles
   ========================================================================== */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); }
.tile {
    background: var(--navy-800); padding: 32px 26px; transition: background .3s ease;
    position: relative;
}
.tile:hover { background: var(--navy-700); }
.tile i { font-size: 1.35rem; color: var(--brand-bronze); margin-bottom: 16px; display: block; }
.tile .v { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; color: #fff; line-height: 1; }
.tile .u { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-bronze); margin-top: 6px; font-weight: 600; }
.tile .l { font-size: .95rem; color: rgba(255, 255, 255, .6); margin-top: 8px; }
@media (max-width: 991px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tiles { grid-template-columns: 1fr; } }

/* ==========================================================================
   Export share bars
   ========================================================================== */

.share-row { margin-bottom: 22px; }
.share-row:last-child { margin-bottom: 0; }
.share-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.share-head .m { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.share-head .p { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--brand-600); }
.share-track { height: 8px; background: var(--line-soft); overflow: hidden; }
.share-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-copper), var(--brand-bronze)); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.share-row:nth-child(2) .share-fill { background: linear-gradient(90deg, var(--brand-maroon), #9c4433); }
.share-row:nth-child(3) .share-fill { background: linear-gradient(90deg, var(--brand-bronze), #cfa878); }
.share-row:nth-child(4) .share-fill { background: linear-gradient(90deg, var(--brand-muted), #a79e99); }

/* ==========================================================================
   Buyer marquee
   ========================================================================== */

.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 3; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), rgba(243, 237, 230, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), rgba(243, 237, 230, 0)); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: slide 46s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo-tile {
    flex: 0 0 auto; width: 178px; height: 104px; background: #fff;
    border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
    padding: 18px; transition: all .25s ease;
}
.logo-tile img { max-height: 58px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: all .3s ease; }
.logo-tile:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.logo-tile:hover img { filter: none; opacity: 1; }

.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-grid .logo-tile { width: 100%; }
@media (max-width: 1099px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479px)  { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Image blocks
   ========================================================================== */

.media-frame { position: relative; }
.media-frame img { width: 100%; }
.media-frame::before {
    content: ""; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px;
    border-left: 3px solid var(--brand-bronze); border-top: 3px solid var(--brand-bronze);
}
.media-frame::after {
    content: ""; position: absolute; right: -18px; bottom: -18px; width: 120px; height: 120px;
    border-right: 3px solid var(--brand-copper); border-bottom: 3px solid var(--brand-copper);
}
.media-badge {
    position: absolute; bottom: 26px; left: 26px; z-index: 3;
    background: var(--navy-800); color: #fff; padding: 18px 22px; max-width: 230px;
    box-shadow: var(--shadow-md);
}
.media-badge .v { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.media-badge .l { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .68); margin-top: 6px; }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
/* the tall cell spans both rows — the grid drives its height, the ratio only
   applies once the collage stacks into a single column on phones */
.collage .tall { grid-row: span 2; }

.ratio-box { position: relative; overflow: hidden; }
.ratio-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-16-9 { padding-top: 56.25%; }
.ratio-4-3  { padding-top: 75%; }
.ratio-1-1  { padding-top: 100%; }

/* --------------------------------------------------------------------------
   Ratio-locked images
   Every editable/uploaded image renders inside a fixed-ratio frame, so an
   unexpected shape can never stretch, crop badly or break the grid — and the
   space is reserved before the file loads, so nothing shifts on the page.
   -------------------------------------------------------------------------- */

.img-fit {
    position: relative; display: block; overflow: hidden;
    background: var(--bg-alt);
    aspect-ratio: 4 / 3;                 /* default; overridden by an r-* class */
}
.img-fit > img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: center;
}
.img-fit.top > img    { object-position: top center; }
.img-fit.contain      { background: #fff; }
.img-fit.contain > img { object-fit: contain; }
.img-fit.pad > img    { padding: 12px; }
.img-fit.bordered     { border: 1px solid var(--line); }
.img-fit.shadow       { box-shadow: var(--shadow-md); }

.r-21-9 { aspect-ratio: 21 / 9; }
.r-2-1  { aspect-ratio: 2 / 1; }
.r-16-9 { aspect-ratio: 16 / 9; }
.r-3-2  { aspect-ratio: 3 / 2; }
.r-4-3  { aspect-ratio: 4 / 3; }
.r-1-1  { aspect-ratio: 1 / 1; }
.r-4-5  { aspect-ratio: 4 / 5; }
.r-3-4  { aspect-ratio: 3 / 4; }
.r-5-7  { aspect-ratio: 5 / 7; }

/* Older browsers without aspect-ratio still get a reserved box. */
@supports not (aspect-ratio: 1 / 1) {
    .img-fit::before { content: ""; display: block; padding-top: 75%; }
    .img-fit > img   { position: absolute; inset: 0; }
    .r-21-9::before  { padding-top: 42.85%; }
    .r-2-1::before   { padding-top: 50%; }
    .r-16-9::before  { padding-top: 56.25%; }
    .r-3-2::before   { padding-top: 66.66%; }
    .r-1-1::before   { padding-top: 100%; }
    .r-4-5::before   { padding-top: 125%; }
    .r-3-4::before   { padding-top: 133.33%; }
    .r-5-7::before   { padding-top: 140%; }
}

/* Taller frames get shorter on phones so a portrait image never dominates. */
@media (max-width: 575px) {
    .img-fit.r-3-4, .img-fit.r-5-7 { aspect-ratio: 4 / 5; }
    .img-fit.r-21-9 { aspect-ratio: 16 / 9; }
}

/* gallery card */
.gal-card { margin: 0; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: all .25s ease; }
.gal-card .ratio-box img { transition: transform .6s ease; }
.gal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.gal-card:hover .ratio-box img { transform: scale(1.06); }
.gal-card figcaption { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gal-card .t { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); text-transform: uppercase; }
.gal-card .c { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); font-weight: 600; white-space: nowrap; }

/* footer social + profile download */
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .16);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .7); font-size: 1rem; transition: all .2s ease;
}
.footer-social a:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; padding-left: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */

/* Dark CTA band: espresso ground, ivory copy, bronze headings, copper CTA. */
.cta-band { position: relative; background: var(--brand-espresso); overflow: hidden; padding: 74px 0; }
.cta-band .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 1; }
/* desktop: localized left gradient behind the left-aligned copy (image stays
   clear toward the right) so white text reads reliably over the bright photo */
.cta-band::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(22, 16, 14, .84) 0%,
        rgba(22, 16, 14, .58) 40%,
        rgba(22, 16, 14, .24) 68%,
        rgba(22, 16, 14, .06) 100%);
}
.cta-band .container { position: relative; z-index: 3; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
/* subtle per-character shadow only — no backing box, photo stays fully clear */
.cta-band .cta-text { position: relative; }
/* text colour pattern matched to the inner-page banners / homepage slider:
   all-white copy with a stronger per-character shadow and bolder small text */
.cta-inner h2 {
    color: #fff; margin-bottom: 8px; text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(15, 10, 8, .92), 0 2px 5px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1);
}
.cta-inner p {
    color: #fff; margin: 0; max-width: 620px; font-weight: 500;
    text-shadow: 0 3px 8px rgba(15, 10, 8, .95), 0 2px 4px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1);
}
.cta-band .eyebrow {
    color: #fff; font-weight: 700;
    text-shadow: 0 3px 8px rgba(15, 10, 8, .95), 0 2px 4px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1);
}
.cta-band .eyebrow::before { background: #fff; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* phone-number button: solid backing so its text reads clearly over the bright photo */
.cta-band .btn-ghost-light {
    background: rgba(28, 22, 20, .82); color: #fff; border-color: var(--brand-bronze);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.cta-band .btn-ghost-light:hover {
    background: var(--brand-bronze); color: var(--brand-espresso); border-color: var(--brand-bronze);
    text-shadow: none;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-card { background: #fff; border: 1px solid var(--line); padding: 30px 28px; height: 100%; }
.contact-card .icon-badge { margin-bottom: 16px; }
.contact-card h4 { margin-bottom: 10px; }
.contact-card p, .contact-card a { font-size: .95rem; color: var(--muted); word-break: break-word; }
.contact-card a { display: block; }
.contact-card a:hover { color: var(--brand-600); }

.form-panel { background: #fff; border: 1px solid var(--line); padding: 36px; }
.field { margin-bottom: 18px; }
.field label {
    display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--navy-800); margin-bottom: 7px;
}
.field .req { color: var(--danger-600); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: .96rem;
    color: var(--ink); background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); transition: all .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-copper); box-shadow: 0 0 0 3px rgba(155, 87, 53, .16);
}
.field .err { color: var(--danger-600); font-size: .82rem; margin-top: 5px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger-600); }
.field.has-error .err { display: block; }
/* Security check (anti-spam question) on the enquiry form */
.security-field .security-row {
    display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap;
}
.security-field .security-question {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 12px 16px; font-family: var(--font-display);
    font-size: 1.02rem; font-weight: 700; letter-spacing: .04em; color: var(--navy-800);
    background: var(--brand-50); border: 1px solid var(--line);
    border-radius: var(--radius); user-select: none;
}
.security-field .security-row input { flex: 1 1 150px; width: auto; min-width: 130px; }
.security-field .security-help {
    display: block; margin-top: 6px; font-size: .82rem; color: var(--muted);
}
@media (max-width: 480px) {
    .security-field .security-row { flex-direction: column; }
    .security-field .security-row input { width: 100%; }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 575px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form-panel { padding: 24px 20px; } }

.alert-box { padding: 14px 18px; border-left: 3px solid; font-size: .95rem; margin-bottom: 22px; }
.alert-ok { background: #eaf7ea; border-color: #38a13c; color: #1f5c22; }
.alert-bad { background: var(--danger-100); border-color: var(--danger-600); color: var(--danger-600); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--brand-espresso); color: rgba(250, 248, 245, .64); font-size: .93rem; }
.footer-top { padding: 72px 0 52px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 44px; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 6px; }
.footer-brand .n { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.footer-brand .s { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-top: 5px; }

.footer-col h5 {
    font-family: var(--font-display); font-size: 1.05rem; color: var(--brand-bronze);
    text-transform: uppercase; letter-spacing: .11em; margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.footer-col h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--brand-copper); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, .62); }
.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-contact i { color: var(--brand-400); margin-top: 4px; }
.footer-contact a { display: block; word-break: break-word; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09); padding: 20px 0;
    font-size: .85rem; color: rgba(255, 255, 255, .45);
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-sisters { color: rgba(255, 255, 255, .45); }
.footer-sisters strong { color: rgba(255, 255, 255, .7); font-weight: 600; }

.footer-credit { font-size: .76rem; color: rgba(255, 255, 255, .32); letter-spacing: .01em; }
.footer-credit a { color: rgba(255, 255, 255, .5); transition: color .2s ease; }
.footer-credit a:hover { color: var(--brand-copper); }

.to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
    background: var(--brand-copper); color: #fff; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .25s ease; z-index: 900; box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-maroon); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

/* Content is only hidden when JavaScript is available to reveal it again. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive polish — tablet & phone
   ========================================================================== */

@media (max-width: 1199px) {
    .stat-cell { padding: 26px 20px; }
    .stat-cell .val { font-size: 2.2rem; }
    .tile { padding: 28px 22px; }
    .tile .v { font-size: 2.4rem; }
    .split { gap: 44px; }
}

@media (max-width: 991px) {
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
    .page-hero { min-height: 300px; padding: 100px 0 40px; }
    .grid { gap: 22px; }
    .media-frame::before, .media-frame::after { width: 90px; height: 90px; }
    .cta-band { padding: 62px 0; }
    .cta-inner { display: block; }
    .cta-actions { margin-top: 26px; }
    /* "Let's Grow Together" — on phones/tablets the text stacks over the photo, so
       give it a reliable localized backing (deeper bottom-left where the copy sits,
       fading clear toward the top-right) instead of the light desktop wash */
    .cta-band::after {
        background:
            linear-gradient(105deg,
                rgba(22, 16, 14, .88) 0%,
                rgba(22, 16, 14, .60) 46%,
                rgba(22, 16, 14, .22) 78%,
                rgba(22, 16, 14, .08) 100%),
            linear-gradient(180deg,
                rgba(22, 16, 14, 0)   30%,
                rgba(22, 16, 14, .34) 100%);
    }
    .cta-inner h2 { text-shadow: 0 3px 10px rgba(15, 10, 8, .92), 0 2px 5px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1); }
    .cta-inner p  { color: #fff; text-shadow: 0 3px 8px rgba(15, 10, 8, .95), 0 2px 4px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1); }
    .cta-band .eyebrow { text-shadow: 0 3px 8px rgba(15, 10, 8, .95), 0 2px 4px rgba(15, 10, 8, 1), 0 1px 2px rgba(15, 10, 8, 1); }
    .footer-top { padding: 60px 0 44px; }
}

@media (max-width: 767px) {
    .container { padding: 0 18px; }

    .section { padding: 56px 0; }
    .section-sm { padding: 40px 0; }
    .section-head { margin-bottom: 32px; }
    .section-head p { font-size: 1rem; }
    .lead { font-size: 1.04rem; }
    .eyebrow { font-size: .86rem; letter-spacing: .13em; margin-bottom: 11px; }

    .stat-cell .val { font-size: 2rem; }
    .stat-cell .bar { margin-bottom: 12px; }

    /* media blocks */
    .media-frame::before, .media-frame::after { width: 64px; height: 64px; border-width: 2px; }
    .media-frame::before { left: -10px; top: -10px; }
    .media-frame::after { right: -10px; bottom: -10px; }
    .media-badge { bottom: 16px; left: 16px; padding: 14px 16px; max-width: 190px; }
    .media-badge .v { font-size: 1.8rem; }

    /* cards */
    .dept-card { min-height: 268px; }
    .dept-card .no { font-size: 2.5rem; }
    .card-flat { padding: 26px 22px; }
    .cert-card .shot { min-height: 190px; padding: 14px; }
    .cert-card .shot img { max-height: 210px; }
    .step-row { padding: 20px; }

    /* tables */
    .spec-table th, .spec-table td { padding: 13px 14px; font-size: .9rem; }
    .spec-table thead th { font-size: .78rem; }
    .table-note { font-size: .8rem; }

    /* tiles + bars */
    .tile { padding: 26px 22px; }
    .tile .v { font-size: 2.3rem; }
    .share-head .m { font-size: 1.05rem; }

    /* marquee */
    .marquee::before, .marquee::after { width: 52px; }
    .logo-tile { width: 150px; height: 92px; padding: 14px; }
    .logo-tile img { max-height: 48px; }
    .marquee-track { gap: 14px; }

    /* footer */
    .footer-top { padding: 52px 0 38px; }
    .footer-grid { gap: 34px; }
    .footer-bottom { padding: 18px 0; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }

    .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }

    /* MOBILE banner: image-first, text at the bottom. A localized bottom gradient
       (transparent → dark only near the text) keeps the upper half of the photo
       clear so the page subject still reads, while the title stays legible. */
    .page-hero { min-height: 300px; }
    .page-hero::after {
        background: linear-gradient(to top,
            rgba(28, 22, 20, .90) 0%,
            rgba(28, 22, 20, .64) 20%,
            rgba(28, 22, 20, .28) 40%,
            rgba(28, 22, 20, .05) 58%,
            rgba(28, 22, 20, 0)   76%);
    }
    /* copy spans the width on phones; allow a slightly longer supporting line */
    .page-hero .ph-text { display: block; max-width: 100%; }
    .page-hero p { font-size: 1rem; max-width: 100%; -webkit-line-clamp: 3; }
}

@media (max-width: 575px) {
    .section { padding: 48px 0; }
    .split, .split.wide-left, .split.wide-right { gap: 34px; }

    /* hero CTAs stay inline/compact (see mobile hero block) so they don't cover
       the photograph; only the CTA-band buttons go full-width */
    .cta-actions .btn { width: 100%; }
    .hero-cta .btn { width: auto; padding: 11px 18px; font-size: .92rem; }
    .flex-cta .btn { flex: 1 1 auto; }

    .collage { grid-template-columns: 1fr; }
    .collage .tall { grid-row: auto; max-height: 320px; }
    .collage img { max-height: 260px; }

    .btn { padding: 13px 22px; font-size: .96rem; }
    .form-panel { padding: 22px 18px; }
    /* 16px minimum stops iOS Safari zooming in on focus */
    .field input, .field select, .field textarea { font-size: 16px; }
    .crumbs { font-size: .74rem; gap: 8px; margin-top: 16px; }
    .page-hero { min-height: 260px; padding: 88px 0 34px; }

    .flow-step { padding: 20px 12px; }
    .flow-step i { font-size: 1.45rem; margin-bottom: 9px; }
    .flow-step .nm { font-size: .86rem; letter-spacing: .06em; }

    .logo-grid { gap: 12px; }
    .logo-tile { height: 84px; }
}

@media (max-width: 380px) {
    .container { padding: 0 15px; }
    .stat-cell { padding: 18px 14px; }
    .stat-cell .val { font-size: 1.75rem; }
    .stat-cell .lbl { font-size: .7rem; letter-spacing: .1em; }
    .card-flat { padding: 22px 18px; }
}

/* utility */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; } .mb-4 { margin-bottom: 40px; }
.center { text-align: center; }
.flex-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
