/* Hero section — qalam-primary.html.
   Depends on shared page tokens (--bg, --green-tint, --white, --line,
   --ink-80, --ink-60, --green, --yellow, --radius-xl, --shadow-sm,
   --shadow-lg, --display) and the shared @keyframes pulse (defined here,
   scoped to this section's hero-pill dot). */

.hero {
  padding: 128px 0 64px;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--green-tint) 70%,
    var(--white) 100%
  );
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 249, 0.88) 0%,
    rgba(236, 244, 241, 0.82) 55%,
    rgba(255, 255, 255, 0.92) 100%
  );
  z-index: 1;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    rgba(4, 54, 42, 0.16) 0%,
    transparent 62%
  );
  filter: blur(30px);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(250, 204, 21, 0.18) 0%,
    transparent 62%
  );
  filter: blur(30px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-80);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-pill .dot {
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(250, 204, 21, 0.08);
  }
}
.hero h1 {
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 4%;
  height: 16%;
  background: var(--yellow);
  border-radius: 4px;
  z-index: -1;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--ink-60);
  max-width: 560px;
  margin-bottom: 30px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 540px;
}
.hero-feats div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-80);
  font-weight: 500;
}
.hero-feats div::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 1px;
  background: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5 9.5 15 16 8' fill='none' stroke='%2304362A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(
    135deg,
    var(--green) 0%,
    var(--green-dark) 100%
  );
  box-shadow: var(--shadow-lg);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 1;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 3, 5, 0.95) 0%,
    rgba(14, 3, 5, 0.65) 30%,
    rgba(14, 3, 5, 0.15) 62%,
    transparent 100%
  );
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 8px 0 0;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: none;
}
.hero-badge .num {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-badge .lbl {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-media {
    aspect-ratio: 16/10;
    max-width: 640px;
    margin: 0 auto;
  }
}
@media (max-width: 900px) {
  .hero {
    padding: 104px 0 56px;
  }
  .hero-feats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: 92px;
    padding-bottom: 40px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-badge {
    padding: 14px 16px;
    gap: 12px;
  }
  .hero-badge .num {
    font-size: 32px;
  }
  .hero-badge .lbl {
    font-size: 11.5px;
  }
}
