/* Smooth scroll SPA */
html { scroll-behavior: smooth; }

/* Hero */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--shifa-off-white);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(26,122,90,0.08);
  animation: float 20s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

/* ─── Hero Carousel ─── */
.hero-carousel {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.hero-slide-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.hero-slide-exit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  background: var(--shifa-teal);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* ─── Hero Pills com progresso circular ─── */
.hero-slide-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.hero-slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--shifa-gray-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50rem;
  border: 2px solid var(--shifa-gray-light);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}
.hero-slide-pill:hover {
  border-color: var(--shifa-teal);
  color: var(--shifa-teal);
}

.hero-pill-active {
  background: var(--shifa-teal);
  color: #fff;
  border-color: var(--shifa-teal);
}
.hero-pill-active:hover {
  background: var(--shifa-teal-dark);
  color: #fff;
  border-color: var(--shifa-teal-dark);
}

/* Anel de progresso circular */
.hero-pill-ring {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.hero-pill-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.hero-pill-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.25);
  stroke-width: 2.5;
}
.hero-pill-ring-fill {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-dasharray: 100.53;
  stroke-dashoffset: 100.53;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.hero-pill-active .hero-pill-ring-fill {
  animation: ringProgress 5s linear forwards;
}
@keyframes ringProgress {
  from { stroke-dashoffset: 100.53; }
  to { stroke-dashoffset: 0; }
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--shifa-navy);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--shifa-gray-dark);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--shifa-gray-light);
  border-radius: 50rem;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--shifa-gray-dark);
  transition: all 0.2s;
}
.hero-pill:hover {
  border-color: var(--shifa-teal);
  color: var(--shifa-teal);
  background: rgba(26,122,90,0.04);
}

/* Sections */
.section-padding { padding: 5rem 0; }

/* Step numbers */
.step-number {
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Feature cards */
.feature-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,.05);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* Plan card highlight */
.plan-card {
  transition: all 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,122,90,.15);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  margin-left: 10px;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive fixes */
@media (max-width: 768px) {
  .hero-section { min-height: 70vh; }
  .hero-title { font-size: 1.75rem; line-height: 1.2; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-slide-badge { font-size: 0.75rem; padding: 4px 12px; }
  .hero-slide-pills { gap: 8px; }
  .hero-slide-pill { font-size: 0.75rem; padding: 6px 14px; }
  .hero-pill-ring { width: 18px; height: 18px; }
  .hero-pill { font-size: 0.75rem; padding: 4px 10px; }
  .hero-carousel { min-height: 320px; }
  .section-padding { padding: 3rem 0; }
  .step-number { width: 48px; height: 48px; font-size: 1.2rem; }

  /* Feature cards */
  .feature-card { margin-bottom: 0.5rem; }

  /* Plan cards mobile */
  .plan-card { max-width: 360px; margin: 0 auto; }

  /* Scroll indicator - hide on mobile */
  .scroll-indicator { display: none; }

  /* Final CTA */
  section:last-of-type .btn-lg { font-size: 0.9rem; padding: 0.75rem 1.5rem !important; }
}

@media (max-width: 576px) {
  .hero-section h1 { font-size: 1.5rem; }
  .section-padding { padding: 2rem 0; }
  .card-body { padding: 1.25rem !important; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Melhorias gerais mobile */
@media (max-width: 991px) {
  .shifa-landing-nav .d-flex.gap-2 { flex-wrap: wrap; }
  .shifa-landing-nav .d-flex.gap-2 .btn { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
}
