/*
Theme Name: Remoto Theme
Theme URI: https://remotoagencia.com.br
Author: Remoto Agência
Author URI: https://remotoagencia.com.br
Description: Tema de alta performance e conversão para a Remoto Agência, otimizado para Landing Pages e SEO.
Version: 1.1.0
Text Domain: remoto-theme
*/

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    --primary-navy: #152131;
    --dark-navy: #0D1520;
    --accent-magenta: #E5097F;
    --conversion-green: #28A745;
    --text-white: #FFFFFF;
    --text-dark: #212936;
    --text-muted: #57606C;
    --bg-light: #F8F9FA;
    --border-color: #E2E6EB;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Neutralizar margens indesejadas do tema padrão do WordPress */
.site-main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-main article {
    margin: 0;
    padding: 0;
}

/* Container centralizado e fluido com margens laterais seguras */
.lp-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.85rem 1rem;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(21, 33, 49, 0.08);
    box-shadow: 0 4px 18px rgba(13, 21, 32, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1180px;
    min-height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.brand-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(190px, 42vw);
    max-height: 46px;
    object-fit: contain;
}

.brand-logo span {
    color: var(--accent-magenta);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.15rem;
    border: 0;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn-whatsapp {
    color: var(--text-white);
    background: var(--conversion-green);
}

.btn-whatsapp:hover {
    color: var(--text-white);
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(40, 167, 69, 0.24);
}


/* WhatsApp: botão somente com ícone SVG */
.whatsapp-icon-only {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border-radius: 14px;
    background: transparent;
    color: var(--conversion-green);
    box-shadow: none;
}

.whatsapp-icon-only svg {
    display: block;
    width: 29px;
    height: 29px;
}

.whatsapp-icon-only:hover {
    color: #218838;
    background: rgba(40, 167, 69, 0.09);
    transform: translateY(-1px);
    box-shadow: none;
}

.whatsapp-icon-only:focus-visible {
    outline: 3px solid var(--conversion-green);
    outline-offset: 3px;
}


.btn:focus-visible,
.brand-logo:focus-visible {
    outline: 3px solid #FF5CB0;
    outline-offset: 4px;
}

.btn-outline-magenta {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent-magenta);
}

.btn-outline-magenta:hover {
    background-color: var(--accent-magenta);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline-solut {
    background-color: transparent;
    color: var(--accent-magenta);
    border: 2px solid var(--accent-magenta);
}

.btn-outline-solut:hover {
    background-color: var(--accent-magenta);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Structural Components for Landing Pages (Mobile First) */
.lp-hero {
    color: var(--text-white);
    padding: 4rem 0;
    text-align: left;
    width: 100%;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(229, 9, 127, 0.12),
            transparent 42%
        ),
        var(--primary-navy);

}

.badge-tag {
    display: inline-block;
    background-color: rgba(229, 9, 127, 0.15);
    color: #FF5CB0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.lp-hero h1 {
    max-width: 900px;
    margin-bottom: 1.5rem;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.lp-hero p.sub-headline {
    max-width: 680px;
    margin-bottom: 2rem;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.75;
    opacity: 0.92;
}

.lp-hero .cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sections */
.lp-section {
    width: 100%;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.lp-section-alt {
    background-color: var(--bg-light);
}

.lp-section h2 {
    max-width: 800px;
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--primary-navy);
}

.lp-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.lp-card {
    height: 100%;
    background: #FFFFFF;
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
    display: flex;
    flex-direction: column;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(21, 33, 49, 0.045);
}

.lp-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

.lp-card p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.75;
}

.lp-card p strong {
    color: var(--primary-navy);
    font-weight: 650;
}

/* =========================================
   FAQ ACCORDION — LANDING PAGE
========================================= */
#duvidas .lp-container {
    max-width: 900px;
}

#duvidas h2 {
    margin-bottom: 2rem;
}

.faq-list {
    width: 100%;
    border-top: 1px solid var(--border-color);
}

#duvidas .faq-item {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

#duvidas .faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 0;
    color: var(--primary-navy);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

