/* Magic Club Page Styles */

body {
    background-image: url('../imagens/fundo_azul.png');
    background-size: 100% auto;
    background-position: top center;
    background-attachment: scroll;
    background-repeat: repeat-y;
}

/* Hero Section */
.mc-hero {
    background: transparent;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.mc-hero-content {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mc-logo-section {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mc-logo-main {
    max-width: 320px;
    height: auto;
}

.mc-logo-mbr {
    max-width: 450px;
    height: auto;
}

.mc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: #FFEB3B;
    letter-spacing: 0.5px;
}

.mc-subtitle {
    font-family: 'ABeeZee', sans-serif;
    font-size: 19px;
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 400;
    color: white;
}

.mc-subtitle strong {
    font-weight: 700;
}

/* Main Content Cards */
.mc-content {
    padding: 40px 20px 20px;
    background: transparent;
    position: relative;
    z-index: 3;
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 95%;
    margin: 0 auto;
    align-items: start;
}

.mc-card {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    position: relative;
    display: block;
    width: 100%;
}

.card-bg-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 65px 50px 50px;
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.card-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Mantém o mesmo texto em todas as resoluções */
.card-text-desktop { display: block; }
.card-text-mobile  { display: none; }

.card-intro {
    font-family: 'ABeeZee', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-intro strong {
    font-weight: 700;
}

.platform-intro {
    font-family: 'ABeeZee', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0 10px 0;
    font-weight: 700;
}

/* Lists */
.mc-benefits,
.mc-features {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.mc-benefits li,
.mc-features li {
    font-family: 'ABeeZee', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 0;
}

.mc-benefits li strong,
.mc-features li strong {
    font-weight: 700;
}

/* CTA Section */
.mc-cta {
    background: transparent;
    padding: 0 20px 300px;
    text-align: center;
    color: white;
    position: relative;
    margin-top: -150px;
}

.mc-cta-content {
    max-width: 1000px;
    padding: 0px 30px 0px 30px;
    margin: 100px auto 0;
    position: relative;
    z-index: 5;
}

.mc-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 95%;
    margin: 80px auto 0;
    position: relative;
    z-index: 3;
    padding-top: 0;
}

.mc-card-yellow {
    transform: scale(1.1) translateX(5px) translateY(10px);
    position: relative;
    z-index: 10;
}

.mc-card-yellow .card-content {
    padding: 50px 90px 10px 60px;
}

/* Purple Card (Como funciona) */
.mc-card-purple {
    transform: scale(1.1) translateY(5px) translateX(-15px);
    transform-origin: right center;
    position: relative;
    z-index: 5;
}

.mc-card-purple .card-content {
    padding: 60px 90px 10px 60px;
}

/* Green Card (O que o aluno desenvolve) */
.mc-card-green {
    transform: scale(1.3) translateX(-50px) translateY(20px);
    transform-origin: left center;
}

.mc-card-green .card-content {
    padding: 60px 90px;
}

.mc-card-green h2 {
    font-size: 20px;
}

.mc-development-intro {
    font-family: 'ABeeZee', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.mc-development-intro strong {
    font-weight: 700;
}

/* Pink Card (Hoje a MBR chega a) */
.mc-card-pink {
    transform: scale(1) translateX(-50px) translateY(50px);
    transform-origin: right center;
}

.mc-card-pink .card-content {
    padding: 80px 40px 10px 130px;
}

.mc-card-pink h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

.highlight-mbr {
    color: inherit;
    font-weight: 900;
}

.mc-reach-intro {
    font-family: 'ABeeZee', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.mc-reach-intro strong {
    font-weight: 700;
}

.mc-smoke-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    z-index: 20;
    pointer-events: none;
}

.mc-cta .cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    text-transform: none;
}

.mc-cta .cta-text {
    font-family: 'ABeeZee', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.mc-cta .cta-text strong {
    font-weight: 700;
}

/* Responsive Design */

/* ══════════════════════════════════════════════════════
   TABLET  (768px – 1199px)
   2 colunas mantidas · grid overlay · clamp() + padding %
   ══════════════════════════════════════════════════════ */
@media (max-width: 1199px) {

    /* Reset transforms do desktop */
    .mc-card-yellow,
    .mc-card-purple,
    .mc-card-green,
    .mc-card-pink {
        transform: none;
    }

    /* Grids */
    .mc-grid,
    .mc-cta-grid {
        max-width: 98%;
        gap: 0;
    }

    /* CSS Grid overlay:
       img e card-content compartilham a mesma célula.
       O conteúdo define a altura; a img preenche sem distorcer. */
    .mc-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        align-items: stretch;
    }

    .card-bg-image {
        grid-area: 1 / 1;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        align-self: stretch;
    }

    .card-content {
        grid-area: 1 / 1;
        position: relative;
        z-index: 2;
        top: auto; left: auto; right: auto; bottom: auto;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 9% 15% 8% 8%;
        justify-content: flex-start;
    }

    /* Padding percentual por card — escapa dos personagens decorativos */
    .mc-card-yellow .card-content {
        padding: 9% 18% 8% 8%;
        justify-content: flex-start;
    }

    .mc-card-purple .card-content {
        padding: 9% 15% 8% 8%;
        justify-content: flex-start;
    }

    .mc-card-green .card-content {
        padding: 9% 15% 8% 8%;
        justify-content: flex-start;
    }

    .mc-card-pink .card-content {
        padding: 10% 8% 8% 18%;
        justify-content: flex-start;
    }

    /* Tipografia escalável com clamp():
       min → tela estreita · preferred → escala com vw · max → cap superior */
    .card-content h2,
    .mc-card-green h2 {
        font-size: clamp(16px, 1.9vw, 26px);
        margin-bottom: 14px;
    }

    .card-intro,
    .platform-intro,
    .mc-development-intro,
    .mc-reach-intro {
        font-size: clamp(11px, 1.15vw, 14px);
        line-height: 1.55;
        margin-bottom: 10px;
    }

    .mc-benefits li,
    .mc-features li {
        font-size: clamp(11px, 1.15vw, 14px);
        line-height: 1.6;
        margin-bottom: 7px;
    }

    /* Seção e hero */
    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center top;
    }

    .mc-content { padding: 30px 20px 20px; }

    .mc-cta {
        margin-top: -60px;
        padding: 0 20px 200px;
    }

    .mc-cta-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 680px;
        margin: 40px auto 0;
    }

    .mc-cta-content { margin: 60px auto 0; }

    .mc-title    { font-size: clamp(26px, 3.5vw, 42px); }
    .mc-subtitle { font-size: clamp(15px, 1.7vw, 19px); }
    .mc-cta .cta-title { font-size: clamp(22px, 2.8vw, 32px); }
}

/* ══════════════════════════════════════════════════════
   MOBILE  (< 768px)
   1 coluna · texto mobile visível · padding % + clamp()
   ══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .card-text-desktop { display: none; }
    .card-text-mobile  { display: block; }

    .mc-hero { padding: 70px 16px 36px; }

    .mc-logo-section {
        flex-direction: column;
        gap: 20px;
    }

    .mc-logo-main { max-width: 250px; }
    .mc-logo-mbr  { max-width: 280px; }

    .mc-title {
        font-size: clamp(19px, 5.5vw, 26px);
        letter-spacing: 0;
    }

    .mc-title br { display: none; }

    .mc-subtitle {
        font-size: clamp(13px, 3.8vw, 15px);
        line-height: 1.65;
    }

    .mc-content { padding: 24px 12px 16px; }

    .mc-grid,
    .mc-cta-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 0;
    }

    .mc-cta {
        margin-top: -20px;
        padding: 0 12px 160px;
    }

    .mc-cta-grid { margin: 30px auto 0; }

    /* Padding base para todos os cards */
    .card-content,
    .mc-card-yellow .card-content,
    .mc-card-purple .card-content,
    .mc-card-green .card-content,
    .mc-card-pink .card-content {
        padding: 11% 12% 14% 10%;
        justify-content: flex-start;
        align-items: stretch;
        text-align: center;
        gap: 0;
        min-height: 100%;
    }

    .card-text-desktop,
    .card-text-mobile {
        width: min(100%, 31rem);
        margin: 0 auto;
    }

    .card-text-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mc-benefits,
    .mc-features { margin: 10px auto 0; }

    /* Card amarelo */
    .mc-card-yellow .card-content {
        padding: 8% 12% 12% 8%;
        justify-content: center;
    }

    .mc-card-yellow .card-content h2 { margin-bottom: 0; }

    .mc-card-yellow .card-text-mobile {
        width: 72%;
        min-height: auto;
        margin: 5% auto 0;
        justify-content: flex-start;
    }

    .mc-card-yellow .card-content h2 {
        font-size: clamp(16px, 4.7vw, 19px);
    }

    .mc-card-yellow .mc-benefits li {
        font-size: clamp(12px, 3.1vw, 14px);
        line-height: 1.55;
    }

    .mc-card-yellow .mc-benefits {
        width: 100%;
        margin: 0;
    }

    .mc-card-yellow .mc-benefits li { margin-bottom: 10px; }

    /* Card roxo */
    .mc-card-purple .card-content {
        padding: 8% 12% 12% 8%;
        justify-content: center;
    }

    .mc-card-purple .card-text-mobile {
        width: 72%;
        margin: 5% auto 0;
    }

    .mc-card-purple .card-text-mobile p {
        font-size: clamp(12px, 3.1vw, 14px);
        line-height: 1.55;
        margin: 0 0 10px;
    }

    .mc-card-purple .card-text-mobile p:last-child {
        margin-bottom: 0;
    }

    /* Card verde */
    .mc-card-green .card-content { padding: 11% 12% 14% 10%; }

    /* Card rosa — espaço à esquerda para não sobrepor personagem */
    .mc-card-pink .card-content {
        padding: 10% 12% 12% 12%;
        justify-content: center;
    }

    .mc-card-pink .card-text-mobile {
        width: 72%;
        margin: 5% auto 0;
    }

    .mc-card-pink .mc-reach-intro {
        font-size: clamp(12px, 3.1vw, 14px);
        line-height: 1.55;
        margin: 0;
    }

    /* Tipografia */
    .card-content h2,
    .mc-card-green h2 {
        font-size: clamp(14px, 4.3vw, 17px);
        margin-bottom: 10px;
    }

    .card-intro,
    .platform-intro,
    .mc-development-intro,
    .mc-reach-intro {
        font-size: clamp(11px, 2.8vw, 13px);
        line-height: 1.5;
    }

    .mc-benefits li,
    .mc-features li {
        font-size: clamp(11px, 2.8vw, 13px);
        margin-bottom: 5px;
        line-height: 1.5;
    }

    .mc-cta .cta-title {
        font-size: clamp(19px, 5.5vw, 22px);
        line-height: 1.35;
    }

    .mc-cta-content {
        margin: 40px auto 0;
        padding: 0 10px;
    }
}

