/*
===============================================================================
FILE: static/css/style.css

PURPOSE:
    Main stylesheet entry point and global design foundation for the Otis
    Execution Systems website.

UPDATED:
    July 15, 2026

RESPONSIBILITIES:
    [x] Load every modular OES stylesheet
    [x] Define global design tokens
    [x] Reset browser defaults
    [x] Establish typography and page background
    [x] Control global atmosphere layers
    [x] Provide shared HTML and body behavior

ARCHITECTURE:
    This file must remain the first stylesheet loaded by base.html.

    Component and feature styling belongs in:
        navigation.css
        buttons.css
        cards.css
        sections.css
        footer.css
        animations.css
        utilities.css
        responsive.css

    The Detroit hero experience is loaded separately through:
        hero-scene.css

IMPORTANT RULES:
    [x] All @import statements must remain before normal CSS rules
    [x] Do not rebuild component systems inside this file
    [x] Global variables should be defined here
    [x] Static asset paths must remain Flask-compatible
===============================================================================
*/

/* ==========================================================================
   MODULE IMPORTS
========================================================================== */

@import url("./navigation.css");
@import url("./buttons.css");
@import url("./cards.css");
@import url("./sections.css");
@import url("./footer.css");
@import url("./animations.css");
@import url("./utilities.css");
@import url("./responsive.css");

/* ==========================================================================
   DESIGN TOKENS
========================================================================== */

:root {
    color-scheme: dark;

    --oes-background: #020617;
    --oes-background-deep: #01040c;
    --oes-surface: #0f172a;
    --oes-surface-soft: rgba(15, 23, 42, 0.72);
    --oes-surface-strong: rgba(2, 6, 23, 0.92);

    --oes-white: #ffffff;
    --oes-text-primary: #f8fafc;
    --oes-text-secondary: #cbd5e1;
    --oes-text-muted: #94a3b8;

    --oes-blue: #38bdf8;
    --oes-blue-soft: #7dd3fc;
    --oes-blue-deep: #2563eb;

    --oes-green: #22c55e;
    --oes-green-soft: #86efac;

    --oes-yellow: #facc15;
    --oes-purple: #a855f7;
    --oes-pink: #ec4899;

    --oes-border:
        rgba(148, 163, 184, 0.16);

    --oes-border-blue:
        rgba(56, 189, 248, 0.3);

    --oes-shadow:
        0 28px 90px rgba(0, 0, 0, 0.38);

    --oes-shadow-large:
        0 42px 120px rgba(0, 0, 0, 0.48);

    --oes-glow-blue:
        0 0 40px rgba(56, 189, 248, 0.24);

    --oes-glow-green:
        0 0 40px rgba(34, 197, 94, 0.2);

    --oes-radius-small: 10px;
    --oes-radius-medium: 16px;
    --oes-radius-large: 26px;
    --oes-radius-panel: 36px;

    --oes-header-height: 82px;

    --oes-content-width: 1480px;
    --oes-content-wide: 1680px;

    --oes-transition-fast: 0.2s ease;
    --oes-transition-standard: 0.3s ease;
    --oes-transition-slow: 0.6s ease;
}

/* ==========================================================================
   RESET
========================================================================== */

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

* {
    margin: 0;
    padding: 0;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top:
        calc(
            var(--oes-header-height) +
            24px
        );
    background: var(--oes-background);
}

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--oes-text-primary);
    background: var(--oes-background);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.navigation-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
}

ul,
ol {
    list-style-position: inside;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY
========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--oes-text-primary);
    font-weight: 900;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

strong {
    font-weight: 900;
}

::selection {
    color: #020617;
    background: var(--oes-blue-soft);
}

/* ==========================================================================
   PAGE BACKGROUND
========================================================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 16% 24%,
            rgba(56, 189, 248, 0.2),
            transparent 31%
        ),
        radial-gradient(
            circle at 84% 16%,
            rgba(34, 197, 94, 0.12),
            transparent 29%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(37, 99, 235, 0.08),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #020617,
            #06111f 52%,
            #020617
        );
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: 0.82;
    background-image:
        linear-gradient(
            rgba(56, 189, 248, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(56, 189, 248, 0.035) 1px,
            transparent 1px
        );
    background-size: 72px 72px;
    animation:
        gridMove
        22s
        linear
        infinite;
}

/* ==========================================================================
   MAIN DOCUMENT STRUCTURE
========================================================================== */

