/* =========================================================
   VARIÁVEIS
========================================================= */

:root {
    --primary: #155eef;
    --primary-dark: #0b3da8;
    --secondary: #0f172a;
    --accent: #00a896;

    --background: #ffffff;
    --background-light: #f4f7fb;

    --text: #172033;
    --text-light: #536174;

    --border: #d8dee9;

    --white: #ffffff;

    --shadow:
        0 10px 30px rgba(15, 23, 42, 0.10);

    --font-size-base: 16px;
}


/* =========================================================
   CONFIGURAÇÕES GERAIS
========================================================= */

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.7;

    overflow-x: hidden;
}

body.large-text {
    font-size: 1.18rem;
}

body.extra-large-text {
    font-size: 1.35rem;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

button,
a {
    outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 4px solid #ffbf00;
    outline-offset: 4px;
}


/* =========================================================
   LINK DE ACESSIBILIDADE
========================================================= */

.skip-link {
    position: fixed;

    top: -100px;
    left: 20px;

    z-index: 9999;

    background: #000;
    color: #fff;

    padding: 12px 18px;

    border-radius: 0 0 8px 8px;

    font-weight: bold;

    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}


/* =========================================================
   BARRA DE ACESSIBILIDADE
========================================================= */

.accessibility-bar {
    background: #050b18;
    color: #fff;

    border-bottom: 2px solid #334155;

    position: relative;
    z-index: 1000;
}

.accessibility-content {
    min-height: 64px;

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

    gap: 20px;
}

.accessibility-content strong {
    white-space: nowrap;
}

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

.access-btn {
    min-height: 42px;

    padding: 8px 13px;

    border: 2px solid #64748b;

    background: #172033;
    color: #fff;

    border-radius: 7px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}

.access-btn:hover {
    background: #334155;
    transform: translateY(-1px);
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    background:
        linear-gradient(
            135deg,
            #0b3da8,
            #155eef
        );

    padding: 16px 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    color: #fff !important;

    font-weight: 700;

    margin-left: 12px;

    border-radius: 6px;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
}


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

.hero {
    background:
        linear-gradient(
            135deg,
            #0b3da8,
            #155eef 65%,
            #00a896
        );

    color: #fff;

    padding:
        100px 0;
}

.badge-projeto {
    display: inline-block;

    padding: 8px 14px;

    margin-bottom: 20px;

    background: rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.4);

    border-radius: 50px;

    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);

    margin-bottom: 25px;
}

