/*
 * Additions to the sales components (inc/templates/sales-extras.php):
 * facility location cards, the icon card grid, the
 * contact form's own heading, and the homepage's location cards and insurance
 * line. Same tokens and shapes as sales.css and the location finder cards:
 * 22px cards on a hairline border, teal line icons, orange accents.
 */

.ew-icon {
  fill: none;
  flex: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

/* Location cards ---------------------------------------------------------------- */
.ew-locations {
  padding: 110px 0;
}
.ew-locations--surface {
  background: var(--ew-color-surface);
}
.sales-section--white + .ew-locations--white,
.sales-section--surface + .ew-locations--surface,
.ew-locations--white + .sales-section--white,
.ew-locations--surface + .sales-section--surface,
.sales-icon-cards--white + .sales-section--white,
.sales-icon-cards--surface + .sales-section--surface,
.sales-section--white + .sales-icon-cards--white,
.sales-section--surface + .sales-icon-cards--surface {
  padding-top: 0;
}
.ew-locations__head {
  margin-bottom: 44px;
  max-width: 780px;
}
.ew-locations__title {
  color: var(--ew-color-text);
  font-size: 45px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.ew-locations__intro {
  margin-top: 22px;
}
.ew-locations__group + .ew-locations__group {
  margin-top: 56px;
}
.ew-locations__group-title {
  align-items: center;
  color: var(--ew-color-primary);
  display: flex;
  font-size: 26px;
  font-weight: 400;
  gap: 14px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0 0 22px;
}
.ew-locations__group-title::after {
  background: var(--ew-color-border);
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.ew-loc-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ew-loc-card {
  background: #fff;
  border: 1px solid var(--ew-color-border);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(1, 47, 61, 0.05), 0 14px 34px -22px rgba(1, 47, 61, 0.35);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 30px 28px;
  position: relative;
}
.ew-loc-card::before {
  background: var(--ew-color-accent);
  border-radius: 0 0 4px 4px;
  content: "";
  height: 4px;
  left: 30px;
  position: absolute;
  top: -1px;
  width: 56px;
}
.ew-loc-card__name {
  color: var(--ew-color-primary);
  font-size: 21px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0 0 16px;
}
.ew-loc-card__name strong {
  font-weight: 400;
}
.ew-loc-card__facts {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.ew-loc-card__fact {
  align-items: flex-start;
  color: #4c5d63;
  display: flex;
  font-size: 15px;
  gap: 10px;
  line-height: 1.45;
  margin: 0;
}
.ew-loc-card__fact address {
  font-style: normal;
}
.ew-loc-card__icon {
  color: var(--ew-color-primary);
  height: 18px;
  margin-top: 1px;
  width: 18px;
}
.ew-loc-card__fact a {
  color: var(--ew-color-primary);
  font-weight: 700;
  white-space: nowrap;
}
.ew-loc-card__fact a:hover {
  color: var(--ew-orange-text-hover, #9a3412);
}
.ew-loc-card__note {
  color: var(--ew-color-text);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.ew-loc-card__note p {
  margin: 0;
}
.ew-loc-card__note a {
  color: var(--ew-color-primary);
  font-weight: 700;
}
.ew-loc-card__note a:hover {
  color: var(--ew-orange-text-hover, #9a3412);
}
.ew-loc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.ew-loc-card__btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 1.1;
  min-height: 44px;
  padding: 0 20px;
  text-align: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.ew-loc-card__btn:focus-visible {
  outline: 3px solid var(--ew-color-accent);
  outline-offset: 3px;
}
.ew-loc-card__btn--primary {
  background: var(--ew-color-primary);
  color: #fff;
}
.ew-loc-card__btn--primary:hover {
  background: var(--ew-orange-text-hover, #9a3412);
  color: #fff;
}
.ew-loc-card__btn--quiet {
  background: var(--ew-color-surface);
  border-color: var(--ew-color-border);
  color: var(--ew-color-primary);
}
.ew-loc-card__btn--quiet:hover {
  background: #fff;
  border-color: var(--ew-color-primary);
  color: var(--ew-color-primary);
}
.ew-loc-card__btn .ew-icon {
  height: 18px;
  width: 18px;
}

/* Homepage: the locations section with cards. */
.our-locations--cards {
  display: block;
  min-height: 0;
  padding: 110px 0 120px;
  position: relative;
}
.our-locations.our-locations--cards .page-container {
  max-width: 1186px;
  position: relative;
  width: 90%;
}
.our-locations__cards-head {
  margin: 0 auto 48px;
  max-width: 760px;
  text-align: center;
}
.our-locations--cards .our-locations__text {
  margin: 22px 0 0;
}
.ew-loc-grid--home {
  gap: 20px;
}
.ew-loc-card--compact {
  border-color: transparent;
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.55);
  padding: 26px 26px 24px;
}
.ew-loc-card--compact .ew-loc-card__name {
  font-size: 20px;
  margin-bottom: 14px;
}
.ew-loc-card--compact .ew-loc-card__facts {
  margin-bottom: 20px;
}
.our-locations--cards .our-locations__btn {
  display: table;
  margin: 48px auto 0;
}

/* Icon card grid ---------------------------------------------------------------- */
.sales-icon-cards {
  padding: 110px 0;
}
.sales-icon-cards--surface {
  background: var(--ew-color-surface);
}
.sales-icon-cards__head {
  margin-bottom: 44px;
  max-width: 780px;
}
.sales-icon-cards__title {
  color: var(--ew-color-text);
  font-size: 45px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.sales-icon-cards__intro {
  margin-top: 22px;
}
.sales-icon-cards__intro p {
  margin: 0;
}
.sales-icon-cards__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sales-icon-card {
  background: #fff;
  border: 1px solid var(--ew-color-border);
  border-radius: 22px;
  min-width: 0;
  padding: 34px 30px 32px;
}
.sales-icon-cards--white .sales-icon-card {
  background: var(--ew-color-surface);
  border-color: var(--ew-color-surface);
}
.sales-icon-card__icon {
  align-items: center;
  background: rgba(0, 98, 127, 0.08);
  border-radius: 50%;
  color: var(--ew-color-primary);
  display: inline-flex;
  height: 60px;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  width: 60px;
}
.sales-icon-card__icon::after {
  background: var(--ew-color-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  content: "";
  height: 14px;
  position: absolute;
  right: -2px;
  top: -2px;
  width: 14px;
}
.sales-icon-card__icon .ew-icon {
  height: 28px;
  width: 28px;
}
.sales-icon-card__title {
  color: var(--ew-color-primary);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0 0 12px;
}
.sales-icon-card__body p {
  margin: 0;
}
.sales-icon-card__body a:not(.btn) {
  color: var(--ew-color-primary);
  font-weight: 700;
}
.sales-icon-card__body a:not(.btn):hover {
  color: var(--ew-orange-text-hover, #9a3412);
}

/* Stat-card rows: two statistics side by side; with --lead, each card's
   opening bold figure sits on its own line at display size. */
.section-text ul.sales-stats--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}
.section-text ul.sales-stats--pair + p {
  margin-top: 28px;
}
.section-text .sales-stats li > strong {
  color: var(--ew-color-primary);
}
.section-text .sales-stats--lead li > strong:first-child {
  display: block;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 8px;
}

/* Contact form heading ------------------------------------------------------------ */
.contact-hero__form-head {
  color: #fff;
  margin-bottom: 30px;
}
.contact-hero__form-title {
  color: #fff;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 43px;
  margin: 0;
}
.contact-hero__form-text {
  color: #fff;
  font-size: 16px;
  line-height: 28px;
  margin-top: 18px;
}
.contact-hero__form-text p,
.contact-hero__form-after p {
  margin: 0;
}
.contact-hero__form-after {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  line-height: 26px;
  margin-top: 30px;
  padding-top: 24px;
  text-align: center;
}
.contact-hero__form-after a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-hero__form-after a:hover {
  color: #ffd9cb;
}
.contact-hero__section-text a[href^="tel:"],
.contact-hero__section-text a[href^="mailto:"] {
  color: var(--ew-color-primary);
  font-weight: 700;
}

/* Homepage insurance line ------------------------------------------------------- */
.insurance__logo-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
}
.insurance__logo-link:focus-visible {
  outline: 3px solid var(--ew-color-accent);
  outline-offset: 6px;
}
.insurance__note {
  margin: 56px auto 0;
  max-width: 820px;
  text-align: center;
}
.insurance__note p {
  margin: 0;
}
.insurance__note a {
  color: var(--ew-color-primary);
  font-weight: 700;
}
.insurance__note a:hover {
  color: var(--ew-orange-text-hover, #9a3412);
}

/* Links in copy set inside the teal image + text card. */
.content-card__text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-card__text a:hover {
  color: #ffd9cb;
}

/* Finder: a program label without a page of its own. */
.lf-chip--static,
.lf-chip--static:hover {
  background: #fff;
  border-color: #d3e6ec;
  color: #4c5d63;
  cursor: default;
}

@media (max-width: 1440px) {
  .ew-locations,
  .sales-icon-cards {
    padding: calc(4.19048vw + 49.6571px) 0;
  }
  .ew-locations__title,
  .sales-icon-cards__title {
    font-size: calc(1.22066vw + 27.4225px);
  }
  .contact-hero__form-title {
    font-size: calc(0.75117vw + 25.1831px);
    line-height: calc(0.84507vw + 30.83099px);
  }
}
@media (max-width: 1100px) {
  .sales-icon-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .ew-locations,
  .sales-icon-cards {
    padding: 56px 0;
  }
  .our-locations--cards {
    padding: 64px 0 72px;
  }
  .our-locations.our-locations--cards .page-container {
    width: 100%;
  }
  .ew-loc-grid,
  .sales-icon-cards__grid,
  .section-text ul.sales-stats--pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-text .sales-stats--lead li > strong:first-child {
    font-size: 34px;
  }
  .ew-loc-card {
    padding: 26px 22px 24px;
  }
  .ew-loc-card::before {
    left: 22px;
  }
  .ew-loc-card__actions .ew-loc-card__btn {
    flex: 1 1 auto;
  }
  .ew-locations__group-title {
    font-size: 23px;
  }
  .sales-icon-card {
    padding: 28px 22px 26px;
  }
  .insurance__note {
    margin-top: 40px;
  }
}
@media (max-width: 375px) {
  .ew-locations__title,
  .sales-icon-cards__title {
    font-size: 30px;
  }
  .contact-hero__form-title {
    font-size: 28px;
    line-height: 34px;
  }
}
