/* ============================================================
   VAM Localization – Hero Section
   hero.css
   ============================================================ */

.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 800px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary);
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1920&q=80&auto=format');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero.loaded .hero__bg {
  transform: scale(1);
}

/* Dark overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 44, 77, 0.92) 0%,
    rgba(11, 44, 77, 0.75) 55%,
    rgba(11, 44, 77, 0.55) 100%
  );
}

/* Pattern overlay */
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero__label span {
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 5.5vw, var(--fs-6xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent-light);
}

.hero__text {
  font-size: clamp(var(--fs-base), 1.8vw, var(--fs-lg));
  color: rgba(255,255,255,0.82);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.8s forwards;
}

/* Stats bar */
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
  gap: clamp(var(--space-6), 5vw, var(--space-8));
  opacity: 0;
  animation: fadeUp 0.7s ease 1s forwards;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero__stat-value span {
  color: var(--color-accent-light);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.7s ease 1.2s forwards;
  cursor: pointer;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    min-height: 480px;
    align-items: flex-end;
    padding-bottom: var(--space-12);
  }

  .hero__stats {
    gap: var(--space-5);
  }

  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: var(--space-4); }
}
