/* ==========================================================================
   DESIGN SYSTEM - RESTRUTURAÇÃO MÁXIMA: GRID DESKTOP 4x3 & IMAGEM 4:3
   ========================================================================== */
:root {
    --primary-blue: #0b1a30;
    --secondary-blue: #142a4a;
    --accent-orange: #ff7b00;
    --accent-orange-hover: #e06c00;
    --whatsapp-green: #25d366;
    --whatsapp-green-hover: #1ebd59;
    --text-dark: #2d3748;
    --text-light: #f7fafc;
    --bg-light: #f8f9fa;
    --modal-bg: rgba(11, 26, 48, 0.85);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; width: 100%; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background-color: #ffffff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 4%; }
.highlight { color: var(--accent-orange); }
.text-center { text-align: center; }
.tag-title { color: var(--accent-orange); font-weight: bold; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 10px; }

button { font-family: 'Inter', sans-serif; cursor: pointer; border: none; background: none; }
.btn-primary { display: inline-block; background: var(--accent-orange); color: #fff; padding: 15px 30px; font-weight: 800; border-radius: 8px; transition: 0.3s ease; font-size: 1.05rem; box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4); }
.btn-primary:hover { background: var(--accent-orange-hover); transform: translateY(-2px); }
.btn-outline-orange { border: 2px solid var(--accent-orange); color: var(--text-light); padding: 10px 22px; font-weight: 700; border-radius: 50px; transition: 0.3s; }
.btn-outline-orange:hover { background: var(--accent-orange); color: #fff; }

.main-header { background: var(--primary-blue); padding: 12px 0; position: sticky; top: 0; z-index: 100; border-bottom: 2px solid rgba(255, 255, 255, 0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { max-height: 45px; }
.desktop-nav a { color: var(--text-light); text-decoration: none; margin: 0 12px; font-weight: 600; font-size: 0.88rem; transition: 0.2s; }
.desktop-nav a:hover { color: var(--accent-orange); }

.hero { position: relative; background: linear-gradient(135deg, var(--primary-blue), #1e3a61); padding: 80px 0; color: #fff; min-height: 65vh; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.badge { display: inline-block; background: rgba(255, 255, 255, 0.1); border-left: 4px solid var(--accent-orange); padding: 4px 10px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.hero h1 { font-size: 2.5rem; margin: 15px 0; line-height: 1.1; font-weight: 900; }
.hero p { font-size: 1.05rem; margin-bottom: 25px; color: #cbd5e1; }
.trust-strip { display: flex; gap: 15px; margin-top: 25px; font-weight: 600; font-size: 0.85rem; color: #cbd5e1; flex-wrap: wrap; }

.about-section, .features-section { padding: 70px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { color: var(--primary-blue); font-size: 1.8rem; margin-bottom: 15px; }
.img-responsive { width: 100%; height: auto; border-radius: 8px; }

.services-section { background: var(--secondary-blue); padding: 30px 0; color: #fff; }
.section-header { text-align: center; margin-bottom: 45px; }
.section-header h2 { font-size: 2.1rem; margin-bottom: 8px; font-weight: 800; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: #fff; color: var(--text-dark); padding: 0; border-radius: 10px; border-top: 4px solid var(--accent-orange); display: flex; flex-direction: column; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); }
.image-wrapper { width: 100%; position: relative; overflow: hidden; background-color: #f1f5f9; }
.service-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.3s ease; }
.service-card:hover .service-img { transform: scale(1.04); }
.service-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.service-content h4 { color: var(--primary-blue); font-size: 1.1rem; margin-bottom: 8px; font-weight: 800; line-height: 1.2; }
.service-content p { font-size: 0.88rem; color: #4a5568; margin-bottom: 18px; flex-grow: 1; line-height: 1.4; }

.btn-card-action { display: block; width: 100%; background-color: var(--whatsapp-green); color: #ffffff; text-align: center; padding: 11px 15px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 3px 8px rgba(37, 211, 102, 0.15); transition: 0.2s ease-in-out; margin-top: auto; }
.btn-card-action:hover { background-color: var(--whatsapp-green-hover); color: #ffffff; box-shadow: 0 5px 12px rgba(37, 211, 102, 0.3); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-box { text-align: center; padding: 25px 15px; border-radius: 8px; background: var(--bg-light); border: 1px solid #e2e8f0; }
.feature-box h3 { font-size: 1.1rem; color: var(--primary-blue); margin-bottom: 8px; }
.feature-box p { font-size: 0.88rem; color: #4a5568; }

.main-footer { background: var(--primary-blue); padding: 50px 0 20px; color: #fff; border-top: 5px solid var(--accent-orange); }
.footer-cta { display: flex; justify-content: space-between; align-items: center; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 30px; }
.btn-outline-white { border: 2px solid #fff; color: #fff; padding: 10px 24px; border-radius: 50px; font-weight: bold; transition: 0.3s; }
.btn-outline-white:hover { background: #fff; color: var(--primary-blue); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-contact p { margin-bottom: 8px; color: #cbd5e1; font-size: 0.9rem; }
.social-links { margin-top: 15px; display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { background: rgba(255, 255, 255, 0.08); color: #fff; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: 0.2s ease-in-out; display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.1); }
.social-btn:hover { background: var(--accent-orange); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3); }
.seo-col h4, .footer-map h4 { margin-bottom: 12px; color: var(--accent-orange); font-size: 1rem; }
.seo-col ul { list-style: none; }
.seo-col ul li a { color: #94a3b8; text-decoration: none; font-size: 0.88rem; display: block; padding: 5px 0; transition: 0.2s; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.seo-col ul li a:hover { color: var(--accent-orange); padding-left: 5px; }
.footer-bottom { text-align: center; margin-top: 25px; color: #4a5568; font-size: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 15px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--modal-bg); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease-in-out; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: #ffffff; width: 92%; max-width: 400px; padding: 30px 20px; border-radius: 10px; position: relative; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); transform: translateY(-15px); transition: transform 0.25s ease-in-out; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 8px; right: 15px; font-size: 1.8rem; color: #a0aec0; transition: 0.2s; }
.close-modal:hover { color: var(--primary-blue); }
.modal-header { margin-bottom: 20px; text-align: center; }
.modal-header h3 { color: var(--primary-blue); font-size: 1.3rem; margin-bottom: 5px; font-weight: 800; }
.modal-header p { font-size: 0.85rem; color: #718096; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 4px; text-transform: uppercase; }
.form-group input { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 0.95rem; }
.form-group input:focus { outline: none; border-color: var(--accent-orange); }
.btn-submit-crm { width: 100%; background: var(--whatsapp-green); color: #fff; padding: 14px; border-radius: 6px; font-size: 0.95rem; font-weight: 800; transition: 0.2s; }
.btn-submit-crm:hover { background: var(--whatsapp-green-hover); }
.modal-footer-info { font-size: 0.72rem; color: #a0aec0; text-align: center; margin-top: 12px; }
.float-whatsapp { position: fixed; bottom: 20px; right: 87px; background: var(--whatsapp-green); color: #fff; padding: 12px 22px; border-radius: 50px; font-weight: 800; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); z-index: 90; transition: transform 0.2s; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; } }
@media (max-width: 768px) { .desktop-nav { display: none; } .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } .hero { padding: 50px 0; text-align: center; } .hero h1 { font-size: 2rem; } .trust-strip { justify-content: center; } .about-grid { grid-template-columns: 1fr; gap: 25px; text-align: center; } .footer-cta { flex-direction: column; gap: 15px; text-align: center; } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; gap: 25px; padding: 0 2%; } .service-card { border-radius: 12px; } .section-header h2 { font-size: 1.6rem; } .container { padding: 0 6%; } }

.bairros-section { padding: 60px 20px; background-color: #f8fafc; text-align: center; }
.bairros-container { max-width: 1200px; margin: 0 auto; }
.bairros-section h2 { color: #1e293b; font-size: 2rem; margin-bottom: 10px; }
.bairros-subtitulo { color: #64748b; font-size: 1rem; margin-bottom: 40px; }
.bairros-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.bairros-cidade { background: #ffffff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.bairros-cidade h3 { color: #2b6cb0; font-size: 1.3rem; margin-bottom: 20px; text-align: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.bairros-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bairro-tag { background-color: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; padding: 8px 16px; border-radius: 30px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s ease; }
.bairro-tag:hover, .bairro-tag:active { background-color: #25D366; color: #ffffff; border-color: #25D366; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3); }

/* Botão de Emergência - Estilo de Alta Conversão */
.btn-emergency {
    display: inline-block;
    background: #d32f2f; /* Vermelho de alerta */
    color: #fff;
    padding: 15px 30px;
    font-weight: 800;
    border-radius: 8px;
    transition: 0.3s ease;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    margin-right: 15px; /* Espaçamento entre os botões */
    border: 2px solid #fff;
}

.btn-emergency:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

/* Ajuste responsivo para o botão no mobile */
@media (max-width: 480px) {
    .btn-emergency {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}