/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --background: hsl(30, 50%, 98%);
    --foreground: hsl(220, 30%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 30%, 15%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(220, 30%, 15%);
    --primary: hsl(210, 60%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(30, 40%, 94%);
    --secondary-foreground: hsl(220, 30%, 15%);
    --muted: hsl(30, 30%, 92%);
    --muted-foreground: hsl(220, 15%, 45%);
    --accent: hsl(20, 85%, 65%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(210, 30%, 88%);
    --input: hsl(210, 30%, 88%);
    --ring: hsl(210, 60%, 45%);
    --radius: 0.75rem;
    
    /* Custom tokens */
    --chalk: hsl(0, 0%, 100%);
    --pencil: hsl(40, 90%, 60%);
    --apple: hsl(20, 85%, 65%);
    --chalkboard: hsl(210, 50%, 25%);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(210, 60%, 45%) 0%, hsl(210, 55%, 35%) 100%);
    --gradient-warm: linear-gradient(180deg, hsl(30, 50%, 98%) 0%, hsl(30, 40%, 94%) 100%);
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(var(--background), 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    transition: transform 0.2s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nav {
        gap: 1rem;
    }
}

.nav-link {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-nav:hover {
    background-color: hsl(210, 60%, 40%);
    transform: translateY(-1px);
}

.btn-hero {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
}

.btn-hero:hover {
    background-color: hsl(210, 60%, 40%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(210, 60%, 45%, 0.3);
}

.btn-outline {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--secondary);
    transform: translateY(-1px);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: hsl(210, 60%, 40%);
    transform: translateY(-1px);
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-warm);
}

.floating-icon {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-icon-1 {
    top: 8rem;
    left: 10%;
    color: var(--pencil);
    font-size: 9rem;
}

.floating-icon-2 {
    top: 12rem;
    right: 15%;
    color: var(--apple);
    font-size: 7.5rem;
    animation-delay: 0.5s;
}

.floating-icon-3 {
    bottom: 8rem;
    left: 20%;
    color: var(--primary);
    font-size: 10.5rem;
    animation-delay: 1s;
}

.floating-icon-4 {
    bottom: 12rem;
    right: 10%;
    color: var(--pencil);
    font-size: 6rem;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: hsla(var(--primary), 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-in-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeIn 1s ease-in-out 0.1s both;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.text-primary {
    color: var(--primary);
}

.text-primary-large {
    color: var(--primary);
    font-size: 1.2em;
    font-weight: 900;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-in-out 0.2s both;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 1s ease-in-out 0.3s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

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

/* Main content */
.main-content {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* Page hero */
.page-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
    }
}

.page-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* Card styles */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .card {
        padding: 3rem;
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: hsla(var(--primary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.card-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Text utilities */
.text-large {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    text-align: center;
    margin-bottom: 3rem;
}

/* Mission section */
.mission-section {
    margin-bottom: 5rem;
}

/* Values section */
.values-section {
    margin-bottom: 5rem;
}

.values-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    text-align: center;
    padding: 1.5rem;
}

.value-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background-color: hsla(var(--primary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.value-description {
    color: var(--muted-foreground);
}

/* Serve section */
.serve-section {
    margin-bottom: 5rem;
}

.serve-container {
    background-color: var(--secondary);
    border-radius: 1rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .serve-container {
        padding: 3rem;
    }
}

.serve-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .serve-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.serve-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.serve-title {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.serve-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Resources preview */
.resources-preview {
    padding: 4rem 0;
    background-color: var(--secondary);
}

.resources-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resource-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px hsla(0, 0%, 0%, 0.1);
}

.resource-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: hsla(var(--primary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.resource-card p {
    color: var(--muted-foreground);
}

/* Contact page styles */
.contact-layout {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.contact-info-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* Centered layout for contact page with 3 cards */
.contact-info-grid.centered {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-info-grid.centered .contact-info-card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
}

@media (max-width: 767px) {
    .contact-info-grid.centered {
        flex-direction: column;
        align-items: center;
        max-width: 400px;
    }
    
    .contact-info-grid.centered .contact-info-card {
        max-width: 100%;
        width: 100%;
    }
}

.contact-info-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: hsla(var(--primary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.contact-info-title {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.contact-info-text {
    color: var(--foreground);
    font-weight: 500;
}

.contact-info-subtext {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* FAQ section */
.faq-section {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.faq-title {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.faq-answer {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Login page styles */
.login-main {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--gradient-warm);
}

.login-container {
    width: 100%;
    max-width: 28rem;
    padding: 0 1rem;
}

.login-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px hsla(0, 0%, 0%, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background-color: hsla(var(--primary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--muted-foreground);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--foreground);
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.signup-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.signup-link:hover {
    text-decoration: underline;
}

.login-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.login-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.login-info ul {
    list-style: none;
    padding: 0;
}

.login-info li {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.login-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 0%, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 24rem;
    width: 100%;
    text-align: center;
}

.modal-header {
    margin-bottom: 1rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: hsl(120, 50%, 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: hsl(120, 50%, 40%);
}

.modal-header h3 {
    font-weight: 700;
    color: var(--foreground);
}

.modal-content p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--chalkboard);
    color: var(--chalk);
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: hsla(var(--chalk), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chalk);
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-text {
    color: hsla(var(--chalk), 0.7);
    font-size: 0.875rem;
}

/* Utility classes */
.btn-text {
    display: inline;
}

.btn-loader {
    display: none;
}

.loading .btn-text {
    display: none;
}

.loading .btn-loader {
    display: inline;
}

/* Responsive utilities */
@media (max-width: 767px) {
    .nav {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .btn-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