.hero-text {
    max-width: 700px;

    font-size: 1.25rem;

    opacity: 0.96;
}

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);

    border: 2px solid rgba(255, 255, 255, 0.3);

    border-radius: 25px;

    padding: 45px 30px;

    text-align: center;

    backdrop-filter: blur(10px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-card > i {
    display: block;

    font-size: 6rem;

    margin-bottom: 20px;
}

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


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

.section {
    padding: 90px 0;
}

.section-light {
    background: var(--background-light);
}

.section-heading {
    max-width: 800px;

    margin: 0 auto 50px;

    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    margin:
        10px 0 18px;
}

.section-heading p {
    color: var(--text-light);

    font-size: 1.1rem;
}

.section-label {
    color: var(--primary);

    font-size: 0.9rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


/* =========================================================
   CARDS INFORMATIVOS
========================================================= */

.info-card {
    height: 100%;

    padding: 30px;

    background: #fff;

    border:
        2px solid var(--border);

    border-radius: 15px;

    box-shadow: var(--shadow);

    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.info-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.15);
}

.icon-box {
    width: 60px;
    height: 60px;

    display: flex;

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

    background: #e8f0ff;

    color: var(--primary);

    border-radius: 12px;

    font-size: 1.7rem;

    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.4rem;
}

.info-card p {
    color: var(--text-light);

    margin-bottom: 0;
}


/* =========================================================
   LISTA DE OBJETIVOS
========================================================= */

.check-list {
    list-style: none;

    padding: 0;

    margin-top: 25px;
}

.check-list li {
    display: flex;

    gap: 12px;

    margin-bottom: 13px;

    font-weight: 600;
}

.check-list i {
    color: var(--accent);

    flex-shrink: 0;

    margin-top: 5px;
}


/* =========================================================
   DEMONSTRAÇÃO
========================================================= */

.accessibility-demo {
    background: #fff;

    border:
        2px solid var(--border);

    border-radius: 20px;

    overflow: hidden;

    box-shadow: var(--shadow);
}

.demo-header {
    padding: 20px;

    background: var(--secondary);

    color: #fff;

    font-weight: 800;
}

.demo-item {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 20px;

    border-bottom:
        1px solid var(--border);
}

.demo-item:last-child {
    border-bottom: 0;
}

.demo-item > span:first-child {
    font-weight: 700;
}

.demo-item i {
    color: var(--primary);

    margin-right: 8px;
}

.demo-button {
    border:
        2px solid var(--border);

    background: #fff;

    padding: 6px 10px;

    font-weight: bold;

    border-radius: 6px;
}

.demo-button.active {
    background: var(--primary);
    color: #fff;
}

.status-on {
    color: #087f5b;

    font-weight: 800;
}


/* =========================================================
   FLASHCARDS
========================================================= */

.flashcard-controls {
    display: flex;

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

    gap: 25px;

    margin-bottom: 25px;
}

.control-button {
    background: #fff;

    border:
        2px solid var(--primary);

    color: var(--primary);

    padding: 10px 18px;

    border-radius: 8px;

    font-weight: 800;

    cursor: pointer;
}

.control-button:hover {
    background: var(--primary);
    color: #fff;
}

#contador {
    font-weight: 800;
}

.flashcard {
    max-width: 900px;

    min-height: 450px;

    margin: auto;

    display: flex;

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

    text-align: center;

    padding: 50px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1f5ff
        );

    border:
        3px solid #c8d5f2;

    border-radius: 25px;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.12);
}

.flashcard-content {
    width: 100%;
}

.card-number {
    display: inline-block;

    color: var(--primary);

    font-weight: 900;

    letter-spacing: 1px;

    margin-bottom: 15px;
}

.card-icon {
    color: var(--primary);

    font-size: 4rem;

    margin-bottom: 20px;
}

.flashcard h3 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);

    margin-bottom: 25px;
}

.answer {
    max-width: 700px;

    margin: 0 auto 25px;

    padding: 20px;

    background: #e9f1ff;

    border-left:
        6px solid var(--primary);

    border-radius: 8px;

    text-align: left;

    color: #1e293b;
}

