/* =====================================================================
   Aster Templates — Design System base
   CSS único e reutilizável para todas as landing pages.
   Cada nicho só troca o tema aplicando uma classe no <body>
   (ex.: <body class="theme-medico">). Veja o bloco "TEMAS" abaixo.
   ===================================================================== */

/* ---------- Tokens globais ---------- */
:root {
  /* Cor primária padrão (sobrescrita por cada tema) */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff4ff;
  --accent: #f59e0b;

  /* Neutros */
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e5e9f0;
  --surface: #ffffff;
  --surface-2: #f7f9fc;

  /* Tipografia */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Forma e profundidade */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);

  /* Layout */
  --container: 1140px;
  --gap: 24px;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Utilitários de layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--surface-2); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--body); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head { max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { margin-top: 14px; font-size: 1.08rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px var(--primary); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }
/* CTA de WhatsApp — usado nos botões principais de conversão */
.btn--wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .9); }
.btn--wa:hover { background: #1ebe5d; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--wa.btn--light { background: #fff; color: #128c3e; }
.btn--wa.btn--light:hover { background: #f0fff5; }

/* ---------- Cabeçalho / navegação ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 1.1rem; overflow: hidden;
}
.brand .logo--img { background: #000; }
.brand .logo--img img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--body); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 0%, var(--primary-soft), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, var(--primary-soft), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero p { margin-top: 22px; font-size: 1.15rem; max-width: 30ch; }
.hero .lead { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust .rating { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.stars { color: var(--accent); letter-spacing: 2px; }

.hero-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px;
  aspect-ratio: 4 / 4.4; display: flex; flex-direction: column; justify-content: space-between;
}
.hero-card .visual {
  flex: 1; border-radius: var(--radius); margin-bottom: 22px;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; color: #fff; font-size: 4.5rem;
}
.hero-badge {
  position: absolute; right: -16px; top: 34px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 10px; align-items: center;
}
.hero-badge .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.2rem; }
.hero-badge small { color: var(--muted); display: block; font-size: .78rem; }
.hero-badge strong { color: var(--ink); }

/* ---------- Faixa de logos / parceiros ---------- */
.logos { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; align-items: center; opacity: .65; }
.logos-row span { font-weight: 700; color: var(--muted); font-size: 1.05rem; }

/* ---------- Grade de cards (serviços / features) ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: .98rem; }

/* ---------- Lista de benefícios com check ---------- */
.checklist li { position: relative; padding-left: 34px; margin-bottom: 16px; color: var(--body); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Bloco "sobre / split" ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
  border-radius: var(--radius-lg); min-height: 380px; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; color: #fff; font-size: 5rem;
}

/* ---------- Estatísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primary); font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--body); font-size: .95rem; }

/* ---------- Depoimentos ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; }
.quote .who b { color: var(--ink); display: block; font-size: .95rem; }
.quote .who small { color: var(--muted); }

/* ---------- Preços / planos ---------- */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow); position: relative; }
.price-card.featured::after {
  content: "Mais escolhido"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
}
.price-card .amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); margin: 12px 0; letter-spacing: -.03em; }
.price-card .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }

/* ---------- Faixa CTA ---------- */
.cta-band {
  background: linear-gradient(130deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); padding: 64px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 14px auto 30px; max-width: 50ch; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.info-item .ico { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.3rem; }
.info-item b { color: var(--ink); display: block; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 14px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #cbd5e1; display: block; margin-bottom: 10px; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand .logo { background: var(--primary); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s ease, transform .15s ease;
}
.socials a:hover { background: var(--primary); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 999px; background: #25d366; color: #fff;
  font-weight: 700; font-size: 1rem; box-shadow: var(--shadow-lg);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float .wa-ico { font-size: 1.5rem; line-height: 1; }
.whatsapp-float:hover { transform: translateY(-2px) scale(1.03); }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: wa-pulse 2.2s infinite;
}
@keyframes wa-pulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 720px) { .whatsapp-float .wa-label { display: none; } .whatsapp-float { padding: 0; width: 58px; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float::before { animation: none; } }

/* =====================================================================
   ANIMAÇÃO DE ENTRADA (reveal on scroll, sem JS pesado)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   TEMAS — cada landing page aplica UMA destas classes no <body>.
   Só mudam as cores; toda a estrutura/CSS é reaproveitada.
   ===================================================================== */
.theme-medico   { --primary:#0ea5e9; --primary-dark:#0369a1; --primary-soft:#e0f2fe; --accent:#22c55e; }
.theme-advogado { --primary:#1e3a5f; --primary-dark:#0f1f33; --primary-soft:#eaeef3; --accent:#c8a24a; }
.theme-dentista { --primary:#06b6d4; --primary-dark:#0e7490; --primary-soft:#e0fbff; --accent:#3b82f6; }
.theme-clinica  { --primary:#10b981; --primary-dark:#047857; --primary-soft:#e3fbf1; --accent:#0ea5e9; }
.theme-prestador{ --primary:#f97316; --primary-dark:#c2410c; --primary-soft:#fff0e6; --accent:#1e293b; }
.theme-loja     { --primary:#7c3aed; --primary-dark:#5b21b6; --primary-soft:#f1ebfe; --accent:#ec4899; }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero p, .hero .lead { max-width: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split .order-first { order: -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px;
  }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-badge { position: static; margin-top: 18px; }
}
