/* IT Dynamite — Identidade visual */

:root {
    --cor-fundo: #F4EFEB;
    --cor-texto: #3D261C;
    --cor-secundaria: #2E5A36;
    --cor-cta: #D47A33;
    --cor-cta-hover: #b8631f;
    --fonte-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --largura-maxima: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--fonte-base);
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

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

.botao {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.botao--laranja {
    background-color: var(--cor-cta);
    color: #fff;
}

.botao--laranja:hover {
    background-color: var(--cor-cta-hover);
}

.secao__container,
.header__container,
.footer__container {
    max-width: var(--largura-maxima);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background-color: var(--cor-fundo);
    border-bottom: 1px solid rgba(61, 38, 28, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--cor-texto);
}

.header__logo img {
    border-radius: 50%;
}

.header__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.header__toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--cor-texto);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.header__whatsapp {
    background-color: var(--cor-secundaria);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

/* Hero */
.hero {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--cor-fundo);
}

.hero h1 {
    font-size: 2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* Seções genéricas */
.secao {
    padding: 3.5rem 0;
}

.secao h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

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

.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(61, 38, 28, 0.08);
}

.card h3 {
    color: var(--cor-secundaria);
    margin-top: 0;
}

/* Galeria */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.galeria img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

/* Dicas */
.dicas__lista {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.dicas__lista li {
    background-color: #fff;
    border-left: 4px solid var(--cor-cta);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

/* CTA final */
.cta-final {
    text-align: center;
    background-color: rgba(46, 90, 54, 0.08);
}

/* Contato */
.contato__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contato__lista {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.contato__formulario {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
}

.campo {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.campo label {
    font-weight: 600;
}

.campo input,
.campo textarea {
    padding: 0.65rem;
    border: 1px solid rgba(61, 38, 28, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.campo__erro {
    color: #b3261e;
    font-size: 0.875rem;
}

.alerta {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alerta--sucesso {
    background-color: rgba(46, 90, 54, 0.15);
    color: var(--cor-secundaria);
}

.alerta--erro {
    background-color: rgba(179, 38, 30, 0.1);
    color: #b3261e;
}

/* Honeypot: invisível para humanos, presente para bots */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */
.footer {
    background-color: var(--cor-texto);
    color: var(--cor-fundo);
    padding: 3rem 0 1.5rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer__logomarca {
    max-width: 200px;
    margin-bottom: 0.75rem;
}

.footer h2 {
    font-size: 1.1rem;
    color: var(--cor-cta);
}

.footer a {
    display: block;
    color: var(--cor-fundo);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer__copy {
    text-align: center;
    margin: 2rem 0 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Chat flutuante */
.chat-flutuante {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 200;
}

.chat-flutuante__botao {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--cor-secundaria);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-flutuante__painel {
    position: absolute;
    right: 0;
    bottom: 70px;
    background-color: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    width: 240px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Responsivo */
@media (max-width: 900px) {
    .contato__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header__toggle {
        display: flex;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--cor-fundo);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(61, 38, 28, 0.1);
    }

    .header__nav.aberto {
        display: flex;
    }

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