/* Brand values come from tokens.css (the supplied design-tokens.css). */
:root {
    --header-height: 76px;
    /* The brand border is too faint (under 3:1) to outline a form field. */
    --input-border: #6b8ba3;
    --error: #ffb4a8;
}

@font-face { font-family: "Inter"; src: url("../fonts/inter.260c81a4759b.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.87c506d88b9f.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font: 400 var(--font-size-body)/var(--line-height-body) var(--font-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--btl-cyan); text-underline-offset: .2em; }
a:hover { color: var(--btl-electric); }
:focus-visible { outline: 3px solid var(--btl-electric); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: var(--font-size-hero); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: var(--font-size-h2); font-weight: 700; }
h3 { font-size: var(--font-size-h3); font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container-width); margin-inline: auto; padding-inline: var(--container-padding); }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .5rem 1rem; background: var(--btl-white); color: var(--btl-navy); }
.skip-link:focus { top: 1rem; }

/* Header. Light, because the supplied raster logo is drawn for light backgrounds. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--btl-white); color: var(--btl-navy); }
.site-header::after { content: ""; display: block; height: 3px; background: var(--gradient-fiber); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: calc(var(--header-height) - 3px); }
.brand img { width: 168px; }
.site-header :focus-visible { outline-color: var(--btl-navy); }
.menu-toggle { display: none; place-items: center; width: 48px; height: 48px; padding: 0; background: none; border: 1px solid var(--btl-navy); border-radius: var(--radius-button); color: var(--btl-navy); cursor: pointer; }
.site-menu ul { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.75rem; }
.site-menu a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--btl-navy); font-weight: 500; text-decoration: none; }
.site-menu a:hover { text-decoration: underline; text-decoration-color: var(--btl-orange); text-decoration-thickness: 2px; }
.site-menu .icon { width: 1.15rem; height: 1.15rem; }

@media (max-width: 47.99rem) {
    .js .menu-toggle { display: grid; }
    .site-menu { width: 100%; }
    .site-menu ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: .75rem; }
    .site-menu li + li { border-top: 1px solid #cdd8e0; }
    .site-menu a { display: flex; min-height: 48px; }
    .js .site-menu { display: none; }
    .js .site-menu.is-open { display: block; max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
    /* Without scripts the menu stays open, so the header must scroll away. */
    html:not(.js) .site-header { position: static; }
}
@media (min-width: 64rem) { .brand img { width: 208px; } }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: var(--button-min-height); padding: .65rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius-button); font: 600 1rem/1.3 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--transition-standard); }
.button .icon, .text-link .icon { width: 1.15rem; height: 1.15rem; }
.button-primary { background: var(--color-cta); color: var(--color-cta-text); }
.button-primary:hover { background: #ff9433; color: var(--color-cta-text); }
.button-secondary { border-color: var(--btl-cyan); background: rgba(7, 21, 36, .6); color: var(--btl-white); }
.button-secondary:hover { background: var(--btl-midnight); color: var(--btl-white); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(34rem, 78vh, 46rem); }
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 21, 36, .94) 0%, rgba(7, 21, 36, .8) 38%, rgba(7, 21, 36, .25) 66%, rgba(7, 21, 36, 0) 100%); }
.hero-content { padding-block: var(--section-spacing); }
.hero h1 span { display: block; }
.hero-lead { max-width: 33rem; margin-bottom: 2rem; font-size: 1.1875rem; }

@media (max-width: 63.99rem) {
    .hero::after { background: linear-gradient(90deg, rgba(7, 21, 36, .9) 0%, rgba(7, 21, 36, .68) 55%, rgba(7, 21, 36, .12) 100%); }
}
/* Phones: the picture sits at the top and fades into navy behind the text. */
@media (max-width: 47.99rem) {
    .hero { display: block; min-height: 0; }
    .hero picture, .hero::after { inset: 0 0 auto; height: 27rem; }
    .hero-image { object-position: center top; }
    .hero::after { background: linear-gradient(180deg, rgba(7, 21, 36, 0) 40%, rgba(7, 21, 36, .82) 68%, var(--btl-navy) 100%); }
    .hero-content { padding-block: 16rem 2.5rem; }
    .hero h1 { text-shadow: 0 2px 12px rgba(7, 21, 36, .9); }
    .actions .button { flex: 1 1 15rem; }
}

