/* Private EMDR makeover. The shared source and every live page remain untouched. */

#tb-homepage-page [hidden] {
  display: none !important;
}

#tb-homepage-page .hero.hero--photo {
  background-image: url("./arlp/pages/emdr/hero-emdr-man-v3.webp") !important;
  background-position: center 44% !important;
}

#tb-homepage-page .hero.hero--photo::before {
  background:
    linear-gradient(90deg, rgba(15,13,11,.98) 0%, rgba(15,13,11,.94) 34%, rgba(15,13,11,.74) 50%, rgba(15,13,11,.22) 73%, rgba(15,13,11,.08) 100%),
    linear-gradient(180deg, rgba(15,13,11,.05) 0%, rgba(15,13,11,.1) 60%, rgba(15,13,11,.56) 100%) !important;
}

#tb-homepage-page .hero.hero--photo .hero-split {
  width: min(47%, 570px) !important;
}

#tb-homepage-page .hero.hero--photo .hero-hed {
  max-width: 16ch !important;
}

#tb-homepage-page .hero.hero--photo .hero-sub {
  max-width: 37ch !important;
  font-weight: 560 !important;
}

#tb-homepage-page .hero.hero--photo .hero-trust {
  max-width: 58ch !important;
  letter-spacing: .01em !important;
}

#tb-homepage-page .search-bridge--plain {
  padding-block: clamp(68px, 7vw, 96px) !important;
}

#tb-homepage-page .search-bridge--plain .search-bridge-copy {
  max-width: 850px !important;
}

#tb-homepage-page .search-bridge--plain .search-bridge-line:first-child {
  max-width: 850px;
  color: #1d1b18 !important;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 58px) !important;
  font-weight: 500;
  line-height: 1.06 !important;
  letter-spacing: -.02em;
}

#tb-homepage-page .search-bridge--plain .search-bridge-line:first-child span {
  display: block;
}

#tb-homepage-page .search-bridge--plain .search-bridge-line-strong {
  max-width: 62ch;
  font-size: clamp(18px, 1.6vw, 22px) !important;
  font-weight: 520 !important;
  line-height: 1.6 !important;
}

#tb-homepage-page #team-section {
  padding-top: clamp(72px, 8vw, 110px) !important;
  padding-bottom: clamp(72px, 8vw, 110px) !important;
}

#tb-homepage-page #team-section .team-intro {
  max-width: 720px;
  margin-bottom: 38px;
}

#tb-homepage-page .emdr-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

#tb-homepage-page .emdr-provider-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #171512;
  box-shadow: 0 18px 42px rgba(35, 27, 17, .13);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

#tb-homepage-page .emdr-provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(35, 27, 17, .18);
}

#tb-homepage-page .emdr-provider-card:focus-visible {
  outline: 3px solid #b88a3d;
  outline-offset: 4px;
}

#tb-homepage-page .emdr-provider-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center top;
  background: #f3efe8;
}

#tb-homepage-page .emdr-provider-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 30px 28px 32px;
}

#tb-homepage-page .emdr-provider-card__cred {
  margin: 0 0 12px;
  color: #d7b570;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

#tb-homepage-page .emdr-provider-card h3 {
  margin: 0 0 13px;
  color: #f7f1e7;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.08;
}

#tb-homepage-page .emdr-provider-card__copy > p:not(.emdr-provider-card__cred) {
  margin: 0;
  color: rgba(247, 241, 231, .72);
  font-size: 15px;
  line-height: 1.58;
}

#tb-homepage-page .emdr-provider-card__story {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 20px 0 0;
  border: 0;
  color: #e4c27f;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

#tb-homepage-page .emdr-provider-card__story:hover,
#tb-homepage-page .emdr-provider-card__story:focus-visible {
  color: #f4d79e;
}

#tb-homepage-page .full-team-block {
  max-width: 1000px;
  margin: 28px auto 0;
}

#tb-homepage-page .full-team-block__label {
  margin: 0 0 13px;
  color: #80796f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}

#tb-homepage-page .full-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#tb-homepage-page .full-team-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid #ddd6cb;
  border-radius: 12px;
  background: rgba(255,255,255,.5);
}

#tb-homepage-page .full-team-card img {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  filter: grayscale(1);
  padding: 4px;
  object-fit: contain;
  object-position: center top;
  background: #eee8de;
  opacity: .68;
}

#tb-homepage-page .full-team-card h3 {
  margin: 0 0 3px;
  color: #49453f;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

#tb-homepage-page .full-team-card p {
  margin: 0;
  color: #898178;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
}

#tb-homepage-page .intake-strip {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 34px auto 0;
  padding: 24px 28px;
  border: 1px solid #ded7cc;
  border-radius: 14px;
  background: rgba(255,255,255,.54);
}

#tb-homepage-page .intake-strip__photo {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
}

#tb-homepage-page .intake-strip__label {
  margin: 0 0 7px;
  color: #8b6b38;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#tb-homepage-page .intake-strip h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

#tb-homepage-page .intake-strip p:not(.intake-strip__label) {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

#tb-homepage-page .intake-strip__link {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  color: #5e451f;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

#tb-homepage-page .provider-promise {
  border-top: 1px solid #e1dbd0;
}

#tb-homepage-page .cta-handoff-break {
  display: block;
  margin-top: 10px;
}

@media (max-width: 1050px) and (min-width: 768px) {
  #tb-homepage-page .hero.hero--photo {
    background-position: 58% center !important;
  }
  #tb-homepage-page .hero.hero--photo .hero-split {
    width: 53% !important;
  }
}

