/* Landing da promoção "3 quartos por $149,90" — HBM Home Solutions.
   Paleta e componentes puxados direto do site real (repo hirehbm-site,
   offer.html/index.html) — não é mais aproximação: os hex abaixo são os
   mesmos :root do offer.html real. Ver PLANO-TECNICO.md. */

:root {
  --navy-950: #03162f;
  --navy-900: #09264b;
  --navy-800: #123b70;
  --blue-400: #63b9ee;
  --blue-100: #dff2fc;

  --green-700: #0c7548;
  --green-600: #118a57;
  --green-100: #ddf5e8;

  /* Verde da faixa de promoção do site real (index.html, .promo-bar) —
     usado só em elementos de oferta/desconto, nunca como cor de interface. */
  --promo-green: #1fa463;
  --promo-green-hover: #178650;

  --cream: #f7f3eb;
  --paper: #fffdf8;
  --ink: #102139;
  --muted: #607086;
  --line: #dfe5e9;
  --line-strong: #c7d3dc;
  --danger: #a0352c;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

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

/* ---------- topbar ---------- */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-text { font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-size: 17px; color: var(--ink); }
.brand-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .13em; font-weight: 700; }
.hero-call {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: 13px; text-decoration: none;
  color: var(--green-700);
}
.hero-call::before { content: "☎"; }

/* ---------- hero / destaque da promo ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 40px 0 56px;
  overflow: hidden;
}
/* Foto de fundo real (assets/hbm-hero-poster.jpg, mesma imagem que o site real
   usa como poster do vídeo do herói) + scrim escuro, mesmo padrão do
   .hero-scrim do site real — texto continua legível por cima. */
.hero-bg {
  position: absolute; inset: 0;
  background: url('../assets/hbm-hero-poster.jpg') center 30% / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(99, 185, 238, .22), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(17, 138, 87, .28), transparent 30%),
    linear-gradient(100deg, rgba(3, 22, 47, .93) 0%, rgba(3, 22, 47, .86) 46%, rgba(3, 22, 47, .62) 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block;
  color: var(--blue-100); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(99, 185, 238, .4); border-radius: 999px;
  padding: 5px 12px; margin-bottom: 14px;
}
.hero-copy h1 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.hero-copy h1 span { color: var(--blue-400); }
.hero-copy p { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.55; max-width: 46ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600;
}
.hero-badge::before { content: "✓"; color: var(--green-100); font-weight: 800; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); padding: 13px 22px; font-weight: 800;
  font-size: 14px; letter-spacing: .01em; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 14px 30px -14px rgba(12,117,72,.7); }
.btn-primary:hover { background: var(--promo-green-hover); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Destaque de preço, no estilo do print de referência (image.png): cartão
   claro, foto real de um trabalho do HBM (carpet-after-new.jpg), preço
   grande, faixa de selos embaixo. */
.promo-card {
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.55);
}
.promo-photo {
  aspect-ratio: 4 / 3; position: relative;
  background: url('../assets/carpet-after-new.jpg') center / cover no-repeat;
}
.promo-photo-caption {
  position: absolute; left: 14px; top: 14px;
  background: rgba(3, 22, 47, .78); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; border-radius: 999px; padding: 5px 11px;
}
.promo-price-plate {
  position: absolute; right: 14px; bottom: 14px; left: 14px;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-sm);
  padding: 14px 16px; text-align: right;
}
.promo-price-plate .rooms { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-100); }
.promo-price-plate .price { font-size: 40px; font-weight: 800; line-height: 1.05; color: #fff; }
.promo-price-plate .price small { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.75); }
.promo-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--navy-900); border-top: 3px solid var(--promo-green);
}
.promo-strip span {
  flex: 1 1 auto; text-align: center; color: #fff; font-size: 11px; font-weight: 700;
  padding: 10px 6px; border-right: 1px solid rgba(255,255,255,.12);
}
.promo-strip span:last-child { border-right: none; }

/* ---------- section shell ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- booking wizard ---------- */
.booking-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 20px 44px -28px rgba(16,33,57,.25);
  padding: 26px;
}
.booking-steps {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 26px;
  counter-reset: step;
}
.booking-step {
  flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted);
  position: relative; padding-top: 34px;
}
.booking-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  background: var(--paper); color: var(--muted);
}
.booking-step[aria-current="step"] { color: var(--ink); }
.booking-step[aria-current="step"]::before { border-color: var(--green-700); color: var(--green-700); }
.booking-step.is-complete::before { content: "✓"; background: var(--green-600); border-color: var(--green-600); color: #fff; }

.booking-panel[hidden] { display: none; }
.booking-panel h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.booking-panel .panel-lead { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

/* step 1: confirmação da promo */
.promo-confirm {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--green-100); border: 1px solid var(--green-600);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 8px;
}
.promo-confirm strong { display: block; font-size: 15px; }
.promo-confirm span { color: var(--muted); font-size: 12px; }
.promo-confirm .amount { font-size: 22px; font-weight: 800; color: var(--green-700); white-space: nowrap; }

/* step 2: mesmo layout de calendário/horário do offer.html real (mês com
   navegação anterior/próximo, grade de dias, e horários agrupados por
   Manhã/Tarde ao lado) — só troquei a fonte dos dados por MOCK_AVAILABILITY
   em vez do fetch() real. Classes e valores copiados 1:1 do CSS de lá. */
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(250px, .88fr); gap: 16px; margin-top: 8px; }
@media (max-width: 640px) { .schedule-layout { grid-template-columns: 1fr; } }

