/* ============================================================
   PIACERE — Folha de estilo compartilhada (todas as páginas)
   Cores da marca, tipografia, componentes e responsividade.
   ============================================================ */

:root {
  --navy: #233e6f;
  --navy-dark: #1a2f54;
  --navy-light: #2f4e87;
  --copper: #bd722c;
  --copper-light: #d08a45;
  --copper-dark: #9e5e21;
  --bg-soft: #f6f7fa;
  --max: 80rem;            /* max-w-7xl */
  --radius: 1rem;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

::selection { background: var(--copper); color: #fff; }

.font-display { font-family: "Hanken Grotesk", system-ui, sans-serif; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

.section { padding-block: 5rem; }
@media (min-width: 1024px) {
  .section { padding-block: 7rem; }
}

/* utilitários de cor de fundo */
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow img { width: 34px; height: auto; }

h1, h2, h3 { font-family: "Hanken Grotesk", system-ui, sans-serif; font-weight: 700; color: var(--navy); margin: 0; }

.h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(35,62,111,.72);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.01em;
  padding: .875rem 1.75rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .3s, color .3s, transform .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-copper {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(189,114,44,.45);
}
.btn-copper:hover { background: var(--copper-dark); }

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-arrow svg { transition: transform .3s; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #fff;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px -12px rgba(35,62,111,.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header-logo img { height: 34px; width: auto; }
@media (min-width: 768px) { .header-logo img { height: 38px; } }

.nav-desktop { display: none; align-items: center; gap: 2.25rem; }
.nav-desktop a {
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(35,62,111,.8);
  transition: color .2s;
}
.nav-desktop a:hover { color: var(--copper); }

.header-cta-desktop { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  border-radius: 9999px;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-cta-desktop { display: block; }
  .menu-toggle { display: none; }
}

/* menu mobile */
.nav-mobile {
  display: none;
  border-top: 1px solid rgba(35,62,111,.1);
  background: #fff;
  padding: 1.25rem;
}
.nav-mobile.open { display: block; }
.nav-mobile nav { display: flex; flex-direction: column; gap: .25rem; }
.nav-mobile a {
  border-radius: .5rem;
  padding: .75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  transition: background .2s;
}
.nav-mobile a:hover { background: rgba(35,62,111,.05); }
.nav-mobile .btn { width: 100%; margin-top: 1rem; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* ---------- Hero (imagem full-bleed + texto sobreposto) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding-top: 72px;
  overflow: hidden;
  background: #233e6f; /* fallback enquanto imagem carrega */
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
/* scrim sutil para garantir leitura do texto sobre a área central */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,47,84,.45) 0%, rgba(26,47,84,.30) 45%, rgba(26,47,84,.55) 100%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }

.hero-content {
  max-width: 46rem; margin-inline: auto; text-align: center;
  padding-block: 4rem;
}
@media (min-width: 1024px) { .hero-content { padding-block: 5rem; } }

.hero-symbol { display: flex; justify-content: center; }
.hero-symbol img { width: 50px; height: auto; }

.hero h1 {
  margin: 1.5rem auto 0; max-width: 40rem;
  color: #fff; font-weight: 700; line-height: 1.08;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  text-shadow: 0 2px 24px rgba(15,23,42,.35);
}
.hero-sub {
  margin: 1.5rem auto 0; max-width: 36rem;
  color: rgba(255,255,255,.9); font-size: 1.125rem; line-height: 1.7;
  text-shadow: 0 1px 16px rgba(15,23,42,.3);
}
.hero-actions {
  margin-top: 2.25rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* ---------- Credibilidade ---------- */
.credibility { background: #fff; padding-block: 4rem; border-bottom: 1px solid rgba(35,62,111,.1); }
@media (min-width: 1024px) { .credibility { padding-block: 5rem; } }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.stat { text-align: center; }
.stat-num { font-family: "Hanken Grotesk"; font-weight: 700; color: var(--navy); font-size: clamp(2.25rem, 5vw, 3rem); }
.stat-label { margin: .5rem auto 0; font-size: .875rem; color: rgba(35,62,111,.7); line-height: 1.35; max-width: 15rem; }

.recognized { margin-top: 3rem; text-align: center; color: rgba(35,62,111,.7); font-weight: 500; }

.logos-band {
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: logos-scroll 32s linear infinite;
}
.logos-band:hover .logos-track { animation-play-state: paused; }
.logos-track .logo-slot {
  flex: 0 0 auto;
  width: 180px;
  margin-inline: 1.5rem;
}
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; flex-wrap: wrap; justify-content: center; }
}
.logo-slot { height: 3.5rem; display: flex; align-items: center; justify-content: center; padding: .25rem; }
.logo-slot img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; opacity: .85; transition: opacity .25s; }
.logo-slot:hover img { opacity: 1; }

/* ---------- Section heading block ---------- */
.section-head { max-width: 42rem; }
.section-head .h2 { margin-top: 1rem; }
.section-head .lead { margin-top: 1rem; }

/* ---------- Soluções (cards) ---------- */
.cards-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4,1fr); } }

