/* =========================================================
   HIGHWAY 91 KICKIN' CONCRETE - GLOBAL THEME (style.css)
   Theme: Forest & Stone (Professional Nonprofit)
   ========================================================= */

/* --- 1. VARIABLES & RESET --- */
:root {
    /* PRIMARY BRAND COLORS */
    --brand-dark: #142721;    /* Deep Forest Green (Primary Brand) */
    --brand-light: #f4f7f6;   /* "Mint-White" (Backgrounds) */
    --brand-slate: #cfd8d4;   /* Light Slate (Footer Text) */
    --brand-gold: #edcf79;    /* Mustard Gold (Accents/Hovers) */
    
    /* FUNCTIONAL COLORS */
    --text-main: #2c3330;     /* Almost Black (Body Text) */
    --text-muted: #667770;    /* Muted Green-Grey (Subtitles) */
    --white: #ffffff;
    --border-color: #e0e6e4;
    
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { 
    width: 100%; 
    overflow-x: hidden; /* Fixes mobile white space issues */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility */
.skip-link {
    position: absolute; top: -40px; left: 0; background: var(--brand-gold); color: var(--brand-dark);
    padding: 8px; z-index: 2000; transition: top 0.3s; font-weight: bold;
}
.skip-link:focus { top: 0; }

/* --- 2. LAYOUT UTILITIES --- */
.section { padding: 90px 0; }
.bg-light { background: var(--brand-light); }
.section-header { text-align: center; margin-bottom: 60px; max-width: 800px; margin: 0 auto 60px; }

/* Subtle divider line */
.divider { height: 3px; width: 60px; background: var(--brand-dark); margin: 20px auto; opacity: 0.3; }

/* --- 3. BUTTONS (Global Styles) --- */
.btn { 
    display: inline-block; 
    padding: 15px 35px; 
    border-radius: 4px; 
    font-weight: 700; 
    text-transform: uppercase; 
    border: 2px solid transparent; 
    cursor: pointer;
    margin: 10px; /* Standard spacing around buttons */
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Primary Action: Dark Green on White */
.btn-primary { 
    background: var(--brand-dark); 
    color: var(--white); 
}
.btn-primary:hover { 
    background: #1f3a32; /* Lighter Green */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Secondary Action: White on Dark (Hero) */
.btn-white { 
    background: var(--white); 
    color: var(--brand-dark); 
}
.btn-white:hover { 
    background: var(--brand-gold); 
    color: var(--brand-dark);
    border-color: var(--brand-gold);
}

/* Outline Button */
.btn-outline { 
    border: 2px solid var(--white); 
    color: var(--white); 
    background: transparent;
}
.btn-outline:hover { 
    background: var(--white); 
    color: var(--brand-dark); 
    transform: translateY(-2px);
}

/* Social Button (Mobile Menu) */
.btn-social {
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    
    /* Matches Global Button Size */
    padding: 15px 35px; 
    font-size: 0.9rem;
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
    
    border-radius: 50px; 
    color: var(--white); 
    margin: 10px auto; 
    width: 100%; 
    max-width: 300px;
    transition: 0.3s;
    border: none;
}

.btn-facebook { 
    background-color: #1877F2; /* Official FB Blue */
    color: #ffffff !important;
}

.btn-facebook:hover { 
    background-color: #145dbf; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}
/* Gold Action Button (High Visibility for Registration) */
.btn-gold {
    background: var(--brand-gold);
    color: var(--brand-dark);
    border: 2px solid var(--brand-gold);
}

.btn-gold:hover {
    background: #deb64b; /* Slightly darker gold */
    border-color: #deb64b;
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 207, 121, 0.4);
}
/* --- 4. NAVIGATION --- */
.navbar {
    background-color: var(--white);
    position: sticky; top: 0; z-index: 1000; padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 60px; width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
/* Navigation Links */
.nav-menu a { 
    color: var(--brand-dark); 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    transition: 0.3s;
}

/* Hover Effect: Turns Gold (Matches Footer Links) */
.nav-menu a:hover
 { 
    color: var(--brand-gold); /* Solid Gold */
    opacity: 1; /* Ensures text stays sharp and doesn't fade to gray */
}
.nav-menu a.active {
    color: var(--text-muted); /* Muted Gray (#667770) */
    opacity: 1;
}
/* --- Navigation Buttons (Donate & Register) --- */

/* 1. Donate Button (Standard Dark Green) */
.nav-btn {
    background-color: var(--brand-dark);
    color: var(--white) !important;
    padding: 10px 24px; 
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 1;
}

.nav-btn:hover { 
    background-color: #1f3a32; /* Lighter Green */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hamburger Menu (Hidden on Desktop) */
.menu-toggle { display: none; cursor: pointer; z-index: 2000; }
.bar { display: block; width: 28px; height: 3px; background: var(--brand-dark); margin: 6px auto; transition: 0.3s; }

/* Mobile Extras (Hidden on Desktop) */
.mobile-extras { display: none; }

/* --- 5. GLOBAL NEWSLETTER SECTION (Pre-Footer) --- */
.newsletter-section { 
    background-color: #e8eceb; /* Light Silver */
    color: var(--brand-dark); 
    text-align: center;
    padding: 60px 0; 
    border-top: 1px solid #d0d6d4;
}

.newsletter-section h2 { 
    color: var(--brand-dark);
    font-size: 1.8rem; 
    margin-bottom: 10px;
}

.newsletter-section p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Form Layout */
.newsletter-form { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    flex-wrap: wrap; 
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Input Field */
.newsletter-form input[type="email"] { 
    padding: 12px 20px; 
    flex: 1; 
    min-width: 250px;
    border-radius: 4px; 
    border: 1px solid #ccc; 
    font-size: 1rem; 
    background: var(--white);
    color: var(--text-main);
}

/* Specific Button Style (Dark on Light, No Margin) */
.newsletter-form .btn {
    margin: 0; /* Overrides global margin to touch input */
    padding: 12px 25px;
    background-color: var(--brand-dark);
    color: var(--white);
    border: none;
    font-size: 0.95rem;
}

.newsletter-form .btn:hover {
    background-color: var(--brand-gold);
    color: var(--brand-dark);
}

/* --- 6. FOOTER (Professional) --- */
.footer {
    background-color: var(--brand-dark);
    color: var(--brand-slate);
    font-size: 0.95rem;
    padding-top: 0;
}

/* Monochromatic Ribbons (Watermark Style) */
.footer-ribbons {
    background: #0f1f1a; /* Subtle shade difference */
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    user-select: none;
}

.footer-ribbons i {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.15;
}

.footer-main { padding: 80px 0 50px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    text-align: left;
}

/* Brand Column */
.footer-brand p { margin-top: 20px; line-height: 1.6; opacity: 0.8; max-width: 300px; }
.footer-logo-img { height: 70px; width: auto; opacity: 1; }

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

/* Unified Footer Text Links (Global Hover) */
/* Target all anchors in footer that are NOT the donate button */
.footer a:not(.footer-donate-btn) {
    color: var(--brand-slate);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    display: inline-block;
}

/* Global Hover: Turn Gold */
.footer a:not(.footer-donate-btn):hover {
    color: var(--brand-gold);
}

/* List Layouts */
.footer-links li { margin-bottom: 12px; }
.footer-links a { padding: 2px 0; }

.footer-contact li {
    display: flex; align-items: flex-start; justify-content: flex-start; gap: 15px; margin-bottom: 20px;
}
.footer-contact i { color: var(--white); opacity: 0.6; font-size: 1.1rem; margin-top: 3px; min-width: 20px; }

/* Support/Donate Column Text */
.footer-support-text {
    font-size: 0.9rem;
    margin-bottom: 30px; /* Spacing above button */
    line-height: 1.5;
    opacity: 0.8;
    display: block;
}

/* Donate Button in Footer (High Contrast) */
.footer-donate-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--white);
    color: var(--brand-dark);
    padding: 15px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: 0.3s;
}
.footer-donate-btn:hover { 
    background: var(--brand-gold); 
    color: var(--brand-dark); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Bottom Bar */
.footer-bottom {
    background-color: #0b1613;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: #5d6d66;
}
.footer-bottom-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-legal a { color: #5d6d66; margin-left: 20px; padding: 10px; }
.footer-legal a:hover { color: var(--white); text-decoration: underline; }

/* --- 7. RESPONSIVE MEDIA QUERIES --- */
@media(max-width: 900px) { 
    .footer-grid { grid-template-columns: 1fr 1fr; } 
}

@media(max-width: 768px) {
    /* 1. Show the Hamburger */
    .menu-toggle { display: block; }

    /* 2. Full Screen Menu Panel */
    .nav-menu {
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 100%; 
        height: 100vh; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center;
        background: var(--white);
        padding: 40px 20px; 
        transition: 0.4s ease-in-out; 
        z-index: 1500;
    }

    /* 3. Active State */
    .nav-menu.active { right: 0; }
    
    /* 4. BALANCED Menu Links */
    .nav-menu li { 
        margin: 15px 0; 
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.25rem; 
        font-weight: 700;
    }
    
    /* 5. Donate Button Size */
    /* 5. Mobile Action Buttons (Donate & Register) */
    .nav-btn, .nav-btn-register {
        display: inline-block;
        width: auto; 
        min-width: 200px; 
        padding: 15px 30px; 
        font-size: 1rem; 
        margin-top: 10px;
        text-align: center; /* Ensure text is centered */
    }
    /* 6. Mobile Extras */
    .mobile-extras { 
        display: block; 
        text-align: center; 
        margin-top: 30px; 
        border-top: 2px solid var(--border-color); 
        padding-top: 30px; 
        width: 100%; 
    }
    
    /* FACEBOOK BUTTON SPECIFIC FIX */
    .btn-social {
        display: inline-flex; 
        align-items: center;
        justify-content: center;
        gap: 10px;
        white-space: nowrap; /* Forces one line */
        width: auto;
        min-width: 200px;
        padding: 15px 20px; 
        font-size: 0.75rem !important; /* Forces text smaller (12px) */
    }
    
    /* Icon size adjustment to match smaller text */
    .btn-social i {
        font-size: 1rem; 
    }

    /* 7. Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Footer Fixes */
    .footer-main { padding: 50px 0 30px; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; gap: 40px; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom-flex { flex-direction: column; gap: 15px; text-align: center; }
    
    /* Newsletter Mobile */
    .newsletter-form { flex-direction: column; gap: 15px; }
    .newsletter-form input[type="email"] { width: 100%; }
    .newsletter-form .btn { width: 100%; }
}