/* Hero section — qalam-high.html.
   Depends on shared page tokens (--warm-white, --line, --text-muted, --gold-500,
   --gold-300, --crimson-600, --dark-950, --radius-2xl, --display) and shared
   .btn/.btn-primary/.btn-white button styles (static/css/qalam-high.css). */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 116px 0 88px;
  position: relative;
  overflow: hidden;
  background: var(--warm-white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(253, 251, 251, 0.55) 0%,
    rgba(253, 251, 251, 0.25) 45%,
    rgba(253, 251, 251, 0.72) 100%
  );
  z-index: 1;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transform: scale(1.04);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 32px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(92, 15, 26, 0.06);
  letter-spacing: 0.01em;
}
.hero-pill .dot {
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  border-radius: 50%;
  flex-shrink: 0;
  animation: hero-pulse 2s infinite;
}
@keyframes hero-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(240, 165, 0, 0);
  }
}
.hero h1 {
  margin-bottom: 24px;
  max-width: 860px;
}
.hero h1 em {
  font-style: normal;
  color: var(--crimson-600);
  font-weight: 800;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
  width: 100%;
}
.hero-cta .btn-wrap {
  position: relative;
}
.hero-cta .btn-wrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--crimson-600), var(--gold-500));
  opacity: 0.18;
  filter: blur(10px);
  z-index: -1;
  transition: opacity 0.4s;
}
.hero-cta .btn-wrap:hover::before {
  opacity: 0.42;
}

/* Stats bar */
.hero-stats-bar {
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(145deg, var(--dark-950) 0%, #1c0a10 100%);
  border-radius: var(--radius-2xl);
  padding: 40px 36px;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.hero-stats-bar .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.hs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.hs-item + .hs-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
}
.hs-val {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  font-weight: 800;
  font-style: normal;
  color: var(--gold-300);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.hs-lbl {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .hero-stats-bar {
    padding: 32px 24px;
  }
  .hero-stats-bar .grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .hs-item {
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 100px 0 64px;
  }
  .hero-stats-bar .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }
  .hs-item + .hs-item::before {
    display: none;
  }
  .hs-item:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 88px 0 48px;
  }

  /* Stack CTAs, full-width */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
  }
  .hero-cta .btn-wrap {
    width: 100%;
  }
  .hero-cta .btn-wrap .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-cta .btn-white {
    width: 100%;
    justify-content: center;
  }

  /* Stats bar — 3+2 layout using 6-col trick */
  .hero-stats-bar {
    border-radius: 20px;
    padding: 24px 16px;
  }
  .hero-stats-bar .grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 0;
  }
  .hs-item {
    grid-column: span 2;
  }
  .hs-item:nth-child(4) {
    grid-column: 2/4;
  }
  .hs-item:nth-child(5) {
    grid-column: 4/6;
  }
  .hs-val {
    font-size: 2.1rem;
    margin-bottom: 6px;
  }
  .hs-lbl {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}
