/* ========================================
   All Saints Infant School — Stylesheet
   ======================================== */

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

:root {
    --teal-50: #f0f7f7;
    --teal-100: #d6eceb;
    --teal-200: #aed8d6;
    --teal-300: #7bbfb8;
    --teal-400: #52a39c;
    --teal-500: #368a83;
    --teal-600: #0d6e6e;
    --teal-700: #0a5454;
    --teal-800: #083f3f;
    --teal-900: #052a2a;
    
    --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;
    
    --cream: #f7f5f0;
    --warm-white: #faf9f6;
    
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.15);
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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 ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-900);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-tag.light {
    color: var(--teal-200);
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1.5px;
    background: var(--teal-600);
}

.section-tag.light::before {
    background: var(--teal-400);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 640px;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.text-center .section-lead {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    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(-1px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-outline-teal {
    background: transparent;
    color: var(--teal-600);
    border-color: var(--teal-600);
}

.btn-outline-teal:hover {
    background: var(--teal-50);
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.nav-logo-icon {
    color: var(--teal-600);
}

.nav-logo-text {
    letter-spacing: -0.01em;
}

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

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

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

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

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

.nav-cta {
    font-weight: 500 !important;
    color: var(--teal-600) !important;
    border: 1.5px solid var(--teal-600);
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.25s ease !important;
}

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

.nav-cta:hover {
    background: var(--teal-600);
    color: #fff !important;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.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 ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 42, 42, 0.88) 0%,
        rgba(13, 110, 110, 0.72) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 160px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--teal-200);
    margin-bottom: 32px;
    padding: 6px 16px;
    border: 1px solid rgba(174, 216, 214, 0.3);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    max-width: 820px;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    color: var(--teal-200);
}

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 40px;
}

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

/* ---------- Floating Stat Cards ---------- */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 24px;
    pointer-events: none;
}

.stat-card {
    flex: 1;
    max-width: 260px;
    min-width: 180px;
    pointer-events: auto;
    transform: translateY(50%);
}

.stat-card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-100);
}

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

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

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

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

/* ---------- About ---------- */
.about {
    background: var(--warm-white);
}

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

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

.about-image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--warm-white);
}

.about-image-accent img {
    width: 260px;
    height: 180px;
    object-fit: cover;
}

.about-seal {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 90px;
    height: 90px;
    background: var(--teal-600);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.about-seal svg {
    margin-bottom: 2px;
}

.about-seal span {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
}

.about-content {
    padding-top: 20px;
}

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

.about-content p {
    color: var(--slate-600);
    margin-bottom: 16px;
    line-height: 1.75;
}

.about-values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--teal-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
}

.value-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.value-item span {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ---------- Programs ---------- */
.programs {
    background: var(--cream);
}

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

.program-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.program-card.featured {
    border: 2px solid var(--teal-600);
    position: relative;
}

.program-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--teal-600);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    z-index: 2;
}

.program-card-image {
    position: relative;
    overflow: hidden;
}

.program-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.04);
}

.program-card-age {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.program-card-body {
    padding: 28px;
}

.program-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.program-card-body p {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.program-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--slate-700);
}

.program-features li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--teal-600);
    border-radius: 50%;
}

/* ---------- Admissions ---------- */
.admissions {
    background: var(--warm-white);
}

.admissions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.admission-step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.step-number {
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-200);
    line-height: 1;
    padding-top: 2px;
}

.admission-step strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.admission-step span {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.admissions-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 16px 20px;
    background: var(--teal-50);
    border-radius: 10px;
    border: 1px solid var(--teal-100);
    font-size: 0.9375rem;
    color: var(--teal-700);
}

/* ---------- Form ---------- */
.admissions-form-wrap {
    position: sticky;
    top: 100px;
}

.admissions-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
}

.admissions-form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.form-intro {
    font-size: 0.9375rem;
    color: var(--slate-500);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-600);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.1);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success h4 {
    font-size: 1.5rem;
    margin: 16px 0 8px;
    color: var(--teal-700);
}

.form-success p {
    color: var(--slate-500);
    font-size: 0.9375rem;
}

/* ---------- Campus Gallery ---------- */
.campus {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item-wide {
    grid-column: span 8;
    height: 320px;
}

.gallery-item:not(.gallery-item-wide) {
    height: 240px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.7));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ---------- Community / Testimonials ---------- */
.community {
    background: var(--warm-white);
}

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

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-quote {
    margin-bottom: 20px;
    color: var(--teal-600);
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--slate-700);
    line-height: 1.65;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--slate-900);
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--slate-400);
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 80px 0;
    background: var(--teal-800);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

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

.cta-actions .btn-primary:hover {
    background: var(--teal-50);
}

.cta-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* ---------- Contact ---------- */
.contact {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--teal-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
}

.contact-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--teal-600);
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    background: var(--slate-200);
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--slate-500);
    text-align: center;
    padding: 24px;
}

.map-placeholder p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.map-placeholder .btn {
    margin-top: 8px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--slate-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 72px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo-icon {
    color: var(--teal-400);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

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

.footer-newsletter p {
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-form button {
    padding: 12px 16px;
    background: var(--teal-600);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--teal-500);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: var(--teal-400);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--teal-300);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .admissions-layout,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-accent {
        right: 0;
    }
    
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item-wide {
        grid-column: span 12;
    }
    
    .gallery-item:not(.gallery-item-wide) {
        grid-column: span 6;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .stat-card {
        max-width: none;
        flex: 1 1 calc(50% - 12px);
    }
    
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item-wide,
    .gallery-item:not(.gallery-item-wide) {
        grid-column: span 12;
        height: 220px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admissions-form-card {
        padding: 28px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 72px 0;
    }
    
    .hero-content {
        padding: 100px 20px 140px;
    }
    
    .stat-card {
        flex: 1 1 100%;
    }
    
    .about-image-main img {
        height: 320px;
    }
    
    .about-image-accent {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
    }
}

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