/* ==========================================================================
   FALCON TMS — Base Reset, Typography & Accessibility Primitives
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text-primary);
    background-color: var(--color-bg-page);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

/* Keyboard Focus Ring */
:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
}

/* Skip Link & Screen Reader Only */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 2000;
    background: var(--color-red);
    color: var(--color-white);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn--lg {
    padding: 12px 22px;
    font-size: 15px;
}

.btn--full {
    width: 100%;
}

.btn--primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.btn--primary:hover {
    background-color: var(--color-red-hover);
    border-color: var(--color-red-hover);
}

.btn--outline-light {
    background-color: rgba(15, 18, 23, 0.45);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: var(--color-white);
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-text-primary);
    border-color: var(--color-white);
}

.btn--white:hover {
    background-color: var(--color-bg-surface);
}

/* Section Scaffolding */
.section {
    padding-block: var(--section-space);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 1.95rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--color-text-primary);
    letter-spacing: 0.01em;
}

.section-title--light {
    color: var(--color-white);
}

.section-title__bar {
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 8px;
    background-color: var(--color-red);
}

.section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-red);
}

.section-head__link:hover {
    color: var(--color-red-hover);
}

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

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-red);
}

.text-link:hover {
    color: var(--color-red-hover);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
    background-color: var(--color-bg-surface);
    color: var(--color-red);
}

[hidden] {
    display: none !important;
}

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