:root {
    --bg: #fffdf7;
    --surface: #ffffff;
    --surface-soft: #fff5e8;
    --ink: #1f2a36;
    --muted: #526071;
    --brand: #ff7a45;
    --brand-2: #31b6a3;
    --brand-3: #ffd166;
    --accent: #1f7fe5;
    --border: #e8edf3;
    --success: #1a8f5b;
    --error: #bf3b3b;
    --container: 1140px;
    --shadow: 0 18px 45px rgba(24, 44, 72, 0.09);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fffdf7 0%, #fff9f0 55%, #fffdf7 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

main {
    position: relative;
    z-index: 2;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
}

.section-pad {
    padding: 4.5rem 0;
}

.soft-bg {
    background: linear-gradient(135deg, #fff8eb 0%, #eefaf8 100%);
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--brand);
    margin: 0 0 0.8rem;
    font-size: 0.78rem;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    line-height: 1.2;
    font-family: 'Fredoka', sans-serif;
}

h1 {
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
    margin-bottom: 0.9rem;
}

p {
    margin-top: 0;
    color: var(--muted);
}

ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.site-bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(1px);
    z-index: 0;
    pointer-events: none;
}

.site-bg-shape-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 122, 69, 0.18) 0%, rgba(255, 122, 69, 0) 70%);
    top: -120px;
    right: -120px;
    animation: driftOne 24s ease-in-out infinite alternate;
}

.site-bg-shape-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(49, 182, 163, 0.18) 0%, rgba(49, 182, 163, 0) 70%);
    bottom: -100px;
    left: -80px;
    animation: driftTwo 26s ease-in-out infinite alternate;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(255, 253, 247, 0.95);
    border-bottom: 1px solid rgba(232, 237, 243, 0.75);
}

.top-contact-bar {
    background: linear-gradient(95deg, #ff7a45 0%, #ff9966 60%, #ffc15b 100%);
    color: #fff;
}

.top-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0.65rem 0;
}

.top-contact-grid p {
    margin: 0;
    font-size: 0.88rem;
    color: #fff;
}

.top-contact-grid a {
    color: inherit;
    text-decoration: none;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(31, 42, 54, 0.15);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    font-weight: 700;
    color: var(--ink);
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
    background: rgba(49, 182, 163, 0.16);
    color: #0f6d61;
    outline: none;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    background: var(--surface-soft);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}

.hero {
    padding-top: 5.8rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-copy p {
    max-width: 62ch;
}

.hero-media {
    background: linear-gradient(145deg, #fff2de 0%, #e9faf6 100%);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    animation: heroFloat 10s ease-in-out infinite;
}

.hero-media img {
    width: 100%;
    border-radius: 20px;
}

.section-head {
    max-width: 700px;
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    gap: 1.2rem;
}

.card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.class-card,
.contact-form-wrap,
.contact-map,
.content-block {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.info-card,
.content-block {
    padding: 1.4rem;
}

.info-card h3 {
    margin-bottom: 0.4rem;
}

.class-card {
    overflow: hidden;
}

.class-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.class-card-body {
    padding: 1.2rem;
}

.muted {
    color: #6d7a89;
    font-size: 0.92rem;
}

.pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #eef7ff;
    color: #1f7fe5;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-grid figure {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-hero {
    padding-top: 5.5rem;
}

.two-col {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.two-col.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.image-block {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-layout {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr 1fr;
}

.contact-map iframe {
    width: 100%;
    min-height: 510px;
    border: 0;
    border-radius: var(--radius-md);
}

.contact-form-wrap {
    padding: 1.4rem;
}

.contact-form {
    display: grid;
    gap: 0.75rem;
}

.contact-form label {
    font-weight: 700;
    color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfd9e6;
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.btn:focus-visible,
.menu-toggle:focus-visible,
.main-nav a:focus-visible {
    outline: 2px solid transparent;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 127, 229, 0.2);
}

.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.alert {
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.alert-success {
    background: #e9f9f1;
    color: var(--success);
    border: 1px solid #b9ebd1;
}

.alert-error {
    background: #feeeee;
    color: var(--error);
    border: 1px solid #f6bcbc;
}

.cta-band {
    background: linear-gradient(110deg, #31b6a3 0%, #31a8c9 45%, #1f7fe5 100%);
    background-size: 160% 160%;
    color: #fff;
    padding: 3rem 0;
    animation: ctaGlow 18s ease infinite;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-content h2 {
    margin: 0;
    color: #fff;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(255, 122, 69, 0.35);
}

.btn-outline {
    border: 1px solid #d4dbe6;
    color: var(--ink);
    background: #fff;
}

.btn-light {
    background: #fff;
    color: #1466bd;
}

.site-footer {
    padding-top: 3rem;
    background: #172230;
    color: #dce6f2;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #dce6f2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.footer-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-bottom {
    border-top: 1px solid rgba(220, 230, 242, 0.2);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.social-list {
    list-style: none;
    display: flex;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

.social-list a {
    text-decoration: none;
    border: 1px solid rgba(220, 230, 242, 0.4);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-list a:hover {
    transform: translateY(-1px);
    background: rgba(220, 230, 242, 0.14);
}

.info-card:hover,
.class-card:hover,
.content-block:hover,
.contact-form-wrap:hover,
.contact-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(24, 44, 72, 0.11);
}

.reveal,
.reveal-delay {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-delay {
    transition-delay: 0.15s;
}

.reveal.is-visible,
.reveal-delay.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes driftOne {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-10px, 8px, 0);
    }
}

@keyframes driftTwo {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(12px, -9px, 0);
    }
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes ctaGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    .reveal-delay {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 992px) {
    .card-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid.three {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .contact-layout,
    .two-col,
    .two-col.reverse,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-map iframe {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .top-contact-grid {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fffdf7;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.2s ease;
    }

    .main-nav ul {
        width: min(var(--container), calc(100% - 2rem));
        margin: 0 auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }

    .main-nav.open {
        transform: scaleY(1);
    }

    .card-grid.four,
    .card-grid.two,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-pad {
        padding: 3.25rem 0;
    }

    .hero {
        padding-top: 4.4rem;
    }

    .page-hero {
        padding-top: 4rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .social-list {
        width: 100%;
    }
}