.card {
  height: 100%;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(35,62,111,.08);
  padding: 1.75rem;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -22px rgba(35,62,111,.45); }
.card-icon {
  display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center;
  border-radius: .75rem; background: rgba(35,62,111,.06); color: var(--navy);
  transition: background .3s, color .3s;
}
.card:hover .card-icon { background: var(--copper); color: #fff; }
.card h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.25rem; }
.card p { color: rgba(35,62,111,.7); font-size: .9375rem; line-height: 1.7; margin-top: .75rem; }

.center-cta { margin-top: 3rem; }

/* ---------- Diferencial ---------- */
.split-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .split-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.media-frame { position: relative; }
.media-frame > .img-wrap {
  overflow: hidden; border-radius: 1.5rem;
  box-shadow: 0 30px 60px -30px rgba(35,62,111,.5);
}
.media-frame img { width: 100%; height: 420px; object-fit: cover; }

.ecg-card {
  position: absolute; bottom: -1.5rem; right: -.5rem; width: 78%;
  border-radius: 1rem; background: var(--navy); padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
}
@media (min-width: 640px) { .ecg-card { right: 1.5rem; } }
.ecg-card p { color: rgba(255,255,255,.85); font-size: .875rem; margin: .25rem 0 0; }
.ecg-svg { width: 100%; height: 4rem; }

.feature-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.feature { display: flex; gap: 1rem; }
.feature-icon {
  margin-top: .125rem; display: flex; height: 2.75rem; width: 2.75rem; flex-shrink: 0;
  align-items: center; justify-content: center; border-radius: .75rem;
  background: rgba(189,114,44,.1); color: var(--copper);
}
.feature h3 { font-size: 1.125rem; font-weight: 600; }
.feature p { color: rgba(35,62,111,.7); font-size: .9375rem; line-height: 1.7; margin: .25rem 0 0; }
.split-text .h2 { margin-bottom: 1.25rem; }
.split-text > .lead { margin-bottom: 0; }

/* ---------- Como funciona (navy) ---------- */
.how { position: relative; overflow: hidden; }
.how-dots {
  position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 26px 26px;
}
.how .container { position: relative; }
.how .eyebrow { color: var(--copper-light); }
.how .h2 { color: #fff; }
.steps-grid {
  margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4,1fr); } }
