/* ============================================
   Aula Creativa — Design tokens
   ============================================ */

:root {
    /* Brand accents (identity, refined for contrast + calm saturation) */
    --blue: #1657c9;
    --blue-deep: #0f3f96;
    --sky: #6ec6e8;
    --sky-tint: #eaf6fc;
    --green: #4fae2e;
    --green-deep: #3c8a22;
    --green-tint: #eef9e7;
    --navy: #0f2138;
    --navy-soft: #16304d;
    --accent-strong: #0f2138;
    --orange: #f2a53d;
    --orange-deep: #c9711b;
    --orange-tint: #fdf1e2;
    --purple: #a78bda;
    --purple-deep: #7c4fc4;
    --purple-tint: #f4eefc;

    /* Surfaces & text (light) */
    --bg: #fffdfa;
    --surface: #ffffff;
    --surface-muted: #f4f7f9;
    --border: #e2e9ee;
    --text: #16232f;
    --text-muted: #55677a;
    --text-on-dark: #f3f7fb;
    --text-on-dark-muted: #a9bcce;

    /* Shape system: pill buttons, 20px containers */
    --radius-container: 20px;
    --radius-pill: 999px;

    /* Shadow tinted to navy, not pure black */
    --shadow-sm: 0 2px 10px rgba(15, 33, 56, 0.07);
    --shadow-md: 0 14px 34px rgba(15, 33, 56, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 33, 56, 0.16);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1622;
        --surface: #101d2c;
        --surface-muted: #14243590;
        --border: #223247;
        --text: #eef3f8;
        --text-muted: #a9bcce;
        --sky-tint: #14283a;
        --green-tint: #123321;
        --blue: #5b96ff;
        --blue-deep: #a9c6ff;
        --green: #6fcf3d;
        --green-deep: #8fe562;
        --accent-strong: #6ec6e8;
        --orange-deep: #f5b06a;
        --orange-tint: #3a2712;
        --purple-deep: #c9a6f5;
        --purple-tint: #2a2140;
        --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
}

/* ============================================
   Reset & base
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--navy);
    letter-spacing: -0.01em;
}

@media (prefers-color-scheme: dark) {
    h1, h2, h3, h4 { color: var(--text); }
}

p { margin: 0; }

a { color: inherit; }

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

section {
    padding: 5rem 0;
}

.section-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.section-head {
    max-width: 620px;
    margin-bottom: 2.75rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-head h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.section-head strong,
.about-copy strong {
    color: var(--navy);
    font-weight: 700;
}

@media (prefers-color-scheme: dark) {
    .section-head strong,
    .about-copy strong { color: var(--text); }
}

/* ============================================
   Reveal-on-scroll (motion, motivated: draws
   attention to each section as it enters)
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.benefits-bento .reveal:nth-child(2) { transition-delay: 0.08s; }
.benefits-bento .reveal:nth-child(3) { transition-delay: 0.16s; }
.benefits-bento .reveal:nth-child(4) { transition-delay: 0.24s; }

.courses-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.courses-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.courses-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================
   Header / Navigation
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 1.75rem;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand .logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

#brand-home-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: inline-block;
}

.brand-text h1 {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--navy);
}

@media (prefers-color-scheme: dark) {
    .brand-text h1 { color: var(--text); }
}

.brand-text p {
    margin: 1px 0 0;
    font-size: 0.78em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav a:hover,
.nav a.active-link {
    color: var(--navy);
    border-bottom-color: var(--green);
}

@media (prefers-color-scheme: dark) {
    .nav a:hover,
    .nav a.active-link { color: var(--text); }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--navy);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.25rem;
}

@media (prefers-color-scheme: dark) {
    .nav-toggle { color: var(--text); }
}

/* ============================================
   Buttons (shape lock: full pill)
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--green-deep);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(60, 138, 34, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(60, 138, 34, 0.34);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blue-deep);
    border-color: var(--blue-deep);
}

.btn-secondary:hover {
    background-color: var(--sky-tint);
    transform: translateY(-2px);
}

.btn-light {
    background-color: #ffffff;
    color: var(--navy);
}

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

/* ============================================
   Hero — asymmetric split
   ============================================ */

.hero {
    padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

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

.hero-content h2 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 1.1rem;
}

.hero-content h2 em {
    font-style: normal;
    font-weight: 800;
    color: var(--green-deep);
}

@media (prefers-color-scheme: dark) {
    .hero-content h2 em { color: var(--green); }
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.6;
    max-width: 46ch;
    margin-bottom: 1.9rem;
}

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

.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -8% -12% -10% 8%;
    z-index: -1;
    background: linear-gradient(155deg, var(--sky-tint), var(--green-tint));
    border-radius: 46% 54% 60% 40% / 44% 40% 60% 56%;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-container);
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    position: absolute;
    bottom: -1.4rem;
    left: -1.4rem;
    background: var(--surface);
    border-radius: var(--radius-container);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 220px;
    border: 1px solid var(--border);
}

.hero-badge i {
    font-size: 1.6rem;
    color: var(--green-deep);
    flex-shrink: 0;
}

.hero-badge p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

@media (prefers-color-scheme: dark) {
    .hero-badge p { color: var(--text); }
}

/* ============================================
   Benefits — asymmetric bento (4 items, 0 gaps)
   ============================================ */

.benefits-bento {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "feature b2 b3"
        "feature b4 b4";
    gap: 1.25rem;
}

