/* ==================================================================
   FIVETECH BUILDING CONTRACTING LLC  —  CORE STYLES
   ==================================================================
   >>>  EDIT ALL BRAND COLOURS IN THE :root BLOCK BELOW. <<<
   They are derived from the real company logo (electric blue,
   green, crimson). Change a hex here and it updates site-wide.
   ================================================================== */
:root {
    /* ---- BRAND (sampled from the logo) ---------------------------- */
    --brand-blue:   #1a33e6;   /* primary — electric tech blue */
    --brand-blue-2: #3b5bff;   /* lighter blue for gradients/hover */
    --brand-green:  #00a84a;   /* completed status / accent */
    --brand-red:    #c0203f;   /* crimson accent (sparing) */
    --brand-amber:  #f0a818;   /* ongoing status */

    /* ---- SURFACES (dark, architectural) -------------------------- */
    --bg:          #0a0d14;    /* page background (near-black navy) */
    --bg-2:        #0f131d;    /* alternating section */
    --surface:     #141926;    /* cards */
    --surface-2:   #1b2230;    /* raised cards / inputs */
    --line:        rgba(120,150,255,.14);  /* hairlines / borders */
    --line-strong: rgba(120,150,255,.28);

    /* ---- TEXT ----------------------------------------------------- */
    --text:        #eef1f8;
    --text-dim:    #aab3c6;
    --text-mute:   #6f7a90;

    /* ---- TYPE ----------------------------------------------------- */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    /* ---- LAYOUT --------------------------------------------------- */
    --container: 1200px;
    --radius: 14px;
    --radius-sm: 8px;
    --ease: cubic-bezier(.22,.61,.36,1);
    --shadow: 0 18px 50px -20px rgba(0,0,0,.7);
}

/* ------------------------------------------------------------------ *
   RESET / BASE
 * ------------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* Blueprint grid backdrop */
.blueprint-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: .5;
    mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 90%);
}

/* Mono label (spec-sheet / title-block treatment) */
.mono-label {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-mute);
    display: block;
}

/* ------------------------------------------------------------------ *
   HEADER / NAV
 * ------------------------------------------------------------------ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 0;
    transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(10,13,20,.82);
    backdrop-filter: blur(14px);
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; transition: height .35s var(--ease); }
.scrolled .brand-logo { height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.brand-sub { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .22em; color: var(--text-mute); text-transform: uppercase; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 3px; }
.site-nav a {
    font-size: .9rem; font-weight: 500; color: var(--text-dim);
    padding: 9px 12px; border-radius: 8px; position: relative;
    white-space: nowrap;
    transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }
.site-nav a:not(.nav-cta).active::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--brand-blue-2); border-radius: 2px;
}
.nav-cta {
    background: var(--brand-blue); color: #fff !important;
    padding: 10px 18px !important; border-radius: 8px; font-weight: 600;
    box-shadow: 0 8px 22px -10px var(--brand-blue);
}
.nav-cta:hover { background: var(--brand-blue-2); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: .3s var(--ease); }

/* ------------------------------------------------------------------ *
   BUTTONS
 * ------------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    padding: 14px 28px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn-primary { background: var(--brand-blue); color: #fff; box-shadow: 0 14px 34px -16px var(--brand-blue); }
.btn-primary:hover { background: var(--brand-blue-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand-blue-2); background: rgba(59,91,255,.08); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------ *
   SECTIONS / HEADINGS
 * ------------------------------------------------------------------ */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .28em;
    text-transform: uppercase; color: var(--brand-blue-2); margin-bottom: 18px;
    display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--brand-blue-2); }
.section-head.center .eyebrow::before { display: none; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-intro { color: var(--text-dim); font-size: 1.08rem; margin-top: 18px; }

/* ------------------------------------------------------------------ *
   HERO
 * ------------------------------------------------------------------ */
.hero { padding: clamp(140px, 20vh, 220px) 0 clamp(70px, 10vw, 120px); position: relative; overflow: hidden; }
.hero::after {
    content: ''; position: absolute; top: -10%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
    background: radial-gradient(circle, rgba(26,51,230,.22), transparent 65%);
    pointer-events: none; z-index: -1;
}
.hero-inner { max-width: 880px; }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--brand-blue-2); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); margin: 26px 0 38px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 34px; }
.hero-meta .num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: #fff; }
.hero-meta .lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-top: 4px; }

