/* ===================================
   SMART IDIOMAS
   =================================== */

:root{
    --primary:#00245b;
    --secondary:#e1141d;
    --light:#ffffff;
    --gray:#f5f7fa;
    --dark:#1f2937;
    --text:#4b5563;

    --radius:20px;

    --shadow:
    0 10px 30px rgba(0,0,0,.08);

    --transition:.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#fff;
    color:var(--dark);
    overflow-x:hidden;
}

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

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:1280px;
    margin:auto;
}

/* ===================================
   HEADER
   =================================== */

.header{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    z-index:1000;

    backdrop-filter:blur(15px);

    background:
    rgba(255,255,255,.92);

    border-bottom:
    1px solid rgba(0,0,0,.05);
}

.header .container{
    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo img{
    height:60px;
}

.nav ul{
    display:flex;
    gap:35px;
}

.nav a{
    color:var(--primary);
    font-weight:500;
    transition:var(--transition);
}

.nav a:hover{
    color:var(--secondary);
}

.btn-header{
    background:var(--secondary);
    color:#fff;

    padding:14px 28px;

    border-radius:50px;

    font-weight:600;

    transition:var(--transition);
}

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

/* ===================================
   HERO
   =================================== */

/* ===================================
   HERO FULL BACKGROUND
=================================== */

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    background-image:
    url('assets/images/hero.jpg');

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;
}

.hero-overlay{

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        90deg,
        rgba(0,36,91,.92) 0%,
        rgba(0,36,91,.75) 45%,
        rgba(0,36,91,.25) 100%
    );
}

.hero-content{

    position:relative;

    z-index:2;

    width:100%;
}

.hero-text{

    max-width:700px;
}

.hero h1{

    color:white;

    font-size:4rem;

    line-height:1.1;

    margin-bottom:25px;
}

.hero p{

    color:rgba(255,255,255,.9);

    font-size:1.2rem;

    margin-bottom:15px;
}

.hero .price{

    font-size:1.4rem;
}

.hero .price strong{

    color:#ff4d57;
}

.tag{

    display:inline-block;

    padding:12px 24px;

    border-radius:50px;

    background:
    linear-gradient(
        135deg,
        rgba(225,20,29,.95),
        rgba(255,77,87,.95)
    );

    color:white;

    font-weight:600;

    box-shadow:
    0 10px 25px rgba(225,20,29,.25);

    backdrop-filter:blur(10px);

    margin-bottom:30px;
}


.hero-languages{

    color: white;

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-top:40px;

    padding-bottom:10px;
}

.hero-languages span{

    white-space:nowrap;

    flex-shrink:0;
}

/* ===================================
   BOTÕES
   =================================== */

.btn-primary{
    background:var(--secondary);
    color:#fff;

    padding:16px 32px;

    border-radius:50px;

    font-weight:600;

    transition:var(--transition);

    display:inline-block;
}

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

.btn-secondary{

    background:transparent;

    border:2px solid white;

    color:white;

    padding:16px 32px;

    border-radius:50px;

    font-weight:600;
}

.btn-secondary:hover{

    background:white;

    color:#00245b;
}

/* ===================================
   SEÇÕES
   =================================== */

