/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.logo-container {
    width: 150px;
    height: 150px;
    position: relative;
    animation: logoReveal 1.5s ease-out;
}

    .logo-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        opacity: 0;
        transform: scale(0.5);
        animation: logoFadeIn 0.8s ease-out 0.7s forwards;
    }

@keyframes logoReveal {
    0% {
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Add this to prevent content flash before loading */
body {
    visibility: hidden;
}

    body.loaded {
        visibility: visible;
    }

/* Base styles */
:root {
    --primary: #99CB38;
    --primary-dark: #7ba32d;
    --text: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --background-alt: #f5f5f5;
    --border: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    scroll-padding-top: 80px; /* This helps with the fixed header */
    font-family: 'CenturyGothic', 'Century Gothic', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--background);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
}

nav {
    padding: 1rem 0;
}

    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-toggle {
    display: none; /* Hide by default on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
}

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

    .nav-links a {
        font-family: 'Reem Kufi', sans-serif;
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary);
            background: rgba(153, 203, 56, 0.1);
        }

/* Section Styles */
section {
    padding: 6rem 0;
    margin: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.bg-alt {
    background: var(--background-alt);
}

/* Hero Section */
.hero {
    text-align: center;
}

    .hero h1 {
        font-family: 'Reem Kufi', sans-serif;
        font-size: 2.5rem;
        font-weight: 500;
        margin-bottom: 1.5rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero p {
        font-size: 1.25rem;
        color: var(--text-light);
        margin-bottom: 2rem;
    }

/* Cards and Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

    .card .icon {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--primary);
    }

    .card h3 {
        margin-bottom: 1rem;
    }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

    .btn:hover {
        background: var(--primary-dark);
    }

/* Testimonials */
.testimonials {
    text-align: center;
    padding: 6rem 0;
}

blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin: 2rem auto;
    max-width: 800px;
}

/* Careers */
#careersIframe {
    height: 60vh;
    width: 50vw;
}

/* Footer */
footer {
    background: var(--background-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

    .reveal-left.active,
    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }

/* Animation Delays */
.delay-200 {
    transition-delay: 200ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-600 {
    transition-delay: 600ms;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Show only on mobile */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .nav-links.show {
            display: flex;
        }

        .nav-links a {
            width: 100%;
            text-align: center;
            padding: 0.75rem;
        }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Careers */
    #careersIframe {
        height: 70vh;
        width: 95vw;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Section headings */
h2, h3, h4, h5, h6 {
    font-family: 'Reem Kufi', sans-serif;
    font-weight: 500;
}


/* Left-aligned bulleted lists - override card centering */
.card ul,
.card ul li,
ul:not(.nav-links),
ul:not(.nav-links) li {
    text-align: left !important;
}

.card ul {
    padding-left: 1.5rem;
    list-style-position: inside;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer bottom layout */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    margin: 0;
    text-align: left;
}

.footer-bottom-content .social-icons {
    margin-top: 0;
    justify-content: flex-end;
}

/* Leadership Team */
.leader-title {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Leadership Team 2x2 grid */
#leadership .grid {
    grid-template-columns: repeat(2, 1fr);
}

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

/* Leadership Card - Horizontal Layout */
#leadership .card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    padding: 0;
    overflow: hidden;
    min-height: 195px;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8f5e0 100%);
    border-left: 4px solid var(--primary);
}

#leadership .card .leader-photo {
    width: 140px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

#leadership .card .leader-content {
    padding: 1rem 1.5rem;
    flex: 1;
}

#leadership .card h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

#leadership .card .leader-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
}

#leadership .card .leader-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 0.75rem 0;
}

#leadership .card .leader-bio {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

#leadership .card .icon {
    display: none;
}

@media (max-width: 768px) {
    #leadership .card {
        flex-direction: column;
    }
    #leadership .card .leader-photo {
        width: 100%;
        height: 150px;
    }
}

/* Placeholder for leader photos */
#leadership .card .leader-photo {
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
}
