/* ===================================
   WARM PROFESSIONAL PALETTE
   African Learning Hub
   Sophisticated Earth Tones + Strategic Orange
   =================================== */

/* 
   COLOR STRATEGY:
   - Warm neutrals (cream, soft beige) for comfort
   - Deep charcoal for sophistication
   - Orange as strategic accent (not background)
   - Earth tones reflect African warmth
   
   OVERRIDE PRIORITY:
   This file loads LAST to ensure proper color application
*/

:root {
    /* Warm Neutral Base - OVERRIDE */
    --white: #FFFFFF !important;
    --cream: #FFFBF5 !important;
    --warm-white: #FAF8F3 !important;
    --soft-beige: #F5F1E8 !important;
    --light-tan: #EDE7DC !important;
    
    /* Professional Darks - OVERRIDE */
    --charcoal: #2B2B2B !important;
    --dark-gray: #3D3D3D !important;
    --medium-gray: #6B6B6B !important;
    --text-gray: #4A4A4A !important;
    
    /* Brand Orange (Accents Only) - OVERRIDE */
    --primary-color: #E67E22 !important;
    --primary-orange: #E67E22 !important;
    --primary-dark: #D35400 !important;
    --primary-orange-dark: #D35400 !important;
    --primary-light: #F39C12 !important;
    --primary-orange-light: #F39C12 !important;
    
    /* Warm Earth Accents */
    --terracotta: #C46543 !important;
    --warm-brown: #8B6F47 !important;
    --sage-green: #7A9B76 !important;
    
    /* Professional Gradients - OVERRIDE */
    --gradient-hero: linear-gradient(135deg, #4A4A4A 0%, #3D3D3D 100%) !important;
    --gradient-warm: linear-gradient(135deg, #3D3D3D 0%, #2B2B2B 100%) !important;
    --gradient-section: linear-gradient(180deg, #FFFBF5 0%, #FFFFFF 100%) !important;
    
    /* Orange Gradients (Buttons/CTAs) - OVERRIDE */
    --gradient-orange: linear-gradient(135deg, #E67E22 0%, #D35400 100%) !important;
    --gradient-orange-hover: linear-gradient(135deg, #D35400 0%, #BA4A00 100%) !important;
    
    /* Sophisticated Shadows - OVERRIDE */
    --shadow-soft: 0 2px 12px rgba(43, 43, 43, 0.04) !important;
    --shadow-medium: 0 4px 20px rgba(43, 43, 43, 0.06) !important;
    --shadow-large: 0 8px 32px rgba(43, 43, 43, 0.08) !important;
    --shadow-xlarge: 0 16px 48px rgba(43, 43, 43, 0.12) !important;
    --shadow-orange: 0 8px 24px rgba(230, 126, 34, 0.18) !important;
    
    /* Glass Effects - OVERRIDE */
    --glass-bg: rgba(255, 251, 245, 0.97) !important;
    --glass-border: rgba(43, 43, 43, 0.08) !important;
    --glass-blur: blur(12px) !important;
}

/* ===================================
   HERO SECTION - SOPHISTICATED CHARCOAL
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Warm Accent Overlays */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(230, 126, 34, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(196, 101, 67, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(139, 111, 71, 0.08) 0%, transparent 50%);
    animation: subtleFloat 30s ease-in-out infinite;
    z-index: 1;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-20px) scale(1.05); opacity: 0.8; }
}

/* Elegant Grid Pattern */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h50v50H0V0zm50 50h50v50H50V50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 43, 43, 0.2) 0%, rgba(26, 26, 26, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Eyebrow - Warm White Badge with Orange Text */
.hero-eyebrow {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 251, 245, 0.98);
    backdrop-filter: var(--glass-blur);
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 1s ease-out 0.2s both;
}

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

.hero-eyebrow span {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hero Title - Crisp White */
.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-subtitle strong {
    color: #F39C12;
    font-weight: 600;
}

.hero-trust-line {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 300;
    font-style: italic;
}

/* ===================================
   PAGE BACKGROUNDS - WARM CREAM
   =================================== */

body {
    background-color: var(--cream);
    color: var(--charcoal);
}

/* Content Sections - Warm White/Cream */
section:not(.hero) {
    background-color: var(--white);
    position: relative;
}

/* Alternating Warm Backgrounds */
section:nth-child(even):not(.hero) {
    background: var(--gradient-section);
}

/* ===================================
   BUTTONS - VIBRANT ORANGE
   =================================== */

.btn-primary,
.cta-btn {
    background: var(--gradient-orange);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    box-shadow: var(--shadow-orange);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.cta-btn:hover {
    background: var(--gradient-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(230, 126, 34, 0.3);
}

.btn-primary::after,
.cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after,
.cta-btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===================================
   CITY THUMBNAIL ICONS - FORCE VISIBILITY
   =================================== */

/* Ultra-specific override to ensure Font Awesome icons are visible in city cards */
.city-image i,
.city-card .city-image i,
div.city-image i {
    display: inline-block !important;
    color: #FFFFFF !important;
    font-size: 3rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    z-index: 1 !important;
    position: relative !important;
    max-height: 100% !important;
}

/* Force Font Awesome classes to work */
.city-image i.fas,
.city-image i.fa,
.city-card .city-image i.fas,
.city-card .city-image i.fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* ===================================
   CARDS - CLEAN WHITE WITH WARM SHADOWS
   =================================== */

.program-card,
.course-card,
.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--light-tan);
    position: relative;
    overflow: hidden;
}

.program-card:hover,
.course-card:hover,
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xlarge);
    border-color: var(--primary-orange-light);
}

/* Orange Top Accent */
.program-card::before,
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover::before,
.course-card:hover::before {
    transform: scaleX(1);
}

/* Featured Card - Warm Glow */
.program-card.featured {
    border: 2px solid var(--primary-orange-light);
    box-shadow: 0 8px 32px rgba(230, 126, 34, 0.15);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF5 100%);
}

/* FLAGSHIP badge is defined in rebrand-styles.css - removed duplicate here */

/* ===================================
   ICONS - WARM ORANGE ACCENTS
   =================================== */

.program-icon,
.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, rgba(211, 84, 0, 0.04) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-orange);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.program-card:hover .program-icon,
.benefit-card:hover .benefit-icon {
    background: var(--gradient-orange);
    color: white;
    transform: scale(1.15) rotate(8deg);
    box-shadow: var(--shadow-orange);
    animation: none;
}

/* ===================================
   NAVIGATION - WARM GLASS
   =================================== */

nav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid var(--glass-border);
}

nav.scrolled {
    background: rgba(255, 251, 245, 0.98);
    box-shadow: var(--shadow-medium);
}

nav a {
    color: var(--charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ===================================
   SECTION HEADERS - SOPHISTICATED
   =================================== */

.section-title {
    color: var(--charcoal);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Orange Accent Underline */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-orange);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .cta-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

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