:root {
    --cor-fundo: #f7f5f0;
    --cor-texto: #173439;
    --cor-texto-suave: #5f7476;
    --cor-escura: #1d3034;
    --cor-contato: #2d464a;
    --cor-bege: #e6e0d7;
    --cor-placeholder: #ddd7cc;
    --cor-clara: #f1ece4;
    --cor-dourada: #c49d67;
    --cor-borda: #c7cfcd;

    --fonte-titulo: "Source Serif 4", serif;
    --fonte-texto: "Hanken Grotesk", sans-serif;

    --largura-site: 1010px;
}

/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: var(--fonte-texto);
    font-size: 15px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-top: 0;
}

.container {
    width: min(calc(100% - 32px), var(--largura-site));
    margin-inline: auto;
}

h1,
h2 {
    margin-top: 0;
    color: var(--cor-texto);
    font-family: var(--fonte-titulo);
    font-weight: 500;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h2 {
    margin-bottom: 24px;
    font-size: 29px;
    line-height: 1.2;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    background: var(--cor-contato);
    color: var(--cor-clara);
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.button:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid var(--cor-dourada);
    outline-offset: 4px;
}

/* Cabeçalho */

.header {
    padding-top: 25px;
}

.header-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
}

.header-content > :first-child {
    min-width: 0;
}

.logo {
    font-family: var(--fonte-titulo);
    font-size: 23px;
    font-weight: 500;
}

.subtitle {
    color: var(--cor-texto-suave);
    font-size: 13px;
}

/* Hero — mobile first */

.hero {
    padding: 52px 0 64px;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.hero-text {
    order: 1;
    width: 100%;
}

.hero-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

.hero-destaque {
    margin-bottom: 22px !important;
}

.hero .button {
    max-width: 340px;
    margin-top: 8px;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 18px;
    color: var(--cor-texto-suave);
    font-size: 13px;
    line-height: 1.6;
}

.hero-image {
    order: 2;
    align-self: center;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    
}

/* Molduras de imagem */

.image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cor-texto);
    background: var(--cor-fundo);
    padding: 10px;
}

.image-frame img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.image-placeholder {
    position: absolute;
    inset: 10px;
    z-index: 1;
    display: grid;
    place-items: center;
    background: var(--cor-placeholder);
    color: var(--cor-texto-suave);
    padding: 24px;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

/* Seção escura */

.situacoes {
    background: var(--cor-escura);
    color: var(--cor-clara);
    padding: 58px 0 62px;
}

.situacoes-content {
    padding: 0;
}

.situacoes h2 {
    margin-bottom: 34px;
    color: var(--cor-clara);
}

.situacoes p {
    max-width: 600px;
    margin-bottom: 22px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
}

.situacoes blockquote {
    max-width: 670px;
    margin: 40px 0 0;
    border-left: 1px solid var(--cor-dourada);
    padding-left: 20px;
    color: var(--cor-clara);
    font-family: var(--fonte-titulo);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
}

/* Processo */

.processo {
    padding: 72px 0;
}

.processo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 54px;
}

.como-trabalho p {
    margin-bottom: 19px;
    font-size: 16px;
    line-height: 1.72;
}

.como-comeca h2 {
    margin-bottom: 27px;
}

.passo {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0;
    margin-bottom: 24px;
}

.passo:last-child {
    margin-bottom: 0;
}

.passo span {
    color: var(--cor-texto-suave);
    font-family: var(--fonte-titulo);
    font-size: 16px;
}

.passo p {
    margin: 0;
    font-size: 16px;
    line-height: 1.72;
}

/* Sobre — empilhado no celular */

.sobre {
    position: relative;
    margin: 0;
    background: var(--cor-bege);
    padding: 64px 0 72px;
}

.sobre-grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.sobre-foto {
    position: relative;
    align-self: center;
    width: 100%;
    max-width: 330px;
    aspect-ratio: 4 / 5;
    margin: 0;
}

.sobre-foto.image-frame,
.sobre-foto .image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
}

.sobre-texto {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.sobre-texto h2 {
    margin-bottom: 8px;
}

.crp {
    margin-bottom: 26px !important;
    color: var(--cor-texto-suave);
    font-size: 13px;
}

.sobre-texto p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.7;
}

.sobre-texto p:last-child {
    margin-bottom: 0;
}

/* FAQ */

