/* --- VARIABLES & RESET --- */
:root {
    --primary: #0A2540; 
    --primary-light: #183C66;
    --accent: #00BFA6; 
    --accent-light: #E5F8F5;
    --wpp-green: #25D366;
    --wpp-green-hover: #20BA5A;
    --text-main: #334155;
    --text-muted: #64748B;
    --bg-main: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-green: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
    --radius-md: 12px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- TYPOGRAPHY (Mobile Default) --- */
h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }

/* --- BUTTONS (Mobile Default) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%; /* Full width on mobile */
}

.btn-whatsapp { background-color: var(--wpp-green); color: white; box-shadow: var(--shadow-green); }
.btn-whatsapp:hover { background-color: var(--wpp-green-hover); transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.5); }
.btn-whatsapp-outline { background-color: transparent; color: var(--wpp-green); border: 2px solid var(--wpp-green); }
.btn-whatsapp-outline:hover { background-color: var(--wpp-green); color: white; }
.btn-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: white; }
.btn-whatsapp-large { background-color: var(--wpp-green); color: white; font-size: 1.125rem; padding: 18px 40px; box-shadow: var(--shadow-green); }
.pulse { animation: pulse-animation 2s infinite; }

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000; padding: 16px 0; transition: all 0.3s ease;
}
.navbar.scrolled { padding: 12px 0; box-shadow: var(--shadow-sm); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 400; color: var(--primary); }
.logo i { color: var(--accent); font-size: 1.5rem; }
.logo strong { font-weight: 800; }
.nav-content .btn-whatsapp-outline { width: auto; padding: 8px 16px; font-size: 0.85rem; }

