/* --- Variáveis Globais --- */
:root {
    --primary-navy: #0A192F;    /* Azul Marinho Profundo (Sofisticação) */
    --accent-gold: #D4AF37;     /* Dourado Metálico (Premium) */
    --light-gray: #F8F9FA;      /* Fundo Claro */
    --text-main: #333333;       /* Texto Principal */
    --text-light: #666666;      /* Texto Secundário */
    --white: #FFFFFF;
}

/* --- Reset e Tipografia --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--light-gray);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; transition: 0.3s; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Botões --- */
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-gold:hover {
    background-color: #B59328;
    transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { height: 50px; width: auto; }

.nav-links a {
    color: var(--primary-navy);
    font-weight: 600;
    margin-left: 25px;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--accent-gold); }
.btn-nav { margin-left: 25px; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* --- Seções Gerais --- */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--white); }

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white p { opacity: 0.8; }

.divider-gold {
    width: 60px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 20px 0;
}

/* --- Serviços (Grid de Cards) --- */
#servicos {
    background-color: var(--primary-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-10px); }

.icon-box { font-size: 2.5rem; margin-bottom: 20px; }

.service-card h3 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card ul {
    list-style: none;
    margin: 20px 0;
    color: var(--text-light);
}

.service-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.service-card li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.link-arrow {
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 2px;
}

.link-arrow:hover { color: var(--accent-gold); }

/* --- Footer --- */
footer {
    background-color: #050d1a;
    color: var(--white);
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo-img { height: 40px; margin-bottom: 15px; }

.whatsapp-link {
    display: block;
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
}

/* =========================================================
   ESTILOS DO MODAL E FORMULÁRIO (OMNISHIELD HUB DE COTAÇÃO)
   ========================================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 650px;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    background: none;
    border: none;
}

.close-modal:hover { color: var(--primary-navy); }

.omni-form-container h2 {
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 20px;
}

/* Barra de Progresso */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
    transform: translateY(-50%);
}

.step-indicator {
    width: 35px;
    height: 35px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #666;
    z-index: 1;
    transition: 0.3s;
}

.step-indicator.active {
    background: var(--primary-navy);
    color: var(--white);
    border: 2px solid var(--accent-gold);
}

/* Passos do Formulário */
.form-step {
    display: none;
    animation: fadeIn 0.4s;
}

.form-step.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inputs e Selects */
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Organização de colunas */
.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

/* Botões de Navegação */
.btn-box {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.btn-nav-form {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.btn-nav-form:hover { background-color: #1a2f4c; }
.btn-prev { background-color: #999; }
.btn-prev:hover { background-color: #777; }

/* Loading Spinner */
.spinner {
    display: none;
    width: 15px; height: 15px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s linear infinite;
    margin-left: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards de Escolha do Produto (Passo 1) */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}
@media (min-width: 480px) {
    .choice-grid { grid-template-columns: repeat(3, 1fr); }
}

.choice-card {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.choice-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.choice-card.selected {
    border-color: var(--primary-navy);
    background-color: var(--primary-navy);
    color: var(--white);
}

.choice-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.dynamic-fields { display: none; }
