:root {
    --cor-primaria: #0b5ed7;
    --cor-primaria-hover: #084298;

    --cor-destaque: #e5531a;
    --cor-destaque-hover: #b84212;

    --cor-texto: #1a1a1a;

    --cor-fundo: #ffffff;
    --cor-fundo-alt: #faf6f2;

    --cor-card: #ffffff;

    --cor-borda: #e2e2e2;

    --sombra-suave: 0 2px 8px rgba(0,0,0,0.08);
}

/* Reset básico */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    background: var(--cor-fundo);
}

/* Links */

a {
    color: var(--cor-primaria);
}

a:hover {
    text-decoration: underline;
}

/* Foco acessível */

:focus-visible {
    outline: 3px solid var(--cor-destaque);
    outline-offset: 3px;
}

/* Skip link */

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: #000;
    color: #fff;
    padding: 0.5rem;
    z-index: 1000;
}

/* Header */

.header {
    border-bottom: 1px solid var(--cor-borda);
    background: #fff;
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cor-primaria);
}

/* Botão menu mobile */

.menu-toggle {
    background: white;
    color: black;
    border: 1px solid var(--cor-borda);
    padding: 0.4rem 0.6rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline: 3px solid var(--cor-primaria);
}

/* Menu */

.menu {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.menu a {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 500;
}

.menu.show {
    display: flex;
}

/* Desktop */

@media (min-width: 768px) {

    .menu-toggle {
        display: none;
    }

    .menu {
        display: flex;
        flex-direction: row;
        width: auto;
        margin: 0;
        gap: 1.5rem;
    }
}

/* Texto apenas leitores de tela */

.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Hero */

.hero {
    padding: 4rem 1rem;
    background: linear-gradient(
        180deg,
        #faf6f2 0%,
        #ffffff 100%
    );
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 800px;
}

.hero-image {
    flex-shrink: 0;
}

#img-main.img-redonda {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsivo hero */

@media (max-width: 768px) {

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    #img-main.img-redonda {
        width: 180px;
        height: 180px;
    }
}

/* Seções */

.section {
    padding: 3rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt {
    background: var(--cor-fundo-alt);
}

/* Tipografia */

h1 {
    font-size: 2.2rem;
    line-height: 1.3;
}

h2 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    line-height: 1.3;
}

/* Cards */

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

.card {
    border: 1px solid var(--cor-borda);
    padding: 1.5rem;
    background: var(--cor-card);
    border-radius: 8px;
    box-shadow: var(--sombra-suave);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Listas */

.lista {
    padding-left: 1.2rem;
}

/* Formulário */

.form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

input,
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--cor-borda);
    border-radius: 4px;
    font-size: 1rem;
}

/* Botões */

.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--cor-destaque);
    color: #fff;
}

.btn-primary:hover {
    background: var(--cor-destaque-hover);
}

/* Footer */

.footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--cor-borda);
}

/* Certificações */

.certificacoes {
    margin-top: 2rem;
    padding: 0;
    list-style: none;

    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .certificacoes {
        justify-content: center;
    }
}

.certificacao-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
}

.certificacao-link:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 4px;
}

.certificacoes img {
    max-height: 120px;
    width: auto;
    display: block;
}

/* Tabela responsiva */

.tabela-wrapper {
    overflow-x: auto;
}

.tabela-conteudos {
    width: 100%;
    border-collapse: collapse;
}

.tabela-conteudos th,
.tabela-conteudos td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.tabela-conteudos th {
    background: #f3f3f3;
    font-weight: 600;
}

.tabela-conteudos tr:nth-child(even) {
    background: #fcfcfc;
}

.tabela-conteudos caption {
    width: 100%;
}

/* Mobile tabela */

@media (max-width: 768px) {

    .tabela-conteudos thead {
        position: absolute;
        left: -9999px;
    }

    .tabela-conteudos,
    .tabela-conteudos tbody,
    .tabela-conteudos tr,
    .tabela-conteudos td {
        display: block;
        width: 100%;
    }

    .tabela-conteudos tr {
        margin-bottom: 1.5rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 1rem;
        background: #fff;
    }

    .tabela-conteudos td {
        border: none;
        padding: 0.25rem 0;
    }

    .tabela-conteudos td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
        color: #555;
    }
}

/* Links externos */

.lista-links-externos {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.lista-links-externos li {
    margin-bottom: 0.75rem;
}

.lista-links-externos a {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.75rem 1rem;
    border-radius: 6px;

    text-decoration: none;
    font-weight: 500;

    background-color: #fff3ed;
    color: #b84212;

    border: 1px solid #ffd7c6;
}

.lista-links-externos a:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

/**/
.menu-btn {
  width: 69px;
  height: 49px;
  padding: 0; /* importante */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
}

.menu-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* hover suave */
.menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

/* foco acessível */
.menu-btn:focus-visible {
  outline: 2px solid #4d90fe;
  outline-offset: 2px;
}