/* ============================================================
   SAÚDECLIN+ — Landing Page
   style.css
   ============================================================ */

/* ── TOKENS ── */
:root {
  --red:       #7e0001;
  --red-dark:  #5a0001;
  --red-light: #a80002;
  --cream:     #dfddd8;
  --cream-dark:#ccc9c3;
  --white:     #ffffff;
  --off-white: #f9f8f6;
  --text:      #1a0000;
  --text-mid:  #4a3333;
  --text-soft: #7a6060;
  --border:    rgba(126,0,1,.12);
  --r:         12px;
  --r-lg:      20px;
  --sh-sm:     0 2px 10px rgba(126,0,1,.10);
  --sh-md:     0 8px 32px rgba(126,0,1,.14);
  --sh-lg:     0 20px 60px rgba(126,0,1,.18);
  --ease:      cubic-bezier(.25,.46,.45,.94);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── LAYOUT ── */
.wrap        { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 88px 0; }
.section--alt   { background: var(--white); }
.section--dark  { background: var(--red);   color: var(--white); }
.section--cream { background: var(--cream); }

/* ── TIPOGRAFIA ── */
.label {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.label--light { color: rgba(255,255,255,.7); }

h2.title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 14px;
  color: var(--text);
}
h2.title--light { color: var(--white); }

.subtitle {
  font-size: 1.05rem; color: var(--text-mid);
  line-height: 1.75; max-width: 560px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(26,0,0,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; max-width: 1100px; margin: 0 auto;
}
.logo-wrap img {
  height: 100px; width: auto;
  /* Logo escura → inverte para branco no header */
  filter: brightness(0) invert(1);
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn-wpp {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .85rem;
  padding: 11px 22px; border-radius: 50px;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn-wpp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 16px 32px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
.btn-primary.red {
  background: var(--red);
  box-shadow: 0 4px 20px rgba(126,0,1,.35);
}
.btn-primary.red:hover {
  background: var(--red-dark);
  box-shadow: 0 8px 28px rgba(126,0,1,.45);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,.45); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 14px 28px; border-radius: 50px;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--red-dark);
  position: relative; overflow: hidden;
  min-height: 90vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(126,0,1,0) 0%, rgba(90,0,1,.6) 100%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Crect x='0' y='0' width='1' height='40'/%3E%3Crect x='0' y='0' width='40' height='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 56px 80px;
  padding-left: max(24px, calc((100vw - 1100px) / 2 + 24px));
}
.hero-logo        { margin-bottom: 25px; }
.hero-logo img    { height: 150px; width: auto; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  border-radius: 50px; padding: 5px 16px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 24px;
}
.hero-eyebrow span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #25d366; display: inline-block;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.10; color: var(--white); margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--cream); }

.hero-sub {
  font-size: 1.05rem; line-height: 1.72;
  color: rgba(255,255,255,.78);
  margin-bottom: 36px; max-width: 480px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* Trust pills */
.hero-trust       { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px; padding: 6px 14px;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.9);
}
.trust-pill::before { content: '✓'; color: #25d366; font-weight: 800; }

/* Coluna direita hero */
.hero-right        { position: relative; overflow: hidden; }
.hero-img-block {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border-left: 1px solid rgba(255,255,255,.08);
}
/*
  Quando tiver a foto real, remova .hero-img-placeholder e use:
  <img class="hero-real-img" src="assets/images/fotos/hero-medicos.jpg" alt="..." />
*/
.hero-real-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--cream); border-bottom: 1px solid var(--cream-dark); }
.stats-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 24px; text-align: center;
  border-right: 1px solid rgba(126,0,1,.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem; color: var(--red);
  margin-bottom: 4px; line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--text-mid); font-weight: 500; }

