/* ==========================================================================
   BlueFrog — site styles.

   The layout language follows the RideAll theme (themes.codcrash.com/CMS/CC85),
   read from its live CSS rather than eyeballed: a near-black ground with
   alternating panels, Epilogue for display over DM Sans for body, ~130px
   section rhythm, 30px rounding on every card and image, an eyebrow label
   above each heading, and a transparent header that fills with the accent once
   you scroll.

   ONE deliberate departure: that theme's accent is orange (#ff4c1c). Ours is
   the BlueFrog blue, because the accent IS the brand — copying the hue would
   have made the site look like the template rather than like us.

   Bootstrap that the Blazor template ships with was removed: a marketing site
   built on a framework's default components looks like that framework.
   ========================================================================== */

/* --- Type ----------------------------------------------------------------
   Epilogue 600 + DM Sans 400, the reference's own pairing, self-hosted from
   Google's CDN. Inter stays as the fallback stack since it is already local. */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@600;700&family=DM+Sans:wght@400;500;700&display=swap');

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
    /* Grounds, from the reference's palette7/8 and palette3 */
    --ink: #0C1214;
    --ink-alt: #141A1C;
    --text: #FFFFFF;
    --muted: #96A2AD;

    /* The accent is ours, not the template's orange */
    --accent: #3B8EDE;
    --accent-deep: #2264B4;

    --hairline: rgba(255, 255, 255, 0.10);

    --display: 'Epilogue', 'Inter', system-ui, sans-serif;
    --body: 'DM Sans', 'Inter', system-ui, sans-serif;

    --shell: 1300px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-y: clamp(4rem, 8.12vw + 1rem, 8.12rem);
    --round: 30px;
}

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

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Headings are Title Case in the reference, NOT uppercase — only the nav and
   buttons are uppercase. Letter-spacing is zero throughout; the display face
   carries the weight instead of tracking. */
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 0.4em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 3.625rem); line-height: 1.1; }
h3 { font-size: 1.875rem; line-height: 1.2; }

p { margin: 0 0 1rem; max-width: 68ch; color: var(--muted); }
p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.75; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }

img, svg { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* The eyebrow: accent-coloured body text above every heading. The reference's
   most repeated device, and the cheapest way to make a section feel authored. */
.eyebrow {
    color: var(--accent);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.75rem;
    text-transform: none;
    letter-spacing: 0;
}

/* --- Header --------------------------------------------------------------
   Transparent over the hero, then fills with the accent once scrolled — the
   reference's signature move. Done in CSS alone: a sentinel at the top of the
   document drives it, so there is no scroll listener and nothing to jank. */
.site-head {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: background-color 220ms ease;
}

.site-head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 90px;
    padding-inline: clamp(1.25rem, 4vw, 50px);
    max-width: none;
    flex-wrap: wrap;
}

/* Scrolled state, set by the sentinel below. */
.site-head.is-stuck { background: var(--accent); }
.site-head.is-stuck .site-nav a { color: #fff; }
.site-head.is-stuck .site-nav a.active { border-bottom-color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { height: 42px; width: 42px; flex: none; display: block; }

.brand__name {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0;
}

.site-head.is-stuck .brand__name strong { color: #fff; }
.brand__name strong { color: var(--accent); font-weight: 600; }

.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); align-items: center; flex-wrap: wrap; }

/* Nav and buttons are the only uppercase in the design. */
.site-nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-family: var(--body);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 140ms ease;
}

.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; border-bottom-color: var(--accent); }

/* --- Hero ----------------------------------------------------------------
   The reference runs a full-bleed photo slider; with no photography to hand,
   a deep radial wash of the accent over the near-black stands in. It keeps the
   hero's weight and the palette without pretending to imagery we do not have. */
.hero {
    position: relative;
    min-height: clamp(520px, 68vh, 750px);
    display: flex;
    align-items: center;
    padding: clamp(6rem, 14vw, 11rem) 0 var(--section-y);
    background:
        radial-gradient(80% 120% at 78% 18%, rgba(59, 142, 222, 0.22) 0%, transparent 62%),
        radial-gradient(60% 90% at 12% 88%, rgba(34, 100, 180, 0.16) 0%, transparent 60%),
        var(--ink);
    overflow: hidden;
    margin-top: -90px;   /* slide under the transparent header */
}

.hero h1 { max-width: 16ch; }
.hero p.lead { max-width: 54ch; }

/* --- Sections ------------------------------------------------------------ */
section { padding: var(--section-y) 0; }
section.alt { background: var(--ink-alt); }

.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head.centred { margin-inline: auto; text-align: center; }

/* --- Buttons -------------------------------------------------------------
   Pills, uppercase, outline that fills on hover — the reference's primary CTA. */
.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }

.btn {
    display: inline-block;
    font-family: var(--body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1.15rem 3rem;
    border-radius: 30px;
    border: 1px solid var(--accent);
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.btn--outline { background: transparent; color: #fff; }
.btn--outline:hover { background: var(--accent); color: #fff; }

/* --- Cards ---------------------------------------------------------------
   Heavy rounding is the reference's real signature — 30px on every panel. */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--ink-alt);
    border: 1px solid var(--hairline);
    border-radius: var(--round);
    padding: 2.25rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 180ms ease, transform 180ms ease;
}

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

a.card:hover { border-color: var(--accent); transform: translateY(-4px); }

.card__icon { width: 64px; height: 64px; margin-bottom: 1.5rem; }
.card h3 { margin-bottom: 0.5rem; color: #fff; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* Numbered step badges: accent circle, display face — the reference's
   "01 / 02 / 03" device, used here for the bus-safety sequence. */
.step { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.75rem 0; border-bottom: 1px solid var(--hairline); }
.step:last-child { border-bottom: 0; }

.step__num {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 40px;
    background: var(--accent);
    color: #fff;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    display: grid;
    place-items: center;
}

.step h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.step p { margin-bottom: 0; }

/* --- Spec tables ---------------------------------------------------------
   Bottom-only hairlines, the reference's spec rows. Own scroll container so a
   wide table never makes the page scroll sideways. */
.table-wrap { overflow-x: auto; margin: 2rem 0 0; }

table { border-collapse: collapse; width: 100%; min-width: 460px; }

th, td {
    text-align: left;
    padding: 1rem 1.25rem 1rem 0;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
    font-size: 0.95rem;
}

th { color: #fff; font-weight: 500; white-space: nowrap; width: 34%; }
td { color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- Split rows ---------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.panel {
    border-radius: var(--round);
    background: var(--ink-alt);
    border: 1px solid var(--hairline);
    padding: 2.5rem;
}

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

/* --- Footer -------------------------------------------------------------- */
.site-foot {
    background: var(--ink);
    border-top: 1px solid var(--hairline);
    padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.site-foot__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- Blazor's error UI, restyled ---------------------------------------- */
#blazor-error-ui {
    color-scheme: dark only;
    background: var(--accent);
    color: #fff;
    bottom: 0;
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.9rem; top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
