:root {
    --red: #e31e24;
    --red-dark: #b8141a;
    --dark: #111214;
    --dark-2: #1c1d21;
    --navy: #0b1726;
    --text: #555a64;
    --light: #f5f6f8;
    --white: #ffffff;
    --heading: 'Teko', sans-serif;
    --body: 'Poppins', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--dark); line-height: 1.05; margin: 0 0 12px; font-weight: 600; letter-spacing: .5px; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 34px;
    font-family: var(--heading); font-size: 20px; letter-spacing: 2px; text-transform: uppercase;
    border: 2px solid transparent; cursor: pointer; transition: all .25s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: rgba(0, 0, 0, .25); color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--white); color: var(--dark); }
.btn-sm { padding: 8px 22px; font-size: 18px; }

/* Shared section bits */
.section { padding: 100px 0; }
.eyebrow {
    display: inline-block; margin-bottom: 8px;
    font-family: var(--heading); font-size: 22px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--red);
}
.section-title { font-size: clamp(36px, 5vw, 54px); text-transform: uppercase; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.divider { display: block; width: 60px; height: 3px; background: var(--red); margin: 18px auto; }

/* Top bar */
.topbar { background: var(--dark); color: #d6d8dc; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 16px; }
.topbar p { margin: 0; }
.topbar p span { color: var(--red); font-weight: 500; }
.social { display: flex; gap: 8px; }
.social a {
    display: grid; place-items: center; width: 34px; height: 34px;
    border: 1px solid rgba(255, 255, 255, .2); color: var(--white); transition: background .2s;
}
.social a:hover { background: var(--red); border-color: var(--red); }
.social .icon { width: 15px; height: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 94px; gap: 24px; }
.brand img { height: 64px; width: auto; }

.main-nav > ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
    display: flex; align-items: center; gap: 6px; padding: 34px 0;
    font-family: var(--heading); font-size: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark);
    position: relative;
}
.main-nav > ul > li > a::after {
    content: ''; position: absolute; left: 0; bottom: 24px; width: 0; height: 2px; background: var(--red); transition: width .25s;
}
.main-nav > ul > li.active > a,
.main-nav > ul > li > a:hover { color: var(--red); }
.main-nav > ul > li.active > a::after,
.main-nav > ul > li > a:hover::after { width: 100%; }
.caret { width: 16px; height: 16px; }

.dropdown {
    position: absolute; top: 100%; left: -20px; min-width: 240px;
    list-style: none; margin: 0; padding: 10px 0; background: var(--white);
    border-top: 3px solid var(--red); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 8px 22px; font-size: 14px; color: var(--text); }
.dropdown a:hover { color: var(--red); padding-left: 28px; }

