/* =============================================
   Americans for Freedom and Liberty - Styles
   Updated: Jan 28, 2026
   ============================================= */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a365d;
    --navy-light: #2c5282;
    --gold: #b8860b;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --text-dark: #212529;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

/* =============================================
   Navigation
   ============================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-logo span {
    font-weight: 400;
    font-style: italic;
}

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

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

/* =============================================
   Hero Section (Homepage)
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero2.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 54, 93, 0.7) 0%,
        rgba(26, 54, 93, 0.5) 50%,
        rgba(26, 54, 93, 0.7) 100%
    );
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    color: var(--white);
}

.hero-title {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    font-weight: 400;
    font-style: italic;
    font-size: 2.5rem;
}

.hero-tagline {
    font-family: Georgia, serif;
    font-size: 1.75rem;
    font-style: italic;
    color: var(--white);
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.8s forwards;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-intro {
    margin-top: 2rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Page Header (Inner Pages)
   ============================================= */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* =============================================
   Content Sections
   ============================================= */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--off-white);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* =============================================
   Cards
   ============================================= */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.card h3 {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* =============================================
   Lists
   ============================================= */
.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

/* =============================================
   Leadership Profile
   ============================================= */
.profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gray-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--navy);
}

.profile-content {
    flex: 1;
}

.profile-title {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-info {
    text-align: center;
    padding: 3rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
}

.contact-info h2 {
    color: var(--white);
}

.contact-email {
    font-size: 1.5rem;
    color: var(--white);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

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

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    font-family: Georgia, serif;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        position: fixed;
        z-index: 9999;
    }

    .nav-toggle {
        display: flex;
        z-index: 10000;
        padding: 10px;
        margin: -10px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 0;
        gap: 0;
        z-index: 9998;
    }

    .nav-links.active {
        display: flex;
    }

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

    .nav-links a {
        display: block;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title span {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        width: 180px !important;
        height: 180px !important;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    /* Fix email overflow on mobile */
    .contact-info {
        padding: 2rem 1rem;
        overflow: hidden;
    }

    .contact-email {
        font-size: 0.95rem;
        word-break: break-all;
        display: inline-block;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-title span {
        font-size: 1.5rem;
        display: block;
    }

    .contact-email {
        font-size: 0.85rem;
    }
}
