/* =========================================================
   Ductgrove Limited — site stylesheet
   ========================================================= */

:root {
    --navy: #0b1d35;
    --navy-2: #132b4b;
    --blue: #1f6fd1;
    --blue-dark: #1758a8;
    --blue-light: #8fc5ff;
    --ink: #17283d;
    --muted: #55657a;
    --line: #e2e8f0;
    --bg-alt: #f3f7fc;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 8px 26px rgba(12, 34, 58, .07);
    --shadow-hover: 0 14px 36px rgba(12, 34, 58, .14);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }
p + p { margin-top: 14px; }

.eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: .78rem;
    letter-spacing: .16em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lead { font-size: 1.12rem; color: var(--muted); }

.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--blue);
    color: var(--white);
    padding: 12px 22px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; transition: margin .2s ease; }
.text-link:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy);
    box-shadow: 0 3px 18px rgba(5, 20, 40, .18);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 0; }
.logo img { height: 72px; width: auto; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-links a {
    display: block;
    color: #e6edf7;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .95rem;
    transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav-links a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--blue-light); border-radius: 0; }
.nav-links .nav-cta { background: var(--blue); color: var(--white); margin-left: 8px; padding: 9px 18px; }
.nav-links .nav-cta:hover { background: var(--blue-dark); }
.nav-links .nav-cta[aria-current="page"] { box-shadow: none; border-radius: 6px; }

.nav-toggle {
    display: none;
    background: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px;
    width: 44px; height: 44px; cursor: pointer; color: var(--white);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative;
    transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    background: var(--navy) url("images/wpbb27410a_06.png") center / cover no-repeat;
    color: var(--white);
}
.hero-overlay {
    background: linear-gradient(90deg, rgba(7, 22, 42, .92) 0%, rgba(7, 22, 42, .75) 55%, rgba(7, 22, 42, .45) 100%);
    padding: 110px 0 120px;
}
.hero-content { max-width: 720px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: #d6e2f1; }
.hero .eyebrow { color: var(--blue-light); }

/* Homepage header carousel */
.hero-carousel { position: relative; overflow: hidden; background-image: none; }
.hero-carousel .hero-overlay { position: relative; z-index: 1; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background: center / cover no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.6s ease, transform 8s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; z-index: 2; right: 20px; bottom: 18px; display: flex; gap: 8px; }
.hero-dots button {
    width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .8); background: transparent;
    transition: background .2s ease, transform .2s ease;
}
.hero-dots button:hover { transform: scale(1.2); }
.hero-dots button[aria-current="true"] { background: var(--white); }
.no-js .hero-dots { display: none; }

.hero-small .hero-overlay { padding: 64px 0 70px; }
.hero-small h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }

/* Capability strip under hero */
.strip { background: var(--navy-2); color: #d6e2f1; }
.strip ul {
    list-style: none;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.strip li { padding: 22px 20px; border-left: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; }
.strip li:first-child { border-left: 0; }
.strip strong { display: block; color: var(--white); font-size: 1.02rem; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }

.card {
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card img { width: 100%; height: 200px; object-fit: cover; background: #e8eef5; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body .text-link { margin-top: auto; padding-top: 16px; }
.card-tag { font-size: .82rem; color: var(--blue); font-weight: 700; margin-top: auto; padding-top: 14px; }

/* Plain feature tiles (icons) */
.tile {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.tile img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 14px; }
.tile h3 { color: var(--blue); }
.tile p { color: var(--muted); font-size: .96rem; }

/* ---------- Split (text + image) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { width: 100%; border-radius: 12px; box-shadow: 0 16px 42px rgba(10, 31, 54, .16); }
.split-media figcaption { color: #6a7786; font-size: .82rem; margin-top: 10px; }
.split p { color: var(--muted); }
.split.reverse .split-media { order: -1; }

/* Numbered approach steps */
.steps { list-style: none; counter-reset: step; margin-top: 26px; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--blue); color: var(--white); font-weight: 800;
    display: grid; place-items: center;
}
.steps strong { display: block; color: var(--navy); }

/* Tick list */
.ticks { list-style: none; margin: 18px 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .35em;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks strong { color: var(--ink); }
.ticks.two-col { grid-template-columns: 1fr 1fr; gap: 10px 30px; }

/* ---------- Services page ---------- */

.jump-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.jump-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; justify-content: center; }
.jump-nav a {
    display: block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
    text-decoration: none; color: var(--navy); font-weight: 600; font-size: .9rem; background: var(--bg-alt);
}
.jump-nav a:hover { border-color: var(--blue); color: var(--blue); }

.service-block .split-media img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Video ---------- */

.video-container {
    position: relative; max-width: 820px; margin: 0 auto;
    aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
    box-shadow: 0 16px 42px rgba(10, 31, 54, .18); background: #000;
}
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Sectors ---------- */

.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.sector-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 16px; text-align: center; display: grid; justify-items: center; gap: 10px;
    font-weight: 700; color: var(--navy);
}
.sector-card img { width: 42px; height: 42px; object-fit: contain; }

/* ---------- CTA band ---------- */

.cta-band { background: linear-gradient(110deg, var(--navy) 0%, var(--navy-2) 60%, #1b4a85 100%); color: #d6e2f1; padding: 70px 0; }
.cta-band h2 { color: var(--white); }
.cta-flex { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-flex > div:first-child { max-width: 620px; }
.cta-contacts { display: grid; gap: 6px; font-size: 1.05rem; }
.cta-contacts a { color: var(--white); font-weight: 700; text-decoration: none; }
.cta-contacts a:hover { color: var(--blue-light); }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 22px; margin-top: 24px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-icon {
    width: 44px; height: 44px; border-radius: 10px; background: #e5f0fd; color: var(--blue);
    display: grid; place-items: center;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.contact-list small { display: block; color: var(--muted); font-size: .88rem; }

.form-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.form-card h2 { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
    border: 1px solid #cbd5e1; border-radius: 6px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 209, .18); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .84rem; color: #687789; margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #b9c7d9; padding: 56px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #d6e2f1; text-decoration: none; }
.site-footer a:hover { color: var(--blue-light); }
.footer-logo { height: 60px; width: auto; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #8ea0b7; }

a[href^="tel:"], a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .nav-toggle { display: grid; place-items: center; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .1);
        display: none; padding: 10px 20px 20px;
        box-shadow: 0 12px 24px rgba(5, 20, 40, .3);
    }
    .nav-open .site-nav { display: block; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-links a { padding: 12px; }
    .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue-light); }
    .nav-links .nav-cta { margin: 10px 0 0; text-align: center; }
    .no-js .site-nav { position: static; display: block; box-shadow: none; }

    .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .split.reverse .split-media { order: 0; }
    .strip ul { grid-template-columns: 1fr 1fr; }
    .strip li:nth-child(3) { border-left: 0; }
    .strip li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .section { padding: 60px 0; }
    .hero-overlay { padding: 72px 0 80px; }
    .hero-small .hero-overlay { padding: 48px 0 52px; }
    .logo img { height: 56px; }
    .ticks.two-col, .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
    .strip li { padding: 16px 14px; font-size: .88rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn-row .btn { flex: 1 1 100%; }
}

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