.faq {
    padding: 75px 0;
}

.faq-container {
    max-width: 1010px;
}

.faq h2 {
    margin-bottom: 30px;
}

.faq-list {
    max-width: 600px;
}

.faq-item {
    border-bottom: 1px solid var(--cor-borda);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border: 0;
    background: transparent;
    padding: 20px 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--cor-texto-suave);
    font-size: 17px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.25s ease,
        opacity 0.2s ease;
}

.faq-answer > p {
    overflow: hidden;
    margin: 0;
    padding-right: 24px;
    font-size: 15px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-item.active .faq-answer > p {
    padding-bottom: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Contato */

.contato {
    background: var(--cor-contato);
    color: var(--cor-clara);
    padding: 72px 0 76px;
}

.contato-content {
    max-width: 1010px;
}

.contato h2 {
    margin-bottom: 27px;
    color: var(--cor-clara);
}

.contato p {
    max-width: 590px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

.button-light {
    max-width: 340px;
    margin-top: 12px;
    background: var(--cor-clara);
    color: var(--cor-texto);
}

/* Rodapé */

.footer {
    background: var(--cor-escura);
    color: var(--cor-texto-suave);
    padding: 40px 0 30px;
}

.footer-content {
    max-width: 1010px;
}

.footer p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.65;
}

.footer-name {
    color: var(--cor-clara);
    font-weight: 500;
}

.footer a {
    border-bottom: 1px solid currentColor;
}

/* Tablet */

@media (min-width: 700px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 48px), var(--largura-site));
    }

    .header {
        padding-top: 34px;
    }
    .header-content {
        align-items: center;
        gap: 24px;
    }

    .logo {
        font-size: 25px;
    }

    .subtitle {
        font-size: 14px;
    }

    .hero {
        padding: 76px 0 84px;
    }

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 31px;
    }

    .hero-text p {
        font-size: 17px;
    }

    .hero .button,
    .button-light {
        width: auto;
        min-width: 195px;
    }

    .hero-image {
        max-width: 500px;
    }

    .situacoes {
        padding: 70px 0;
    }

    .situacoes blockquote {
        font-size: 29px;
    }

    .processo {
        padding: 90px 0;
    }

    .sobre {
        padding: 84px 0 90px;
    }

    .sobre-foto {
        max-width: 360px;
    }

    .sobre-texto {
        max-width: 680px;
    }

    .faq {
        padding: 90px 0;
    }

    .contato {
        padding: 90px 0;
    }
}

/* Desktop */

@media (min-width: 960px) {
    .hero {
        min-height: 690px;
        padding: 110px 0 90px;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
        align-items: center;
        gap: 78px;
    }

    .hero-text {
        max-width: 620px;
    }

    h1 {
        margin-bottom: 30px;
        font-size: 58px;
        line-height: 1.15;
    }

    .hero-text p {
        max-width: 590px;
        margin-bottom: 26px;
        font-size: 18px;
        line-height: 1.75;
    }

    .hero-destaque {
        margin-bottom: 28px !important;
    }

    .hero .button {
        margin-top: 17px;
    }

    .hero-info {
        margin-top: 23px;
        font-size: 14px;
    }

    .hero-image {
        width: 100%;
        max-width: none;
        aspect-ratio: 1.3 / 1;
    }

    .situacoes {
        padding: 50px 0 20px;
    }

    .situacoes-content {
        max-width: 1000px;
        padding: 0 55px;
    }

    .situacoes h2 {
        margin-bottom: 40px;
    }

    .situacoes p {
        margin-bottom: 24px;
        font-size: 17px;
    }

    .situacoes blockquote {
        margin-top: 50px;
        padding-left: 24px;
        font-size: 32px;
        line-height: 1.25;
    }

    .processo {
        min-height: 655px;
        padding: 112px 0 95px;
    }

    .processo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 92px;
    }

    .como-trabalho p,
    .passo p {
        font-size: 17px;
    }

    .passo span {
        font-size: 17px;
    }

    /* Foto atravessando a divisão apenas no desktop */
    .sobre {
        min-height: 645px;
        margin-top: 34px;
        padding: 0 0 96px;
    }

    .sobre-grid {
        display: grid;
        grid-template-columns: 380px minmax(0, 1fr);
        align-items: center;
        gap: 64px;
    }

    .sobre-foto {
        width: 380px;
        max-width: 100%;
        margin-top: -34px;
        align-self: start;
        aspect-ratio: 0.73 / 1;
    }

    .sobre-foto.image-frame,
    .sobre-foto .image-frame {
        aspect-ratio: 0.73 / 1;
    }

    .sobre-texto {
        max-width: 540px;
        padding-top: 88px;
    }

    .crp {
        margin-bottom: 34px !important;
        font-size: 14px;
    }

    .sobre-texto p {
        margin-bottom: 21px;
        font-size: 17px;
        line-height: 1.72;
    }

    .faq {
        min-height: 660px;
        padding: 114px 0 110px;
    }

    .faq h2 {
        margin-bottom: 48px;
    }

    .faq-question {
        padding: 22px 0;
        font-size: 17px;
    }

    .contato {
        padding: 107px 0 111px;
    }

    .contato h2 {
        margin-bottom: 31px;
    }

    .button-light {
        min-width: 196px;
        margin-top: 17px;
    }

    .footer {
        padding: 48px 0 31px;
    }

    .footer p {
        font-size: 14px;
        line-height: 1.6;
    }
}


