/* ═══════════════════════════════════════════════════
   team.css — Who Writes ESA Letters page
   ═══════════════════════════════════════════════════ */

/* ─── HERO ─────────────────────────────────────────── */
.teamHero {
  position: relative;
  background: var(--color-bg-warm);
  width: 100%;
  padding: 132px 0 var(--space-24);
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  overflow: hidden;
}

/* Paw print decorations — same SVGs as pricing page */
.teamHero::before,
.teamHero::after {
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.6;
  pointer-events: none;
}
.teamHero::before {
  background-image: url('../../all-states-page/images/pawBefore.svg');
  width: 51px;
  height: 70px;
  left: 0;
  top: var(--space-20);
}
.teamHero::after {
  background-image: url('../../all-states-page/images/pawAfter.svg');
  width: 57px;
  height: 79px;
  right: 0;
  top: var(--space-16);
  background-position: right;
}

/* Animated orbs — same as pricing page */
.teamOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.teamOrb-1 {
  width: 280px; height: 280px;
  background: rgba(255, 91, 46, 0.22);
  top: -80px; left: -60px;
  animation: teamOrbFloat 14s ease-in-out infinite;
}
.teamOrb-2 {
  width: 220px; height: 220px;
  background: rgba(255, 217, 178, 0.5);
  top: 40%; right: -40px;
  animation: teamOrbFloat 18s ease-in-out infinite 2s reverse;
}
.teamOrb-3 {
  width: 180px; height: 180px;
  background: rgba(14, 20, 95, 0.08);
  bottom: -40px; left: 35%;
  animation: teamOrbFloat 22s ease-in-out infinite 4s;
}
@keyframes teamOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -15px) scale(1.06); }
  66%       { transform: translate(-15px, 10px) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .teamOrb { animation: none; }
}

.teamHeroContent {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* Eyebrow — orange line + text (pricing page pattern) */
.teamEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.teamEyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 1px;
  flex-shrink: 0;
}

.teamH1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, var(--text-5xl));
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-heading);
  margin: 0 0 var(--space-5);
}

.teamKeyword {
  color: var(--color-orange);
}

.teamHeroLead {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--color-text-body);
  max-width: 720px;
  margin: 0 auto var(--space-6);
}

/* Trust strip — identical to .hero-trust-strip on pricing page */
.teamTrustStrip {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: 760px;
}
.teamTrustStrip li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.teamTrustStrip li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--space-6) * -0.5 - 1px);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--color-border-strong);
}
.teamTrustStrip li strong {
  color: var(--color-text-heading);
  font-weight: var(--weight-bold);
}

/* Credential note — identical to .hero-footnote on pricing page */
.teamCredNote {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-white);
  border-left: 3px solid var(--color-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-xs);
  text-align: left;
}
.teamCredNoteIcon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-orange);
  
}
.teamCredNote p {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  margin: 0;
}
.teamCredNote p strong {
  color: var(--color-text-heading);
  font-weight: var(--weight-bold);
}

/* ─── THERAPISTS SECTION ─────────────────────────────── */
.therapistsSection {
  padding: 72px 0 80px;
}

.therapistsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

}

/* ─── BASE CARD — matches landingpage.css .therapist-card ── */
.therapistCard {
  background: var(--color-bg-white);
  border-radius: 20px;
  border: 1px solid var(--color-bg-warm);
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(14, 20, 95, 0.06);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .35s ease;
}

.therapistCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px -20px rgba(14, 20, 95, 0.18);
  border-color: #ffcfbc;
}

/* STATE-LICENSED badge — shared base */
.stateLicensedBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 3px;
  background: var(--color-navy);
  color: var(--color-bg-warm);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -4px rgba(14, 20, 95, 0.38);
  white-space: nowrap;
}

/* absolute top-right on regular cards only */
.therapistCard > .stateLicensedBadge {
  position: absolute;
  top: 20px;
  right: 20px;
}

.therapistBadgeDot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7754 0%, #d9503a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.35);
}

/* Photo */
.photoWrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.therapistPhoto {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-bg-white);
  box-shadow: 0 0 0 1px var(--color-bg-warm), 0 10px 24px -8px rgba(14, 20, 95, 0.2);
}

.therapistPhoto--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-peach);
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.therapistInitials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #fff;
  letter-spacing: 0.04em;
}

.initials-dr {
  background: linear-gradient(145deg, #2B42A8 0%, #0E145F 100%);
}

.initials-pl {
  background: linear-gradient(145deg, #7B4DBF 0%, #4A2090 100%);
}

.verifiedDot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7754 0%, #d9503a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #ffffff, 0 3px 8px rgba(14, 20, 95, 0.25);
}

/* Name & credential */
.therapistName {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 6px;
}

.therapistTitle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-body);
  margin: 0 0 16px;
}

/* Divider */
.cardDivider {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-orange);
  opacity: 0.55;
  margin-bottom: 14px;
  border-radius: 2px;
}

