/* =========================================================
   spaTeam.css — PROVIDERS (SPA) — L/R/L cards
   - Desktop: image L/R, optional flip on 2nd card
   - Mobile: STACKED (image on top, text below) like your clinic version
   - Photo: cover with subtle letterbox bands
   Scoped strictly to html[data-brand="spa"]
   ========================================================= */

html[data-brand="spa"] .founders.providers {
  position: relative;
  overflow: hidden;
}

/* soft spa wash */
html[data-brand="spa"] .founders.providers::before {
  content: "";
  position: absolute;
  inset: -140px -140px auto -140px;
  height: 520px;
  pointer-events: none;
}

html[data-brand="spa"] .founders.providers .founders-grid {
  margin-top: clamp(22px, 2.8vw, 30px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.2vw, 20px);
}

/* Card */
html[data-brand="spa"] .founders.providers .founder-card {
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 190px) 1fr;
  gap: clamp(14px, 2.2vw, 18px);
  align-items: stretch;

  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, .08);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .70));

  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  position: relative;
  isolation: isolate;
}

html[data-brand="spa"] .founders.providers .founder-card::before {
  content: "";
  position: absolute;
  inset: -110px -110px auto -110px;
  height: 240px;
  background:
    radial-gradient(240px 170px at 12% 35%, rgba(214, 163, 107, .18), transparent 65%),
    radial-gradient(300px 200px at 82% 10%, rgba(255, 255, 255, .55), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Flip layout (2nd card) */
html[data-brand="spa"] .founders.providers .founder-card--flip {
  grid-template-columns: 1fr clamp(140px, 18vw, 190px);
}

html[data-brand="spa"] .founders.providers .founder-card--flip .founder-media {
  order: 2;
}

html[data-brand="spa"] .founders.providers .founder-card--flip .founder-body {
  order: 1;
}

/* Media */
html[data-brand="spa"] .founders.providers .founder-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, .10);
}

html[data-brand="spa"] .founders.providers .founder-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 22%;
}

/* 25% total letterbox bands (12.5% top + 12.5% bottom) */
html[data-brand="spa"] .founders.providers .founder-media::before,
html[data-brand="spa"] .founders.providers .founder-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12.5%;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

html[data-brand="spa"] .founders.providers .founder-media::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .06));
}

html[data-brand="spa"] .founders.providers .founder-media::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .08));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

  html[data-brand="spa"] .founders.providers .founder-media::before,
  html[data-brand="spa"] .founders.providers .founder-media::after {
    background: rgba(0, 0, 0, .10);
  }
}

/* Body */
html[data-brand="spa"] .founders.providers .founder-body {
  position: relative;
  z-index: 1;

  padding: clamp(14px, 2vw, 18px) clamp(14px, 2.2vw, 22px) clamp(14px, 2vw, 18px) 0;
  display: grid;
  align-content: center;
  gap: 10px;
}

/* if flipped, swap the “0” padding side */
html[data-brand="spa"] .founders.providers .founder-card--flip .founder-body {
  padding: clamp(14px, 2vw, 18px) 0 clamp(14px, 2vw, 18px) clamp(14px, 2.2vw, 22px);
}

html[data-brand="spa"] .founders.providers .founder-kicker {
  margin: 0 0 4px;
  font-size: .86rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .62);
  font-weight: 800;
}

html[data-brand="spa"] .founders.providers .founder-name {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: .01em;
  color: rgba(0, 0, 0, .88);
}

html[data-brand="spa"] .founders.providers .founder-desc {
  margin: 0;
  color: rgba(0, 0, 0, .70);
  line-height: 1.65;
  max-width: 70ch;
}

/* Actions (scoped buttons — won’t touch nav) */
html[data-brand="spa"] .founders.providers .founder-actions {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

html[data-brand="spa"] .founders.providers .founder-btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  min-height: 42px;
}

/* Ghost */
html[data-brand="spa"] .founders.providers .founder-btn--ghost {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .12);
  color: rgba(0, 0, 0, .82);
}

html[data-brand="spa"] .founders.providers .founder-btn--ghost:hover {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(0, 0, 0, .18);
}

/* Solid */
html[data-brand="spa"] .founders.providers .founder-btn--solid {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: 1px solid rgba(0, 0, 0, .06);
  color: rgba(0, 0, 0, .86);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
}

html[data-brand="spa"] .founders.providers .founder-btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
}

/* =========================================================
   SPA Providers — Coming Soon (+ tile) for founder-card version
   Uses:
   .founder-card--soon
   .founder-media--plus
   .founder-plus
   ========================================================= */

html[data-brand="spa"] .founders.providers .founder-card--soon {
  border-style: dashed;
  border-color: rgba(0, 0, 0, .14);
}

/* the media cell becomes a centered “plus tile” */
html[data-brand="spa"] .founders.providers .founder-media--plus {
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .06);
}