.card-actions {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================================
   RECURSOS
========================================================= */

.section-dark {
    background: #0b1220;

    color: #fff;
}

.section-heading.light p {
    color: #cbd5e1;
}

.section-heading.light .section-label {
    color: #67e8f9;
}

.resource-card {
    height: 100%;

    padding: 30px;

    background: #151f33;

    border:
        2px solid #334155;

    border-radius: 15px;

    text-align: center;

    transition:
        transform 0.2s,
        background 0.2s;
}

.resource-card:hover {
    transform: translateY(-5px);

    background: #1d2a42;
}

.resource-card > i {
    color: #67e8f9;

    font-size: 3rem;

    margin-bottom: 20px;
}

.resource-card p {
    color: #cbd5e1;
}

.resource-button {
    width: 100%;

    padding: 10px;

    border:
        2px solid #67e8f9;

    background: transparent;

    color: #fff;

    border-radius: 7px;

    font-weight: 800;
}

.resource-button:hover {
    background: #67e8f9;
    color: #07111f;
}


/* =========================================================
   ACCORDION
========================================================= */

.accordion {
    max-width: 900px;

    margin: auto;
}

.accordion-item {
    border:
        2px solid var(--border) !important;

    margin-bottom: 12px;

    border-radius: 8px !important;

    overflow: hidden;
}

.accordion-button {
    font-weight: 800;

    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: #e8f0ff;

    color: var(--primary);

    box-shadow: none;
}

.accordion-body {
    padding: 22px;

    font-size: 1.05rem;
}


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

.final-cta {
    padding: 80px 0;

    background:
        linear-gradient(
            135deg,
            #155eef,
            #00a896
        );

    color: #fff;

    text-align: center;
}

.final-cta > .container > i {
    font-size: 4rem;
}

.final-cta h2 {
    max-width: 800px;

    margin:
        20px auto;

    font-size: clamp(2rem, 4vw, 3.2rem);
}

.final-cta p {
    max-width: 700px;

    margin: 0 auto 30px;

    font-size: 1.15rem;
}


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

footer {
    background: #050b18;

    color: #cbd5e1;

    padding: 50px 0;
}

footer h2 {
    color: #fff;

    font-size: 1.5rem;
}

footer p {
    margin-bottom: 8px;
}


/* =========================================================
   BOTÃO VOLTAR AO TOPO
========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 52px;
    height: 52px;

    display: flex;

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

    background: var(--primary);

    color: #fff;

    border: 3px solid #fff;

    border-radius: 50%;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.2);

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s,
        visibility 0.3s;
}

.back-to-top.visible {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   ALTO CONTRASTE
========================================================= */

body.high-contrast {
    background: #000 !important;

    color: #fff !important;
}

body.high-contrast .section,
body.high-contrast .section-light {
    background: #000 !important;

    color: #fff !important;
}

body.high-contrast .info-card,
body.high-contrast .flashcard,
body.high-contrast .accessibility-demo,
body.high-contrast .accordion-item,
body.high-contrast .answer {
    background: #000 !important;

    color: #fff !important;

    border-color: #fff !important;

    box-shadow: none;
}

body.high-contrast .info-card p,
body.high-contrast .section-heading p,
body.high-contrast .accordion-body {
    color: #fff !important;
}

body.high-contrast .icon-box {
    background: #000;

    color: #ffff00;

    border: 2px solid #ffff00;
}

body.high-contrast .section-label,
body.high-contrast .check-list i,
body.high-contrast .card-number {
    color: #ffff00 !important;
}

body.high-contrast .answer {
    border-left-color: #ffff00 !important;
}

body.high-contrast .answer p {
    color: #fff !important;
}

body.high-contrast .control-button {
    background: #000;

    color: #fff;

    border-color: #fff;
}

body.high-contrast .accordion-button {
    background: #000;

    color: #fff;

    border-bottom: 2px solid #fff;
}

body.high-contrast .accordion-button:not(.collapsed) {
    color: #ffff00;
}

body.high-contrast a {
    color: #ffff00 !important;
}

body.high-contrast .hero,
body.high-contrast .final-cta {
    background: #000 !important;

    border-top: 2px solid #fff;

    border-bottom: 2px solid #fff;
}

body.high-contrast .resource-card,
body.high-contrast .section-dark {
    background: #000 !important;

    border-color: #fff;
}

body.high-contrast .resource-card p {
    color: #fff;
}

body.high-contrast .btn-primary {
    background: #ffff00 !important;

    color: #000 !important;

    border-color: #ffff00 !important;
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 991px) {

    .accessibility-content {
        align-items: flex-start;

        flex-direction: column;

        padding: 15px 0;
    }

    .accessibility-buttons {
        width: 100%;
    }

    .access-btn {
        flex: 1 1 auto;
    }

    .hero {
        padding: 70px 0;
    }

    .section {
        padding: 65px 0;
    }
}


@media (max-width: 576px) {

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .flashcard {
        min-height: 420px;

        padding: 30px 20px;
    }

    .flashcard-controls {
        gap: 10px;
    }

    .control-button {
        padding: 8px 12px;
    }

    .access-btn {
        font-size: 0.9rem;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}


/* =========================================================
   REDUÇÃO DE MOVIMENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}