/* ============================================================= */
/*  LANDING PAGE — Tráfego pago para médicos, dentistas e clínicas */
/*  CSS puro, mobile-first, sem dependências externas             */
/* ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #0f2233;
  --white: #ffffff;
  --bg: #f5f7f9;
  --border: #dce3e8;
  --muted: #5d6872;
  --blue: #246bfd;
  --blue-hover: #1b57d6;
  --blue-soft: #eaf1ff;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 34, 51, 0.04), 0 1px 3px rgba(15, 34, 51, 0.04);
  --shadow: 0 2px 10px rgba(15, 34, 51, 0.05), 0 10px 30px rgba(15, 34, 51, 0.05);

  --container: 1120px;
  --container-narrow: 760px;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--navy);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(56px, 5vw + 32px, 96px);
}

.section--alt {
  background: var(--bg);
}

.section__head {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(28px, 4vw, 44px);
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  line-height: 1.18;
}

.section__intro {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06rem;
}

.section__note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(36, 107, 253, 0.25);
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--lg {
  font-size: 1.06rem;
  padding: 16px 30px;
  min-height: 54px;
  border-radius: var(--radius);
}

.btn--sm {
  font-size: 0.94rem;
  padding: 10px 18px;
  min-height: 42px;
}

:focus-visible {
  outline: 3px solid rgba(36, 107, 253, 0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
}

/* ---------- Placeholders ---------- */
.placeholder {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.placeholder--logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 6;
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #eef2f5, #f5f7f9);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  padding: 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(44px, 5vw + 20px, 84px);
  background:
    radial-gradient(1100px 460px at 80% -8%, rgba(36, 107, 253, 0.06), transparent 60%),
    var(--white);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.95rem, 1.35rem + 2.7vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 800;
}

.hero__subtitle {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
  max-width: 48ch;
}

.hero__actions {
  margin-top: 32px;
}

.hero__reassurance {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46ch;
}

.hero__media {
  display: none;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card--flat {
  box-shadow: none;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Pill list (Para quem é) ---------- */
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 820px;
  margin-inline: auto;
}

.pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ---------- Steps (Como funciona) ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 14px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Check list (Qualificação) ---------- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin-inline: auto;
}

.check-list li {
  position: relative;
  padding-left: 38px;
  color: var(--navy);
  font-size: 1.02rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23246bfd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Cases / Depoimento ---------- */
.case-card {
  min-height: 120px;
}

.case-card__result {
  margin-top: 10px;
  color: var(--navy);
  font-weight: 600;
}

.testimonial {
  margin: 28px auto 0;
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.55;
}

.testimonial figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Investimento ---------- */
.invest-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  text-align: center;
}

.invest-card h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.invest-card__price {
  margin-top: 16px;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem);
  color: var(--navy);
  font-weight: 500;
}

.invest-card__price strong {
  font-weight: 800;
}

.invest-card__media {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

.invest-card .btn {
  margin-top: 26px;
}

/* ---------- FAQ (accordion) ---------- */
.faq {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  margin: 0;
  font-size: inherit;
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 2px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq__icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq__icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.faq__trigger[aria-expanded="true"] .faq__icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq__panel p {
  margin: 0;
  padding: 0 2px 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Progressive enhancement: só recolhe quando o JS está ativo.
   Sem JS, os painéis permanecem visíveis (conteúdo acessível). */
.js .faq__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease);
}

.js .faq__item.is-open .faq__panel {
  max-height: 560px;
}

/* ---------- CTA final ---------- */
.cta-final__inner {
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
}

.cta-final p {
  margin: 16px auto 30px;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.06rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding-block: 40px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.site-footer__brand {
  font-weight: 700;
  color: var(--navy);
}

.site-footer__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ---------- Botão WhatsApp fixo (mobile) ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 34, 51, 0.18);
  transform: translateY(140%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
}

.wa-float.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.wa-float__icon {
  flex: 0 0 auto;
}

/* ============================================================= */
/*  RESPONSIVO                                                    */
/* ============================================================= */

/* Grades a partir de tablets */
@media (min-width: 600px) {
  .container {
    padding-inline: 24px;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero em duas colunas no desktop */
@media (min-width: 940px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero__media {
    display: block;
  }
  .section__head {
    /* leve refinamento tipográfico no desktop */
    margin-bottom: clamp(36px, 4vw, 52px);
  }
}

/* Botão WhatsApp fixo apenas no mobile */
@media (max-width: 767px) {
  .wa-float {
    display: inline-flex;
  }
  body.has-wa-float {
    padding-bottom: 84px;
  }
}

/* ---------- Preferência de movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
