/* ============================================
   Cannexa Guest Home - Design Futurista e Acolhedor
   ============================================ */

/* Header: fixo no desktop para CTA de agendamento sempre visível */
body header.guest-header {
  position: sticky;
  top: 0;
  z-index: 1050;
}
@media (max-width: 991.98px) {
  body header.guest-header {
    position: relative;
  }
}
@media (max-width: 991.98px) {
  body header .navbar-collapse {
    z-index: 1050;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  }
  body header .navbar-collapse .navbar-nav,
  body header .navbar-collapse .nav-btn-col {
    position: relative;
    z-index: 1051;
  }
}

/* ---- Header limpo e leve ---- */
.guest-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.guest-header__logo-text {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--bs-primary, #2d5a45) !important;
}
.guest-cta-main {
  background: #2d5a45 !important;
  border-color: #2d5a45 !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(45, 90, 69, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.guest-cta-main:hover {
  background: #244a38 !important;
  border-color: #244a38 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 90, 69, 0.4);
}
.btn-outline-light {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
}
.btn-outline-light:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

/* ---- Hero: imagem humana + gradiente fallback ---- */
.guest-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.guest-hero__media {
  position: absolute;
  inset: 0;
}
.guest-hero__media .guest-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* Overlay leve sobre a foto do hero para manter o texto legível */
.guest-hero__gradient-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(45, 85, 65, 0.55) 0%,
    rgba(61, 118, 92, 0.45) 50%,
    rgba(86, 143, 118, 0.4) 100%
  );
  pointer-events: none;
}
.guest-hero__gradient-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.guest-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

.guest-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.9s ease-out 0.4s both;
}
.guest-hero__badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  font-weight: 500;
}
.guest-hero__badge-item i {
  opacity: 0.9;
}
.guest-hero__btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.guest-hero__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.guest-hero__title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeInUp 0.9s ease-out 0.1s both;
}

.guest-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.9s ease-out 0.2s both;
}

.guest-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.9s ease-out 0.3s both;
}
.guest-cta-hero {
  min-width: 200px;
}

/* Seta para baixo em movimento */
.guest-hero__scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  animation: fadeInUp 0.9s ease-out 0.5s both;
}

.guest-hero__scroll-down:hover {
  color: #fff;
  opacity: 1;
}

.guest-hero__scroll-down-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 38px solid currentColor;
  animation: scrollDownBounce 2s ease-in-out infinite;
}

@keyframes scrollDownBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.75;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Espaçamento e títulos de seção ---- */
.section-spacing {
  padding: 4.5rem 0;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(91.67deg, #3D765C 0%, #568F76 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-para);
  line-height: 1.55;
}

/* ---- Barra de confiança imediata ---- */
.guest-trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-cards);
}
.guest-trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
.guest-trust-bar__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
}
.guest-trust-bar__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3D765C 0%, #568F76 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.guest-trust-bar__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

/* ---- Por que a Cannexa transmite segurança ---- */
.guest-security {
  background: var(--bs-bg-light);
}
.guest-security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.guest-security__card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border-cards);
  box-shadow: 0 2px 12px -4px rgba(61, 118, 92, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.guest-security__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(61, 118, 92, 0.18);
}
.guest-security__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3D765C 0%, #568F76 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.guest-security__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.guest-security__text {
  font-size: 0.9375rem;
  color: var(--text-para);
  line-height: 1.5;
  margin: 0;
}

/* ---- Conheça nossos especialistas ---- */
.guest-experts {
  background: #fff;
}
.guest-experts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}
.guest-experts__card {
  background: var(--bs-bg-light);
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: center;
  border: 1px solid var(--border-cards);
  box-shadow: 0 2px 12px -4px rgba(61, 118, 92, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.guest-experts__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(61, 118, 92, 0.12);
}
.guest-experts__photo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(61, 118, 92, 0.2);
}
.guest-experts__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guest-experts__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.guest-experts__specialty,
.guest-experts__crm {
  font-size: 0.8125rem;
  color: var(--text-para);
  margin-bottom: 0.25rem;
}
.guest-experts__bio {
  font-size: 0.875rem;
  color: var(--text-para);
  line-height: 1.5;
  margin: 0.75rem 0 0;
}

/* ---- Tratamentos (editorial) ---- */
.guest-treatments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.guest-treatments__card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border-cards);
  box-shadow: 0 2px 12px -4px rgba(61, 118, 92, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.guest-treatments__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(61, 118, 92, 0.15);
}
.guest-treatments__icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
}
.guest-treatments__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guest-treatments__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.guest-treatments__desc {
  font-size: 0.9375rem;
  color: var(--text-para);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.guest-treatments__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.guest-treatments__tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--bs-bg-light);
  border-radius: 999px;
  color: var(--text-para);
}
.guest-treatments__btn {
  margin-top: auto;
  border-radius: 0.75rem;
  font-weight: 500;
}

