/* Alexandria ARES - Main Stylesheet */

/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */

:root {
    /* Colors - Scheme 5 (Hybrid) */
    --header-dark: #1e293b;
    --content-bg: #ffffff;
    --content-bg-alt: #f8fafc;
    --primary-blue: #3b82f6;
    --alert-red: #dc2626;
    --success-green: #10b981;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Typography - Oswald + Inter */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--content-bg-alt);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
    background: var(--header-dark);
    border-bottom: 3px solid var(--alert-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.resources-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.resources-btn:hover {
    background: #2563eb;
}

.app-drawer-icon::before {
    content: '⋮⋮⋮';
    font-size: 18px;
    letter-spacing: -2px;
    line-height: 1;
}

/* ==========================================================================
   Resources Panel (App Drawer)
   ========================================================================== */

.resources-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--header-dark);
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    padding: 2rem;
    padding-top: 5rem;
}

.resources-panel.open {
    right: 0;
}

.panel-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.panel-close:hover {
    color: white;
}

.panel-section {
    margin-bottom: 2rem;
}

.panel-section h3 {
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.panel-link {
    display: block;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: background 0.3s;
}

.panel-link:hover {
    background: rgba(255,255,255,0.1);
}

.panel-link h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.panel-link p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* ==========================================================================
   Disclaimer Modal
   ========================================================================== */

.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    padding: 3rem;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.disclaimer-text {
    color: var(--text-medium);
    line-height: 1.7;
}

.disclaimer-text p {
    margin-bottom: 1rem;
}

.disclaimer-text strong {
    color: var(--text-dark);
}

/* ==========================================================================
   Page Headers
   ========================================================================== */

.page-header {
    background: var(--primary-blue);
    color: white;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.page-header.green {
    background: linear-gradient(135deg, var(--success-green), #059669);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(30, 58, 138, 0.95)),
                url('https://images.unsplash.com/photo-1484788984921-03950022c9ef?w=1600&q=80') center/cover;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--alert-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ==========================================================================
   Info Banner
   ========================================================================== */

.info-banner {
    background: #d97706;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--content-bg-alt);
    transform: translateY(-2px);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.section-subtitle {
    color: var(--text-medium);
    font-size: 1.125rem;
}

.section p {
    color: var(--text-medium);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.section ul {
    color: var(--text-medium);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.section strong {
    color: var(--text-dark);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

.serve-grid,
.capabilities-grid,
.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.serve-card,
.capability-card,
.partnership-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.serve-card {
    border-left: 4px solid var(--primary-blue);
}

.capability-card:hover,
.partnership-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.partnership-card {
    border-top: 4px solid var(--primary-blue);
}

.serve-card h3,
.capability-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.capability-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.serve-card p,
.capability-card p {
    color: var(--text-medium);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.capability-card p {
    font-size: 1.0625rem;
}

/* ==========================================================================
   Repeater Info Card
   ========================================================================== */

.repeater-card {
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 0.75rem;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.repeater-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.repeater-sponsor {
    color: var(--text-medium);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.freq-display {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.5rem 0;
}

.repeater-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.repeater-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-medium);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Info Boxes & Highlights
   ========================================================================== */

.info-box,
.highlight-box {
    background: var(--content-bg-alt);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.success-box {
    background: #ecfdf5;
    border-left: 4px solid var(--success-green);
}

.info-box h3,
.info-box h4,
.highlight-box h4,
.success-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    margin-top: 0;
    font-weight: 600;
}

.success-box h3 {
    color: var(--success-green);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
    color: white;
    padding: 3rem;
    border-radius: 0.75rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    margin-top: 0;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    margin-top: 0;
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.5),
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 3px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Iframe Embeds
   ========================================================================== */

.iframe-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.iframe-container iframe {
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
}

.iframe-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.iframe-note a {
    color: var(--primary-blue);
    text-decoration: none;
}

.iframe-note a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--header-dark);
    color: rgba(255,255,255,0.9);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .logo-main {
        font-size: 1.1rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
    
    h1, .page-header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
        padding: 3rem 1rem;
    }
    
    .resources-panel {
        width: 100%;
        right: -100%;
    }
    
    .freq-display {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .serve-grid,
    .capabilities-grid,
    .partnership-grid {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .logo-main {
        font-size: 1.25rem;
    }
}
