/* ============================================================
   Dra. Janaína Traina — Landing Page
   Mobile-first · foco em conversão para WhatsApp
   ============================================================ */

:root {
  /* Cores */
  --bg: #FDFCFF;
  --bg-tint: #F6F1FC;
  --white: #FFFFFF;
  --ink: #33254E;          /* texto principal (roxo-escuro) */
  --muted: #675E7C;        /* texto secundário */
  --purple: #7C4DC4;       /* marca */
  --purple-dark: #5E3A9E;
  --purple-soft: #EFE8FB;
  --teal: #12968B;
  --teal-soft: #E2F6F3;
  --wa: #1DA851;           /* WhatsApp */
  --wa-dark: #168A41;
  --border: #E9E2F5;

  /* Tipografia */
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;

  /* Ritmo */
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 8px 30px rgba(51, 37, 78, .08);
  --shadow-lg: 0 18px 50px rgba(51, 37, 78, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--purple); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

em { font-style: italic; color: var(--purple); }

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow { max-width: 760px; }

/* Acessibilidade */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--purple); color: #fff;
  padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* ============ Botões ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-wa {
  background: linear-gradient(180deg, #23BA5D 0%, var(--wa) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 168, 81, .35);
}
.btn-wa:hover { background: linear-gradient(180deg, var(--wa) 0%, var(--wa-dark) 100%); box-shadow: 0 10px 28px rgba(29, 168, 81, .45); }

.btn-lg { min-height: 52px; padding: 13px 20px; font-size: 15.5px; }
.btn-lg svg { width: 20px; height: 20px; }

.btn-block { width: 100%; }

.btn-outline {
  background: var(--white);
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple-soft); }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 252, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 48px; }
.brand-logo { height: 38px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 14.5px; color: var(--purple-dark); white-space: nowrap; }
.brand-text small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.btn-topbar { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-topbar-full { display: none; }
.btn-topbar-short { display: inline; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(124, 77, 196, .10) 0%, transparent 100%),
    radial-gradient(50% 40% at 0% 100%, rgba(18, 150, 139, .08) 0%, transparent 100%),
    linear-gradient(180deg, #F8F4FE 0%, var(--bg) 100%);
  padding-block: 40px 56px;
}
.hero-grid { display: grid; gap: 32px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--purple-dark);
  font-size: 13.5px; font-weight: 800;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.chip svg { width: 15px; height: 15px; color: var(--teal); }

.hero h1 { font-size: clamp(30px, 7.6vw, 52px); margin-bottom: 16px; }

.hero-sub { font-size: 17px; color: var(--muted); max-width: 34em; margin-bottom: 26px; }

.hero-cta { margin-bottom: 8px; }
.hero-micro { font-size: 13.5px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 6px; }

.hero-photo { max-width: 440px; margin-inline: auto; width: 100%; }
.hero-photo figure { position: relative; }
.hero-photo figure::before {
  content: '';
  position: absolute; inset: 14px -14px -14px 14px;
  background: linear-gradient(135deg, var(--purple-soft) 0%, var(--teal-soft) 100%);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero-photo img {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
/* ============ Seções ============ */
.section { padding-block: 64px; }
.section-tint { background: var(--bg-tint); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 5.6vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

h2 em { display: inline; }

/* Cards de sinais */
.cards-grid { display: grid; gap: 14px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 18.5px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--muted); }

.card-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple);
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.teal { background: var(--teal-soft); color: var(--teal); }

.mini-cta {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--purple-soft) 0%, var(--teal-soft) 100%);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.mini-cta p { font-size: 16.5px; max-width: 30em; }

/* Especialidades */
.spec-grid { display: grid; gap: 14px; }

.spec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.spec-card h3 { font-size: 21px; margin-bottom: 6px; }
.spec-card > p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.spec-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.spec-card li {
  font-size: 14.5px; color: var(--ink);
  padding-left: 20px; position: relative;
}
.spec-card li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.spec-featured { border: 2px solid var(--purple); position: relative; }
.spec-featured h3 { color: var(--purple); }

/* Sobre */
.sobre-grid { display: grid; gap: 32px; align-items: center; }
.sobre-photo { max-width: 400px; margin-inline: auto; width: 100%; }
.sobre-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.sobre-copy h2 { font-size: clamp(26px, 5.6vw, 36px); margin-bottom: 16px; }
.sobre-copy > p { color: var(--muted); font-size: 16.5px; margin-bottom: 22px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15.5px; }
.check-list svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%; padding: 4px;
}