/* ---- Sua jornada com a Cannexa ---- */
.guest-journey {
  background: var(--bs-bg-light);
}
.guest-journey__timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  max-width: 56rem;
  margin: 0 auto;
}
.guest-journey__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.guest-journey__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3D765C 0%, #568F76 100%);
  box-shadow: 0 2px 8px rgba(61, 118, 92, 0.35);
}
.guest-journey__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* ---- FAQ ---- */
.guest-faq {
  background: #fff;
}
.guest-faq__list {
  max-width: 40rem;
  margin: 0 auto;
}
.guest-faq__item {
  border: 1px solid var(--border-cards);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.guest-faq__item .accordion-button {
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem 1.25rem;
  border: none;
  box-shadow: none;
}
.guest-faq__item .accordion-button:not(.collapsed) {
  background: var(--bs-bg-light);
  color: var(--bs-primary);
}
.guest-faq__body {
  font-size: 0.9375rem;
  color: var(--text-para);
  line-height: 1.55;
  padding: 0 1.25rem 1rem;
}

/* ---- CTA final ---- */
.guest-cta-final {
  background: linear-gradient(135deg, #2d5541 0%, #3d765c 50%, #568f76 100%);
  padding: 4rem 0;
}
.guest-cta-final__box {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.guest-cta-final__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.guest-cta-final__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.guest-cta-final__btn {
  background: #fff !important;
  color: var(--bs-primary) !important;
  border-color: #fff !important;
}
.guest-cta-final__btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--bs-primary) !important;
  border-color: #fff !important;
}

.guest-easy-start__support {
  font-size: 0.9375rem;
  color: var(--text-para);
  margin: 0;
}

/* Imagem "Como funciona" - paciente em consulta em casa */
.guest-easy-start__visual {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(61, 118, 92, 0.15);
}
.guest-easy-start__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Imagem "Por que a Cannexa transmite segurança?" - escritório e credenciais */
.guest-security__visual {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(61, 118, 92, 0.12);
}
.guest-security__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* ---- Seção: Números que inspiram (legado, mantido se precisar) ---- */
.guest-stats-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 50%, #f0f4f2 100%);
  position: relative;
}

.guest-stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 118, 92, 0.2), transparent);
  opacity: 0.6;
}

.guest-stats-section .section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.guest-stats-section .section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  background: linear-gradient(91.67deg, #3D765C 0%, #568F76 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.guest-stats-section .section-head p {
  font-size: 1rem;
  color: var(--text-para);
  line-height: 1.5;
}

.guest-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.guest-stat-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border-cards);
  box-shadow: 0 4px 20px -8px rgba(61, 118, 92, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
}

.guest-stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.guest-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -12px rgba(61, 118, 92, 0.2);
}

.guest-stat-card__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3D765C 0%, #568F76 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.guest-stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.guest-stat-card__label {
  font-size: 0.875rem;
  color: var(--text-para);
  font-weight: 500;
}

/* ---- Seção: Começar é fácil ---- */
.guest-easy-start {
  padding: 4rem 0;
  background: var(--bs-bg-light);
}

.guest-easy-start .section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.guest-easy-start .section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  background: linear-gradient(91.67deg, #3D765C 0%, #568F76 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.guest-easy-start .section-head p {
  font-size: 1rem;
  color: var(--text-para);
  line-height: 1.5;
}

.guest-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.guest-step {
  text-align: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.guest-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.guest-step__number {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #3D765C 0%, #568F76 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(61, 118, 92, 0.4);
  transition: transform 0.3s ease;
}

.guest-step:hover .guest-step__number {
  transform: scale(1.05);
}

.guest-step__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.guest-step__text {
  font-size: 0.875rem;
  color: var(--text-para);
  line-height: 1.45;
}

/* ---- Ajustes gerais: scroll reveal e acolhimento ---- */
.guest-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.guest-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 991.98px) {
  .guest-hero {
    padding: 7rem 0 3rem;
  }
  .guest-trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .guest-journey__timeline {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 3rem 0;
  }
  .guest-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .guest-stats-section,
  .guest-easy-start {
    padding: 3rem 0;
  }
  .guest-security__grid {
    grid-template-columns: 1fr;
  }
  .guest-treatments__grid {
    grid-template-columns: 1fr;
  }
  .guest-journey__timeline {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .guest-hero__title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
  .guest-hero__subtitle {
    font-size: 1rem;
  }
  .guest-hero__cta-row {
    flex-direction: column;
  }
  .guest-hero__cta-row .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .guest-hero__badges {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .guest-trust-bar__grid {
    grid-template-columns: 1fr;
  }
  .guest-stats-grid {
    grid-template-columns: 1fr;
  }
  .nav-btn-col {
    flex-wrap: wrap;
    justify-content: center;
  }
  .guest-cta-main {
    order: -1;
    width: 100%;
    max-width: 280px;
  }
}
