/* ================================================
   MERIDIAN VEGA - Main Stylesheet
   Engineering Excellence Without Compromise
   
   Copyright (c) 2025-Perpetuity Meridian Vega. All rights reserved.
   Author: Zachariah Ayers
   
   This file contains proprietary code owned by Meridian Vega.
   Unauthorized copying, modification, or distribution is prohibited.
   ================================================ */

/* ================================================
   ROOT VARIABLES - Brand Guide Colors
   ================================================ */
:root {
    /* Core Aviation Heritage Colors */
    --signal-red: #CC0000;
    --insignia-blue: #003087;
    --chrome-yellow: #FFD700;
    --aircraft-gray: #92999E;
    --cream-white: #F5F5DC;
    
    /* Professional Enterprise Adaptation */
    --aviation-blue: #354F58;
    --heritage-red: #B22222;
    --brass-gold: #B5A642;
    --technical-gray: #8A8D8F;
    --off-white: #FAFAFA;
    --deep-navy: #2B3A67;
    
    /* UI Colors */
    --text-primary: #1A2633;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E0;
    --white: #FFFFFF;
    --shadow-light: rgba(53, 79, 88, 0.1);
    --shadow-medium: rgba(53, 79, 88, 0.2);
}

/* ================================================
   RESET & BASE STYLES
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--off-white);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* ================================================
   TYPOGRAPHY SYSTEM - Per Brand Guide
   ================================================ */
h1, .h1 {
    font-family: 'Outfit', 'Futura PT', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-family: 'Outfit', 'Futura PT', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3, .h3 {
    font-family: 'Lato', 'Gill Sans Nova', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
}

h4, h5, h6 {
    font-family: 'Lato', 'Gill Sans Nova', sans-serif;
    font-weight: 600;
}

/* ================================================
   LAYOUT CONTAINERS
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
header {
    background: var(--white);
    border-bottom: 3px solid var(--aviation-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    min-height: 80px;
}

.logo {
    font-family: 'Outfit', 'Futura PT', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--aviation-blue);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--heritage-red);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--aviation-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--heritage-red) 0%, var(--signal-red) 100%);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--signal-red) 0%, var(--heritage-red) 100%);
    transform: translateY(-1px);
}

/* ================================================
   MOBILE NAVIGATION
   ================================================ */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--aviation-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--aviation-blue);
    box-shadow: 0 8px 32px var(--shadow-medium);
    z-index: 999;
    padding: 24px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    background: linear-gradient(135deg, var(--aviation-blue) 0%, var(--deep-navy) 100%);
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 32px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 24px;
    color: var(--cream-white);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-weight: 400;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--heritage-red) 0%, var(--signal-red) 100%);
    color: var(--white);
    padding: 20px 40px;
    border: none;
    border-radius: 28px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.4);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(178, 34, 34, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--cream-white);
    padding: 20px 40px;
    border: 2px solid var(--brass-gold);
    border-radius: 28px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-secondary:hover {
    background: var(--brass-gold);
    color: var(--aviation-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 166, 66, 0.3);
}

/* ================================================
   CARDS
   ================================================ */
.card {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 48px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px var(--shadow-light);
    position: relative;
}

.card:hover {
    border-color: var(--heritage-red);
    box-shadow: 0 8px 40px var(--shadow-medium);
    transform: translateY(-8px);
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--text-primary);
    color: var(--cream-white);
    padding: 80px 0 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--heritage-red) 0%, var(--brass-gold) 50%, var(--heritage-red) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-family: 'Outfit', 'Futura PT', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section h4 {
    font-weight: 700;
    color: var(--brass-gold);
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 16px;
}

.footer-section ul li a {
    color: var(--cream-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--brass-gold);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--brass-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brass-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--brass-gold);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Contact Section Styling */
.footer-contact {
    margin-top: 8px;
}

.contact-phone,
.contact-email {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-phone {
    color: var(--chrome-yellow);
}

.contact-email {
    color: var(--brass-gold);
}

.contact-meta {
    font-size: 14px;
    color: var(--cream-white);
    opacity: 0.8;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 220, 0.2);
    padding-top: 32px;
    text-align: center;
    font-size: 14px;
    color: var(--cream-white);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .nav-cta {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    h1, .h1 {
        font-size: 36px;
    }
    
    h2, .h2 {
        font-size: 32px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero .subtitle {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ================================================
   ART DECO ELEMENTS - Per Brand Guide
   ================================================ */
.deco-line {
    position: relative;
    display: inline-block;
}

.deco-line::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--brass-gold) 50%, transparent 100%);
}

/* Horizontal Speed Lines */
.speed-lines {
    position: relative;
    overflow: hidden;
}

.speed-lines::before,
.speed-lines::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--brass-gold) 100%);
}

.speed-lines::before {
    left: -120px;
}

.speed-lines::after {
    right: -120px;
    background: linear-gradient(90deg, var(--brass-gold) 0%, transparent 100%);
}

/* Sunburst Pattern */
.sunburst {
    position: relative;
}

.sunburst::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center,
        transparent 30%,
        rgba(181, 166, 66, 0.05) 30%,
        rgba(181, 166, 66, 0.05) 32%,
        transparent 32%,
        transparent 38%,
        rgba(181, 166, 66, 0.03) 38%,
        rgba(181, 166, 66, 0.03) 40%,
        transparent 40%
    );
    pointer-events: none;
}

/* Gauge-style elements */
.gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--brass-gold);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--aviation-blue) 0%, var(--deep-navy) 100%);
}

.gauge-value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
}

.gauge-label {
    position: absolute;
    bottom: -30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* ================================================
   AVIATION TOGGLE SWITCH - Per Brand Guide
   ================================================ */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 48px 0;
}

.toggle-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--aviation-blue);
}

.toggle-switch {
    position: relative;
    width: 120px;
    height: 48px;
    background: var(--technical-gray);
    border-radius: 24px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream-white) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch.active {
    background: linear-gradient(135deg, var(--heritage-red) 0%, var(--signal-red) 100%);
}

.toggle-switch.active::before {
    transform: translateX(72px);
}

/* Countdown Timer */
.countdown-banner {
    background: linear-gradient(135deg, var(--heritage-red) 0%, var(--aviation-blue) 100%);
    color: var(--white);
    padding: 16px;
    text-align: center;
    font-weight: 600;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(53, 79, 88, 0.2);
}

.countdown-timer {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Risk Calculator */
.risk-calculator {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 64px;
    margin: 80px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 20px 40px rgba(0,0,0,0.08);
}

.risk-assessment-container {
    max-width: 480px;
    margin: 64px auto 0;
}

.risk-score-display {
    font-size: 96px;
    font-weight: 200;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--aviation-blue);
    margin-bottom: 8px;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.risk-score-display.medium {
    color: #ff9500;
}

.risk-score-display.high {
    color: #ff3b30;
}

.risk-score-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-assessment-bar {
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.04);
    border-radius: 2px;
    overflow: hidden;
    margin: 32px 0 16px;
}

.risk-assessment-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--aviation-blue);
}

.risk-assessment-fill.medium {
    background: #ff9500;
}

.risk-assessment-fill.high {
    background: #ff3b30;
}

.risk-assessment-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0,0,0,0.4);
    margin-bottom: 40px;
}

.risk-message {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    padding: 24px 32px;
    border-radius: 12px;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    min-height: auto;
}

/* ================================================
   UTILITIES
   ================================================ */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gap-4 {
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

