/* ==========================================================================
   OL HYROX Icon Cards — module.css
   2026 OneLife Theme
   Figma: 85556-Hyrox-LP node 7-168
   Full-width dark section with centered header, icon card grid,
   and CTA button. Cards are equal-width, dark grey, centered content.
   ========================================================================== */


/* ==========================================================================
   CSS Custom Properties (defaults)
   ========================================================================== */

.ol-hyrox-ic {
  --ol-hyrox-ic-section-bg:    #000000;
  --ol-hyrox-ic-heading-color: #FFFFFF;
  --ol-hyrox-ic-header-body:   #FFFFFF;
  --ol-hyrox-ic-subheading:    #FFFFFF;
  --ol-hyrox-ic-card-accent:   #FFEC00;
  --ol-hyrox-ic-card-bg:       #262626;
  --ol-hyrox-ic-card-title:    #FFFFFF;
  --ol-hyrox-ic-card-body:     #FFFFFF;
  --ol-hyrox-ic-icon-color:    #FFEC00;
  --ol-hyrox-ic-tagline-color: #FFFFFF;
  --ol-hyrox-ic-btn-bg:        #FFEC00;
  --ol-hyrox-ic-btn-color:     #000000;
  --ol-hyrox-ic-btn2-bg:       #31827D;
  --ol-hyrox-ic-btn2-color:    #FFFFFF;
}


/* ==========================================================================
   Section — full-width background only
   ========================================================================== */

.ol-hyrox-ic {
  width: 100%;
  background-color: var(--ol-hyrox-ic-section-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}


/* ==========================================================================
   Inner wrapper — caps content at 1750px, centred
   ========================================================================== */

.ol-hyrox-ic__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1750px;
  margin-left: auto;
  margin-right: auto;
  padding: 150px 80px;
}


/* ==========================================================================
   Header block — heading only, centred
   ========================================================================== */

.ol-hyrox-ic__header {
  width: 100%;
  text-align: center;
}

.ol-hyrox-ic__logo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ol-hyrox-ic__logo {
  display: block;
  height: 24px;
  width: auto;
  max-height: 24px;
  object-fit: contain;
}

.ol-hyrox-ic__heading {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-size: var(--ol-hyrox-ic-heading-size, 48px);
  font-weight: 700;
  line-height: 1.167; /* 56px / 48px */
  color: var(--ol-hyrox-ic-heading-color, #ffffff);
}

.ol-hyrox-ic__header-body {
  margin-top: 16px;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.556; /* 28px */
  color: var(--ol-hyrox-ic-header-body, #ffffff);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.ol-hyrox-ic__header-body p {
  margin: 0 0 1em;
}

.ol-hyrox-ic__header-body p:last-child {
  margin-bottom: 0;
}

.ol-hyrox-ic__header-subheading {
  margin: 16px 0 0;
  font-family: 'Rubik', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.333; /* 32px */
  color: var(--ol-hyrox-ic-subheading, #ffffff);
}

.ol-hyrox-ic__tagline {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.333;
  color: var(--ol-hyrox-ic-tagline-color, #ffffff);
  text-align: center;
}


/* ==========================================================================
   Cards grid
   ========================================================================== */

.ol-hyrox-ic__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}


/* ==========================================================================
   Individual card
   ========================================================================== */

.ol-hyrox-ic__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 16px;
  background-color: var(--ol-hyrox-ic-card-bg);
  text-align: center;
  border-top: 3px solid transparent;
  transition:
    transform   0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease,
    box-shadow  0.35s ease;
}

.ol-hyrox-ic__card:hover {
  transform: translateY(-8px);
  border-top-color: var(--ol-hyrox-ic-card-accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Glass card variant — frosted translucent cards over a background image
   ========================================================================== */

.ol-hyrox-ic--glass .ol-hyrox-ic__card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  border-top-width: 0.5px;
  border-radius: 6px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.ol-hyrox-ic--glass .ol-hyrox-ic__card:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.5);
  border-top-color: var(--ol-hyrox-ic-card-accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

/* Fallback when backdrop-filter is unsupported — darken cards so text stays readable */
@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .ol-hyrox-ic--glass .ol-hyrox-ic__card {
    background-color: rgba(30, 30, 30, 0.75);
  }
}

.ol-hyrox-ic__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ol-hyrox-ic-icon-color);
  flex-shrink: 0;
}

.ol-hyrox-ic__icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  /* If icons are uploaded as white SVGs, tint them yellow */
  filter: brightness(0) saturate(100%) invert(93%) sepia(60%) saturate(800%) hue-rotate(5deg) brightness(105%);
}

