/* Qulay Makon — Hero (light theme)
   light_theme_redesign.md: oq fon, ko'k accent. Chap matn+stat,
   o'ng 2x2 service grid. Eski dark gradient olib tashlandi.
*/
.hero-text {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-soft) 100%);
  color: var(--color-text);
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-text::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 62, 138, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-text::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(2, 62, 138, 0.04) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-text__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* Trust pill — oq fon, ko'k border */
.hero-text__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hero-text__badge:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Title — to'q matn + ko'k accent */
.hero-text__title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 24px;
  color: var(--color-text);
}
.hero-text__highlight {
  color: var(--color-primary);
  display: inline-block;
}

/* Desc */
.hero-text__desc {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 32px;
  max-width: 580px;
}

/* CTA */
.hero-text__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-text__cta .btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.hero-text__cta .btn--accent {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(2, 62, 138, 0.22);
}
.hero-text__cta .btn--accent:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 62, 138, 0.32);
}
.hero-text__cta .btn--outline-blue {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.hero-text__cta .btn--outline-blue:hover {
  background: var(--color-primary-light);
}
/* Eski qora gradient hero ishlatilgan joyda fallback (login va h.k.):
   .btn--outline-white endi light hero'da kerak emas, lekin tarkib bo'yicha qoldi */

/* Stats — chap ustun pastida */
.hero-text__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, auto));
  gap: clamp(20px, 4vw, 48px);
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  max-width: 620px;
}
.hero-text-stat__value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.hero-text-stat__label {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.3;
  font-weight: 500;
}

/* Mobile */
@media (max-width: 640px) {
  .hero-text { padding: 40px 0 48px; }
  .hero-text__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-text__cta .btn { width: 100%; padding: 13px 20px; }
  .hero-text__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 24px;
  }
  .hero-text-stat__value { font-size: 22px; }
  .hero-text-stat__label { font-size: 11px; }
}

/* ════════════════════════════════════════════════
   HERO BACKGROUND IMAGE — admin orqali
   HeroSection.image yuklansa, fon sifatida qo'llaniladi.
   Matn ustida kontrast saqlash uchun semi-transparent overlay.
   ════════════════════════════════════════════════ */
.hero-text--has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-text--has-bg::before,
.hero-text--has-bg::after {
  display: none;
}
.hero-text__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.85) 45%,
    rgba(255, 255, 255, 0.55) 80%,
    rgba(255, 255, 255, 0.25) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.hero-text--has-bg .hero-text__content {
  position: relative;
  z-index: 1;
}

/* Mobile — overlay yanada zichroq, matn o'qilishi uchun */
@media (max-width: 768px) {
  .hero-text__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.82) 100%
    );
  }
}