/* --- HERO SECTION (Centralized & Mobile Default) --- */
.hero {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-main) 0%, #E8F0F8 100%);
    overflow: hidden;
}
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-text {
    width: 100%;
    max-width: 800px;
    text-align: center; /* Texts centralized */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.badge {
    display: inline-block; background: var(--accent-light); color: #009985;
    padding: 6px 14px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; margin-bottom: 20px;
}
.hero-text h1 { margin-bottom: 20px; }
.hero-text p { font-size: 1rem; margin-bottom: 32px; }
.hero-actions {
    display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%;
}
.secure-note { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.secure-note i { color: var(--accent); }
.hero-shape { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; }
.hero-shape svg { display: block; width: calc(100% + 1.3px); height: 80px; }

/* --- SERVICES --- */
.services { padding: 60px 0; background: var(--bg-white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-header p { font-size: 1rem; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-card {
    background: var(--bg-main); padding: 30px 20px; border-radius: var(--radius-md);
    text-align: center; transition: all 0.3s ease; border: 1px solid var(--border-color);
}
.icon-wrapper {
    width: 56px; height: 56px; background: var(--accent-light); color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; }

/* --- DIFFERENTIAL --- */
.differential { padding: 60px 0; background: var(--bg-main); }
.diff-container { display: flex; flex-direction: column; gap: 40px; }
.diff-image {
    width: 100%; height: 300px; border-radius: var(--radius-lg);
    background: url('assets/hero_sofa.png') center/cover no-repeat;
    position: relative; box-shadow: var(--shadow-lg);
}
.diff-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top right, rgba(10,37,64,0.3), transparent); border-radius: var(--radius-lg);
}
.diff-text h2 { margin-bottom: 16px; }
.diff-text > p { margin-bottom: 30px; font-size: 1rem; }
.diff-list { display: flex; flex-direction: column; gap: 20px; }
.diff-list li { display: flex; gap: 16px; align-items: flex-start; }
.diff-list i { font-size: 24px; color: var(--accent); background: var(--bg-white); padding: 10px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.diff-list strong { display: block; color: var(--primary); font-size: 1.05rem; margin-bottom: 4px; }
.diff-list span { font-size: 0.9rem; }

/* --- BEFORE & AFTER SLIDER --- */
.before-after { padding: 60px 0; background: var(--bg-white); }
.ba-slider-container { max-width: 800px; margin: 0 auto; }
.ba-slider { position: relative; width: 100%; height: 300px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.ba-slider img { width: 100vw; height: 100%; object-fit: cover; display: block; max-width: 800px; }
.img-after, .img-before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.img-before { width: 50%; overflow: hidden; z-index: 2; border-right: 3px solid white; }
.ba-slider .label { position: absolute; top: 10px; padding: 4px 12px; border-radius: 50px; background: rgba(0,0,0,0.6); color: white; font-weight: 600; font-size: 0.75rem; backdrop-filter: blur(4px); }
.label.before { left: 10px; }
.label.after { right: 10px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: white; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ba-handle i { position: absolute; background: white; color: var(--primary); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: var(--shadow-md); }
.ba-handle i.ph-caret-left { transform: translateX(-12px); }
.ba-handle i.ph-caret-right { transform: translateX(12px); }
.ba-range { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 4; opacity: 0; cursor: ew-resize; }

/* --- HOW IT WORKS --- */
.how-it-works { padding: 60px 0; background: var(--primary); color: white; }
.how-it-works .section-header h2, .how-it-works .section-header p { color: white; }
.steps-grid { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 40px; }
.step-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 30px 20px; border-radius: var(--radius-lg); text-align: center; position: relative; backdrop-filter: blur(10px); width: 100%; }
.step-number { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0, 191, 166, 0.4); }
.step-icon { font-size: 40px; color: var(--accent); margin: 10px 0 16px; }
.step-card h3 { color: white; margin-bottom: 8px; }
.step-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.step-connector { color: rgba(255,255,255,0.2); font-size: 32px; transform: rotate(90deg); }

/* --- TESTIMONIALS --- */
.testimonials { padding: 60px 0; background: var(--bg-main); }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testi-card { background: white; padding: 30px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 16px; display: flex; gap: 4px; }
.quote { font-size: 0.95rem; font-style: italic; color: var(--text-main); margin-bottom: 20px; }
.author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1rem; }
.author h4 { font-size: 0.95rem; margin-bottom: 2px; }
.author span { font-size: 0.8rem; color: var(--text-muted); }

/* --- FAQ --- */
.faq-section { padding: 60px 0; background: white; }

.faq-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 30px; 
    max-width: 800px; /* Limita a largura para o texto não ficar muito esticado */
    margin: 0 auto; 
}

.faq-container h2 { 
    text-align: center; 
    width: 100%; 
    margin-bottom: 10px; 
}

.faq-accordion { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    width: 100%; 
}

.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 16px 20px; background: white; border: none; font-size: 1rem; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.faq-question i { font-size: 1.1rem; transition: transform 0.3s; }
.faq-item.active .faq-question { background: var(--bg-main); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: var(--bg-main); }
.faq-answer p { padding: 0 20px 20px; font-size: 0.95rem; }

/* --- FINAL CTA --- */
.final-cta { padding: 40px 0; background: var(--bg-main); }
.cta-banner { background: var(--primary); border-radius: var(--radius-lg); padding: 40px 20px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { color: white; font-size: 1.8rem; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 30px; }
.cta-bg-shape { position: absolute; top: -50%; right: -10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,191,166,0.2) 0%, transparent 70%); border-radius: 50%; z-index: 1; }

/* --- FOOTER --- */
.footer { background: white; border-top: 1px solid var(--border-color); padding-top: 40px; }
.footer-content { display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: 0.95rem; }
.footer-info { display: flex; flex-direction: column; gap: 30px; }
.info-group h4 { margin-bottom: 12px; font-size: 1.05rem; }
.info-group p, .info-group a { display: flex; align-items: center; gap: 8px; color: var(--text-muted); margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom { background: var(--bg-main); padding: 20px 0; text-align: center; border-top: 1px solid var(--border-color); }
.footer-bottom p { font-size: 0.85rem; }

/* --- FLOATING WPP --- */
.floating-wpp { position: fixed; bottom: 20px; right: 20px; background: var(--wpp-green); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--shadow-lg); z-index: 1000; transition: all 0.3s ease; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* --- ANIMATIONS & REVEALS --- */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: all 0.8s ease; }
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }

/* =========================================================================
   MEDIA QUERIES - PROGRESSIVE ENHANCEMENT (Min-Width Strategy)
   ========================================================================= */

