/* Base Styles */
:root {
    --primary: #4a90e2;
    --primary-dark: #357abd;
    --secondary: #f5a623;
    --accent: #82c91e;
    --text: #333;
    --text-light: #666;
    --bg: #f9fbff;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Fredoka', sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-logo strong {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav summary {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.6rem;
    list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-links {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Hero */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-blob {
    position: absolute;
    right: -100px;
    top: 50px;
    width: 600px;
    height: 600px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.05;
    z-index: 1;
}

/* Buttons */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.2);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #e09612;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.2);
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
    justify-items: center;
}

.grid > * {
    width: 100%;
    max-width: 500px;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 1.5rem;
}

.text-link:hover {
    gap: 10px;
}

/* Team Section */
.team-avatar {
    width: 80px;
    height: 80px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.team-card {
    text-align: center;
}

/* Footer */
.footer {
    background: #222;
    color: var(--white);
    padding: 5rem 0 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    padding-bottom: 5rem;
}

.footer h3, .footer h4 {
    margin-bottom: 1.8rem;
    color: var(--white);
}

.footer-about p {
    color: #bbb;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #bbb;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 1;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-links .nav-link {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .about-intro-grid,
    .contact-layout,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessibility & UX Enhancements */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible, a:focus-visible {
    outline-offset: 4px;
}

.gallery-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.15);
}

.page-section {
    padding: 4rem 20px;
}

.page-section-narrow {
    max-width: 800px;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary);
}

.page-title-spaced {
    margin-bottom: 1rem;
}

.page-title-large-gap {
    margin-bottom: 2rem;
}

.page-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
}

.section-title-centered {
    text-align: center;
    margin-bottom: 3rem;
}

.section-block {
    margin-top: 4rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-spaced {
    margin-top: 5rem;
}

.section-surface {
    background: var(--white);
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

.text-small {
    font-size: 0.9rem;
}

.text-muted {
    color: var(--text-light);
}

.mt-md {
    margin-top: 1.5rem;
}

.mb-md {
    margin-bottom: 1.5rem;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.about-intro-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-school-card {
    background: #e0f2ff;
    border: none;
    text-align: center;
    padding: 3rem;
}

.about-school-icon {
    margin: 0 auto 1.5rem;
    background: var(--white);
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-school-title {
    color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.event-card {
    border-top: 5px solid var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card-secondary {
    border-top-color: var(--secondary);
}

.event-card-accent {
    border-top-color: var(--accent);
}

.event-header {
    margin-bottom: 1rem;
}

.event-date {
    font-weight: bold;
    color: var(--primary);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 5px;
}

.event-date-secondary {
    color: var(--secondary);
}

.event-date-accent {
    color: var(--accent);
}

.add-cal-btn {
    margin-top: 1.5rem;
    width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #ddd;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-cal-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f7ff;
}

.add-cal-btn-disabled,
.add-cal-btn-disabled:hover {
    cursor: not-allowed;
    color: #888;
    border-color: #ddd;
    background: #f7f7f7;
}

.funding-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 2rem;
}

.funding-item {
    text-align: center;
}

.funding-icon {
    margin: 0 auto 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-placeholder {
    background: #eef5ff;
    height: 200px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form-section .card {
    height: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.privacy-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.privacy-check input {
    margin-top: 5px;
}

.privacy-check label {
    font-size: 0.9rem;
    font-weight: normal;
}

.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-response {
    margin-top: 4rem;
    border-top: 5px solid var(--primary);
}

.form-response-success {
    border-top-color: var(--accent);
}

.form-response-error {
    border-top-color: #e74c3c;
}

.inline-link {
    color: var(--primary);
    text-decoration: underline;
}

.full-width {
    width: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-section {
    margin-top: 5rem;
}

.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-list {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.privacy-heading {
    margin-top: 2rem;
}

.mail-link {
    color: var(--primary);
    font-weight: 600;
}

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