/* =========================================================
   ENTOURAGE CLÍNICA MÉDICA — style.css (redesign)
   Paleta extraída da logo: teal #049D5C → lima #64DF00
   Tipografia: Poppins (títulos e texto)
   ========================================================= */

/* ---------- Fonte da marca (wordmark ENTOURAGE) ----------
   O protótipo usa a fonte "ZONE 33". Coloque o arquivo em
   assets/fonts/Zone33.woff2 (ou .ttf) e ajuste o src abaixo.
   Enquanto não tiver o arquivo, cai no fallback Poppins bold. */
@font-face {
  font-family: 'Zone 33';
  src: url('../assets/fonts/Zone33.woff2') format('woff2'),
       url('../assets/fonts/Zone33.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --floresta: #0C2B1D;      /* verde profundo: hero, diferencial */
  --floresta-2: #0A2418;    /* footer, um tom abaixo */
  --mata: #123B28;          /* superfícies sobre o verde profundo */
  --verde: #049D5C;         /* teal-green da logo */
  --lima: #64DF00;          /* lima da logo */
  --lima-suave: #8FEA47;    /* lima para textos sobre fundo escuro */
  --papel: #F3F7EE;         /* fundo claro com leve tom vegetal */
  --branco: #FFFFFF;
  --tinta: #17281F;         /* títulos em fundo claro */
  --tinta-2: #53645A;       /* texto corrido */
  --muted: #8B948E;
  --on-dark: #B9CDBF;       /* texto sobre fundo escuro */
  --marrom: #603E37;        /* wordmark do header */
  --wpp: #25D366;

  --grad-folha: linear-gradient(135deg, #049D5C 0%, #64DF00 100%);
  --radius-card: 18px;
  --font-display: 'Poppins', sans-serif;   /* títulos iguais ao hero */
  --font-body: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;   /* âncoras não somem atrás da cápsula fixa */
}

body {
  font-family: var(--font-body);
  background: var(--papel);
  color: var(--tinta-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Barra de rolagem no verde da marca */
html {
  scrollbar-width: thin;                        /* Firefox */
  scrollbar-color: var(--verde) transparent;    /* Firefox: thumb / trilho */
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #049D5C, #64DF00);
  border-radius: 999px;
  border: 2px solid var(--papel);   /* respiro pras laterais */
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #03824c, #55c400);
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

.wordmark {
  font-family: 'Zone 33', 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ---------- Componentes comuns ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--verde);
  text-align: center;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--tinta);
  text-align: center;
  margin: 12px auto 0;
  max-width: 620px;
}

.section-title em {
  font-style: normal;
  color: var(--verde);
}

.section-sub {
  font-size: 15px;
  color: var(--tinta-2);
  text-align: center;
  margin: 16px auto 0;
  line-height: 1.6;
  max-width: 440px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 0 30px;
  height: 52px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }

.btn--dark {
  background: #22332B;
  color: var(--branco);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(12, 43, 29, 0.22);
}

.btn--outline {
  border: 1.5px solid var(--floresta);
  color: var(--floresta);
}

.btn--outline:hover { background: var(--floresta); color: var(--branco); }

.icon--wpp { width: 17px; height: 17px; flex: none; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 16px;
  background: transparent;
  pointer-events: none;   /* só a cápsula recebe clique */
}

/* A cápsula flutuante */
.header__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 10px 0 18px;
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(4, 157, 92, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(23, 40, 31, 0.08);
  transition: background-color .3s ease, box-shadow .3s ease;
}

/* ao rolar, a cápsula se solidifica */
.header.is-scrolled .header__inner {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(23, 40, 31, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  height: 62px;
}

.logo__leaf {
  height: 50px;
  width: auto;
  margin-right: 4px;
  flex: none;
  transform: scale(1.15);
  transform-origin: left center;
}

/* Wordmark em imagem (Entourage.png na raiz) */
.logo__wordmark {
  height: 40px;
  width: auto;
  margin-left: 12px;
  flex: none;
}

/* Nav desktop */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--tinta);
  position: relative;
  padding: 4px 0;
}

.desktop-nav a:not(.desktop-nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-folha);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.desktop-nav a:not(.desktop-nav__cta):hover::after,
.desktop-nav a.is-current::after { transform: scaleX(1); }

.desktop-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--floresta);
  color: var(--branco) !important;
  border-radius: 999px;
  padding: 12px 22px !important;
  transition: background-color .2s ease;
}

