/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ── Typography ─────────────────────────────────── */
.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}

.section-headline {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: 24px;
}

.section-body {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 560px;
}

.section-body-wide {
    max-width: 640px;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-600);
    color: #fff;
    border-color: var(--teal-600);
}

.btn-primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--slate-800);
    border-color: var(--slate-300);
}

.btn-outline:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--slate-900);
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--teal-600);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-family: var(--serif);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--teal-700);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal-600);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--teal-600) !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.nav-cta:hover {
    background: var(--teal-700) !important;
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--slate-50);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: var(--teal-50);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    padding-right: 24px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1.5px;
    background: var(--teal-500);
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--slate-900);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--teal-600);
    font-style: italic;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.12);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/750;
}

.hero-image-accent {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 200px;
    height: 200px;
    background: var(--teal-600);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.15;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--teal-500), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── Stats ──────────────────────────────────────── */
.stats-section {
    background: var(--slate-900);
    padding: 72px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--teal-400);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-400);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── About ──────────────────────────────────────── */
.about-section {
    padding: 120px 0;
    background: var(--slate-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.about-image-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image-secondary {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    border: 4px solid var(--slate-50);
    margin-left: 40px;
}

.about-image-secondary img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.about-content .section-headline {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-700);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--teal-600);
    flex-shrink: 0;
}

/* ── Academics ──────────────────────────────────── */
.academics-section {
    padding: 120px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-headline {
    margin-bottom: 16px;
}

.section-header .section-body {
    margin: 0 auto;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--slate-50);
    border-radius: 12px;
    padding: 40px 32px;
    border: 1px solid var(--slate-200);
    transition: var(--transition);
}

.program-card:hover {
    border-color: var(--teal-200);
    background: var(--teal-50);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.1);
}

.program-card-icon {
    width: 52px;
    height: 52px;
    background: var(--teal-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
}

.program-card-icon svg {
    width: 24px;
    height: 24px;
}

.program-card-title {
    font-family: var(--serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.program-card-desc {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ── Community ──────────────────────────────────── */
.community-section {
    padding: 120px 0;
    background: var(--slate-900);
    overflow: hidden;
}

.community-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.community-content .section-eyebrow {
    color: var(--teal-400);
}

.community-content .section-headline {
    color: #fff;
}

.community-content .section-body {
    color: var(--slate-400);
}

.community-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-700);
}

.community-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.community-stat-number {
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--teal-400);
    line-height: 1;
}

.community-stat-label {
    font-size: 0.8125rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.community-images {
    position: relative;
    min-height: 600px;
}

.community-img-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
}

.community-img-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.community-img-float {
    position: absolute;
    bottom: -40px;
    left: -40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
    border: 4px solid var(--slate-900);
}

.community-img-float img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ── CTA ────────────────────────────────────────── */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-eyebrow {
    color: var(--teal-200);
    margin-bottom: 16px;
}

.cta-headline {
    font-family: var(--serif);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.cta-body {
    font-size: 1.125rem;
    color: var(--teal-100);
    line-height: 1.75;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Contact ────────────────────────────────────── */
.contact-section {
    padding: 120px 0;
    background: var(--slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item p {
    font-size: 1.0625rem;
    color: var(--slate-800);
    line-height: 1.6;
}

.contact-item a {
    color: var(--teal-700);
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--teal-500);
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid var(--slate-200);
}

.contact-form-title {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--slate-800);
    background: var(--slate-50);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: 8px;
    color: var(--teal-800);
    font-size: 0.9375rem;
    text-align: center;
}

.form-success.show {
    display: block;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
    background: var(--slate-950);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--teal-600);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-family: var(--serif);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .hero::before {
        width: 35%;
    }
    
    .hero-container {
        gap: 40px;
    }
    
    .about-grid,
    .community-layout,
    .contact-grid {
        gap: 48px;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-eyebrow {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .about-grid,
    .community-layout,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-secondary {
        margin-left: 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .community-images {
        min-height: 400px;
        order: -1;
    }
    
    .community-img-main img {
        height: 400px;
    }
    
    .community-img-float {
        bottom: -24px;
        left: -16px;
    }
    
    .community-stats {
        gap: 32px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ── Scroll Reveal (progressive enhancement) ───── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}
