/* ======================= */
/* CSS VARIABLES */
/* ======================= */
:root {
    /* AHDA Brand Colors */
    --ahda-orange: #F57B2C;     
    --ahda-maroon: #AC1A2C;   
    --ahda-green: #14776D;     
    --ahda-teal: #0B4F66;  
    --ahda-peal: #F3FAFA;  

    /* Neutral Colors */
    --ahda-white: #FFFFFF;
    --ahda-bg: #F3FAFA;
    --ahda-text-gray: #465256;  
    --ahda-ink: #162C32;        
    
    /* Accessibility Optimized Colors */
    --primary-text: var(--ahda-ink);
    --secondary-text: var(--ahda-text-gray);
    --primary-heading: var(--ahda-teal);
    --accent-heading: var(--ahda-green);
    --primary-accent: var(--ahda-orange);
    --secondary-accent: var(--ahda-maroon);
    
    /* Enhanced Variables */
    --shadow-sm: 0 2px 8px rgba(11, 79, 102, 0.1);
    --shadow-md: 0 8px 25px rgba(11, 79, 102, 0.15);
    --shadow-lg: 0 15px 40px rgba(11, 79, 102, 0.2);
    --shadow-orange: 0 8px 25px rgba(245, 123, 44, 0.25);
}

/* ======================= */
/* BASE STYLES */
/* ======================= */
body {
    font-family: 'Source Sans Pro', Calibri, Arial, sans-serif;
    color: var(--primary-text);
    line-height: 1.6;
    background-color: var(--ahda-bg);
    padding-top: 110px;
    margin: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', Calibri, Arial, sans-serif;
    font-weight: 700;
    margin-top: 0;
}

h1, h2, h3 {
    color: var(--primary-heading);
}

h4, h5 {
    color: var(--accent-heading);
    font-size: 1.25rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Page Sections */
.page-section {
    padding-top: 40px;
    padding-bottom: 80px;
    display: none;
}
.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--ahda-orange);
    color: var(--ahda-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(245, 123, 44, 0.4);
    border: 2px solid var(--ahda-white);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e06a1f;
    transform: translateY(-3px) scale(1.1);
}

/* Loading Animations */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* SECTION DIVIDERS */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--ahda-orange) 50%, 
        transparent 100%);
    margin: 60px auto;
    width: 150px;
    border-radius: 2px;
}
/* Anchor Scrolling Support */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Adjust based on header height */
}

/* Ensure anchor points are visible */
[id] {
    scroll-margin-top: 120px;
}

/* Specific anchor targets */
#hero-section,
#mission-section,
#thematic-areas,
#programs-preview,
#about-top,
#mission-section,
#team-section,
#story-section,
#programs-top,
#knowledge-top,
#resilient-top,
#news-top,
#contact-top {
    scroll-margin-top: 120px;
}
 /*KUFICHA KICHWA*/
/* Hide header when JS adds .utility-hidden 
#siteHeader.utility-hidden{
  transform: translateY(-100%);
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform;
}
*/
/* Ensure header can animate 
#siteHeader{
  transform: translateY(0);
}
*/