/* =========================================================
   IMAD INFRA — Imadinfra Developers & Builders
   Reference-matched design system
   ========================================================= */
:root {
    --navy:        #0B2F6B;
    --navy-deep:   #08234F;
    --royal:       #174A91;
    --white:       #FFFFFF;
    --grey-bg:     #F4F7FB;
    --text:        #34445C;
    --gold:        #C79A45;
    --line:        #DDE6F2;

    --serif: 'Lora', Georgia, serif;
    --sans:  'Inter', 'Segoe UI', Arial, sans-serif;
    /* brand wordmark — Impact where installed (Windows), Anton (identical look) elsewhere */
    --wordmark: Impact, 'Anton', 'Haettenschweiler', 'Arial Narrow', sans-serif;

    --shadow-1: 0 1px 3px rgba(11, 47, 107, .08), 0 6px 18px rgba(11, 47, 107, .06);
    --shadow-2: 0 4px 10px rgba(11, 47, 107, .12), 0 14px 34px rgba(11, 47, 107, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container       { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-wide  { max-width: 1380px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 700; line-height: 1.18; }

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
    display: flex; align-items: center; gap: 12px;
    font: 600 12px/1 var(--sans);
    letter-spacing: .22em;
    color: var(--navy);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.eyebrow .dash { width: 34px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow-light { color: var(--navy); }

.section-title { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 15px/1 var(--sans);
    padding: 13px 22px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;
    white-space: nowrap;
}
.btn .arr { font-size: 15px; transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn-navy {
    background: var(--navy); color: var(--white);
    box-shadow: var(--shadow-1);
}
.btn-navy:hover { background: var(--royal); transform: translateY(-1px); box-shadow: var(--shadow-2); }

.btn-outline {
    background: transparent; color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.btn-outline.btn-sm { padding: 10px 16px; font-size: 13.5px; background: var(--white); }
.btn-outline.btn-sm:hover { background: var(--navy); }

.btn-white {
    background: var(--white); color: var(--navy);
    box-shadow: var(--shadow-1);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); background: #F2F6FC; }
.btn-white .wa { width: 20px; height: 20px; }
.btn-white .arr.navy { color: var(--navy); }

.btn-lg { padding: 15px 26px; font-size: 16px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(11, 47, 107, .10); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-badge { width: 52px; height: 52px; border-radius: 50%; }
.brand-text {
    font-family: var(--wordmark);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: .045em;
    color: var(--navy);
    transform: translateY(-1px);
}

.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-link {
    position: relative;
    font: 500 15px/1 var(--sans);
    color: var(--text);
    padding: 10px 0;
    transition: color .2s ease;
}
.nav-link::after {
    content: ""; position: absolute; left: 0; right: 100%;
    bottom: 2px; height: 2px; background: var(--gold);
    transition: right .25s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { right: 0; }
.nav-link.is-active { color: var(--navy); font-weight: 600; }
.nav-link.is-active::after { right: 0; }

.nav-mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.hamburger {
    display: none;
    width: 42px; height: 42px;
    background: none; border: 1.5px solid var(--line); border-radius: 8px;
    cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger .bar {
    width: 20px; height: 2px; background: var(--navy);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: min(620px, 88vh);
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-media, .hero-img { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }

/* soft light scrim on the left so headline stays readable, sky stays visible */
.hero-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg,
            rgba(247, 249, 252, .96) 0%,
            rgba(247, 249, 252, .88) 30%,
            rgba(247, 249, 252, .45) 55%,
            rgba(247, 249, 252, 0) 75%);
}
/* faint blueprint grid on the far left — echoes the logo badge graph lines */
.hero-scrim::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(11, 47, 107, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 47, 107, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, black 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 60%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 680px; padding: 56px 0; }

.hero-title {
    font-size: clamp(2.3rem, 4.6vw, 3.7rem);
    margin: 10px 0 18px;
    letter-spacing: -.01em;
}
.hero-sub {
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    color: var(--text);
    max-width: 46ch;
    margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-trust {
    display: flex; flex-wrap: wrap; gap: 10px 26px;
    font: 500 13.5px/1.4 var(--sans);
    color: var(--navy);
}
.hero-trust .tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin-right: 7px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-size: 11px; font-weight: 700;
    vertical-align: -3px;
}

/* =========================================================
   SERVICES STRIP
   ========================================================= */
.services-strip {
    background: var(--grey-bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
}
.strip-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.strip-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px;
    border-left: 1px solid var(--line);
    transition: background .25s ease, transform .25s ease;
}
.strip-item:first-child { border-left: 0; }
.strip-item:hover { background: var(--white); transform: translateY(-2px); }

.strip-icon {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    color: var(--navy);
}
.strip-icon svg { width: 100%; height: 100%; }

.strip-body strong {
    display: block;
    font: 600 13.5px/1.3 var(--sans);
    color: var(--navy);
    margin-bottom: 4px;
}
.strip-body small {
    display: block;
    font: 400 12px/1.45 var(--sans);
    color: #5D6E88;
}

/* =========================================================
   ABOUT + RECENT PROJECTS BAND
   ========================================================= */
.midband { padding: 76px 0 84px; background: var(--white); }
.midband-grid {
    display: grid;
    grid-template-columns: minmax(300px, 4fr) minmax(0, 7.2fr);
    gap: 56px;
    align-items: start;
}

.about { max-width: 460px; }
.about .section-title { margin-bottom: 18px; }
.about-text { font-size: 15px; margin-bottom: 16px; }
.about .btn { margin-top: 8px; }

.projects-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}
.projects-head .eyebrow { margin-bottom: 0; }
.projects-note {
    font-size: 12.5px; color: #6B7A93;
    margin-bottom: 22px; max-width: 60ch;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.project-card {
    background: var(--navy);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }

.project-media { aspect-ratio: 4 / 3; overflow: hidden; }
.project-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.project-card:hover .project-media img { transform: scale(1.05); }

.project-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    color: var(--white);
}
.p-icon {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    opacity: .95;
}
.p-icon svg { width: 100%; height: 100%; }
.p-label { flex: 1; min-width: 0; }
.p-label strong {
    display: block;
    font: 600 14px/1.3 var(--sans);
}
.p-label small {
    display: block;
    font: 400 12px/1.3 var(--sans);
    opacity: .75;
}
.p-arrow {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.3px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    font-size: 14px;
    transition: background .25s ease, transform .25s ease;
}
.p-arrow:hover { background: var(--gold); border-color: var(--gold); transform: translateX(3px); }

/* =========================================================
   VISION / MISSION / VALUES  (navy band, blueprint grid)
   ========================================================= */
.vmv {
    position: relative;
    background:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    background-size: 44px 44px, 44px 44px, cover;
    color: var(--white);
    padding: 34px 0;
}
.vmv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 34px;
    align-items: center;
}
.vmv-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}
.vmv-item:first-child { border-left: 0; padding-left: 0; }

.vmv-icon { flex: 0 0 auto; width: 40px; height: 40px; color: var(--white); opacity: .95; }
.vmv-icon svg { width: 100%; height: 100%; }

.vmv-item h3 {
    color: var(--white);
    font-size: 1.08rem;
    margin-bottom: 4px;
}
.vmv-item p { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.values-line .sep { color: var(--gold); padding: 0 4px; }

.vmv-cta { justify-self: end; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--grey-bg); padding: 84px 0 92px; }
.contact-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.contact-head .eyebrow { justify-content: center; }
.contact-sub { margin-top: 12px; font-size: 15px; }

.contact-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 34px;
    align-items: start;
}

.quote-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font: 600 13px/1 var(--sans);
    color: var(--navy);
    margin-bottom: 7px;
}
.field label em { font-style: normal; font-weight: 400; color: #7A8AA3; }
.field input, .field select, .field textarea {
    width: 100%;
    font: 400 14.5px/1.5 var(--sans);
    color: var(--text);
    background: #FBFCFE;
    border: 1.4px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(23, 74, 145, .12);
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid {
    border-color: #B3423A;
    box-shadow: 0 0 0 3px rgba(179, 66, 58, .10);
}
.err { display: block; font: 400 12px/1.4 var(--sans); color: #B3423A; min-height: 0; margin-top: 4px; }
.form-note { font-size: 12px; color: #7A8AA3; margin-top: 12px; }

/* honeypot — visually removed, still in the DOM for bots */
.hp-field { position: absolute; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* AJAX status banner */
.form-status {
    display: block;
    font: 500 14px/1.5 var(--sans);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
}
.form-status.is-sending { background: #EEF3FB; color: var(--navy); }
.form-status.is-success { background: #EAF7EF; color: #1E6B37; border: 1px solid #BFE5CB; }
.form-status.is-error   { background: #FBEDED; color: #B3423A; border: 1px solid #EAC2BE; }

.contact-info { display: grid; gap: 14px; }
.info-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-1);
    transition: transform .25s ease;
}
.info-card:hover { transform: translateY(-2px); }
.info-icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(11, 47, 107, .07);
    color: var(--navy);
    border-radius: 10px;
}
.info-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-family: var(--sans); font-size: 14.5px; margin-bottom: 2px; }
.info-card p { font-size: 14px; }
.info-card small { color: #7A8AA3; font-size: 12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        var(--navy-deep);
    background-size: 44px 44px, 44px 44px, cover;
    color: rgba(255, 255, 255, .8);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding: 54px 24px 40px;
}
.f-brand { display: flex; gap: 16px; align-items: flex-start; }
.f-badge { width: 64px; height: 64px; border-radius: 50%; }
.f-name {
    font-family: var(--wordmark);
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: .045em;
    color: var(--white);
    margin-bottom: 8px;
}
.f-tag { font-size: 13.5px; line-height: 1.6; }

.f-col h4 {
    font-family: var(--sans);
    font-size: 13px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.f-col ul li { margin-bottom: 9px; font-size: 14px; }
.f-col ul a { transition: color .2s ease; }
.f-col ul a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0;
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, .55);
}
.foot-sep { padding: 0 8px; color: var(--gold); }
.foot-admin { text-decoration: none; opacity: .75; transition: opacity .2s ease; }
.foot-admin:hover { opacity: 1; text-decoration: underline; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
/* reveal is applied only when JS is running — without JS all content stays visible */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .strip-grid { grid-template-columns: repeat(4, 1fr); }
    .strip-item { border-top: 1px solid var(--line); }
    .strip-grid .strip-item:nth-child(-n+4) { border-top: 0; }
    .strip-grid .strip-item:nth-child(5) { border-left: 0; }
    .vmv-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
    .vmv-item { padding-left: 0; border-left: 0; }
    .vmv-cta { justify-self: start; }
}

@media (max-width: 1024px) {
    .midband-grid { grid-template-columns: 1fr; gap: 56px; }
    .about { max-width: 640px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    /* --- mobile navigation --- */
    .hamburger { display: inline-flex; }
    .header-cta { display: none; }

    .main-nav {
        position: fixed;
        top: 76px; left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(11, 47, 107, .14);
        padding: 10px 24px 24px;
        display: none;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
    .main-nav.is-open { display: block; }

    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-list li:last-child { border-bottom: 0; }
    .nav-link { display: block; padding: 14px 2px; }
    .nav-link::after { display: none; }

    .nav-mobile-cta { display: inline-flex; margin-top: 16px; width: 100%; justify-content: center; }

    /* --- hero --- */
    .hero { min-height: 0; }
    .hero-scrim {
        background: linear-gradient(180deg,
            rgba(247, 249, 252, .95) 0%,
            rgba(247, 249, 252, .86) 55%,
            rgba(247, 249, 252, .38) 100%);
    }
    .hero-scrim::before {
        mask-image: linear-gradient(180deg, black 0%, transparent 70%);
        -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 70%);
    }
    .hero-img { object-position: 62% center; }
    .hero-copy { padding: 60px 0 340px; } /* leaves the building photo visible below the copy */

    /* --- sections --- */
    .strip-grid { grid-template-columns: 1fr 1fr; }
    .strip-grid .strip-item { border-left: 0; }
    .strip-grid .strip-item:nth-child(2n) { border-left: 1px solid var(--line); }
    .strip-grid .strip-item:nth-child(-n+4) { border-top: 0; }
    .strip-grid .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }

    .project-grid { grid-template-columns: 1fr 1fr; }
    .projects-head { flex-direction: column; align-items: flex-start; }

    .vmv-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .container, .container-wide { padding: 0 18px; }
    .header-inner { height: 66px; }
    .main-nav { top: 66px; max-height: calc(100vh - 66px); }
    .brand-badge { width: 42px; height: 42px; }
    .brand-text { font-size: 1.45rem; }

    .hero-copy { padding: 44px 0 300px; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

    .strip-grid { grid-template-columns: 1fr; }
    .strip-grid .strip-item { border-left: 0 !important; border-top: 1px solid var(--line); }
    .strip-grid .strip-item:first-child { border-top: 0; }

    .project-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .quote-form { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
}
