/* =========================================================
   RADIANCE HOUSE — WORKSHOPS & SERVICES
   services.css
   ========================================================= */

.services-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 209, 80, .18), transparent 25rem),
    linear-gradient(180deg, #edf9fb 0%, #f9fcfd 100%);
  border-bottom: 1px solid rgba(36, 86, 113, .08);
}

.services-hero__flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.services-hero__flow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.services-hero__flow path {
  fill: none;
  stroke-linecap: round;
}

.services-hero__flow path:nth-child(1) {
  stroke: rgba(35, 55, 65, .30);
  stroke-width: 5;
}

.services-hero__flow path:nth-child(2) {
  stroke: rgba(35, 150, 171, .34);
  stroke-width: 3;
}

.services-hero__flow path:nth-child(3) {
  stroke: rgba(226, 181, 45, .42);
  stroke-width: 2;
}

.services-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  padding-top: 150px;
  padding-bottom: 62px;
}

.services-hero__copy {
  max-width: 900px;
}

.services-hero__copy h1 {
  margin: 0 0 18px;
  max-width: 880px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.04em;
}

.services-hero__copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #405865;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.62;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(35, 115, 142, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  color: #315564;
  font-size: .82rem;
}

.service-list {
  padding-top: 54px;
  padding-bottom: 76px;
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 42px 0;
  border-bottom: 1px solid rgba(41, 81, 102, .09);
}

.service-feature:last-child {
  border-bottom: 0;
}

.service-feature--reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
}

.service-feature--reverse .service-feature__media {
  order: 2;
}

.service-feature__media {
  overflow: hidden;
  border-radius: 22px;
  background: #eef5f6;
  box-shadow: 0 18px 44px rgba(31, 68, 89, .10);
}

.service-feature__media img {
  display: block;
  width: 100%;
  height: clamp(310px, 34vw, 455px);
  object-fit: cover;
}

#coaching .service-feature__media img {
  object-position: center 35%;
}

#brain-imaging .service-feature__media img {
  object-position: center center;
}

.service-feature__media--wide img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.service-feature__copy {
  min-width: 0;
}

.service-feature__copy h2 {
  margin: 4px 0 15px;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.035em;
}

.service-feature__copy > p {
  max-width: 760px;
  color: #5d6d76;
  line-height: 1.68;
}

.service-feature__copy .service-lead {
  color: #344653;
}

.service-feature__copy a:not(.button) {
  color: #15728d;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.upcoming-workshops {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(39, 92, 116, .12);
  border-radius: 18px;
  background: #f8fbfc;
}

.upcoming-workshops__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.upcoming-workshops__heading h3 {
  margin: 2px 0 0;
  font-size: 1.3rem;
}

.limited-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0cf;
  color: #7a5912;
  font-size: .75rem;
  font-weight: 700;
}

.workshop-registration-list {
  display: grid;
  gap: 8px;
}

.workshop-registration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(39, 92, 116, .10);
  border-radius: 13px;
  background: #fff;
}

.workshop-registration__city {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2c4856;
}

.workshop-registration__date {
  margin: 2px 0 0;
  font-size: .83rem;
  color: #6b7b83;
}

.workshop-registration .button {
  padding: 8px 12px;
  min-height: 0;
  white-space: nowrap;
  font-size: .8rem;
}

.services-bottom {
  background: #123f55;
  color: #fff;
}

.services-bottom__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding-top: 46px;
  padding-bottom: 46px;
}

.services-bottom h2 {
  max-width: 850px;
  margin: 4px 0 0;
  color: #fff;
}

.services-bottom__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

/* Coaching modal */
.coaching-modal {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .30);
}

.coaching-modal::backdrop {
  background: rgba(14, 26, 33, .60);
  backdrop-filter: blur(2px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f3f6f7;
  color: #39515e;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.coaching-form {
  padding: 32px;
}

.coaching-form__heading {
  padding-right: 42px;
}

.coaching-form__heading h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 500;
}

.coaching-form__heading p:not(.eyebrow) {
  margin: 0 0 22px;
  color: #63747d;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.form-field > span {
  color: #536670;
  font-weight: 700;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(57, 86, 101, .32);
  border-radius: 11px;
  background: #fff;
  color: #263a44;
  font: inherit;
}

.form-field input:focus,
.form-field select:focus {
  outline: 3px solid rgba(36, 128, 190, .14);
  border-color: #2680be;
}

.coaching-form__price {
  margin: 1px 0 17px;
  color: #65767f;
  font-size: .87rem;
}

.coaching-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.form-note {
  margin: 10px 0 0;
  text-align: right;
  color: #7b898f;
  font-size: .74rem;
}

@media (max-width: 880px) {
  .service-feature,
  .service-feature--reverse {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-feature--reverse .service-feature__media {
    order: 0;
  }

  .service-feature__media {
    max-width: 680px;
  }

  .service-feature__media img {
    height: auto;
    max-height: 480px;
  }

  .services-bottom__inner {
    grid-template-columns: 1fr;
  }

  .services-bottom__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .services-hero__inner {
    min-height: 330px;
    padding-top: 125px;
    padding-bottom: 48px;
  }

  .service-list {
    padding-top: 30px;
  }

  .service-feature {
    padding: 32px 0;
  }

  .upcoming-workshops__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .workshop-registration {
    grid-template-columns: 1fr;
  }

  .workshop-registration .button {
    justify-self: start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .coaching-form {
    padding: 25px 20px;
  }
}
