/* ===================================================
   EDUGEP — ESTILOS GLOBAIS
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

/* ===================================================
   1. VARIÁVEIS
=================================================== */

:root {

    /* CORES BASE */
    --primary:        #0056b3;
    --primary-dark:   #003f8a;
    --accent:         #ffc107;

    --bg:             #f4f6fb;
    --text:           #1a1d23;
    --muted:          #6c757d;
    --border:         #e9ecef;

    /* RADIUS */
    --radius:         14px;
    --radius-lg:      28px;

    /* SHADOWS */
    --shadow-sm:      0 2px 8px rgba(0,0,0,.08);
    --shadow-md:      0 10px 30px rgba(0,0,0,.08);
    --shadow-lg:      0 20px 48px rgba(0,0,0,.14);

    /* CORES ROBÔS */

    /* MICROBIT */
    --green:          #1a8f4b;
    --green-light:    #e7f7ee;

    /* MAQUEEN */
    --yellow:         #e2a400;
    --yellow-light:   #fff7dd;

    /* RINGBIT */
    --blue:           #00a6d6;
    --blue-dark:      #008bb4;
    --blue-light:     #dff4ff;

    /* WONDERBUILDING */
    --purple:         #7c3aed;
    --purple-dark:    #5b21b6;
    --purple-light:   #ede9fe;
}

/* ===================================================
   2. RESET / BASE
=================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5 {
    margin-top: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

a {
    transition: all .25s ease;
}

/* ===================================================
   3. NAVBAR
=================================================== */

.navbar {
    background: #fff !important;
    box-shadow: var(--shadow-sm);
    padding: .7rem 0;
}

.navbar-brand img.logo-nav {
    width: 120px;
    height: 80px;
    object-fit: contain;
}

/* ===================================================
   4. BACK LINK
=================================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 1rem;
}

.back-link:hover {
    color: var(--text);
    transform: translateX(-3px);
}

/* ===================================================
   5. ROBOT HEADER CARD
=================================================== */

.robot-header-card {
    display: flex;
    align-items: stretch;

    background: #fff;

    border-radius: var(--radius-lg);
    overflow: hidden;

    box-shadow: var(--shadow-md);
}

/* ===================================================
   6. COLUNA IMAGEM
=================================================== */

.col-img {
    flex: 0 0 38%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;
}

/* MICROBIT */
.col-img.bg-green {
    background: var(--green-light);
}

/* MAQUEEN */
.col-img.bg-yellow {
    background: var(--yellow-light);
}

/* RINGBIT */
.col-img.bg-blue {
    background: linear-gradient(
        135deg,
        #dff4ff 0%,
        #cfefff 100%
    );
}

/* WONDERBUILDING */
.col-img.bg-purple {
    background: var(--purple-light);
}

.robot-main-img {
    width: 100%;
    max-width: 460px;
    object-fit: contain;

    transition: transform .3s ease;
}

.robot-main-img:hover {
    transform: scale(1.03);
}

/* ===================================================
   7. COLUNA TEXTO
=================================================== */

.col-text {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;
}

.col-text h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.col-text p {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

/* ===================================================
   8. CORES ROBÔS
=================================================== */

/* BORDAS */

.border-green {
    border-left: 8px solid var(--green) !important;
}

.border-yellow {
    border-left: 8px solid var(--yellow) !important;
}

.border-blue {
    border-left: 8px solid var(--blue) !important;
}

.border-purple {
    border-left: 8px solid var(--purple) !important;
}

/* TEXTOS */

.text-green {
    color: var(--green) !important;
}

.text-yellow {
    color: var(--yellow) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.text-purple {
    color: var(--purple) !important;
}

/* ===================================================
   9. SECTION TITLES
=================================================== */

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';

    display: block;

    width: 55px;
    height: 5px;

    margin-top: 8px;

    background: var(--blue);

    border-radius: 10px;
}

/* ===================================================
   10. CARDS HOME
=================================================== */

.card {
    border: none;
    border-top: 5px solid transparent;

    border-radius: var(--radius-lg);

    background: #fff;

    box-shadow: var(--shadow-sm);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    height: 100%;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.card-microbit {
    border-top-color: var(--green);
}

.card-maqueen {
    border-top-color: var(--yellow);
}

.card-ringbit {
    border-top-color: var(--blue);
}

.card-wonderbuilding {
    border-top-color: var(--purple);
}

/* ===================================================
   11. IMAGEM DOS CARDS
=================================================== */

.card-image-wrapper {
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    overflow: hidden;

    padding: 10px;
}

.card-image-wrapper img {
    max-height: 100%;
    object-fit: contain;
}

/* ===================================================
   12. PROJECT CARDS
=================================================== */

.project-card {
    background: #fff;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    border-top: 5px solid transparent;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.project-card.card-ringbit {
    border-top-color: var(--blue);
}

/* ===================================================
   13. BOTÕES
=================================================== */

.btn-primary {
    background: var(--primary);
    border: none;

    border-radius: 12px;

    padding: 10px 22px;

    font-weight: 700;

    transition: .25s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* BOTÃO VER PROJETO */

.btn-ver-projeto {
    display: inline-block;

    margin-top: 10px;

    padding: 11px 18px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 700;

    transition: .25s ease;
}

.btn-ver-projeto:hover {
    transform: translateY(-2px);
}

/* CORES BOTÕES */

.btn-green {
    background: var(--green);
    color: #fff !important;
}

.btn-green:hover {
    background: #15753d;
}

.btn-yellow {
    background: var(--yellow);
    color: #fff !important;
}

.btn-yellow:hover {
    background: #c28d00;
}

.btn-blue {
    background: var(--blue);
    color: #fff !important;
}

.btn-blue:hover {
    background: var(--blue-dark);
}

.btn-purple {
    background: var(--purple);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 700;
    transition: .25s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-purple:hover {
    background: var(--purple-dark);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ===================================================
   14. FOOTER
=================================================== */

footer {
    margin-top: auto;

    background: #fff;

    border-top: 1px solid var(--border);

    padding: 2rem 0;
}

/* ===================================================
   15. QR CODE PAGE
=================================================== */

.qr-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.qr-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    padding: 2.5rem 3rem;
    text-align: center;
    width: 100%;
    max-width: 420px;
}

.qr-card img.qr-img {
    width: 220px;
    height: 220px;
    border: 6px solid #f0f0f0;
    border-radius: 1rem;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.qr-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.qr-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.qr-url {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #495057;
    word-break: break-all;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.btn-download {
    border-radius: 0.75rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    width: 100%;
}

/* ===================================================
   15b. VÍDEO
=================================================== */

.video-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
    border-radius: var(--radius-lg);
}

/* ===================================================
   16. RESPONSIVO
=================================================== */

@media (max-width: 992px) {

    .video-wrapper {
        width: 90%;
    }

    .col-text h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {

    .robot-header-card {
        flex-direction: column;
    }

    .col-img {
        padding: 30px;
    }

    .col-text {
        padding: 32px;
    }

    .col-text h1 {
        font-size: 2rem;
    }

    .col-text p {
        font-size: 1rem;
    }

    .card-image-wrapper {
        height: 200px;
    }
}