/*
====================================================================
VTA GLOBAL STYLES - Virginia Taekwondo Association
Universal CSS for consistent header, footer, and common components
Last Updated: 2026-02-05
====================================================================
*/

/* ============================================
   CSS VARIABLES (DESIGN TOKENS)
   ============================================ */
:root {
    --primary-navy: #002868;
    --primary-red: #BF0A30;
    --accent-gold: #FFB81C;
    --dark-gray: #1a1a1a;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    
    /* Spacing */
    --nav-height: 80px;
    --container-max-width: 1400px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION HEADER
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 40, 104, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    color: var(--white);
}

.logo-text h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-text p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-fast);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: all var(--transition-fast);
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

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

.footer-section h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

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

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   COMMON COMPONENTS
   ============================================ */

/* Page Headers */
.page-header {
    margin-top: var(--nav-height);
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.95), rgba(191, 10, 48, 0.9));
    padding: 6rem 2rem 4rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(191, 10, 48, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 184, 28, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.page-header p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* Containers */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(191, 10, 48, 0.4);
}

.btn-primary:hover {
    background: #a00828;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(191, 10, 48, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--primary-navy);
    color: var(--accent-gold);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-navy);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    /* Navigation - Mobile */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(0, 40, 104, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: left var(--transition-fast);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a::after {
        display: none;
    }

    /* Logo - Mobile */
    .logo-image {
        width: 45px;
        height: 45px;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }

    .logo-text p {
        font-size: 0.6rem;
    }

    /* Page Header - Mobile */
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    /* Section Header - Mobile */
    .section-header h2 {
        font-size: 2.5rem;
    }

    /* Footer - Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet Breakpoint */
@media (max-width: 968px) and (min-width: 769px) {
    .logo-text h1 {
        font-size: 1.6rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }
}