.step {
  height: 100%; border-radius: 1rem; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); padding: 1.75rem;
  transition: transform .3s, background .3s;
}
.step:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-icon { display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: .75rem; background: var(--copper); color: #fff; }
.step-num { font-family: "Hanken Grotesk"; font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.1); line-height: 1; }
.step h3 { color: #fff; font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; }
.step p { color: rgba(255,255,255,.7); font-size: .9375rem; line-height: 1.7; margin-top: .75rem; }

/* ---------- Operadoras ---------- */
.op-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 640px) { .op-grid { grid-template-columns: repeat(4,1fr); } }
.op-slot {
  height: 5rem; border-radius: .75rem; border: 1px solid rgba(35,62,111,.08);
  background: #fff; display: flex; align-items: center; justify-content: center; padding: 1rem 1.25rem;
  transition: box-shadow .25s, transform .25s;
}
.op-slot:hover { box-shadow: 0 12px 28px -16px rgba(35,62,111,.35); transform: translateY(-3px); }
.op-slot img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Prova social ---------- */
.clients-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 640px) { .clients-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .clients-grid { grid-template-columns: repeat(6,1fr); } }
.client-slot {
  height: 5rem; border-radius: .75rem; border: 1px dashed rgba(35,62,111,.2);
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.client-slot span { font-size: 11px; color: rgba(35,62,111,.35); }
.text-center { text-align: center; }

/* ---------- CTA final ---------- */
.final-cta { position: relative; overflow: hidden; padding-block: 6rem; }
@media (min-width: 1024px) { .final-cta { padding-block: 8rem; } }
.final-symbol { position: absolute; top: -2.5rem; right: -1.5rem; opacity: .1; }
.final-symbol img { width: 320px; height: auto; }
.final-inner { position: relative; max-width: 48rem; margin-inline: auto; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.875rem, 5vw, 3rem); line-height: 1.15; }
.final-cta p { color: rgba(255,255,255,.8); font-size: 1.125rem; margin-top: 1.5rem; }
.final-cta .btn-wrap { margin-top: 2.25rem; display: flex; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2.5rem;
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5,1fr); gap: 2rem; } }
.footer-brand { grid-column: span 2; }
@media (min-width: 1024px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 2.25rem; width: auto; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .875rem; margin-top: 1rem; max-width: 20rem; line-height: 1.7; }
.footer-col h3 { color: #fff; font-size: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--copper-light); }
.footer-contact ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.65); font-size: .875rem; transition: color .2s; }
.footer-contact a:hover { color: var(--copper-light); }
.footer-contact svg { width: 16px; height: 16px; }
.footer-social { margin-top: 1.25rem; display: flex; gap: .75rem; }
.footer-social a { display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(255,255,255,.1); transition: background .2s; }
.footer-social a:hover { background: var(--copper); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.75rem;
  display: flex; flex-direction: column; gap: .75rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom p { margin: 0; }
.footer-legal { color: rgba(255,255,255,.5); font-size: .75rem; line-height: 1.6; }
.footer-copy { color: rgba(255,255,255,.4); font-size: .75rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 40;
  display: flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center;
  border-radius: 9999px; background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .3s, background-color .3s;
}
.wa-float:hover { transform: scale(1.08); background: #1da851; }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
.ecg-path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.ecg-path.is-drawn { animation: ecg-draw 2.4s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

.hero-fade { opacity: 0; transform: translateY(28px); animation: hero-up .9s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes hero-up { to { opacity: 1; transform: translateY(0); } }

.heartbeat { transform-origin: center; animation: heartbeat 1.7s ease-in-out infinite; }
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  12% { transform: scale(1.13); }
  24% { transform: scale(1); }
  36% { transform: scale(1.07); }
  50% { transform: scale(1); }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ecg-path, .ecg-path.is-drawn { animation: none !important; stroke-dashoffset: 0 !important; }
  .hero-fade { animation: none !important; opacity: 1 !important; transform: none !important; }
  .heartbeat { animation: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Botão outline branco (sobre fundo escuro) ---------- */
.btn-outline-white { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* ---------- Autoridade ---------- */
.authority-img {
  overflow: hidden; border-radius: 1.5rem;
  box-shadow: 0 30px 60px -30px rgba(35,62,111,.5);
}
.authority-img img { width: 100%; height: 460px; object-fit: cover; }

/* ---------- Faixa curta (gestão de saúde) ---------- */
.band-narrow { max-width: 42rem; margin-inline: auto; text-align: center; }
.band-narrow .eyebrow { justify-content: center; }
.band-narrow .h2 { margin-top: 1rem; }
.band-narrow .lead { margin-top: 1.25rem; }
.band-narrow .btn { margin-top: 2rem; }

/* ---------- Dropdown do menu (Soluções) ---------- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav-dropdown .caret { width: 14px; height: 14px; transition: transform .25s; }
.nav-dropdown:hover .caret, .nav-dropdown:focus-within .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px; background: #fff; border-radius: .75rem;
  box-shadow: 0 18px 40px -16px rgba(35,62,111,.45);
  border: 1px solid rgba(35,62,111,.08); padding: .5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease; z-index: 60;
}
.dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block; padding: .625rem .875rem; border-radius: .5rem;
  font-size: .9rem; font-weight: 500; color: var(--navy); white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(35,62,111,.05); color: var(--copper); }

/* CTA do menu mobile: branco e negrito para contraste */
.nav-mobile .btn-copper { color: #fff; font-weight: 700; background: var(--copper); }
.nav-mobile .btn-copper:hover,
.nav-mobile .btn-copper:focus,
.nav-mobile .btn-copper:active { background: var(--copper-dark); color: #fff; }

/* ---------- Accordion Soluções (menu mobile) ---------- */
.nav-mobile-group { display: flex; flex-direction: column; }
.nav-mobile-toggle {
  display: flex; align-items: center; justify-content: flex-start; gap: .4rem;
  width: 100%; background: transparent; border: none; cursor: pointer;
  border-radius: .5rem; padding: .75rem; font-size: 1rem; font-weight: 500;
  color: var(--navy); font-family: inherit; text-align: left;
}
.nav-mobile-toggle:hover { background: rgba(35,62,111,.05); }
.nav-mobile-toggle .caret { width: 16px; height: 16px; transition: transform .25s; }
.nav-mobile-toggle.open .caret { transform: rotate(180deg); }
.nav-mobile-sub {
  display: flex; flex-direction: column; overflow: hidden;
  max-height: 0; transition: max-height .3s ease;
}
.nav-mobile-sub.open { max-height: 320px; }
.nav-mobile-sub a {
  padding: .625rem .75rem .625rem 1.75rem;
  font-size: .95rem; font-weight: 500; color: rgba(35,62,111,.8); border-radius: .5rem;
}
.nav-mobile-sub a:hover { background: rgba(35,62,111,.05); }
