/* ==========================================================================
   TNAADO Main CSS
   Import this on EVERY page for base styles
   Then add page-specific CSS file after this
   ========================================================================== */

/* ==================== Base Styles ==================== */
@import url('./base/variables.css');
@import url('./base/reset.css');
@import url('./base/typography.css');
@import url('./base/utilities.css');

/* ==================== Component Styles ==================== */
@import url('./components/buttons.css');
@import url('./components/animations.css');

/* ==================== Mobile Global Fixes ==================== */
/* Must be last import so it overrides everything above */
@import url('./mobile-global.css');

/* ==========================================================================
   Global Body Styles
   ========================================================================== */
body {
    font-family: var(--font-primary);
    background: var(--bone);
    color: var(--gray-900);
    line-height: var(--leading-normal);
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: var(--spacing-16) 0;
    position: relative;
    z-index: var(--z-10);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-4);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--bone);
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Card Base Styles
   ========================================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   Badge Styles
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-2) var(--spacing-4);
    background: rgba(168, 19, 39, 0.1);
    border-radius: var(--radius-full);
    color: var(--cobalt);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge i {
    margin-right: var(--spacing-2);
}

/* Status badges */
.badge-success { background: var(--color-success-light); color: var(--color-success); }
.badge-warning { background: var(--color-warning-light); color: var(--color-warning); }
.badge-error { background: var(--color-error-light); color: var(--color-error); }
.badge-info { background: var(--color-info-light); color: var(--color-info); }

/* ==========================================================================
   Form Base Styles
   ========================================================================== */
.form-group {
    margin-bottom: var(--spacing-4);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-2);
    font-weight: var(--font-medium);
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    outline: none;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--cobalt);
}

.form-input::placeholder {
    color: var(--gray-400);
}

/* ==========================================================================
   Responsive Container
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        padding-left: var(--spacing-6);
        padding-right: var(--spacing-6);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-12) 0;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .container {
        padding-left: var(--spacing-4);
        padding-right: var(--spacing-4);
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-8) 0;
    }

    .section-title {
        font-size: var(--text-2xl);
    }
}

/* ==========================================================================
   Atmospheric video background (Sora) — shared across all pages.
   Used on hero/section-level wrappers via .has-video. The video sits at z:0,
   the dark overlay at z:1, and lifted content at z:2. Mobile and reduced-data
   drop the video to keep transfer light.
   ========================================================================== */
.has-video {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    background: #0a0a0a;
    filter: contrast(1.05) saturate(0.92);
}

.section-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.55) 0%,
            rgba(10, 10, 10, 0.72) 50%,
            rgba(10, 10, 10, 0.88) 100%
        );
}

.has-video > *:not(.section-bg-video):not(.section-bg-overlay) {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .section-bg-video {
        display: none;
    }
    .section-bg-overlay {
        background: #0a0a0a;
    }
}

@media (prefers-reduced-data: reduce) {
    .section-bg-video {
        display: none;
    }
}

/* ==========================================================================
   Generic page-hero shell — used by pages that do not have their own custom
   hero classes (e.g. faq). Designed to read with .has-video for the Sora
   atmospheric background.
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 38vh;
    padding: 96px 32px 64px;
    background: #0a0a0a;
    color: #f5f1ea;
}

.page-hero__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.72);
    margin: 0;
}

.page-hero__eyebrow-rule {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: #c8102e;
}

.page-hero__headline {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #f5f1ea;
    margin: 0;
}

.page-hero__headline em {
    font-style: italic;
    color: #c8102e;
}

.page-hero__lede {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
    color: rgba(245, 241, 234, 0.78);
    margin: 0;
    max-width: 640px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 72px 20px 48px;
        min-height: 32vh;
    }
}