/* ===== FONT FACE ===== */
@font-face {
    font-family: "Funtastic";
    src: url("../fonts/Funtastic-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== VARIABLES ===== */
:root {
    --primary-100: #86848e;
    --primary-300: #575662;
    --primary-400: #3b3953;
    --primary-500: #161528;
    --base-100: #f4f1eb;
    --base-200: #e2ded7;
    --base-300: #cac6be;
    --base-400: #c0bbb3;
    --base-500: #a5a199;
    --coral-300: #f78976;
    --coral-400: #f86d54;
    --coral-500: #f95d42;
    --teal: #2a7a6e;
    --gold: #d4a853;
    --white: #ffffff;
    --font-titles: "Funtastic", "Fredoka", sans-serif;
    --font-texts:
        "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container: 1200px;
    --section-padding: 6rem;
    --outer-padding: 5rem;
    --box-padding: 4rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --ease-bounce: cubic-bezier(0.35, 0.65, 0.5, 2);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 1280px) {
    :root {
        --outer-padding: 4rem;
    }
}
@media (max-width: 1024px) {
    :root {
        --outer-padding: 3rem;
        --section-padding: 5rem;
        --box-padding: 3.5rem;
    }
}
@media (max-width: 768px) {
    :root {
        --outer-padding: 2rem;
        --section-padding: 4rem;
        --box-padding: 2.5rem;
    }
}
@media (max-width: 480px) {
    :root {
        --outer-padding: 1.25rem;
        --section-padding: 3.5rem;
        --box-padding: 2rem;
    }
}

/* ===== BASE ===== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-texts);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--primary-500);
    background: var(--base-100);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--coral-500);
    color: var(--white);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-titles);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--primary-500);
}

h1 {
    font-size: clamp(3.2rem, 8vw, 5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.25rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--primary-300);
}

p:last-child {
    margin-bottom: 0;
}

.sub-text {
    font-size: 50%;
    display: block;
}

/* ===== LAYOUT ===== */
.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--outer-padding);
}

section {
    padding: var(--section-padding) 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-titles);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--coral-500);
    margin-bottom: 1rem;
}

/* ===== SQUIRCLE BUTTON ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-texts);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition:
        transform 0.2s var(--ease-bounce),
        background-color 0.15s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.04);
}

.btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.btn--primary {
    background: var(--coral-500);
    color: var(--white) !important;
}

.btn--primary:hover {
    background: var(--coral-400);
    box-shadow: 0 8px 30px rgba(249, 93, 66, 0.3);
}

.btn--outline {
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    background: transparent;
}

.btn--outline:hover {
    background: var(--primary-500);
    color: var(--base-100);
}

.btn--dark {
    background: var(--primary-500);
    color: var(--base-100);
}

.btn--dark:hover {
    background: var(--primary-400);
}

.btn--sm {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.btn--white {
    background: var(--base-100);
    color: var(--primary-500);
}

.btn--white:hover {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 var(--outer-padding);
    transition: background-color 0.4s ease;
    contain: layout style;
}

.nav-bg {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(244, 241, 235, 0.6);
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.4s ease,
        border-color 0.3s ease;
    z-index: -1;
    will-change: background-color, border-color;
}

.nav.scrolled .nav-bg {
    background: rgba(244, 241, 235, 0.92);
    border-color: var(--base-200);
}

.nav-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-titles);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-500);
    transition: transform 0.2s var(--ease-bounce);
}

.nav-brand:hover {
    transform: scale(1.04);
}

.nav-brand em {
    font-style: normal;
    color: var(--coral-500);
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-300);
    position: relative;
    transition:
        color 0.2s ease,
        transform 0.15s var(--ease-bounce);
}

.nav-links a:hover {
    color: var(--primary-500);
    transform: scale(1.05);
}

.nav-links a:active {
    transform: scale(0.97);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-500);
    transition: width 0.25s ease;
}

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

.nav-cta {
    margin-left: 0.5rem;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-500);
    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);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 21, 40, 0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-overlay.show {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .nav {
        height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--base-100);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        z-index: 100;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-family: var(--font-titles);
        font-size: 1.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--primary-500);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text h1 em {
    font-style: normal;
    color: var(--coral-500);
    display: block;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--primary-300);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Key numbers row under hero text */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--base-200);
}

