/* ============================================================
   MedFlow Ads — style.css
   Identidade: fundo navy escuro, ciano neon (#00E5C4),
   azul (#37C8FF), gradientes suaves e bordas arredondadas.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #060c1c;            /* fundo principal */
  --bg-alt: #081228;        /* fundo de seções alternadas */
  --panel: #0c1730;         /* cartões e painéis */
  --panel-2: #10203f;
  --line: rgba(140, 172, 230, 0.14);

  --cyan: #00e5c4;          /* verde-ciano neon da marca */
  --blue: #37c8ff;          /* azul claro */
  --blue-deep: #2e7bff;

  --text: #eef4ff;
  --muted: #93a5c6;

  --grad: linear-gradient(90deg, var(--cyan), var(--blue));

  --radius: 18px;
  --radius-sm: 12px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1140px;
  --header-h: 76px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Cinto de segurança: nada pode ultrapassar a largura da tela */
*, *::before, *::after { min-width: 0; }

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* ---------- Tipografia utilitária ---------- */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 196, 0.35);
  background: rgba(0, 229, 196, 0.07);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--grad);
  color: #04121c;
  box-shadow: 0 8px 24px rgba(0, 229, 196, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 229, 196, 0.38);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--blue);
  background: rgba(55, 200, 255, 0.06);
}

.btn--lg { font-size: 1.08rem; padding: 1.05rem 2.2rem; }
.btn--sm { font-size: 0.85rem; padding: 0.65rem 1.2rem; }
.btn--nav { font-size: 0.85rem; padding: 0.6rem 1.15rem; }

.btn__icon { width: 1.2em; height: 1.2em; }

/* ============================================================
   Cabeçalho
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 12, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__brand { display: flex; align-items: center; gap: 0.6rem; }

.header__logo { width: 68px; height: auto; }

.header__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.header__name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text); }

/* Botão hambúrguer (mobile) */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.header__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 5rem;
  overflow: hidden;
}

/* Brilhos suaves de fundo */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.hero__glow--1 {
  width: min(480px, 70vw); height: min(480px, 70vw);
  background: #0b3f63;
  top: -140px; right: -10%;
}
.hero__glow--2 {
  width: min(380px, 60vw); height: min(380px, 60vw);
  background: rgba(0, 229, 196, 0.35);
  bottom: -180px; left: -10%;
}

.hero__center {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
}
.hero__center .hero__content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__center .hero__text { margin-inline: auto; }
.hero__center .hero__actions { justify-content: center; }
.hero__center .pulse-line { margin-inline: auto; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.pulse-line {
  width: min(420px, 100%);
  height: 40px;
  margin: 1.1rem 0 0.4rem;
}
.pulse-line path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: pulseDraw 2.2s ease forwards 0.4s;
}
@keyframes pulseDraw { to { stroke-dashoffset: 0; } }

.hero__text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============================================================
   Seções
   ============================================================ */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section__text { color: var(--muted); font-size: 1.03rem; }
.section__text--center { margin-inline: auto; max-width: 68ch; }

.section__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.section__media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  max-width: 420px;
  margin-inline: auto;
  box-shadow: 0 24px 60px rgba(2, 8, 22, 0.6);
}

/* Painel de serviços em texto (substitui a arte na seção Sobre) */
.about-panel {
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 8, 22, 0.5);
}
.about-panel__glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 229, 196, 0.18), transparent 70%);
  pointer-events: none;
}
.about-panel__eyebrow {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.4rem;
}
.about-panel__list { position: relative; display: grid; gap: 1.25rem; }
.about-panel__item { display: flex; gap: 1rem; align-items: flex-start; }
.about-panel__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(0, 229, 196, 0.08);
  border: 1px solid rgba(0, 229, 196, 0.3);
}
.about-panel__icon svg { width: 22px; height: 22px; }
.about-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.15rem;
}
.about-panel__text { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.about-panel__foot {
  position: relative;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}

/* Lista com marcadores de check */
.checklist { margin-top: 1.6rem; display: grid; gap: 0.75rem; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 12.5 L10 17 L19 7" fill="none" stroke="%2304121c" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/70% no-repeat,
    linear-gradient(90deg, var(--cyan), var(--blue));
}

/* ============================================================
   Cards de serviços
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 196, 0.4);
  box-shadow: 0 18px 48px rgba(2, 8, 22, 0.55);
}

.card__media {
  background: #05090f;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card__media--icon { padding: 2rem; }
.card__icon { width: 96px; height: 96px; }

.card__body { padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; gap: 0.85rem; }

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.card__text { color: var(--muted); font-size: 0.96rem; }

.card__list { display: grid; gap: 0.5rem; margin-top: 0.2rem; }
.card__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--text);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--grad);
}

/* ============================================================
   Fluxo visual (pesquisa → venda)
   ============================================================ */
.flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
  counter-reset: flow;
}

