/* ============================================================
   HERO.CSS — SIPP UPTD PUSKESMAS IPUH
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 60%, #3A9B68 100%);
  overflow: hidden;
  padding-top: var(--navbar-height);
}

/* ---- Background Pattern ------------------------------------ */
.hero::before { display: none; }

.hero::after { display: none; }

/* ---- Floating Shapes --------------------------------------- */
.hero-shape { display: none; }
.hero-shape-1 {
  width: 300px; height: 300px;
  top: -80px; right: -80px;
  animation-delay: 0s;
}
.hero-shape-2 {
  width: 180px; height: 180px;
  bottom: 10%; left: 5%;
  animation-delay: 3s;
}
.hero-shape-3 {
  width: 100px; height: 100px;
  top: 30%; right: 15%;
  animation-delay: 6s;
}
@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(10deg); }
}

/* ---- Hero Content ------------------------------------------ */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-4xl) var(--space-xl);
}

.hero-text { color: var(--clr-white); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.2);
  animation: fadeInUp 0.5s ease 0.1s both;
}
.hero-eyebrow i { color: var(--clr-accent-light); }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.5s ease 0.2s both;
}
.hero-title span {
  color: var(--clr-accent-light);
  display: block;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  animation: fadeInUp 0.5s ease 0.3s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.5s ease 0.4s both;
}

/* ---- Hero Stats -------------------------------------------- */
.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInUp 0.5s ease 0.5s both;
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ---- Hero Visual (Right Side) ------------------------------ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.7s ease 0.3s both;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-main-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: var(--clr-white);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hero-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.hero-card-title { font-weight: 700; font-size: 1rem; }
.hero-card-sub { font-size: 0.8rem; opacity: 0.7; }

.hero-poli-list { display: flex; flex-direction: column; gap: 10px; }
.hero-poli-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.85rem;
}
.hero-poli-name { font-weight: 500; }
.hero-poli-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.status-open  { background: rgba(76,175,130,0.3); color: #7DCBA3; }
.status-full  { background: rgba(217,119,6,0.3);  color: #FCD34D; }

/* ---- Floating Mini Cards ----------------------------------- */
.hero-float-card {
  position: absolute;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}
.hero-float-card-1 {
  top: -30px; left: -30px;
  animation-delay: 0.5s;
}
.hero-float-card-2 {
  bottom: -30px; right: -30px;
  animation-delay: 2s;
}
.hero-float-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.hero-float-icon.green { background: rgba(76,175,130,0.15); color: var(--clr-accent); }
.hero-float-icon.blue  { background: rgba(2,132,199,0.15); color: var(--clr-info); }
.hero-float-text-main  { font-size: 0.875rem; font-weight: 700; color: var(--clr-gray-900); }
.hero-float-text-sub   { font-size: 0.725rem; color: var(--clr-gray-400); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ---- Scroll Indicator -------------------------------------- */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  animation: fadeIn 1s ease 1s both;
  cursor: pointer;
  z-index: 2;
}
.hero-scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero-scroll-wheel {
  width: 3px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-full);
  animation: scrollWheel 1.5s ease infinite;
}
@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: left;
    padding-block: var(--space-3xl);
  }
  .hero-visual { display: none; }
  .hero-cta    { justify-content: flex-start; }
  .hero-stats  { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .hero-text { display: none; }
}

@media (max-width: 480px) {
  .hero-stats { gap: var(--space-xl); }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
}

/* ---- Slider Styling ---- */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.slider-btn { display: none !important; }
.slider-btn:hover { background: rgba(255,255,255,0.4); transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* Override hero original background */
.hero {
  background: none;
  background-color: var(--clr-primary);
}

