/* base.css — design tokens, reset, base elements, container, focus, motion */

/* Design tokens */
:root {
    --navy: #102B4C;
    --navy-deep: #091E36;
    --blue: #5BC0E8;
    --sky: #B7E2F8;
    --off-white: #F8F9FA;
    --white: #FFFFFF;
    --ink: #17324E;
    --muted: #617286;
    --line: #D8E4EC;
    --error: #A8323A;
    --success: #16704A;
    --shadow: 0 24px 70px rgba(16, 43, 76, 0.13);
    --radius: 18px;
    --container: 1180px;
}

/* Reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--off-white);
    font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    color: var(--white);
    background: var(--navy);
    border-radius: 8px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Shared heading scale used by hero, page-hero, intro, section headings, platform, CTA, contact */
.hero h1,
.page-hero h1,
.intro-section h2,
.section-heading h2,
.platform-copy h2,
.cta-inner h2,
.contact-details h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(2.35rem, 5vw, 4.45rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

/* Shared dark-heading color and smaller scale for content (non-hero) sections */
.intro-section h2,
.section-heading h2,
.platform-copy h2,
.contact-details h2 {
    color: var(--navy);
    font-size: clamp(2rem, 3.6vw, 3.15rem);
}

/* Focus ring */
:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ── Eyebrow label (used by hero, page-hero, contact details) ───── */
.eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow-dark {
    color: #277FA8;
}

/* ── Buttons & text links (used on every page) ─────────────────── */
.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 13px 22px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-primary {
    color: var(--navy);
    background: var(--blue);
    box-shadow: 0 12px 30px rgba(91, 192, 232, 0.2);
}

.button-primary:hover {
    background: #74CBEF;
    box-shadow: 0 16px 36px rgba(91, 192, 232, 0.28);
}

.button-light {
    color: var(--navy);
    background: var(--off-white);
}

.text-link {
    font-weight: 800;
    text-decoration: none;
}

.text-link-light {
    color: var(--off-white);
}

.text-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 5px;
}