section{
    padding:100px 0;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title span{
    color:var(--secondary);
    font-weight:600;
}

.section-title h2{
    font-size:2.6rem;
    color:var(--primary);
    margin-top:10px;
}

/* ===================================
   BENEFITS
   =================================== */

.benefits{
    background:#fff;
}

.benefits-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.card{
    background:#fff;

    padding:40px 30px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    transition:var(--transition);

    text-align:center;
}

.card:hover{
    transform:translateY(-10px);
}

.card i{
    font-size:2.5rem;

    color:var(--secondary);

    margin-bottom:20px;
}

.card h3{
    margin-bottom:15px;
    color:var(--primary);
}

/* ===================================
   CURSOS
   =================================== */

.courses{
    background:var(--gray);
}

.courses-grid{

    display:flex;

    flex-wrap:wrap;

    gap:25px;

    align-items:flex-start;
}

.course-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.course-header{

    padding:25px;
}

.course-header h3{

    color:#00245b;
    font-size:1.4rem;
}

.course-content{

    max-height:0;

    overflow:hidden;

    transition:.4s;

    padding:0 25px;
}

.course-card.active .course-content{

    max-height:200px;

    padding:0 25px 25px 25px;
}

.course-content p{
    color:#64748b;
}

/* ===================================
   SMART VIP
   =================================== */

.vip{
    background:
    linear-gradient(
    135deg,
    var(--primary),
    #003a92
    );

    color:#fff;
}

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

.vip span{
    color:#ffb7ba;
    font-weight:600;
}

.vip h2{
    font-size:3rem;
    margin:20px 0;
}

.vip p{
    max-width:700px;
    margin:auto;
    margin-bottom:30px;
}

/* ===================================
   UNIDADES
   =================================== */

.units-grid{

    display:flex;

    flex-wrap:wrap;

    gap:25px;

    align-items:flex-start;
}

.unit-card{

    width:calc(33.333% - 17px);
}

.unit-card:hover{
    transform:translateY(-10px);
}

.unit-card h3{
    color:var(--primary);
}

/* ===================================
   DEPOIMENTOS
   =================================== */

.testimonials{
    background:var(--gray);
}

.testimonial-card{
    max-width:800px;

    margin:auto;

    background:#fff;

    padding:50px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    text-align:center;
}

.testimonial-card p{
    font-size:1.2rem;
    margin-bottom:20px;
}

.testimonial-card h4{
    color:var(--secondary);
}

/* ===================================
   CTA
   =================================== */

.cta{
    background:var(--primary);

    color:#fff;

    text-align:center;
}

.cta h2{
    font-size:3rem;
    margin-bottom:15px;
}

.cta p{
    margin-bottom:30px;
}

/* ===================================
   FOOTER
   =================================== */

.footer{
    background:#00183d;
    color:#fff;
}

.footer-content{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;

    padding:70px 0;
}

.footer img{
    height:60px;
    margin-bottom:20px;
}

.footer h4{
    margin-bottom:15px;
}

.footer ul li{
    margin-bottom:10px;
}

.footer a{
    color:#fff;
}

.footer-bottom{
    text-align:center;
    padding:20px;
    border-top:
    1px solid rgba(255,255,255,.1);
}

/* ===================================
   WHATSAPP
   =================================== */

.whatsapp{
    position:fixed;

    right:25px;
    bottom:25px;

    width:65px;
    height:65px;

    background:#25d366;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;

    font-size:2rem;

    z-index:999;

    box-shadow:
    0 10px 25px rgba(0,0,0,.25);

    transition:var(--transition);
}

.whatsapp:hover{
    transform:scale(1.1);
}

/* ===================================
   RESPONSIVO
=================================== */

/* TABLET */

@media (max-width: 992px){

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

    .footer-content{
        grid-template-columns:repeat(2,1fr);
    }

    .course-card,
    .unit-card{
        width:calc(50% - 13px);
    }

}

/* MOBILE */

@media (max-width: 768px){

    /* HEADER */

    .header .container{
        gap:15px;
        padding:15px 0;
    }

    .logo img{
        height:50px;
    }

    .btn-header{
        display:none;
    }

    .nav{
        display:none;
    }

    /* HERO */

    .hero{
        min-height:auto;
        padding-top:140px;
        padding-bottom:80px;
    }

    .hero-content{
        display:block;
    }

    .hero-text{
        max-width:100%;
    }

    .hero h1{
        font-size:3rem !important;
        line-height:1.05;
        margin-bottom:20px;
    }

    .hero p{
        font-size:1.1rem;
    }

    .hero-buttons{
        display:flex;
        flex-direction:column;
        gap:15px;
    }

    .hero-buttons a{
        width:100%;
        text-align:center;
    }

    .hero-languages{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
        justify-content:center;
    }

    /* TÍTULOS */

    .section-title h2{
        font-size:2rem;
    }

    .vip h2,
    .cta h2{
        font-size:2rem;
    }

    /* BENEFÍCIOS */

    .benefits-grid{
        grid-template-columns:1fr;
    }

    /* CURSOS */

    .courses-grid{
        display:flex !important;
        flex-direction:column;
        gap:20px;
    }

    .course-card{
        width:100% !important;
        min-height:auto;
    }

    /* UNIDADES */

    .units-grid{
        display:flex !important;
        flex-direction:column;
        gap:20px;
    }

    .unit-card{
        width:100% !important;
    }

    /* GALERIA */

    .gallery-grid{

        display:grid !important;

        grid-template-columns:1fr !important;

        gap:20px;
    }

    .gallery-grid img{

        width:100%;

        height:auto !important;

        object-fit:contain !important;

        display:block;
    }

    /* FOOTER */

    .footer-content{
        grid-template-columns:1fr;
        text-align:center;
    }

    /* BOTÕES FLUTUANTES */

    .back-top{
        right:20px;
        bottom:110px;
    }

    .whatsapp{
        right:20px;
        bottom:30px;
    }

}


/* ANIMAÇÕES */

.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:.8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

.mobile-open{
    display:flex !important;
    position:absolute;
    top:90px;
    left:0;
    width:100%;
    background:white;
    flex-direction:column;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:1.8rem;
    color:#00245b;
    cursor:pointer;
}

.back-top{
    position:fixed;
    right:25px;
    bottom:105px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#00245b;
    color:white;
    font-size:1.2rem;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:998;
}

.back-top.show{
    opacity:1;
    visibility:visible;
}

.nav a.active{
    color:#e1141d;
}

.testimonial-card{
    transition:.4s;
}

@media(max-width:768px){

    .menu-toggle{
        display:block;
    }

}

.stats{
    background:#fff;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-card{
    text-align:center;
    background:#fff;
    padding:40px;
    border-radius:20px;
    box-shadow:var(--shadow);
}

.stat-card h2{
    color:#e1141d;
    font-size:3rem;
}

.gallery{
    background:#f5f7fa;
}

.gallery-grid img:hover{
    transform:scale(1.03);
}

.theme-btn{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:#00245b;
    color:white;
    cursor:pointer;
    margin-left:15px;
}

body.dark{
    background:#0f172a;
    color:white;
}

body.dark .card,
body.dark .course-card,
body.dark .unit-card,
body.dark .testimonial-card,
body.dark .stat-card{
    background:#1e293b;
    color:white;
}

body.dark .header{

    background:
    rgba(17,24,39,.95) !important;

    backdrop-filter:blur(15px);
}

body.dark .courses,
body.dark .gallery,
body.dark .testimonials{
    background:#111827;
}

/* ===================================
   DARK MODE COMPLETO
=================================== */

body.dark{
    background:#0f172a;
    color:#f8fafc;
}

/* Fundos */

body.dark .header{
    background:#111827 !important;
}

body.dark .benefits,
body.dark .stats,
body.dark .units{
    background:#0f172a;
}

body.dark .courses,
body.dark .gallery,
body.dark .testimonials{
    background:#111827;
}

/* Cards */

body.dark .card,
body.dark .course-card,
body.dark .unit-card,
body.dark .testimonial-card,
body.dark .stat-card{
    background:#1e293b;
    color:#f8fafc;
    border:1px solid rgba(255,255,255,.05);
}

/* TODOS OS TÍTULOS */

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6{
    color:#ffffff !important;
}

/* TODOS OS PARÁGRAFOS */

body.dark p{
    color:#cbd5e1 !important;
}

/* Menus */

body.dark .nav a{
    color:#ffffff;
}

body.dark .nav a:hover{
    color:#e1141d;
}

/* Footer */

body.dark .footer{
    background:#020617;
}

/* Hero */

body.dark .hero-overlay{

    background:
    linear-gradient(
        90deg,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.65) 45%,
        rgba(0,0,0,.35) 100%
    );
}