.bento-tile {
    border-radius: var(--radius-container);
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 190px;
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bento-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bento-tile i {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.bento-tile h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.bento-tile p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.bento-feature {
    grid-area: feature;
    justify-content: flex-end;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    min-height: 100%;
}

.bento-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.85;
}

.bento-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(15, 33, 56, 0.72) 10%, rgba(15, 33, 56, 0.1) 75%);
}

.bento-feature > i,
.bento-feature > h3,
.bento-feature > p {
    position: relative;
    z-index: 2;
}

.bento-feature i { color: var(--sky); }
.bento-feature h3 { color: #fff; }
.bento-feature p { color: var(--text-on-dark-muted); }

.bento-b2 { grid-area: b2; background: var(--sky-tint); border-color: transparent; }
.bento-b2 i { color: var(--blue-deep); }

.bento-b3 { grid-area: b3; background: var(--surface); }
.bento-b3 i { color: var(--accent-strong); }

.bento-b4 {
    grid-area: b4;
    background: var(--green-tint);
    border-color: transparent;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    justify-content: flex-start;
}

.bento-b4 i { margin-bottom: 0; font-size: 2.1rem; color: var(--green-deep); flex-shrink: 0; }
.bento-b4 div h3 { margin-bottom: 0.3rem; }

/* ============================================
   Courses — cards
   ============================================ */

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

.course-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-container);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.course-card[data-level="5-6"] { --level: var(--green-deep); --level-tint: var(--green-tint); }
.course-card[data-level="7-9"] { --level: var(--blue-deep); --level-tint: var(--sky-tint); }
.course-card[data-level="10-12"] { --level: var(--orange-deep); --level-tint: var(--orange-tint); }
.course-card[data-level="13-15"] { --level: var(--purple-deep); --level-tint: var(--purple-tint); }

.course-card-media {
    border-bottom: 5px solid var(--level, var(--blue));
}

.course-card-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.course-card-body {
    padding: 1.5rem 1.6rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    background: var(--level-tint, var(--green-tint));
    color: var(--level, var(--green-deep));
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.course-badge i {
    font-size: 1rem;
}

.course-card-body h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.course-card-body > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

.course-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 1.2rem;
}

.course-checklist {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.course-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

.course-checklist i {
    color: var(--level, var(--green-deep));
    font-size: 1.05rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.course-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--level-tint, var(--green-tint));
    color: var(--level, var(--green-deep));
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: transform 0.2s var(--ease);
}

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

.course-cta i {
    transition: transform 0.3s var(--ease);
}

.course-card.is-open .course-cta i {
    transform: rotate(90deg);
}

.course-details-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
}

.course-card.is-open .course-details-wrap {
    grid-template-rows: 1fr;
}

.course-details {
    overflow: hidden;
}

.course-card.is-open .course-details {
    padding-top: 1.3rem;
}

.course-details p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.course-details p strong {
    color: var(--navy);
}

@media (prefers-color-scheme: dark) {
    .course-details p strong { color: var(--text); }
}

.course-details ul {
    margin: 0.4rem 0 1rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.course-details li {
    margin-bottom: 0.35rem;
}

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

@media (max-width: 640px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   About — narrative + pull-quote, then split list
   ============================================ */

.about-top {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3.5rem;
}

.about-copy p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}

.about-quote {
    background: var(--navy);
    border-radius: var(--radius-container);
    padding: 2.4rem;
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.about-quote img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: calc(var(--radius-container) - 8px);
    margin-bottom: 1.5rem;
    opacity: 0.92;
}

.about-quote i {
    font-size: 1.6rem;
    color: var(--green);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.about-quote p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    line-height: 1.45;
    font-weight: 600;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
}

.about-split-item {
    padding: 0 2rem;
}

.about-split-item:first-child {
    padding-left: 0;
    border-right: 1px solid var(--border);
}

.about-split-item:last-child {
    padding-right: 0;
}

.about-split-item i {
    font-size: 1.7rem;
    color: var(--blue-deep);
    margin-bottom: 0.85rem;
    display: inline-block;
}

.about-split-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.about-split-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ============================================
   Contact — dark split banner
   ============================================ */

#contact-section {
    padding: 0 0 5rem;
}

.contact-banner {
    background: var(--navy);
    border-radius: var(--radius-container);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-copy {
    padding: 3.5rem 3rem;
    color: var(--text-on-dark);
}

.contact-copy h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 0.85rem;
    line-height: 1.2;
}

.contact-copy p {
    color: var(--text-on-dark-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 40ch;
}

.contact-list {
    background: var(--navy-soft);
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-row i {
    font-size: 1.4rem;
    color: var(--sky);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.contact-row h3 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-row p, .contact-row a {
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-row a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--navy);
    color: var(--text-on-dark-muted);
    text-align: center;
    padding: 1.75rem;
    font-size: 0.85em;
}

/* ============================================
   Responsive
   ============================================ */

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

    .hero-visual {
        order: -1;
        max-width: 340px;
        margin: 0 auto;
    }

    .about-top {
        grid-template-columns: 1fr;
    }

    .contact-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section { padding: 3.5rem 0; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 1.75rem 1.25rem;
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav a:last-child { border-bottom: none; }

    .nav-toggle {
        display: block;
    }

    .benefits-bento {
        grid-template-columns: 1fr;
        grid-template-areas:
            "feature"
            "b2"
            "b3"
            "b4";
    }

    .bento-feature { min-height: 240px; }

    .bento-b4 { flex-direction: row; }

    .about-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-split-item:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 2rem;
    }

    .about-split-item {
        padding: 0;
    }

    .contact-copy, .contact-list {
        padding: 2.5rem 1.75rem;
    }

    .hero-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
