/* Maya Global Styles - Used Across All Pages */

:root {
    /* Creator-First Energy Palette - Maya Brand Red */
    --primary: #dc3b26;
    --primary-dark: #b92f1c;
    --accent: #ef5844;
    --accent-light: #f87f71;
    --success: #10B981;
    --danger: #EF4444;
    --background: #FFFFFF;
    --surface: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #dc3b26 0%, #ef5844 100%);
    --gradient-accent: linear-gradient(135deg, #ef5844 0%, #f87f71 100%);
    --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #111827;
    background: #ffffff;
}

h1, h2, h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

/* Header Container - Must be sticky */
#header-container {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navigation Styles */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

header.scrolled {
    border-bottom: 1px solid rgba(220, 59, 38, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Sora', sans-serif;
}

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

.nav-links a {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    transition: color 0.3s;
}

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

.cta-button,
.nav-cta {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(220, 59, 38, 0.2);
}

.cta-button:hover,
.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(220, 59, 38, 0.3);
}

/* Footer Styles - Single Source of Truth */
footer {
    background: linear-gradient(180deg, #111827 0%, #1F2937 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 1.05rem;
    color: white;
}

.footer-links h4 {
    margin-bottom: 1.25rem;
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.2s;
    display: block;
    padding: 0.4rem 0;
    font-size: 1.05rem;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(4px);
    color: var(--accent-light);
}

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

.footer-bottom p {
    color: white;
}

/* Hide mobile-only CTA on desktop */
.mobile-nav-cta {
    display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line + .hamburger-line {
    margin-top: 6px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Mobile CTA in nav menu */
    .mobile-nav-cta {
        display: block;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .mobile-nav-cta a {
        display: block;
        background: var(--primary);
        color: white !important;
        text-align: center;
        padding: 1rem !important;
        border-radius: 12px;
        font-weight: 600;
        border-bottom: none !important;
    }

    .mobile-nav-cta a:hover {
        background: var(--primary-hover);
    }

    nav {
        position: relative;
    }

    header .cta-button {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}