/*
 * Agência Promo — layout do redesign (substitui Bootstrap, templatemo-art-factory e Owl Carousel).
 * Fonte do texto: Configurações → SITE_FONT_NAME (DM Sans), carregada pelo núcleo.
 * Fonte dos títulos: Plus Jakarta Sans (assets.php → css_external).
 */

:root {
    --navy: #0b1f33;
    --navy-deep: #071523;
    --blue: #0a6fd1;
    --blue-text: #0a5bad;      /* azul para texto sobre branco (contraste AA) */
    --blue-soft: #e3f1ff;
    --sky: #cfe6ff;
    --ground: #f4f7fb;
    --line: #e3eaf2;
    --field: #b7c6d6;
    --text: #3a4a5c;
    --muted: #4a5a6c;
    --coral: #c9343f;          /* CTA: branco sobre ele passa 4.5:1 */
    --coral-dark: #a92833;
    --white: #ffffff;
    --radius: 16px;
    --container: 1200px;
    --display: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
    --body: 'DM Sans', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
}

/* o núcleo envolve o tema em <main class="main-wrapper oh">: sem padding/overflow herdados */
.main-wrapper {
    overflow: visible;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, .display {
    font-family: var(--display);
    color: inherit;
}

a {
    color: var(--blue-text);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Botões ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 14px 26px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--body);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.button-primary {
    background: var(--coral);
    color: var(--white);
}

.button-primary:hover {
    background: var(--coral-dark);
    color: var(--white);
}

.button-light-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.button-light-outline:hover {
    background: var(--white);
    color: var(--blue-text);
}

.button-outline {
    border-color: var(--blue);
    color: var(--blue-text);
    background: transparent;
    padding: 10px 18px;
    min-height: 44px;
}

.button-outline:hover {
    background: var(--blue);
    color: var(--white);
}

/* ---------- Cabeçalho ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a:not(.button) {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
}

.site-nav a:not(.button):hover {
    color: var(--blue-text);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--ground);
    color: var(--navy);
    cursor: pointer;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 20px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(11, 31, 51, 0.08);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a:not(.button) {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-size: 17px;
    }

    .site-nav .button {
        margin-top: 16px;
        align-self: flex-start;
    }
}

/* âncoras não ficam escondidas atrás do cabeçalho fixo */
section[id] {
    scroll-margin-top: 80px;
}

/* ---------- Topo (hero) ---------- */
.hero {
    background: var(--blue);
    color: var(--white);
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    padding-top: clamp(48px, 7vw, 96px);
    padding-bottom: clamp(48px, 7vw, 96px);
}

.hero-text {
    flex: 1 1 420px;
    min-width: 0;
}

.hero-media {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hero-media img {
    width: 100%;
    max-width: 520px;
    display: block;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-text);
}

.hero .eyebrow {
    color: var(--sky);
}

.hero h1 {
    margin: 0 0 20px;
    font-weight: 800;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.hero-lead {
    margin: 0 0 32px;
    max-width: 560px;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.6;
    color: #e8f2ff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Seções ---------- */
.section {
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

.section-alt {
    background: var(--ground);
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}

.section-title {
    margin: 0 0 40px;
    max-width: 720px;
    font-weight: 800;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
}

/* Soluções */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.card h3 {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-cta {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-cta h3 {
    font-size: 22px;
    margin: 0;
}

.card-cta p {
    color: #d5e1ee;
}

.card-cta .button {
    align-self: flex-start;
    margin-top: 8px;
}

/* Como funciona */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 32px;
}

.steps li {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-number {
    font-family: var(--display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    color: var(--blue);
}

.steps h3 {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

/* Quem somos */
.split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}

.split-media {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.split-media img {
    width: 100%;
    max-width: 520px;
    display: block;
}

.split-text {
    flex: 1 1 420px;
    min-width: 0;
}

.split-text .section-title {
    margin-bottom: 20px;
}

.split-text p {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
}

/* ---------- Contato ---------- */
.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.contact-info {
    flex: 1 1 340px;
    min-width: 0;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-info > p {
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.7;
    color: #d5e1ee;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: #7fc4ff;
}

.contact-list a {
    color: var(--white);
}

.contact-card {
    flex: 1 1 440px;
    min-width: 0;
    background: var(--white);
    color: var(--navy);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 40px);
    box-sizing: border-box;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 14px;
    font-weight: 700;
}

.field label .optional {
    font-weight: 500;
    color: #5b6b7d;
}

.field input,
.field textarea {
    font: inherit;
    font-size: 16px;
    color: var(--navy);
    background: var(--white);
    padding: 12px 14px;
    min-height: 48px;
    box-sizing: border-box;
    border: 1.5px solid var(--field);
    border-radius: 10px;
    width: 100%;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(10, 111, 209, 0.25);
    outline-offset: 0;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.form-actions .contact-alt {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.form-actions .contact-alt a {
    font-weight: 700;
}

/* gif de "enviando" dentro do botão: o contact.js o mostra/oculta */
.button .button-loading {
    display: none;
    width: 18px;
    height: 18px;
}

.contact-error:empty {
    display: none;
}

.contact-error .wc_concact_error {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdecee;
    color: #8c1d26;
    font-weight: 500;
}

.contact-sent {
    text-align: center;
    padding: 24px 0;
}

.contact-sent .sent-check {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #e6f6ec;
    color: #1d7a3e;
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-sent h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.contact-sent p {
    margin: 0 0 8px;
    color: var(--text);
}

/* ---------- Rodapé ---------- */
.site-footer {
    background: var(--navy-deep);
    color: #c5d3e2;
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer a {
    color: var(--white);
}

/* Widget de acessibilidade do núcleo: no celular ele vira uma fileira fixa a 65px do topo,
   colada no cabeçalho (72px) deste tema. Desce para logo abaixo dele. */
@media screen and (max-width: 768px) {
    .accessibility-buttons {
        top: 80px !important;
    }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whats-float {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.whats-float:hover {
    transform: scale(1.07);
}

.whats-float:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}

.whats-float svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .whats-float {
        transition: none;
    }

    .whats-float:hover {
        transform: none;
    }
}

@media print {
    .whats-float,
    .nav-toggle {
        display: none;
    }
}
