/* Landing page styles. Colours are set once here - change --accent to re-brand the whole page. */
:root {
    --accent: #059669;
    --accent-strong: #047857;
    --accent-soft: #d1fae5;
    --accent-on-dark: #34d399;
    --ink: #0f172a;
    --ink-muted: #475569;
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --dark: #0b1220;
    --dark-2: #111a2e;
    --on-dark: #e2e8f0;
    --on-dark-muted: #94a3b8;
    --border: #e2e8f0;
    --radius: 14px;
    --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-strong);
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 8px;
}

.skip-link:focus {
    left: 8px;
}

:focus-visible {
    outline: 3px solid var(--accent-on-dark);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-ghost {
    color: inherit;
    border-color: currentColor;
}

.btn-ghost:hover {
    background: rgb(255 255 255 / 8%);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(11 18 32 / 92%);
    backdrop-filter: blur(8px);
    color: var(--on-dark);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    margin-right: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.05rem;
}

.brand-text small {
    font-size: 0.75rem;
    color: var(--on-dark-muted);
}

.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.nav-links a {
    color: var(--on-dark);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
}

@media (min-width: 860px) {
    .nav-links {
        display: flex;
    }
}

/* Hero */
.hero {
    position: relative;
    color: var(--on-dark);
    background:
        radial-gradient(900px 500px at 85% 10%, rgb(5 150 105 / 28%), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgb(52 211 153 / 10%), transparent 60%),
        linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
    /* EDIT: with a photo in images/hero.jpg, uncomment the next two lines. */
    /* background: linear-gradient(90deg, rgb(11 18 32 / 92%) 0%, rgb(11 18 32 / 60%) 100%), url("images/hero.jpg") center / cover; */
    overflow: hidden;
}

.hero-inner {
    padding-top: clamp(64px, 12vw, 128px);
    padding-bottom: clamp(56px, 10vw, 104px);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 6.5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    max-width: 14ch;
}

.accent {
    color: var(--accent-on-dark);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero .eyebrow,
.section-dark .eyebrow {
    color: var(--accent-on-dark);
}

.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--on-dark);
    max-width: 52ch;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    color: var(--on-dark-muted);
    font-size: 0.95rem;
}

.hero-points li::before,
.checklist li::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Sections */
.section {
    padding: clamp(64px, 9vw, 104px) 0;
}

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

.section-dark {
    background: var(--dark);
    color: var(--on-dark);
}

.section-dark h2 {
    color: #fff;
}

.section-dark a:not(.btn) {
    color: var(--accent-on-dark);
}

.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-head p:last-child {
    color: var(--ink-muted);
    font-size: 1.125rem;
}

/* Service cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 14px 32px rgb(15 23 42 / 10%);
}

.card p {
    color: var(--ink-muted);
    margin: 0;
}

.icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--accent-soft);
    stroke: var(--accent-strong);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.step {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 26px;
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.step p {
    color: var(--ink-muted);
    margin: 0;
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

/* Fleet and visit: text beside a photo */
.fleet,
.visit {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 860px) {
    .fleet,
    .visit {
        grid-template-columns: 1.1fr 1fr;
        gap: 64px;
    }
}

.fleet > div > p:not(.eyebrow) {
    color: var(--ink-muted);
    font-size: 1.125rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.checklist li {
    padding: 6px 0;
}

.photo,
.photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    object-fit: cover;
}

.photo-placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgb(5 150 105 / 6%) 14px 28px),
        var(--bg-alt);
    border: 2px dashed #cbd5e1;
    color: var(--ink-muted);
    font-weight: 600;
}

.photo-placeholder svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-placeholder-dark {
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgb(52 211 153 / 6%) 14px 28px),
        var(--dark-2);
    border-color: rgb(255 255 255 / 14%);
    color: var(--on-dark-muted);
}

.photo-placeholder-dark svg {
    stroke: var(--accent-on-dark);
}

.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 8px 0 36px;
}

.details dt {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    margin-bottom: 4px;
}

.details dd {
    margin: 0;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #070c16;
    color: var(--on-dark-muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--on-dark-muted);
}

.site-footer a:hover {
    color: #fff;
}

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

    .card,
    .btn {
        transition: none;
    }
}
