/* ===== COLOURS ===== */
:root {
    --ink: #0a0d14;
    --ink-soft: #121722;
    --blue: #1f3d9c;
    --blue-light: #3b5bd9;
    --grey: #f3f4f6;
    --white: #ffffff;
    --text: #12151c;
    --text-muted: #5f6878;
    --line: #e2e5ea;
    --line-dark: rgba(255, 255, 255, 0.12);
    --radius: 6px;
    --font-head: "Manrope", "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--white);
}

a { color: inherit; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
figure { margin: 0; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== TYPE ===== */
h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}
.eyebrow::before {
    content: '';
    width: 2rem;
    height: 2px;
    background-color: currentColor;
}
.eyebrow-dark { color: var(--blue); }

.lead { font-size: 1.1rem; color: rgba(255, 255, 255, 0.72); max-width: 34rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.95rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-light { color: var(--ink); background-color: var(--white); }
.btn-light:hover { background-color: #dfe5f7; }
.btn-ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: var(--white); background-color: rgba(255, 255, 255, 0.08); }

/* ===== HEADER (see-through over the video, solid once scrolled) ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    color: var(--white);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
    background-color: rgba(10, 13, 20, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}
.logo {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-decoration: none;
}
.logo span { font-weight: 500; opacity: 0.7; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.85;
}
.site-nav a:hover { opacity: 1; }
.site-nav .nav-driver {
    padding: 0.5rem 1rem;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background-color: var(--white); }

/* ===== HERO ===== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: 7rem 0 2.5rem;
    color: var(--white);
    background-color: var(--ink);
    overflow: hidden;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 13, 20, 0.88) 0%, rgba(10, 13, 20, 0.55) 55%, rgba(10, 13, 20, 0.3) 100%),
        linear-gradient(0deg, rgba(10, 13, 20, 0.85) 0%, rgba(10, 13, 20, 0) 45%);
}
.hero-content,
.hero .container { position: relative; }
.hero-content { margin-bottom: 4rem; }
.hero h1 { max-width: 13ch; margin-bottom: 1.5rem; }
.hero-text { max-width: 33rem; margin-bottom: 2.25rem; font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-dark);
}
.hero-stats div { padding: 1.5rem 1.5rem 0 0; }
.hero-stats div + div { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.hero-stats dt {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero-stats dd { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }

/* ===== SECTIONS ===== */
.section { padding: 6.5rem 0; }
.section-grey { background-color: var(--grey); }
.section-dark { color: var(--white); background-color: var(--ink); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head-center { margin: 0 auto 3rem; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }

/* ===== INTRO ===== */
.intro {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 4rem;
    align-items: center;
}
.intro-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}
.intro-text p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.05rem; }

/* ===== SERVICES ===== */
.service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #cfd4dc;
}
.service-list li {
    padding: 2rem 1.75rem 0 0;
}
.service-list li + li {
    padding-left: 1.75rem;
    border-left: 1px solid #cfd4dc;
}
.service-number {
    display: block;
    margin-bottom: 2.5rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
}
.service-list p { font-size: 0.95rem; color: var(--text-muted); }

/* ===== STANDARDS ===== */
.standards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
}
.standards-image { margin-top: 2.5rem; }
.standards-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}
.standards-list { counter-reset: standard; }
.standards-list li {
    counter-increment: standard;
    position: relative;
    padding: 2rem 0 2rem 3.5rem;
    border-top: 1px solid var(--line-dark);
}
.standards-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.standards-list li::before {
    content: counter(standard, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2.15rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-light);
}
.standards-list p { color: rgba(255, 255, 255, 0.68); }

/* ===== PARTNERS ===== */
.logo-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}
.logo-row li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.partner-logo {
    max-height: 3rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}
.logo-row li:hover .partner-logo { filter: none; opacity: 1; }
.partner-name {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
}
.coverage {
    max-width: 44rem;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-muted);
}
.coverage strong { color: var(--text); font-weight: 600; }

/* ===== GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
    background-color: var(--ink);
}
.gallery img {
    width: 100%;
    height: 100%;
    max-height: 640px;
    object-fit: cover;
}

/* ===== CONTACT ===== */
.contact-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.contact .lead { margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; }
.contact-details div { padding: 1.25rem 0; border-top: 1px solid var(--line-dark); }
.contact-details div:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-details dt {
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.contact-details dd { font-size: 1.05rem; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
    padding: 1.75rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    background-color: #05070b;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ===== TABLET ===== */
@media (max-width: 960px) {
    .intro,
    .standards,
    .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
    .service-list { grid-template-columns: repeat(2, 1fr); }
    .service-list li:nth-child(3) { padding-left: 0; border-left: none; }
    .service-list li:nth-child(n+3) { margin-top: 2rem; border-top: 1px solid #cfd4dc; }
    .logo-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PHONE ===== */
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        background-color: var(--ink);
        border-bottom: 1px solid var(--line-dark);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); }
    .site-nav .nav-driver { margin-top: 0.75rem; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
    .site-header:has(.site-nav.is-open) { background-color: var(--ink); }

    .section { padding: 4.5rem 0; }
    .hero-content { margin-bottom: 2.5rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats div,
    .hero-stats div + div { padding: 1rem 0; border-left: none; }
    .hero-stats div + div { border-top: 1px solid var(--line-dark); }
    .hero-stats dt { font-size: 1.4rem; }

    .service-list { grid-template-columns: 1fr; }
    .service-list li,
    .service-list li + li { padding: 1.75rem 0; margin-top: 0; border-left: none; border-top: 1px solid #cfd4dc; }
    .service-list li:first-child { border-top: none; }
    .service-number { margin-bottom: 0.75rem; }

    .gallery { grid-template-columns: 1fr; }
    .gallery-tall img { max-height: 420px; }
    .hero-actions .btn { flex: 1; text-align: center; }
}

/* Respect "reduce motion": show the still image instead of the video */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero { background: var(--ink) url("images/hero-poster.jpg") center / cover; }
    html { scroll-behavior: auto; }
}
