/* ==========================================================================
   WPS Health & Fitness landing pages (prospects + members)
   Shared styles. Loaded after bootstrap.min.css (v5.3.3).
   Fonts: "unbounded" + "brandon-grotesque" via Typekit (loaded in <head>).
   ========================================================================== */

:root {
  --text-blue: #00288F;
  --text-light-blue: #00B1F5;
  --text-black: #000000;
  --text-white: #ffffff;
  --text-body: #000000;
  --bg-pale-blue: #D6F3FD;
  --bg-light-blue: #00B1F5;
  --bg-blue: #00288F;
  --button-blue: #00288F;
  --button-blue--text: #ffffff;
  --hero-text-gradient: linear-gradient(90deg, #00B1F5 0%, #00FFA2 100%);
  --footer-background-gradient: linear-gradient(90deg, #00288F 0%, #00FF9D 100%);
  --html-rem-base-font-size: 10px;
  --body-copy-font-size: clamp(2rem, 2vw, 2.4rem);
  --inner-content-width: 1140px;
  --content-outer-padding: 15px;
  --divider-gray: #cfcfcf;
  --corner-radius: 68px; /* the "sharp TL/BR, round TR/BL" shape used on boxes + cards */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  font-size: var(--html-rem-base-font-size);
}

body {
  font-family: "brandon-grotesque", "Trebuchet MS", sans-serif;
  font-weight: 400;
  font-size: var(--body-copy-font-size);
  line-height: 1.4;
  color: var(--text-body);
  text-wrap: pretty;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Inner content 1140px + 15px padding-inline = 1170px total */
.container {
  max-width: calc(var(--inner-content-width) + (2 * var(--content-outer-padding)));
  padding-inline: var(--content-outer-padding);
}

h1,
h2,
.unbounded {
  font-family: "unbounded", sans-serif;
}

h2 {
  font-size: clamp(2.6rem, 3.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-blue);
  margin-bottom: 2.4rem;
}

sup {
  font-size: 0.55em;
  top: -0.6em;
}

section {
  padding: 72px 0;
}

.section-intro {
  text-align: center;
  max-width: 1010px;
  margin: 0 auto 4.8rem;
}

.gradient-text {
  background: var(--hero-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

:focus-visible {
  outline: 3px solid var(--bg-light-blue);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background-color: #ffffff;
  padding: 16px 0;
}

.site-logo {
  width: 170px;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-blue);
  padding: 0;
}

/* Photo anchored to the right edge, full hero height. */
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  background-color: rgba(255, 255, 255, 0);
  background-image: url("../img/hero-woman-stretching.png");
  background-size: 845px 610px;
  background-position: right 45%;
  z-index: 2;
}


@media screen and (max-width: 1165px) {
  .hero-media {
    background-size: 607px 439px;
  }
}


/* WPS spark mark peeking out from behind the photo, cropped by hero bottom */
.hero-spark {
  position: absolute;
  width: 500px;
  height: auto;
  right: calc(min(38vw, 520px) - 230px);
  bottom: -238px;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 72px;
  padding-bottom: 64px;
  min-height: 438px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-headline {
  font-size: clamp(3.4rem, 6.2vw, 8rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  max-width: 60%;
}

.hero-sub {
  color: var(--text-white);
  font-size: clamp(2.1rem, 2.4vw, 3rem);
  line-height: 1.4;
  margin: 2.4rem 0 0;
  max-width: 60%;
}

/* --------------------------------------------------------------------------
   Intro copy
   -------------------------------------------------------------------------- */

.intro {
  padding: 70px 0 0;
}

.intro p {
  text-align: center;
  max-width: 1010px;
  margin: 0 auto 1em;
}

/* --------------------------------------------------------------------------
   Fitness center finder
   -------------------------------------------------------------------------- */

.finder-section {
  padding: 64px 0 0;
}

.finder-section .container {
  container-type: inline-size;
}

.finder-card {
  background-color: var(--bg-light-blue);
  border-radius: 0 calc(6.5cqw) 0 calc(6.5cqw);
  padding: 52px 40px 48px;
  text-align: center;
  color: var(--text-white);
}

.finder-headline {
  color: var(--text-white);
  font-size: clamp(2rem, 2vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: 3.6rem;
}

.finder-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.finder-input {
  width: min(100%, 275px);
  height: 50px;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 2rem;
  color: var(--text-body);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background-color: var(--button-blue);
  color: var(--button-blue--text);
  border: none;
  border-radius: 999px;
  padding: 0 30px;
  font-family: "brandon-grotesque", sans-serif;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.btn-pill:hover {
  background-color: #003ab8;
  color: var(--button-blue--text);
}

.finder-results {
  margin-bottom: 4rem;
}

.finder-results:empty {
  display: none;
}

.finder-results__message {
  font-size: clamp(1.8rem, 1.8vw, 2.2rem);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 990px;
  color: var(--text-body);
}

.finder-results__list {
  list-style: none;
  margin: 3rem auto 0;
  padding: 0;
  max-width: 990px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.finder-result {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background-color: var(--text-white);
  color: var(--text-body);
  border-radius: 8px;
  padding: 20px 24px;
  text-align: left;
}

.finder-result__name {
  font-family: "unbounded", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--text-blue);
}

.finder-result__address {
  font-size: 1.9rem;
  line-height: 1.35;
}

.finder-result__type {
  font-size: 1.7rem;
  line-height: 1.35;
}

.finder-result__type-label {
  font-weight: 500;
}

.finder-result__distance {
  margin-top: 0.4rem;
  font-size: 1.7rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-blue);
}

.finder-results__message--loading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.finder-spinner {
  flex: none;
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: finder-spin 0.8s linear infinite;
}

@keyframes finder-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .finder-spinner {
    animation-duration: 2.4s;
  }
}

.finder-expand {
  margin-top: 2.4rem;
}

.finder-attribution {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 2.4rem auto 0;
  max-width: 990px;
  opacity: 0.9;
}

.finder-attribution a {
  color: var(--text-white);
  text-decoration: underline;
}

.finder-attribution a:hover,
.finder-attribution a:focus {
  color: var(--text-white);
  text-decoration: none;
}

.finder-note {
  font-size: clamp(1.8rem, 1.8vw, 2.2rem);
  line-height: 1.4;
  max-width: 990px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Small steps / benefit icons
   -------------------------------------------------------------------------- */

.steps {
  padding: 56px 0 64px;
  text-align: center;
}

.steps .row {
  margin-top: 5.6rem;
  row-gap: 4rem;
  justify-content: center;
}

.step-icon {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  display: block;
}

.step p {
  font-weight: 700;
  color: var(--text-blue);
  line-height: 1.25;
  max-width: 240px;
  margin: 3rem auto 0;
}

/* --------------------------------------------------------------------------
   CTA cards (prospects page only)
   -------------------------------------------------------------------------- */

.cta-section {
  background-color: var(--bg-pale-blue);
  padding: 80px 0 90px;
}

.cta-section h2 {
  text-align: center;
}

.cta-cards {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3.4rem;
}

.cta-cards > .col-lg-6 {
  container-type: inline-size;
}

.cta-card {
  display: flex;
  align-items: stretch;
  height: 155px;
  background-color: var(--bg-blue);
  border-radius: 0 calc(8.5cqw) 0 calc(8.5cqw);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-card:hover,
.cta-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 40, 143, 0.25);
}

.cta-card-media {
  flex: 0 0 205px;
  overflow: hidden;
}

.cta-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0px center;
  display: block;
}

.cta-card.photo .cta-card-media img {
  width: 254px;
}

/* icon variant: gradient pictogram on the blue card background */
.cta-card--icon .cta-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-card--icon .cta-card-media img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

.cta-card-label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-white);
  font-family: "unbounded", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 2vw, 2.6rem);
  line-height: 1.25;
  padding: 12px 8px;
  text-wrap: balance;
  margin-top: 16px;
  margin-right: 20px;
}

/* --------------------------------------------------------------------------
   Wellbeing programs + accordions
   -------------------------------------------------------------------------- */

.wellbeing {
  padding: 88px 0 72px;
}

.wellbeing-photo {
  width: 100%;
  max-width: 535px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.benefits-accordion {
  margin-top: 4rem;
  --bs-accordion-bg: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 1.8rem;
  --bs-accordion-btn-color: var(--text-blue);
  --bs-accordion-active-color: var(--text-blue);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-icon: url("../img/circle-plus-v3.svg");
  --bs-accordion-btn-active-icon: url("../img/circle-minus-v3.svg");
  --bs-accordion-btn-icon-width: 4rem;
  --bs-accordion-btn-icon-transform: none;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
}

.benefits-accordion .accordion-item {
  border-bottom: 1px solid var(--divider-gray);
}

.benefits-accordion .accordion-button {
  font-family: "brandon-grotesque", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
}

.benefits-accordion .accordion-body {
  font-size: 2.2rem;
  line-height: 1.45;
  color: var(--text-body);
  padding-bottom: 2.4rem;
}

.benefits-accordion .accordion-body img {
  display: block;
  margin: 0 0 1.6rem;
}

/* --------------------------------------------------------------------------
   Closing CTA ("This is your plan for life.")
   -------------------------------------------------------------------------- */

.closing-cta {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-blue);
  padding: 78px 0 66px;
  text-align: center;
}

.closing-cta .container {
  position: relative;
  z-index: 2;
}

.closing-cta h2 {
  color: var(--text-light-blue);
  margin-bottom: 1.2rem;
}

.closing-cta p {
  color: var(--text-white);
  font-size: clamp(2.2rem, 2.4vw, 4rem);
  line-height: 1.4;
  margin: 0 0 0.9rem;
  font-weight: 500;
}

.closing-cta a {
  color: inherit;
  text-decoration: none;
}

.closing-cta a:hover {
  text-decoration: underline;
}

.closing-spark {
  position: absolute;
  right: 0;
  bottom: 0px;
  width: 250px;
  height: auto;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  padding-top: 28px;
}

/* Legacy footer utility class name kept for markup parity with the current
   site; sized to match the reference design's fine print (~19px). */
.c-font-14 {
  font-size: 1.9rem;
  line-height: 1.35;
}

footer a {
  color: inherit;
}

.footer-disclaimer {
  margin-bottom: 28px;
}

.footer-gradient-bar {
  height: 64px;
  background: var(--footer-background-gradient);
}

.footer-legal {
  padding-block: 28px 32px;
}

.footer-legal p {
  margin-bottom: 3.2rem;
}

.footer-codes {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
  section {
    padding: 48px 0;
  }

  .steps {
    padding: 48px 0;
  }

  .cta-section,
  .wellbeing,
  .closing-cta {
    padding: 56px 0;
  }

  .wellbeing-photo {
    margin-bottom: 8px;
  }

  .closing-cta {
    padding-bottom: 130px;
  }

  .closing-spark {
    width: 140px;
    bottom: 0;
  }
}

@media screen and (max-width: 767px) {
    .hero {
    display: flex;
    flex-direction: column;
  }

  .hero .container {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-headline,
  .hero-sub {
    max-width: 100%;
  }

  /* photo drops below the copy as a full-width band */
  .hero-media {
    order: 2;
    width: 100%;
    height: 300px;
    background-size: 775px 560px;
    background-position: calc(90px - 13vw) 25%;
    background-repeat: no-repeat;
    /* background-position: center 25%; */
  }

  .hero-media:before {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0c063091;
    left: 0;
    top: 0;
    content: '';
  }

  .hero-spark {
    display: none;
  }

}


@media (max-width: 576px) {
  .finder-card {
    padding: 36px 24px;
    /* border-radius: 0 32px 0 32px; */
  }

  .finder-form .finder-input,
  .finder-form .btn-pill {
    width: 100%;
  }

  .cta-card {
    height: 120px;
    /* border-radius: 0 32px 0 32px; */
  }

  .cta-card-media {
    flex-basis: 38%;
  }

  .cta-card--icon .cta-card-media img {
    width: 72%;
  }

  .row-cols-2:has(.step-icon)>* {
    width: max(40%, 135px);
  }

  .step-icon {
    width: 104px;
    height: 104px;
  }

  .footer-gradient-bar {
    height: 40px;
  }

  .footer-codes {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 525px) {
  .hero-media {
    background-size: 607px 439px;
    background-position: calc(80% + 140px) 25%;
    background-repeat: no-repeat;
    /* background-position: center 25%; */
  }
}

@media screen and (max-width: 460px) {

  .finder-results__list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

}

@media screen and (max-width: 345px) {
  .cta-card-label {
    font-size: 18px;
  }
}