/* ===================================================
   CSS GLOBAL — MÁQUINA DE ORÇAMENTOS TECNOPISOS (DARK LUXURY)
   =================================================== */

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-pure);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HEADER FLUTUANTE DE VIDRO --- */
header {
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border-light);
    padding: 14px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Botão WhatsApp do Header — Apenas Ícone Grande */
.btn-zap-header {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-zap-header i {
    font-size: 1.75rem;
    color: #10B981;
    transition: transform 0.25s ease, color 0.25s ease;
}

.btn-zap-header:hover {
    background: #10B981;
    border-color: #10B981;
    box-shadow: 0 6px 20px var(--accent-whatsapp-glow);
    transform: scale(1.08);
}

.btn-zap-header:hover i {
    color: #FFFFFF;
}

/* --- SEÇÃO HERO --- */
.hero {
    background: 
        radial-gradient(circle at 50% 20%, rgba(9, 11, 14, 0.6) 0%, rgba(9, 11, 14, 0.92) 80%),
        linear-gradient(180deg, rgba(9, 11, 14, 0.75) 0%, rgba(9, 11, 14, 0.96) 100%),
        var(--bg-hero);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 130px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text-pure);
}

.hero h1 span {
    background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 35px;
    font-weight: 400;
    line-height: 1.6;
}

/* --- CARD DA CALCULADORA (DARK GLASS) --- */
.calculator-box {
    background: var(--bg-card);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), var(--glass-shine);
    border-radius: 24px;
    padding: 32px;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.calc-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.calc-tag {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.calc-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure);
}

/* Campos de Formulário */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
}

.form-group label i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Wrapper de Input e Select */
.input-wrapper,
.select-wrapper {
    position: relative;
    width: 100%;
}

/* Remove setas/spinners feios do input type=number (somente digitação manual) */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none !important;
    margin: 0 !important; 
}
input[type=number] { 
    -moz-appearance: textfield !important; 
    appearance: textfield !important;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-pure);
    outline: none;
    transition: all 0.25s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23cbd5e1' d='M6 8L0 1.33 1.2 0 6 5.33 10.8 0 12 1.33z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.form-group select option {
    background: #11151F;
    color: #F8FAFC;
    padding: 10px;
}

.form-group select optgroup {
    background: #0B0E14;
    color: #94A3B8;
    font-weight: 700;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus {
    background: var(--bg-input-focus);
    border-color: var(--glass-border-focus);
    box-shadow: 0 0 0 3px rgba(226, 232, 240, 0.12);
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

/* Botão de Calcular (Prestige White Button) */
.btn-calc {
    width: 100%;
    background: #FFFFFF;
    color: #090B0E;
    border: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px -4px rgba(255, 255, 255, 0.25);
}

.btn-calc i {
    transition: transform 0.25s ease;
    font-size: 0.9rem;
}

.btn-calc:hover {
    background: #F1F5F9;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(255, 255, 255, 0.4);
}

.btn-calc:hover i {
    transform: translateX(4px);
}

/* --- MODAL DE PROPOSTA EXECUTIVA (DARK GLASS) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.modal-content {
    background: var(--bg-modal);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.85), var(--glass-shine);
    border-radius: 24px;
    padding: 34px 28px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* Header do Modal */
.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.modal-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Painel de Preço do Modal */
.price-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 22px 20px;
    margin-bottom: 18px;
}

.total-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.total-value {
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.installments-row {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34D399;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.installments-row strong {
    font-weight: 700;
    color: #6EE7B7;
}

/* Especificações do Escopo */
.scope-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    text-align: left;
}

.scope-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scope-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Seção de Inclusões */
.bonus-section {
    margin-bottom: 22px;
    text-align: left;
}

.bonus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.badge-pkg {
    background: rgba(255, 255, 255, 0.08);
    color: var(--metallic-silver);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
}

.bonus-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bonus-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.bonus-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bonus-item-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-primary);
}

.bonus-item-title i {
    color: #10B981;
    font-size: 0.9rem;
}

.bonus-item-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.strike {
    text-decoration: line-through;
    color: #64748B;
    font-size: 0.75rem;
}

.bonus-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-included {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-courtesy {
    background: rgba(226, 232, 240, 0.12);
    color: #F8FAFC;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-optional {
    background: rgba(148, 163, 184, 0.1);
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Botão de WhatsApp do Modal */
.btn-action {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    padding: 17px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 28px -5px rgba(16, 185, 129, 0.45);
    text-transform: uppercase;
}

.btn-action i {
    font-size: 1.25rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.6);
    filter: brightness(1.05);
}

/* Rodapé do Modal */
.modal-trust-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.modal-trust-footer i {
    color: #10B981;
}

.disclaimer {
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- SEÇÃO DE DIFERENCIAIS (DARK LUXURY) --- */
.features {
    padding: 90px 0;
    text-align: center;
    background: #090B0E;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.features-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.features h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
}

.features h2 span {
    background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 36px 24px;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-wrapper i {
    font-size: 1.3rem;
    color: var(--metallic-silver);
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-pure);
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- FOOTER --- */
footer {
    background: #06080A;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 30px 0;
    font-size: 0.82rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand img {
    height: 32px;
    width: auto;
    opacity: 0.85;
}

.footer-text {
    text-align: right;
    color: var(--text-muted);
}

/* --- ANIMAÇÕES --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* --- RESPONSIVIDADE MOBILE --- */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 105px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .calculator-box {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .modal-content {
        padding: 26px 18px;
        border-radius: 20px;
    }

    .total-value {
        font-size: 2.2rem;
    }

    .btn-action {
        font-size: 0.88rem;
        padding: 15px 18px;
    }

    .footer-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-text {
        text-align: center;
    }
}
