/**
 * Support & Resources hub landing — three-column chooser (ResourcesHubPage sample).
 */

/* Hub landing — document scroll; footer below full-viewport card row. */
body.acc-portal-page.support-hub-landing {
  --acc-header-h: 3.25rem;
  --support-hub-columns-min-h: calc(100dvh - var(--acc-header-h) - 10.5rem);
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

html:has(body.acc-portal-page.support-hub-landing) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.acc-portal-page.support-hub-landing .corp-header--hub .corp-header-inner {
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

body.acc-portal-page.support-hub-landing .corp-header {
  border-bottom: none;
}

/* Inner support portal pages — same header gutters as Training / Resource Bank. */
body.acc-portal-page.fel-portal-page[data-hub-current="support"] .corp-header--hub .corp-header-inner {
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.support-hub-landing {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--gal-bg, #fff);
}

.support-hub-landing .corp-header {
  flex-shrink: 0;
}

.support-hub-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.support-hub-landing .support-hub-main > .corp-footer {
  flex-shrink: 0;
  margin-top: 0;
}

.support-hub-columns {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: var(--support-hub-columns-min-h, calc(100dvh - 14rem));
}

@media (min-width: 768px) {
  .support-hub-columns {
    flex-direction: row;
  }
}

.support-hub-col {
  flex: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #000;
  background: #fff;
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 12rem;
}

.support-hub-col::before,
.support-hub-col::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.support-hub-col::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.72) 100%),
    linear-gradient(120deg, rgba(15, 23, 42, 0.16) 0%, rgba(15, 23, 42, 0.55) 56%, rgba(15, 23, 42, 0.84) 100%);
  transition: opacity 0.5s ease;
}

.support-hub-col::after {
  z-index: 0;
  background-image: var(--support-preview-image);
  background-position: var(--support-preview-position, center);
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

@media (min-width: 768px) {
  .support-hub-col {
    padding: 4rem 2rem;
    min-height: 0;
  }
}

.support-hub-col--alt {
  background: #f8f8f8;
}

.support-hub-col:hover,
.support-hub-col:focus-visible {
  background: var(--gal-midnight, #0f172a);
  color: #fff;
  outline: none;
}

.support-hub-col:focus-visible {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.75),
    inset 0 0 0 5px rgba(197, 160, 89, 0.9);
}

.support-hub-col:hover::before,
.support-hub-col:hover::after,
.support-hub-col:focus-visible::before,
.support-hub-col:focus-visible::after {
  opacity: 1;
}

.support-hub-col:hover::after,
.support-hub-col:focus-visible::after {
  transform: scale(1);
}

.support-hub-col-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-hub-col-title {
  margin: 0;
  font-size: clamp(0.75rem, 2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--gal-midnight, #0f172a);
  transition: color 0.5s ease;
}

.support-hub-col:hover .support-hub-col-title,
.support-hub-col:focus-visible .support-hub-col-title {
  color: #fff;
}

.support-hub-col-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--gal-muted, #64748b);
  transition: color 0.5s ease;
}

.support-hub-col:hover .support-hub-col-lead,
.support-hub-col:focus-visible .support-hub-col-lead {
  color: rgba(255, 255, 255, 0.92);
}

.support-hub-col-cta {
  margin: 0;
  padding-top: 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 0.5rem;
  display: inline-block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.support-hub-col--resource-bank {
  --support-preview-image:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.3) 0 11%, transparent 12%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 36%),
    linear-gradient(180deg, rgba(197, 160, 89, 0.22) 0%, rgba(197, 160, 89, 0) 34%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0 7%,
      rgba(255, 255, 255, 0.18) 7% 11%,
      rgba(15, 23, 42, 0.08) 11% 17%
    ),
    linear-gradient(135deg, #1f4d5e 0%, #153448 36%, #0f172a 100%);
}

.support-hub-col--publications {
  --support-preview-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 34%),
    linear-gradient(180deg, rgba(197, 160, 89, 0.28) 0%, rgba(197, 160, 89, 0.04) 42%, rgba(15, 23, 42, 0.22) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 0 8%,
      rgba(255, 255, 255, 0.04) 8% 13%,
      rgba(15, 23, 42, 0.2) 13% 22%
    ),
    linear-gradient(120deg, #a37a37 0%, #71531f 28%, #2b3443 68%, #0f172a 100%);
}

.support-hub-col--inclusionista {
  --support-preview-image:
    linear-gradient(120deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.38) 40%, rgba(15, 23, 42, 0.78) 100%),
    url("/images/Inclusionista%20Cover.jpg");
  --support-preview-position: center 22%;
}

.support-hub-col:hover .support-hub-col-cta,
.support-hub-col:focus-visible .support-hub-col-cta {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .support-hub-col,
  .support-hub-col::before,
  .support-hub-col::after,
  .support-hub-col-title,
  .support-hub-col-lead,
  .support-hub-col-cta {
    transition: none;
  }

  .support-hub-col-cta {
    opacity: 1;
  }
}
