/* ===== Template Eletricista — Empresário de Resultado =====
   Mobile-first. Cor primária = {{COR_PRIMARIA}} (default azul elétrico).
   Verde = WhatsApp/ação (convenção dos nossos sites). */

:root {
    --primary: {{COR_PRIMARIA}};      /* default: #1565C0 (azul elétrico) */
    --primary-dark: #0D47A1;
    --primary-light: #E3F0FC;
    --wa: #25D366;                    /* verde WhatsApp — ação */
    --wa-dark: #1DA851;
    --emergencia: #E53935;           /* vermelho urgência */
    --text: #1A2230;
    --text-soft: #54607A;
    --surface: #FFFFFF;
    --surface-alt: #F4F7FB;
    --border: #DCE3ED;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(16, 38, 76, .08);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 72px;            /* espaço p/ sticky bar mobile */
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; margin-bottom: 8px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.section-lead { color: var(--text-soft); margin-bottom: 22px; }
section { padding: 44px 0; }

/* ===== Header sticky ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-call {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 50%; background: var(--primary-light); color: var(--primary-dark);
}
.btn-whatsapp {
    background: var(--wa); color: #fff; font-weight: 700;
    padding: 10px 16px; border-radius: 999px; font-size: .95rem;
}

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, var(--primary-light), var(--surface)); padding: 32px 0 40px; }
.hero-grid { display: grid; gap: 24px; }
.badge-emergencia {
    display: inline-block; background: var(--emergencia); color: #fff;
    font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 { font-size: 2.1rem; margin-bottom: 12px; }
.hero h1 .hl { color: var(--primary); }
.hero-sub { font-size: 1.08rem; color: var(--text-soft); margin-bottom: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--text-soft); }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ===== Botões ===== */
.btn-primary {
    background: var(--wa); color: #fff; font-weight: 800;
    padding: 15px 22px; border-radius: 999px; text-align: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .35); transition: transform .12s, box-shadow .12s;
}
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
    background: #fff; color: var(--primary-dark); font-weight: 700;
    padding: 15px 22px; border-radius: 999px; border: 2px solid var(--primary); text-align: center;
}
.btn-lg { font-size: 1.1rem; padding: 17px 28px; }

/* ===== Faixa de confiança ===== */
.trust-bar { background: var(--primary-dark); color: #fff; padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: center; }
.trust-grid strong { display: block; font-size: 1.05rem; }
.trust-grid span { font-size: .82rem; opacity: .85; }

/* ===== Serviços ===== */
.servicos-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.servico-card {
    background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}
.servico-ico { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.servico-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.servico-card p { color: var(--text-soft); font-size: .95rem; }

/* ===== Emergência ===== */
.emergencia { background: var(--emergencia); color: #fff; }
.emergencia-inner { display: grid; gap: 16px; align-items: center; }
.emergencia h2 { color: #fff; }
.emergencia .btn-primary { background: #fff; color: var(--emergencia); box-shadow: none; }

/* ===== Galeria ===== */
.galeria-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.galeria-grid img { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; }

/* ===== Depoimentos ===== */
.depo-grid { display: grid; gap: 14px; }
.depo-card { background: var(--surface-alt); border-left: 4px solid var(--primary); border-radius: 10px; padding: 18px; }
.depo-card p { font-style: italic; margin-bottom: 8px; }
.depo-card cite { font-weight: 700; font-style: normal; color: var(--primary-dark); }

/* ===== CTA final ===== */
.cta-final { background: linear-gradient(180deg, var(--surface), var(--primary-light)); text-align: center; }
.cta-final p { color: var(--text-soft); margin-bottom: 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--text); color: #cdd6e6; text-align: center; padding: 30px 0; font-size: .9rem; }
.footer-nome { font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.site-footer a { color: var(--wa); }
.footer-cnpj { opacity: .6; margin-top: 6px; font-size: .8rem; }

/* ===== Sticky WhatsApp (mobile) ===== */
.sticky-wa {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--wa); color: #fff; font-weight: 800;
    padding: 15px; border-radius: 999px; box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
}

/* ===== Desktop ===== */
@media (min-width: 820px) {
    body { padding-bottom: 0; }
    h2 { font-size: 2rem; }
    .hero { padding: 56px 0; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
    .hero h1 { font-size: 2.8rem; }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .servicos-grid { grid-template-columns: repeat(3, 1fr); }
    .galeria-grid { grid-template-columns: repeat(4, 1fr); }
    .depo-grid { grid-template-columns: repeat(3, 1fr); }
    .emergencia-inner { grid-template-columns: 1fr auto; }
    .sticky-wa { display: none; }   /* no desktop o header já tem o WhatsApp */
}
