/* index page styles */




/* ============================
   WEST HAVEN INFO STRIP
   ============================ */

.westhaven-info {
  --westhaven-white: #FBFBF9;
  --westhaven-yellow: #F1B74B;

  width: 100%;

  font-family: greycliff-cf, sans-serif;
  color: var(--westhaven-white);
}


/* ============================
   GRID
   ============================ */

.westhaven-info-grid {
  display: grid;

  grid-template-columns:
    1.02fr 1.32fr 1.18fr 0.88fr;

  width: 100%;
}


/* ============================
   INFO ITEM
   ============================ */

.westhaven-info-item {
  position: relative;

  display: grid;

  grid-template-columns:
    46px minmax(0, 1fr);

  align-items: start;

  column-gap: 16px;

  min-width: 0;

  padding:
    10px 28px;

  box-sizing: border-box;
}


/* ============================
   DIVIDERS
   ============================ */

.westhaven-info-item:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 4px;
  right: 0;

  width: 1px;
  height: calc(100% - 8px);

  background:
    rgba(251, 251, 249, 0.42);
}


/* ============================
   ICON
   ============================ */

.westhaven-info-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 1px;

  color: var(--westhaven-white);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.westhaven-info-icon svg {
  width: 100%;
  height: 100%;

  display: block;

  overflow: visible;
}


/* ============================
   HOVER
   ============================ */

.westhaven-info-item:hover .westhaven-info-icon {
  transform: translateY(-3px);

  color: var(--westhaven-yellow);
}


/* ============================
   CONTENT
   ============================ */

.westhaven-info-content {
  min-width: 0;
}


/* ============================
   TITLE
   ============================ */

.westhaven-info-title {
  margin: 0 0 5px;

  font-family: greycliff-cf, sans-serif;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 700;
  line-height: 1.15;

  text-transform: uppercase;
  white-space: nowrap;

  color: var(--westhaven-white);
}


/* ============================
   TEXT
   ============================ */

.westhaven-info-text {
  margin: 0;

  font-family: greycliff-cf, sans-serif;
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 600;
  line-height: 1.42;

  color: var(--westhaven-white);
}


/* Keep individual desktop lines together */

.westhaven-info-line {
  display: block;

  white-space: nowrap;
}


/* ============================
   PHONE / FAX
   ============================ */

.westhaven-contact-item {
  display: block;
}

.westhaven-contact-item .westhaven-info-content {
  width: 100%;
}

.westhaven-contact-item .westhaven-info-title {
  margin-left: 29px;
}

.westhaven-contact-numbers {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.westhaven-contact-row {
  display: flex;

  align-items: center;

  gap: 8px;
}

.westhaven-contact-inline-icon {
  width: 21px;
  height: 21px;

  flex:
    0 0 21px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--westhaven-white);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.westhaven-contact-inline-icon svg {
  width: 100%;
  height: 100%;

  display: block;

  overflow: visible;
}

.westhaven-info-item:hover .westhaven-contact-inline-icon {
  transform: translateY(-2px);

  color: var(--westhaven-yellow);
}


/* ============================
   TABLET
   ============================ */

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

  .westhaven-info-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .westhaven-info-item {
    padding:
      24px 28px;
  }

  .westhaven-info-item:nth-child(2)::after {
    display: none;
  }

  .westhaven-info-item:nth-child(-n+2)::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background:
      rgba(251, 251, 249, 0.30);
  }

}


/* ============================
   MOBILE
   ============================ */

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

  .westhaven-info-grid {
    grid-template-columns: 1fr;
  }

  .westhaven-info-item {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 0;

    padding:
      24px 16px;

    text-align: center;
  }

  .westhaven-info-item::after {
    display: none !important;
  }

  .westhaven-info-item::before {
    display: none !important;
  }

  .westhaven-info-item:not(:last-child) {
    border-bottom:
      1px solid rgba(251, 251, 249, 0.30);
  }

  .westhaven-info-icon {
    width: 40px;
    height: 40px;

    margin:
      0 auto 12px;
  }

  .westhaven-info-content {
    width: 100%;

    text-align: center;
  }

  .westhaven-info-title {
    margin-bottom: 6px;

    font-size: 15px;

    text-align: center;
    white-space: normal;
  }

  .westhaven-info-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    text-align: center;
  }

  .westhaven-info-line {
    white-space: normal;
  }

  .westhaven-contact-item .westhaven-info-title {
    margin-left: 29px;
  }

  .westhaven-contact-numbers {
    width: max-content;

    max-width: 100%;

    margin:
      0 auto;

    gap: 7px;
  }

  .westhaven-contact-row {
    justify-content: flex-start;
  }

  .westhaven-contact-inline-icon {
    width: 20px;
    height: 20px;

    flex:
      0 0 20px;
  }

}



/* ============================
   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-mobile-break {
  display: none;
}

.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);
}


/* ============================
   HOVER
   ============================ */

