/* Faulkner HR Solutions — conversion-focused hub components */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20000;
  padding: 11px 16px;
  color: #fff;
  background: #122839;
  border: 2px solid #d4ae5a;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(18, 40, 57, .28);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(calc(-100% - 24px));
  transition: opacity .16s ease, transform .16s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}

body[data-hub-page] [hidden] {
  display: none !important;
}

body[data-hub-page] .hub-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

body[data-hub-page] .hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

body[data-hub-page] .hub-hero__content,
body[data-hub-page] .page-hero__content {
  position: relative;
  z-index: 2;
}

body[data-hub-page] .hub-hero__webgl {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body[data-hub-page] .hub-hero__lottie {
  --hub-lottie-size: clamp(170px, 24vw, 310px);
  position: absolute;
  top: 50%;
  right: clamp(12px, 5vw, 88px);
  z-index: 0;
  opacity: .22;
  transform: translateY(-50%);
  pointer-events: none;
  filter: saturate(.8);
}

.hub-reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.hub-reading-progress [data-hub-progress-line] {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #c49a3c, #f0ce7b);
  box-shadow: 0 0 14px rgba(196, 154, 60, .45);
}

.hub-pathways {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 8% 10%, rgba(196, 154, 60, .11), transparent 30%),
    linear-gradient(180deg, #fff, #f8f7f4);
}

.hub-pathways::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  aspect-ratio: 1;
  border: 1px solid rgba(27, 58, 82, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(27, 58, 82, .025), 0 0 0 112px rgba(27, 58, 82, .018);
  pointer-events: none;
}

.hub-section-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 56px);
  text-align: center;
}

.hub-section-heading .section-subtitle {
  margin: 14px auto 0;
}

.hub-path-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.hub-path-card {
  position: relative;
  display: flex;
  min-height: 330px;
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  flex-direction: column;
  color: #1b3a52;
  text-decoration: none;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(27, 58, 82, .12);
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(18, 40, 57, .08);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.hub-path-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #c49a3c, rgba(196, 154, 60, .18));
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .35s ease;
}

.hub-path-card::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -86px;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(196, 154, 60, .14);
  border-radius: 50%;
  transition: transform .45s ease, border-color .45s ease;
}

.hub-path-card:hover,
.hub-path-card:focus-visible {
  color: #122839;
  transform: translateY(-7px);
  border-color: rgba(196, 154, 60, .52);
  box-shadow: 0 26px 62px rgba(18, 40, 57, .14);
}

.hub-path-card:hover::before,
.hub-path-card:focus-visible::before {
  transform: scaleX(1);
}

.hub-path-card:hover::after,
.hub-path-card:focus-visible::after {
  transform: scale(1.16);
  border-color: rgba(196, 154, 60, .38);
}

.hub-path-card--urgent {
  color: #fff;
  background: linear-gradient(145deg, #122839, #1f4965);
  border-color: rgba(212, 174, 90, .28);
}

.hub-path-card--urgent:hover,
.hub-path-card--urgent:focus-visible,
.hub-path-card--urgent h3 {
  color: #fff;
}

.hub-path-card--urgent p {
  color: rgba(255, 255, 255, .76);
}

.hub-path-card__number {
  margin-bottom: 34px;
  color: rgba(196, 154, 60, .72);
  font: 600 .78rem/1.1 Inter, sans-serif;
  letter-spacing: .16em;
}

.hub-path-card__eyebrow {
  margin-bottom: 11px;
  color: #7b5713;
  font: 700 .73rem/1.2 Inter, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hub-path-card--urgent .hub-path-card__eyebrow {
  color: #e2bf6e;
}

.hub-path-card h3 {
  margin: 0 0 14px;
  color: inherit;
  font-size: clamp(1.24rem, 1.7vw, 1.55rem);
  line-height: 1.28;
}

.hub-path-card p {
  margin: 0 0 26px;
  color: #536474;
  line-height: 1.7;
}

.hub-path-card__link {
  margin-top: auto;
  color: #7b5713;
  font-weight: 700;
}

.hub-path-card--urgent .hub-path-card__link {
  color: #e2bf6e;
}

.cs-filter-dimension {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cs-filter-dimension + .cs-filter-dimension {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(27, 58, 82, .1);
}

.cs-filter-dimension__label {
  margin-right: 4px;
  color: #536474;
  font: 700 .7rem/1.2 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-hub-page="case-studies"] .cs-filter-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  overflow: visible;
}

body[data-hub-page="case-studies"] .cs-filter-dimension {
  align-content: flex-start;
  justify-content: flex-start;
}

body[data-hub-page="case-studies"] .cs-filter-dimension + .cs-filter-dimension {
  margin-top: 0;
  padding-top: 0;
  padding-left: 18px;
  border-top: 0;
  border-left: 1px solid rgba(27, 58, 82, .1);
}

body[data-hub-page] a:focus-visible,
body[data-hub-page] button:focus-visible,
body[data-hub-page] input:focus-visible,
body[data-hub-page] select:focus-visible,
body[data-hub-page] textarea:focus-visible,
body[data-hub-page] summary:focus-visible {
  outline: 3px solid #d4ae5a;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hub-path-grid {
    grid-template-columns: 1fr;
  }

  .hub-path-card {
    min-height: 0;
  }

  body[data-hub-page] .hub-hero__lottie {
    right: -40px;
    opacity: .13;
  }

  body[data-hub-page="case-studies"] .cs-filter-bar__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body[data-hub-page="case-studies"] .cs-filter-dimension {
    justify-content: center;
  }

  body[data-hub-page="case-studies"] .cs-filter-dimension + .cs-filter-dimension {
    margin-top: 14px;
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid rgba(27, 58, 82, .1);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body[data-hub-page] .hub-hero__lottie {
    display: none;
  }

  .hub-path-card {
    padding: 25px;
  }

  .hub-path-card__number {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }

  .hub-path-card,
  .hub-path-card::before,
  .hub-path-card::after {
    transition: none;
  }

  .hub-path-card:hover,
  .hub-path-card:focus-visible {
    transform: none;
  }
}
