/* =========================================================
   FAL Campaign Platform — Core Styles (Bootstrap 5)
   Brand: APC deep green + Hope yellow
   ========================================================= */

:root {
    --apc: #2f3a1f;           /* deep APC / forest green */
    --apc-rgb: 47, 58, 31;
    --olive: #5c6b36;
    --hope: #c8e51b;          /* bright hope yellow / lime */
    --hope-rgb: 200, 229, 27;
    --gold: #c9a227;
    --charcoal: #171717;
    --cream: #f7f7f2;
    --muted: #6b6b6b;
    --border: #e8e8e0;
    --radius: 0.75rem;
    --font-heading: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: var(--font-heading);
}

::selection {
    background: rgba(var(--hope-rgb), 0.3);
    color: var(--apc);
}

/* Brand colors */
.text-apc { color: var(--apc) !important; }
.text-hope { color: var(--hope) !important; }
.bg-apc { background-color: var(--apc) !important; }
.bg-hope { background-color: var(--hope) !important; }
.bg-cream { background-color: var(--cream) !important; }
.border-apc { border-color: var(--apc) !important; }
.border-hope { border-color: var(--hope) !important; }

/* Buttons */
.btn-hope {
    background-color: var(--hope);
    color: var(--apc);
    border: none;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    transition: all 0.25s ease;
}
.btn-hope:hover,
.btn-hope:focus {
    background-color: #b5d015;
    color: var(--apc);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--hope-rgb), 0.35);
}

.btn-apc {
    background-color: var(--apc);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    transition: all 0.25s ease;
}
.btn-apc:hover,
.btn-apc:focus {
    background-color: #3d4a28;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-apc {
    color: var(--apc);
    border: 1.5px solid var(--apc);
    background: transparent;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    transition: all 0.25s ease;
}
.btn-outline-apc:hover {
    background: var(--apc);
    color: #fff;
}

.btn-outline-light-hope {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: transparent;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
}
.btn-outline-light-hope:hover {
    background: var(--hope);
    color: var(--apc);
    border-color: var(--hope);
}

/* Header / Navbar */
.site-header {
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    background: transparent;
    z-index: 1030;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 0 rgba(0,0,0,0.04);
}

.navbar {
    min-height: var(--header-height);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border: none;
    border-radius: 0;
    background: transparent;
}

.logo-img-sm {
    object-fit: cover;
}

.brand-name {
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}
.brand-sub {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(23, 23, 23, 0.8) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.active {
    color: var(--apc) !important;
    background: rgba(var(--apc-rgb), 0.05);
}

/* Hero */
.hero-section {
    position: relative;
    isolation: isolate;
    background: var(--apc);
    color: #fff;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 5rem;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 50% at 50% 0%, rgba(200,229,27,0.18), transparent 70%);
    z-index: -1;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(53,56,29,0.2), #35381d);
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(var(--hope-rgb), 0.3);
    background: rgba(var(--hope-rgb), 0.1);
    color: var(--hope);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-stats {
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: rgba(var(--hope-rgb), 0.15);
    color: var(--hope);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Section helpers */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--hope);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--apc);
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--muted);
    max-width: 40rem;
}

/* Cards */
.feature-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #fff;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: rgba(var(--apc-rgb), 0.08);
    color: var(--apc);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: all 0.25s ease;
}
.feature-card:hover .feature-icon {
    background: var(--hope);
    color: var(--apc);
}

/* Page Hero (inner pages) */
.page-hero {
    background: var(--apc);
    color: #fff;
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 60% at 80% 20%, rgba(200,229,27,0.15), transparent 70%);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 0.6rem;
    border-color: var(--border);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--hope);
    box-shadow: 0 0 0 0.2rem rgba(var(--hope-rgb), 0.2);
}
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--charcoal);
}

/* Footer */
.site-footer {
    margin-top: auto;
}
.footer-heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--hope);
    margin-bottom: 1rem;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-contact li {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}
.social-btn:hover {
    background: var(--hope);
    color: var(--apc);
    border-color: var(--hope);
}
.text-white-70 { color: rgba(255,255,255,0.7); }
.text-white-50 { color: rgba(255,255,255,0.5); }
.border-white-10 { border-color: rgba(255,255,255,0.1) !important; }

/* CTA Band */
.cta-band {
    background: linear-gradient(135deg, var(--apc) 0%, #3d4a28 100%);
    color: #fff;
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
}

/* Countdown */
.countdown-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    min-width: 80px;
    text-align: center;
}
.countdown-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hope);
    line-height: 1;
}
.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.6);
    margin-top: 0.35rem;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ward cards */
.ward-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    background: #fff;
}
.ward-card:hover {
    border-color: var(--hope);
    background: rgba(var(--hope-rgb), 0.06);
    transform: translateY(-2px);
}

/* Auth pages */
.auth-wrapper {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: var(--cream);
}
.auth-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}

/* Utility */
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

/* Responsive */
@media (max-width: 991.98px) {
    :root {
        --header-height: 72px;
    }
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 0.75rem;
        margin-top: 0.5rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }
}
.hero-section {
    position: relative;
    isolation: isolate;
    background: var(--apc);
    color: #fff;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 0; /* Lets image sit cleanly on stats bar base */
}

.hero-img-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-right: -2rem; /* Closes right margin space */
}

.hero-candidate-img {
    height: 680px; /* Scaled up significantly */
    width: auto;
    max-width: 125%; /* Allows image to fill right column width freely */
    object-fit: contain;
    display: block;
    margin-bottom: -3rem; /* Pulls image directly down onto the stats section */
    
    /* Blends bottom soft edge into stats bar overlay */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

@media (max-width: 991.98px) {
    .hero-img-wrapper {
        justify-content: center;
        margin-right: 0;
    }
    .hero-candidate-img {
        height: 420px;
        max-width: 100%;
        margin-bottom: -2rem;
    }
}

/* ---------- Video play button (hope / olive accent) ---------- */
.play-btn-overlay,
.play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.55);
    border: 3px solid var(--hope);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(var(--hope), 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}
.play-btn-overlay:hover,
.play-overlay-btn:hover,
.media-card-img-wrap:hover .play-btn-overlay,
.video-card-thumb:hover .play-overlay-btn {
    background: var(--hope);
    border-color: var(--hope);
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 6px rgba(var(--hope), 0.35), 0 10px 28px rgba(0, 0, 0, 0.4);
}
.play-btn-overlay i,
.play-overlay-btn i {
    margin-left: 3px; /* optical center for play triangle */
}

