/* ==========================================================================
   Alpha International — tokens, base, typography, layout
   Components live in components.css. Mobile-first: min-width queries only.
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/manrope-latin-var.woff2") format("woff2");
}

/* Tokens ----------------------------------------------------------------- */

:root {
    /* Brand — sampled from the logo (#005CA8) */
    --color-primary: #005CA8;
    --color-primary-dark: #00467F;
    --color-primary-light: #E6F0F8;
    --color-accent: #7FB2DE;          /* steel-sky tint, use sparingly */

    --color-navy: #0A1C2E;
    --color-navy-2: #10263C;
    --color-charcoal: #1E2833;
    --color-white: #FFFFFF;
    --color-bg: #F4F7FA;
    --color-border: #DFE6ED;
    --color-text: #1E2833;
    --color-muted: #5E6B78;
    --color-input-border: #8795A3;   /* 3:1 against white (WCAG 1.4.11) */
    --color-placeholder: #6B7784;    /* 4.5:1 against white */
    --color-on-dark: #E8EEF4;
    --color-on-dark-muted: #9FB0C2;
    --color-line-dark: rgba(255, 255, 255, 0.12);

    --color-success: #1E7A4C;
    --color-error: #B3261E;

    /* Typography */
    --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --fw-regular: 400;
    --fw-semibold: 600;
    --fw-bold: 700;

    --fs-hero: clamp(2.25rem, 1.35rem + 3.8vw, 4.25rem);
    --fs-page: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
    --fs-section: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
    --fs-subheading: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
    --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    --fs-body: 1rem;
    --fs-small: 0.9375rem;
    --fs-caption: 0.8125rem;
    --fs-nav: 0.9375rem;
    --fs-button: 0.9375rem;

    --lh-tight: 1.15;
    --lh-heading: 1.25;
    --lh-body: 1.65;

    /* Spacing */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-section: clamp(4rem, 2.8rem + 5vw, 7.5rem);

    /* Layout */
    --container: 1240px;
    --container-narrow: 760px;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
    --header-h: 4.5rem;

    /* Shape & depth */
    --radius-sm: 4px;
    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(10, 28, 46, 0.06);
    --shadow: 0 10px 30px -12px rgba(10, 28, 46, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur-fast: 150ms;
    --dur: 250ms;
    --dur-slow: 600ms;
}

@media (min-width: 960px) {
    :root { --header-h: 5.5rem; }
}

/* Reset ------------------------------------------------------------------ */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main { flex: 1; }
main:focus { outline: none; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, address { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }

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

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--color-primary-dark); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

::selection { background: var(--color-primary); color: var(--color-white); }

/* Typography ------------------------------------------------------------- */

h1, h2, h3, h4 {
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    letter-spacing: -0.015em;
    color: var(--color-charcoal);
    text-wrap: balance;
}


.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    background: currentColor;
}
.eyebrow--light { color: var(--color-accent); }

.lead { font-size: var(--fs-lead); color: var(--color-muted); }

.prose > * + * { margin-top: var(--space-md); }
.prose h2 { font-size: var(--fs-section); margin-top: var(--space-xl); }
.prose h3 { font-size: var(--fs-subheading); margin-top: var(--space-lg); }
.prose ul { padding-left: 1.25rem; }
.prose { max-width: var(--container-narrow); }
.prose > .eyebrow + * { margin-top: 0; }
.prose--legal h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }

/* Layout ----------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--muted { background: var(--color-bg); }
.section--dark { background: var(--color-navy); color: var(--color-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--tight { padding-block: var(--space-2xl); }

.section-header {
    max-width: 44rem;
    margin-bottom: var(--space-xl);
}
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center .eyebrow::before { display: none; }
.section-title { font-size: var(--fs-section); }
.section-intro { margin-top: var(--space-sm); font-size: var(--fs-lead); color: var(--color-muted); }
.section--dark .section-intro { color: var(--color-on-dark-muted); }

.grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}
.grid > li { display: flex; }
.grid > li > * { flex: 1; }

@media (min-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
    display: grid;
    gap: var(--space-xl);
}
@media (min-width: 960px) {
    .split { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
}

/* Utilities -------------------------------------------------------------- */

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

.scroll-marker { position: absolute; top: 24px; left: 0; width: 1px; height: 1px; pointer-events: none; }

.skip-link {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    z-index: 200;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-sm);
    transform: translateY(-200%);
    transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: none; color: var(--color-white); }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

/* Reduced motion --------------------------------------------------------- */

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