.westhaven-service-item:hover .westhaven-service-icon {
  transform: translateY(-3px);

  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-mobile-break {
    display: inline;
  }

  .westhaven-services-intro h2 {
    text-wrap: balance;
  }

  .westhaven-services-grid {
    grid-template-columns: 1fr;

    row-gap: 28px;
  }

  .westhaven-service-item {
    display: flex;

    flex-direction: column;
    align-items: center;

    text-align: center;
  }

  .westhaven-service-icon {
    width: 50px;
    height: 50px;

    margin-bottom: 14px;
  }

  .westhaven-service-content {
    width: 100%;

    text-align: center;
  }

  .westhaven-service-title {
    margin-bottom: 7px;

    font-size: 20px;
  }

  .westhaven-service-description {
    max-width: 330px;

    margin:
      0 auto;

    font-size: 15px;
    line-height: 1.5;
  }

}




/* ============================
   WEST HAVEN VALUES
   ============================ */

.westhaven-values {
  --westhaven-light: #FBFBF9;
  --westhaven-blue: #197E9A;

  width: 100%;

  font-family: "greycliff-cf", Arial, sans-serif;
}


/* ============================
   GRID
   ============================ */

.westhaven-values-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  column-gap: 64px;

  width: 100%;
}


/* ============================
   VALUE ITEM
   ============================ */

.westhaven-value-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;

  text-align: center;
}


/* ============================
   ICON
   ============================ */

.westhaven-value-icon {
  width: 72px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;

  color: var(--westhaven-light);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.westhaven-value-icon svg {
  width: 100%;
  height: 100%;

  display: block;

  fill: currentColor;

  overflow: visible;
}

.westhaven-value-item:hover .westhaven-value-icon {
  transform: translateY(-4px);

  color: var(--westhaven-blue);
}


/* ============================
   TITLE
   ============================ */

.westhaven-value-title {
  margin:
    0 0 9px;

  font-family: "greycliff-cf", Arial, sans-serif;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1.18;

  color: var(--westhaven-light);
}


/* ============================
   DESCRIPTION
   ============================ */

.westhaven-value-description {
  max-width: 320px;

  margin: 0;

  font-family: "greycliff-cf", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;

  color: var(--westhaven-light);
}


/* ============================
   TABLET
   ============================ */

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

  .westhaven-values-grid {
    column-gap: 36px;
  }

}


/* ============================
   MOBILE
   ============================ */

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

  .westhaven-values-grid {
    grid-template-columns: 1fr;

    row-gap: 42px;
  }

  .westhaven-value-icon {
    width: 64px;
    height: 56px;

    margin-bottom: 16px;
  }

  .westhaven-value-title {
    font-size: 20px;
  }

  .westhaven-value-description {
    max-width: 330px;

    margin:
      0 auto;

    font-size: 15px;
    line-height: 1.5;
  }

}


.page-index .band:first-child {
  padding-top: 4.6rem;
}

/* Home page section treatments. */
.page-index .band:has(.westhaven-info) {
  padding: 35px 0;
}

.page-index .westhaven-info {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.page-index .band:has(.westhaven-services) .actions {
  justify-content: center;
  margin-top: 48px;
}

.page-index .westhaven-service-title a {
  text-decoration: none;
}

.page-index .westhaven-value-icon svg {
  fill: var(--white);
}

.page-index .westhaven-value-title {
  color: var(--white);
}

.page-index .location-grid .clinic-map {
  order: -1;
}

.page-index .media-band:has(img[src$="westhaven-w.webp"]) .visual {
  background: var(--yellow);
  border-radius: 180px 0 0 45px;
}

.page-index .media-band:has(img[src$="westhaven-w.webp"]) img {
  padding: 45px;
  object-position: center;
}

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

.page-index .band:has(.westhaven-info) {
  padding: 25px 0;
}

.page-index main>.media-band:first-child {
  background: #173b50;
  position: relative;
}

.page-index main>.media-band:first-child::before {
  content: '';
  position: absolute;
  width: 310px;
  height: 650px;
  top: 30px;
  left: -100px;
  border-radius: 50% 45% 0 0;
  background: #16425d;
  transform: rotate(-20deg);
  pointer-events: none;
}

.page-index main>.media-band:first-child .container {
  position: relative;
}

.page-index main>.media-band:first-child .copy>.sqs-html-content {
  max-width: 500px;
}

.page-index .media-band:has(img[src$="westhaven-w.webp"]) .split {
  height: 395px;
}

.page-index .media-band:has(img[src$="westhaven-w.webp"]) .visual {
  position: relative;
  align-items: center;
  justify-content: center;
}

.page-index .media-band:has(img[src$="westhaven-w.webp"]) .actions {
  position: absolute;
  left: calc(55.6% + 10.5%);
  bottom: 75px;
  z-index: 1;
}

.page-index .media-band:has(img[src$="westhaven-w.webp"]) .actions .button {
  background: var(--navy);
}

.page-index .media-band:has(img[src$="westhaven-w.webp"]) .visual img {
  height: 245px;
  padding: 35px 80px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .page-index .media-band:has(img[src$="westhaven-w.webp"]) .split {
    height: auto;
  }

  .page-index .media-band:has(img[src$="westhaven-w.webp"]) .actions {
    position: static;
  }

  .page-index main>.media-band:first-child::before {
    display: none;
  }
}

.page-index .media-band:has(img[src$="westhaven-w.webp"]) {
  position: relative;
}