:root {
  --color-bg: #fbf7f3;
  --color-surface: #f4eee8;
  --color-surface-2: #fffaf7;
  --color-border: rgba(45, 42, 42, 0.12);
  --color-text: #2d2a2a;
  --color-text-muted: #6f6765;
  --color-primary: #6e2132;
  --color-primary-hover: #571927;
  --color-secondary: #b8833e;
  --color-white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(110, 33, 50, 0.06);
  --shadow-md: 0 20px 48px rgba(110, 33, 50, 0.14);
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1180px;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-alt { background: var(--color-surface); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(251, 247, 243, 0.88);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-text); }
.brand-icon { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; display: block; }
.brand-text { font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.2; color: var(--color-text); white-space: nowrap; }
.brand-text strong { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.main-nav { display: flex; gap: 24px; font-size: .96rem; }
.main-nav a { color: var(--color-text-muted); }
.main-nav a:hover { color: var(--color-primary); }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline { border-color: var(--color-border); color: var(--color-text-muted); background: transparent; }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.hero-btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.hero-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ── Hero ── */
.hero-section {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden; padding: 100px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,8,10,.72) 40%, rgba(20,8,10,.35) 100%),
    url('../img/banner-hero.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 48px; align-items: center;
  width: min(100% - 32px, var(--container)); margin: 0 auto;
}
.hero-copy .eyebrow { color: var(--color-secondary); }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 16px; max-width: 18ch;
}
.hero-copy p { color: rgba(255,255,255,.78); max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0; flex-wrap: wrap; }
.hero-benefits {
  display: flex; gap: 18px; padding: 0; list-style: none;
  color: rgba(255,255,255,.55); flex-wrap: wrap; font-size: .9rem;
}
.hero-benefits li::before { content: '✓ '; color: var(--color-secondary); }
.hero-product-wrap { position: relative; display: flex; flex-direction: column; }
.hero-product-img {
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  border: 1px dashed rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); overflow: hidden;
}
.hero-product-placeholder { color: rgba(255,255,255,.4); font-size: .88rem; text-align: center; padding: 16px; }
.hero-product-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.hero-product-video video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 14px 20px; min-width: 160px;
}
.hero-badge strong { display: block; font-size: 1.5rem; color: var(--color-primary); margin: 4px 0 0; font-family: var(--font-display); }
.mini-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }

/* ── Seções ── */
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  color: var(--color-primary); font-size: .78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.section-heading h2 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0; max-width: 14ch; }

/* ── Cards de Modelos ── */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.model-card { overflow: hidden; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.model-thumb {
  width: 100%; aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f3e7e0;
  display: flex; align-items: center; justify-content: center;
}
.model-thumb-placeholder { font-size: .82rem; color: var(--color-text-muted); padding: 32px 16px; }
.model-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-tag { color: var(--color-primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.model-content h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.model-desc { font-size: .875rem; color: var(--color-text-muted); margin: 0 0 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.model-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.model-price { display: flex; flex-direction: column; line-height: 1.2; }
.price-label { font-size: .7rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.model-price strong { color: var(--color-primary); font-size: 1.1rem; }
.model-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,8,10,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none; /* ← CORREÇÃO: não bloqueia cliques quando fechado */
  transition: opacity .25s ease;
}
.modal-overlay[hidden] {
  display: none !important; /* garante que some completamente */
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto; /* ← ativa cliques só quando aberto */
}
.modal-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 820px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(24px); transition: transform .25s ease;
}
.modal-overlay.is-open .modal-box { transform: translateY(0); }
.modal-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-surface); border: none;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.modal-close:hover { background: var(--color-surface-2); color: var(--color-primary); }
.modal-inner {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 0;
}
.modal-img-wrap { border-radius: var(--radius-lg) 0 0 var(--radius-lg); overflow: hidden; }
.modal-img {
  width: 100%; height: 100%; min-height: 320px;
  background-size: cover; background-position: center;
  background-color: #f3e7e0;
}
.modal-img.no-img { background-image: none; }
.modal-body { padding: 32px 28px 32px 24px; }
.modal-body h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 4px 0 12px; line-height: 1.2; }
.modal-desc-text { font-size: .9rem; color: var(--color-text-muted); margin-bottom: 24px; line-height: 1.6; }

/* Tabela desconto */
.discount-table { margin-bottom: 24px; }
.discount-table h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 10px; }
.discount-table table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.discount-table th { background: var(--color-surface); padding: 7px 10px; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.discount-table td { padding: 7px 10px; border-bottom: 1px solid var(--color-border); }
.discount-table tr:last-child td { border-bottom: none; }
.discount-table tr.row-active td { background: rgba(110,33,50,.06); font-weight: 600; }
.discount-table tr.row-active td:first-child { border-left: 3px solid var(--color-primary); }
.desc-badge { color: #1a7a1a; font-weight: 700; }

/* Simulador no modal */
.modal-simulator { background: var(--color-surface); border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; }
.modal-simulator h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 12px; }
.modal-sim-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal-sim-row label { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.modal-sim-row input { width: 80px; min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--color-border); font-size: 1rem; text-align: center; }
.modal-sim-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-sim-result span { font-size: .88rem; color: var(--color-text-muted); }
.modal-sim-result strong { font-size: 1.4rem; color: var(--color-primary); font-family: var(--font-display); }
.economia-tag { background: #e6f4e6; color: #1a7a1a; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.modal-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-cta .btn { flex: 1; justify-content: center; min-height: 44px; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { padding: 24px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step-card span {
  display: inline-flex; width: 38px; height: 38px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--color-surface); color: var(--color-primary); font-weight: 700; margin-bottom: 14px;
}

/* ── Simulador & Contato ── */
.simulator-grid, .contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.simulator-card, .contact-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px; }
.form-group { display: grid; gap: 8px; margin-bottom: 16px; }
.form-group label { font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group small { color: var(--color-text-muted); }
.estimate-box { padding: 20px; border-radius: 16px; background: var(--color-surface); margin: 22px 0; }
.estimate-box strong { display: block; font-size: 2rem; color: var(--color-primary); margin: 6px 0; }
.simulator-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ── */
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 42px 0 64px; border-top: 1px solid var(--color-border); }
.site-footer { background: #f7f0ea; }

/* ── Responsivo ── */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-product-wrap { display: none; }
  .hero-copy h1 { max-width: 100%; }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-img { min-height: 220px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-img-wrap { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .simulator-grid, .contact-grid, .footer-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .models-grid, .simulator-grid, .contact-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .brand-icon { width: 38px; height: 38px; }
  .brand-text { font-size: .9rem; }
  .hero-section { min-height: 480px; padding: 80px 0 60px; }
  .model-footer { flex-direction: column; align-items: flex-start; }
  .model-actions { width: 100%; flex-direction: row; }
  .model-actions .btn { flex: 1; justify-content: center; }
  .modal-body { padding: 20px 16px; }
  .modal-cta { flex-direction: column; }
}
