:root {
  --red: #c90000;
  --red-dark: #980000;
  --red-light: #fff1f1;
  --black: #111111;
  --gray: #666;
  --light: #f7f7f7;
  --white: #fff;
  --border: #e6e6e6;
  --shadow: 0 16px 45px rgba(0,0,0,.10);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* LOGO */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 205px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  display: none;
}

/* MENU */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  height: 64px;
  margin-left: auto;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #a47722;
}

.nav a.active {
  color: #a47722;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 2px;
  background: #a47722;
}

/* BOTÃO SIMULADOR */
.header-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 145px;
  height: 40px;
  padding: 0 18px;
  border-radius: 25px;
  background: linear-gradient(135deg, #b98b32, #8f681f);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(145, 105, 30, 0.22);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.header-button span {
  font-size: 20px;
}

.header-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* BANNER */
.banner-section { background: #eee; }
.banner-placeholder {
  min-height: 360px;
  max-height: 540px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ddd, #f5f5f5);
}
.banner-placeholder img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
}
.banner-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #555;
  text-align: center;
  padding: 30px;
}
.banner-fallback span { font-size: clamp(26px, 5vw, 52px); font-weight: 900; }
.banner-fallback small { margin-top: 10px; }

/* CTA */
.hero-cta {
  text-align: center;
  padding: 52px 0 65px;
  background: var(--white);
}
.hero-cta h1 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 10px; }
.hero-cta p { color: var(--gray); margin-bottom: 25px; }

/* BUTTONS */
.btn {
  border: 0;
  border-radius: 10px;
  padding: 16px 26px;
  font-weight: 900;
  letter-spacing: .3px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(.96); }
