/* =========================================================
   SISTEMA DE ENSINO - OLECRAM TI
   IDENTIDADE VISUAL OFICIAL
   ========================================================= */

:root {
    --primary: #0b4ea2;
    --primary-dark: #083875;
    --primary-light: #eaf3ff;
    --secondary: #00a8e8;

    --success: #168a52;
    --success-light: #e8f7ef;
    --warning: #b86b00;
    --warning-light: #fff5df;
    --danger: #b42318;
    --danger-light: #fff0ee;

    --dark: #172033;
    --dark-2: #263247;
    --text: #253044;
    --gray: #5c687a;
    --gray-light: #eef2f6;

    --light: #f4f7fb;
    --white: #ffffff;

    --border: #b8c2cf;
    --border-strong: #7f8da0;

    --shadow-sm: 0 2px 8px rgba(23, 32, 51, 0.08);
    --shadow-md: 0 8px 24px rgba(23, 32, 51, 0.12);
    --shadow-lg: 0 16px 40px rgba(23, 32, 51, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --max-width: 1280px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.65;
    min-width: 320px;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

:focus-visible {
    outline: 4px solid rgba(0, 168, 232, 0.55);
    outline-offset: 3px;
}

/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 9999;
    background: var(--dark);
    color: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.skip-link:focus {
    top: 16px;
}

.texto-acessibilidade {
    color: var(--gray);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: var(--max-width);
    min-height: 82px;
    margin: auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(11, 78, 162, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    color: var(--primary-dark);
    font-size: 20px;
    line-height: 1.1;
}

.logo-text span {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.3;
    margin-top: 3px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    color: var(--dark-2);
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.menu a:hover,
.menu a.ativo {
    color: var(--primary-dark);
    background: var(--primary-light);
    border-color: #9fc5ef;
}

.header-acoes {
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn {
    min-height: 46px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    border: 2px solid transparent;
    transition: 0.2s ease;
    cursor: pointer;
}

.btn-login {
    color: var(--primary-dark);
    background: var(--white);
    border-color: var(--primary);
}

.btn-login:hover {
    background: var(--primary-light);
}

.btn-cadastro {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.btn-cadastro:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 20%, rgba(0,168,232,0.30), transparent 32%),
        linear-gradient(135deg, #062e63 0%, #0b4ea2 58%, #0879b2 100%);
    color: var(--white);
    border-bottom: 4px solid var(--secondary);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.10), transparent 55%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: var(--max-width);
    min-height: 510px;
    margin: auto;
    padding: 76px 24px;
    display: flex;
    align-items: center;
}

.hero-conteudo {
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 13px;
    border-radius: 30px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.42);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -1.2px;
    margin-bottom: 22px;
}

.hero h1 span {
    color: #a9e8ff;
    display: block;
}

.hero p {
    max-width: 790px;
    font-size: 20px;
    line-height: 1.65;
    color: #f2f8ff;
    margin-bottom: 30px;
}

.hero-botoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-primary,
.hero-btn-secondary {
    min-height: 50px;
    padding: 12px 21px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid transparent;
}

.hero-btn-primary {
    color: var(--primary-dark);
    background: var(--white);
    border-color: var(--white);
}

.hero-btn-primary:hover {
    background: #e8f5ff;
}

.hero-btn-secondary {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.72);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.16);
}

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

.container {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

.secao {
    padding: 76px 0;
}

.secao-cabecalho {
    max-width: 850px;
    margin: 0 auto 42px;
    text-align: center;
}

.secao-cabecalho .eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.secao-cabecalho h2 {
    color: var(--primary-dark);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    margin-bottom: 12px;
}

.secao-cabecalho p {
    color: var(--gray);
    font-size: 18px;
}

/* =========================================================
   APRESENTAÇÃO
   ========================================================= */

.apresentacao {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: stretch;
}

.apresentacao-texto,
.apresentacao-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.apresentacao-texto {
    padding: 36px;
}

.apresentacao-texto h2 {
    color: var(--primary-dark);
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.apresentacao-texto p {
    color: var(--text);
    font-size: 17px;
    margin-bottom: 14px;
}

.apresentacao-card {
    padding: 30px;
    border-top: 6px solid var(--primary);
}

.apresentacao-card h3 {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 16px;
}

.lista-recursos {
    list-style: none;
    display: grid;
    gap: 9px;
}

.lista-recursos li {
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fbfcfe;
    font-weight: 700;
}

/* =========================================================
   DISCIPLINAS
   ========================================================= */

.disciplinas {
    background: #edf3f9;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.semestre {
    margin-bottom: 48px;
}

.semestre:last-child {
    margin-bottom: 0;
}

.semestre-cabecalho {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
    padding-bottom: 13px;
    border-bottom: 2px solid var(--border-strong);
}

.semestre-titulo {
    color: var(--primary-dark);
    font-size: 26px;
    line-height: 1.2;
}

.semestre-info {
    color: var(--gray);
    font-size: 14px;
    font-weight: 700;
}

.disciplinas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.disciplina-card {
    position: relative;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.disciplina-card::before {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    height: 6px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.disciplina-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.disciplina-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-top: 4px;
}

.disciplina-icone {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 12px;
    background: var(--primary-light);
    border: 2px solid #b5d2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.disciplina-status {
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid #e9c77e;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.disciplina-card h3 {
    color: var(--dark);
    font-size: 20px;
    line-height: 1.3;
    margin: 18px 0 9px;
}

.disciplina-descricao {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.55;
}

.disciplina-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.meta-item {
    padding: 6px 9px;
    background: #f5f7fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--dark-2);
    font-size: 12px;
    font-weight: 800;
}

.disciplina-acesso {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.disciplina-acesso a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 900;
}

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

/* =========================================================
   COMO FUNCIONA
   ========================================================= */

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

.etapa {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
}

.etapa-numero {
    width: 52px;
    height: 52px;
    margin-bottom: 17px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 5px 12px rgba(11, 78, 162, 0.22);
}

.etapa h3 {
    color: var(--dark);
    font-size: 19px;
    margin-bottom: 8px;
}

.etapa p {
    color: var(--gray);
    font-size: 14px;
}

/* =========================================================
   CHAMADA
   ========================================================= */

.chamada {
    background:
        linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 72px 24px;
    border-top: 4px solid var(--secondary);
}

.chamada h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 12px;
}

.chamada p {
    max-width: 720px;
    margin: 0 auto 25px;
    font-size: 17px;
    color: #eef7ff;
}

.chamada .btn {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.chamada .btn:hover {
    background: #e8f5ff;
}

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

.site-footer {
    background: #101827;
    color: var(--white);
    padding: 50px 24px 24px;
}

.footer-container {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 45px;
}

.footer-logo {
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 10px;
}

.footer-text {
    max-width: 560px;
    color: #c4ccd7;
    font-size: 14px;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    width: fit-content;
    color: #c4ccd7;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 35px auto 0;
    padding-top: 20px;
    border-top: 1px solid #3a4658;
    text-align: center;
    color: #aeb8c6;
    font-size: 13px;
}

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

@media (max-width: 1050px) {
    .menu {
        display: none;
    }

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

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

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

@media (max-width: 720px) {
    .header-container {
        min-height: 70px;
        padding: 10px 16px;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text span {
        display: none;
    }

    .header-acoes .btn-login {
        display: none;
    }

    .header-acoes .btn-cadastro {
        min-height: 42px;
        padding: 8px 13px;
        font-size: 13px;
    }

    .hero-container {
        min-height: 470px;
        padding: 58px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .secao {
        padding: 56px 0;
    }

    .apresentacao-texto,
    .apresentacao-card {
        padding: 24px;
    }

    .disciplinas-grid,
    .etapas {
        grid-template-columns: 1fr;
    }

    .semestre-cabecalho {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .disciplina-card {
        min-height: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 430px) {
    .hero h1 {
        font-size: 32px;
    }

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

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
    }

    .header-acoes .btn-cadastro {
        font-size: 12px;
        padding: 8px 10px;
    }

    .disciplina-card {
        padding: 22px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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