/* ==============================================
   CEELDD NATIONAL CONFERENCE | GREEN & GOLD UI
   ============================================== */

:root {
    /* Colors */
    --color-green-dark: #0a2916;
    /* Deepest green */
    --color-green: #0d3b1f;
    /* Primary deep green */
    --color-gold: #cfa860;
    /* Executive Gold */
    --color-gold-hover: #b8934d;
    --color-white: #ffffff;
    --color-grey: #f5f6f8;
    --color-text-dark: #2d3748;
    --color-text-light: #f0f2f5;
    --color-text-muted: #718096;

    /* Layout */
    --max-w-base: 1200px;
    --section-pad-y: 100px;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* ==============================================
   GLOBAL RESET & BASE
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Remove white background so body background shows in overscroll */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 300;

    /* Global Parallax Background for overscroll spaces */
    background-image: url('../assets/zambia-sunrise-flag.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--color-green-dark);
}

h1,
h2,
h3,
h4,
.section-label {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold-hover);
}


/* ==============================================
   SECTION BACKGROUNDS & COLOR INHERITANCE
   ============================================== */
.bg-green {
    background-color: var(--color-green);
    color: var(--color-text-light);
}

.bg-green .section-title,
.bg-green h1,
.bg-green h2,
.bg-green h3,
.bg-green .lead-text {
    color: var(--color-white);
}