/* Bio */
.therapistBio {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-body);
  margin: 0 0 20px;
  flex-grow: 1;
}

/* Tags */
.specTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.specTag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef2ea;
  color: var(--color-navy);
  letter-spacing: 0.02em;
  border: 1px solid var(--color-bg-warm);
}

/* View full profile link */
.cardProfileLink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-bg-warm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-orange);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.cardProfileLink:hover {
  color: var(--color-orange-hover);
  gap: 8px;
}

/* ─── CARD BODY (45+ card only) ── */
.cardBody {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cardFooter {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.yearsCount {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-secondary);
}

.yearsCount strong {
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-right: 3px;
}

.profileLink {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--color-orange);
  text-decoration: none;
  transition: color 0.2s;
}

.profileLink:hover {
  color: var(--color-orange-hover);
}

/* ─── 45+ MORE CARD ─────────────────────────────────── */
.therapistCardMore {
  background: linear-gradient(155deg, #0E145F 0%, #1C2480 60%, #0E145F 100%);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.therapistCardMore::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 91, 46, 0.08);
  pointer-events: none;
}

.therapistCardMore::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.moreCardTop {
      padding: 0 0 20px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 1;
}

.moreCount {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: var(--weight-regular);
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.avatarStack {
  display: flex;
  align-items: center;
  margin-top: var(--space-4);
      margin-bottom: 20px;
}

.stackedAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  margin-right: -10px;
  flex-shrink: 0;
}

.stackedAvatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-peach);
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stackedAvatarMore {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-orange);
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: #fff;
  margin-left: 10px;
  flex-shrink: 0;
}


.therapistCardMore .cardBody {
  position: relative;
  z-index: 1;
}

.therapistCardMore .therapistName {
  color: #fff;
}

.therapistCardMore .cardDivider {
  background: rgba(255, 91, 46, 0.7);
}

.therapistCardMore .therapistBio {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
}

.therapistCardMore .cardFooter {
  border-top-color: rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
}

.therapistCardMore .yearsCount {
  color: rgba(255, 255, 255, 0.65);
}

.therapistCardMore .yearsCount strong {
  color: #fff;
}

/* ─── PANEL STANDARDS ─────────────────────────────── */
.panelStandardsSection {
  background: var(--color-bg-warm);
  padding: 72px 0 80px;
  margin-bottom: 130px;
}

.standardsInner {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-bg-white);
  border: 2px dashed rgba(255, 91, 46, 0.3);
  border-radius: var(--radius-xl);
  padding: 52px 60px;
  box-shadow: var(--shadow-xs);
}

.standardsHeader {
  text-align: center;
  margin-bottom: var(--space-10);
}

.standardsEyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}

.standardsTitle {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--color-text-heading);
  line-height: var(--leading-tight);
  margin: 0;
}

.standardsList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.standardsList li {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.standardsCTA {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 91, 46, 0.15);
}

.teamReviewerAttribution {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.5;
}

.teamReviewerAttribution em {
  font-style: italic;
}

.standardsIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--color-orange);
  border-radius: 50%;
  margin-top: 1px;
}

/* ─── CTA SECTION (removed — CTA now lives inside standardsInner) ── */
.teamCTASection {
  display: none;
}

.teamCTAInner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.teamCTATitle {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--color-text-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
}

.teamCTAText {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  margin: 0 0 var(--space-8);
}

.teamCTABtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: var(--weight-bold);
  line-height: 1;
  padding: 17px 42px 18px;
  border-radius: 100px;
  border-bottom: 5px solid var(--color-orange-hover);
  box-shadow: var(--shadow-cta);
  text-decoration: none;
  transition: all 0.2s ease;
}

.teamCTABtn:hover {
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(3px);
  border-bottom-width: 2px;
  color: #fff;
}

.teamCTASmallprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin: var(--space-5) 0 0;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .therapistsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .teamHero {
    border-radius: 0 0 36px 36px;
    padding: 52px 0 48px;
  }

  .teamH1 {
    font-size: var(--text-3xl);
  }

  .teamHeroLead {
    font-size: var(--text-base);
  }

  .standardsInner {
    padding: 36px 28px;
  }

  .standardsTitle {
    font-size: var(--text-2xl);
  }

  .teamCTATitle {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 575px) {
  .teamHero {
    padding: 86px 0 60px;
    border-radius: 0 0 28px 28px;
  }

  .teamH1 {
    font-size: var(--text-2xl);
  }

  .credentialStrip {
    padding: var(--space-4) var(--space-5);
  }

  .therapistsSection {
    padding: 48px 0 56px;
  }

  .therapistsGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .panelStandardsSection {
    padding: 52px 0 60px;
  }

  .standardsInner {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .teamCTASection {
    padding: 56px 0 72px;
  }

  .teamCTABtn {
    font-size: 15px;
    padding: 15px 28px 16px;
  }
}