/* ══════════════════════════════════════════════════════
   MOBILE PEQUENO  (< 480px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 479px) {
    .mc-hero { padding: 60px 12px 28px; }
    .mc-logo-main { max-width: 200px; }
    .mc-logo-mbr  { max-width: 220px; }
    .mc-logo-section { gap: 16px; }

    .mc-title    { font-size: clamp(17px, 5.5vw, 21px); }
    .mc-subtitle { font-size: 13px; }

    .mc-content { padding: 20px 8px 12px; }

    .mc-cta {
        margin-top: 0;
        padding: 20px 8px 120px;
    }

    .mc-cta-grid { margin: 20px auto 0; }

    .card-content,
    .mc-card-yellow .card-content,
    .mc-card-purple .card-content,
    .mc-card-green .card-content,
    .mc-card-pink .card-content {
        padding: 11% 11% 14% 9%;
        text-align: center;
    }

    .mc-card-yellow .card-content {
        padding: 9% 11% 13% 7%;
        justify-content: center;
    }

    .mc-card-yellow .card-text-mobile {
        width: 76%;
        min-height: auto;
        margin-top: 4%;
    }

    .mc-card-yellow .card-content h2 { font-size: 16px; }
    .mc-card-yellow .mc-benefits li { font-size: 13px; line-height: 1.55; }

    .mc-card-purple .card-content {
        padding: 9% 11% 13% 7%;
        justify-content: center;
    }

    .mc-card-purple .card-text-mobile {
        width: 76%;
        margin-top: 4%;
    }

    .mc-card-purple .card-text-mobile p {
        font-size: 13px;
        line-height: 1.55;
        margin: 0 0 8px;
    }

    .mc-card-purple .card-text-mobile p:last-child { margin-bottom: 0; }
    .mc-card-green .card-content  { padding: 11% 11% 14% 9%;  }
    .mc-card-pink .card-content   { padding: 13% 8% 12% 14%; }

    .mc-card-pink .card-text-mobile {
        width: 76%;
        margin: 5% auto 0;
    }

    .mc-card-pink .card-content h2 { font-size: 13.5px; margin-bottom: 9px; }

    .mc-card-pink .mc-reach-intro { font-size: 10.8px; line-height: 1.42; margin: 0; }

    .card-text-desktop,
    .card-text-mobile { width: min(100%, 25rem); }

    .card-content h2,
    .mc-card-green h2 { font-size: 15px; margin-bottom: 8px; }

    .card-intro,
    .platform-intro,
    .mc-development-intro,
    .mc-reach-intro { font-size: 12px; line-height: 1.5; }

    .mc-benefits li,
    .mc-features li { font-size: 12px; margin-bottom: 5px; line-height: 1.5; }

    .mc-cta .cta-title { font-size: 18px; line-height: 1.35; }
    .mc-cta-content    { margin: 28px auto 0; }
}

/* ══════════════════════════════════════════════════════
   MOBILE MUITO PEQUENO  (≤ 360px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .mc-title     { font-size: 18px; }
    .mc-logo-main { max-width: 175px; }
    .mc-logo-mbr  { max-width: 190px; }

    .card-content,
    .mc-card-yellow .card-content,
    .mc-card-purple .card-content,
    .mc-card-green .card-content,
    .mc-card-pink .card-content {
        padding: 11% 11% 14% 9%;
        text-align: center;
    }

    .mc-card-yellow .card-content {
        padding: 9% 10% 13% 7%;
        justify-content: center;
    }

    .mc-card-yellow .card-text-mobile {
        width: 76%;
        min-height: auto;
        margin-top: 4%;
    }

    .mc-card-yellow .card-content h2 { font-size: 15px; }
    .mc-card-yellow .mc-benefits li { font-size: 12px; line-height: 1.5; }

    .mc-card-purple .card-content {
        padding: 9% 10% 13% 7%;
        justify-content: center;
    }

    .mc-card-purple .card-text-mobile {
        width: 76%;
        margin-top: 4%;
    }

    .mc-card-purple .card-text-mobile p {
        font-size: 12px;
        line-height: 1.5;
        margin: 0 0 7px;
    }

    .mc-card-purple .card-text-mobile p:last-child { margin-bottom: 0; }
    .mc-card-green .card-content  { padding: 11% 11% 14% 9%;  }
    .mc-card-pink .card-content   { padding: 11% 9% 13% 15%; }

    .mc-card-pink .card-text-mobile {
        width: 72%;
        margin: 5% 0 0 auto;
    }

    .mc-card-pink .mc-reach-intro { font-size: 11px; line-height: 1.45; margin: 0; }

    .card-text-desktop,
    .card-text-mobile { width: min(100%, 22rem); }

    .card-content h2,
    .mc-card-green h2 { font-size: 14px; }

    .card-intro,
    .platform-intro,
    .mc-development-intro,
    .mc-reach-intro { font-size: 11px; }

    .mc-benefits li,
    .mc-features li { font-size: 11px; }

    .mc-cta .cta-title { font-size: 17px; }
}

/* Evita corte da arte do card rosa em telas muito estreitas */
@media (max-width: 404px) {
    .mc-card-pink .card-bg-image {
        object-fit: contain;
        object-position: center top;
    }

    .mc-card-pink .card-content {
        padding: 13% 7% 12% 14%;
    }

    .mc-card-pink .card-text-mobile {
        width: 76%;
        margin: 5% auto 0;
    }

    .mc-card-pink .card-content h2 {
        font-size: 13px;
        margin-bottom: 9px;
    }

    .mc-card-pink .mc-reach-intro {
        font-size: 10.4px;
        line-height: 1.4;
    }
}