/* Add a subtle overlay texture to the green sections if desired */
.bg-green.relative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Re-using the noise grain for subtle texture in green */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.bg-white {
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

.bg-white .section-title,
.bg-white h1,
.bg-white h2,
.bg-white h3 {
    color: var(--color-green-dark);
}

.bg-grey {
    background-color: var(--color-grey);
    color: var(--color-text-dark);
}

.bg-grey .section-title,
.bg-grey h1,
.bg-grey h2,
.bg-grey h3 {
    color: var(--color-green-dark);
}

/* Update section label line contextually */
.bg-white .section-label::before,
.bg-grey .section-label::before {
    background-color: var(--color-gold);
}


/* ==============================================
   TYPOGRAPHY
   ============================================== */
.txt-c {
    text-align: center;
}

.mb-3 {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.section-label {
    font-size: 0.9rem;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--color-gold);
}

.txt-c .section-label::before {
    left: 50%;
    transform: translateX(-50%);
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* ==============================================
   LAYOUT & CONTAINERS
   ============================================== */
.container {
    max-width: var(--max-w-base);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.max-w-md {
    max-width: 800px;
    margin-inline: auto;
}

.max-w-lg {
    max-width: 900px;
    margin-inline: auto;
}

.max-w-sm {
    max-width: 600px;
    margin-inline: auto;
}

.section {
    padding: var(--section-pad-y) 0;
    position: relative;
    z-index: 10;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.align-start {
    align-items: start;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }
}


/* ==============================================
   BUTTONS
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
}

.btn i {
    margin-left: 10px;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-green-dark);
    box-shadow: 0 4px 15px rgba(207, 168, 96, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207, 168, 96, 0.4);
    color: var(--color-green-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
}

.bg-white .btn-outline,
.bg-grey .btn-outline {
    border: 1px solid var(--color-green);
    color: var(--color-green);
}

.btn-outline:hover {
    border-color: var(--color-gold);
    background-color: var(--color-gold);
    color: var(--color-green-dark);
}

.bg-white .btn-outline:hover,
.bg-grey .btn-outline:hover {
    color: var(--color-white);
}

.btn-block {
    width: 100%;
}


/* ==============================================
   0. MAIN NAVIGATION (STICKY HEADER)
   ============================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--color-gold);
    font-size: 1.8rem;
}

.main-nav {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-btn.btn-outline {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    border-color: rgba(255, 255, 255, 0.3);
}

.main-header.scrolled .nav-btn.btn-outline {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.main-header.scrolled .nav-btn.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-green-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-dropdown {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: var(--color-green-dark);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: top 0.4s ease;
    z-index: 999;
}

.mobile-dropdown.active {
    top: 70px;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-links a {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 900px) {

    .main-nav,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}


/* ==============================================
   SECTION 1: HERO
   ============================================== */
.hero-section {
    padding: 160px 0 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    /* Ensure image shows through */
}

/* Elegant Overlay allowing the sunrise through while darkening edges */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 55%, rgba(13, 59, 31, 0.2) 0%, var(--color-green-dark) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.authority-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(207, 168, 96, 0.3);
    color: var(--color-gold);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-section .headline {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-section .headline span {
    color: var(--color-gold);
}

.hero-section .subheadline {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 300;
    margin-bottom: 2rem;
}

.dates-block {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.micro-line {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .hero-section .headline {
        font-size: 2.5rem;
    }

    .hero-section .subheadline {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}


/* ==============================================
   SECTION 1.5: COUNTDOWN
   ============================================== */
.countdown-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.countdown-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background-color: #061210;
    /* Very dark green/black matching image */
    padding: 1.5rem 3rem;
    border-radius: 100px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.cd-box {
    background: transparent;
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    min-width: 100px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cd-box:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

.cd-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--color-white);
}

.cd-label {
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: capitalize;
    color: var(--color-white);
}

.cd-separator {
    width: 2px;
    height: 50px;
    background-color: #f6214b;
    /* Vibrant red matching image */
    border-radius: 2px;
    color: transparent;
    /* Hide the existing colon text */
    overflow: hidden;
}

@media (max-width: 900px) {
    .countdown-wrapper {
        gap: 1.5rem;
        padding: 2rem;
        border-radius: 20px;
    }

    .cd-box {
        min-width: 100px;
        padding: 1.5rem;
        border-radius: 15px;
    }

    .cd-number {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .cd-label {
        font-size: 0.9rem;
    }

    .cd-separator {
        display: none;
    }

    /* Hide separators on smaller screens to avoid awkward wrapping */
}


/* ==============================================
   SECTION 2 & 3: MOMENT & ABOUT
   ============================================== */
.moment-about-section {
    padding: 6rem 0;
}

.info-card {
    background: var(--color-white);
    padding: 3.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.info-card .section-label {
    margin-bottom: 2rem;
}

.info-card p {
    color: var(--color-text-dark);
}

.text-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}


/* ==============================================
   SECTION 4: MISSION & VISION
   ============================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3rem 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

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

.glass-card p {
    color: var(--color-text-light);
    opacity: 0.8;
}


/* ==============================================
   SECTION 5: GOALS & OBJECTIVES
   ============================================== */
.clean-list {
    list-style: none;
}

.clean-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Assuming light bg */
    display: flex;
    align-items: flex-start;
}

.bg-dark .clean-list li,
.bg-green .clean-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clean-list li:last-child {
    border-bottom: none;
}

.clean-list li i {
    color: var(--color-green);
    margin-right: 15px;
    margin-top: 5px;
}

.bg-green .clean-list li i {
    color: var(--color-gold);
}


/* ==============================================
   SECTION 6: WHAT HAPPENS
   ============================================== */
.timeline-clean {
    margin-top: 3rem;
}

.tl-item {
    display: flex;
    align-items: center;
    background: var(--color-white);
    /* inside grey section */
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.tl-num {
    width: 40px;
    height: 40px;
    background: var(--color-green);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.tl-content {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-green-dark);
}


/* ==============================================
   SECTION 7: OUTCOMES
   ============================================== */
.tiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.outcome-tile {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(207, 168, 96, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.outcome-tile i {
    color: var(--color-gold);
}


/* ==============================================
   SECTION 8: REGISTER
   ============================================== */
.register-section {
    padding-bottom: 150px;
}

.form-card {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    color: var(--color-text-dark);
}

.form-card .section-title {
    color: var(--color-green-dark);
}

@media (max-width: 768px) {
    .form-card {
        padding: 2rem 1.5rem;
    }
}

.form-notice {
    background: rgba(207, 168, 96, 0.1);
    border-left: 3px solid var(--color-gold);
    padding: 1rem;
    font-size: 0.85rem;
    margin: 2rem 0;
    color: var(--color-text-dark);
    display: flex;
    gap: 10px;
}

.form-notice i {
    color: var(--color-gold);
    margin-top: 3px;
}

/* Auth Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-green);
}

.form-msg {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.msg-error {
    color: #e53e3e;
}

.msg-success {
    color: #38a169;
}

.verifying-notice {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--color-grey);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.verifying-notice span {
    color: var(--color-green-dark);
    font-weight: 500;
}

.verifying-notice a {
    display: inline-block;
    margin-left: 10px;
    color: var(--color-gold);
    text-decoration: underline;
}

.form-divider {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: 30px 0 20px 0;
}

.form-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-green);
}

.auth-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon i {
    font-size: 4rem;
    color: #38a169;
    margin-bottom: 1.5rem;
}

.auth-success h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--color-green-dark);
}

.auth-success .subtext {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
}


/* ==============================================
   SECTION 9: FOOTER
   ============================================== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-content a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-content a:hover {
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==============================================
   ANIMATIONS (Scroll Fade Up)
   ============================================== */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}