/* ==========================================================================
   JDH Contracting — main stylesheet
   Brand: navy #042556, green #278445
   ========================================================================== */

:root {
    --navy: #042556;
    --navy-700: #0a3272;
    --navy-900: #021634;
    --green: #278445;
    --green-600: #1f6d38;
    --green-100: #e6f3ea;
    --ink: #13213a;
    --muted: #5b6678;
    --line: #e2e7ef;
    --bg: #ffffff;
    --bg-alt: #f3f6fa;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 6px 24px rgba(4, 37, 86, .08);
    --shadow-lg: 0 18px 48px rgba(4, 37, 86, .16);
    --font-head: 'Barlow', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.15em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.text-accent { color: #5fd07f; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center-block { text-align: center; margin-top: 40px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.6em; border-radius: 6px; border: 2px solid transparent;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
    cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-600); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-whatsapp { background: #25d366; color: #fff; margin-top: 12px; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn-block { width: 100%; }

.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.eyebrow-light { color: #7ee29a; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }
.section-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; text-align: left; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-900); color: #c9d4e6; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar-items { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar a, .topbar span { color: #c9d4e6; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand img { height: 62px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav > ul > li > a {
    display: flex; align-items: center; gap: 4px; padding: 10px 12px;
    font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy); position: relative;
}
.main-nav > ul > li > a::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--green);
    transform: scaleX(0); transition: transform .2s ease; transform-origin: left;
}
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.active::after { transform: scaleX(1); }
.main-nav > ul > li > a.active { color: var(--green); }
.chev { width: .9em; height: .9em; }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: 100%; left: -10px; min-width: 330px; list-style: none;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; border-top: 3px solid var(--green);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; color: var(--ink); font-size: .95rem; }
.dropdown a .icon { color: var(--green); }
.dropdown a:hover { background: var(--bg-alt); color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; min-height: clamp(520px, 78vh, 720px); display: flex; align-items: center;
    background: linear-gradient(100deg, rgba(2,22,52,.94) 0%, rgba(4,37,86,.82) 45%, rgba(4,37,86,.25) 100%), var(--hero-img) center/cover no-repeat;
}
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--green), #5fd07f, var(--green)); }
.hero-inner { padding: 80px 20px; }
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { color: #d7e1f0; font-size: 1.2rem; margin-bottom: 32px; }
.hero .eyebrow { color: #7ee29a; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.error-page .hero-actions { justify-content: center; }

.page-hero {
    color: #fff; padding: 90px 0 70px;
    background: linear-gradient(100deg, rgba(2,22,52,.93) 0%, rgba(4,37,86,.78) 60%, rgba(4,37,86,.5) 100%), var(--hero-img) center/cover no-repeat;
    border-bottom: 5px solid var(--green);
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #d7e1f0; max-width: 680px; font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; margin-bottom: 16px; color: #aebbd2; }
.breadcrumb a { color: #7ee29a; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Trust bar ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; gap: 32px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.trust-label { margin: 0; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--muted); }
.trust-inner ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.trust-inner li { display: flex; flex-direction: column; padding: 8px 20px; border-left: 3px solid var(--green); }
.trust-inner li strong { font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; }
.trust-inner li span { font-size: .85rem; color: var(--muted); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; }
.media-badge {
    position: absolute; right: -18px; bottom: 28px; background: var(--green); color: #fff;
    padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 190px;
}
.media-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.media-badge span { font-size: .85rem; }

.check-list { list-style: none; margin: 20px 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 3px; stroke-width: 3; }
.check-list-cols { grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 0; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.service-card-img { aspect-ratio: 16/10; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 0 22px 22px; position: relative; flex: 1; display: flex; flex-direction: column; }
.service-card-body .service-icon { margin-top: -26px; margin-bottom: 14px; border: 4px solid #fff; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { font-size: .92rem; color: var(--muted); flex: 1; }
.service-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px;
    background: var(--navy); color: #fff;
}
.service-icon .icon { width: 26px; height: 26px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; color: var(--green); }

/* Services list page */
.service-list { display: grid; gap: 28px; }
.service-row { display: grid; grid-template-columns: 380px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s; }
.service-row:hover { box-shadow: var(--shadow-lg); }
.service-row-img { position: relative; display: block; min-height: 240px; }
.service-row-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-num { position: absolute; left: 0; top: 0; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; padding: 10px 16px; border-bottom-right-radius: var(--radius); }
.service-row-body { padding: 32px 36px; }
.service-row-body h3 { font-size: 1.5rem; }
.service-row-body p { color: var(--muted); }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill-list li { background: var(--green-100); color: var(--green-600); font-size: .85rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; }

/* Service detail */
.service-detail { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.scope-block { margin: 36px 0; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.scope-block:last-of-type { border-bottom: 0; }
.scope-block h2 { font-size: 1.5rem; padding-left: 14px; border-left: 4px solid var(--green); }
.service-aside { position: sticky; top: 110px; display: grid; gap: 24px; }
.aside-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px; }
.aside-nav { list-style: none; display: grid; gap: 4px; }
.aside-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .95rem; background: #fff; }
.aside-nav a .icon { color: var(--green); }
.aside-nav a:hover, .aside-nav a.active { background: var(--navy); color: #fff; }
.aside-nav a.active .icon, .aside-nav a:hover .icon { color: #7ee29a; }
.aside-cta { background: var(--navy); color: #d7e1f0; }
.aside-cta h3 { color: #fff; }
.aside-phone { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 600; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); color: #7ee29a; line-height: 1.1; }
.stat span { color: #c9d4e6; font-size: .95rem; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.project-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.project-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.project-card-body { padding: 20px 22px 24px; }
.project-card h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.project-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.tag { display: inline-block; background: var(--green-100); color: var(--green-600); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.filter-btn { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 18px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy); cursor: pointer; transition: all .2s; }
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.project-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.project-table th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; text-align: left; padding: 14px 16px; letter-spacing: .02em; }
.project-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.project-table tbody tr:nth-child(even) { background: #fafbfd; }
.project-table tbody tr:hover { background: var(--green-100); }
.project-table td:first-child { color: var(--muted); font-weight: 600; width: 44px; }
.project-table tr.is-hidden { display: none; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-sm { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.lightbox { position: fixed; inset: 0; background: rgba(2,22,52,.92); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- HSE strip ---------- */
.section-dark { color: #d7e1f0; }
.section-dark h2 { color: #fff; }
.hse-strip { background: linear-gradient(100deg, rgba(2,22,52,.95), rgba(4,37,86,.88)), var(--hero-img) center/cover no-repeat; }
.split-center { align-items: center; }
.hse-mini { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hse-mini li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: #fff; }
.hse-mini .icon { width: 32px; height: 32px; color: #7ee29a; }

/* ---------- Logos ---------- */
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item { flex: 0 0 auto; min-width: 190px; height: 90px; display: flex; align-items: center; justify-content: center; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.logo-item img { max-height: 58px; width: auto; filter: grayscale(1); opacity: .8; transition: all .2s; }
.logo-item:hover img { filter: none; opacity: 1; }
.logo-item span { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; text-align: center; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

.group-title { margin: 40px 0 18px; font-size: 1.3rem; padding-left: 14px; border-left: 4px solid var(--green); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.client-card { height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all .2s; }
.client-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.client-card img { max-height: 70px; width: auto; }
.client-card span { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; }

/* ---------- Features / vision ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid-5 { grid-template-columns: repeat(5, 1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; transition: all .25s; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature .service-icon { margin-bottom: 18px; background: var(--green); }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); border-top: 4px solid var(--green); }
.vm-card .service-icon { margin-bottom: 18px; }
.vm-card p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.vm-vision { background: var(--navy); border-top-color: #7ee29a; }
.vm-vision h2 { color: #fff; }
.vm-vision p { color: #d7e1f0; }
.vm-vision .service-icon { background: var(--green); }

/* ---------- Credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cred-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.cred-label { color: var(--muted); font-size: .9rem; }
.cred-value { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); letter-spacing: .03em; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--green-600), var(--green)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #e3f5e8; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-accent { background: var(--navy); }
.cta-band .btn-accent:hover { background: var(--navy-900); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 22px; margin: 24px 0; }
.contact-list li { display: flex; gap: 16px; }
.contact-list strong { font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; }
.contact-list p { margin: 4px 0 0; color: var(--muted); }
.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; border-top: 4px solid var(--green); scroll-margin-top: 110px; }
.contact-form-wrap > p { color: var(--muted); }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fbfcfe; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(39,132,69,.15); background: #fff; }
.contact-form button { justify-self: start; }
.field-error { color: #c0392b; font-size: .85rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 500; }
.alert-success { background: var(--green-100); color: var(--green-600); }
.alert-error { background: #fdecea; color: #a93226; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.3); }

/* ---------- Prose / error ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }
.error-page { padding: 120px 0; }
.error-code { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); color: var(--green); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebbd2; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer-about img { height: 72px; width: auto; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--green); }
.footer-links, .footer-contact, .footer-reg { list-style: none; display: grid; gap: 9px; }
.footer-reg { gap: 4px; font-size: .85rem; color: #8797b3; }
.site-footer a { color: #aebbd2; }
.site-footer a:hover { color: #7ee29a; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #7ee29a; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-right: 80px; }

.whatsapp-float, .to-top {
    position: fixed; right: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s, opacity .2s;
}
.whatsapp-float { bottom: 20px; background: #25d366; }
.whatsapp-float .icon { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.to-top { bottom: 84px; background: var(--navy); opacity: 0; pointer-events: none; width: 44px; height: 44px; right: 24px; }
.to-top .icon { transform: rotate(180deg); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--green); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .feature-grid, .feature-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { gap: 14px; }
    .main-nav > ul > li > a { padding: 10px 8px; }
}

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-header { backdrop-filter: none; background: #fff; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 110px); background: #fff; flex-direction: column; align-items: stretch;
        padding: 16px 20px 32px; gap: 16px; overflow-y: auto; border-top: 1px solid var(--line);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }
    body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav-toggle .icon-open { display: none; }
    body.nav-open .nav-toggle .icon-close { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
    .main-nav > ul > li > a::after { display: none; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 4px 0 8px 8px; display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .has-dropdown.open .chev { transform: rotate(180deg); }
    .nav-cta { width: 100%; }

    .split, .service-detail, .contact-grid, .vm-grid { grid-template-columns: 1fr; gap: 40px; }
    .service-aside { position: static; }
    .service-row { grid-template-columns: 1fr; }
    .service-row-img { min-height: 220px; }
    .media-badge { right: 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .section { padding: 64px 0; }
}

@media (max-width: 720px) {
    .hide-sm { display: none !important; }
    .topbar-inner { justify-content: center; }
    .topbar-items { gap: 14px; font-size: .8rem; }
    .header-inner { min-height: 72px; }
    .brand img { height: 50px; }
    .feature-grid, .feature-grid-3, .feature-grid-5 { grid-template-columns: 1fr; }
}

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

@media (max-width: 720px) {
    .check-list-cols, .form-row { grid-template-columns: 1fr; }
    .gallery, .gallery-sm { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
    .contact-form-wrap, .vm-card { padding: 26px 20px; }
    .service-row-body { padding: 24px 20px; }
    .hse-mini { grid-template-columns: 1fr 1fr; }
    .trust-inner { gap: 12px; }
    .trust-inner li { padding: 4px 14px; }
    .cta-actions, .cta-actions .btn, .hero-actions .btn { width: 100%; }

    /* Project table becomes cards */
    .table-wrap { box-shadow: none; overflow: visible; }
    .project-table thead { display: none; }
    .project-table, .project-table tbody, .project-table tr, .project-table td { display: block; width: 100%; }
    .project-table tr { background: #fff !important; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 10px 4px; box-shadow: var(--shadow); }
    .project-table td { border: 0; padding: 6px 14px; display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
    .project-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
    .project-table td:first-child { width: auto; }
    .project-table tr.is-hidden { display: none; }
}