.header-info { display: flex; align-items: center; gap: 14px; }
.header-info-icon { display: grid; place-items: center; width: 56px; height: 56px; background: var(--red); color: var(--white); }
.header-info-icon .icon { width: 24px; height: 24px; }
.header-info strong { display: block; font-family: var(--heading); font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--dark); line-height: 1; }
.header-info a { font-size: 13px; color: #8a8f98; }
.header-info a:hover { color: var(--red); }

.nav-toggle { display: none; background: var(--red); color: var(--white); border: 0; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* Hero */
.hero, .page-banner {
    position: relative; color: var(--white); text-align: center;
    /* Banner photo for inner pages */
    background: url('../../images/gallery/excavators-sand-filling.jpg') center / cover no-repeat, linear-gradient(135deg, #0b1726 0%, #12324f 50%, #0b1726 100%);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 16, .55), rgba(10, 12, 16, .75)); }
.hero-content { position: relative; min-height: 680px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 100px 16px 180px; }
.hero h1, .hero .hero-title { color: var(--white); font-size: clamp(46px, 7vw, 86px); text-transform: uppercase; margin: 0; }
.hero p { max-width: 600px; font-size: 16px; color: #e5e7eb; }
.hero .eyebrow { background: var(--red); color: var(--white); padding: 4px 16px 2px; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 14px; }

/* Hero slider */
.hero { background: var(--navy); overflow: hidden; }
.hero-slides { position: relative; min-height: 680px; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-slide .hero-content > * { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.hero-slide.active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.active .hero-content > :nth-child(2) { transition-delay: .15s; }
.hero-slide.active .hero-content > :nth-child(3) { transition-delay: .3s; }
.hero-slide.active .hero-content > :nth-child(4) { transition-delay: .4s; }
.hero-slide.active .hero-content > :nth-child(5) { transition-delay: .5s; }

.hero-arrow {
    position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
    display: grid; place-items: center; width: 54px; height: 54px;
    background: rgba(0, 0, 0, .35); color: var(--white); border: 1px solid rgba(255, 255, 255, .35);
    cursor: pointer; transition: background .25s, border-color .25s;
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow .icon { width: 22px; height: 22px; }
.hero-prev { left: 24px; }
.hero-prev .icon { transform: rotate(180deg); }
.hero-next { right: 24px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 136px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid var(--white); background: transparent; cursor: pointer; transition: all .25s; }
.hero-dots button.active { background: var(--red); border-color: var(--red); width: 34px; }

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide .hero-content > * { transition: none; }
}

/* Feature cards overlapping hero */
.features { position: relative; margin-top: -110px; z-index: 2; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow); }
.feature-card { background: var(--white); padding: 40px 34px; transition: transform .25s; }
.feature-card-accent { background: var(--red); color: rgba(255, 255, 255, .9); }
.feature-card-accent h3, .feature-card-accent .feature-icon { color: var(--white); }
.feature-card h3 { font-size: 30px; text-transform: uppercase; }
.feature-card p { margin: 0; }
.feature-icon { display: inline-block; color: var(--red); margin-bottom: 14px; }
.feature-icon .icon { width: 46px; height: 46px; stroke-width: 1.5; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-image {
    aspect-ratio: 4 / 5; width: 100%;
    /* Drop an image at images/about.jpg to replace the gradient fallback */
    background: url('../../images/about.jpg') center / cover no-repeat, linear-gradient(160deg, #1c3a5a, #0b1726);
    border-left: 8px solid var(--red);
}
.about-badge {
    position: absolute; right: -24px; bottom: 40px; background: var(--dark); color: var(--white);
    padding: 26px 30px; display: flex; align-items: center; gap: 14px;
}
.about-badge strong { font-family: var(--heading); font-size: 64px; line-height: 1; color: var(--red); }
.about-badge span { font-family: var(--heading); font-size: 22px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.1; }
.check-list { list-style: none; padding: 0; margin: 0 0 30px; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--dark); font-weight: 500; }
.check-list .icon { width: 22px; height: 22px; padding: 4px; background: var(--red); color: var(--white); border-radius: 50%; stroke-width: 3; }

/* Services */
.services-section, .values { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: var(--white); padding: 44px 36px; position: relative; overflow: hidden;
    border-bottom: 3px solid transparent; transition: all .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-bottom-color: var(--red); }
.service-icon { display: grid; place-items: center; width: 74px; height: 74px; background: rgba(227, 30, 36, .08); color: var(--red); margin-bottom: 22px; transition: all .3s; }
.service-icon .icon { width: 36px; height: 36px; stroke-width: 1.6; }
.service-card:hover .service-icon { background: var(--red); color: var(--white); }
.service-card h3 { font-size: 30px; text-transform: uppercase; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--heading); font-size: 19px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); }
.read-more:hover { color: var(--red); }

/* Stats */
.stats { background: linear-gradient(rgba(17, 18, 20, .92), rgba(17, 18, 20, .92)), url('../../images/gallery/dredge-discharge-point.jpg') center / cover fixed; padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat strong { display: block; font-family: var(--heading); font-size: 72px; line-height: 1; color: var(--red); font-weight: 600; }
.stat > span { font-family: var(--heading); font-size: 22px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; }
.why-items { display: grid; gap: 24px; }
.why-item { display: flex; gap: 22px; padding: 26px; border: 1px solid #e6e8eb; transition: border-color .25s, box-shadow .25s; }
.why-item:hover { border-color: var(--red); box-shadow: var(--shadow); }
.why-num { font-family: var(--heading); font-size: 50px; line-height: 1; color: var(--red); }
.why-item h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.why-item p { margin: 0; }

/* CTA */
.cta { background: var(--red); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { color: var(--white); font-size: clamp(32px, 4vw, 44px); text-transform: uppercase; margin-bottom: 6px; }
.cta p { color: rgba(255, 255, 255, .9); margin: 0; }

/* Inner page banner */
.page-banner-inner { position: relative; padding: 110px 16px; }
.page-banner h1 { color: var(--white); font-size: clamp(46px, 6vw, 72px); text-transform: uppercase; margin-bottom: 4px; }
.breadcrumb { margin: 0; font-size: 15px; color: #d1d5db; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); margin: 0 8px; }

/* Services page list */
.service-list { display: grid; gap: 22px; }
.service-row {
    display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 28px;
    padding: 30px; background: var(--light); border-left: 4px solid var(--red); scroll-margin-top: 120px;
}
.service-row .service-icon { margin: 0; }
.service-row h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 4px; }
.service-row p { margin: 0; }
.service-row-num { font-family: var(--heading); font-size: 48px; color: #d4d7dc; line-height: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.contact-items { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.contact-items li { display: flex; gap: 18px; align-items: center; }
.contact-items strong { display: block; font-family: var(--heading); font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--dark); line-height: 1.1; }
.contact-items a:hover { color: var(--red); }
.contact-icon { display: grid; place-items: center; width: 56px; height: 56px; background: var(--red); color: var(--white); flex-shrink: 0; }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-form-wrap { background: var(--light); padding: 44px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label span { display: block; font-size: 13px; font-weight: 500; color: var(--dark); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 13px 16px; font: inherit; color: var(--dark);
    background: var(--white); border: 1px solid #dfe2e6; outline: none; transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); }
.contact-form button { justify-self: start; }
.field-error { display: block; color: var(--red); font-size: 13px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #e7f6ec; color: #1d6b3a; border-left: 4px solid #2f9e5a; }
.alert-error { background: #fdecec; color: var(--red-dark); border-left: 4px solid var(--red); }

/* Top bar contact items */
.topbar p { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item .icon { color: var(--red); }
a.topbar-item:hover { color: var(--white); }

.section-head p { margin-top: 10px; }
.section-foot { text-align: center; margin-top: 50px; }

/* Home services: all seven plus a call-to-action card */
.services-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.services-grid-4 .service-card { padding: 36px 28px; }
.services-grid-4 .service-card h3 { font-size: 26px; }
.service-card-cta { background: var(--red); color: rgba(255, 255, 255, .9); }
.service-card-cta h3, .service-card-cta .read-more { color: var(--white); }
.service-card-cta .service-icon { background: rgba(255, 255, 255, .15); color: var(--white); }
.service-card-cta:hover { border-bottom-color: var(--dark); }

/* Services page intro (from the company profile) */
.services-intro { max-width: 860px; margin: -10px auto 50px; text-align: center; }
.services-scope { font-weight: 600; color: var(--dark); margin: 0; }

/* Vision / Mission / Core Values rings (home page) */
.vmv-section { background: var(--light); }
.vmv-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: center; }
.vmv-intro p { max-width: 460px; }
.vmv-wrap { container-type: inline-size; width: 100%; max-width: 620px; margin: 0 auto; }
.vmv { position: relative; aspect-ratio: 620 / 840; }
.vmv-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vmv-ring-vision { stroke: var(--red); fill: var(--red); }
.vmv-ring-mission { stroke: #6f7d90; fill: #6f7d90; }
.vmv-ring-values { stroke: #2e2f33; fill: #2e2f33; }
.vmv-item { display: contents; }
.vmv-text {
    position: absolute; width: 36%; height: 32%;
    display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.vmv-text h3 { font-family: var(--body); font-size: 2.5cqw; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--red); margin: 0 0 1.2cqw; }
.vmv-text p { font-size: 1.95cqw; line-height: 1.45; font-weight: 600; color: var(--dark); margin: 0; }
.vmv-vision .vmv-text  { left: 46.5%; top: 4.8%; }
.vmv-mission .vmv-text { left: 18.3%; top: 34%; }
.vmv-values .vmv-text  { left: 46.5%; top: 63.2%; }
.vmv-label {
    position: absolute; transform: translateY(-50%);
    font-family: var(--heading); font-weight: 700; line-height: .9; text-transform: uppercase; color: var(--dark);
}
.vmv-vision .vmv-label  { left: 0; top: 21%; font-size: 12cqw; }
.vmv-mission .vmv-label { right: 0; top: 50%; font-size: 11cqw; }
.vmv-values .vmv-label  { left: 0; top: 80%; font-size: 7.2cqw; }

/* Small screens: the ring text gets too small, so fall back to stacked cards in the same colours */
@container (max-width: 480px) {
    .vmv { aspect-ratio: auto; display: grid; gap: 18px; }
    .vmv-rings { display: none; }
    .vmv-item { display: block; position: relative; padding: 26px 22px 24px; background: var(--white); border-left: 6px solid var(--red); box-shadow: var(--shadow); }
    .vmv-mission { border-left-color: #6f7d90; }
    .vmv-values { border-left-color: #2e2f33; }
    .vmv-label, .vmv-text { position: static; transform: none; width: auto; height: auto; text-align: left; }
    .vmv .vmv-label { display: block; font-size: 40px; margin-bottom: 8px; }
    .vmv-text h3 { font-size: 13px; margin-bottom: 6px; }
    .vmv-text p { font-size: 14px; font-weight: 500; color: var(--text); }
}

/* Health, safety & environment (home page) */
.hse-section { background: var(--dark); color: #b9bdc4; }
.hse-section .section-title { color: var(--white); font-size: clamp(32px, 4vw, 48px); }
.hse-top { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 60px; }
.hse-media { position: relative; padding: 0 0 22% 0; }
.hse-media img { display: block; width: 100%; object-fit: cover; border: 4px solid var(--red); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.hse-img-main { aspect-ratio: 5 / 4; width: 82% !important; }
.hse-img-sub { position: absolute; right: 0; bottom: 0; width: 64% !important; aspect-ratio: 16 / 10; }
.hse-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; }
.hse-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 20px 8px 10px; background: rgba(255, 255, 255, .06); border-left: 3px solid var(--red); font-family: var(--heading); font-size: 24px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); }
.hse-steps span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--red); font-size: 18px; letter-spacing: 0; }
.hse-cards { display: grid; grid-template-columns: 1fr 1.35fr; gap: 30px; }
.hse-card { position: relative; padding: 40px 34px 34px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-top: 4px solid var(--red); }
.hse-card h3 { color: var(--white); font-size: 30px; text-transform: uppercase; }
.hse-card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; background: var(--red); color: var(--white); }
.hse-card-icon .icon { width: 28px; height: 28px; }
.hse-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.hse-list li { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 500; }
.hse-list .icon { width: 20px; height: 20px; padding: 3px; background: var(--red); color: var(--white); border-radius: 50%; stroke-width: 3; }
.hse-note { margin: 0; font-size: 14px; font-style: italic; }
.hse-table-wrap { overflow-x: auto; }
.hse-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hse-table th { text-align: left; padding: 12px 14px; background: rgba(255, 255, 255, .08); color: var(--white); font-family: var(--heading); font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.hse-table td { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: top; }
.hse-table td:nth-child(2) { color: var(--white); }
.risk { display: inline-block; padding: 3px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--white); }
.risk-low { background: #2f9e5a; }
.risk-medium { background: #d98a12; }
.risk-high { background: var(--red); }

/* Company profile page */
.profile-toc { position: sticky; top: 94px; z-index: 50; background: var(--dark); }
.profile-toc-inner { display: flex; justify-content: center; flex-wrap: wrap; }
.profile-toc a { display: flex; align-items: center; gap: 10px; padding: 16px 28px; font-family: var(--heading); font-size: 20px; letter-spacing: 1.5px; text-transform: uppercase; color: #d6d8dc; border-bottom: 3px solid transparent; }
.profile-toc a span { color: var(--red); }
.profile-toc a:hover { color: var(--white); border-bottom-color: var(--red); }
#executive-diary, #introduction, #history { scroll-margin-top: 150px; }

.profile-head { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; }
.profile-num { font-family: var(--heading); font-size: clamp(80px, 10vw, 130px); font-weight: 700; line-height: .8; color: var(--red); }
.profile-head .section-title { margin: 0; }
.profile-head .eyebrow { margin-bottom: 0; }
.profile-head::after { content: ''; flex: 1; height: 3px; margin-left: 10px; background: linear-gradient(90deg, var(--red) 0 120px, #e6e8eb 120px); align-self: center; }
.profile-head-light .section-title { color: var(--white); }
.profile-head-light::after { background: linear-gradient(90deg, var(--red) 0 120px, rgba(255, 255, 255, .12) 120px); }

.diary-section { background: var(--light); }
.diary-card { position: relative; padding: 60px 60px 44px; background: var(--white); box-shadow: var(--shadow); border-top: 5px solid var(--red); overflow: hidden; }
.diary-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 340px; height: 340px; background: url('../../images/logo.png') center / contain no-repeat; opacity: .05; pointer-events: none; }
.diary-quote { position: absolute; top: 4px; left: 26px; font-family: Georgia, serif; font-size: 140px; line-height: 1; color: var(--red); opacity: .15; }
.diary-columns { position: relative; columns: 2; column-gap: 50px; }
.diary-columns p { break-inside: avoid; text-align: justify; hyphens: auto; }
.diary-lead::first-letter { float: left; font-family: var(--heading); font-size: 76px; line-height: .8; padding: 6px 10px 0 0; color: var(--red); font-weight: 700; }
.diary-pull { position: relative; margin: 20px 0 36px; padding: 28px 34px; background: var(--dark); border-left: 6px solid var(--red); }
.diary-pull p { margin: 0; font-family: var(--heading); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: .3px; color: var(--white); }
.diary-sign { display: flex; align-items: center; gap: 20px; padding-top: 26px; border-top: 1px solid #e6e8eb; }
.diary-sign img { height: 56px; width: auto; }
.diary-sign p { margin: 0; font-style: italic; }
.diary-sign strong { color: var(--dark); }

.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: start; }
.intro-lead { font-size: 18px; line-height: 1.7; color: var(--dark); padding-left: 20px; border-left: 4px solid var(--red); }
.intro-text strong { color: var(--red); }
.intro-image { aspect-ratio: 16 / 10; background-size: cover; background-position: center; border-bottom: 6px solid var(--red); }
.intro-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #e6e8eb; }
.intro-fact { display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--white); }
.intro-fact-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; background: rgba(227, 30, 36, .08); color: var(--red); }
.intro-fact-icon .icon { width: 22px; height: 22px; }
.intro-fact strong { display: block; font-family: var(--heading); font-size: 21px; letter-spacing: 1px; line-height: 1; text-transform: uppercase; color: var(--dark); }
.intro-fact span { font-size: 13px; line-height: 1.4; }

.history-section { background: var(--dark) url('../../images/gallery/dredger-on-river.jpg') center / cover; position: relative; color: #b9bdc4; }
.history-section::before { content: ''; position: absolute; inset: 0; background: rgba(17, 18, 20, .93); }
.history-section .container { position: relative; }
.history-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 50px; background: rgba(255, 255, 255, .08); }
.history-facts div { padding: 28px 24px; background: #17181b; border-bottom: 3px solid var(--red); }
.history-facts strong { display: block; font-family: var(--heading); font-size: 52px; line-height: 1; color: var(--red); font-weight: 600; }
.history-facts span { color: var(--white); font-size: 14px; }
.history-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; margin-bottom: 50px; }
.history-text p:first-child { font-size: 17px; color: var(--white); }
.history-core { padding: 34px; background: var(--red); color: var(--white); }
.history-core h3 { color: var(--white); font-size: 30px; text-transform: uppercase; }
.history-core ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.history-core li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.history-core .icon { width: 22px; height: 22px; padding: 4px; background: var(--white); color: var(--red); border-radius: 50%; stroke-width: 3; }
.clients-strip { text-align: center; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, .1); }
.clients-strip h3 { color: var(--white); font-size: 32px; text-transform: uppercase; margin-bottom: 26px; }
.clients-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.client-type { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-family: var(--heading); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--white); transition: background .25s, border-color .25s; }
.client-type:hover { background: rgba(227, 30, 36, .12); border-color: var(--red); }
.client-type span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--red); }
.client-type .icon { width: 26px; height: 26px; }
.clients-strip p { margin: 0; }

.permits-section { background: var(--white); }
#certifications { scroll-margin-top: 150px; }
.permits-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.permits-intro { max-width: 560px; margin-bottom: 30px; }
.permit-list { list-style: none; margin: 0; padding: 0; position: relative; }
.permit-list::before { content: ''; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--red-dark); }
.permit-list li { position: relative; display: flex; align-items: center; gap: 22px; padding: 6px 0; }
.permit-dot { position: relative; z-index: 1; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--red-dark); box-shadow: 0 0 0 4px var(--white); }
.permit-body { flex: 1; display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--light); border-left: 3px solid transparent; transition: all .25s; }
.permit-list li:hover .permit-body { background: var(--white); border-left-color: var(--red); box-shadow: var(--shadow); transform: translateX(4px); }
.permit-list li:hover .permit-dot { background: var(--red); }
.permit-num { font-family: var(--heading); font-size: 24px; line-height: 1; color: var(--red); }
.permit-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--dark); text-transform: uppercase; letter-spacing: .3px; }
.permit-abbr { padding: 3px 10px; background: var(--dark); color: var(--white); font-family: var(--heading); font-size: 17px; letter-spacing: 1px; line-height: 1.3; }
.permits-media { position: relative; }
.permits-media img { width: 100%; height: auto; }
.permits-badge { position: absolute; top: 10px; right: 0; display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--dark); border-bottom: 4px solid var(--red); }
.permits-badge strong { font-family: var(--heading); font-size: 56px; line-height: .9; color: var(--red); font-weight: 600; }
.permits-badge span { font-family: var(--heading); font-size: 19px; letter-spacing: 1px; line-height: 1.1; text-transform: uppercase; color: var(--white); }

/* CASHES training matrix */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.training-section { background: var(--light); }
#training { scroll-margin-top: 150px; }
.training-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.training-note { display: flex; gap: 20px; padding: 28px; background: var(--white); border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.training-note .hse-card-icon { flex-shrink: 0; margin: 0; }
.training-note h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.training-note p { margin-bottom: 12px; }
.ppe-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ppe-tags li { padding: 4px 12px; background: var(--light); border-left: 3px solid var(--red); font-size: 13px; font-weight: 500; color: var(--dark); }
.matrix-wrap { overflow-x: auto; background: var(--white); box-shadow: var(--shadow); }
.matrix { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { border: 1px solid #e3e5e8; }
.matrix thead th { background: var(--dark); color: var(--white); border-color: #2a2b2f; }
.matrix-corner { text-align: left; vertical-align: bottom; padding: 14px 18px; font-family: var(--heading); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }
.matrix-type { height: 200px; width: 54px; padding: 12px 0; vertical-align: bottom; }
.matrix-type span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--heading); font-size: 17px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.matrix tbody th { position: sticky; left: 0; z-index: 1; text-align: left; padding: 11px 18px; background: var(--white); color: var(--dark); font-weight: 600; white-space: nowrap; }
.matrix thead .matrix-corner { position: sticky; left: 0; z-index: 2; }
.matrix tbody tr:nth-child(even) th, .matrix tbody tr:nth-child(even) td:not(.on) { background: #fafafb; }
.matrix td { text-align: center; }
.matrix td.on { background: rgba(227, 30, 36, .1); color: var(--red); }
.matrix td.on .icon { width: 18px; height: 18px; stroke-width: 3; vertical-align: middle; }
.matrix tbody tr:hover th { color: var(--red); }
.matrix tbody tr:hover td.on { background: var(--red); color: var(--white); }
.matrix-legend { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; }
.legend-on { display: grid; place-items: center; width: 26px; height: 22px; background: rgba(227, 30, 36, .1); color: var(--red); }
.legend-on .icon { width: 14px; height: 14px; stroke-width: 3; }

/* About page link to the full profile */
.profile-link { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 44px; background: var(--dark); border-left: 6px solid var(--red); }
.profile-link h3 { color: var(--white); font-size: 32px; text-transform: uppercase; margin-bottom: 6px; }
.profile-link p { margin: 0; color: #b9bdc4; }

/* Home: recent work posts from admin uploads */
.posts-section { background: var(--white); }
.posts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.posts-head .section-title { margin: 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow); border-bottom: 3px solid transparent; transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-bottom-color: var(--red); }
.post-media { aspect-ratio: 3 / 2; }
.post-cat { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 3px 12px; background: var(--red); color: var(--white); font-family: var(--heading); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.post-body { display: grid; gap: 8px; padding: 22px 24px 26px; }
.post-body time { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--red); font-weight: 500; }
.post-body h3 { font-size: 26px; text-transform: uppercase; margin: 0; }
.post-body p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-featured { grid-column: span 2; grid-row: span 2; }
.post-card-featured .post-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.post-card-featured .post-body h3 { font-size: 34px; }
.post-card-featured .post-body p { -webkit-line-clamp: 4; }
.posts-count-2 { grid-template-columns: 1fr 1fr; }
.posts-count-1 { grid-template-columns: 1fr; }
.posts-count-1 .post-card { display: grid; grid-template-columns: 1.3fr 1fr; }
.posts-count-1 .post-media { aspect-ratio: 16 / 10; }
.posts-count-1 .post-body { align-content: center; padding: 40px; }
.posts-count-1 .post-body h3 { font-size: 36px; }
.posts-count-1 .post-body p { -webkit-line-clamp: 8; }
/* Posts uploaded without a title or description: media only, with a slim date bar */
.posts-count-1 .post-card-no-text { grid-template-columns: 1fr; }
.posts-count-1 .post-card-no-text .post-media { aspect-ratio: 21 / 9; }
.post-card-no-text .post-body { padding: 14px 24px; }
.lightbox figcaption strong { display: block; color: var(--white); font-family: var(--heading); font-size: 24px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }
.lightbox figcaption p { max-width: 760px; margin: 6px auto 0; color: #c4c7cc; font-size: 14px; white-space: pre-line; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card { position: relative; padding: 40px 32px 32px; background: var(--white); border: 1px solid #e6e8eb; border-top: 4px solid var(--red); transition: box-shadow .25s, transform .25s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.project-status { position: absolute; top: -14px; right: 24px; background: var(--dark); color: var(--white); font-family: var(--heading); font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 14px; }
.project-card h3 { font-size: 28px; text-transform: uppercase; }
.project-client { color: var(--red); font-weight: 500; }
.project-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.project-meta li { display: flex; gap: 10px; align-items: flex-start; }
.project-meta .icon { color: var(--red); margin-top: 5px; }

/* History timeline */
.history { background: var(--light); }
.history-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--red); display: grid; gap: 26px; }
.timeline li { position: relative; background: var(--white); padding: 18px 22px; box-shadow: var(--shadow); }
.timeline li::before { content: ''; position: absolute; left: -38px; top: 24px; width: 14px; height: 14px; background: var(--red); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--red); }
.timeline strong { display: block; font-family: var(--heading); font-size: 32px; line-height: 1; color: var(--red); }
.timeline span { color: var(--dark); }

/* Policies */
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.policy-card { padding: 50px 44px; background: var(--light); border-left: 5px solid var(--red); }
.policy-card .section-title { font-size: clamp(32px, 4vw, 44px); }
.policy-card-dark { background: var(--dark); color: #c4c7cc; }
.policy-card-dark .section-title { color: var(--white); }
.policy-sign { font-weight: 600; color: var(--dark); margin: 0; }

/* Team */
.team-section { background: var(--light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.team-card { background: var(--white); padding: 34px 24px 28px; text-align: center; border-bottom: 3px solid transparent; transition: all .25s; }
.team-card:hover { border-bottom-color: var(--red); box-shadow: var(--shadow); transform: translateY(-4px); }
.team-photo { width: 150px; height: 150px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 4px solid var(--red); box-shadow: 0 0 0 6px rgba(227, 30, 36, .12); background: var(--light); display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials { font-family: var(--heading); font-size: 54px; color: var(--red); }
.team-card h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 4px; }
.team-card p { margin: 0; color: var(--red); font-size: 14px; font-weight: 500; }

/* Certifications */
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert-list li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--light); color: var(--dark); font-weight: 500; border-left: 3px solid var(--red); }
.cert-list .icon { width: 26px; height: 26px; color: var(--red); }

/* Sites & equipment */
.equipment-section { background: var(--light); }
.equipment-home { background: var(--white); }
.equipment-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: start; }
.fleet-card { background: var(--dark); color: #c4c7cc; }
.fleet-image { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.fleet-badge { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--red); color: var(--white); font-family: var(--heading); font-size: 19px; letter-spacing: 1px; line-height: 1; text-transform: uppercase; }
.fleet-badge strong { font-size: 48px; font-weight: 600; }
.fleet-facts { list-style: none; margin: 0; padding: 12px 26px 18px; }
.fleet-facts li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fleet-facts li:last-child { border-bottom: 0; }
.fleet-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; background: rgba(227, 30, 36, .15); color: var(--red); }
.fleet-icon .icon { width: 22px; height: 22px; }
.fleet-facts h3 { color: var(--white); font-size: 23px; text-transform: uppercase; margin-bottom: 2px; }
.fleet-facts p { margin: 0; font-size: 14px; }
.equipment-home .table-wrap { border: 1px solid #e6e8eb; }
.equipment-table td.qty { font-family: var(--heading); font-size: 24px; color: var(--dark); text-align: center; }
.equipment-table th:nth-child(4) { text-align: center; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; font-size: 12px; font-weight: 600; color: #1d6b3a; background: #e7f6ec; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2f9e5a; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px; border-top: 3px solid var(--red); }
.table-foot p { margin: 0; color: var(--dark); font-weight: 500; }

.table-wrap { overflow-x: auto; background: var(--white); box-shadow: var(--shadow); }
.equipment-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.equipment-table th { background: var(--dark); color: var(--white); text-align: left; padding: 14px 18px; font-family: var(--heading); font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.equipment-table td { padding: 13px 18px; border-bottom: 1px solid #eceef1; }
.equipment-table td:first-child { color: var(--red); font-weight: 600; }
.equipment-table td:nth-child(2) { color: var(--dark); font-weight: 500; }
.equipment-table tbody tr:hover { background: var(--light); }

/* Gallery */
.gallery-preview { background: var(--light); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.gallery-filters button { padding: 9px 24px; font-family: var(--heading); font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase; background: var(--light); color: var(--dark); border: 0; cursor: pointer; transition: all .2s; }
.gallery-filters button:hover, .gallery-filters button.active { background: var(--red); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--dark); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.08); opacity: .55; }
.gallery-item.hidden { display: none; }
.gallery-zoom { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.6); display: grid; place-items: center; width: 54px; height: 54px; background: var(--red); color: var(--white); opacity: 0; transition: all .3s; }
.gallery-zoom .icon { width: 24px; height: 24px; }
.gallery-item:hover .gallery-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 13px; color: var(--white); background: linear-gradient(transparent, rgba(0, 0, 0, .8)); transform: translateY(100%); transition: transform .3s; }
.gallery-item:hover .gallery-caption { transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 60px 70px; background: rgba(8, 9, 11, .94); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox video { display: block; max-width: 100%; max-height: calc(100vh - 160px); margin: 0 auto; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox img[hidden], .lightbox video[hidden] { display: none; }
.gallery-item.is-video .gallery-zoom { opacity: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.play-icon { font-size: 20px; padding-left: 4px; }
.lightbox figcaption { margin-top: 14px; color: #e5e7eb; font-size: 15px; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; background: rgba(255, 255, 255, .08); color: var(--white); border: 0; cursor: pointer; transition: background .2s; }
.lightbox-btn:hover { background: var(--red); }
.lightbox-btn .icon { width: 24px; height: 24px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Map */
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.3); }

/* Floating WhatsApp button */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 30px; height: 30px; }

/* Footer */
.site-footer { background: var(--dark); color: #a3a7af; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 80px 16px 60px; }
.footer-logo { display: inline-block; background: var(--white); padding: 10px 16px; margin-bottom: 20px; }
.footer-logo img { height: 56px; width: auto; }
.footer-col h4 { color: var(--white); font-size: 26px; text-transform: uppercase; position: relative; padding-bottom: 12px; margin-bottom: 22px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--red); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col ul a:hover { color: var(--red); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--red); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding: 22px 16px; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
    .main-nav > ul { gap: 24px; }
    .header-info { display: none; }
    .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .nav-toggle { display: grid; place-items: center; }
    .header-inner { min-height: 80px; }
    .brand img { height: 52px; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
        box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .35s;
    }
    .main-nav.open { max-height: 80vh; overflow-y: auto; }
    .main-nav > ul { flex-direction: column; gap: 0; padding: 10px 16px; }
    .main-nav > ul > li > a { padding: 12px 0; border-bottom: 1px solid #eee; justify-content: space-between; }
    .main-nav > ul > li > a::after { display: none; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 12px; }
    .has-dropdown.open .dropdown { display: block; }

    .section { padding: 70px 0; }
    .features-grid, .services-grid { grid-template-columns: 1fr 1fr; }
    .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-badge { right: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .service-row { grid-template-columns: auto 1fr; }
    .service-row-num { display: none; }
    .service-row .btn { grid-column: 1 / -1; justify-self: start; }
    .projects-grid { grid-template-columns: 1fr; gap: 36px; }
    .posts-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .vmv-grid { grid-template-columns: 1fr; gap: 40px; }
    .hse-top, .hse-cards { grid-template-columns: 1fr; gap: 40px; }
    .profile-toc { top: 80px; }
    .diary-card { padding: 50px 28px 34px; }
    .diary-columns { columns: 1; }
    .intro-grid, .history-body, .permits-grid { grid-template-columns: 1fr; gap: 40px; }
    .permits-media { max-width: 520px; margin: 0 auto; }
    .training-top { grid-template-columns: 1fr; }
    .history-facts { grid-template-columns: 1fr 1fr; }
    .clients-list { grid-template-columns: repeat(3, 1fr); }
    .profile-link { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
    .history-grid, .policy-grid, .equipment-grid { grid-template-columns: 1fr; gap: 40px; }
    .cert-list { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .topbar-item:first-child { display: none; }
}

@media (max-width: 640px) {
    .topbar p { display: none; }
    .topbar-inner { justify-content: center; }
    .hero-content { min-height: 560px; padding-bottom: 140px; }
    .hero-slides { min-height: 560px; }
    .hero h1, .hero .hero-title { font-size: 38px; }
    .hero .eyebrow { font-size: 18px; letter-spacing: 2px; }
    .hero .btn { padding: 12px 24px; font-size: 18px; }
    .hero-arrow { display: none; }
    .hero-dots { bottom: 100px; }
    .features { margin-top: -80px; }
    .features-grid, .services-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .stat strong { font-size: 56px; }
    .contact-form-wrap { padding: 28px 20px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .service-row { grid-template-columns: 1fr; }
    .cert-list { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .posts-count-1 .post-card { grid-template-columns: 1fr; }
    .posts-count-1 .post-body { padding: 22px 24px 26px; }
    .posts-count-1 .post-body h3 { font-size: 28px; }
    .post-card-featured { grid-column: auto; grid-row: auto; }
    .post-card-featured .post-media { aspect-ratio: 3 / 2; min-height: 0; }
    .post-card-featured .post-body h3 { font-size: 28px; }
    .profile-toc-inner { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0; }
    .profile-toc a { flex-shrink: 0; padding: 12px 14px; font-size: 16px; white-space: nowrap; }
    .profile-head { gap: 14px; margin-bottom: 30px; }
    .profile-head::after { display: none; }
    .intro-facts, .clients-list { grid-template-columns: 1fr 1fr; }
    .diary-columns p { text-align: left; }
    .permit-list li { gap: 14px; }
    .permit-body { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
    .permit-name { flex-basis: 100%; order: 3; font-size: 13px; }
    .permits-badge { padding: 10px 14px; }
    .permits-badge strong { font-size: 40px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .policy-card { padding: 34px 22px; }
    .lightbox { padding: 60px 12px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
    .map iframe { height: 320px; }
}