.desktop-nav__cta svg { width: 14px; height: 14px; flex: none; }

.desktop-nav__cta:hover {
  background: var(--grad-folha);
  color: var(--floresta) !important;
}

.menu-btn {
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--tinta);
  transition: transform .25s ease, opacity .25s ease, width .25s ease;
}

.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  pointer-events: auto;
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(4, 157, 92, 0.14);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(23, 40, 31, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 20px 14px;
  margin: 8px auto 0;
  max-width: 1120px;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--tinta);
  border-bottom: 1px solid rgba(23, 40, 31, 0.06);
}

.mobile-nav a:last-child { border-bottom: none; }

/* =========================================================
   HERO — slideshow de fotos ao fundo com véu claro na esquerda
   ========================================================= */
.hero {
  position: relative;
  background: var(--papel);
  overflow: hidden;
  padding: 134px 0 64px;   /* espaço pro header fixo por cima */
  min-height: 480px;
  display: flex;
  align-items: center;
}

/* Fotos de fundo em crossfade (CSS puro, sem JS) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;   /* corte favorece a parte de cima (rostos) */
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__bg img.is-active { opacity: 1; }

/* Véu esbranquiçado: forte na esquerda (texto), suave na direita */
.hero__veu {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(243, 247, 238, 0.90);
  pointer-events: none;
}

/* Fusão com a section de baixo: a foto se dissolve no fundo (sensação de infinito) */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(243, 247, 238, 0) 0%, var(--papel) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--tinta);
  max-width: 540px;
}

.hero__title-green { color: #3F9E50; }   /* verde do print */

.hero__subtitle {
  font-size: 15.5px;
  font-weight: 400;
  color: #6A7570;
  margin-top: 16px;
  max-width: 340px;
  line-height: 1.6;
}

/* Selo de confiança — pílula fina de vidro, tudo numa linha */
.hero__selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(4, 157, 92, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(23, 40, 31, 0.10);
}

.hero__selo-icone {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-folha);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__selo-icone svg { width: 12px; height: 12px; }

.hero__selo-texto {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__selo-texto strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta);
  white-space: nowrap;
}

.hero__selo-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(4, 157, 92, 0.5);
  flex: none;
}

.hero__selo-texto small {
  font-size: 12.5px;
  color: var(--tinta-2);
  white-space: nowrap;
}

/* no mobile o separador some e as linhas empilham */
@media (max-width: 480px) {
  .hero__selo-sep { display: none; }
  .hero__selo-texto { flex-direction: column; align-items: flex-start; gap: 1px; }
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}

/* Indicadores do slide de fundo — verticais, no meio da borda direita */
.hero__pontos {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* barrinhas em pé (versão vertical dos dots) */
.hero__pontos .dot {
  width: 3px;
  height: 22px;
}

.hero__pontos .dot.is-active {
  width: 3px;
  height: 36px;
}

/* Dots de slider (usados pelos indicadores do hero) */
.dot {
  width: 22px;
  height: 5px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.55);
  transition: background .25s ease, width .25s ease, height .25s ease;
}

.dot.is-active { background: var(--verde); width: 34px; }

/* =========================================================
   JORNADA DO PACIENTE — passos que brotam de um caule
   ========================================================= */
.jornada {
  background: var(--papel);
  padding: 72px 0 56px;
}

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 48px;
  padding-left: 26px;
}

/* o caule */
.steps::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #049D5C 0%, #64DF00 100%);
  opacity: .45;
}

.step-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--branco);
  border: 1px solid rgba(4, 157, 92, 0.12);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 22px rgba(23, 40, 31, 0.07);
  padding: 24px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23, 40, 31, 0.12);
}

/* o "galho" que liga o card ao caule */
.step-card::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 36px;
  width: 22px;
  height: 2px;
  background: rgba(4, 157, 92, 0.35);
}

.step-card__num {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50% 50% 50% 6px;     /* folha */
  background: var(--grad-folha);
  color: var(--branco);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(4, 157, 92, 0.30);
}

.step-card__body h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--tinta);
}

.step-card__body p {
  font-size: 13.5px;
  color: var(--tinta-2);
  margin-top: 6px;
  line-height: 1.55;
}

.jornada__cta-wrap {
  display: flex;
  justify-content: center;
  margin: 46px 0 8px;
}

/* =========================================================
   ESPECIALIDADES
   ========================================================= */
