/* ============================================
   GLOBAL STYLES - OLAYEMI OLABODEY FOUNDATION
   Modern & Classic Design System
============================================ */

/* CSS Variables */
:root {
    /* Color Palette */
    --gold: #D2AE6D;
    --navy: #004790;
    --navy-dark: #003366;
    --navy-light: #2A6BB0;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-light: #E9ECEF;
    --gray: #6C757D;
    --gray-dark: #343A40;
    
    /* Status Colors */
    --success: #28A745;
    --warning: #FFC107;
    --error: #DC3545;
    --info: #17A2B8;
    
    /* Typography */
    --heading-font: 'Cinzel', serif;
    --body-font: 'DM Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 71, 144, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 71, 144, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 71, 144, 0.16);
    --shadow-gold: 0 4px 20px rgba(210, 174, 109, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index Layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Match header height */
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.loaded {
    opacity: 1;
    visibility: visible;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray);
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: #C19A5B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

/* Form Elements */
input,
textarea,
select {
    font-family: var(--body-font);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(210, 174, 109, 0.1);
}

label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--navy);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Sections */
.section {
    padding: var(--space-2xl) 0;
}
.section:first-of-type {
    padding-top: var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section {
        padding: var(--space-2xl) 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-light);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .btn,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: var(--navy);
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

main {
    padding-top: 0 !important;
}


