﻿/* styles.css - Classic & Prestigious Overhaul */
:root {
    --navy: #0a192f;
    --navy-light: #112240;
    --gold: #c5a059;
    --gold-light: #e6c685;
    --cream: #f9f8f4;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #546e7a;
    --shadow: 0 4px 20px rgba(10, 25, 47, 0.08);
    --border: 1px solid rgba(10, 25, 47, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.brand img {
    height: 48px;
    width: auto;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle,
.menu-toggle {
    display: none;
}

.menu-toggle .close-icon {
    display: none;
}

#nav-toggle:checked+.menu-toggle .close-icon {
    display: block;
}

#nav-toggle:checked+.menu-toggle .open-icon {
    display: none;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7)), url('https://static.vecteezy.com/system/resources/thumbnails/066/020/131/small/a-patriotic-american-flag-background-with-stars-and-stripes-enhanced-by-a-soft-texture-and-gradient-overlay-perfect-for-designs-emphasizing-patriotism-and-national-pride-photo.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

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

.eyebrow {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    border-radius: 2px;
    /* Sharp edges for classic feel */
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:not(.ghost) {
    background: var(--gold);
    color: var(--navy);
    border: 2px solid var(--gold);
}

.btn:not(.ghost):hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn.ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
}

/* Cards */
.card-grid {
    display: grid;
    gap: 2rem;
}

.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid.four {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    background: var(--white);
    border: 1px solid rgba(10, 25, 47, 0.08);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--navy);
    transition: background 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card:hover::before {
    background: var(--gold);
}

.icon-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--navy);
    background: var(--cream);
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Dual Section */
.dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    padding: 5rem 2rem;
    /* Added horizontal padding for full-width background feel if wrapper allows, otherwise container handles it */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
}

.dual-section h2 {
    text-align: left;
    left: 0;
    transform: none;
}

.dual-section h2::after {
    margin: 1rem 0 0;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.checklist li i {
    color: var(--gold);
    margin-top: 0.3rem;
}

/* Stay Connected */
.stay-connected {
    background: var(--navy);
    color: var(--white);
    border-radius: 4px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.stay-connected h2 {
    color: var(--white);
    text-align: left;
    left: 0;
    transform: none;
    margin-bottom: 0.5rem;
}

.stay-connected h2::after {
    display: none;
}

.stay-connected p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.stay-connected .btn {
    background: var(--gold);
    color: var(--navy);
    border: none;
}

.stay-connected .btn:hover {
    background: var(--gold-light);
}

/* Footer */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-content {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 2rem 3rem;
}

.footer-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-middle {
    justify-self: center;
}

.footer-right {
    justify-self: end;
    text-align: right;
}

.footer-logo {
    height: 60px;
    opacity: 0.9;
}

.freedom-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 800;
}



/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: none;
        /* Hidden checkbox */
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        color: var(--navy);
        cursor: pointer;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 3px solid var(--gold);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    #nav-toggle:checked~.nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

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

    .dual-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stay-connected {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .stay-connected h2 {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .footer-right {
        text-align: center;
        justify-self: center;
    }
}

/* Constitution Styles */
.constitution {
    background: var(--white);
    padding: 4rem;
    border: 1px solid rgba(10, 25, 47, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 4rem;
}

.constitution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(45deg,
            var(--navy),
            var(--navy) 10px,
            var(--gold) 10px,
            var(--gold) 20px);
}

.constitution article {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.constitution article:last-child {
    border-bottom: none;
}

.constitution h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.constitution h3::before {
    content: '§';
    color: var(--gold);
    font-size: 1.2em;
}

/* Animations */
html {
    scroll-behavior: smooth;
}

/* Base Animation Class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Refined Button Hover */
.btn {
    /* ... existing styles ... */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn:not(.ghost):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Refined Card Hover */
.card {
    /* ... existing styles ... */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(10, 25, 47, 0.12);
}

/* Nav Link Hover */
.nav-links a::after {
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Remove old animation classes if any */
.fade-in {
    /* Legacy support or remove if unused */
    animation: none;
    opacity: 1;
    transform: none;
}