/* ================================================================
   UNIFIED HERO SECTION STYLESHEET
   Single source of truth for all non-home page hero sections
   ================================================================ */

:root {
  /* Hero Layout */
  --hero-min-height: 320px;
  --hero-min-height-mobile: 290px;
  --hero-padding-vertical: clamp(38px, 4.5vw, 58px);
  --hero-padding-horizontal: max(25px, calc((100% - 1180px) / 2));
  
  /* Hero Typography */
  --hero-h1-font-size: clamp(25px, 2.8vw, 34px);
  --hero-h1-line-height: 1.12;
  --hero-h1-letter-spacing: -0.045em;
  --hero-h1-margin-top: 12px;
  --hero-h1-margin-bottom: 12px;
  
  --hero-p-font-size: 15px;
  --hero-p-color: #c0d0db;
  --hero-p-line-height: 1.8;
  
  --hero-breadcrumb-font-size: var(--font-size-sm);
  --hero-breadcrumb-letter-spacing: 0.12em;
  --hero-breadcrumb-color: #a8bdcc;
  
  --hero-label-font-size: var(--font-size-xs);
  --hero-label-font-weight: 700;
  --hero-label-letter-spacing: 0.16em;
  --hero-label-color: #83e2db;
  --hero-label-text-transform: uppercase;
  
  /* Hero Colors & Backgrounds */
  --hero-background-gradient: linear-gradient(115deg, #287b7d 0%, #237c82 50%, #1a7c8a 100%);
  --hero-overlay-light: linear-gradient(90deg, rgba(5, 24, 48, .62) 0%, rgba(5, 24, 48, .38) 52%, rgba(5, 24, 48, .52) 100%);
  --hero-overlay-dark: linear-gradient(0deg, rgba(5, 24, 48, .50), rgba(5, 24, 48, .12) 58%, rgba(5, 24, 48, .30));
  --hero-overlay-gradient: linear-gradient(105deg, rgba(4, 20, 40, .22), transparent 68%);
  --hero-text-color: #fff;
}

/* ================================================================
   BASE HERO SECTION
   ================================================================ */

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hero-min-height);
  padding: var(--hero-padding-vertical) var(--hero-padding-horizontal);
  box-sizing: border-box;
  color: var(--hero-text-color);
}

/* Remove pseudo-elements that create artifacts */
.hero-section::after {
  content: none;
}

/* Base before is none, but hero-image can override */
.hero-section::before {
  content: none;
}

/* ================================================================
   HERO BACKGROUND VARIANTS
   ================================================================ */

/* Gradient variant */
.hero-gradient {
  background: var(--hero-background-gradient);
}

/* Image variant with overlays */
.hero-image {
  background-size: cover;
  background-position: center 54%;
  background-repeat: no-repeat;
  background-color: #082747;
}

/* Allow hero-image to use ::before for overlay */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--hero-overlay-gradient);
  opacity: 1;
}

/* ================================================================
   HERO TYPOGRAPHY
   ================================================================ */

.hero-section h1 {
  font-size: var(--hero-h1-font-size);
  line-height: var(--hero-h1-line-height);
  letter-spacing: var(--hero-h1-letter-spacing);
  margin-top: var(--hero-h1-margin-top);
  margin-bottom: var(--hero-h1-margin-bottom);
  color: var(--hero-text-color);
}

.hero-section p {
  font-size: var(--hero-p-font-size);
  line-height: var(--hero-p-line-height);
  color: var(--hero-p-color);
  margin: 0;
}

/* ================================================================
   HERO BREADCRUMB
   ================================================================ */

.hero-breadcrumb {
  font-size: var(--hero-breadcrumb-font-size);
  letter-spacing: var(--hero-breadcrumb-letter-spacing);
  color: var(--hero-breadcrumb-color);
  margin-bottom: 24px;
}

.hero-breadcrumb a {
  color: var(--hero-label-color);
  text-decoration: none;
}

.hero-breadcrumb a:hover {
  text-decoration: underline;
}

/* ================================================================
   HERO LABEL / EYEBROW
   ================================================================ */

.hero-label {
  display: inline-block;
  font-size: var(--hero-label-font-size);
  font-weight: var(--hero-label-font-weight);
  letter-spacing: var(--hero-label-letter-spacing);
  color: var(--hero-label-color);
  text-transform: var(--hero-label-text-transform);
}

/* Animated dot for coming-soon pages */
.hero-label .coming-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background-color: var(--hero-label-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================================================================
   RESPONSIVE: TABLET
   ================================================================ */

@media (max-width: 900px) {
  .hero-section {
    /* Adjust if needed for tablet */
  }
}

/* ================================================================
   RESPONSIVE: MOBILE
   ================================================================ */

@media (max-width: 700px) {
  .hero-section {
    min-height: var(--hero-min-height-mobile);
  }

  .hero-section h1 {
    font-size: clamp(24px, 5.5vw, 30px);
  }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .hero-section h1,
  .hero-section p,
  .hero-label .coming-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  .hero-section h1 {
    font-weight: 800;
  }

  .hero-label {
    font-weight: 800;
  }

  .hero-breadcrumb {
    font-weight: 600;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .hero-gradient {
    background: var(--hero-background-gradient);
  }

  .hero-section {
    color: var(--hero-text-color);
  }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
  .hero-section {
    background: none;
    border: 1px solid #ddd;
    padding: 20px;
  }

  .hero-section::before,
  .hero-image::before {
    display: none !important;
  }

  .hero-breadcrumb {
    display: none;
  }

  .hero-label {
    display: none;
  }
}