/* Seções */

body.dark .section-title h2{
    color:#ffffff;
}

body.dark .section-title span{
    color:#ff4d57;
}

/* Cards cursos */

.course-card h3{
    color:#00245b;
}

/* Unidades */

body.dark .unit-card h3{
    color:#ffffff;
}

/* Estatísticas */

body.dark .stat-card h2{
    color:#ff4d57;
}

/* Inputs futuros */

body.dark input,
body.dark textarea,
body.dark select{
    background:#1e293b;
    color:#fff;
    border:1px solid #334155;
}

/* Logo mais visível */

body.dark .logo img{
    filter:
    brightness(1.1)
    contrast(1.1);
}

.course-header{
    padding:10px;
}

.course-content{

    max-height:0;

    overflow:hidden;

    transition:
    max-height .4s ease,
    padding .4s ease;

    padding:0 20px;

    color:#fff;
}

.course-card.active .course-content{

    max-height:150px;

    padding:20px;
}

/* ==========================
   CURSOS SMART
========================== */

.course-card{

    background:#fff !important;

    border-radius:20px;

    border-top:6px solid transparent;

    overflow:hidden;

    cursor:pointer;

    transition:.3s;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    text-align:center;

    width:calc(33.333% - 17px);

    min-height:130px;
}

.course-card:hover{

    transform:translateY(-8px);

    background:#fff !important;
}

.course-card h3{

    color:#00245b !important;
}

.course-content p{

    color:#64748b !important;
}

/* CORES DAS BANDEIRAS */

.english{
    border-top-color:#C8102E;
}

.french{
    border-top-color:#0055A4;
}

.spanish{
    border-top-color:#F1BF00;
}

.italian{
    border-top-color:#009246;
}

.german{
    border-top-color:#000000;
}

.libras{
    border-top-color:#0099ff;
}

/* EFEITO HOVER SUAVE */

.english:hover{
    box-shadow:0 15px 35px rgba(200,16,46,.15);
}

.french:hover{
    box-shadow:0 15px 35px rgba(0,85,164,.15);
}

.spanish:hover{
    box-shadow:0 15px 35px rgba(241,191,0,.25);
}

.italian:hover{
    box-shadow:0 15px 35px rgba(0,146,70,.15);
}

