/* ============================================================
   BOLFE EMPREENDIMENTOS · Calculadora de Pagamentos
   ============================================================ */

:root {
  --wine-900: #4a1626;
  --wine-800: #642034;
  --wine-700: #7a2a3f;
  --wine-600: #983537;
  --ink: #222221;
  --ink-soft: #3a3a39;
  --muted: #6b6b6a;
  --line: #e8e6e3;
  --line-soft: #f0eeeb;
  --bg: #ffffff;
  --bg-soft: #f6f4f1;
  --bg-ice: #f9f8f6;
  --shadow-sm: 0 1px 2px rgba(34,34,33,.04), 0 2px 8px rgba(34,34,33,.04);
  --shadow-md: 0 6px 24px rgba(34,34,33,.06), 0 2px 6px rgba(34,34,33,.04);
  --shadow-lg: 0 24px 60px rgba(34,34,33,.10);
  --grad-wine: linear-gradient(135deg, #642034 0%, #983537 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
h4 { font-size: 1rem; }
p  { margin: 0; color: var(--muted); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--wine-800);
  margin-bottom: 18px;
}
.eyebrow-light { color: rgba(255,255,255,.8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }
.btn-primary {
  background: var(--grad-wine);
  color: #fff;
  box-shadow: 0 8px 22px rgba(100,32,52,.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(100,32,52,.28);
  filter: brightness(1.05);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
}
.brand img { height: 95px; width: auto; }
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav a:hover { color: var(--wine-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  background: var(--bg-ice);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 500px at 88% -10%, rgba(152,53,55,.10), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(100,32,52,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 { margin: 8px 0 22px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; }
.hero-cta {
  margin: 36px 0 48px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(34,34,33,.05), rgba(34,34,33,.55)),
    url('assets/aperto-de-mao.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.hero-card-inner {
  background: linear-gradient(150deg, rgba(100,32,52,.95), rgba(74,22,38,.92));
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  max-width: 360px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.hero-card-inner h2 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.hero-card-inner p { color: rgba(255,255,255,.82); font-size: 0.95rem; }

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Calculator ---------- */
.calc-section {
  padding: 110px 0 120px;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.calc-form { padding: 40px; }
.form-block { padding: 24px 0; border-top: 1px solid var(--line-soft); }
.form-block:first-child { padding-top: 0; border-top: 0; }
.form-block h3 { margin-bottom: 18px; }
.form-block .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.78rem; }

.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-narrow { max-width: 100%; }

.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
}
.label-row label { margin-bottom: 0; }
.hint { font-size: 0.74rem; color: var(--muted); }

input[type="text"],
input[type="number"],
select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-ice);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
}
input:focus, select:focus {
  border-color: var(--wine-800);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(100,32,52,.08);
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23222221' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix span {
  position: absolute;
  left: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
}
.input-prefix input { padding-left: 40px; }

.readout {
  background: var(--bg-ice);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.slider-row output {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine-800);
  min-width: 44px;
  text-align: right;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-wine);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(100,32,52,.35);
  cursor: pointer;
  transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--wine-800);
  border: 3px solid #fff;
  cursor: pointer;
}

.micro {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}
.micro-light { color: rgba(255,255,255,.7); }

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
}

/* ---------- Results ---------- */
.calc-results { display: flex; flex-direction: column; gap: 18px; }

.result-card {
  padding: 32px;
  background: var(--grad-wine);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}
.result-card::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
  pointer-events: none;
}
.result-total {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: #fff;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.result-mini {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-mini.wide { grid-column: 1 / -1; }
.result-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.result-mini strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.result-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.composition { padding: 28px; }
.composition-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.composition-head span {
  font-weight: 700;
  color: var(--wine-800);
  font-size: 0.95rem;
}
.bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-soft);
}
.bar span { display: block; height: 100%; transition: width .4s ease; }
.bar-entrada  { background: #642034; }
.bar-parcelas { background: #983537; }
.bar-reforcos { background: #c66163; }
.bar-saldo    { background: #d9d4cf; }

.legend {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-entrada  { background: #642034; }
.dot-parcelas { background: #983537; }
.dot-reforcos { background: #c66163; }
.dot-saldo    { background: #d9d4cf; }

/* ---------- Institucional ---------- */
.institutional {
  padding: 110px 0;
  background: #fff;
}
.inst-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.inst-grid p { margin-top: 18px; font-size: 1.05rem; max-width: 520px; }

.inst-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.inst-pillars li {
  background: var(--bg-ice);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 3px solid var(--wine-800);
}
.inst-pillars strong { font-size: 1.05rem; color: var(--ink); }
.inst-pillars span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  padding-top: 0;
  margin-top: 0;
}
.footer-line {
  height: 3px;
  background: var(--grad-wine);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 60px;
  padding: 64px 32px 36px;
}
.footer-brand img { height: 42px; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; font-size: 0.95rem; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-cols h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-cols p { font-size: 0.92rem; margin-bottom: 6px; }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px 36px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { min-height: 380px; padding: 28px; }
  .hero-card-inner { max-width: 100%; }
  .calc-grid { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 32px 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .calc-section { padding: 70px 0 80px; }
  .institutional { padding: 70px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .calc-form { padding: 28px; }
  .hero-meta { gap: 28px; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-mini.wide { grid-column: auto; }
  .footer-cols { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}

/* ============= WhatsApp floating CTA ============= */
.wa-float{
  position:fixed; right:24px; bottom:24px; z-index:60;
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 20px 14px 16px;
  background:linear-gradient(135deg,#25D366 0%,#128C7E 100%);
  color:#fff; text-decoration:none; font-family:var(--font);
  font-weight:600; font-size:15px; letter-spacing:.01em;
  border-radius:999px;
  box-shadow:0 12px 30px rgba(18,140,126,.35), 0 4px 10px rgba(0,0,0,.12);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.wa-float:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(18,140,126,.45), 0 6px 14px rgba(0,0,0,.14);
  filter:brightness(1.04);
}
.wa-float:active{ transform:translateY(0); }
.wa-icon{ width:26px; height:26px; flex:none; }
.wa-label{ white-space:nowrap; }
@media (max-width:560px){
  .wa-float{ right:16px; bottom:16px; padding:12px 16px 12px 14px; font-size:14px; }
  .wa-icon{ width:22px; height:22px; }
}
