/* ==============================================
   Hero — full-viewport dark navy design
   ============================================== */

.ch-hero {
  --h-navy-dark:   #00112a;
  --h-navy:        #00214c;
  --h-gold:        #b9975b;
  --h-gold-bright: #d4b06e;
  --h-white:       #ffffff;
  --h-text:        #c8bfa8;
  --h-text-muted:  #5a6e8a;

  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--h-navy-dark);
  overflow: hidden;
}

/* Remove the Divi gold border-bottom from the old design */
.ch-hero::after {
  content: none;
}

/* ==============================================
   Background Image
   ============================================== */
.ch-hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ==============================================
   Snow Effect (behind overlay)
   ============================================== */
.ch-hero-snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ==============================================
   Gradient Overlay
   ============================================== */
.ch-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 50%, rgba(185, 151, 91, 0.07) 0%, transparent 58%),
    linear-gradient(to right,
      #00112a 0%,
      #00112a 30%,
      rgba(0, 17, 42, 0.88) 55%,
      rgba(0, 17, 42, 0.52) 100%
    );
}

/* Stats panel hidden when a hero image is present */
.ch-hero-has-image .ch-hero-stats {
  display: none;
}

/* When image is present, strengthen left opacity so text stays readable */
.ch-hero-has-image .ch-hero-overlay {
  background:
    radial-gradient(ellipse at 72% 50%, rgba(185, 151, 91, 0.06) 0%, transparent 55%),
    linear-gradient(to right,
      rgba(0, 17, 42, 0.96) 0%,
      rgba(0, 17, 42, 0.90) 35%,
      rgba(0, 17, 42, 0.70) 60%,
      rgba(0, 17, 42, 0.40) 100%
    );
}

/* ==============================================
   Inner Layout
   ============================================== */
.ch-hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* ==============================================
   Left Column
   ============================================== */
.ch-hero-left {
  flex: 1;
  max-width: 720px;
}

/* ==============================================
   Badge
   ============================================== */
.ch-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--h-gold);
  color: var(--h-gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 28px;
  animation: ch-fade-up 0.9s ease both;
  animation-delay: 0.15s;
}

@keyframes ch-badge-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ==============================================
   Title
   ============================================== */
.ch-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(90px, 13.5vw, 168px);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}

.ch-hero-title-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 4px rgba(185, 151, 91, 0.65);
  text-stroke: 4px rgba(185, 151, 91, 0.65);
  animation: ch-fade-up 0.9s ease both;
  animation-delay: 0.3s;
}

.ch-hero-title-solid {
  display: block;
  color: var(--h-gold-bright);
  animation: ch-fade-up 0.9s ease both;
  animation-delay: 0.3s;
}

/* ==============================================
   Subtitle
   ============================================== */
.ch-hero-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h-text-muted);
  margin: 0 0 24px;
  animation: ch-fade-up 0.9s ease both;
  animation-delay: 0.45s;
}

/* ==============================================
   Gold Rule
   ============================================== */
.ch-hero-rule {
  width: 56px;
  height: 2px;
  background: var(--h-gold);
  margin-bottom: 32px;
  animation: ch-rule-grow 0.9s ease both;
  animation-delay: 0.6s;
}

@keyframes ch-rule-grow {
  from { width: 0;    opacity: 0; }
  to   { width: 56px; opacity: 1; }
}

/* ==============================================
   Buttons
   ============================================== */
.ch-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: ch-fade-up 0.9s ease both;
  animation-delay: 0.7s;
}

.ch-btn-primary,
.ch-btn-ghost {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ch-btn-primary {
  background: var(--h-gold);
  color: var(--h-navy-dark);
  border: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.ch-btn-primary:hover {
  background: var(--h-gold-bright);
  color: var(--h-navy-dark);
  transform: translateY(-1px);

}

.ch-btn-ghost {
  background: transparent;
  color: var(--h-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.ch-btn-ghost:hover {
  border-color: var(--h-gold);
  color: var(--h-gold);
}

/* ==============================================
   Floating Stats (right)
   ============================================== */
.ch-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-end;
  flex-shrink: 0;
  animation: ch-fade-left 0.9s ease both;
  animation-delay: 0.8s;
}

.ch-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 20px;
  border-right: 2px solid var(--h-gold);
}

.ch-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 1;
  color: var(--h-white);
  letter-spacing: 0.02em;
}

.ch-stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--h-gold);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==============================================
   Animations
   ============================================== */
@keyframes ch-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes ch-fade-left {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0);    }
}

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 820px) {
  .ch-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 32px;
    gap: 40px;
  }

  .ch-hero-stats {
    flex-direction: row;
    align-items: flex-end;
    gap: 28px;
    width: 100%;
    animation-name: ch-fade-up;
  }

  .ch-hero-stat {
    align-items: flex-start;
    padding-right: 0;
    padding-bottom: 10px;
    border-right: none;
    border-bottom: 2px solid var(--h-gold);
    flex: 1;
  }
}

@media (max-width: 480px) {
  .ch-hero-inner {
    padding: 48px 24px;
  }

  .ch-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .ch-btn-primary,
  .ch-btn-ghost {
    text-align: center;
  }
}
