/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --ink: #11233d;
  --ink-soft: #3a5070;
  --blue: #1268d6;
  --blue-dark: #0b3f7c;
  --blue-hero: #0b2039;
  --blue-mid: #185eae;
  --mist: #f4f8fc;
  --white: #fff;
  --line: #d5e0ec;
  --gold: #e8a020;
  --candeeiro: #2a7fd4;
  --lamparina: #c46e14;
  --text-sm: .82rem;
  --text-xs: .76rem;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(11,32,57,.12);
  --shadow-lg: 0 6px 32px rgba(11,32,57,.16);
}

/* ── Reset / base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--mist);
  font: 16px / 1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
address { font-style: normal; }

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

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s, box-shadow .15s, transform .1s;
  padding: 14px 22px;
  line-height: 1.2;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { opacity: .92; box-shadow: 0 4px 18px rgba(232,160,32,.4); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  font-size: .92rem;
  padding: 11px 18px;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-submit {
  background: var(--blue);
  color: var(--white);
  width: 100%;
  padding: 16px;
  font-size: 1.06rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.btn-submit:hover { background: var(--blue-dark); box-shadow: var(--shadow-lg); }

/* ── Section commons ────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 56ch;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, var(--blue-hero) 0%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 64px 0 52px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .22;
}
.badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(3rem, 13vw, 5.5rem);
  line-height: .92;
  font-weight: 900;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 42rem;
  opacity: .92;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-disclaimer {
  font-size: var(--text-sm);
  opacity: .7;
  max-width: 50ch;
}

/* ── GALLERY ────────────────────────────────────────────────────────────── */
.gallery {
  background: var(--ink);
  padding: 48px 0 36px;
}
.gallery-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.gallery-fig {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.gallery-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-fig:hover img { transform: scale(1.02); }
.gallery-fig--main { aspect-ratio: 16/10; }
.gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gallery-side .gallery-fig { aspect-ratio: 4/3; }
.gallery-caption {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
  padding: 8px 4px 0;
}
.gallery-disclaimer {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
  max-width: 70ch;
}

/* ── STATS ──────────────────────────────────────────────────────────────── */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 24px 16px;
  text-align: center;
}
.stat-val {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ── PHASES ─────────────────────────────────────────────────────────────── */
.phases {
  padding: 64px 0;
}
.phase-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 20px;
}
.phase-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border-top: 4px solid var(--blue);
}
.phase-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.candeeiro-tag { background: #ddeeff; color: var(--candeeiro); }
.lamparina-tag { background: #ffeedd; color: var(--lamparina); }
.phase-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.phase-address { color: var(--ink-soft); font-size: var(--text-sm); margin-bottom: 6px; }
.phase-delivery { font-size: var(--text-sm); margin-bottom: 18px; }

.phase-units {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}
.phase-units li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.unit-type { font-size: .9rem; color: var(--ink-soft); }
.unit-price { font-size: .94rem; color: var(--ink); }
.unit-price strong { color: var(--blue-dark); }
.price-note { font-size: var(--text-sm); color: var(--ink-soft); }
.phase-total { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: 20px; }
.price-disclaimer { font-size: var(--text-xs); color: var(--ink-soft); max-width: 72ch; }

/* ── HOW IT WORKS ───────────────────────────────────────────────────────── */
.how {
  background: var(--white);
  padding: 64px 0;
}
.steps {
  list-style: none;
  display: grid;
  gap: 28px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-body p { color: var(--ink-soft); }

/* ── FINANCING ──────────────────────────────────────────────────────────── */
.financing {
  padding: 64px 0;
  background: var(--mist);
}
.fin-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.fin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.fin-icon { font-size: 2rem; margin-bottom: 10px; }
.fin-card h3 { font-size: 1rem; margin-bottom: 8px; }
.fin-card p { font-size: .92rem; color: var(--ink-soft); }
.fin-disclaimer { font-size: var(--text-xs); color: var(--ink-soft); max-width: 68ch; }

/* ── LOCATION ───────────────────────────────────────────────────────────── */
.location {
  background: var(--white);
  padding: 64px 0;
}
.location-grid {
  display: grid;
  gap: 32px;
}
.location-text p { color: var(--ink-soft); margin-bottom: 16px; }
.location-list {
  list-style: none;
  margin-bottom: 16px;
}
.location-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
  font-size: .94rem;
}
.location-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.location-note { font-size: var(--text-xs); color: var(--ink-soft); }

.location-cards { display: grid; gap: 14px; }
.address-card, .hours-card {
  background: var(--mist);
  border-radius: 8px;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
}
.address-label, .hours-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 6px;
}
.address-card address { font-size: .9rem; color: var(--ink-soft); }
.hours-val { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.hours-note { font-size: var(--text-xs); color: var(--ink-soft); margin-top: 4px; }

/* ── FORM SECTION ───────────────────────────────────────────────────────── */
.form-section {
  background: linear-gradient(160deg, var(--blue-hero) 0%, var(--blue-mid) 100%);
  padding: 64px 0;
}
.form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 28px;
  max-width: 520px;
  margin: 0 auto;
}
.form-header { margin-bottom: 28px; }
.form-header h2 { font-size: 1.3rem; margin-bottom: 8px; }
.form-header p { color: var(--ink-soft); font-size: .94rem; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: .9rem;
  font-weight: 650;
  color: var(--ink);
}
.req { color: var(--blue); }
.field input, .field select {
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18,104,214,.18);
}
.field input::placeholder { color: #a0b2c4; }

.field-checkbox { flex-direction: row; }
.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .85rem !important;
  font-weight: 500 !important;
  color: var(--ink-soft);
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-msg {
  font-size: .9rem;
  min-height: 1.4em;
  color: var(--blue-dark);
  margin-top: -4px;
}
.form-msg.success { color: #1a7a4a; }
.form-msg.error { color: #b91c1c; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 48px 0;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-brand {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-text { font-size: var(--text-sm); line-height: 1.6; }
.footer-legal { font-size: var(--text-xs); opacity: .7; }

/* ── Responsive: tablet+ ─────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .fin-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 3fr 2fr; align-items: stretch; }
  .gallery-side { grid-template-columns: 1fr; }
  .gallery-fig--main { aspect-ratio: unset; }
}

@media (min-width: 720px) {
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .container { padding: 0 32px; }
  .hero { padding: 80px 0 64px; }
  .hero h1 { line-height: .9; }
  .form-wrap { padding: 48px 44px; }
}