/* Passos */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: passo; }
.steps li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }
.step-num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: 34px; color: var(--purple-soft);
  -webkit-text-stroke: 1px var(--purple);
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px;
  font-weight: 800; font-size: 16px;
  min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-arrow {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple);
  transition: transform .2s ease;
}
.faq-arrow svg { width: 16px; height: 16px; }
.faq details[open] .faq-arrow { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; }

/* Localização */
.local-grid { display: grid; gap: 28px; }
.local-copy h2 { font-size: clamp(26px, 5.6vw, 36px); margin-bottom: 20px; }
.local-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.local-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.local-list svg { width: 22px; height: 22px; color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.local-list a { font-weight: 800; }
.local-map iframe {
  width: 100%; height: 300px; border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CTA final */
.cta-final {
  background:
    radial-gradient(70% 80% at 80% 10%, rgba(18, 150, 139, .25) 0%, transparent 100%),
    linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: #fff;
  text-align: center;
  padding-block: 72px;
}
.cta-final h2 { font-size: clamp(26px, 6vw, 40px); max-width: 18em; margin: 0 auto 12px; }
.cta-final > .container > p { color: rgba(255, 255, 255, .85); font-size: 17px; margin-bottom: 28px; }
.cta-final .btn-wa { box-shadow: 0 12px 36px rgba(0, 0, 0, .3); }
.cta-micro { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .75) !important; margin-bottom: 0 !important; }

/* Footer */
.footer {
  background: #2A1E42;
  color: rgba(255, 255, 255, .75);
  padding-block: 32px;
  font-size: 14px;
}
.footer-inner { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.footer strong { color: #fff; font-family: var(--font-head); }
.footer a { color: #C9B4F0; font-weight: 700; }
.footer-copy { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 8px; }

/* ============ Botão flutuante (desktop) ============ */
.wa-float {
  display: none;
  position: fixed; right: 26px; bottom: 26px; z-index: 110;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(180deg, #23BA5D 0%, var(--wa) 100%);
  color: #fff;
  place-items: center;
  box-shadow: 0 10px 30px rgba(29, 168, 81, .45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .wa-float { transition: none; }
}

/* ============================================================
   DESKTOP / TABLET
   ============================================================ */
@media (min-width: 768px) {
  .container { padding-inline: 32px; }

  .btn-topbar-full { display: inline; }
  .btn-topbar-short { display: none; }

  .btn-lg { min-height: 58px; padding: 16px 28px; font-size: 17px; }
  .btn-lg svg { width: 24px; height: 24px; }

  .brand-logo { height: 46px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 10.5px; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .spec-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .mini-cta { flex-direction: row; justify-content: space-between; text-align: left; padding: 28px 32px; }

  .local-grid { grid-template-columns: 1fr 1.2fr; align-items: center; }
  .local-map iframe { height: 360px; }

  .wa-float { display: grid; }
}

@media (min-width: 1000px) {
  .hero { padding-block: 72px 88px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .hero-photo { margin-inline: 0 auto; }
  .hero-sub { font-size: 18px; }

  .section { padding-block: 96px; }
  .section-head { margin-bottom: 52px; }

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

  .sobre-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .sobre-photo { margin-inline: 0; }

  .card { padding: 26px; }
  .spec-card { padding: 30px 26px; }
}