.calendar-card, .time-card { border: 1px solid rgba(16, 33, 57, .09); border-radius: 18px; box-shadow: 0 14px 36px rgba(3, 22, 47, .07); }
.calendar-card { padding: 18px; background: #fff; }
.calendar-month-head { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; }
.calendar-month-head > div { text-align: center; }
.calendar-month-head span { display: block; color: var(--green-700); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.calendar-month-head h4 { margin: 2px 0 0; color: var(--navy-900); font-size: 17px; }
.calendar-nav { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy-900); background: #f7fafb; cursor: pointer; font-weight: 800; }
.calendar-nav:hover:not(:disabled) { border-color: #91bdd8; background: var(--blue-100); }
.calendar-nav:disabled { opacity: .3; cursor: default; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays { margin-top: 16px; }
.calendar-weekdays span { color: var(--muted); text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calendar-grid { margin-top: 6px; }
.calendar-spacer { min-height: 46px; }
.date-option {
  position: relative; display: grid; place-items: center; min-width: 0; min-height: 46px; padding: 4px;
  color: var(--navy-900); background: #edf7fc; border: 1px solid transparent; border-radius: 12px;
  cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.date-option:hover:not(:disabled) { border-color: #73bce6; background: #dff2fc; transform: translateY(-1px); }
.date-option[aria-pressed="true"] { border-color: var(--navy-800); color: #fff; background: var(--navy-800); box-shadow: 0 8px 18px rgba(18, 59, 112, .24); }
.date-option:disabled { color: #b2bac4; background: transparent; cursor: default; }
.date-option > span { font-size: 12px; font-weight: 800; }
.date-option small { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; overflow: hidden; border-radius: 50%; color: transparent; background: var(--green-700); font-size: 0; }
.date-option[aria-pressed="true"] small { color: var(--navy-950); background: #8ee5bb; }
.calendar-legend { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.calendar-legend span { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); box-shadow: 0 0 0 4px rgba(12, 117, 72, .09); }

.time-card { padding: 20px; background: linear-gradient(160deg, #eef7fb, #f8fbf9 70%); }
.time-card-eyebrow { display: block; color: var(--green-700); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.time-heading { margin-top: 5px; color: var(--navy-900); font-size: 18px; line-height: 1.25; }
.time-card-note { margin-top: 6px; color: var(--muted); font-size: 12px; }
.time-picker { max-height: 336px; margin-top: 16px; padding-right: 4px; overflow-y: auto; scrollbar-gutter: stable; }
.time-picker[hidden] { display: none; }
.time-period + .time-period { margin-top: 17px; }
.time-period-title { margin-bottom: 8px; color: var(--navy-800); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.time-period-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.time-option {
  min-height: 50px; padding: 8px; color: var(--navy-900); background: rgba(255, 255, 255, .9);
  border: 1px solid #cfdde6; border-radius: 12px; cursor: pointer;
  font-size: 12px; font-weight: 800; transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.time-option:hover { border-color: #91bdd8; background: #f5faff; }
.time-option[aria-pressed="true"] { border-color: var(--green-700); color: #fff; background: var(--green-700); box-shadow: inset 0 0 0 1px #075f39; }
.time-empty { color: var(--muted); font-size: 13px; }

.mock-note {
  margin-top: 14px; font-size: 11px; color: var(--muted); background: var(--blue-100);
  border: 1px dashed var(--blue-400); border-radius: 8px; padding: 8px 10px;
}

/* step 3: mesmos campos de contato do offer.html real (Full name + Service
   ZIP, Service address, Email + Mobile phone) — classes e CSS copiados 1:1
   de lá (.input-row/.input-field/.appointment-lock/.intake-privacy). */
.appointment-lock { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #b8e5cc; border-radius: 12px; background: var(--green-100); }
.appointment-lock strong { color: var(--green-700); font-size: 12px; }
.appointment-lock span { color: #315a49; text-align: right; font-size: 12px; font-weight: 700; }

.input-row { display: grid; grid-template-columns: 1fr .72fr; gap: 12px; }
@media (max-width: 640px) { .input-row { grid-template-columns: 1fr; } }
.input-row + .input-row { margin-top: 12px; }
.input-row + .input-field { margin-top: 12px; }
.input-field + .input-row { margin-top: 12px; }
.input-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.input-field input {
  width: 100%; min-height: 50px; padding: 0 13px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .18s ease, box-shadow .18s ease;
}
.input-field input:hover { border-color: #91bdd8; }
.input-field input:focus { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(99, 185, 238, .18); outline: 0; }
.intake-privacy { margin-top: 10px; color: var(--muted); font-size: 11px; }

.deposit-box {
  background: var(--navy-900); color: #fff; border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 18px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.deposit-box .label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-100); }
.deposit-box .amount { font-size: 28px; font-weight: 800; color: #fff; }
.deposit-box .rest { font-size: 12px; color: rgba(255,255,255,.72); }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.btn-secondary { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }

.form-error { color: var(--danger); font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.stripe-hint { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ---------- footer ---------- */
.footer { padding: 26px 0 40px; text-align: center; color: var(--muted); font-size: 12px; }
.footer a { color: var(--green-700); text-decoration: none; font-weight: 700; }

/* ---------- status pages (success/cancel) ---------- */
.status-shell { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.status-card { max-width: 460px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: 0 20px 44px -28px rgba(16,33,57,.25); }
.status-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.status-icon.ok { background: var(--green-100); color: var(--green-700); }
.status-icon.warn { background: var(--blue-100); color: var(--navy-800); }
.status-card h1 { font-size: 20px; margin: 0 0 8px; }
.status-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