/* ============================================================
   ETAPAS
   ============================================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 52px; position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--cream-dark));
  z-index: 0;
}
.step-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  text-align: center; box-shadow: var(--sh-sm);
  position: relative; z-index: 1;
  transition: box-shadow .25s, transform .25s;
}
.step-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-family: 'DM Serif Display', serif; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(126,0,1,.3);
}
.step-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; margin-bottom: 10px; }
.step-card p  { font-size: .9rem; color: var(--text-mid); line-height: 1.65; }
.steps-cta    { text-align: center; margin-top: 48px; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 52px;
}
.svc-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.svc-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-5px);
  border-color: var(--red);
}
.svc-bar  { height: 5px; background: var(--red); }
.svc-body { padding: 32px 28px; flex: 1; display: flex; flex-direction: column; }
.svc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: #fdf2f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.svc-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.25rem; margin-bottom: 10px; color: var(--text); }
.svc-card p  { font-size: .9rem; color: var(--text-mid); line-height: 1.65; flex: 1; }
.svc-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: .87rem; font-weight: 700;
  color: var(--red); transition: gap .2s;
}
.svc-link:hover { gap: 10px; }

/* ============================================================
   ESPECIALIDADES
   ============================================================ */
.spec-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.spec-tag {
  padding: 8px 18px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .88rem; font-weight: 600; color: var(--text-mid);
  transition: background .2s, border-color .2s, color .2s;
}
.spec-tag:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.spec-cta { margin-top: 40px; }

/* ============================================================
   BENEFÍCIOS
   ============================================================ */
.benefits-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 52px;
}
.benefit {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); padding: 24px;
  transition: background .2s;
}
.benefit:hover { background: rgba(255,255,255,.13); }
.benefit-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: rgba(223,221,216,.12); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.benefit h4 { font-family: 'DM Serif Display', serif; font-size: 1.05rem; margin-bottom: 6px; color: var(--white); }
.benefit p  { font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.65; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
.faq-item {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px; text-align: left; gap: 14px;
  font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--text);
}
.faq-icon { flex-shrink: 0; color: var(--red); transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 16px 26px 20px;
  font-size: .92rem; color: var(--text-mid); line-height: 1.72;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { display: block; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  background: var(--red-dark);
  padding: 100px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(168,0,2,.5), transparent);
  pointer-events: none;
}
.cta-inner         { position: relative; z-index: 2; }
.cta-final-logo    { margin: 0 auto 28px; }
.cta-final-logo img { height: 64px; width: auto; margin: 0 auto; }
.cta-final h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white); margin-bottom: 16px; line-height: 1.15;
}
.cta-final h2 em { font-style: italic; color: var(--cream); }
.cta-final p { font-size: 1.05rem; color: rgba(255,255,255,.78); margin-bottom: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0f0000; color: rgba(255,255,255,.45);
  text-align: center; padding: 28px 24px; font-size: .8rem;
}
footer strong    { color: rgba(255,255,255,.75); }
.footer-logo     { margin: 0 auto 12px; }
.footer-logo img { height: 36px; width: auto; margin: 0 auto; opacity: .5; }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wpp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 12px;
}
.wpp-float-label {
  background: var(--white); color: var(--text);
  padding: 8px 16px; border-radius: 50px;
  font-weight: 700; font-size: .8rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
  animation: pulse-label 3s ease-in-out infinite;
}
.wpp-float-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform .2s;
  animation: pulse-btn 2.5s ease-in-out infinite;
}
.wpp-float-btn:hover { transform: scale(1.10); }

@keyframes pulse-btn {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.75); }
}
@keyframes pulse-label {
  0%,100% { opacity: 1; }
  50%      { opacity: .7; }
}

/* ============================================================
   FADE-IN (controlado pelo JS)
   ============================================================ */
.fi {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fi.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero              { grid-template-columns: 1fr; min-height: auto; }
  .hero-right        { display: none; }
  .hero-left         { padding: 64px 24px; }
  .stats-in          { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .steps-grid        { grid-template-columns: 1fr; }
  .steps-grid::before{ display: none; }
  .services-grid     { grid-template-columns: 1fr; }
  .benefits-grid     { grid-template-columns: 1fr; }
  .section           { padding: 64px 0; }
  .wpp-float-label   { display: none; }
}
@media (max-width: 480px) {
  .stats-in          { grid-template-columns: 1fr 1fr; }
  .hero-ctas         { flex-direction: column; }
  .btn-primary,
  .btn-secondary     { justify-content: center; }
}
