/* ==========================================================================
   Global Fluid Controls Ltd — stylesheet
   Palette derived from the brand logo (navy / grey / red).
   ========================================================================== */

:root {
    --navy:        #2b2b74;
    --navy-dark:   #1d1d55;
    --navy-800:    #23235f;
    --red:         #db1f26;
    --red-dark:    #b3161c;
    --ink:         #14141b;
    --slate:       #4a4a5a;
    --muted:       #6b6b7b;
    --line:        #e4e6ee;
    --grey-50:     #f6f7fb;
    --grey-100:    #eceef4;
    --grey-200:    #dfe2ec;
    --white:       #ffffff;

    --maxw:        1200px;
    --radius:      14px;
    --radius-sm:   9px;
    --shadow-sm:   0 2px 10px rgba(20, 20, 40, .06);
    --shadow:      0 12px 30px rgba(20, 20, 50, .10);
    --shadow-lg:   0 24px 60px rgba(20, 20, 50, .16);
    --header-h:    101px;

    --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ff-head: 'Roboto Slab', Georgia, serif;

    --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@supports (overflow: clip) {
    html { overflow-x: clip; }
}
body {
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, iframe, video { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.15; color: var(--ink); font-weight: 700; }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
    position: absolute; top: 0; left: 0; z-index: 1000;
    width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
    background: var(--navy); color: #fff;
}
.skip-link:focus {
    width: auto; height: auto; margin: 0; padding: 10px 16px;
    clip-path: none; border-radius: 0 0 8px 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    font-weight: 600; font-size: 1rem; line-height: 1;
    padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
    transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(219, 31, 38, .28); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--grey-100); color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contact li { display: inline-flex; align-items: center; gap: 7px; }
.topbar__contact a { color: rgba(255,255,255,.9); }
.topbar__contact a:hover { color: #fff; }
.topbar__sep { opacity: .4; margin-inline: 2px; }
.topbar .ico { width: 15px; height: 15px; fill: var(--red); flex: none; }
.topbar__social { display: flex; gap: 8px; }
.topbar__social a {
    width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff; font-size: .75rem; font-weight: 700;
}
.topbar__social a:hover { background: var(--red); }
.topbar__social a svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
    transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand__logo { height: 67px; width: auto; }

.primary-nav__list { display: flex; align-items: center; gap: 4px; }
.primary-nav__list > li > a,
.mega-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .98rem;
    color: var(--ink); background: none; border: none;
}
.primary-nav__list > li > a:hover,
.mega-toggle:hover { color: var(--red); background: var(--grey-50); }
.primary-nav__list > li > a.is-active,
.mega-toggle.is-active { color: var(--navy); }
.primary-nav__list > li > a.is-active::after,
.mega-toggle.is-active::after {
    content: ''; display: block;
}
.chevron { width: 18px; height: 18px; fill: currentColor; transition: transform .25s var(--ease); }

.primary-nav__cta { margin-left: 10px; }

/* ---------- Mega menu ---------- */
.has-mega { position: static; }
.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.has-mega.is-open .chevron { transform: rotate(180deg); }
.mega__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    padding-block: 28px 22px;
}