.german:hover{
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.libras:hover{
    box-shadow:0 15px 35px rgba(0,153,255,.15);
}

.flag{
    display:block;
    font-size:2rem;
    margin-bottom:10px;
}

/* UNIDADES INTERATIVAS */

.unit-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    cursor:pointer;

    transition:.4s;

    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.unit-header{

    padding:30px;
}

.unit-header h3{

    color:#00245b;
}

.unit-content{

    max-height:0;

    overflow:hidden;

    transition:.5s ease;

    padding:0 25px;
}

.unit-card.active .unit-content{

    max-height:700px;

    padding:0 25px 25px;
}

.unit-content iframe{

    width:100%;

    height:250px;

    border:none;

    border-radius:15px;

    margin-bottom:20px;
}

.unit-content p{

    margin-bottom:20px;

    color:#64748b;

    line-height:1.6;
}


/* LIGHTBOX */

.lightbox{

    position:fixed;

    inset:0;

    background:
    rgba(0,0,0,.95);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:9999;
}

.lightbox.active{

    opacity:1;

    visibility:visible;
}

.lightbox img{

    max-width:90%;

    max-height:90vh;

    border-radius:20px;
}

.close-lightbox{

    position:absolute;

    top:30px;

    right:40px;

    color:white;

    font-size:3rem;

    cursor:pointer;
}
/* ==========================
   CURSOS - DARK MODE
========================== */

body.dark .course-card{

    background:#1e293b !important;

    border:1px solid rgba(255,255,255,.08);
}

body.dark .course-header h3{

    color:#ffffff !important;
}

body.dark .course-content p{

    color:#cbd5e1 !important;
}

body.dark .flag{

    filter:none;
}

@media(max-width:768px){

    .hero{

        min-height:auto;

        padding-top:140px;

        padding-bottom:80px;
    }

    .hero-content{

        display:block;
    }

    .hero-text{

        max-width:100%;
    }

    .hero h1{

        font-size:3rem !important;

        line-height:1.05;

        margin-bottom:20px;
    }

    .hero p{

        font-size:1.1rem;
    }

    .hero-buttons{

        display:flex;

        flex-direction:column;

        gap:15px;

        width:100%;
    }

    .hero-buttons a{

        width:100%;

        text-align:center;
    }

}

/* ===== CORREÇÕES FINAIS MOBILE ===== */

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

.gallery-grid img{
    width:100%;
    aspect-ratio:9/16;
    object-fit:contain;
    background:#fff;
    border-radius:20px;
    cursor:pointer;
    transition:.4s;
    padding:10px;
}

@media(max-width:768px){

    .hero h1{
        font-size:2.8rem !important;
        line-height:1.1;
    }

    .hero-languages{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:10px;
        margin-top:25px;
    }

    .hero-languages span{
        text-align:center;
        padding:8px;
        font-size:.9rem;
        background:rgba(255,255,255,.12);
        border-radius:30px;
    }

    .gallery-grid{
        grid-template-columns:1fr !important;
        gap:20px;
    }

    .gallery-grid img{
        width:100%;
        height:auto;
        aspect-ratio:auto;
        object-fit:contain;
    }

    .mobile-open{
        display:block !important;
        position:absolute;
        top:90px;
        left:0;
        width:100%;
        background:white;
        padding:20px;
        box-shadow:0 10px 30px rgba(0,0,0,.1);
    }

    .mobile-open ul{
        display:flex;
        flex-direction:column;
        gap:20px;
    }

    .course-card,
    .unit-card{
        width:100% !important;
    }
}

/* ===================================
   FOOTER
=================================== */

.footer{

    background:#001938;

    color:white;

    padding:80px 0 0;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:60px;

}

.footer-brand img{

    width:190px;

    margin-bottom:25px;

}

.footer-brand p{

    color:rgba(255,255,255,.75);

    line-height:1.8;

    margin-bottom:30px;

}

.footer h3{

    margin-bottom:25px;

    font-size:1.2rem;

    color:white;

}

.footer ul{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.footer ul li{

    color:rgba(255,255,255,.75);

}

.footer a{

    color:rgba(255,255,255,.75);

    transition:.3s;

}

.footer a:hover{

    color:#ffffff;

    padding-left:6px;

}

.footer-social{

    display:flex;

    gap:15px;

}

.footer-social a{

    width:45px;

    height:45px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(255,255,255,.08);

    font-size:1.1rem;

    transition:.3s;

}

.footer-social a:hover{

    background:#e1141d;

    transform:translateY(-5px);

    padding-left:0;

}

.footer-copy{

    margin-top:70px;

    padding:25px 0;

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

    color:rgba(255,255,255,.6);

}

@media(max-width:992px){

    .footer-grid{

        grid-template-columns:1fr 1fr;

    }

}

@media(max-width:768px){

    .footer-grid{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-brand img{

        margin:auto auto 25px;

    }

    .footer-social{

        justify-content:center;

    }

}