/* Credibility strip */
.credentials { background: var(--btl-midnight); border-block: 1px solid var(--btl-border); }
.credentials ul { display: grid; gap: .75rem; padding-block: 1.5rem; }
.credentials li { display: flex; align-items: center; gap: .75rem; font: 600 1.125rem/1.3 var(--font-heading); }
.credentials .icon { width: 1.75rem; height: 1.75rem; color: var(--btl-cyan); }
@media (min-width: 48rem) {
    .credentials ul { grid-template-columns: repeat(3, 1fr); }
    .credentials li { justify-content: center; }
}

/* Sections */
.section { padding-block: var(--section-spacing); }
.section-alt { background: var(--btl-midnight); }
/* Divider echoing the logo's underline and speed stripes. */
.divided { margin-bottom: 2rem; }
.divided::after {
    content: ""; display: block; width: 7rem; height: 8px; margin-top: 1rem;
    background:
        linear-gradient(var(--btl-cyan) 0 0) left top / 5rem 8px,
        repeating-linear-gradient(var(--btl-cyan) 0 2px, transparent 2px 3px) right top / 1.6rem 8px;
    background-repeat: no-repeat;
}

.cards { display: grid; gap: 1.5rem; }
.card { overflow: hidden; background: var(--color-surface); border: 1px solid var(--btl-border); border-radius: var(--radius-card); }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body .icon { width: 2.25rem; height: 2.25rem; margin-bottom: .75rem; color: var(--btl-cyan); }
.card-body p { margin: 0; color: var(--btl-text-muted); }
@media (min-width: 40rem) and (max-width: 55.99rem) {
    .card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (min-width: 56rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.about { display: grid; gap: 2.5rem; align-items: center; }
.about .lead { font-size: 1.25rem; }
.about p:not(.lead) { color: var(--btl-text-muted); }
.about-image { width: 100%; max-width: 30rem; margin-inline: auto; border-radius: var(--radius-card); }
@media (min-width: 56rem) {
    .about { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 4rem; }
}

/* Contact */
.contact { position: relative; isolation: isolate; }
.contact-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 21, 36, .82); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4rem; } }
.contact-details h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .25rem; font-size: 1.125rem; }
.contact-details .icon { color: var(--btl-cyan); }
.contact-details p { margin-bottom: 1.75rem; color: var(--btl-text-muted); }

.form-note { color: var(--btl-text-muted); font-size: .95rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .65rem .9rem; background: var(--btl-midnight); border: 1px solid var(--input-border); border-radius: var(--radius-button); color: var(--btl-white); font: inherit; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.field-error { margin: .35rem 0 0; color: var(--error); font-size: .95rem; }
.notice { margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--btl-midnight); border-left: 4px solid; border-radius: var(--radius-button); }
.notice p:last-child, .notice ul:last-child { margin: 0; }
.notice-success { border-color: var(--btl-electric); }
.notice-error { border-color: var(--error); }
.notice-error a { color: inherit; }
/* Spam trap field: off screen for people. */
.form-extra { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding-block: 3rem 2rem; border-top: 1px solid var(--btl-border); color: var(--btl-text-muted); font-size: .95rem; }
.footer-columns { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-columns { grid-template-columns: 2fr 1.5fr 1fr; } }
.footer-name { color: var(--btl-white); font: 700 1.25rem/1.3 var(--font-heading); }
.site-footer a { display: inline-block; padding-block: .15rem; }
.footer-legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--btl-border); font-size: .75rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