/* Uniform service card */
.mega-card {
    position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 18px 18px 16px; background: #fff;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.mega-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.mega-card.is-active { border-color: var(--navy); }

.mega-card__main { display: flex; gap: 14px; align-items: flex-start; }
/* Stretched link so the whole card is clickable to the overview page */
.mega-card__main::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

.mega-card__icon {
    flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
    background: var(--grey-50); transition: background .2s var(--ease);
}
.mega-card__icon svg { width: 24px; height: 24px; fill: var(--navy); transition: fill .2s var(--ease); }
.mega-card:hover .mega-card__icon { background: var(--navy); }
.mega-card:hover .mega-card__icon svg { fill: #fff; }

.mega-card__body { display: block; }
.mega-card__title {
    display: block; font-family: var(--ff-head); font-weight: 700; font-size: 1.02rem;
    color: var(--ink); line-height: 1.25; margin-bottom: 3px;
}
.mega-card:hover .mega-card__title { color: var(--navy); }
.mega-card.is-active .mega-card__title { color: var(--navy); }
.mega-card__desc { display: block; font-size: .84rem; color: var(--muted); line-height: 1.45; }

.mega-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-left: 58px; }
.mega-chip {
    position: relative; z-index: 1; font-size: .78rem; font-weight: 600; color: var(--slate);
    background: var(--grey-100); padding: 4px 10px; border-radius: 999px;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.mega-chip:hover, .mega-chip.is-active { background: var(--navy); color: #fff; }

/* Footer CTA row inside the mega */
.mega__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    border-top: 1px solid var(--line); padding: 16px 0 22px;
}
.mega__foot-text { color: var(--muted); font-size: .92rem; }
.mega__foot-actions { display: flex; align-items: center; gap: 20px; }
.mega__foot-link { font-weight: 600; color: var(--navy); }
.mega__foot-link:hover { color: var(--red); }
.mega__foot-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.mega__foot-phone svg { width: 18px; height: 18px; fill: var(--red); }
.mega__foot-phone:hover { color: var(--red); }

/* ---------- Nav toggle (mobile) ---------- */
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; position: relative; }
.nav-toggle span {
    position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Logo motif (three staggered bars) ---------- */
.bars,
.hero__bars,
.page-hero__bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
}

.bars .bar {
    display: block;
    border-radius: 999px;
    flex-shrink: 0;
    transform: skewX(18deg);
    transform-origin: bottom center;
}

.page-hero__bars .bar {
    display: block;
    border-radius: 999px;
    flex-shrink: 0;
}

.hero__bars > span {
    display: block;
    border-radius: 999px;
    flex-shrink: 0;
}

.bar--navy { background: var(--navy); }
.bar--grey { background: var(--grey-200); }
.bar--red  { background: var(--red); }

/* Default — split sections, about page, etc. */
.bars .bar { width: 22px; }
.bars .bar--navy { height: 70px; }
.bars .bar--grey { height: 92px; }
.bars .bar--red  { height: 114px; }

.split__media .bars .bar { width: 24px; }
.split__media .bars .bar--navy { height: 78px; }
.split__media .bars .bar--grey { height: 102px; background: rgba(255, 255, 255, .9); }
.split__media .bars .bar--red  { height: 126px; }

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(219,31,38,.22), transparent 60%),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-800) 100%);
}
.hero__bars {
    position: absolute; top: -40px; right: 6%; gap: 22px; opacity: .18; pointer-events: none;
}
.hero__bars > span { width: 34px; height: 340px; }
.hero__bars .bar--grey { background: rgba(255, 255, 255, .85); }
.hero__inner {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
    padding-block: 92px; position: relative; z-index: 1;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; font-size: .78rem; color: #fff;
    background: rgba(255,255,255,.10); padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero__eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: #fff; }
.hero h1 .accent-red { position: relative; }
.hero h1 .accent-red::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px; background: var(--red); z-index: -1; opacity: .85; border-radius: 3px;
}
.hero__lead { font-size: 1.16rem; color: rgba(255,255,255,.86); max-width: 42ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero__stat .num { font-family: var(--ff-head); font-size: 2rem; font-weight: 800; color: #fff; }
.hero__stat .lbl { font-size: .85rem; color: rgba(255,255,255,.7); }
.hero__card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius); padding: 30px; backdrop-filter: blur(4px);
}
.hero__card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.hero__card ul { display: grid; gap: 12px; }
.hero__card li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); font-weight: 500; }
.hero__card li svg { width: 22px; height: 22px; fill: var(--red); flex: none; }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding-block: 84px; }
.section--tight { padding-block: 56px; }
.section--grey { background: var(--grey-50); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    font-size: .78rem; color: var(--red); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: 1.14rem; color: var(--slate); }

