/* ==========================================================
   Home hero (scoped under .hx)
   Full-width photo slider: each slide image fills the hero
   behind a deep-blue gradient, white copy on the left, slow
   zoom on every slide change. A floating quick-links bar
   (.hx-quick-wrap) overlaps the hero's bottom edge.
   Slides are toggled by the inline carousel()/showDivs()
   scripts via style.display on .slides.
   Logo palette: royal blue + orange.
   ========================================================== */
.hx {
  --hx-blue: #0d4f9c;
  --hx-blue-deep: #083a75;
  --hx-navy: #061f42;
  --hx-orange: #f08a1c;
  --hx-orange-deep: #d9740a;
  position: relative;
  overflow: hidden;
  background: var(--hx-navy);
}
.hx a { text-decoration: none; }
.hx-wrap {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- slides ---------- */
.slides { display: none; }
.hx-slide {
  position: relative;
  min-height: 640px;
  height: 78vh;
  max-height: 760px;
  display: flex;
  align-items: center;
}
.hx-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hx-slide::before {
  /* readability gradient over the photo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 31, 66, .45) 0%, rgba(6, 31, 66, .15) 50%, rgba(6, 31, 66, 0) 75%),
    linear-gradient(0deg, rgba(6, 31, 66, .45) 0%, rgba(6, 31, 66, 0) 30%);
}
.hx-slide::after {
  /* orange diagonal accent */
  content: "";
  display: none;
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 6px;
  background: linear-gradient(180deg, rgba(240, 138, 28, 0), rgba(240, 138, 28, .7), rgba(240, 138, 28, 0));
  transform: skewX(-14deg);
  opacity: .6;
}
.hx-inner { z-index: 2; padding-bottom: 60px; }

.slides[style*="block"] .hx-bg { animation: hx-zoom 7s ease-out both; }
@keyframes hx-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ---------- copy ---------- */
.hx-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 34px 36px;
  border-radius: 28px;
  background: rgba(6, 31, 66, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  color: #fff;
}
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hx-orange);
  box-shadow: 0 0 0 4px rgba(240, 138, 28, .3);
}
.hx-title {
  margin: 0;
  font-size: 52px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hx-title span { display: block; color: var(--hx-orange); }
.hx-text { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .88); }
.hx-text p { margin: 0; }

.hx-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn--primary { background: var(--hx-orange); color: #fff; box-shadow: 0 14px 28px -12px rgba(240, 138, 28, .8); }
.hx-btn--primary:hover { background: #fff; color: var(--hx-blue-deep); }
.hx-btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.hx-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--hx-blue-deep); }

/* ---------- motto + controls (bottom of hero) ---------- */
.hx-controls-wrap {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.hx-controls-wrap > * { pointer-events: auto; }
.hx-motto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hx-motto .fa { color: var(--hx-orange); font-size: 16px; }
.hx-controls { display: flex; gap: 10px; }
.hx-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  transition: background .2s, border-color .2s, color .2s;
}
.hx-arrow:hover { background: var(--hx-orange); border-color: var(--hx-orange); }