/* ------------------------------------------------------------------ *
   STATS (count-up)
 * ------------------------------------------------------------------ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-green)); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; color: #fff; }
.stat-num .suffix { color: var(--brand-blue-2); }
.stat-label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: 8px; }

/* ------------------------------------------------------------------ *
   SERVICE CARDS
 * ------------------------------------------------------------------ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 30px; transition: transform .3s var(--ease), border-color .3s, background .3s;
    position: relative;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-2); }
.service-icon {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
    background: rgba(26,51,230,.12); border: 1px solid rgba(59,91,255,.3); color: var(--brand-blue-2);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--text-dim); font-size: .96rem; }
.service-num { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: .8rem; color: var(--text-mute); }

/* ------------------------------------------------------------------ *
   PROJECT CARDS (spec-sheet / title-block treatment)
 * ------------------------------------------------------------------ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
    display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.project-media img, .project-media .placeholder-svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.05); }
.status-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 11px; border-radius: 6px; font-weight: 500; backdrop-filter: blur(6px);
}
.status-completed { background: rgba(0,168,74,.18); color: #4ade80; border: 1px solid rgba(0,168,74,.4); }
.status-ongoing   { background: rgba(240,168,24,.16); color: #fbbf24; border: 1px solid rgba(240,168,24,.4); }
.featured-tag {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
    padding: 6px 10px; border-radius: 6px; background: rgba(26,51,230,.85); color: #fff;
}
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-blue-2); margin-bottom: 8px; }
.project-card h3 { font-size: 1.25rem; margin-bottom: 16px; }
.project-card h3 a:hover { color: var(--brand-blue-2); }

/* title-block spec rows */
.spec-block { border-top: 1px solid var(--line); margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.spec-item .mono-label { margin-bottom: 3px; }
.spec-item .spec-val { font-size: .9rem; color: var(--text); font-weight: 500; }

/* progress bar (ongoing) */
.progress-wrap { margin-top: 16px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.progress-top .mono-label { margin: 0; }
.progress-pct { font-family: var(--font-mono); font-size: .82rem; color: var(--brand-amber); font-weight: 500; }
.progress-track { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand-amber), #ffd166); border-radius: 4px; width: 0; transition: width 1.2s var(--ease); }

/* ------------------------------------------------------------------ *
   PROJECT FILTERS
 * ------------------------------------------------------------------ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
    font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    padding: 10px 20px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
    color: var(--text-dim); cursor: pointer; transition: .2s var(--ease);
}
.filter-btn:hover { border-color: var(--line-strong); color: var(--text); }
.filter-btn.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* ------------------------------------------------------------------ *
   PROJECT DETAIL
 * ------------------------------------------------------------------ */
.detail-hero { padding: clamp(120px,16vh,180px) 0 40px; }
.breadcrumb { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--brand-blue-2); }
.detail-title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; margin-top: 40px; }
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.detail-cover img, .detail-cover .placeholder-svg { width: 100%; height: 100%; object-fit: cover; }
.detail-desc { color: var(--text-dim); font-size: 1.05rem; }
.detail-desc p { margin-bottom: 16px; }
.spec-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; }
.spec-sheet h4 { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-blue-2); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.spec-row:last-of-type { border-bottom: 0; }
.spec-row .k { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.spec-row .v { font-size: .95rem; font-weight: 500; text-align: right; }

.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.gallery-grid img { border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; cursor: pointer; transition: transform .3s var(--ease); }
.gallery-grid img:hover { transform: scale(1.03); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,7,12,.94); z-index: 1000; display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; width: auto; }
.lightbox-close { position: absolute; top: 24px; right: 30px; font-size: 2.4rem; color: #fff; cursor: pointer; line-height: 1; }

/* ------------------------------------------------------------------ *
   SPLIT / ABOUT
 * ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-visual { order: -1; }
.split-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.05rem; }
.split-visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; position: relative; }
.split-visual img, .split-visual .placeholder-svg { width: 100%; height: 100%; object-fit: cover; }

.feature-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); }
.feature-list .tick { color: var(--brand-green); flex-shrink: 0; margin-top: 3px; }

/* ------------------------------------------------------------------ *
   CAPABILITIES TABLES
 * ------------------------------------------------------------------ */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); background: var(--bg-2); }