.hero-stat .stat-number {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-500);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.hero-stat .stat-number .stat-accent {
    color: var(--coral-500);
}

.hero-stat .stat-label {
    font-size: 0.88rem;
    color: var(--base-500);
    margin-top: 0.4rem;
}

/* Hero visual — instrument cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 380px;
    width: 100%;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(22, 21, 40, 0.06);
    transition: transform 0.2s var(--ease-bounce);
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.hero-card:nth-child(2),
.hero-card:nth-child(4) {
    transform: translateY(24px);
}

.hero-card:nth-child(2):hover,
.hero-card:nth-child(4):hover {
    transform: translateY(18px) scale(1.02);
}

.hero-card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.hero-card-name {
    font-family: var(--font-titles);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-500);
    display: block;
}

.hero-card-sub {
    font-size: 0.8rem;
    color: var(--base-500);
    margin-top: 4px;
    display: block;
}

@media (max-width: 900px) {
    .hero .wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
    }
}

/* ===== LESSONS ===== */
.lessons {
    background: var(--white);
    position: relative;
}

.lessons-header {
    text-align: center;
    margin-bottom: 4rem;
}

.lessons-header h2 {
    margin-bottom: 1rem;
}

.lessons-header p {
    max-width: 560px;
    margin: 0 auto;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.lesson-card {
    background: var(--base-100);
    border-radius: var(--radius-lg);
    padding: var(--box-padding) 2rem;
    text-align: center;
    transition:
        transform 0.2s var(--ease-bounce),
        box-shadow 0.2s ease;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
}

.lesson-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(22, 21, 40, 0.08);
}

.lesson-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.lesson-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.lesson-pricing {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lesson-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--primary-300);
    padding: 10px 0;
    border-top: 1px solid var(--base-200);
}

.lesson-price:last-child {
    border-bottom: 1px solid var(--base-200);
}

.lesson-price strong {
    color: var(--primary-500);
    font-weight: 700;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .lessons-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ===== PROMO ===== */
.promo {
    padding: 0;
}

.promo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.promo-panel {
    padding: var(--box-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
}

.promo-offer {
    background: var(--primary-500);
    color: var(--base-100);
}

.promo-offer .section-label {
    color: var(--coral-400);
}

.promo-offer h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.promo-offer .promo-detail {
    color: var(--primary-100);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.promo-creative-kids {
    background: var(--teal);
    color: var(--white);
}

.promo-creative-kids .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.promo-creative-kids h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.promo-creative-kids p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 480px;
}

@media (max-width: 768px) {
    .promo-inner {
        grid-template-columns: 1fr;
    }

    .promo-panel {
        min-height: 280px;
    }
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-photo-area {
    aspect-ratio: 4 / 5;
    background: linear-gradient(
        160deg,
        var(--primary-500) 0%,
        var(--primary-400) 100%
    );
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-photo-area .note {
    font-size: 4rem;
    opacity: 0.12;
    position: absolute;
    color: var(--base-100);
}

.about-photo-area .note:nth-child(1) {
    top: 15%;
    left: 18%;
}
.about-photo-area .note:nth-child(2) {
    top: 48%;
    right: 12%;
}
.about-photo-area .note:nth-child(3) {
    bottom: 12%;
    left: 28%;
}

.about-photo-area .founder-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.founder-text .name {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    color: var(--base-100);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.founder-text .role {
    font-size: 0.95rem;
    color: var(--primary-100);
    font-weight: 400;
}

.about-year-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--coral-500);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 30px rgba(249, 93, 66, 0.35);
    line-height: 1.15;
    transition: transform 0.2s var(--ease-bounce);
}

.about-year-badge:hover {
    transform: scale(1.08);
}

.about-year-badge strong {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    font-weight: 400;
    display: block;
}

.about-text .section-label {
    margin-bottom: 0.75rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 560px;
}

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

    .about-visual {
        max-width: 340px;
        margin: 0 auto;
    }
}

/* ===== TESTIMONIAL ===== */
.testimonial {
    background: var(--primary-500);
    color: var(--base-100);
    overflow: hidden;
}

.testimonial-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-inner .section-label {
    color: var(--coral-400);
}

.testimonial-card blockquote {
    font-family: var(--font-titles);
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-card blockquote::before {
    content: "";
    display: block;
    width: 3rem;
    height: 2.5rem;
    margin: 0 auto 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40' fill='%23f95d42'%3E%3Cpath d='M0 24.8V40h16.4V24.8H8.2C8.2 17.6 12.3 12 20.5 8.4L16.4 0C6.6 4.4 0 12.4 0 24.8zm27.5 0V40H44V24.8h-8.2C35.8 17.6 39.8 12 48 8.4L43.9 0c-9.8 4.4-16.4 12.4-16.4 24.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
}

.testimonial-attribution {
    font-size: 1rem;
    font-weight: 700;
    color: var(--base-100);
}

.testimonial-attribution span {
    display: block;
    font-weight: 400;
    color: var(--primary-100);
    font-size: 0.92rem;
    margin-top: 4px;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--base-100);
}

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

.contact-info .section-label {
    margin-bottom: 0.75rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    max-width: 440px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-bounce);
}

.contact-item-icon:hover {
    transform: scale(1.1);
}

.contact-item-icon.addr {
    background: var(--primary-500);
    color: var(--base-100);
}
.contact-item-icon.email {
    background: var(--coral-500);
    color: var(--white);
}
.contact-item-icon.phone {
    background: var(--teal);
    color: var(--white);
}

.contact-item-text {
    font-size: 1rem;
    padding-top: 2px;
}

.contact-item-text strong {
    display: block;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.contact-item-text span,
.contact-item-text a {
    color: var(--primary-300);
    transition: color 0.2s ease;
}

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

.hours {
    margin-top: 2.5rem;
}

.hours h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--base-200);
    color: var(--primary-300);
}

