/**
 * IBEW Local 19 - Public Site Styles
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --union-maroon: #8B2332;
    --union-maroon-dark: #6B1A26;
    --union-gold: #D4A83D;
    --union-gold-light: #E5C04E;
    --union-navy: #1E3A5F;
    --union-navy-dark: #152A45;
    --warm-white: #FAFAF8;
    --text-primary: #2D2D2D;
    --text-muted: #6B6B6B;
    --border-subtle: rgba(139,35,50,0.1);
}

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

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-primary);
    background: var(--warm-white);
    line-height: 1.6;
}

a {
    color: var(--union-maroon);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--union-maroon-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: var(--union-navy-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.top-bar {
    background: var(--union-maroon);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--union-gold);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

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

.logo img {
    height: 140px;
    width: auto;
}

.logo-text {
    color: white;
}

.logo-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--union-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.1);
    color: var(--union-gold);
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--union-navy) 0%, var(--union-navy-dark) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--union-maroon);
    color: white;
}

.btn-primary:hover {
    background: var(--union-maroon-dark);
    color: white;
}

.btn-secondary {
    background: var(--union-navy);
    color: white;
}

.btn-secondary:hover {
    background: var(--union-navy-dark);
    color: white;
}

.btn-gold {
    background: var(--union-gold);
    color: var(--union-navy-dark);
}

.btn-gold:hover {
    background: var(--union-gold-light);
    color: var(--union-navy-dark);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--union-maroon);
    box-shadow: 0 0 0 3px rgba(139, 35, 50, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--union-navy-dark);
    color: white;
    padding: 0;
    margin-top: 2rem;
}

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

.footer-section h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--union-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

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

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.25rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--union-navy-dark);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
    }
    
    nav {
        position: relative;
    }
    
    .page-header {
        padding: 2rem 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .top-bar {
        padding: 0.5rem 1rem;
        gap: 1rem;
        font-size: 0.75rem;
    }
    
    nav {
        padding: 0.75rem 1rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
    }
}