
/* ==================================================
   EXTENSAOTEC - CSS PRINCIPAL
================================================== */

/* RESET */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* CONTAINER */

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

/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

/* LOGO */

.logo {
    display: flex;
    flex-direction: column;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    color: #38bdf8;
}

.subtitle {
    margin-top: 8px;
    font-size: .7rem;
    letter-spacing: 4px;
    color: #cbd5e1;
    text-transform: uppercase;
}

/* MENU */

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    color: #e2e8f0;
    position: relative;
    transition: .3s;
}

.menu a:hover {
    color: #38bdf8;
}

.menu a::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    height: 2px;
    width: 0;
    background: #38bdf8;
    transition: .3s;
}

.menu a:hover::after {
    width: 100%;
}

/* BOTÃO MOBILE */

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: #38bdf8;
    font-size: 2rem;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;

    background:
        linear-gradient(
            rgba(15, 23, 42, .85),
            rgba(15, 23, 42, .95)
        ),
        url('../img/banner.jpg') center / cover no-repeat;
}

.hero-content {
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    color: #38bdf8;
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .25);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #38bdf8;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 40px;
}

/* BOTÕES */

.buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 32px;
    border-radius: 14px;
    font-weight: bold;
    transition: .3s;
}

.btn-primary {
    background: #38bdf8;
    color: #0f172a;
}

.btn-primary:hover {
    background: #0ea5e9;
}

.btn-outline {
    border: 2px solid #38bdf8;
    color: #38bdf8;
}

.btn-outline:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* SECTIONS */

section {
    padding: 75px 0;
}

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

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.section-title p {
    color: #94a3b8;
    font-size: 1.05rem;
}

/* CARDS GERAIS */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card {
    background: #1e293b;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, .05);
    transition: .3s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, .15);
}

.card h3 {
    color: #38bdf8;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: #cbd5e1;
}

/* MISSÃO */

.mission {
    background:
        linear-gradient(
            135deg,
            rgba(56, 189, 248, .08),
            transparent
        );
}

.mission-box {
    background: #111827;
    border-radius: 28px;
    padding: 60px;
    text-align: center;
}

.mission-box h2 {
    font-size: 3rem;
}

.mission-box span {
    color: #38bdf8;
}

.mission-box p {
    margin-top: 25px;
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* PROJETO DESTAQUE */

.featured-project {
    background: linear-gradient(180deg, #0f172a, #020617);
}

.featured-card {
    background: #111827;
    padding: 70px;
    border-radius: 35px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, .2);
}

.featured-card h2 {
    font-size: 3rem;
}

.featured-card span {
    color: #38bdf8;
}

.featured-card p {
    color: #cbd5e1;
    max-width: 800px;
    margin: 25px auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.featured-item {
    background: #0f172a;
    padding: 20px;
    border-radius: 15px;
    color: #cbd5e1;
}

/* MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal {
    width: 90%;
    max-width: 600px;
    background: #111827;
    padding: 40px;
    border-radius: 25px;
}

.modal h2 {
    color: #38bdf8;
    text-align: center;
}

.modal p,
.modal li {
    color: #cbd5e1;
}

.modal button {
    margin: 20px auto 0;
    display: block;
    background: #38bdf8;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
}

/* ESTATÍSTICAS */

.numbers {
    background:
        radial-gradient(
            circle at top,
            rgba(56, 189, 248, .08),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #020617,
            #071226,
            #020617
        );

    position: relative;
    overflow: hidden;
}

.numbers-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 80px;
}

.numbers-title .line {
    width: 180px;
    height: 1px;
    background: rgba(56, 189, 248, .35);
}

.numbers-title h2 {
    font-size: 3rem;
    text-align: center;
}

.numbers-title span {
    color: #38bdf8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.stat-card {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, .96),
        rgba(2, 6, 23, .98)
    );

    border: 1px solid rgba(56, 189, 248, .15);
    border-radius: 28px;
    padding: 45px 30px;
    text-align: center;
    overflow: hidden;
    transition: .4s;
}

.stat-card:hover {
    transform: translateY(-12px);
    border-color: #38bdf8;
    box-shadow: 0 0 40px rgba(56, 189, 248, .18);
}

.icon {
    width: 95px;
    height: 95px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(56, 189, 248, .08);
    border: 2px solid rgba(56, 189, 248, .4);
}

.stat-card h3 {
    font-size: 3rem;
    color: #38bdf8;
    margin-bottom: 20px;
    line-height: 1.1;
}

.stat-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stat-card p {
    color: #94a3b8;
    line-height: 1.8;
}

.mini-line {
    width: 60px;
    height: 4px;
    background: #38bdf8;
    border-radius: 20px;
    margin: 0 auto 25px;
}

/* CATÁLOGO */

#catalogo {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(56, 189, 248, .07),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #0f172a,
            #111c32
        );
}