/* hide photo letterbox bands on the plus tile */
html[data-brand="spa"] .founders.providers .founder-media--plus::before,
html[data-brand="spa"] .founders.providers .founder-media--plus::after {
  content: none;
}

/* the plus itself */
html[data-brand="spa"] .founders.providers .founder-plus {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;

  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, .55);

  background:
    radial-gradient(140px 140px at 30% 20%, rgba(0, 0, 0, .06), transparent 62%),
    radial-gradient(220px 180px at 70% 80%, rgba(214, 163, 107, .12), transparent 68%);

  text-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

/* mobile: make the plus tile look intentional */
@media (max-width: 635px) {
  html[data-brand="spa"] .founders.providers .founder-media--plus {
    min-height: 220px;
    max-height: 320px;
  }
}

/* Mobile stack (match your provider mobile behavior) */
@media (max-width: 635px) {
  html[data-brand="spa"] .founders.providers .doc-card--soon {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 0 !important;
    border-radius: var(--radius-lg);
  }

  html[data-brand="spa"] .founders.providers .doc-card--soon .doc-media {
    width: 100%;
    min-height: 220px;
    max-height: 320px;
  }

  html[data-brand="spa"] .founders.providers .doc-card--soon .doc-media::before,
  html[data-brand="spa"] .founders.providers .doc-card--soon .doc-media::after {
    height: 8%;
    backdrop-filter: blur(16px) saturate(1.06);
    -webkit-backdrop-filter: blur(16px) saturate(1.06);
  }

  html[data-brand="spa"] .founders.providers .doc-card--soon .doc-body {
    padding: 12px 14px 14px !important;
    gap: 8px;
  }

  html[data-brand="spa"] .founders.providers .doc-card--soon .doc-topline {
    font-size: .72rem;
    letter-spacing: .09em;
    margin: 0;
  }

  html[data-brand="spa"] .founders.providers .doc-card--soon .doc-name {
    font-size: 1.02rem;
    line-height: 1.12;
  }

  html[data-brand="spa"] .founders.providers .doc-card--soon .doc-desc {
    font-size: .92rem;
    line-height: 1.42;
  }
}

/* Optional 2-up on wide screens */
@media (min-width: 1200px) {
  html[data-brand="spa"] .founders.providers .founders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Mobile (<=720): STACKED layout (image then text)
   ========================================================= */
@media (max-width: 635px) {

  html[data-brand="spa"] .founders.providers .founder-card,
  html[data-brand="spa"] .founders.providers .founder-card--flip {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 0 !important;
    border-radius: var(--radius-lg);
    align-items: stretch !important;
  }

  html[data-brand="spa"] .founders.providers .founder-card--flip .founder-media,
  html[data-brand="spa"] .founders.providers .founder-card--flip .founder-body {
    order: initial !important;
  }

  html[data-brand="spa"] .founders.providers .founder-media {
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    overflow: hidden;
    background: rgba(0, 0, 0, .10);
  }

  html[data-brand="spa"] .founders.providers .founder-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 22%;
  }

  html[data-brand="spa"] .founders.providers .founder-media::before,
  html[data-brand="spa"] .founders.providers .founder-media::after {
    height: 8%;
    backdrop-filter: blur(16px) saturate(1.06);
    -webkit-backdrop-filter: blur(16px) saturate(1.06);
  }

  html[data-brand="spa"] .founders.providers .founder-body {
    padding: 12px 14px 14px !important;
    gap: 8px;
  }

  html[data-brand="spa"] .founders.providers .founder-kicker {
    font-size: .72rem;
    letter-spacing: .09em;
    margin: 0;
  }

  html[data-brand="spa"] .founders.providers .founder-name {
    font-size: 1.02rem;
    line-height: 1.12;
    margin: 0;
  }

  html[data-brand="spa"] .founders.providers .founder-desc {
    font-size: .92rem;
    line-height: 1.42;
    margin: 0;
  }

  html[data-brand="spa"] .founders.providers .founder-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  html[data-brand="spa"] .founders.providers .founder-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    min-height: 42px;
    font-size: .92rem;
  }
}

/* =========================================================
   Extra small (<=380): even tighter
   ========================================================= */
@media (max-width: 380px) {
  html[data-brand="spa"] .founders.providers .founder-media {
    min-height: 200px;
    max-height: 280px;
  }

  html[data-brand="spa"] .founders.providers .founder-body {
    padding: 10px 12px 12px !important;
    gap: 7px;
  }

  html[data-brand="spa"] .founders.providers .founder-kicker {
    font-size: .70rem;
  }

  html[data-brand="spa"] .founders.providers .founder-name {
    font-size: .98rem;
  }

  html[data-brand="spa"] .founders.providers .founder-desc {
    font-size: .88rem;
    line-height: 1.36;
  }

  html[data-brand="spa"] .founders.providers .founder-actions {
    gap: 9px;
  }

  html[data-brand="spa"] .founders.providers .founder-btn {
    padding: 9px 12px;
    min-height: 40px;
    font-size: .90rem;
  }
}

