/* ------------------------------------------------------------
   Cotswold Drone Pilots
   Static website - Version 1
   ------------------------------------------------------------ */

:root {
    --bg: #050807;
    --bg-soft: #0b100e;
    --panel: #101713;
    --panel-2: #151d19;
    --text: #f5f7f5;
    --muted: #a9b3ad;
    --line: rgba(255,255,255,0.12);
    --green: #00a86b;
    --green-bright: #18c787;
    --max: 1240px;
    --header-h: 86px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.section-dark {
    background: var(--bg-soft);
}

.section-kicker {
    margin: 0 0 16px;
    color: var(--green-bright);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 1000px;
    margin-bottom: 24px;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 750;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2.2rem, 4vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.2;
}

p {
    color: var(--muted);
    font-size: 1.05rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.nav-wrap {
    width: min(calc(100% - 48px), 1400px);
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 210px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.86);
}

.main-nav a:hover {
    color: #fff;
}

.main-nav .nav-cta {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

/* HERO */

.hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HERO SOUND BUTTON */


.sound-toggle {
    position: absolute;
    top: 110px;
    right: 35px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.sound-toggle:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

#soundIcon {
    font-size: 1.15rem;
    line-height: 1;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 48%, rgba(0,0,0,0.30) 100%),
        linear-gradient(to right, rgba(0,0,0,0.30), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), 1400px);
    margin: 0 auto;
    padding: 180px 0 72px;
}

.eyebrow {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.82);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 700px;
    margin-bottom: 34px;
    color: rgba(255,255,255,0.80);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 58px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #00190f;
    background: var(--green-bright);
}

.btn-primary:hover {
    background: #27da98;
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.85);
}

.hero-stats {
    display: flex;
    gap: 42px;
}

.hero-stats div {
    display: grid;
    gap: 2px;
}

.hero-stats strong {
    font-size: 1.15rem;
}

.hero-stats span {
    color: rgba(255,255,255,0.62);
    font-size: 0.82rem;
}

.scroll-cue {
    position: absolute;
    right: 36px;
    bottom: 40px;
    z-index: 3;
    width: 34px;
    height: 58px;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 999px;
}

.scroll-cue span {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #fff;
    animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 0; }
    25% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateY(22px); opacity: 0; }
}

/* INTRO */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.intro-section {
    background: #fff;
    color: #0a0d0b;
}

.intro-section .section-kicker {
    color: #087d54;
}

.intro-section h2 {
    max-width: 560px;
}

.intro-copy p {
    color: #59625d;
    font-size: 1.15rem;
}

/* SERVICES */

.section-heading {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-card {
    min-height: 290px;
    padding: 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.015);
}

.service-card:hover {
    background: rgba(255,255,255,0.035);
}

.service-number {
    display: block;
    margin-bottom: 70px;
    color: var(--green-bright);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.service-card p {
    margin-bottom: 0;
    font-size: 0.96rem;
}

/* VISUAL FEATURE */

.visual-feature {
    min-height: 760px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.visual-feature > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.86), rgba(0,0,0,0.05) 70%);
}

.visual-content {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
    padding: 90px 0;
}

.visual-content h2 {
    max-width: 720px;
}

.visual-content p:last-child {
    max-width: 650px;
    color: rgba(255,255,255,0.78);
}

/* MAPPING */

.mapping-section {
    background: #fff;
    color: #0b0e0c;
}

.media-split {
    align-items: center;
}

.media-panel {
    min-width: 0;
}

.media-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.content-panel {
    padding: 30px 0;
}

.content-panel .section-kicker {
    color: #087d54;
}

.content-panel p {
    color: #5d6761;
}

/* FLEET */

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.fleet-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.fleet-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.fleet-card:hover .fleet-image img {
    transform: scale(1.025);
}

.fleet-copy {
    padding: 26px;
}

.fleet-copy p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* CLIENTS */

.clients-section {
    background: #030504;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.client-logo {
    min-height: 160px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.client-logo img {
    max-width: 210px;
    max-height: 72px;
    object-fit: contain;
    opacity: 0.86;
    filter: grayscale(1);
    transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}

.client-logo:hover img {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.03);
}

/* CREDENTIALS */

.credentials-section {
    background: #fff;
    color: #0b0e0c;
}

.credentials-section .section-kicker {
    color: #087d54;
}

.credentials-section p {
    color: #5c6660;
}

.credentials-layout {
    align-items: center;
}

.credential-cards {
    display: grid;
    gap: 18px;
}

.credential-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px;
    border: 1px solid #dfe5e1;
    border-radius: 10px;
    background: #f7f9f7;
}

.credential-card img {
    width: 95px;
    height: 95px;
    object-fit: contain;
}

.credential-card div {
    display: grid;
    gap: 2px;
}

.credential-card strong {
    font-size: 1.25rem;
}

.credential-card span {
    color: #66716a;
}

/* CONTACT */

.contact-section {
    padding: 120px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(24,199,135,0.18), transparent 30%),
        #07100c;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 70px;
    align-items: end;
}

.contact-layout h2 {
    margin-bottom: 20px;
}

.contact-layout p {
    max-width: 720px;
}

.contact-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* FOOTER */

.site-footer {
    padding-top: 70px;
    background: #020302;
    border-top: 1px solid var(--line);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 50px;
    align-items: start;
    padding-bottom: 60px;
}

.footer-brand img {
    width: 200px;
}

.footer-layout p {
    margin: 0;
    font-size: 0.94rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.footer-links a {
    color: #dfe5e1;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--green-bright);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: #758078;
    font-size: 0.82rem;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .split,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 840px) {
    :root {
        --header-h: 74px;
    }

    .site-header {
        background: rgba(0,0,0,0.72);
        backdrop-filter: blur(12px);
    }

    .brand img {
        width: 175px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 380px);
        height: 100vh;
        padding: 110px 34px 40px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #07100c;
        transform: translateX(105%);
        transition: transform .25s ease;
        box-shadow: -20px 0 60px rgba(0,0,0,0.45);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 17px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }

    .main-nav .nav-cta {
        margin-top: 20px;
        padding: 14px 18px;
        text-align: center;
        border: 1px solid rgba(255,255,255,0.35);
    }

    .hero-content {
        padding-bottom: 48px;
    }

    .hero-stats {
        gap: 22px;
        flex-wrap: wrap;
    }

    .scroll-cue {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

    .fleet-grid {
        grid-template-columns: 1fr;
    }

    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }

    .footer-links {
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .container,
    .nav-wrap,
    .hero-content,
    .visual-content {
        width: min(calc(100% - 30px), var(--max));
    }

    h1 {
        font-size: clamp(2.7rem, 14vw, 4.8rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .hero-stats strong {
        font-size: 1rem;
    }

    .hero-stats span {
        font-size: 0.72rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 230px;
    }

    .service-number {
        margin-bottom: 42px;
    }

    .visual-feature {
        min-height: 620px;
    }

    .client-grid {
        grid-template-columns: 1fr 1fr;
    }

    .client-logo {
        min-height: 120px;
        padding: 22px;
    }

    .credential-card {
        align-items: flex-start;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-video {
        display: none;
    }

    .hero {
        background:
            linear-gradient(to top, rgba(0,0,0,0.84), rgba(0,0,0,0.25)),
            url("images/image-broadway-tower.jpeg") center / cover no-repeat;
    }
}