#catalogo .container {
    position: relative;
    z-index: 1;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* CARDS DOS CURSOS */

.course-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    padding: 30px;

    background: linear-gradient(145deg, #1e293b, #172337);

    border: 1px solid rgba(148, 163, 184, .10);
    border-radius: 22px;

    position: relative;
    overflow: hidden;

    color: inherit;
    text-decoration: none;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

/* DETALHE SUPERIOR */

.course-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;

    background: linear-gradient(90deg, #38bdf8, transparent);
    opacity: .35;
}

/* CURSOS CLICÁVEIS */

a.course-card {
    cursor: pointer;
}

a.course-card:hover {
    transform: translateY(-8px);
    border-color: #38bdf8;
    box-shadow: 0 12px 35px rgba(56, 189, 248, .15);
}

/* CURSOS INDISPONÍVEIS */

div.course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(148, 163, 184, .3);
}

/* ÍCONE */

.course-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;

    background: rgba(56, 189, 248, .09);
    border: 1px solid rgba(56, 189, 248, .15);
    border-radius: 18px;
    margin-bottom: 22px;
}

/* TÍTULO */

.course-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* DESCRIÇÃO */

.course-card p {
    font-size: .93rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 22px;
}

/* STATUS */

.course-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

/* DISPONÍVEL - AZUL */

a.course-card .course-status {
    color: #38bdf8;
    background: rgba(56, 189, 248, .13);
    border: 1px solid rgba(56, 189, 248, .3);
}

/* EM BREVE - AMARELO */

div.course-card .course-status {
    color: #fbbf24;
    background: rgba(245, 158, 11, .10);
    border: 1px solid rgba(245, 158, 11, .22);
}

/* TRILHAS */

.cards .card {
    min-height: 230px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    background: linear-gradient(145deg, #1e293b, #172337);

    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 20px;

    position: relative;
    overflow: hidden;
    transition: .3s;
}

.cards .card h3 {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 14px;
    line-height: 1.4;
}

.cards .card p {
    color: #94a3b8;
    font-size: .95rem;
    line-height: 1.7;
}

/* TRILHAS ATIVAS */

.cards a.card {
    background: linear-gradient(
        145deg,
        rgba(14, 116, 144, .25),
        #172337 75%
    );

    border-color: rgba(56, 189, 248, .45);
    cursor: pointer;
}

.cards a.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #38bdf8;
}

.cards a.card h3 {
    color: #38bdf8;
}

.cards a.card:hover {
    transform: translateY(-8px);
    border-color: #38bdf8;
    box-shadow: 0 15px 40px rgba(56, 189, 248, .12);
}

/* TRILHAS EM BREVE */

.cards div.card {
    cursor: default;
    opacity: .85;
}

.cards div.card:hover {
    transform: translateY(-4px);
    border-color: rgba(148, 163, 184, .3);
}

/* STATUS DAS TRILHAS */

.cards a.card .course-status {
    margin-top: auto;
    color: #38bdf8;
    background: rgba(56, 189, 248, .13);
    border: 1px solid rgba(56, 189, 248, .3);
}

.cards div.card .course-status {
    margin-top: auto;
    color: #fbbf24;
    background: rgba(245, 158, 11, .10);
    border: 1px solid rgba(245, 158, 11, .22);
}

/* CTA */

.cta {
    padding: 65px 35px;
    text-align: center;

    background:
        radial-gradient(
            circle at top,
            rgba(56, 189, 248, .16),
            transparent 65%
        ),
        linear-gradient(
            145deg,
            #1e293b,
            #111827
        );

    border: 1px solid rgba(56, 189, 248, .2);
    border-radius: 28px;
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    margin-bottom: 18px;
}

.cta p {
    color: #cbd5e1;
    font-size: 1.05rem;
}

/* FOOTER */

footer {
    background: #020617;
    padding: 40px;
    text-align: center;
    color: #94a3b8;
}

/* ==================================================
   RESPONSIVIDADE - TABLETS
================================================== */

@media (min-width: 769px) and (max-width: 1100px) {

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

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

}

/* ==================================================
   RESPONSIVIDADE - MOBILE
================================================== */

@media (max-width: 768px) {

    section {
        padding: 75px 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 75px;
        right: 5%;
        width: 250px;
        padding: 25px;
        border-radius: 20px;
        background: #111827;
        flex-direction: column;
        display: none;
    }

    .menu.active {
        display: flex;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

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

    .featured-card {
        padding: 40px 20px;
    }

    .featured-card h2 {
        font-size: 2rem;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .mission-box {
        padding: 35px 20px;
    }

    .numbers-title {
        flex-direction: column;
    }

    .numbers-title .line {
        width: 100px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cards .card {
        min-height: 200px;
        padding: 25px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .course-card {
        min-height: 260px;
        padding: 25px;
    }

    .cta {
        padding: 45px 22px;
    }

}
