/*
 * Hero Sections
 *
 * Developed by: Rhyll Neri
 */

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(3rem, 6vw, 6rem));
  padding-bottom: clamp(5rem, 10vw, 10rem);
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 10%, rgba(224,146,47,0.18), transparent 45%),
              radial-gradient(ellipse at 90% 90%, rgba(255,255,255,0.07), transparent 50%),
              linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0));
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,66,74,0.85), rgba(0,90,100,0.75));
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-9);
  align-items: center;
}

.hero--split .hero__inner {
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 1024px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
}

.hero__content { max-width: 760px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  backdrop-filter: blur(8px);
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw + 0.5rem, 5rem);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  font-weight: var(--fw-semibold);
  font-family: var(--font-display);
}

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

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__description {
  font-size: clamp(1.0625rem, 0.6vw + 1rem, var(--fs-22));
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: var(--space-7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: var(--space-7);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-12);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.hero__scroll-hint-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-hint-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-accent));
  animation: ardent-scroll-line 2s ease-in-out infinite;
}

@keyframes ardent-scroll-line {
  to { top: 100%; }
}

/* Stats bar inside hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 600px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, var(--fs-48));
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  line-height: 1;
}

.hero__stat-label {
  margin-top: var(--space-2);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.7);
}

/* Visual side image */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual-badge {
  position: absolute;
  left: -24px;
  bottom: 24px;
  background: var(--color-accent);
  color: var(--color-ink);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(4rem, 7vw, 7rem));
  padding-bottom: clamp(4rem, 6vw, 6rem);
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 10%, rgba(224,146,47,0.15), transparent 50%),
              radial-gradient(ellipse at 80% 90%, rgba(255,255,255,0.05), transparent 50%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 900px;
}

.page-hero__title {
  font-size: clamp(2.25rem, 4vw + 0.5rem, var(--fs-72));
  margin-bottom: var(--space-5);
  color: var(--color-white);
  line-height: 1.05;
}

.page-hero__description {
  font-size: clamp(1.0625rem, 0.4vw + 1rem, var(--fs-20));
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  line-height: var(--lh-relaxed);
}

.page-hero__meta {
  margin-top: var(--space-4);
  margin-bottom: 0;
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero__breadcrumb { margin-bottom: var(--space-5); }
.page-hero__breadcrumb .breadcrumb__link,
.page-hero__breadcrumb .breadcrumb__item--current { color: rgba(255,255,255,0.8); }
.page-hero__breadcrumb .breadcrumb__link:hover { color: var(--color-white); }
