/* ==========================================================================
   DESIGN SYSTEM - RESTRUTURAÇÃO MÁXIMA: GRID DESKTOP 4x3 & IMAGEM 4:3 (v3.0)
   ========================================================================== */
: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;
}

/* Blindagem contra estouros e barras horizontais no mobile */
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;
}

/* Grid Responsiva Controlada por Padding Percentual de Segurança */
.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;
}

/* BOTÕES */
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;
}

/* HEADER */
.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 */
.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;
}

/* SEÇÕES BRANCAS */
.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;
}

/* ==========================================================================
   MALHA DE GRID TÁTICA: CONFIGURAÇÃO EXATA 4 COLUNAS X 3 LINHAS
   ========================================================================== */
.services-section {
    background: var(--secondary-blue);
    padding: 70px 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;
    /* Força estritamente 4 colunas simétricas no Desktop */
    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);
}

/* CONTROLE DE PROPORÇÃO DA IMAGEM EM PROPORÇÃO EXATA DE CINEMA / INSTAGRAM LANDSCAPE (4:3) */
.image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
}

.service-img {
    width: 100%;
    /* Força a proporção matemática horizontal perfeita 4 por 3 */
    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;
}

/* Botão Block Padrão WhatsApp de Altíssima Conversão */
.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);
}

/* DIFERENCIAIS */
.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-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 123, 0, 0.08);
    color: var(--accent-orange);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.feature-box h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 0.88rem;
    color: #4a5568;
}

/* FOOTER */
.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: 8px;
}

.social-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: 0.2s;
}

.social-btn:hover {
    background: var(--accent-orange);
}

.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 CRM */
.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: 20px;
    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;
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVOS ADAPTADOS (v3.0 - SEM COMER BORDAS E ESPAÇADO)
   ========================================================================== */
@media (max-width: 1024px) {

    /* 3 colunas para telas médias/tablets em paisagem */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    /* 2 colunas para tablets em vertical */
    .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) {

    /* 1 coluna para celular com espaçamento perfeito nas bordas laterais */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        /* Espaço generoso entre os cards no mobile como no mockup */
        padding: 0 2%;
        /* Margem interna de segurança extra */
    }

    .service-card {
        border-radius: 12px;
        /* Cantos arredondados visíveis e elegantes no mobile */
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 6%;
    }

    /* Aumenta a margem lateral no mobile para não prender as bordas */
}