main {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
}

main:focus {
    outline: none;
}

.site-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            transparent 42%,
            rgba(0, 0, 0, 0.28) 100%
        );
}

/* ==========================================================================
   SHARED LINKS
========================================================================== */

a {
    transition:
        color var(--oes-transition-fast),
        opacity var(--oes-transition-fast);
}

a:hover {
    text-decoration-thickness: 2px;
}

/* ==========================================================================
   SCROLLBAR
========================================================================== */

* {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(56, 189, 248, 0.45)
        rgba(2, 6, 23, 0.8);
}

*::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

*::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.88);
}

*::-webkit-scrollbar-thumb {
    border: 3px solid rgba(2, 6, 23, 0.88);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            rgba(56, 189, 248, 0.78),
            rgba(34, 197, 94, 0.62)
        );
}

*::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            #38bdf8,
            #22c55e
        );
}

/* ==========================================================================
   LOADING AND READY STATES
========================================================================== */

html:not(.oes-ready) .hero-copy-block,
html:not(.oes-ready) .oes-core-stage {
    opacity: 0;
}

html.oes-ready .hero-copy-block,
html.oes-ready .oes-core-stage {
    opacity: 1;
}

/* ==========================================================================
   FALLBACKS
========================================================================== */

@supports not (
    backdrop-filter: blur(10px)
) {
    .site-header,
    .glass-surface,
    .glass-panel,
    .product-card,
    .client-spotlight,
    .service-card,
    .capability-card,
    .community-card,
    .research-terminal,
    .about-panel,
    .contact-panel {
        background-color:
            rgba(2, 6, 23, 0.96);
    }
}

/* ==========================================================================
   PRINT
========================================================================== */

@media print {
    html,
    body {
        color: #000000;
        background: #ffffff;
    }

    body::before,
    body::after,
    .site-atmosphere {
        display: none;
    }
}

/* ==========================================================================
   REDUCED MOTION
========================================================================== */

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

    body::after {
        animation: none;
    }

    html:not(.oes-ready) .hero-copy-block,
    html:not(.oes-ready) .oes-core-stage {
        opacity: 1;
    }
}

/* ==========================================================================
   SAM.GOV FEDERAL REGISTRATION BANNER
========================================================================== */

.sam-banner {
    position: relative;
    overflow: hidden;
    margin-bottom: 72px;
    padding: 34px;
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(34, 197, 94, 0.15),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.94),
            rgba(2, 6, 23, 0.98)
        );
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(20px);
}

.sam-banner::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -150px;
    right: -90px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    filter: blur(45px);
    pointer-events: none;
}

.sam-banner__status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.sam-banner__dot {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 0 6px rgba(34, 197, 94, 0.09),
        0 0 20px rgba(34, 197, 94, 0.95);
    animation: sam-status-pulse 2.4s ease-in-out infinite;
}

.sam-banner__active {
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sam-banner__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sam-banner__item {
    min-width: 0;
    padding: 21px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.sam-banner__label {
    display: block;
    margin-bottom: 10px;
    color: #8ea9c3;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sam-banner__item strong {
    display: block;
    overflow-wrap: anywhere;
    color: #f8fafc;
    font-size: clamp(1.1rem, 2vw, 1.65rem);
    line-height: 1.2;
}

.sam-banner__item .sam-banner__green {
    color: #4ade80;
}

.sam-banner__note {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 24px 0 0;
    color: #aebed0;
    font-size: 0.92rem;
    line-height: 1.7;
}

@keyframes sam-status-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.16);
        opacity: 0.72;
    }
}

@media (max-width: 760px) {
    .sam-banner {
        margin-bottom: 48px;
        padding: 24px;
        border-radius: 22px;
    }

    .sam-banner__grid {
        grid-template-columns: 1fr;
    }

    .sam-banner__active {
        font-size: 0.76rem;
        letter-spacing: 0.1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sam-banner__dot {
        animation: none;
    }
}