/* ============================================
   Covington VFW Post 8945 — Stylesheet
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

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

:root {
    --forest-950: #041a0e;
    --forest-900: #072e17;
    --forest-800: #0b4a24;
    --forest-700: #0f6331;
    --forest-600: #147d3e;
    --forest-500: #1a994b;
    --forest-400: #2bb860;
    --forest-300: #52d482;
    --forest-200: #90e8b0;
    --forest-100: #c8f5d8;
    --forest-50:  #e8faf0;

    --cream-950: #1a1a16;
    --cream-900: #2a2a24;
    --cream-800: #3a3a34;
    --cream-700: #5a5a54;
    --cream-600: #7a7a74;
    --cream-500: #9a9a94;
    --cream-400: #b8b8b0;
    --cream-300: #d4d4cc;
    --cream-200: #e8e8e0;
    --cream-100: #f4f4ef;
    --cream-50:  #fafaf6;
    --cream-25:  #fdfcfa;

    --gold-500: #c8a84e;
    --gold-400: #d4b860;
    --gold-300: #e0c878;

    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Inter', 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 2px rgba(4, 26, 14, 0.06);
    --shadow-md: 0 4px 16px rgba(4, 26, 14, 0.08);
    --shadow-lg: 0 8px 32px rgba(4, 26, 14, 0.12);
    --shadow-xl: 0 16px 48px rgba(4, 26, 14, 0.16);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--cream-900);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(4, 26, 14, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(250, 250, 246, 0.97);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--forest-800);
    letter-spacing: -0.01em;
}

.nav-brand-icon {
    font-size: 1.3rem;
    color: var(--forest-600);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cream-700);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--forest-600);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--forest-700);
}

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

.nav-cta {
    background: var(--forest-800);
    color: var(--cream-50) !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem !important;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--forest-700);
    color: var(--cream-50) !important;
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cream-800);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(15, 99, 49, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(20, 125, 62, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse 70% 70% at 50% 80%, rgba(11, 74, 36, 0.6) 0%, transparent 50%),
        linear-gradient(165deg, #041a0e 0%, #0b4a24 30%, #147d3e 55%, #0f6331 75%, #072e17 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest-200);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--cream-50);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--forest-200);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: var(--cream-300);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-details {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--cream-400);
}

.hero-detail a {
    color: var(--cream-300);
    transition: color 0.2s ease;
}

.hero-detail a:hover {
    color: var(--cream-50);
}

.hero-detail svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--cream-50);
    color: var(--forest-800);
}

.btn-primary:hover {
    background: var(--cream-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--cream-200);
    border: 1.5px solid rgba(200, 245, 216, 0.35);
}

.btn-secondary:hover {
    border-color: var(--cream-200);
    background: rgba(250, 250, 246, 0.08);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--cream-400);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Section Shared --- */
.section {
    padding: 110px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--forest-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cream-600);
    font-weight: 300;
}

/* --- About --- */
.about {
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content {
    padding: 16px 0;
}

.about-content p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--cream-700);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-200);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream-500);
}

/* --- Features --- */
.features {
    background: var(--cream-25);
    border-top: 1px solid var(--cream-200);
    border-bottom: 1px solid var(--cream-200);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--forest-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-50);
    border: 1px solid var(--forest-100);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--forest-700);
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--cream-600);
    font-weight: 300;
}

/* --- Community --- */
.community {
    background: var(--forest-900);
    color: var(--cream-50);
    overflow: hidden;
}

.community .section-eyebrow {
    color: var(--forest-300);
}

.community .section-title {
    color: var(--cream-50);
}

.community-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.community-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-content p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--cream-300);
    margin-bottom: 20px;
    font-weight: 300;
}

.community-values {
    margin-top: 36px;
    display: grid;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--cream-200);
    font-weight: 400;
}

.value-item svg {
    flex-shrink: 0;
    color: var(--forest-300);
}

/* --- Visit --- */
.visit {
    background: var(--cream-50);
}

.visit-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.visit-info-card {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.visit-info-card:hover {
    border-color: var(--forest-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.visit-info-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-50);
    border: 1px solid var(--forest-100);
    border-radius: 50%;
    margin: 0 auto 24px;
    color: var(--forest-700);
}

.visit-info-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cream-900);
    margin-bottom: 12px;
}

.visit-info-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--cream-600);
    font-weight: 300;
}

.visit-info-card a {
    color: var(--forest-600);
    transition: color 0.2s ease;
}

.visit-info-card a:hover {
    color: var(--forest-800);
}

.visit-note {
    font-size: 0.82rem !important;
    color: var(--cream-500) !important;
    margin-top: 8px !important;
    font-style: italic;
}

/* --- Contact --- */
.contact {
    background: var(--cream-25);
    border-top: 1px solid var(--cream-200);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--cream-600);
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--forest-700);
    padding: 16px 28px;
    background: var(--forest-50);
    border: 1px solid var(--forest-100);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.contact-phone:hover {
    background: var(--forest-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form */
.contact-form-wrap {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cream-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--cream-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--cream-900);
    background: var(--cream-50);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--cream-400);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest-400);
    box-shadow: 0 0 0 3px rgba(26, 153, 75, 0.1);
}

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

.form-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--cream-500);
    margin-top: 16px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 16px;
}

.form-success svg {
    color: var(--forest-500);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cream-900);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--cream-600);
    font-weight: 300;
}

/* --- Footer --- */
.footer {
    background: var(--cream-950);
    color: var(--cream-400);
    padding: 64px 0 40px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-icon {
    font-size: 1.4rem;
    color: var(--forest-400);
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream-200);
}

.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--cream-500);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--cream-200);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--cream-600);
}

.footer-bottom a {
    color: var(--cream-500);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--cream-300);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 246, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--cream-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid,
    .community-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-details {
        flex-direction: column;
        gap: 12px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }

    .contact-form-wrap {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .nav-inner {
        padding: 0 18px;
    }

    .about-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-scroll {
        animation: none;
        opacity: 0.4;
    }
}
