/* 
   Choose90.org - Hybrid Site Styles
   Theme: 90% Positive, Uplifting, Premium, Modern
*/

:root {
    /* Color Palette - Uplifting & Trustworthy */
    --primary: #0066CC;
    /* Tech Blue - Trust */
    --primary-dark: #004C99;
    --accent: #FFD700;
    /* Sunshine Gold - Positivity */
    --accent-hover: #FFC400;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- COMPONENT: Starfield Button (The Wow Factor) --- */
@keyframes starfield-shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-starfield {
    /* Deep Cosmic Gradient */
    background: linear-gradient(270deg, #0f0c29, #302b63, #24243e, #6a11cb, #2575fc);
    background-size: 300% 300%;
    animation: starfield-shimmer 6s ease infinite;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(106, 17, 203, 0.5);
    /* Purple Glow */
    border-radius: 50px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Basic button props */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-starfield:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(37, 117, 252, 0.8);
    /* Blue Glow intense */
    color: #ffffff !important;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title span {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Header / Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-dark);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
}

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

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

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

.nav-links a.btn:hover::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    z-index: 1001;
    position: relative;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    animation: fadeInDown 0.2s ease-out;
    margin-top: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown .dropdown-menu:hover {
    display: block;
}

/* Bridge the gap between trigger and dropdown to keep it open */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 999;
    background: transparent;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: #667eea;
    padding-left: 24px;
}

.dropdown-header {
    padding: 8px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
    list-style: none;
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f9fafb;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding-left: 40px;
    }
    
    .dropdown-arrow {
        display: none;
    }
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(0, 102, 204, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.05), transparent 40%);
    padding-top: var(--header-height);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-visual {
    width: 45%;
    height: 400px;
    position: relative;
}

.hero-visual img {
    border-radius: 30px;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mission / About */
.mission {
    padding: 6rem 0;
    background: var(--white);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Impact */
.impact {
    padding: 5rem 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.impact-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.impact-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: #111;
    color: #fff;
}

footer .container {
    display: block;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 4rem;
}

footer .logo span {
    color: #ffffff;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #888;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #555;
    font-size: 0.9rem;
}

/* --- ADDED: Phase 4 Custom Templates CSS to ensure Global Visibility --- */

/* Hero Cards */
.pledge-hero-card,
.donate-hero-card,
.chapters-hero-card,
.resources-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px -10px rgba(0, 102, 204, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    /* Ensure block spacing */
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pledge-hero-card::before,
.donate-hero-card::before,
.chapters-hero-card::before,
.resources-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0066CC, #FFD700);
}

.pledge-hero-card h1,
.donate-hero-card h1,
.chapters-hero-card h1,
.resources-hero-card h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: #1A1A1A;
    margin-bottom: 1rem;
}

.pledge-hero-card p,
.donate-hero-card p,
.chapters-hero-card p,
.resources-hero-card p {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: #0066CC;
    font-weight: 700;
}

/* Placeholder Grid Styles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: center;
    /* Better for placeholders */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card h3 {
    color: #0066CC;
    margin-bottom: 1rem;
}

/* Gravity Forms (Global) */
.gform_wrapper {
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

.gform_wrapper input,
.gform_wrapper textarea,
.gform_wrapper select {
    padding: 15px !important;
    border-radius: 8px !important;
    border: 2px solid #eee !important;
    background-color: #fcfcfc !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus {
    border-color: #0066CC !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1) !important;
    outline: none;
}

.gform_wrapper .gform_footer input[type=submit] {
    background: linear-gradient(135deg, #0066CC 0%, #004C99 100%) !important;
    color: white !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    border: none !important;
    width: 100%;
    cursor: pointer;
    font-weight: 700 !important;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        width: 92%;
    }

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

    .hero-visual {
        display: none;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

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

    .mobile-menu-btn {
        display: block;
    }
    
    /* Mobile menu animation */
    .nav-links {
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }
    
    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

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

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}