/* Ajuste fino do card amarelo para telas ~430px */
@media (min-width: 405px) and (max-width: 479px) {
    .mc-card-yellow .card-content {
        padding: 0% 10% 10% 6%;
        justify-content: center;
    }

    .mc-card-yellow .card-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .mc-card-yellow .card-text-mobile {
        width: 72%;
        margin-top: 1%;
    }

    .mc-card-yellow .mc-benefits li {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 7px;
    }

    .mc-card-purple .card-content h2 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .mc-card-purple .card-content {
        padding: 6% 10% 8% 6%;
        justify-content: center;
    }

    .mc-card-purple .card-text-mobile {
        width: 72%;
        margin-top: 4%;
    }

    .mc-card-purple .card-text-mobile p,
    .mc-card-purple .platform-intro {
        font-size: 14px;
        line-height: 1.5;
    }

    .mc-card-purple .card-text-mobile p {
        margin-bottom: 8px;
    }

    .mc-card-green h2 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .mc-card-green .mc-development-intro {
        font-size: 14px;
        line-height: 1.5;
    }

    .mc-card-pink .card-bg-image {
        object-fit: contain;
        object-position: center top;
    }

    .mc-card-pink .card-content {
        padding: 12% 10% 9% 8%;
        justify-content: center;
    }

    .mc-card-pink .card-text-mobile {
        width: 80%;
        margin: 4% 2% 0 auto;
    }

    .mc-card-pink .card-content h2 {
        font-size: 17px;
        width: 80%;
        margin: 2% 2% 8px auto;
    }

    .mc-card-pink .mc-reach-intro {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Discover Magic Club Section */
.highlight-blue {
    color: #1a6fb8;
}

.discover {
    padding: 80px 0;
    background: white;
}

.discover-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.discover-text {
    flex: 1;
    position: relative;
}

.discover-line-blue {
    width: 110px;
    height: 5px;
    background: #1a6fb8;
    margin-bottom: 30px;
}

.discover-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 64px;
    line-height: 59px;
    letter-spacing: 0.2px;
    color: #3b3b3b;
}

.discover-image {
    flex: 1;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.discover-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .discover-content {
        flex-direction: column;
        gap: 30px;
    }

    .discover-line-blue {
        width: 80px;
        height: 4px;
        margin-bottom: 20px;
    }

    .discover-text h2 {
        font-size: 48px;
        line-height: 45px;
    }
}

@media (max-width: 576px) {
    .discover {
        padding: 60px 0;
    }

    .discover-text h2 {
        font-size: 36px;
        line-height: 34px;
    }
}