.data-table td { font-size: .96rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:last-child { font-family: var(--font-mono); color: var(--brand-blue-2); font-weight: 500; text-align: right; }
.table-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ------------------------------------------------------------------ *
   CONTACT
 * ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-item .mono-label { margin-bottom: 6px; }
.contact-item .ci-val { font-size: 1.05rem; font-weight: 500; }
.contact-item a:hover { color: var(--brand-blue-2); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 15px; background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: .98rem;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-blue-2); box-shadow: 0 0 0 3px rgba(59,91,255,.18); }
.field textarea { resize: vertical; min-height: 130px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .95rem; }
.alert-success { background: rgba(0,168,74,.12); border: 1px solid rgba(0,168,74,.4); color: #4ade80; }
.alert-error   { background: rgba(192,32,63,.12); border: 1px solid rgba(192,32,63,.45); color: #f87171; }

/* ------------------------------------------------------------------ *
   CTA STRIP
 * ------------------------------------------------------------------ */
.cta-strip { background: linear-gradient(120deg, var(--brand-blue), #0c1c8a); border-radius: var(--radius); padding: clamp(40px,6vw,64px); text-align: center; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; }
.cta-strip > * { position: relative; }
.cta-strip h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 16px; }
.cta-strip p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 30px; }
.cta-strip .btn-primary { background: #fff; color: var(--brand-blue); }
.cta-strip .btn-primary:hover { background: #f0f3ff; }

/* ------------------------------------------------------------------ *
   FOOTER
 * ------------------------------------------------------------------ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 64px 0 48px; }
.footer-logo { height: 48px; margin-bottom: 20px; }
.footer-tagline { color: var(--text-dim); font-size: .95rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 11px; }
.footer-links li, .footer-links a { color: var(--text-dim); font-size: .94rem; transition: color .2s; }
.footer-links a:hover { color: var(--brand-blue-2); }
.footer-contact { list-style: none; display: grid; gap: 16px; }
.footer-contact li { font-size: .94rem; color: var(--text-dim); }
.footer-contact .mono-label { margin-bottom: 4px; }
.footer-contact a:hover { color: var(--brand-blue-2); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; flex-wrap: wrap; gap: 10px; }
.footer-bottom span { font-size: .82rem; color: var(--text-mute); }
.footer-est { font-family: var(--font-mono); letter-spacing: .12em; }
.footer-credit { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: .68rem !important; opacity: .75; }
.footer-credit a { color: inherit; text-decoration: none; }
.footer-credit a:hover { color: var(--brand-blue-2); }

/* ------------------------------------------------------------------ *
   SCROLL REVEAL
 * ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-mute); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ------------------------------------------------------------------ *
   RESPONSIVE
 * ------------------------------------------------------------------ */
@media (max-width: 980px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .cards-grid, .projects-grid { grid-template-columns: repeat(2,1fr); }
    .detail-grid, .split, .contact-grid, .table-cols { grid-template-columns: 1fr; gap: 32px; }
    .split.reverse .split-visual { order: 0; }
    .spec-sheet { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        background: var(--bg-2); padding: 90px 24px 24px; gap: 4px;
        transform: translateX(100%); transition: transform .35s var(--ease);
        border-left: 1px solid var(--line);
    }
    .site-nav.open { transform: none; }
    .site-nav a { padding: 14px 16px; font-size: 1rem; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
    .cards-grid, .projects-grid, .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .brand-text { display: none; }
}

/* ------------------------------------------------------------------ *
   ACCESSIBILITY
 * ------------------------------------------------------------------ */
:focus-visible { outline: 2px solid var(--brand-blue-2); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--brand-blue); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 16px; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ *
   TEAM (Our Team) + ASSETS (Equipment) — public pages
 * ------------------------------------------------------------------ */
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.team-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .3s var(--ease),border-color .3s}
.team-card:hover{transform:translateY(-6px);border-color:var(--line-strong)}
.team-photo{aspect-ratio:1;overflow:hidden;background:var(--bg-2)}
.team-photo img,.team-photo .placeholder-svg{width:100%;height:100%;object-fit:cover}
.team-body{padding:20px 22px}
.team-name{font-size:1.15rem;margin-bottom:4px}
.team-role{color:var(--brand-blue-2);font-size:.9rem;font-weight:500}
.team-dept{display:inline-block;margin-top:8px;font-family:var(--font-mono);font-size:.64rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-mute);border:1px solid var(--line);padding:3px 9px;border-radius:5px}
.team-bio{color:var(--text-dim);font-size:.9rem;margin-top:12px}

.assets-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.asset-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .3s var(--ease),border-color .3s}
.asset-card:hover{transform:translateY(-6px);border-color:var(--line-strong)}
.asset-media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--bg-2)}
.asset-media img,.asset-media .placeholder-svg{width:100%;height:100%;object-fit:cover}
.asset-qty{position:absolute;top:12px;right:12px;background:var(--brand-blue);color:#fff;font-family:var(--font-display);font-weight:600;padding:6px 14px;border-radius:8px;font-size:1rem;box-shadow:0 8px 20px -8px var(--brand-blue)}
.asset-body{padding:20px 22px}
.asset-cat{font-family:var(--font-mono);font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;color:var(--brand-blue-2)}
.asset-name{font-size:1.2rem;margin:6px 0 8px}
.asset-desc{color:var(--text-dim);font-size:.92rem}

@media(max-width:980px){.team-grid{grid-template-columns:repeat(3,1fr)}.assets-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.team-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.team-grid,.assets-grid{grid-template-columns:1fr}}

/* ---- Editable page image (Information Update) ---- */
.split-visual .editable-img{width:100%;height:100%;object-fit:cover;border-radius:var(--radius);display:block;border:1px solid var(--line)}

/* ---- Floating WhatsApp contact button (all public pages) ---- */
.wa-float{position:fixed;right:22px;bottom:22px;z-index:900;width:56px;height:56px;display:flex;align-items:center;justify-content:center;
    background:#25d366;color:#fff;border-radius:50%;box-shadow:0 10px 26px -6px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08);
    transition:transform .25s var(--ease),box-shadow .25s;text-decoration:none}
.wa-float:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 16px 34px -8px rgba(37,211,102,.6)}
.wa-float:focus-visible{outline:3px solid #fff;outline-offset:3px}
.wa-float svg{display:block}
@media(max-width:520px){.wa-float{right:16px;bottom:16px;width:52px;height:52px}}

/* ---- Uploaded-image backgrounds (transparent-PNG / product-photo friendly) ----
   A solid surface behind every uploaded image so transparent PNGs blend into
   the card (no checkerboard / grid show-through) and product shots sit on a
   clean tile. Owner picks the surface in /admin > Settings > Image background. */
body { --img-surface: var(--bg-2); }                 /* default: dark card */
body.imbg-dark  { --img-surface: var(--bg-2); }
body.imbg-white { --img-surface: #ffffff; }
body.imbg-auto  { --img-surface: #eef1f5; }          /* soft neutral tile */
.project-media, .asset-media, .team-photo, .gallery-grid img, .detail-cover {
    background: var(--img-surface);
}
/* Product shots (equipment/assets): show the whole item, centred + padded,
   never cropped or stretched. */
.asset-media img { object-fit: contain; padding: 14px; }
@media (max-width: 520px){ .asset-media img { padding: 10px; } }