#duvidas .faq-item summary::-webkit-details-marker {
    display: none;
}

#duvidas .faq-item summary::marker {
    content: "";
}

#duvidas .faq-item summary span {
    flex: 1;
    min-width: 0;
}

#duvidas .faq-icon {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--accent-magenta);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 200ms ease;
}

#duvidas .faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

#duvidas .faq-item summary:focus-visible {
    outline: 2px solid var(--accent-magenta);
    outline-offset: 5px;
    border-radius: 3px;
}

#duvidas .faq-answer {
    padding: 0 2.5rem 1.5rem 0;
}

#duvidas .faq-answer p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

@media (max-width: 480px) {
    #duvidas .faq-item summary {
        gap: 0.75rem;
        padding: 1.2rem 0;
    }

    #duvidas .faq-answer {
        padding-right: 0;
        padding-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #duvidas .faq-icon {
        transition: none;
    }
}

.faq-item h3 {
    margin: 0 0 0.75rem;
    color: var(--primary-navy);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -0.015em;
}

.faq-item p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background-color: var(--dark-navy);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .lp-card:hover {
        transform: translateY(-3px);
        border-color: rgba(229, 9, 127, 0.28);
        box-shadow: 0 12px 28px rgba(21, 33, 49, 0.085);
    }
}

/* Responsiveness Desktop */
@media (min-width: 768px) {
    .faq-item {
        padding: 1.75rem 0;
    }

    .site-header {
        padding: 0.9rem 1.5rem;
    }
    .brand-logo-image {
        max-width: 210px;
        max-height: 50px;
    }
    .brand-logo {
        font-size: 1.5rem;
    }
    .btn {
        min-height: 48px;
        padding: 0.8rem 0.8rem;
    }
    .lp-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .lp-hero { padding: clamp(4rem, 8vw, 7rem) 0; }
    .lp-hero h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
    .lp-hero p.sub-headline {
        max-width: 680px;
        font-size: clamp(1rem, 1.5vw, 1.125rem);
    }
    .lp-hero .cta-group {
        flex-direction: row;
        align-items: center;
    }
    .lp-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
    .lp-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
    .lp-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .lp-card {
        padding: 2rem;
    }
}


@media (max-width: 380px) {
    .site-header {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .brand-logo-image {
        max-width: 38vw;
        max-height: 38px;
    }

    .btn {
        min-height: 42px;
        padding: 0.65rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-card {
        transition: none;
    }

    .lp-card:hover {
        transform: none;
    }
}


/* Textos de apoio antes e depois dos cards */
.lp-intro-note {
    margin-top: 2rem;
    color: var(--primary-navy);
    font-size: 1.0625rem;
    font-weight: 500;
}

.lp-testimonial-author {
    margin-top: 1rem;
    color: var(--primary-navy);
    font-weight: 600;
}

/* Títulos de cards com SVG consistente */
.lp-card-title {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 650;
    color: var(--primary-navy);
}

.lp-card-title span {
    flex: 1;
    min-width: 0;
}

.lp-icon {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 0.08em;
    fill: none;
    stroke: var(--accent-magenta);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-icon-danger { stroke: var(--text-muted); }

/* CTA final em fundo escuro */
.lp-final-cta {
    background: var(--primary-navy);
    color: var(--text-white);
    text-align: center;
}

.lp-final-cta h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-white);
}

.lp-final-cta-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}



/* Faixa de título — transição para o hero */
.entry-header {
    position: relative;
    width: 100%;
    background:
        radial-gradient(
            ellipse at 90% 100%,
            rgba(229, 9, 127, 0.10),
            transparent 48%
        ),
        linear-gradient(
            180deg,
            #20283B 0%,
            var(--primary-navy) 100%
        );
    border: 0;
}

.entry-header-container {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.entry-title {
    margin: 0;
    padding-left: 0.85rem;
    border-left: 2px solid #FF5CB0;
    color: #B9C8E8;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

@media (max-width: 480px) {
    .entry-header-container {
        min-height: 60px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .entry-title {
        padding-left: 0.7rem;
        font-size: 1rem;
    }
}