.hours-row:first-of-type {
    border-top: 1px solid var(--base-200);
}

.hours-row strong {
    color: var(--primary-500);
    font-weight: 600;
}

/* Contact form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--box-padding);
    box-shadow: 0 4px 30px rgba(22, 21, 40, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--base-200);
    border-radius: var(--radius-md);
    background: var(--base-100);
    font-size: 1rem;
    color: var(--primary-500);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral-500);
    box-shadow: 0 0 0 4px rgba(249, 93, 66, 0.1);
    background: var(--white);
}

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

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

.form-submit {
    margin-top: 0.5rem;
}

.form-submit .btn {
    width: 100%;
}

.form-note {
    font-size: 0.82rem;
    color: var(--base-500);
    text-align: center;
    margin-top: 1rem;
}

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* ===== CTA SECTION (before footer) ===== */
.cta-section {
    background: var(--primary-500);
    text-align: center;
    padding: var(--section-padding) 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section h2 em {
    font-style: normal;
    color: var(--coral-500);
}

.cta-section .cta-sub {
    color: var(--primary-100);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-500);
    color: var(--primary-100);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .nav-brand {
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: var(--primary-100);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-family: var(--font-titles);
    color: var(--base-100);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links-group li {
    margin-bottom: 0.6rem;
}

.footer-links-group a {
    color: var(--primary-100);
    font-size: 0.95rem;
    transition:
        color 0.2s ease,
        transform 0.15s var(--ease-bounce);
    display: inline-block;
}

.footer-links-group a:hover {
    color: var(--white);
    transform: scale(1.03);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--primary-100);
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

.fade-in.d1 {
    transition-delay: 0.08s;
}
.fade-in.d2 {
    transition-delay: 0.16s;
}
.fade-in.d3 {
    transition-delay: 0.24s;
}
.fade-in.d4 {
    transition-delay: 0.32s;
}
.fade-in.d5 {
    transition-delay: 0.4s;
}

/* Hero-specific entrance */
.hero-text {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.15s;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hero-visual {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.35s;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-500);
    color: var(--base-100);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8) translateZ(0);
    transition:
        opacity 0.25s var(--ease-bounce),
        transform 0.25s var(--ease-bounce),
        background-color 0.25s var(--ease-bounce);
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(22, 21, 40, 0.15);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--coral-500);
    transform: scale(1.1);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ===== UTILITY ===== */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .hero-text,
    .hero-visual {
        opacity: 1;
        transform: none;
        animation: none;
        will-change: auto;
    }

    .fade-in,
    .hero-card,
    .lesson-card,
    .back-to-top,
    .nav-bg {
        will-change: auto;
    }
}
