/* ============================================================
   hero.css — Full-viewport Hero Section
   VTCGO — Luxury Chauffeur & Transfer Service Morocco
   ============================================================ */

/* ── Main Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  transform-origin: center;
  will-change: transform;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,8,0.88) 0%,
    rgba(8,8,8,0.60) 50%,
    rgba(8,8,8,0.40) 100%
  );
}

.hero__overlay--strong {
  background: linear-gradient(
    180deg,
    rgba(8,8,8,0.80) 0%,
    rgba(8,8,8,0.70) 60%,
    rgba(8,8,8,0.90) 100%
  );
}

/* Gold stripe accent left */
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-gold-dark) 20%,
    var(--color-gold) 50%,
    var(--color-gold-dark) 80%,
    transparent 100%
  );
  z-index: 2;
  opacity: 0;
  animation: hero-stripe 1.2s var(--ease-out) 0.4s forwards;
}

@keyframes hero-stripe {
  to { opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  padding: var(--space-8) var(--space-6);
}

/* ── Hero Label ────────────────────────────────────────────── */
.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.8s var(--ease-out) 0.3s forwards;
}

.hero__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
  vertical-align: middle;
  margin-right: var(--space-3);
  margin-top: -2px;
}

/* ── Hero Title ─────────────────────────────────────────────── */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  color: var(--color-ivory);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-up 0.9s var(--ease-out) 0.5s forwards;
}

.hero__title .gold {
  color: var(--color-gold);
  font-style: italic;
}

/* ── Hero Subtitle ──────────────────────────────────────────── */
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-ivory-muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: var(--space-10);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.8s var(--ease-out) 0.7s forwards;
}

/* ── Hero CTAs ──────────────────────────────────────────────── */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.8s var(--ease-out) 0.9s forwards;
}

/* ── Hero Scroll indicator ──────────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: hero-fade-up 0.6s var(--ease-out) 1.4s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scroll-line 1.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__scroll-text {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  writing-mode: horizontal-tb;
  rotate: 0deg;
}

/* ── Hero Stats Bar (optional) ──────────────────────────────── */
.hero__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(8,8,8,0.9) 0%, rgba(17,17,17,0.85) 100%);
  border-top: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero__stat {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border-right: var(--border-subtle);
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-gold);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-grey-300);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__stat:nth-child(2) { border-right: none; }
  .hero__stat:nth-child(3),
  .hero__stat:nth-child(4) { border-top: var(--border-subtle); }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    background-attachment: scroll;
  }

  .hero__bg {
    background-attachment: scroll;
  }

  .hero__content {
    padding: var(--space-6) var(--space-4);
    padding-top: 120px;
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero__ctas {
    flex-direction: column;
  }

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

  .hero__stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stat {
    padding: var(--space-3) var(--space-2);
  }
}

/* ── Full-page hero variant (no header offset needed) ─────── */
main.hero-page {
  padding-top: 0;
}
