/* Page Hero Foundation */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--gray-900);
  padding-top: calc(var(--navbar-height) + var(--space-20));
  padding-bottom: var(--space-20);
  border-bottom: 1px solid rgba(var(--palette-white-rgb), 0.05);
}

/* Base Image Setup */
.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 25%; /* Shifting down to keep faces in frame */
  z-index: 0;
}

/* Per-Page Backgrounds */
.page-hero-about .page-hero-bg {
  background-image: url('../../assets/team/Team01.webp');
}

.page-hero-services .page-hero-bg {
  background-image: url('../../assets/photography/services-hero.webp');
}

.page-hero-projects .page-hero-bg {
  background-image: url('../../assets/photography/projects-hero.webp');
}

.page-hero-contact .page-hero-bg {
  background-image: url('../../assets/photography/contact-hero.webp');
  background-position: top center;
}

/* HUD & Overlays - 90/60/30 Contrast Enforcement */
.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(var(--color-dominant-dark-rgb), 0.4) 0%,
    rgba(var(--color-dominant-dark-rgb), 0.7) 100%
  );
  z-index: 1;
}

.page-hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(var(--palette-white-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--palette-white-rgb), 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  z-index: 2;
  pointer-events: none;
}

/* Content Container */
.page-hero .container {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-hero .section-title {
  margin-bottom: var(--space-4);
  text-shadow: 0 4px 12px rgba(0,0,0,0.5); /* Contrast Punch */
}

.page-hero .section-subtitle {
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Responsive Scaling */
@media (max-width: 768px) {
  .page-hero {
    min-height: 40vh;
    padding-top: calc(var(--navbar-height) + var(--space-16));
    padding-bottom: var(--space-16);
  }
}

/* CREATIVE HERO ENHANCEMENTS */
.page-hero-creative {
  min-height: 60vh;
  justify-content: flex-start;
  text-align: left;
}

.page-hero-creative .container {
  align-items: flex-start;
  text-align: left;
}

.hero-creative-card {
  background: rgba(var(--color-secondary-rgb), 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--palette-white-rgb), 0.15);
  border-left: 4px solid var(--safety-yellow);
  padding: var(--space-8);
  max-width: 650px;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-creative-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  background: rgba(var(--palette-white-rgb), 0.05);
  padding: var(--space-2) var(--space-4);
  border-radius: 4px;
  border: 1px solid rgba(var(--palette-white-rgb), 0.1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--safety-yellow);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--safety-yellow);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.hero-creative-title {
  font-family: var(--font-secondary);
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.1;
  color: var(--operational-white);
  text-shadow: none;
}

.title-highlight {
  color: var(--safety-yellow);
}

.hero-creative-subtitle {
  font-size: var(--text-lg);
  color: rgba(var(--palette-white-rgb), 0.9);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  text-shadow: none;
}

.hero-creative-stats {
  display: flex;
  gap: var(--space-8);
  border-top: 1px solid rgba(var(--palette-white-rgb), 0.1);
  padding-top: var(--space-6);
}

.h-stat {
  display: flex;
  flex-direction: column;
}

.h-stat-num {
  font-family: var(--font-secondary);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--safety-yellow);
  line-height: 1;
}

.h-stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(var(--palette-white-rgb), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
}

@media (max-width: 768px) {
  .hero-creative-card {
    padding: var(--space-6);
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .hero-creative-subtitle {
    font-size: var(--text-base);
  }

  .hero-creative-title {
    font-size: clamp(2.35rem, 11vw, var(--text-4xl));
  }

  .hero-creative-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }
}