/* TABLETS (Min 768px) */
@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    .btn { padding: 14px 28px; font-size: 1rem; width: auto; }
    .hero { padding: 140px 0 80px; }
    .hero-text p { font-size: 1.125rem; }
    
    .services-grid, .testi-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
    .services { padding: 100px 0; }
    .service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--accent-light); background: var(--bg-white); }
    .service-card:hover .icon-wrapper { background: var(--accent); color: white; }
    
    .diff-image { height: 400px; }
    .ba-slider { height: 450px; }
    
    .steps-grid { flex-direction: row; justify-content: space-between; }
    .step-connector { transform: rotate(0deg); }
    
    .cta-banner { padding: 60px; }
    .cta-content h2 { font-size: 2.5rem; }
    .cta-content p { font-size: 1.1rem; }
    
    .footer-content { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
    .footer-info { flex-direction: row; justify-content: flex-end; gap: 60px; flex: 3; }
    .footer-brand { flex: 2; min-width: 300px; }
    
    .floating-wpp { bottom: 30px; right: 30px; width: 60px; height: 60px; font-size: 32px; }
    .floating-wpp:hover { transform: scale(1.1); background: var(--wpp-green-hover); }
}

/* DESKTOPS (Min 992px) */
@media (min-width: 992px) {
    .diff-container { flex-direction: row; align-items: center; gap: 60px; }
    .diff-image, .diff-text { flex: 1; }
    .diff-image { height: 500px; }
    
    .faq-text { flex: 1; }
    .faq-question:hover { background: var(--bg-main); }
    
    .ba-slider img { width: 100%; max-width: none; }
    .img-before img { width: 800px; }
    
    .logo { font-size: 1.5rem; }
    .logo i { font-size: 1.8rem; }
}

/* --- COMO FUNCIONA (6 PASSOS) --- */
.how-it-works-steps {
    padding: 60px 0;
    background: var(--bg-main); /* Fundo cinza claro para destacar da calculadora */
}

.how-it-works-steps .section-header {
    margin-bottom: 40px;
}

.steps-6-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px 20px; /* Espaço maior na vertical para a bolinha do número não encostar no card de cima */
    margin-top: 20px;
}

.step-card-mini {
    background: white;
    border: 1px solid var(--border-color);
    padding: 30px 20px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.step-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 191, 166, 0.4);
    z-index: 2;
}

.step-icon {
    font-size: 36px;
    color: var(--primary);
    margin: 10px 0 16px;
    background: var(--accent-light);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.step-card-mini p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* =========================================================================
   CALCULADORA E AGENDAMENTO (MOBILE FIRST)
   ========================================================================= */
.calculator-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.calc-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.3s;
}

.calc-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.calc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.calc-card-header span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
}

.calc-card-header .icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 24px;
    flex-shrink: 0;
}

.calc-service {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: white;
    outline: none;
}

.calc-service:focus {
    border-color: var(--accent);
}

.calc-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-main);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
    transition: background 0.2s;
}

.qty-btn:hover { background: #E2E8F0; }
.qty-btn:disabled { color: #CBD5E1; cursor: not-allowed; }

.qty-input {
    width: 100%;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    pointer-events: none;
}

/* Schedule & Summary Area */
.schedule-summary-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--bg-main);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.schedule-box, .summary-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-box h3, .summary-box h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.form-control {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.form-control:focus { border-color: var(--accent); }

.schedule-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.total-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.total-price span { font-size: 1rem; color: var(--text-muted); }
.total-price strong { font-size: 2.5rem; color: var(--primary); line-height: 1; margin-top: 8px; }

#btn-enviar-wpp:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
}

.error-msg {
    color: #EF4444;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

/* MEDIA QUERIES PARA A CALCULADORA */
@media (min-width: 768px) {
    .calculator-section { padding: 100px 0; }
    .calc-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .schedule-summary-wrapper { flex-direction: row; padding: 40px; gap: 60px; }
    .schedule-box { flex: 1; }
    .summary-box { flex: 1; }
}

@media (min-width: 992px) {
    .calc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* TABLETS (Min 768px) */
@media (min-width: 768px) {
    /* ... seu código existente do 768px ... */
    
    .how-it-works-steps { padding: 80px 0; }
    .steps-6-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
}

/* DESKTOPS (Min 992px) */
@media (min-width: 992px) {
    /* ... seu código existente do 992px ... */
    
    .steps-6-grid { grid-template-columns: repeat(3, 1fr); }
}