/* services page styles */


/* ============================
   WEST HAVEN SERVICES
   ============================ */

.westhaven-services {
  --westhaven-dark: #15314C;
  --westhaven-blue: #197E9A;
  --westhaven-text: #333333;

  width: 100%;

  font-family: "greycliff-cf", Arial, sans-serif;
}


/* ============================
   SECTION INTRO
   ============================ */

.westhaven-services-intro {
  max-width: 900px;

  margin:
    0
    auto
    44px;

  text-align: center;
}

.westhaven-services-eyebrow {
  margin:
    0
    0
    10px;

  font-family: "greycliff-cf", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;

  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: var(--westhaven-blue);
}

.westhaven-services-intro h2 {
  margin: 0;

  font-family: "greycliff-cf", Arial, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.08;

  color: var(--westhaven-dark) !important;
}


/* ============================
   GRID
   ============================ */

.westhaven-services-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  column-gap: 64px;
  row-gap: 52px;

  width: 100%;
}


/* ============================
   SERVICE ITEM
   ============================ */

.westhaven-service-item {
  display: grid;

  grid-template-columns:
    62px
    minmax(0, 1fr);

  align-items: start;

  column-gap: 22px;

  min-width: 0;
}


/* ============================
   ICON
   ============================ */

.westhaven-service-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--westhaven-blue);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.westhaven-service-icon svg {
  width: 100%;
  height: 100%;

  display: block;

  overflow: visible;
}


/* ============================
   CONTENT
   ============================ */

.westhaven-service-content {
  min-width: 0;
}


/* ============================
   TITLE
   ============================ */

.westhaven-service-title {
  margin:
    0
    0
    8px;

  font-family: "greycliff-cf", Arial, sans-serif;
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 700;
  line-height: 1.18;

  color: var(--westhaven-dark);
}


/* ============================
   DESCRIPTION
   ============================ */

.westhaven-service-description {
  margin: 0;

  font-family: "greycliff-cf", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.48;

  color: var(--westhaven-text);
}


/* ============================
   LEARN MORE
   ============================ */

.westhaven-service-learn {
  display: inline-flex;
  align-items: center;

  margin-top: 10px;

  font-family: "greycliff-cf", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;

  color: var(--westhaven-blue);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}


/* ============================
   HOVER
   ============================ */

.westhaven-service-item:hover
.westhaven-service-icon {
  transform: translateY(-3px);

  color: var(--westhaven-dark);
}

.westhaven-service-item:hover
.westhaven-service-learn {
  transform: translateX(4px);

  color: var(--westhaven-dark);
}


/* ============================
   TABLET
   ============================ */

@media screen and (max-width: 1000px) {

  .westhaven-services-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    column-gap: 44px;
    row-gap: 44px;
  }

}


/* ============================
   MOBILE
   ============================ */

@media screen and (max-width: 640px) {

  .westhaven-services-intro {
    max-width: 360px;

    margin-bottom: 38px;
  }

  .westhaven-services-eyebrow {
    font-size: 13px;
  }

  .westhaven-services-intro h2 {
    text-wrap: balance;
  }

  .westhaven-services-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    column-gap: 22px;
    row-gap: 34px;
  }

  .westhaven-service-item {
    display: flex;

    flex-direction: column;
    align-items: center;

    min-width: 0;

    text-align: center;
  }

  .westhaven-service-icon {
    width: 46px;
    height: 46px;

    margin-bottom: 12px;
  }

  .westhaven-service-content {
    width: 100%;

    text-align: center;
  }

  .westhaven-service-title {
    margin-bottom: 7px;

    font-size: 17px;
    line-height: 1.18;
  }

  .westhaven-service-description {
    max-width: 170px;

    margin:
      0
      auto;

    font-size: 14px;
    line-height: 1.4;
  }

  .westhaven-service-learn {
    margin-top: 8px;

    font-size: 13px;
  }

  .westhaven-service-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;

    width: calc((100% - 22px) / 2);

    justify-self: center;
  }

}


.page-services .band:first-child { padding-top:4.6rem; }

.page-services .location-grid .clinic-map { order: -1; }
@media (max-width: 900px) { .page-services .location-grid .clinic-map { order: 0; } }