.flow__step {
  position: relative;
  flex: 1 1 150px;
  max-width: 190px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

/* Seta entre etapas */
.flow__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 1;
}

.flow__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(0, 229, 196, 0.08);
  border: 1px solid rgba(0, 229, 196, 0.3);
}
.flow__icon svg { width: 24px; height: 24px; }

.flow__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
}

/* ============================================================
   Como funciona — etapas
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: rgba(55, 200, 255, 0.45); transform: translateY(-4px); }

.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--grad);
  color: #04121c;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 1rem;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.step__text { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   Benefícios
   ============================================================ */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.benefit {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem 1.15rem 2.9rem;
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}
.benefit:hover { border-color: rgba(0, 229, 196, 0.4); }
.benefit::before {
  content: "";
  position: absolute;
  left: 1.05rem; top: 50%;
  transform: translateY(-50%);
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 12.5 L10 17 L19 7" fill="none" stroke="%2304121c" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/70% no-repeat,
    linear-gradient(90deg, var(--cyan), var(--blue));
}

/* ============================================================
   Para quem é
   ============================================================ */
.audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  max-width: 900px;
  margin-inline: auto;
}

.audience li {
  background: rgba(55, 200, 255, 0.06);
  border: 1px solid rgba(55, 200, 255, 0.3);
  border-radius: 100px;
  padding: 0.7rem 1.4rem;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ============================================================
   CTA final
   ============================================================ */
.cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta__glow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 92vw); height: 420px;
  background: radial-gradient(closest-side, rgba(0, 229, 196, 0.16), transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  margin-bottom: 1rem;
}

.cta__text {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 2.2rem;
}

/* ============================================================
   Rodapé
   ============================================================ */
.footer { padding: 4rem 0 2rem; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer__brand img { margin-bottom: 0.9rem; }

.footer__slogan {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.footer__list { display: grid; gap: 0.55rem; color: var(--muted); font-size: 0.95rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.6rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.footer__legal { display: flex; gap: 1.4rem; }
.footer__legal a { transition: color 0.2s ease; }
.footer__legal a:hover { color: var(--text); }

/* ============================================================
   Botão flutuante de WhatsApp
   ============================================================ */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #06101f;
  box-shadow: 0 10px 30px rgba(0, 229, 196, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 38px rgba(0, 229, 196, 0.55);
}
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   Animações de rolagem
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--delay  { transition-delay: 0.12s; }
.reveal--delay2 { transition-delay: 0.24s; }
.reveal--delay3 { transition-delay: 0.36s; }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respeita preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-line path { animation: none; stroke-dashoffset: 0; }
  .btn, .card, .step, .wa-float { transition: none; }
}

/* ============================================================
   Responsividade
   ============================================================ */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .section__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section__media { order: -1; }
  .about-panel { order: 0; }
}

@media (max-width: 760px) {
  .header__toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 12, 28, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4% 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__link { padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line); }
  .btn--nav { margin-top: 1rem; }

  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }

  /* Rodapé em coluna única, alinhado à esquerda */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer__brand img { margin-inline: auto; }
  .footer__col { align-items: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__legal { justify-content: center; }

  .flow { flex-direction: column; align-items: stretch; }
  .flow__step { max-width: none; }
  .flow__step:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.15rem;
    transform: translateX(-50%);
  }
  .flow { gap: 1.3rem; }

  .section { padding: 4rem 0; }
  .hero { padding-top: calc(var(--header-h) + 2.5rem); }
}