/* ---------- Sectors / industries tiles ---------- */
.sectors {
    background: linear-gradient(160deg, var(--navy-dark) 0%, #15153a 55%, var(--ink) 100%);
    padding-block: 72px;
    color: #fff;
}
.section-head--light h2 { color: #fff; }
.section-head--light p { color: rgba(255,255,255,.72); }
.sectors__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sector-tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}
.sector-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease);
}
.sector-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,20,40,.15) 0%, rgba(20,20,40,.55) 45%, rgba(10,10,24,.88) 100%);
    transition: background .35s var(--ease);
}
.sector-tile__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    z-index: 1;
}
.sector-tile__arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--red);
    display: grid;
    place-items: center;
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.sector-tile__arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sector-tile__title {
    font-family: var(--ff-head);
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}
.sector-tile:hover { color: #fff; }
.sector-tile:hover .sector-tile__img { transform: scale(1.06); }
.sector-tile:hover .sector-tile__overlay {
    background: linear-gradient(180deg, rgba(20,20,40,.1) 0%, rgba(20,20,40,.45) 40%, rgba(10,10,24,.9) 100%);
}
.sector-tile:hover .sector-tile__arrow {
    background: #fff;
    transform: translateX(4px);
}
.sector-tile:hover .sector-tile__arrow svg { stroke: var(--red); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px 28px; overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(var(--navy), var(--red)); transform: scaleY(0); transform-origin: top;
    transition: transform .28s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card__icon {
    width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
    background: var(--grey-50); margin-bottom: 20px; transition: background .25s var(--ease);
}
.card__icon svg { width: 30px; height: 30px; fill: var(--navy); transition: fill .25s var(--ease); }
.card:hover .card__icon { background: var(--navy); }
.card:hover .card__icon svg { fill: #fff; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.card__link { font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.card__link svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s var(--ease); }
.card:hover .card__link { color: var(--red); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.card__tags span { font-size: .76rem; font-weight: 600; color: var(--slate); background: var(--grey-100); padding: 4px 10px; border-radius: 999px; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--start { align-items: start; }
.split__media {
    border-radius: var(--radius); overflow: hidden; min-height: 360px;
    background:
        linear-gradient(135deg, rgba(43,43,116,.9), rgba(219,31,38,.75)),
        var(--grey-200);
    display: grid; place-items: center; color: #fff;
}
.split__media--photo {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    min-height: 460px;
}
.about-intro h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); margin-bottom: 16px; max-width: 18ch; }
.about-intro .lead { margin-bottom: 18px; max-width: 42ch; }
.about-intro > p { color: var(--slate); margin-bottom: 0; max-width: 48ch; }
.checklist { display: grid; gap: 18px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; fill: var(--red); flex: none; margin-top: 2px; }
.checklist strong { display: block; margin-bottom: 3px; color: var(--ink); }
.checklist span { color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 56px; text-align: center; }
.stat .num { font-family: var(--ff-head); font-size: 2.6rem; font-weight: 800; color: #fff; }
.stat .lbl { color: rgba(255,255,255,.72); font-size: .95rem; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { font-family: var(--ff-head); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--navy); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Logos / partners strip ---------- */
.trust { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: .8; }
.trust span { font-family: var(--ff-head); font-weight: 700; color: var(--muted); font-size: 1.1rem; }

/* ==========================================================================
   Page hero (interior)
   ========================================================================== */
.page-hero {
    position: relative; overflow: hidden; color: #fff; padding-block: 66px 58px;
    background:
        radial-gradient(900px 400px at 90% -30%, rgba(219,31,38,.28), transparent 60%),
        linear-gradient(120deg, var(--navy-dark), var(--navy));
}
.page-hero__bars { position: absolute; right: 5%; bottom: -30px; gap: 16px; opacity: .16; }
.page-hero__bars .bar { width: 26px; height: 200px; }
.page-hero__bars .bar--grey { background: rgba(255, 255, 255, .85); }
.page-hero__title { font-size: clamp(2rem, 3.6vw, 3rem); color: #fff; }
.page-hero__subtitle { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 60ch; margin-top: 12px; }
.breadcrumb { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { color: rgba(255,255,255,.4); }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Placeholder ---------- */
.placeholder {
    border: 2px dashed var(--grey-200); border-radius: var(--radius); padding: 30px;
    padding-top: 38px;
    background: repeating-linear-gradient(45deg, var(--grey-50), var(--grey-50) 12px, #fff 12px, #fff 24px);
    color: var(--muted); position: relative;
    margin-top: 20px;
    margin-bottom: 24px;
}
.placeholder__tag {
    position: absolute; top: 12px; left: 18px; background: var(--navy); color: #fff;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.7rem; margin: 34px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--slate); }
.prose ul { display: grid; gap: 10px; margin-bottom: 18px; }
.prose ul li { padding-left: 26px; position: relative; color: var(--slate); }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }

.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; }
.sidebar__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sidebar__card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.sidebar__nav li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--slate); font-weight: 500; }
.sidebar__nav li a:hover { background: var(--grey-50); color: var(--navy); }
.sidebar__nav li a.is-active { background: var(--navy); color: #fff; }
.sidebar__cta { background: var(--navy); color: #fff; text-align: center; }
.sidebar__cta h3 { color: #fff; }
.sidebar__cta p { color: rgba(255,255,255,.8); font-size: .92rem; margin-bottom: 16px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    background:
        radial-gradient(700px 300px at 15% 120%, rgba(219,31,38,.30), transparent 60%),
        linear-gradient(120deg, var(--navy), var(--navy-dark));
    color: #fff;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 56px; flex-wrap: wrap; }
.cta-band__heading { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cta-band__text { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grey-50); display: grid; place-items: center; flex: none; }
.contact-item__ico svg { width: 22px; height: 22px; fill: var(--navy); }
.contact-item h3 { font-size: 1.05rem; margin-bottom: 3px; }
.contact-item p, .contact-item a { color: var(--slate); }
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; }
.field .optional { font-weight: 500; color: var(--muted); }
.field__hint { font-size: .82rem; color: var(--muted); }
.field input, .field textarea, .field select {
    font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--grey-200);
    border-radius: 10px; background: var(--grey-50); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input[type="file"] {
    padding: 10px 12px; background: #fff; cursor: pointer;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,43,116,.12); background: #fff;
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.apply-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.form-alert {
    padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: .95rem;
}
.form-alert--ok { background: #e8f7ee; color: #146c2e; border: 1px solid #b7e4c7; }
.form-alert--err { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.hp {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* reCAPTCHA: the floating badge is hidden, so Google's required attribution
   is shown as text beneath the submit button instead. */
.grecaptcha-badge { display: none !important; }
.form-legal { margin: 14px 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.form-legal a { color: var(--slate); text-decoration: underline; }
.form-legal a:hover { color: var(--navy); }

.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Division logo (plumbing etc.) ---------- */
.division-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin-bottom: 26px;
}

/* ---------- Projects ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cs-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.cs-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cs-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-100); }
.cs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cs-card:hover .cs-card__media img { transform: scale(1.05); }

/* Projects with no photography yet get a branded panel instead. */
.cs-card__media--brand {
    position: relative;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 60%, var(--ink) 100%);
}
.cs-card__bars {
    position: absolute; right: 20px; bottom: -16px;
    display: flex; align-items: flex-end; gap: 9px;
}
.cs-card__bars .bar {
    display: block; width: 15px; border-radius: 999px; flex-shrink: 0;
    transform: skewX(18deg); transform-origin: bottom center;
}
.cs-card__bars .bar--navy { height: 46px; background: rgba(255,255,255,.22); }
.cs-card__bars .bar--grey { height: 62px; background: rgba(255,255,255,.32); }
.cs-card__bars .bar--red  { height: 78px; background: rgba(219,31,38,.75); }
.cs-card__glyph { width: 62px; height: 62px; fill: rgba(255,255,255,.9); position: relative; }
.cs-card:hover .cs-card__glyph { fill: #fff; }
.cs-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 24px; }
.cs-card__client { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--red); }
.cs-card h3 { font-size: 1.2rem; line-height: 1.35; margin: 10px 0; }
.cs-card h3 a { color: var(--ink); }
.cs-card:hover h3 a { color: var(--navy); }
.cs-card p { color: var(--muted); font-size: .96rem; }
.cs-card .card__tags { margin-bottom: 18px; }
.cs-card .card__link { margin-top: auto; }

.cs-facts {
    display: grid; gap: 0; margin: 22px 0 30px;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.cs-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 20px; }
.cs-facts > div + div { border-top: 1px solid var(--line); }
.cs-facts > div:nth-child(odd) { background: var(--grey-50); }
.cs-facts dt { font-weight: 700; color: var(--ink); font-size: .92rem; }
.cs-facts dd { color: var(--slate); font-size: .96rem; }

.cs-ordered { counter-reset: cs-step; display: grid; gap: 10px; margin-bottom: 18px; }
.cs-ordered li { counter-increment: cs-step; padding-left: 38px; position: relative; color: var(--slate); }
.cs-ordered li::before {
    content: counter(cs-step); position: absolute; left: 0; top: -1px;
    width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff;
    display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

.cs-figure { margin: 26px 0 30px; }
.cs-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.cs-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

.cs-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cs-gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--grey-100); aspect-ratio: 4 / 3; }
/* The featured tile stretches over two rows. Taking its image out of flow
   stops it from dictating row height and leaving gaps beside the small tiles. */
.cs-gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.cs-gallery__item:first-child img { position: absolute; inset: 0; }
.cs-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.cs-gallery__item:hover img { transform: scale(1.05); }
.cs-back { margin-top: 30px; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote__mark { font-family: var(--ff-head); font-size: 3rem; color: var(--red); line-height: .6; }
.quote p { color: var(--slate); font-style: italic; margin: 12px 0 18px; }
.quote__who { font-weight: 700; }
.quote__role { color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.site-footer__logo { width: 100%; height: auto; display: block; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 18px; box-sizing: border-box; object-fit: contain; }
.site-footer__blurb { font-size: .95rem; max-width: 40ch; }
.site-footer__heading { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer__links li, .site-footer__contact li { margin-bottom: 11px; }
.site-footer__links a { color: rgba(255,255,255,.7); }
.site-footer__links a:hover { color: #fff; }
.site-footer__contact li { display: grid; gap: 2px; }
.site-footer__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.site-footer__contact a { color: rgba(255,255,255,.85); }
.site-footer__contact a:hover { color: #fff; }
.site-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.site-footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-weight: 700; }
.site-footer__social a:hover { background: var(--red); }
.site-footer__social a svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    padding-block: 16px;
    font-size: .87rem;
}
.site-footer__copy { margin: 0; }
.site-footer__certs { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__certs-inner { display: flex; align-items: center; gap: 32px; padding-block: 32px; }
.site-footer__badge {
    width: 104px; height: auto; flex: none; display: block;
    background: #fff; padding: 8px; border-radius: 10px; box-sizing: border-box;
}
.site-footer__certs-text .site-footer__heading { margin-bottom: 8px; }
.site-footer__certs-text p { font-size: .95rem; }
.site-footer__standards {
    display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 16px 0 14px;
}
.site-footer__standards li {
    display: grid; gap: 2px; padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
    background: rgba(255,255,255,.04);
}
.site-footer__standards strong { color: #fff; font-size: .95rem; }
.site-footer__standards span { font-size: .82rem; color: rgba(255,255,255,.6); }
.site-footer__certno { font-size: .85rem; color: rgba(255,255,255,.5); }
.site-footer__meta { color: rgba(255,255,255,.5); margin: 0; text-align: right; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .cs-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-gallery { grid-template-columns: repeat(3, 1fr); }
    .cs-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
    .sectors__grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .layout-2col { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .topbar__contact li.topbar__hide-md { display: none; }
    /* backdrop-filter creates a containing block that traps the
       fixed-position drawer inside the header, so disable it here */
    .site-header { backdrop-filter: none; background: #fff; }
    .nav-toggle { display: block; }
    .primary-nav {
        position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background: #fff;
        transform: translateX(100%); transition: transform .3s var(--ease), visibility .3s var(--ease);
        box-shadow: var(--shadow-lg); padding: calc(var(--header-h) + 6px) 20px 30px; overflow-y: auto; z-index: 90;
        visibility: hidden; pointer-events: none;
    }
    body.nav-open .primary-nav { transform: translateX(0); visibility: visible; pointer-events: auto; }
    body.nav-open { overflow: hidden; }
    .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .primary-nav__list > li > a, .mega-toggle { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
    .primary-nav__cta { margin: 14px 0 0; }
    .primary-nav__cta .btn { width: 100%; justify-content: center; }

    .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
    .has-mega.is-open .mega { max-height: 2600px; }
    .mega__grid { grid-template-columns: 1fr; padding-block: 8px 8px; gap: 8px; }
    .mega-card { padding: 14px; }
    .mega-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
    .mega-card__chips { padding-left: 0; }
    .mega__foot { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 0 10px; }

    .nav-backdrop { position: fixed; inset: 0; background: rgba(10,10,25,.45); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 80; }
    body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}
@media (max-width: 720px) {
    .topbar__contact li.topbar__hide-sm { display: none; }
    .topbar__inner { justify-content: center; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid, .apply-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer__bar-inner {
        flex-direction: column;
        text-align: center;
    }
    .site-footer__meta { text-align: center; }
    .site-footer__certs-inner { flex-direction: column; text-align: center; gap: 22px; }
    .site-footer__standards { justify-content: center; }
    .sectors__grid { grid-template-columns: 1fr; }
    .sector-tile { aspect-ratio: 16 / 9; }
    .section { padding-block: 60px; }
    .hero__inner { padding-block: 64px; }
}
@media (max-width: 560px) {
    .cards, .steps, .stats-band .container, .sidebar { grid-template-columns: 1fr; }
    .cs-grid { grid-template-columns: 1fr; }
    .cs-gallery { grid-template-columns: repeat(2, 1fr); }
    .cs-gallery__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
    .cs-gallery__item:first-child img { position: static; }
    .cs-facts > div { grid-template-columns: 1fr; gap: 4px; }
    .field--row { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .hero__stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