.ol-hyrox-ic__card-title {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-size: var(--ol-hyrox-ic-card-title-size, 24px);
  font-weight: 500;
  line-height: 1.333; /* 32px / 24px */
  color: var(--ol-hyrox-ic-card-title, #ffffff);
}

.ol-hyrox-ic__card-body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.556; /* 28px / 18px */
  color: var(--ol-hyrox-ic-card-body, #ffffff);
}

/* Rich text card body — supports bold, bullets, links */
.ol-hyrox-ic__card-body--rich {
  width: 100%;
}

.ol-hyrox-ic__card-body--rich p {
  margin: 0 0 0.75em;
}

.ol-hyrox-ic__card-body--rich p:last-child {
  margin-bottom: 0;
}

/* ol-global.css resets `ul, ol { list-style: none }` — restore markers here */
.ol-hyrox-ic__card-body--rich ul,
.ol-hyrox-ic__card-body--rich ol {
  margin: 0 0 0.75em;
  padding-left: 1.4em;
  text-align: left;   /* bullets read better left-aligned inside centered cards */
}

.ol-hyrox-ic__card-body--rich ul {
  list-style: disc outside;
}

.ol-hyrox-ic__card-body--rich ol {
  list-style: decimal outside;
}

.ol-hyrox-ic__card-body--rich ul ul {
  list-style-type: circle;
}

.ol-hyrox-ic__card-body--rich li {
  display: list-item;
}

.ol-hyrox-ic__card-body--rich ul:last-child,
.ol-hyrox-ic__card-body--rich ol:last-child {
  margin-bottom: 0;
}

.ol-hyrox-ic__card-body--rich li {
  margin-bottom: 0.35em;
}

.ol-hyrox-ic__card-body--rich li:last-child {
  margin-bottom: 0;
}

.ol-hyrox-ic__card-body--rich strong,
.ol-hyrox-ic__card-body--rich b {
  font-weight: 700;
}

.ol-hyrox-ic__card-body--rich em,
.ol-hyrox-ic__card-body--rich i {
  font-style: italic;
}

.ol-hyrox-ic__card-body--rich a {
  color: var(--ol-hyrox-ic-card-accent, #FFEC00);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ==========================================================================
   CTA Button row + buttons
   ========================================================================== */

.ol-hyrox-ic__btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ol-hyrox-ic__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 24px;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.625;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--ol-hyrox-ic-btn-bg);
  color: var(--ol-hyrox-ic-btn-color);
  border: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ol-hyrox-ic__btn:hover {
  opacity: 0.88;
  transform: scale(1.03) translateY(-2px);
}

.ol-hyrox-ic__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.ol-hyrox-ic__btn--2 {
  background-color: var(--ol-hyrox-ic-btn2-bg);
  color: var(--ol-hyrox-ic-btn2-color);
}


/* ==========================================================================
   Responsive — Tablet (max 1023px): 2 columns
   ========================================================================== */

@media (max-width: 1023px) {
  .ol-hyrox-ic__inner {
    padding: 100px 48px;
    gap: 48px;
  }

  .ol-hyrox-ic__heading {
    font-size: calc(var(--ol-hyrox-ic-heading-size, 48px) * 0.75);
  }

  .ol-hyrox-ic__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   Responsive — Mobile (max 767px): 1 column
   ========================================================================== */

@media (max-width: 767px) {
  .ol-hyrox-ic__inner {
    padding: 60px 24px;
    gap: 40px;
  }

  .ol-hyrox-ic__heading {
    font-size: calc(var(--ol-hyrox-ic-heading-size, 48px) * 0.6);
  }

  .ol-hyrox-ic__grid {
    grid-template-columns: 1fr;
  }

  .ol-hyrox-ic__btn-row {
    flex-direction: column;
    width: 100%;
  }

  .ol-hyrox-ic__btn {
    width: 100%;
  }
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ol-hyrox-ic__btn,
  .ol-hyrox-ic__card {
    transition: none;
  }
}