.whatsapp-flutuante {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 56px;
    height: 56px;
    border-radius: 50%;

    background: #1f6f5f;
    color: #ffffff;

    box-shadow: 0 8px 24px rgba(23, 52, 57, 0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.whatsapp-flutuante svg {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
}

.whatsapp-texto {
    display: none;
}

.whatsapp-flutuante:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 28px rgba(23, 52, 57, 0.32);
}

.whatsapp-flutuante:focus-visible {
    outline: 3px solid var(--cor-dourada);
    outline-offset: 4px;
}

/* Evita conflito com a barra inferior do iPhone */
@supports (bottom: env(safe-area-inset-bottom)) {
    .whatsapp-flutuante {
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 700px) {
    .whatsapp-flutuante {
        right: 24px;
        bottom: 24px;

        width: auto;
        height: 54px;
        border-radius: 4px;
        padding: 0 20px;
    }

    .whatsapp-texto {
        display: inline;
        font-size: 14px;
        font-weight: 500;
    }

    .whatsapp-flutuante svg {
        width: 25px;
        height: 25px;
    }
}

.botao-acessibilidade {
    align-self: start;
    justify-self: end;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    border: 1px solid var(--cor-borda);
    border-radius: 4px;

    background: transparent;
    color: var(--cor-texto);
    padding: 9px 11px;

    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.botao-acessibilidade:hover {
    background: rgba(23, 52, 57, 0.07);
}

.botao-acessibilidade:active {
    transform: translateY(1px);
}

.botao-acessibilidade:focus-visible {
    outline: 3px solid var(--cor-dourada);
    outline-offset: 3px;
}

.texto-acessibilidade {
    display: none;
}

/* Alto contraste */

body.alto-contraste {
    --cor-fundo: #0d1719;
    --cor-texto: #ffffff;
    --cor-texto-suave: #dce6e5;
    --cor-escura: #000000;
    --cor-contato: #102a2d;
    --cor-bege: #182628;
    --cor-placeholder: #263638;
    --cor-clara: #ffffff;
    --cor-dourada: #ffd166;
    --cor-borda: #8fa1a3;
}

body.alto-contraste .button {
    border: 2px solid #ffffff;
}

body.alto-contraste .button-light {
    background: #ffffff;
    color: #000000;
}

body.alto-contraste .image-frame {
    border-color: #ffffff;
}

body.alto-contraste .faq-question,
body.alto-contraste .subtitle,
body.alto-contraste .hero-info,
body.alto-contraste .crp,
body.alto-contraste .footer {
    color: var(--cor-texto);
}

body.alto-contraste .whatsapp-flutuante {
    background: #006b57;
    color: #ffffff;
}

body.alto-contraste .botao-acessibilidade {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

body.alto-contraste .botao-acessibilidade:hover {
    background: #f0f0f0;
}

/* Mostra o texto do botão quando houver espaço suficiente */
@media (min-width: 480px) {
    .botao-acessibilidade {
        padding-inline: 14px;
        font-size: 14px;
    }

    .texto-acessibilidade {
        display: inline;
    }
}

@media (min-width: 700px) {
    .botao-acessibilidade {
        min-height: 46px;
        padding-inline: 16px;
    }
}