:root {
    /* Paleta VIP Vistorias (Baseada na Logo: Preto e Amarelo) */
    --primary: #000000;
    /* Preto absoluto */
    --primary-light: #222222;
    --brand-yellow: #FFCC00;
    /* Amarelo Vibrante da Logo */
    --brand-yellow-hover: #E6B800;
    --brand-yellow-icon: #EAB308;
    /* Amarelo com melhor contraste para ícones em fundo claro */
    --accent: #25D366;
    /* Verde WhatsApp / Conversão (Mantido intocável) */
    --accent-hover: #1EBE5B;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --danger: #EF4444;
    /* Vermelho para problemas/riscos */
    --warning: #F59E0B;

    /* Espaçamentos e Bordas */
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

/* RESET MÍNIMO E PERFORMANCE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fontes de Sistema: 0 requests HTTP, carregamento imediato, evita FOIT/FOUT */
html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* LAYOUT & CONTAINERS */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* 20px garantidos para não colar nas bordas do telemóvel */
    padding-left: 20px;
    padding-right: 20px;
}

/* Espaçamento global padronizado exatamente em 50px no topo e fundo de cada secção */
section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* TIPOGRAFIA */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
}

/* TODOS OS TÍTULOS H2 com 50px de respiro acima e abaixo */
h2 {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 0.900rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

/* Destaque tipo "Marca-texto" para a nova paleta Preto/Amarelo */
.text-primary {
    background: var(--brand-yellow);
    color: #000000;
    padding: 0 6px;
    border-radius: 4px;
}

/* BOTÕES (CTAs) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-whatsapp {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-primary {
    background-color: var(--brand-yellow);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--brand-yellow-hover);
}

/* HEADER */
header {
    padding: 20px 0;
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* HERO SECTION */
.hero {
    padding-top: 40px;
    padding-bottom: 40px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E2E8F0 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--brand-yellow);
    color: #000000;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.trust-stars {
    color: #F59E0B;
    letter-spacing: 2px;
}

/* PROBLEMA / DOR */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    /* Distância de 50px do fundo da secção para nada ficar colado */
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--brand-yellow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card-danger {
    border-top-color: var(--danger);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* COMO FUNCIONA (STEPS) */
.step-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 50px auto;
    /* 50px na parte inferior para separar do botão */
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--brand-yellow);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* CHECKLIST / BENEFÍCIOS */
.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    /* Garante respiro na base */
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--radius-md);
}

.check-item svg {
    color: var(--brand-yellow-icon);
    flex-shrink: 0;
}

/* PROVA SOCIAL */
.testimonial {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.client-info>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #CBD5E1;
    flex-shrink: 0;
    object-fit: cover;
}

.client-name {
    font-weight: 700;
    color: var(--primary);
}

.client-city {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SEO LOCAL - COBERTURA */
.coverage {
    background: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
    color: var(--white);
    text-align: center;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    margin: 50px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.coverage h2 {
    color: var(--white);
    margin-top: 0;
    /* Exceção dentro da caixa azul para não empurrar o conteúdo interno */
    margin-bottom: 20px;
}

.coverage p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.city-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.city-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.city-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.coverage-seo {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ - ZERO JS */
.faq-item {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-item:last-of-type {
    margin-bottom: 20px;
    /* Garante distância na última pergunta FAQ */
}

.faq-item summary {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--brand-yellow-icon);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    background: #000000;
    color: var(--white);
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

.footer-text {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* WHATSAPP FAB (Floating Action Button) */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.fab-whatsapp svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    header .btn {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .btn {
        width: 100%;
    }

    h1 {
        font-size: 1.5rem;
    }

    /* O barato pode sair muito caro - 2 colunas */
    section:nth-of-type(2) .cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    section:nth-of-type(2) .card {
        padding: 20px 12px;
    }

    section:nth-of-type(2) .card-icon {
        margin-bottom: 12px;
    }

    section:nth-of-type(2) .card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    section:nth-of-type(2) .card p {
        font-size: 0.85rem;
    }

    /* Como funciona - 2 colunas */
    .step-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 12px;
        gap: 10px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .step h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .step p {
        font-size: 0.85rem;
    }

    .checklist {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .check-item {
        padding: 12px 10px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .check-item svg {
        width: 16px;
        height: 16px;
    }

    .coverage {
        padding: 40px 20px;
    }

    footer {
        padding-bottom: 20px;
    }

    /* Evita sobreposição do botão WhatsApp no mobile */
}