/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--navbar-height) + 3rem);
  padding-bottom: 0;
  background-color: var(--color-bg-primary);
}

/* Background gradient layer */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 35%, rgba(139, 30, 45, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 15% 75%, rgba(139, 30, 45, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 100%, rgba(139, 30, 45, 0.08) 0%, transparent 65%),
    linear-gradient(160deg, transparent 40%, rgba(139, 30, 45, 0.04) 100%);
  pointer-events: none;
  z-index: 0;
}

/* --- Glow Orbs --- */
.hero__glow-1 {
  top: 5%;
  right: 3%;
  opacity: 0.75;
  width: 600px;
  height: 600px;
  animation-delay: 0s;
}

.hero__glow-2 {
  bottom: 15%;
  left: -5%;
  width: 400px;
  height: 400px;
  opacity: 0.4;
  animation-delay: 3.5s;
}

/* --- Inner layout --- */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: 3rem;
}

/* --- Content side --- */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Heading --- */
.hero__heading {
  line-height: 1.05;
  margin: 0;
}

/* --- Tagline --- */
.hero__tagline {
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

/* --- CTA group --- */
.hero__cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* --- Stats --- */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
  padding: 1.5rem 2rem;
  background: var(--hero-stats-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 0.35rem;
}

.hero__stat-value {
  font-family: var(--font-heading-en);
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  line-height: 1;
  animation: statPulse 4s ease-in-out infinite;
}

.hero__stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  text-align: center;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* --- Portrait side --- */
.hero__portrait-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__portrait-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(139, 30, 45, 0.4) 0%, transparent 65%);
  filter: blur(60px);
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}

.hero__portrait-frame {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
}

.hero__portrait-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-accent) 0%, rgba(194,91,104,0.5) 40%, transparent 60%, var(--color-accent) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.7;
}

.hero__portrait-frame::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(139,30,45,0.35) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -2;
  filter: blur(20px);
}

.hero__portrait-img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  display: block;
  filter: contrast(1.05) saturate(0.95);
}

/* --- Trust bar --- */
.hero__trust {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  background: var(--hero-trust-bg);
  padding: 1.5rem 0;
  backdrop-filter: blur(8px);
}

.hero__trust-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

/* Marquee container */
.hero__trust-logos {
  overflow: hidden;
  position: relative;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.hero__trust-logo {
  height: 28px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(1) brightness(1.5);
  transition: opacity var(--transition-base), filter var(--transition-base);
  flex-shrink: 0;
}

.hero__trust-logo:hover {
  opacity: 0.75;
  filter: grayscale(0.3) brightness(1.2);
}

/* ==================
   Responsive
================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__portrait-wrap {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero__portrait-frame {
    max-width: 320px;
  }

  .hero__heading {
    font-size: clamp(2.5rem, 8vw, 5rem);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--navbar-height) + 2rem);
  }

  .hero__stats {
    padding: 1rem;
    gap: 0;
    overflow-x: auto;
  }

  .hero__stat-value {
    font-size: 1.6rem;
  }

  .hero__stat-label {
    font-size: 0.6rem;
  }

  .hero__trust-logo {
    height: 22px;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}