@media (max-width: 767px) {
  #tb-homepage-page .emdr-provider-grid {
    grid-template-columns: 1fr;
  }

  #tb-homepage-page .search-bridge--plain .search-bridge-line:first-child {
    font-size: clamp(34px, 10vw, 44px) !important;
  }

  #tb-homepage-page .hk-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  #tb-homepage-page .hk-grid > .hk-top {
    display: none !important;
  }

  #tb-homepage-page .hk-grid > .hk-cell:nth-child(3) { order: 1 !important; }
  #tb-homepage-page .hk-grid > .hk-cell:nth-child(4) { order: 2 !important; }
  #tb-homepage-page .hk-grid > .hk-cell:nth-child(5) { order: 3 !important; }
  #tb-homepage-page .hk-grid > .hk-cell:nth-child(6) { order: 4 !important; }
  #tb-homepage-page .hk-grid > .hk-cell:nth-child(7) { order: 5 !important; }
  #tb-homepage-page .hk-grid > .hk-cell:nth-child(8) { order: 6 !important; }

  #tb-homepage-page .hk-grid > .hk-cell:not(.hk-top) {
    min-height: 0 !important;
    padding: 20px 20px !important;
  }

  #tb-homepage-page .hk-grid > .hk-cell--pain:not(.hk-top) {
    margin-top: 16px !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 0 !important;
    background: rgba(19, 18, 16, 0.94) !important;
  }

  #tb-homepage-page .hk-grid > .hk-cell--pain:nth-child(3) {
    margin-top: 0 !important;
  }

  #tb-homepage-page .hk-grid > .hk-cell--want:not(.hk-top) {
    padding-top: 16px !important;
    border-radius: 0 0 12px 12px !important;
    border-top: 1px solid rgba(245, 240, 231, 0.09) !important;
    background: rgba(25, 28, 24, 0.94) !important;
  }

  #tb-homepage-page .hk-grid .hk-item {
    gap: 13px !important;
  }

  #tb-homepage-page .hk-grid .hk-item-text,
  #tb-homepage-page .hk-grid .hk-cell--want .hk-item-text {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 640px) {
  #tb-homepage-page .hero.hero--photo {
    min-height: auto !important;
    background: #17130f !important;
  }

  #tb-homepage-page .hero.hero--photo::before {
    display: none !important;
  }

  #tb-homepage-page .hero-mobile-portrait {
    display: block !important;
    height: clamp(260px, 45vw, 340px) !important;
    background:
      linear-gradient(180deg, rgba(17,14,11,0) 50%, #17130f 100%),
      url("./arlp/pages/emdr/hero-emdr-man-v3.webp") 68% 44% / cover no-repeat !important;
  }

  #tb-homepage-page .hero.hero--photo .hero-split {
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  #tb-homepage-page .hero-mobile-portrait {
    height: clamp(220px, 64vw, 285px) !important;
  }

  #tb-homepage-page .hero.hero--photo .hero-inner {
    padding: 4px 22px 42px !important;
  }

  #tb-homepage-page .hero.hero--photo .hero-hed {
    max-width: 15ch !important;
    font-size: clamp(36px, 10.2vw, 44px) !important;
  }

  #tb-homepage-page .hero.hero--photo .hero-sub {
    max-width: 35ch !important;
    font-size: 16px !important;
  }

  #tb-homepage-page .search-bridge--plain {
    padding-block: 48px !important;
  }

  #tb-homepage-page .search-bridge--plain .search-bridge-inner {
    padding-inline: 24px !important;
  }

  #tb-homepage-page .search-bridge--plain .search-bridge-line:first-child {
    font-size: clamp(22px, 7.25vw, 36px) !important;
    line-height: 1.08 !important;
  }

  #tb-homepage-page .search-bridge--plain .search-bridge-line:first-child span {
    white-space: nowrap;
  }

  #tb-homepage-page .search-bridge--plain .search-bridge-line + .search-bridge-line {
    margin-top: 20px !important;
  }

  #tb-homepage-page .search-bridge--plain .search-bridge-line-strong {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  #tb-homepage-page #team-section .team-intro {
    margin-bottom: 28px;
  }

  #tb-homepage-page .emdr-provider-card__copy {
    padding: 25px 20px;
  }

  #tb-homepage-page .full-team-grid {
    grid-template-columns: 1fr;
  }

  #tb-homepage-page .intake-strip {
    display: block;
    position: relative;
    padding: 20px;
  }

  #tb-homepage-page .intake-strip__photo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  #tb-homepage-page .intake-strip__label,
  #tb-homepage-page .intake-strip h3 {
    margin-left: 76px;
  }

  #tb-homepage-page .intake-strip h3 {
    min-height: 40px;
    font-size: 23px;
  }

  #tb-homepage-page .intake-strip p:not(.intake-strip__label) {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.5;
  }

  #tb-homepage-page .trustbar-label {
    max-width: 100%;
    white-space: normal !important;
  }

  #tb-homepage-page .trustbar-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 14px 8px !important;
  }

  #tb-homepage-page .trust-badge,
  #tb-homepage-page .trust-badge-wide,
  #tb-homepage-page .trust-badge-psych {
    min-width: 0 !important;
    height: 72px !important;
    padding-inline: 6px !important;
  }

  #tb-homepage-page .trust-registration {
    overflow-wrap: anywhere;
  }

  #tb-homepage-page .cta-handoff {
    max-width: 30ch !important;
    line-height: 1.5 !important;
  }

}

@media (max-width: 400px) {
  #tb-homepage-page .search-bridge--plain .search-bridge-inner {
    padding-inline: 16px !important;
  }
}