.especialidades {
  position: relative;
  background: var(--branco);
  padding: 72px 0 80px;
}

/* Fusão com a section de cima: o off-white escorre pro branco (sensação de infinito) */
.especialidades::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--papel), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.esp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.esp-card {
  background: var(--papel);
  border: 1px solid rgba(4, 157, 92, 0.14);
  border-radius: var(--radius-card);
  min-height: 132px;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.esp-card:hover {
  transform: translateY(-5px);
  border-color: rgba(4, 157, 92, 0.4);
  box-shadow: 0 14px 30px rgba(23, 40, 31, 0.10);
}

.esp-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 50% 8px;     /* folha */
  background: var(--grad-folha);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(4, 157, 92, 0.25);
}

.esp-card__icon svg { width: 23px; height: 23px; }

.esp-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--tinta);
  text-align: center;
}

/* card "outras condições" */
.esp-card--mais {
  background: var(--floresta);
  border-color: transparent;
}

.esp-card--mais .esp-card__icon {
  background: rgba(100, 223, 0, 0.15);
  color: var(--lima-suave);
  box-shadow: none;
  border: 1px solid rgba(143, 234, 71, 0.4);
}

.esp-card--mais h3 { color: var(--branco); }

.esp-card--mais p {
  font-size: 12.5px;
  color: var(--lima-suave);
  margin-top: -4px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  background: var(--floresta-2);
  overflow: hidden;
}

.footer__leaf {
  position: absolute;
  right: -45px;
  top: -10px;
  width: 220px;
  opacity: 0.14;
  transform: scaleX(-1);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 22px;
}

.footer__brand { display: flex; flex-direction: column; line-height: 1; }

.footer__name { font-size: 29px; color: var(--branco); }

.footer__sub {
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 0.22em;
  color: var(--branco);
  text-transform: uppercase;
  margin-top: 4px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(185, 205, 191, 0.4);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.social-btn:hover {
  color: var(--floresta);
  border-color: var(--lima);
  background: var(--lima);
}

.social-btn svg { width: 15px; height: 15px; }

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-top: 24px;
}

.footer__links a {
  display: block;
  font-size: 12px;
  color: var(--on-dark);
  padding: 4px 0;
  line-height: 17px;
  transition: color .2s ease;
}

.footer__links a:hover { color: var(--lima-suave); }

.footer__resp { margin-top: 36px; }

.footer__resp-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer__resp p:not(.footer__resp-title) {
  font-size: 11.5px;
  color: var(--on-dark);
  margin-top: 4px;
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(185, 205, 191, 0.16);
  margin-top: 34px;
}

.footer__copy {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* =========================================================
   WHATSAPP FAB
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wpp);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease;
}

.whatsapp-fab:hover { transform: scale(1.08); }

.whatsapp-fab svg { width: 28px; height: 28px; }

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }

  .hero { padding: 150px 0 96px; }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
  }

  .hero { min-height: 580px; }

  /* no desktop o véu é gradiente: esquerda esbranquiçada, direita revelando a foto */
  .hero__veu {
    background: linear-gradient(90deg,
      rgba(243, 247, 238, 0.97) 0%,
      rgba(243, 247, 238, 0.94) 38%,
      rgba(243, 247, 238, 0.55) 62%,
      rgba(243, 247, 238, 0.12) 100%);
  }

  .steps {
    flex-direction: row;
    gap: 20px;
    padding-left: 0;
    padding-top: 30px;
  }

  /* caule horizontal no desktop */
  .steps::before {
    left: 40px;
    right: 40px;
    top: 4px;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, #049D5C 0%, #64DF00 100%);
  }

  .step-card {
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 26px 22px;
  }

  .step-card::before {
    left: 44px;
    top: -30px;
    width: 2px;
    height: 30px;
  }

  .esp-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .esp-card { min-height: 150px; }

  /* Footer: marca/redes à esquerda, links à direita */
  .footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    align-items: start;
  }

  .footer__brand  { grid-column: 1; }
  .footer__social { grid-column: 1; }
  .footer__resp   { grid-column: 1; }

  .footer__links {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 10px;
    column-gap: 60px;
  }

  .footer__links a { font-size: 13px; padding: 6px 0; }

  .footer__divider,
  .footer__copy { grid-column: 1 / -1; }
}

/* =========================================================
   Acessibilidade / preferências
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
