:root {
  --brand: #0f4d3c;
  --brand-dark: #0a362b;
  --brand-soft: #e8f2ee;
  --ink: #10231d;
  --muted: #66756f;
  --line: #dfe8e4;
  --panel: #ffffff;
  --bg: #f5f8f6;
  --alert: #fff8e8;
  --alert-line: #ead9aa;
  --shadow: 0 22px 60px rgba(16, 35, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.hero-actions,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.main-nav {
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a,
.header-whatsapp,
.whatsapp,
.ghost-button {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--brand);
}

.header-whatsapp {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

main {
  overflow: hidden;
}

.lead-flow {
  display: contents;
}

.hero-section {
  width: min(1220px, calc(100% - 40px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(340px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-media {
  position: relative;
  min-height: clamp(560px, 76vh, 760px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-dark);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 26, 20, 0.82) 0%, rgba(8, 26, 20, 0.5) 44%, rgba(8, 26, 20, 0.1) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 5vw, 58px);
  bottom: clamp(30px, 6vw, 62px);
  z-index: 1;
  max-width: 680px;
  color: #fff;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #c8f5dd;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lead-card,
.filter-panel,
.section-shell,
.simulator-section,
.cta-section,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.lead-card {
  align-self: start;
  padding: 30px;
  box-shadow: var(--shadow);
}

.intro {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: block;
  margin: 15px 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fbf9;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(15, 77, 60, 0.16);
  border-color: var(--brand);
  background: #fff;
}

.actions {
  gap: 12px;
  margin-top: 22px;
}

button,
.whatsapp,
.ghost-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px 18px;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button,
.whatsapp {
  color: #fff;
  background: var(--brand);
}

button:hover,
.whatsapp:hover,
.header-whatsapp:hover {
  background: var(--brand-dark);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-cta,
.lead-card button,
.filter-button {
  width: 100%;
}

.filter-section,
.section-shell,
.simulator-section,
.cta-section,
.site-footer {
  width: min(1060px, calc(100% - 40px));
  margin: 34px auto 0;
}

.purchase-alert,
.simulation-alert {
  border-radius: 8px;
  line-height: 1.45;
}

.purchase-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  color: #2b4938;
  background: var(--brand-soft);
  border: 1px solid #cfe1d8;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 18px;
  box-shadow: 0 16px 44px rgba(16, 35, 29, 0.08);
}

.filter-button {
  max-width: 320px;
  margin-top: 16px;
}

.section-shell {
  padding: clamp(30px, 5vw, 52px);
}

.steps-grid,
.services-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.steps-grid {
  grid-template-columns: repeat(4, 1fr);
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.steps-grid article,
.services-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbfa;
}

.steps-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.steps-grid p,
.services-grid p,
.faq-section p,
.cta-section p,
.simulator-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.simulator-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(135deg, #eef8f4, #ffffff);
}

.simulator-copy {
  position: sticky;
  top: 100px;
}

.simulation-alert {
  margin-top: 20px;
  padding: 14px 16px;
  color: #5b5035;
  background: var(--alert);
  border: 1px solid var(--alert-line);
}

.simulator-panel {
  padding: 28px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 35, 29, 0.1);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.secondary {
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--brand);
}

.secondary:hover {
  color: #fff;
  background: var(--brand-dark);
}

.simulator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.result {
  min-height: 90px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #cfe1d8;
  border-radius: 8px;
  background: var(--brand-soft);
}

.result strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-dark);
  font-size: 26px;
}

.financed-value {
  display: block;
  margin-bottom: 8px;
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(30px, 5vw, 50px);
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.cta-section .eyebrow,
.cta-section p {
  color: #d7f2e5;
}

.cta-section h2 {
  margin-bottom: 8px;
}

.cta-button {
  background: #fff;
  color: var(--brand);
}

.cta-button:hover {
  color: #fff;
}

.faq-section details {
  border-top: 1px solid var(--line);
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  padding: 20px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.faq-section details p {
  margin: 0 0 20px;
  max-width: 760px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
  padding: 28px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--brand);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 28px rgba(16, 35, 29, 0.2);
  font-weight: 900;
  text-decoration: none;
}

.floating-whatsapp:hover {
  background: var(--brand-dark);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .lead-card {
    width: min(680px, 100%);
    margin: -120px 24px 0 auto;
    position: relative;
    z-index: 2;
  }

  .filter-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: auto;
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-whatsapp {
    padding-inline: 14px;
  }

  .main-nav {
    gap: 18px;
    font-size: 13px;
  }

  .hero-section,
  .filter-section,
  .section-shell,
  .simulator-section,
  .cta-section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .hero-media {
    min-height: 620px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(8, 26, 20, 0.12) 0%, rgba(8, 26, 20, 0.86) 100%);
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 26px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .lead-card {
    width: 100%;
    margin: 0;
    padding: 24px;
  }

  .filter-panel,
  .services-grid,
  .simulator-section,
  .cta-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .simulator-copy {
    position: static;
  }

  .simulator-grid,
  .simulator-actions {
    grid-template-columns: 1fr;
  }

  .cta-button,
  .hero-actions .whatsapp,
  .ghost-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-media {
    min-height: 570px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .simulator-panel,
  .section-shell,
  .cta-section,
  .site-footer {
    padding: 22px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }
}
