/* =======================================================
   1. RESET E CONFIGURAÇÃO DA TELA (Sem Scroll)
   ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* #d69a64*/

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #FFFFFF; /* Fundo branco por padrão */
    
    height: 100vh;      
    width: 100vw;       
    overflow: hidden; /* Corta o scroll */
    
    display: flex;
    flex-direction: column;
}

/* =======================================================
   2. CABEÇALHO (10% da tela)
   ======================================================= */
header {
    height: 10vh; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: #fff;
    z-index: 10; /* Mantém o cabeçalho sempre acima */
}

.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-container h1 { color: #dc6a25; font-size: 1.5rem; }
.logo-container p { font-size: 0.7rem; color: #777; }

nav ul { list-style: none; display: flex; gap: 2vw; }
nav a { text-decoration: none; color: #333; font-weight: bold; font-size: 0.85rem; }
nav a.active { color: #dc6a25; border-bottom: 2px solid #dc6a25; }

.header-actions button {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #dc6a25;
}
.btn-login { background-color: transparent; color: #dc6a25; margin-right: 10px; }
.btn-signup { background-color: #dc6a25; color: white; }

/* =======================================================
   3. ÁREA PRINCIPAL
   ======================================================= */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* --- SEÇÃO HERO (35% da área principal) --- */
.hero {
    height: 35%; 
    background-color: #FCF9F2; /* Fundo bege clarinho */
    padding: 0 5%;
    display: flex;
    align-items: center;
    position: relative; /* Necessário para ancorar a raposa e o card */
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 5%;
    bottom: 0;
    left: 40%;
    background-image: url('assets/office_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    z-index: 1;
}

.hero-text {
    width: 35%;
    z-index: 4;
    margin-right: 5%;
}

.hero-text h2 { font-size: 2.2vw; line-height: 1.2; }
.highlight { color: #dc6a25; }
.hero-text p { margin: 10px 0; font-size: 0.85vw; max-width: 90%; }

.hero-actions { display: flex; gap: 15px; margin-top: 10px; margin-bottom: 20px; }
.hero-actions a,
.hero-actions button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 15px; border-radius: 8px; border: none;
    color: white; cursor: pointer; text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 10px rgba(17, 41, 70, 0.15);
}
.hero-actions a:hover,
.hero-actions button:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}
.btn-candidate { background-color: #dc6a25; }
.btn-recruiter { background-color: #112946; }
.action-text { display: flex; flex-direction: column; text-align: left; font-size: 0.7rem; }
.action-text strong,
.action-text span {
    color: #fff;
}

/* --- A MÁGICA DA RAPOSA DE TERNO --- */
.hero-visual {
    position: absolute;
    right: 0;
    bottom: 0; /* Cola na base da seção bege */
    left: 5%;
    width: 100%;
    height: 100%;
    z-index: 3;
    overflow: visible;
}

.hero-visual > img {
    height: 110%; /* Faz a raposa "vazar" um pouquinho pra cima, fica estiloso */
    position: absolute;
    bottom: 0;
    left: 30%; /* Cruza a margem entre os dois backgrounds */
    object-fit: contain;
    z-index: 1;
}

.benefits-card {
    position: absolute;
    left: 48%; /* Mantém o card à direita da raposa, sem sobreposição */
    top: 25%;
    background: white;
    min-width: 250px;
    padding: 19px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    z-index: 3;
}
.benefits-card ul { list-style: none; }
.benefits-card li { display: flex; align-items: center; gap: 10px; font-size: 0.85vw; margin-bottom: 9px; }
.benefits-card li img {
    width: 24px;  /* Defina o tamanho ideal para o seu ícone */
    height: 24px; /* Defina a altura igual à largura para manter quadrado */
    object-fit: contain; /* Garante que a imagem não distorça */
    flex-shrink: 0; /* Impede que a imagem encolha caso o texto ocupe muito espaço */
}

/* --- SEÇÃO RECURSOS (40% da área restante) --- */
.features {
    flex: 4;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
}

.features h3 { font-size: 1vw; margin-bottom: 30px; margin-top: 10px; }
.features-grid { display: flex; gap: 1.2vw; align-items: stretch; }
.feature-card { text-align: center; width: 11vw; }
.feature-card img { width: 25px; height: 25px; margin-bottom: 4px; }
.feature-card h4 { font-size: 0.75vw; }
.feature-card p { font-size: 0.62vw; color: #666; line-height: 1.3; }

/* --- SEÇÃO POR QUE UMA RAPOSA (60% da área restante) --- */
.why-fox {
    flex: 6;
    min-height: 0;
    background-color: #f4f5f9; /* Fundo bege mais escuro */
    border-radius: 15px;
    margin: 1% 5%;
    padding: 0 4%;
    display: flex;
    align-items: center;
    position: relative; /* Ancora a raposa de braços cruzados */
}

.why-fox-text { width: 25%; }
.why-fox-text h3 { font-size: 1vw; }
.why-fox-text p { font-size: 0.75vw; margin-top: 5px; }

.traits-grid { display: flex; gap: 2vw; width: 45%; margin-left: 2vw; }
.trait-card h4 { font-size: 0.75vw; margin: 5px 0; }
.trait-card p { font-size: 0.65vw; }

/* --- A MÁGICA DA RAPOSA DE BAIXO --- */
.why-fox-visual img {
    position: absolute;
    bottom: 0;
    right: 3%;
    height: 115%; /* Faz ela vazar para fora do card, dando o efeito 3D da imagem guia */
    z-index: 5;
}

/* =======================================================
   4. RODAPÉ (mais espaço para o CTA)
   ======================================================= */
footer {
    height: 12vh;
    background-color: #122948;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.cta-content { display: flex; align-items: center; gap: 15px; }
.cta-content img { height: 50px; }
.cta-text h2 { font-size: 0.9vw; }
.cta-text p { font-size: 0.7vw; }

.btn-start-now {
    background-color: #dc6a25; color: #FFFFFF; border: none;
    padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; margin-top: 10px;
}


/* =======================================================
   5. PÁGINA DO CANDIDATO (Formulário)
   ======================================================= */

/* Centraliza o formulário no meio da tela que sobrou */
.candidate-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FCF9F2; /* Mesmo fundo bege clarinho do index */
}

/* A "caixa branca" do formulário */
.form-container {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 650px; 
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra elegante */
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h2 {
    color: #112946; /* Azul escuro do seu layout */
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.form-header p {
    color: #666;
    font-size: 0.85rem;
}

.candidate-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre as linhas do formulário */
}

/* Coloca campos lado a lado */
.row-group {
    display: flex;
    gap: 15px;
}

.row-group .form-group {
    flex: 1; /* Faz os campos dividirem o espaço 50/50 por padrão */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #112946;
    margin-bottom: 5px;
}

/* Estilizando Inputs de Texto, Número e a Caixa de Seleção (Dropdown) juntos */
.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit; /* Herda a fonte do site */
    color: #333;
    outline: none; /* Tira aquela borda preta padrão do Chrome ao clicar */
    transition: border-color 0.3s ease; /* Transição suave de cor */
}

/* :focus é ativado quando o usuário clica dentro do campo para digitar */
.form-group input:focus,
.form-group select:focus {
    border-color: #dc6a25; /* Borda fica laranja ao focar */
}

/* Botão Enviar */
.btn-submit {
    background-color: #dc6a25;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

/* :hover é ativado quando o mouse passa por cima */
.btn-submit:hover {
    background-color: #bf591c; /* Laranja um pouco mais escuro */
}

/* =======================================================
   6. INTERFACE DA ENTREVISTA (Perguntas)
   ======================================================= */
.interview-container {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 700px;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f4f5f9;
    padding-bottom: 10px;
}

.interview-header h2 { color: #112946; font-size: 1.4rem; }
#question-counter { color: #dc6a25; font-weight: bold; font-size: 0.9rem; }

.question-box h3 {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

.answer-box { display: flex; flex-direction: column; gap: 8px; }
.answer-box label { font-size: 0.85rem; font-weight: bold; color: #666; }
.answer-box textarea {
    padding: 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    resize: none; /* Permite ao usuário aumentar a caixa só para baixo */
}
.answer-box textarea:focus { border-color: #dc6a25; outline: none; }

/* =======================================================
   7. TELA DE RESULTADOS
   ======================================================= */
.result-container {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.result-header {
    text-align: center;
}

.result-header h2 {
    color: #112946;
    font-size: 1.8rem;
}

/* O Círculo do Score */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: background-color 0.5s ease; /* Transição suave de cor */
}

.score-circle .percent {
    font-size: 1.5rem;
}

/* Classes de cores dinâmicas que o JS vai aplicar */
.score-red { background-color: #e74c3c; }    /* Menor que 25 */
.score-yellow { background-color: #f1c40f; } /* Entre 25 e 74 */
.score-green { background-color: #2ecc71; }  /* 75 ou mais */

/* Quadros de Feedback (Lado a lado com Flexbox) */
.feedback-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

.feedback-box {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.feedback-box h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.success-box { background-color: #f9fff9; border-color: #d4edd4; }
.success-box h3 { color: #27ae60; }

.improvement-box { background-color: #fffaf5; border-color: #fde8d7; }
.improvement-box h3 { color: #e67e22; }

/* Botões do Resultado */
.result-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.btn-secondary {
    background-color: transparent;
    color: #112946;
    border: 2px solid #112946;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none; /* Tira o sublinhado do link */
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #112946;
    color: white;
}

/* =======================================================
   8. PÁGINA DO RECRUTADOR (Materiais)
   ======================================================= */
.recruiter-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FCF9F2;
    padding: 40px 20px;
}

.resources-container {
    width: 100%;
    max-width: 900px;
}

.resources-header {
    text-align: center;
    margin-bottom: 40px;
}

.resources-header h2 {
    color: #112946;
    font-size: 2rem;
    margin-bottom: 10px;
}

.resources-header p {
    color: #666;
    font-size: 1rem;
}

/* O Segredo da Grade Perfeita (CSS Grid) - ATUALIZADO */
.resources-grid {
    display: grid;
    /* Diminuímos o tamanho mínimo de 200px para 140px para caberem mais colunas */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px; /* Diminuímos o buraco entre os quadrados (era 25px) */
}

/* Transformando a tag <a> em um quadrado clicável (Card) - ATUALIZADO */
.resource-card {
    background-color: #FFFFFF;
    text-decoration: none; 
    color: inherit; 
    padding: 15px 10px; /* Diminuímos o respiro interno para economizar espaço */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    aspect-ratio: 1 / 1; /* Mantém o formato quadrado perfeito */
    justify-content: center;
    border: 2px solid transparent; 
    transition: all 0.3s ease; 
}

/* Efeito ao passar o mouse por cima do quadrado */
.resource-card:hover {
    transform: translateY(-5px); /* Um salto um pouco menor na animação */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #dc6a25; 
}

/* Ajuste nos tamanhos dos textos e ícones */
.resource-icon {
    font-size: 2rem; /* Ícone menor (era 3rem) */
    margin-bottom: 8px;
}

.resource-card h3 {
    color: #112946;
    font-size: 0.9rem; /* Título menor (era 1.1rem) */
    margin-bottom: 5px;
}

.resource-card p {
    color: #666;
    font-size: 0.75rem; /* Texto descritivo menor (era 0.85rem) */
    line-height: 1.2;
}


/* Elementos de formulário nunca devem criar overflow horizontal. */
.form-group input,
.form-group select,
.answer-box textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* =======================================================
   9. RESPONSIVIDADE
   ======================================================= */

/*
   A partir daqui o layout deixa de depender da altura da viewport.
   Isso evita cortes em celulares/tablets em modo retrato.
*/

/* TABLETS E TELAS MENORES */
@media (max-width: 1024px) {

    html,
    body {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        display: block;
    }

    /* ================= CABEÇALHO ================= */

    header {
        height: auto;
        min-height: 76px;
        padding: 16px 24px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .logo-container {
        flex: 0 0 auto;
    }

    .logo-container img {
        width: 180px !important;
        height: auto;
    }

    nav {
        flex: 1 1 auto;
        min-width: 260px;
    }

    nav ul {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    nav a {
        font-size: 0.82rem;
    }

    .header-actions {
        flex: 0 0 auto;
    }

    .header-actions button {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

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

    main {
        display: block;
        min-height: 0;
    }

    .hero {
        height: auto;
        min-height: 520px;
        padding: 48px 6% 0;
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: center;
        gap: 24px;
        overflow: hidden;
    }

    .hero::after {
        left: 42%;
        right: 4%;
        top: 18px;
        bottom: 18px;
        border-radius: 10px;
        opacity: 1;
        background-position: center;
    }

    .hero-text {
        width: auto;
        margin-right: 0;
        z-index: 4;
    }

    .hero-text h2 {
        font-size: clamp(2rem, 4vw, 2.8rem);
        line-height: 1.15;
    }

    .hero-text p {
        max-width: 95%;
        margin: 16px 0;
        font-size: clamp(0.85rem, 1.5vw, 1rem);
        line-height: 1.45;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
        margin-bottom: 0;
    }

    .hero-actions a {
        flex: 1 1 145px;
        min-height: 62px;
        justify-content: center;
    }

    .action-text {
        font-size: 0.72rem;
    }

    .hero-visual {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 100%;
        min-height: 430px;
        z-index: 3;
        overflow: visible;
    }

    .hero-visual > img {
        height: min(500px, 110%);
        max-width: 92%;
        width: auto;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    .benefits-card {
        left: auto;
        right: 2%;
        top: 24%;
        width: min(280px, 60%);
        min-width: 0;
        padding: 15px 16px;
    }

    .benefits-card li {
        font-size: clamp(0.7rem, 1.25vw, 0.82rem);
        line-height: 1.25;
    }

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

    .features {
        padding: 60px 6%;
        min-height: 0;
    }

    .features h3 {
        font-size: clamp(1.2rem, 2vw, 1.45rem);
        text-align: center;
        margin: 0 0 34px;
    }

    .features-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px 24px;
    }

    .feature-card {
        width: 100%;
    }

    .feature-card img {
        width: 30px;
        height: 30px;
        margin-bottom: 8px;
    }

    .feature-card h4 {
        font-size: 0.92rem;
        margin-bottom: 5px;
    }

    .feature-card p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .feature-card:last-child {
        grid-column: 2;
    }

    /* ================= POR QUE A RAPOSA ================= */

    .why-fox {
        margin: 0 6% 6%;
        padding: 50px 5% 0;
        min-height: 500px;
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 34px;
        align-items: center;
        overflow: hidden;
    }

    .why-fox-text {
        width: auto;
    }

    .why-fox-text h3 {
        font-size: clamp(1.2rem, 2vw, 1.45rem);
    }

    .why-fox-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-top: 8px;
    }

    .traits-grid {
        width: auto;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .trait-card h4 {
        font-size: 0.88rem;
        margin: 6px 0;
    }

    .trait-card p {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .why-fox-visual {
        position: absolute;
        inset: auto 0 0 auto;
        width: 38%;
        height: 100%;
        pointer-events: none;
    }

    .why-fox-visual img {
        position: absolute;
        height: 82%;
        max-width: none;
        bottom: 0;
        right: 4%;
    }

    /* ================= RODAPÉ ================= */

    footer {
        height: auto;
        min-height: 150px;
        padding: 26px 6%;
    }

    .cta-content img {
        height: 44px;
    }

    .cta-text h2 {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .cta-text p {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    /* ================= CANDIDATO ================= */

    .candidate-main {
        min-height: calc(100vh - 76px);
        height: auto;
        padding: 32px 24px;
        align-items: flex-start;
    }

    .form-container,
    .interview-container,
    .result-container {
        width: min(100%, 650px);
        max-width: 100%;
        margin: 0 auto;
    }

    .form-container {
        padding: 28px 32px;
    }

    .interview-container {
        padding: 28px 32px;
    }

    .result-container {
        padding: 32px;
    }

    .resources-container {
        max-width: 900px;
    }
}


/* =======================================================
   10. TABLETS EM PÉ / TELAS DE 701px A 900px
   ======================================================= */
@media (min-width: 701px) and (max-width: 900px) {

    /* A página deixa de tentar caber toda na altura da tela.
       Em 800x1280, por exemplo, o conteúdo pode crescer e rolar normalmente. */
    html,
    body {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        display: block;
    }

    /* ================= CABEÇALHO ================= */
    header {
        min-height: 78px;
        height: auto;
        padding: 14px 24px;
        gap: 10px;
    }

    .logo-container img {
        width: 160px !important;
    }

    nav ul {
        gap: 8px 16px;
    }

    nav a {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .header-actions button {
        padding: 8px 13px;
        font-size: 0.76rem;
    }

    /* ================= HERO ================= */
    .hero {
        min-height: 0;
        height: auto;
        padding: 42px 32px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: hidden;
    }

    /* O fundo fotográfico fica atrás da área da raposa,
       em vez de ocupar metade do hero inteiro. */
    .hero::after {
        left: 5%;
        right: 5%;
        top: 48%;
        bottom: 0;
        height: auto;
        border-radius: 14px 14px 0 0;
        opacity: 1;
        background-position: center;
    }

    .hero-text {
        width: 100%;
        max-width: 560px;
        margin: 0;
        text-align: center;
    }

    .hero-text h2 {
        font-size: clamp(2rem, 5vw, 2.7rem);
        line-height: 1.12;
    }

    .hero-text p {
        max-width: 540px;
        margin: 14px auto;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
        max-width: 470px;
        margin: 18px auto 0;
    }

    .hero-actions a {
        flex: 1 1 0;
        min-width: 0;
        min-height: 62px;
        justify-content: center;
        padding: 10px 14px;
    }

    .action-text {
        font-size: 0.72rem;
    }

    .hero-visual {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 420px;
        min-height: 420px;
        margin-top: 18px;
        z-index: 3;
    }

    .hero-visual > img {
        height: 410px;
        width: auto;
        max-width: 82%;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    /* O card fica mais baixo, evitando cobrir o rosto da raposa. */
    .benefits-card {
        left: auto;
        right: 2%;
        top: auto;
        bottom: 18px;
        width: min(290px, 48%);
        min-width: 0;
        padding: 14px 16px;
    }

    .benefits-card li {
        font-size: 0.74rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .benefits-card li img {
        width: 21px;
        height: 21px;
    }

    /* ================= RECURSOS ================= */
    .features {
        padding: 54px 32px 60px;
        min-height: 0;
    }

    .features h3 {
        font-size: 1.3rem;
        margin: 0 0 32px;
        text-align: center;
    }

    .features-grid {
        width: 100%;
        max-width: 620px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 28px;
    }

    .feature-card {
        width: 100%;
    }

    .feature-card img {
        width: 32px;
        height: 32px;
    }

    .feature-card h4 {
        font-size: 0.94rem;
        margin-bottom: 5px;
    }

    .feature-card p {
        font-size: 0.76rem;
        line-height: 1.42;
    }

    .feature-card:last-child {
        grid-column: 1 / -1;
        max-width: 210px;
        justify-self: center;
    }

    /* ================= POR QUE UMA RAPOSA? ================= */
    .why-fox {
        margin: 0 24px 36px;
        padding: 46px 28px 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        overflow: hidden;
        border-radius: 16px;
    }

    .why-fox-text {
        width: 100%;
        max-width: 560px;
        text-align: center;
    }

    .why-fox-text h3 {
        font-size: 1.3rem;
    }

    .why-fox-text p {
        font-size: 0.86rem;
        line-height: 1.5;
        margin-top: 10px;
    }

    .traits-grid {
        width: 100%;
        max-width: 600px;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 20px;
    }

    .trait-card {
        text-align: center;
    }

    .trait-card h4 {
        font-size: 0.9rem;
        margin: 6px 0;
    }

    .trait-card p {
        font-size: 0.75rem;
        line-height: 1.38;
    }

    .why-fox-visual {
        position: relative;
        inset: auto;
        width: 100%;
        height: 310px;
        pointer-events: none;
    }

    .why-fox-visual img {
        position: absolute;
        height: 315px;
        width: auto;
        max-width: 90%;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
    }

    /* ================= RODAPÉ ================= */
    footer {
        height: auto;
        min-height: 175px;
        padding: 28px 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        text-align: center;
    }

    .cta-content {
        flex-direction: column;
        gap: 9px;
    }

    .cta-content img {
        height: 42px;
    }

    .cta-text h2 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .cta-text p {
        font-size: 0.77rem;
        line-height: 1.4;
        margin-top: 5px;
    }

    .btn-start-now {
        margin-top: 0;
        padding: 10px 22px;
    }

    /* ================= CANDIDATO ================= */
    .candidate-main {
        min-height: 0;
        height: auto;
        padding: 28px 24px 40px;
        align-items: flex-start;
    }

    .form-container,
    .interview-container,
    .result-container {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
    }

    .form-container {
        padding: 28px 30px;
    }

    /* Mesmo em tablet, os grupos ficam um embaixo do outro.
       Isso elimina o vazamento de select/input em larguras menores. */
    .row-group {
        flex-direction: column;
        gap: 14px;
    }

    .row-group .form-group,
    .form-group input,
    .form-group select {
        width: 100%;
        min-width: 0;
    }

    .interview-container {
        padding: 28px 30px;
    }

    .result-container {
        padding: 30px;
    }

    .feedback-grid {
        flex-direction: column;
    }

    .result-actions {
        flex-wrap: wrap;
    }

    /* ================= RECRUTADOR ================= */
    .recruiter-main {
        min-height: 0;
        padding: 34px 24px 44px;
        align-items: flex-start;
    }

    .resources-container {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }

    .resources-header {
        margin-bottom: 30px;
    }

    .resources-header h2 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .resources-header p {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .resource-card {
        min-width: 0;
    }
}

/* CELULARES */
@media (max-width: 700px) {

    header {
        padding: 16px 18px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .logo-container,
    nav,
    .header-actions {
        width: 100%;
        flex: none;
    }

    .logo-container {
        justify-content: center;
    }

    .logo-container img {
        width: 165px !important;
    }

    nav ul {
        gap: 9px 14px;
    }

    nav a {
        font-size: 0.76rem;
    }

    .header-actions {
        display: flex;
        justify-content: center;
    }

    .header-actions button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

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

    .hero {
        min-height: 0;
        padding: 42px 18px 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .hero::after {
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        height: 390px;
        border-radius: 0;
        opacity: 0.28;
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-text h2 {
        font-size: clamp(2rem, 10vw, 2.6rem);
    }

    .hero-text p {
        max-width: 100%;
        margin: 15px auto;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .hero-actions {
        width: 100%;
        max-width: 380px;
        flex-direction: column;
        margin: 18px auto 0;
    }

    .hero-actions a {
        width: 100%;
        min-height: 60px;
        flex: none;
    }

    .hero-visual {
        min-height: 355px;
        height: 355px;
        margin-top: 10px;
    }

    .hero-visual > img {
        height: 355px;
        max-width: 92%;
    }

    .benefits-card {
        right: 0;
        top: auto;
        bottom: 12px;
        width: min(235px, 70%);
        padding: 12px 13px;
    }

    .benefits-card li {
        font-size: 0.67rem;
        margin-bottom: 7px;
    }

    .benefits-card li img {
        width: 19px;
        height: 19px;
    }

    /* ================= FEATURES MOBILE ================= */

    .features {
        padding: 48px 18px;
    }

    .features h3 {
        font-size: 1.25rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .feature-card img {
        width: 31px;
        height: 31px;
    }

    .feature-card h4 {
        font-size: 0.92rem;
    }

    .feature-card p {
        font-size: 0.75rem;
    }

    .feature-card:last-child {
        grid-column: 1 / -1;
        max-width: 180px;
        justify-self: center;
    }

    /* ================= WHY FOX MOBILE ================= */

    .why-fox {
        margin: 0;
        padding: 46px 18px 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        border-radius: 0;
        overflow: hidden;
    }

    .why-fox-text {
        width: 100%;
        text-align: center;
    }

    .why-fox-text h3 {
        font-size: 1.3rem;
    }

    .why-fox-text p {
        font-size: 0.84rem;
        line-height: 1.5;
        margin-top: 9px;
    }

    .traits-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
    }

    .trait-card {
        text-align: center;
    }

    .trait-card .icon {
        font-size: 1.65rem;
    }

    .trait-card h4 {
        font-size: 0.88rem;
        margin: 6px 0;
    }

    .trait-card p {
        font-size: 0.73rem;
        line-height: 1.35;
    }

    .why-fox-visual {
        position: relative;
        inset: auto;
        width: 100%;
        height: 275px;
        pointer-events: auto;
    }

    .why-fox-visual img {
        position: absolute;
        height: 295px;
        width: auto;
        max-width: 95%;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
    }

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

    footer {
        min-height: 190px;
        padding: 28px 18px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        text-align: center;
    }

    .cta-content {
        flex-direction: column;
        gap: 10px;
    }

    .cta-content img {
        height: 40px;
    }

    .cta-text h2 {
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .cta-text p {
        font-size: 0.76rem;
        line-height: 1.4;
        margin-top: 5px;
    }

    .btn-start-now {
        margin-top: 0;
        padding: 10px 22px;
    }

    /* ================= CANDIDATO MOBILE ================= */

    .candidate-main {
        min-height: 0;
        padding: 24px 14px 36px;
        align-items: flex-start;
    }

    .form-container,
    .interview-container,
    .result-container {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 12px;
    }

    .form-header {
        margin-bottom: 18px;
    }

    .form-header h2 {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .form-header p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .candidate-form {
        gap: 14px;
    }

    .row-group {
        flex-direction: column;
        gap: 14px;
    }

    .row-group .form-group {
        width: 100%;
    }

    .form-group label {
        font-size: 0.78rem;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        min-width: 0;
        font-size: 0.84rem;
        padding: 10px 11px;
    }

    .btn-submit {
        width: 100%;
        padding: 12px;
    }

    /* ================= ENTREVISTA MOBILE ================= */

    .interview-container {
        gap: 18px;
    }

    .interview-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        align-items: center;
    }

    .interview-header h2 {
        font-size: 1.2rem;
    }

    #question-counter {
        font-size: 0.82rem;
    }

    .question-box h3 {
        font-size: 1rem;
        line-height: 1.45;
    }

    .answer-box textarea {
        width: 100%;
        min-height: 150px;
        box-sizing: border-box;
    }

    /* ================= RESULTADO MOBILE ================= */

    .result-container {
        gap: 22px;
    }

    .result-header h2 {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    .result-header p {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .score-circle {
        width: 125px;
        height: 125px;
        font-size: 2.5rem;
    }

    .feedback-grid {
        flex-direction: column;
        gap: 14px;
    }

    .feedback-box {
        width: 100%;
        padding: 17px;
    }

    .result-actions {
        flex-direction: column;
        gap: 10px;
    }

    .result-actions > * {
        width: 100%;
        text-align: center;
    }

    .btn-secondary,
    .result-actions .btn-submit {
        box-sizing: border-box;
    }

    /* ================= RECRUTADOR MOBILE ================= */

    .recruiter-main {
        min-height: 0;
        padding: 28px 14px 40px;
        align-items: flex-start;
    }

    .resources-header {
        margin-bottom: 28px;
    }

    .resources-header h2 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .resources-header p {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .resource-card {
        min-width: 0;
        padding: 14px 9px;
    }

    .resource-icon {
        font-size: 1.7rem;
        margin-bottom: 7px;
    }

    .resource-card h3 {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .resource-card p {
        font-size: 0.7rem;
        line-height: 1.25;
    }
}

/* CELULARES MUITO PEQUENOS */
@media (max-width: 400px) {

    header {
        padding-left: 14px;
        padding-right: 14px;
    }

    nav ul {
        gap: 8px 10px;
    }

    nav a {
        font-size: 0.72rem;
    }

    .logo-container img {
        width: 155px !important;
    }

    .hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-text h2 {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 0.84rem;
    }

    .hero-visual {
        height: 320px;
        min-height: 320px;
    }

    .hero-visual > img {
        height: 320px;
    }

    .benefits-card {
        width: 205px;
        padding: 11px 12px;
    }

    .benefits-card li {
        font-size: 0.63rem;
    }

    .features {
        padding-left: 14px;
        padding-right: 14px;
    }

    .features-grid {
        gap: 24px 11px;
    }

    .feature-card p {
        font-size: 0.7rem;
    }

    .why-fox {
        padding-left: 14px;
        padding-right: 14px;
    }

    .traits-grid {
        gap: 22px 9px;
    }

    .candidate-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .form-container,
    .interview-container,
    .result-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    footer {
        padding-left: 14px;
        padding-right: 14px;
    }
}
