/* hero.css — hero section layout and styles */

/* ── Hero section shell ──────────────────────────────── */

.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 64px; /* nav height offset */
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image:
    linear-gradient(
      135deg,
      rgba(6, 15, 35, 0.88) 0%,
      rgba(6, 15, 35, 0.70) 50%,
      rgba(6, 15, 35, 0.82) 100%
    ),
    url('/public/img/tech-hero-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Bottom fade — blends hero into page background */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-bg) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Subtle radial depth layer over the background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(0, 116, 183, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(0, 201, 177, 0.09) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ── Three-column equal grid ─────────────────────────── */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  padding: 60px 64px;
}

.hero-col {
  min-width: 0; /* prevent overflow */
}

/* ── Left column: badge + copy + CTAs ───────────────── */

.hero-col--copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero-badge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.hero-badge-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0, 116, 183, 0.6));
  transition: opacity 0.3s ease;
}

.hero-intro-video {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.3;
  color: #e6eef8;
  margin-top: var(--space-2);
  font-weight: var(--weight-medium);
}

.hero__subtitle--accent {
  color: var(--color-teal);
}

.hero__tagline {
  color: rgba(255, 255, 255, 0.64);
  font-weight: var(--weight-medium);
  font-size: var(--text-lg);
  margin-top: var(--space-2);
  letter-spacing: 0.01em;
}

.hero__tagline--accent {
  color: var(--color-teal);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Center column: SmartIQ steps card ──────────────── */

.hero-col--steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-steps-card {
  background: rgba(6, 15, 35, 0.72);
  border: 1px solid rgba(0, 201, 177, 0.18);
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-steps-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-5);
}

.hero-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: space-evenly;
  height: 100%;
}

.hero-step-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: 1px solid transparent;
}

.hero-step-item:hover {
  background: rgba(0, 201, 177, 0.07);
  border-color: var(--color-border);
}

.hero-step-item__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-teal);
  opacity: 0.7;
  flex-shrink: 0;
  width: 24px;
}

.hero-step-item__text {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

/* ── Right column: tall photo card ──────────────────── */

.hero-col--image {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-image-wrap {
  flex: 1;
  height: 100%;
  min-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 201, 177, 0.12);
}

.hero-image-wrap picture {
  display: block;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-section {
    min-height: 88vh;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    padding: 48px 32px;
  }

  .hero-col--image {
    grid-column: 1 / -1;
  }

  .hero-image-wrap {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 64px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    min-height: auto;
  }

  .hero-col--image {
    grid-column: auto;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero-image-wrap {
    min-height: auto;
    max-height: 240px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

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