/* ==========================================================================
   DriveKeep - estilos compartilhados do site institucional
   Reutilizado por index.html, calculadora e paginas de SEO.
   ========================================================================== */

:root {
  --navy: #0B1C31;
  --navy-2: #10233d;
  --green: #10B981;
  --green-dark: #0e9e6e;
  --red: #ef4444;
  --text: #1f2a37;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --border: #e3e9ef;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(11, 28, 49, 0.10);
  --shadow-lg: 0 24px 70px rgba(11, 28, 49, 0.22);
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
}
.brand img {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  object-fit: cover;
}
.brand span b { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32); }
.btn-whatsapp:hover { background: #1eb457; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(16,185,129,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero .tag {
  display: inline-block;
  background: rgba(16,185,129,0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.35);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero p {
  font-size: 1.15rem;
  color: #c8d3df;
  max-width: 540px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Section base ===== */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--navy);
  font-weight: 800;
  margin: 10px 0 12px;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.seo-copy { max-width: 820px; margin: 0 auto; }
.seo-copy h3 { color: var(--navy); font-size: 1.4rem; margin: 34px 0 12px; }
.seo-copy p { color: var(--muted); font-size: 1.08rem; margin: 0 0 18px; }
.seo-copy ul { color: var(--muted); font-size: 1.08rem; padding-left: 22px; margin: 0 0 18px; }
.seo-copy li { margin-bottom: 8px; }
.seo-copy strong { color: var(--text); }
.bg-soft { background: var(--bg-soft); }

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(16,185,129,0.22), transparent 55%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; margin: 0 0 14px; }
.cta p { color: #c8d3df; font-size: 1.12rem; max-width: 600px; margin: 0 auto 30px; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
  margin-bottom: 14px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--green); font-size: 1.5rem; font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 18px; }

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: #aebccb;
  padding: 54px 0 28px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.95rem; color: #8fa0b1; }
.footer-col h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-col a { display: block; color: #aebccb; text-decoration: none; margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { text-align: center; padding-top: 24px; font-size: 0.88rem; color: #7e8fa0; }

/* ===== Calculadora ===== */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.calc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.calc-card h3 { margin: 0 0 22px; color: var(--navy); font-size: 1.3rem; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.input-money { position: relative; }
.input-money .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-money input { padding-left: 40px; }
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.field input::placeholder { color: #aab6c2; }

/* Painel de resultado */
.result-card {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 90px;
}
.result-card .result-label { color: #9fb0c0; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.result-profit { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 900; margin: 6px 0 4px; line-height: 1.1; }
.result-profit.positive { color: #34d399; }
.result-profit.negative { color: #f87171; }
.result-perkm { color: #c8d3df; font-size: 1.05rem; margin-bottom: 24px; }
.result-perkm b { color: #fff; }
.result-breakdown { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 1rem;
}
.result-row .val { font-weight: 700; }
.result-row .val.plus { color: #34d399; }
.result-row .val.minus { color: #f87171; }
.result-note { color: #9fb0c0; font-size: 0.82rem; margin-top: 16px; }
.result-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.result-actions .btn { justify-content: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 54px 0 64px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .calc-wrap { grid-template-columns: 1fr; }
  .result-card { position: static; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-toggle { display: block; font-size: 1.6rem; color: var(--navy); }
  section { padding: 60px 0; }
}
