/* ==============================================
   Hero — editorial, navy + photo, big Bebas wordmark
   Selectors are scoped under .ch-hero to beat Divi's
   .et_pb_text h1 / .et_pb_section h1 module overrides.
   ============================================== */
.ch-hero {
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  min-height: 78vh;
  max-height: 820px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

/* Reset UA + Divi paragraph + heading defaults inside the hero.
   The UA stylesheet applies to <h1>:
     margin-block-start/end: 0.67em;
     margin-inline-start/end: 0;
     font-weight: bold;
     unicode-bidi: isolate;
   Plus Divi's reset/module CSS injects its own font-weight + colors.
   Zero everything explicitly so the wordmark inherits cleanly. */
.ch-hero p,
.ch-hero h1,
.ch-hero h2,
.ch-hero h3,
.ch-hero h4,
.ch-hero h5,
.ch-hero h6 {
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding: 0;
  font-weight: 400;
  color: inherit;
  unicode-bidi: normal;
}

/* ==============================================
   Background photo + gradient overlay
   ============================================== */
.ch-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.ch-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 35, 71, 0.35) 0%, rgba(0, 35, 71, 0.55) 50%, rgba(0, 35, 71, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 35, 71, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle scanline grain */
.ch-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

/* ==============================================
   Inner stack
   ============================================== */
.ch-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 96px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ==============================================
   Eyebrow — mono caps, ice blue, with leading line
   ============================================== */
.ch-hero .ch-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--tertiary);
  text-transform: uppercase;
}

.ch-hero .ch-hero-eyebrow-line {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--tertiary);
  opacity: 0.85;
}

/* ==============================================
   Wordmark — huge Bebas, two lines, second indented + gold
   ============================================== */
.ch-hero .ch-hero-wordmark {
  font-family: var(--font-display) !important;
  font-size: clamp(96px, 16vw, 240px) !important;
  font-weight: 400 !important;
  line-height: 0.82 !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  text-transform: uppercase !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ch-hero .ch-hero-wordmark-1,
.ch-hero .ch-hero-wordmark-2 {
  display: block;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
}

.ch-hero .ch-hero-wordmark-2 {
  color: var(--secondary) !important;
  margin-left: clamp(40px, 8vw, 140px);
}

/* ==============================================
   Foot — tagline + action buttons, top hairline
   ============================================== */
.ch-hero .ch-hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ch-hero .ch-hero-foot-spacer {
  flex: 1 1 auto;
}

.ch-hero .ch-hero-tagline {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 0;
  padding: 0;
}

.ch-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ==============================================
   Buttons
   ============================================== */
.ch-hero .ch-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ch-hero .ch-hero-btn-primary {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 1px solid var(--secondary);
}

.ch-hero .ch-hero-btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--primary-dark);
}

.ch-hero .ch-hero-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.ch-hero .ch-hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
