/* ===== Fontes (alojadas localmente) ===== */
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url(fonts/inter-latin.woff2) format('woff2');
}
@font-face {
    font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(fonts/outfit-latin.woff2) format('woff2');
}

/* ===== Design tokens ===== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-soft: #EFF6FF;
    --primary-border: #BFDBFE;
    --secondary: #0F172A;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #334155;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --accent: #10B981;
    --danger: #DC2626;
    --hl: #3B82F6; /* cor de destaque das ilustrações */
    --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo { font-family: 'Outfit', sans-serif; color: var(--secondary); }

section[id] { scroll-margin-top: 80px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Icons */
.ico {
    width: 1.25em; height: 1.25em;
    fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.ico-fill { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; }

/* Accessibility helpers */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 8px;
    background: var(--primary); color: #fff; padding: 10px 16px;
    border-radius: 8px; z-index: 300; text-decoration: none;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    position: fixed; width: 100%; top: 0; z-index: 100;
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1280px; margin: 0 auto;
    padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.5px; text-decoration: none; }
.logo span { color: var(--primary); }

.nav-links { display: flex; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-main);
    font-weight: 500; margin-left: 28px; font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.nav-links .nav-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--secondary); }
.nav-links .nav-phone .ico { color: var(--primary); }

.menu-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; padding: 10px;
    flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--secondary); border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn-primary, .btn-primary-outline, .btn-secondary, .btn-ghost {
    padding: 14px 28px; border-radius: 10px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; font-family: 'Inter', sans-serif; font-size: 1rem;
}
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    background: var(--primary-dark); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-primary-outline {
    background: transparent; color: var(--primary) !important;
    border: 2px solid var(--primary); padding: 10px 22px;
}
.btn-primary-outline:hover { background: var(--primary); color: #fff !important; }
.btn-secondary { background: var(--border); color: var(--text-main); }
.btn-secondary:hover { background: #CBD5E1; }
.btn-ghost {
    background: rgba(255,255,255,0.1); color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ===== Hero ===== */
.hero {
    margin-top: 70px; position: relative; overflow: hidden;
    min-height: min(86vh, 820px); display: flex; align-items: center;
    padding: 72px 0; background: #F1F5F9;
}
.hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 60% 0%;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(248,250,252,0.97) 0%, rgba(248,250,252,0.92) 34%,
        rgba(248,250,252,0.45) 54%, rgba(248,250,252,0) 70%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.hero-content { max-width: 600px; }
.trust-badges-top { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-white); color: var(--text-main);
    padding: 6px 14px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 500;
    border: 1px solid var(--border); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.badge .ico { color: var(--primary); }
.hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.3rem);
    line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px;
}
.hero p { font-size: 1.15rem; margin-bottom: 30px; color: var(--text-main); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost {
    background: var(--bg-white); color: var(--secondary);
    border: 1.5px solid var(--border);
}
.hero .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero-trust {
    margin-top: 30px; display: flex; gap: 12px 24px; flex-wrap: wrap;
    list-style: none; font-size: 0.93rem; color: var(--text-main);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ico { color: var(--accent); stroke-width: 2.4; }

/* ===== Sections ===== */
.section-title {
    text-align: center; font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center; color: var(--text-muted); margin: 0 auto 56px;
    max-width: 680px; font-size: 1.1rem;
}
.how-it-works, .pricing, .faq-section, .quote-section { padding: 100px 0; }
.how-it-works, .faq-section { background: var(--bg-white); }

/* Steps */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px;
}
.step-card {
    background: var(--bg-light); padding: 40px 30px; border-radius: 20px;
    text-align: center; border: 1px solid var(--border);
}
.step-number {
    width: 56px; height: 56px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700; margin: 0 auto 20px; font-family: 'Outfit';
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}
.step-card h3 { margin-bottom: 12px; font-size: 1.35rem; }

/* Pricing */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px; margin-bottom: 40px;
}
.price-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 20px; padding: 16px 16px 28px; text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.price-card h3 { font-size: 1.1rem; margin-top: 4px; }
.price-card .room { margin-bottom: 14px; }
.price-card:hover {
    transform: translateY(-6px); border-color: var(--primary-border);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}
.price-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: var(--primary-soft); color: var(--primary);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.price-icon .ico { width: 28px; height: 28px; }
.price-value {
    font-family: 'Outfit'; font-size: 2.6rem; font-weight: 700;
    color: var(--secondary); line-height: 1.1; margin: 12px 0 8px;
}
.price-value span { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; margin-left: 2px; }
.price-note { color: var(--text-muted); font-size: 0.95rem; }

.modifiers {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 20px; padding: 36px;
}
.modifiers > h3 { font-size: 1.4rem; margin-bottom: 24px; }
.modifiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.modifiers h4 { font-size: 1rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }
.modifiers ul { list-style: none; }
.modifiers li {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.modifiers li:last-child { border-bottom: 0; }
.modifiers li strong { color: var(--primary); white-space: nowrap; }
.example {
    margin-top: 24px; padding: 16px 20px; background: var(--primary-soft);
    border-radius: 12px; font-size: 0.95rem;
}

/* ===== Quote form ===== */
.quote-section { background: var(--secondary); }
.quote-container {
    max-width: 760px; margin: 0 auto; background: var(--bg-white);
    border-radius: 24px; overflow: hidden; color: var(--text-main);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.quote-header {
    background: var(--bg-light); padding: 40px 50px 28px;
    border-bottom: 1px solid var(--border);
}
.quote-header h2 { margin-bottom: 8px; font-size: 2rem; }
.quote-header p { color: var(--text-muted); }
.progress-bar {
    width: 100%; height: 8px; background: var(--border);
    border-radius: 10px; margin-top: 24px; overflow: hidden;
}
.progress {
    height: 100%; background: var(--primary); width: 20%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 10px;
}
.quote-header .step-counter { margin-top: 10px; font-size: 0.85rem; }

.quote-form { padding: 32px 50px 50px; }

.live-estimate {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: var(--primary-soft); border: 1px solid var(--primary-border);
    border-radius: 12px; padding: 12px 18px; margin-bottom: 28px; font-size: 0.95rem;
}
.live-estimate[hidden] { display: none; }
.live-estimate strong { font-family: 'Outfit'; font-size: 1.25rem; color: var(--primary); }

.form-step { display: none; animation: slideIn 0.4s ease forwards; }
.form-step.active { display: block; }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}
.form-step.shake { animation: shake 0.4s; }

.form-step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step-desc { color: var(--text-muted); margin-bottom: 24px; }
.mt-4 { margin-top: 40px; }

.options-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.option-card {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border: 2px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    transition: all 0.2s ease; background: var(--bg-white);
}
.option-card:hover { border-color: var(--primary-border); background: var(--primary-soft); }
.option-card input { width: 22px; height: 22px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.option-card:has(input:checked) {
    border-color: var(--primary); background: var(--primary-soft);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.opt-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.opt-text { display: flex; flex-direction: column; }
.opt-text strong { color: var(--secondary); font-weight: 600; }
.opt-text small { color: var(--text-muted); font-size: 0.85rem; }
.option-card:has(input:checked) .opt-text strong { color: var(--primary-dark); }

.input-group { margin-bottom: 20px; }
.input-group label {
    display: block; margin-bottom: 8px; font-weight: 500;
    color: var(--secondary); font-size: 0.95rem;
}
.input-group input, .input-group select {
    width: 100%; padding: 15px 18px; border: 1.5px solid var(--border);
    border-radius: 12px; font-size: 1rem; font-family: 'Inter';
    background: var(--bg-white); transition: all 0.3s ease;
}
.input-group input:focus, .input-group select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.input-group.invalid input, .input-group.invalid select { border-color: var(--danger); }

.number-input-wrapper { position: relative; max-width: 300px; margin-bottom: 28px; }
.number-input-wrapper input { padding-right: 60px; font-size: 1.3rem; font-weight: 600; }
.unit-suffix {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-weight: 500; font-size: 1.2rem; pointer-events: none;
}

.area-range { width: 100%; accent-color: var(--primary); height: 6px; cursor: pointer; }
.range-scale {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; color: var(--text-muted); margin-top: 6px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.full-width { grid-column: 1 / -1; }

.estimate-box {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border: 2px solid var(--primary-border); padding: 30px;
    border-radius: var(--radius); text-align: center; margin-bottom: 40px;
}
.estimate-box h4 {
    color: var(--text-muted); font-size: 0.95rem; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 10px; font-weight: 500;
}
.estimate-value {
    font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 700; color: var(--primary);
    font-family: 'Outfit'; line-height: 1.1; margin-bottom: 10px;
}
.estimate-disclaimer { font-size: 0.85rem; color: var(--text-muted); }

.consent {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 0.88rem; color: var(--text-muted); cursor: pointer; margin-top: 4px;
}
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }

.form-error {
    margin-top: 20px; padding: 12px 16px; border-radius: 10px;
    background: #FEF2F2; color: var(--danger); font-size: 0.92rem; border: 1px solid #FECACA;
}
.form-error[hidden] { display: none; }

.form-actions {
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border);
}
.form-actions .btn-primary { margin-left: auto; }

.form-success { text-align: center; padding: 30px 0; animation: slideIn 0.5s ease; }
.success-icon {
    width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
    background: #D1FAE5; color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.success-icon .ico { width: 36px; height: 36px; stroke-width: 2.4; }
.form-success h3 { font-size: 1.9rem; color: #059669; margin-bottom: 12px; }
.form-success p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== Ilustração da divisão (parte destacada via variáveis CSS) ===== */
.room { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.rm-line { stroke: #475569; stroke-width: 1.1; stroke-linejoin: round; }
.rm-ceiling { fill: var(--hl-ceiling, #E8EDF3); }
.rm-walls { fill: var(--hl-walls, #E8EDF3); }
.rm-floor { fill: #D5DCE5; }
.rm-trim { fill: var(--hl-trim, #F8FAFC); }
.rm-door { fill: var(--hl-door, #FFFFFF); }
.rm-window { fill: var(--hl-window, #FFFFFF); }
.rm-glass { fill: #DBEAFE; }
.rm-knob { fill: #475569; }

/* ===== Cartões de superfícies (passo 1) ===== */
.surface-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.surface-card {
    position: relative; flex: 0 0 calc(33.333% - 10px);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 8px 8px 14px; border: 2px solid var(--border); border-radius: var(--radius);
    background: var(--bg-white); cursor: pointer; transition: all 0.2s ease;
}
.surface-card:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.surface-card input {
    position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.surface-card .room { margin-bottom: 10px; }
.surface-name { font-weight: 600; color: var(--secondary); line-height: 1.25; padding: 0 4px; }
.surface-card small { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.surface-card:has(input:checked) {
    border-color: var(--primary); background: var(--primary-soft);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}
.surface-card:has(input:checked)::after {
    content: '✓'; position: absolute; top: 14px; right: 14px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}
.surface-card:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ===== Limpeza e proteção (fotografias) ===== */
.method { padding: 100px 0; background: var(--bg-white); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.section-title-left { text-align: left; }
.method-lead { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 24px; }
.check-list { list-style: none; margin-bottom: 32px; }
.check-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: 0; }
.check-list .ico { color: var(--accent); stroke-width: 2.4; }
.method-images { position: relative; padding-bottom: 14%; }
.method-images figure {
    margin: 0; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}
.method-images img { display: block; width: 100%; height: auto; }
.method-images .img-a { width: 86%; }
.method-images .img-b {
    position: absolute; right: 0; bottom: 0; width: 52%;
    border: 6px solid #fff;
}

/* ===== FAQ (acordeão) ===== */
:root { interpolate-size: allow-keywords; }
.faq-section { background: var(--bg-white); }
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.faq-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.faq-intro > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }
.faq-help {
    background: var(--secondary); color: #CBD5E1; border-radius: var(--radius); padding: 26px;
}
.faq-help strong { display: block; color: #fff; font-family: 'Outfit', sans-serif; font-size: 1.2rem; margin-bottom: 6px; }
.faq-help p { font-size: 0.95rem; margin-bottom: 18px; }
.faq-help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.faq-help-actions a {
    flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; text-decoration: none;
    background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.2s;
}
.faq-help-actions a:hover { background: rgba(255,255,255,0.16); }
.faq-help-actions .faq-wa { background: #25D366; border-color: #25D366; }
.faq-help-actions .faq-wa:hover { background: #1EBE5A; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-light); border: 1px solid var(--border); border-radius: 14px;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.faq-item:hover { border-color: var(--primary-border); }
.faq-item[open] {
    background: var(--bg-white); border-color: var(--primary-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    gap: 18px; padding: 20px 22px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.05rem; line-height: 1.4; font-weight: 600; }
.faq-item[open] summary h3 { color: var(--primary-dark); }
.faq-icon {
    position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary-soft); transition: background 0.25s, transform 0.3s;
}
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
    background: var(--primary); border-radius: 2px; transform: translate(-50%, -50%);
    transition: transform 0.3s, background 0.25s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--primary); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 22px 22px; color: var(--text-main); }
.faq-answer p + p { margin-top: 10px; }
.faq-answer a { color: var(--primary); font-weight: 500; }
.faq-item::details-content {
    height: 0; overflow: clip;
    transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
}
.faq-item[open]::details-content { height: auto; }

/* ===== Footer ===== */
footer { background: #020617; color: #fff; padding: 72px 0 28px; }
.footer-content {
    display: grid; grid-template-columns: 1.2fr repeat(5, 1fr);
    gap: 40px; margin-bottom: 48px;
}
.footer-logo { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-logo span { color: #60A5FA; }
.footer-brand p:not(.footer-logo) { color: #94A3B8; margin-top: 14px; max-width: 340px; }
.footer-col h2 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { color: #94A3B8; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-col li a { display: inline-flex; align-items: center; gap: 8px; }
.footer-col .ico, .footer-col .ico-fill { width: 1.05em; height: 1.05em; color: #60A5FA; }
.footer-col a { color: #CBD5E1; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-zones { color: #94A3B8; line-height: 1.9; }
.footer-alvara { color: #CBD5E1 !important; font-weight: 600; font-size: 0.9rem; }
.footer-bottom {
    text-align: center; color: #64748B; border-top: 1px solid #1E293B;
    padding-top: 24px; font-size: 0.875rem;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #CBD5E1; }

/* ===== WhatsApp ===== */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 150;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s;
}
.whatsapp-float[hidden] { display: none; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }


/* ===== Garantias ===== */
.guarantees { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 28px 0; }
.guarantees-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guarantee { display: flex; align-items: center; gap: 14px; }
.guarantee > .ico {
    width: 46px; height: 46px; padding: 11px; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary);
}
.guarantee strong { display: block; color: var(--secondary); font-size: 0.95rem; line-height: 1.3; }
.guarantee span { display: block; color: var(--text-muted); font-size: 0.85rem; }

/* ===== Botões WhatsApp ===== */
.hero .btn-wa-ghost { gap: 8px; }
.hero .btn-wa-ghost .ico-fill { color: #25D366; }
.btn-wa {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 15px 20px; border-radius: 12px;
    background: #25D366; color: #fff; font-weight: 600; text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.btn-wa:hover { background: #1EBE5A; transform: translateY(-1px); }
.or-divider {
    display: flex; align-items: center; gap: 14px; margin: 28px 0 24px;
    color: var(--text-muted); font-size: 0.88rem;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.success-tip { margin: 24px 0 14px; font-size: 0.95rem !important; }
.form-success .btn-wa { max-width: 380px; margin: 0 auto; }
.consent a, .form-error a { color: var(--primary); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Quem somos ===== */
.about { padding: 100px 0; background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12); }
.about-photo img { display: block; width: 100%; height: auto; }
.about-lead { font-size: 1.1rem; margin-bottom: 28px; }
.about-facts { list-style: none; display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.about-facts li {
    flex: 1 1 120px; background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 18px;
}
.about-facts strong { display: block; font-family: 'Outfit'; font-size: 1.9rem; color: var(--primary); line-height: 1.1; }
.about-facts span { font-size: 0.88rem; color: var(--text-muted); }
.about-sign { color: var(--text-muted); }
.about-sign strong { color: var(--secondary); }

/* ===== Trabalhos (antes / depois) ===== */
.works { padding: 100px 0; background: var(--bg-white); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px; }
.work-card h3 { margin: 14px 0 4px; font-size: 1.2rem; }
.work-card p { color: var(--text-muted); }
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-pair figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; }
.work-pair img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.work-pair figcaption {
    position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 20px;
    background: rgba(15, 23, 42, 0.75); color: #fff; font-size: 0.8rem; font-weight: 600;
}

/* ===== Avaliações ===== */
.reviews { padding: 100px 0; background: var(--bg-white); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.review-card { margin: 0; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars svg { width: 18px; height: 18px; fill: #F59E0B; }
.review-card blockquote { margin-bottom: 14px; }
.review-card figcaption { color: var(--text-muted); font-size: 0.9rem; }
.reviews-more { text-align: center; margin-top: 32px; }
.reviews-more a { color: var(--primary); font-weight: 600; }

/* ===== CTA final ===== */
.final-cta { padding: 80px 0; background: var(--primary-soft); border-top: 1px solid var(--primary-border); }
.final-cta-inner { text-align: center; }
.final-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 10px; }
.final-cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.1rem; }
.final-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final-cta .btn-ghost { background: var(--bg-white); color: var(--secondary); border: 1.5px solid var(--border); gap: 8px; }
.final-cta .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }


/* ===== Páginas interiores ===== */
.page-hero {
    margin-top: 78px; padding: 56px 0 48px;
    background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: #94A3B8; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -0.8px; max-width: 860px; margin-bottom: 16px; }
.page-hero .lead { font-size: 1.15rem; max-width: 760px; color: var(--text-main); }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero .btn-ghost { background: var(--bg-white); color: var(--secondary); border: 1.5px solid var(--border); gap: 8px; }
.page-hero .btn-ghost .ico-fill { color: #25D366; }
.page-hero .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.updated { margin-top: 18px; font-size: 0.85rem; color: var(--text-muted); }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 64px 20px 96px; align-items: start; }
.page-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.aside-card.cta { background: var(--secondary); border-color: var(--secondary); color: #CBD5E1; }
.aside-card.cta strong { display: block; font-family: 'Outfit', sans-serif; color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.aside-card.cta p { font-size: 0.95rem; margin-bottom: 18px; }
.aside-card .btn-primary, .aside-card .btn-wa { width: 100%; }
.aside-card .btn-wa { margin-top: 10px; }
.aside-card h2 { font-size: 1rem; margin-bottom: 12px; }
.aside-card ul { list-style: none; }
.aside-card li + li { margin-top: 8px; }
.aside-card li a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; }
.aside-card li a:hover { color: var(--primary); }

/* Texto longo */
.prose { font-size: 1.05rem; color: var(--text-main); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); line-height: 1.25; margin-top: 48px; letter-spacing: -0.3px; }
.prose h3 { font-size: 1.2rem; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--primary); font-weight: 500; }
.prose strong { color: var(--secondary); }
.prose .faq-list { margin-top: 20px; }

.answer-box {
    background: var(--bg-white); border: 1px solid var(--primary-border); border-left: 5px solid var(--primary);
    border-radius: 12px; padding: 20px 24px;
}
.answer-box .label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.answer-box p { margin: 0; }
.callout { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 18px 22px; font-size: 0.98rem; }
.callout strong { color: #92400E; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-white); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 520px; }
.table-wrap caption { text-align: left; padding: 14px 16px 0; font-size: 0.88rem; color: var(--text-muted); caption-side: bottom; padding-bottom: 14px; }
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table-wrap thead th { background: var(--bg-light); font-family: 'Outfit', sans-serif; color: var(--secondary); font-weight: 600; }
.table-wrap tbody tr:last-child td, .table-wrap tbody tr:last-child th { border-bottom: 0; }
.table-wrap td.num, .table-wrap th.num { text-align: right; white-space: nowrap; }
.table-wrap tbody th { font-weight: 600; color: var(--secondary); }

.steps-list { list-style: none; padding: 0 !important; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding-left: 52px; min-height: 36px; }
.steps-list li + li { margin-top: 18px; }
.steps-list li::before {
    content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary); font-weight: 700; font-family: 'Outfit', sans-serif;
    display: flex; align-items: center; justify-content: center;
}

/* Grelhas de cartões (serviços, zonas, guias) */
.cards-section { padding: 100px 0; }
.cards-section.alt { background: var(--bg-white); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.link-card {
    display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text-main);
    background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.cards-section.alt .link-card { background: var(--bg-light); }
.link-card:hover { transform: translateY(-4px); border-color: var(--primary-border); box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07); }
.link-card .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 6px; }
.link-card h3 { font-size: 1.2rem; }
.link-card p { color: var(--text-muted); font-size: 0.96rem; }
.link-card .more { margin-top: auto; padding-top: 8px; color: var(--primary); font-weight: 600; font-size: 0.93rem; }
.link-card .more::after { content: ' →'; }
.zones-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.zones-chips a, .zones-chips span {
    padding: 9px 16px; border-radius: 30px; background: var(--bg-white); border: 1px solid var(--border);
    text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem;
}
.zones-chips a:hover { border-color: var(--primary); color: var(--primary); }
.section-more { text-align: center; margin-top: 36px; }
.section-more a { color: var(--primary); font-weight: 600; }

.page-cta {
    margin-top: 56px; background: var(--secondary); color: #CBD5E1; border-radius: 20px; padding: 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.page-cta h2 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.page-cta p { margin: 0; }
.prose .page-cta a.btn-primary { color: #fff; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text-main); }
a.contact-card:hover { border-color: var(--primary); }
.contact-card .ico, .contact-card .ico-fill { width: 28px; height: 28px; color: var(--primary); }
.contact-card .ico-fill { color: #25D366; }
.contact-card strong { color: var(--secondary); font-size: 1.1rem; }
.contact-card span { color: var(--text-muted); font-size: 0.93rem; }

/* ===== Pedido de visita (remodelações) ===== */
.lead-section { padding: 0 0 100px; }
.lead-card {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px;
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 24px;
    padding: 48px; box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.18);
}
.lead-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.15; margin-bottom: 12px; }
.lead-intro > p { color: var(--text-muted); margin-bottom: 22px; }
.lead-points { list-style: none; margin-bottom: 26px; }
.lead-points li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lead-points .ico { color: var(--accent); stroke-width: 2.4; }
.lead-wa { display: inline-flex; align-items: center; gap: 8px; color: #15803D; font-weight: 600; text-decoration: none; }
.lead-wa .ico-fill { color: #25D366; }
.lead-wa:hover { text-decoration: underline; }
.input-group textarea {
    width: 100%; padding: 14px 18px; border: 1.5px solid var(--border); border-radius: 12px;
    font: inherit; resize: vertical; background: var(--bg-white);
}
.input-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.input-group label small { color: var(--text-muted); font-weight: 400; }
.lead-form .lead-submit { width: 100%; margin-top: 20px; }
.lead-form .form-error { margin-top: 16px; }
.lead-success { text-align: center; padding: 24px 0 8px; }
.lead-success h3 { font-size: 1.6rem; color: #059669; margin-bottom: 8px; }
.lead-success p { color: var(--text-muted); }
.lead-form.sent > :not(.lead-success) { display: none; }

/* Simulador: outros trabalhos */
.extras-group { margin: 8px 0 26px; }
.extras-group > p { font-weight: 600; color: var(--secondary); margin-bottom: 4px; }
.extras-group > small { display: block; color: var(--text-muted); margin-bottom: 12px; }
.extras-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.extras-chips label {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 30px; font-size: 0.92rem;
    transition: border-color 0.2s, background 0.2s;
}
.extras-chips input { accent-color: var(--primary); width: 16px; height: 16px; }
.extras-chips label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.hero-remodel { margin-top: 22px; font-size: 0.98rem; }
.hero-remodel a { color: var(--primary); font-weight: 600; }

/* ===== Barra fixa de contacto (telemóvel) ===== */
.mobile-bar { display: none; }

/* ===== Modo de revisão (?rever) ===== */
.rever [data-preencher] { outline: 3px dashed #F59E0B; outline-offset: 4px; background-color: rgba(245, 158, 11, 0.08); cursor: help; }

/* ===== Scroll reveal ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; padding: 8px 20px 20px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { margin: 0; padding: 14px 4px; border-bottom: 1px solid var(--border); }
    .nav-links .nav-phone { justify-content: flex-start; }
    .nav-links .btn-primary-outline { margin-top: 14px; border-bottom: 2px solid var(--primary); text-align: center; }
    .guarantees-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .page-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .page-aside { position: static; }
    .faq-layout { grid-template-columns: 1fr; gap: 36px; }
    .faq-intro { position: static; }
    .lead-card { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .whatsapp-float { display: none; }
    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1fr 1.3fr;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
        background: #fff; border-top: 1px solid var(--border);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    }
    .mobile-bar a {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        padding: 12px 6px; border-radius: 10px; text-decoration: none;
        font-weight: 600; font-size: 0.92rem; color: var(--secondary); background: var(--bg-light);
    }
    .mobile-bar .mb-wa { background: #25D366; color: #fff; }
    .mobile-bar .mb-quote { background: var(--primary); color: #fff; }
    body { padding-bottom: 72px; }
    .modifiers-grid { grid-template-columns: 1fr; gap: 24px; }
    .method-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { display: block; min-height: 0; padding: 0; background: var(--bg-light); }
    .hero-bg { position: static; display: block; height: 300px; object-position: 62% 50%; }
    .hero-overlay { display: none; }
    .hero-inner { padding-top: 32px; padding-bottom: 56px; }
    .hero-content { max-width: none; }
}
@media (max-width: 640px) {
    .hero-inner { padding-top: 28px; padding-bottom: 48px; }
    .how-it-works, .pricing, .method, .faq-section, .quote-section { padding: 72px 0; }
    .quote-form { padding: 24px 20px 32px; }
    .quote-header { padding: 28px 20px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .modifiers { padding: 24px 20px; }
    .live-estimate { flex-direction: column; align-items: flex-start; gap: 2px; }
    .surface-card { flex: 0 0 calc(50% - 7px); }
    .guarantees-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .about, .works, .reviews, .cards-section { padding: 72px 0; }
    .page-hero { margin-top: 76px; padding: 36px 0 32px; }
    .page-layout { padding: 40px 20px 72px; }
    .faq-item summary { padding: 18px; }
    .faq-answer { padding: 0 18px 18px; }
    .page-cta { padding: 26px; }
    .lead-card { padding: 26px 20px; }
    .lead-section { padding-bottom: 72px; }
    .final-cta { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .form-step, .form-success { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* ===== Páginas legais ===== */
.legal-page { background: var(--bg-white); }
.legal { max-width: 760px; padding-top: 120px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal-updated { color: var(--text-muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal a { color: var(--primary); }
.legal-back { margin-top: 48px; }