/* ---------- quick links bar ---------- */
.hx-quick-wrap { position: relative; z-index: 5; margin-top: -60px; }
.hx-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(6, 31, 66, .45);
  border: 1px solid #e5ebf3;
}
.hx-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 26px;
  color: #142033;
  text-decoration: none;
  transition: background .25s ease;
}
.hx-quick-item + .hx-quick-item { border-left: 1px solid #e5ebf3; }
.hx-quick-item strong { display: block; font-size: 17px; font-weight: 800; color: #083a75; line-height: 1.2; }
.hx-quick-item small { display: block; margin-top: 3px; font-size: 13.5px; color: #5a6577; }
.hx-quick-ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4fb;
  color: #0d4f9c;
  font-size: 21px;
  transition: background .25s ease, color .25s ease;
}
.hx-quick-item:hover { background: #0d4f9c; }
.hx-quick-item:hover strong, .hx-quick-item:hover small { color: #fff; }
.hx-quick-item:hover .hx-quick-ico { background: #f08a1c; color: #fff; }
.hx-quick-item:first-child .hx-quick-ico { background: #f08a1c; color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .hx-title { font-size: 52px; }
}
@media (max-width: 1023px) {
  .hx-slide { min-height: 560px; height: auto; max-height: none; padding: 80px 0 150px; }
  .hx-slide::before { background: linear-gradient(0deg, rgba(6, 31, 66, .5) 0%, rgba(6, 31, 66, .15) 60%); }
  .hx-slide::after { display: none; }
  .hx-controls-wrap { bottom: 84px; }
  .hx-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-quick-item:nth-child(3) { border-left: 0; }
  .hx-quick-item:nth-child(n+3) { border-top: 1px solid #e5ebf3; }
}
@media (max-width: 640px) {
  .hx-wrap { padding: 0 16px; }
  .hx-slide { min-height: 520px; padding: 56px 0 140px; }
  .hx-title { font-size: 34px; }
  .hx-copy { padding: 24px 22px; border-radius: 22px; }
  .hx-text { font-size: 16px; }
  .hx-btn { width: 100%; justify-content: center; padding: 14px 22px; }
  .hx-motto { display: none; }
  .hx-controls-wrap { justify-content: center; bottom: 76px; }
  .hx-quick-wrap { margin-top: -48px; }
  .hx-quick-item { padding: 16px 14px; gap: 10px; }
  .hx-quick-ico { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
  .hx-quick-item strong { font-size: 14.5px; }
  .hx-quick-item small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .slides[style*="block"] .hx-bg { animation: none; }
}

/* slides whose photo subject is on the left: put the text card on the right */
.hx-slide--right .hx-inner { display: flex; justify-content: flex-end; }
@media (max-width: 1023px) {
  .hx-slide--right .hx-inner { justify-content: flex-start; }
}

/* ==========================================================
   Video hero (.hx--video)
   Full-width background video (poster image until it plays),
   soft shade for readability, frosted copy card on the left.
   ========================================================== */
.hx--video {
  min-height: 640px;
  height: 82vh;
  max-height: 800px;
  display: flex;
  align-items: center;
}
.hx-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

}
.hx-video-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 31, 66, .55) 0%, rgba(6, 31, 66, .2) 45%, rgba(6, 31, 66, 0) 70%),
    linear-gradient(0deg, rgba(6, 31, 66, .55) 0%, rgba(6, 31, 66, 0) 35%),
    linear-gradient(180deg, rgba(6, 31, 66, .6) 0%, rgba(6, 31, 66, 0) 20%);
  pointer-events: none;
}
.hx-video-inner { position: relative; z-index: 2; padding-bottom: 60px; }
.hx--video .hx-copy { animation: hx-rise .9s ease-out both; }
@keyframes hx-rise { from { transform: translateY(24px); } to { transform: none; } }
.hx-video-toggle { background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 16px; }
.hx-video-toggle[hidden] { display: none; }

@media (max-width: 1023px) {
  .hx--video { height: auto; max-height: none; min-height: 560px; padding: 80px 0 150px; }
}
@media (max-width: 640px) {
  .hx--video { min-height: 520px; padding: 56px 0 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx--video .hx-copy { animation: none; }
}
/* over a playing video, a live backdrop blur is expensive and some renderers drop
   the layer entirely — use a solid translucent card instead */
.hx--video .hx-copy {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(6, 31, 66, .72);
}
.hx--video .hx-eyebrow { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* promote the overlay layers so every renderer stacks them above the playing video */
.hx-video-shade,
.hx-video-inner,
.hx--video .hx-controls-wrap { transform: translateZ(0); will-change: transform; }

/* video buttons: sound on/off pill + pause/play */
.hx-video-btns { display: flex; align-items: center; gap: 10px; }
.hx-video-sound {
  width: auto;
  padding: 0 18px 0 16px;
  gap: 10px;
  border-radius: 999px;
  font-size: 18px;
  background: rgba(255, 255, 255, .12);
}
.hx-video-sound[hidden] { display: none; }
.hx-sound-label { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.hx-video-sound.is-on { background: var(--hx-orange); border-color: var(--hx-orange); }
@media (max-width: 640px) { .hx-sound-label { display: none; } .hx-video-sound { width: 48px; padding: 0; } }
