:root{
  --bg:#ffffff;
  --bg-soft:#f5f8f6;
  --card:#ffffff;
  --card-2:#f0f7f3;
  --border:#e2e8e5;
  --text:#0f1e18;
  --muted:#5c7268;
  --accent:#059669;
  --accent-grad:linear-gradient(135deg,#10b981,#059669);
  --green:#059669;
  --amber:#d97706;
  --purple:#7c3aed;
  --pink:#db2777;
  --radius:16px;
  --shadow:0 4px 20px rgba(15,30,24,.08);
}


/* ===== FIX TEMA CLARO — sobrescreve cores legadas ===== */
.content p,
.content ul,
.content li { color: #334155; }        /* texto principal legível */

.content a { color: var(--accent); }   /* links em verde */

/* Corrige links com cor azul hardcoded no HTML (#93c5fd) */
a[style*="#93c5fd"] { color: var(--accent) !important; }

/* Header sólido escuro combina bem com corpo claro (estilo Zillow) */
.site-header {
  background: #16233a;
  border-bottom: 1px solid #16233a;
}
.nav-links a { color: #b9c4d4; }
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.logo-text, .logo-text strong { color: #fff; }

/* Hero sem gradiente escuro */
.hero p, .subtitle { color: #5c7268; }


/* 1. Fundo do body — remova o gradiente escuro */
body {
  background: var(--bg);
  color: var(--text);
}

/* 2. Header — troque o rgba escuro */
.site-header {
  background: rgba(255, 255, 255, 0.85);
}

/* 3. Logo text — estava forçado branco */
.logo-text, .logo-text strong { color: #0f1e18; }

/* 4. Textos de conteúdo — estavam em cinza-claro (#cbd5e1) */
.content p, .content ul, .content li { color: #334155; }


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, #172033, transparent), var(--bg);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo-text strong {
  font-weight: 700;
  color: #ffffff;
}

.logo span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== MENU HAMBÚRGUER ===== */

/* Botão escondido no desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Links - DESKTOP (padrão) */
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--card);
}
.nav-links a.active {
  color: var(--text);
  background: var(--card-2);
}

/* ===== MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Menu vira dropdown e fica ESCONDIDO até clicar */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    left: auto;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 100;
  }

  /* Quando o JS adiciona .open, mostra */
  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.hero p,
.subtitle {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== AD SLOT ===== */
.ad-slot {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  padding: 22px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 840px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CARD ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-result {
  background: linear-gradient(180deg, var(--card-2), var(--card));
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 22px;
}

/* ===== FIELDS ===== */
.field {
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.badge {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .prefix {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-weight: 600;
}
.input-wrap input {
  padding-left: 30px !important;
}
.field input[type="number"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  transition: 0.2s;
}
.field input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  cursor: pointer;
}

/* ===== RESULT ===== */
.result-main {
  text-align: center;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.result-main .label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.result-main .value {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-main .sub {
  color: var(--amber);
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 18px;
}

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
}
.breakdown .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.breakdown .row:last-child {
  border: none;
}
.breakdown .row span:first-child {
  display: flex;
  align-items: center;
  color: var(--muted);
}
.breakdown .row span:last-child {
  font-weight: 700;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 9px;
}
.dot-blue   { background: var(--accent); }
.dot-green  { background: var(--green); }
.dot-amber  { background: var(--amber); }
.dot-purple { background: var(--purple); }
.dot-pink   { background: var(--pink); }

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: var(--bg);
  border-radius: 12px;
  padding: 18px;
}
.summary-item {
  display: flex;
  flex-direction: column;
}
.summary-item span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 3px;
}
.summary-item strong {
  font-size: 1.02rem;
}

/* ===== CONTENT / SEO ===== */
.content {
  margin-top: 40px;
  max-width: 820px;
  line-height: 1.7;
}
.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 34px 0 12px;
  letter-spacing: -0.01em;
}
.content h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 22px 0 8px;
}
.content p {
  color: #777c83;
  margin-bottom: 14px;
}
.content ul {
  margin: 0 0 16px 22px;
  color: #cbd5e1;
}
.content li {
  margin-bottom: 6px;
}
.formula {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 1.05rem;
  color: #93c5fd;
  margin: 10px 0 16px;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding: 42px 0 24px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.footer-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
  max-width: 300px;
}
.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: 0.2s;
}
.footer-grid a:hover {
  color: var(--text);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ===== PÁGINAS INTERNAS ===== */
.content.page {
  padding-top: 40px;
}
.content.page h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

/* ===== FORMULÁRIO DE CONTATO ===== */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 18px 0 10px;
  box-shadow: var(--shadow);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.contact-form textarea {
  resize: vertical;
}
.form-msg {
  color: var(--green);
  font-size: 0.92rem;
  margin-top: 12px;
  font-weight: 500;
}

/* ===== CALCULATOR LAYOUT ===== */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0 48px;
}
@media (max-width: 820px) {
  .calc-layout { grid-template-columns: 1fr; }
}

.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.input-group { margin-bottom: 16px; }
.input-group label {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.input-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
  box-sizing: border-box;
}
.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.input-prefix {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.input-prefix span {
  padding: 0 12px;
  color: var(--muted);
  font-weight: 600;
  border-right: 1px solid var(--border);
}
.input-prefix input {
  border: none;
  background: transparent;
  box-shadow: none;
}
.input-prefix input:focus { box-shadow: none; }

/* ===== BOTÃO ===== */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #fff;
  padding: 13px 28px;
  font-size: 1rem;
  transition: transform .15s, opacity .2s;
  margin-top: 4px;
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.calc-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1.05rem;
}
.calc-btn:hover { transform: translateY(-2px); opacity: .95; }

/* ===== RESULTADOS CALC ===== */
.result-card { display: flex; flex-direction: column; }
.result-label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.result-value { font-size: 2.4rem; font-weight: 800; color: var(--green); }

.result-breakdown .row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.result-breakdown .row span { color: var(--muted); }
.result-breakdown .row.total {
  border-bottom: none;
  margin-top: 6px;
  padding-top: 16px;
  font-size: 1.05rem;
}
.result-note {
  margin-top: 18px;
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
  font-size: .92rem;
  line-height: 1.5;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  margin: 30px 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== FIX: logo emoji legado (fallback) ===== */
.logo span:not(.logo-text) {
  font-weight: 700;
  color: #fff;
  font-size: 1.35rem;
}

/* ===== BOTÃO SECUNDÁRIO / PRIMARY alias ===== */
.btn-primary {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #fff;
  padding: 13px 28px;
  font-size: 1rem;
  transition: transform .15s, opacity .2s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

/* Link states dentro de .content — melhora contraste no tema escuro */
.content a { color: #34d399; font-weight: 500; }
.content a:hover { text-decoration: underline; }