.btn-primary { background: var(--red); color: white; box-shadow: 0 8px 22px rgba(201,0,0,.22); }
.btn-primary:hover { background: var(--red-dark); }
.btn-full { width: 100%; }
.btn-whatsapp { background: #159447; color: #fff; }
.btn-whatsapp .whatsapp-icon { width: 22px; height: 22px; color: #fff; vertical-align: middle; margin-right: 7px; }
.whatsapp-icon { width: 30px; height: 30px; display: block; }
.btn-light { background: #fff; color: var(--red); }

/* SECTIONS */
.simulator-section, .advantages-section { padding: 80px 0; }
.simulator-section { background: var(--light); }
.section-heading { text-align: center; margin-bottom: 38px; }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
}
.section-heading h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 7px; }
.section-heading p { color: var(--gray); }

/* SIMULATOR */
.simulator-card {
  max-width: 950px;
  margin: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 34px;
}
.field { margin-bottom: 26px; }
.field > label { display: block; font-weight: 800; margin-bottom: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice {
  border: 2px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 16px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  color: #333;
}
.choice span { font-size: 25px; }
.choice.active { border-color: var(--red); background: var(--red-light); color: var(--red); }

.money-input {
  height: 58px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  font-weight: 900;
}
.money-input:focus-within { border-color: var(--red); }
.money-input input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
}
input[type=range] { width: 100%; accent-color: var(--red); margin-top: 18px; }
.range-labels { display: flex; justify-content: space-between; color: #888; font-size: 12px; margin-top: 3px; }

.fixed-term {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--red-light);
  border: 1px solid #ffd0d0;
  padding: 15px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.small-label { display: block; font-size: 10px; color: var(--red); font-weight: 900; letter-spacing: 1px; }
.fixed-term strong { font-size: 18px; }
.lock { font-size: 18px; }

.result-column {
  background: #171717;
  color: #fff;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-label { color: #ff6c6c; font-size: 11px; font-weight: 900; letter-spacing: 1.4px; }
.result-column h3 { margin-top: 5px; font-size: 23px; }
.result-main { padding: 25px 0 20px; border-bottom: 1px solid #333; }
.result-main span, .result-main small { display: block; color: #aaa; }
.result-main strong { display: block; font-size: clamp(30px, 4vw, 43px); line-height: 1.15; margin: 5px 0; }
.result-details { padding: 18px 0 22px; display: grid; gap: 12px; }
.result-details div { display: flex; justify-content: space-between; gap: 15px; }
.result-details span { color: #aaa; }
.disclaimer { color: #999; font-size: 10px; margin-top: 12px; text-align: center; }

/* ADVANTAGES */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.advantage {
  padding: 25px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}
.advantage-icon { font-size: 30px; margin-bottom: 13px; }
.advantage h3 { margin-bottom: 7px; }
.advantage p { color: var(--gray); font-size: 14px; }

/* FINAL CTA */
.final-cta { background: var(--red); color: #fff; text-align: center; padding: 70px 0; }
.final-cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 7px; }
.final-cta p { opacity: .9; margin-bottom: 24px; }

/* FOOTER */
.footer { background: #111; color: #fff; }
.footer-grid { padding: 48px 0; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.footer p, .footer a { color: #aaa; font-size: 14px; }
.footer h3 { margin-bottom: 12px; font-size: 15px; }
.footer a { display: block; margin: 7px 0; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #292929; padding: 18px 0; color: #777; font-size: 12px; }

/* FLOATING WHATSAPP */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #19a858;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 27px;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
  z-index: 30;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand img {
    width: 145px;
    height: 48px;
  }

  .nav {
    gap: 14px;
    height: 66px;
  }

  .nav a {
    height: 66px;
    font-size: 11px;
  }

  .nav a:nth-child(2),
  .nav a:nth-child(3),
  .nav a:nth-child(4) {
    display: none;
  }

  .nav a.active::after {
    bottom: 15px;
  }

  .header-button {
    min-width: 105px;
    height: 40px;
    padding: 0 14px;
    font-size: 11px;
  }

  .header-button span {
    font-size: 16px;
  }

  .banner-placeholder { min-height: 230px; }
  .hero-cta { padding: 38px 0 48px; }
  .simulator-section, .advantages-section { padding: 58px 0; }
  .simulator-card { grid-template-columns: 1fr; padding: 20px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 22px, 1120px); }
  .header-button {
    min-width: 92px;
    padding: 0 10px;
    font-size: 10px;
  }

  .brand img {
    width: 125px;
  }

  .choice-grid { gap: 7px; }
  .choice { padding: 13px 4px; font-size: 13px; }
  .simulator-card { border-radius: 13px; }
  .result-column { padding: 22px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .floating-whatsapp { right: 15px; bottom: 15px; width: 54px; height: 54px; }
}

.term-selector {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--red-light);
  border: 1px solid #ffd0d0;
  padding: 15px 18px;
  border-radius: 12px;
}
.term-input-wrap { display: flex; align-items: baseline; gap: 6px; }
.term-input-wrap input { width: 90px; border: 0; outline: 0; background: transparent; color: var(--red); font-size: 22px; font-weight: 900; padding: 0; }
.term-input-wrap span { color: var(--red); font-size: 14px; font-weight: 800; }
.term-selector > span { color: var(--gray); font-size: 13px; font-weight: 700; }
.about-section { padding: 72px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 55px; align-items: center; }
.about-section h2 { margin: 8px 0 0; font-size: 34px; line-height: 1.12; }
.about-copy { color: #666; font-size: 16px; line-height: 1.75; }
.about-copy p { margin: 0 0 14px; }
.about-copy strong { color: #222; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 20px; } .about-section h2 { font-size: 28px; } }
.term-help { color: #777; font-size: 12px; margin-top: 10px; line-height: 1.45; }


/* Feedback visual do botão de cálculo */
.btn.calculated {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.result-hidden { display: none !important; }
.lead-intro { color: #aaa; font-size: 14px; margin: 8px 0 22px; }
.lead-field { margin-bottom: 14px; }
.lead-field label { display:block; color:#ddd; font-size:12px; font-weight:800; margin-bottom:7px; }
.lead-field input { width:100%; height:48px; border:1px solid #3a3a3a; border-radius:10px; background:#242424; color:#fff; padding:0 13px; outline:none; }
.lead-field input:focus { border-color: var(--red); }
.lead-field input::placeholder { color:#777; }
.lead-error { min-height:18px; color:#ff7b7b; font-size:12px; text-align:center; margin-top:9px; }
