/* Why Pilates — static editorial benefits */
#why-pilates {
  --why-bg: #eaf7f4;
  --why-card: #fbfcfb;
  --why-mint: #e7f6f2;
  --why-accent: #3bb8a4;
  --why-text: #243332;
  --why-muted: #667572;
  position: relative;
  overflow: hidden;
  padding-top: 4rem !important;
  padding-bottom: 4.25rem !important;
  background: var(--why-bg) !important;
  color: var(--why-text);
}

#why-pilates .why-botany {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  fill: none;
  stroke: var(--why-accent);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.16;
}

#why-pilates .why-botany--tl {
  top: 0.65rem;
  right: 0.45rem;
  width: 10rem;
  height: 10rem;
  transform: rotate(28deg);
}

#why-pilates .why-botany--bl {
  left: 0.45rem;
  bottom: 6rem;
  width: 9rem;
  height: 9rem;
}

#why-pilates .why-botany--br {
  right: 0.45rem;
  bottom: 1.25rem;
  width: 8.5rem;
  height: 8.5rem;
  transform: rotate(-16deg);
}

#why-pilates .why-inner {
  position: relative;
  z-index: 1;
}

#why-pilates .why-layout {
  display: grid;
  gap: 2.25rem;
}

#why-pilates .why-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--why-accent);
}

#why-pilates .why-eyebrow::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: 0.65rem;
  background: var(--why-accent);
  opacity: 0.55;
}

#why-pilates .why-headline {
  margin: 1.15rem 0 0;
  font-family: var(--nav-display, "Playfair Display", Georgia, serif);
  font-size: clamp(2.15rem, 4.4vw, 3.2rem) !important;
  font-weight: 500;
  line-height: 1.1 !important;
  letter-spacing: -0.02em;
  color: var(--why-text);
}

#why-pilates .why-lede {
  margin: 0.95rem 0 0;
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--why-muted);
}

#why-pilates .why-visual {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin-top: 1.75rem;
  border-radius: 3.25rem 1.5rem 1.5rem 1.5rem;
}

#why-pilates .why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.85rem;
}

#why-pilates .why-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem 1.05rem 1rem;
  border-radius: 1.35rem;
  background: var(--why-card);
  box-shadow: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#why-pilates .why-card-icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid rgba(59, 184, 164, 0.35);
  color: var(--why-accent);
  transition: transform 0.3s ease;
}

#why-pilates .why-card-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

#why-pilates .why-card h3 {
  margin: 0.7rem 0 0;
  font-family: var(--nav-display, "Playfair Display", Georgia, serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--why-text);
}

#why-pilates .why-card p {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--why-muted);
}

#why-pilates .why-card-bar {
  display: none;
}

#why-pilates .why-card-clone {
  display: none;
}

@media (hover: hover) {
  #why-pilates .why-card:hover {
    transform: translateY(-4px);
    background: var(--why-mint);
  }

  #why-pilates .why-card:hover .why-card-icon {
    transform: scale(1.12);
  }

  #why-pilates .why-card:hover .why-card-bar {
    width: 2rem;
    opacity: 0.85;
  }
}

#why-pilates .why-trainers {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(59, 184, 164, 0.18);
}

#why-pilates .why-trainers-head {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

#why-pilates .why-trainers-head .why-eyebrow::after {
  margin-inline: auto;
}

#why-pilates .why-trainers-head h3 {
  margin: 0.9rem 0 0;
  font-family: var(--nav-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--why-text);
}

#why-pilates .why-coaches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  width: 100%;
  max-width: none;
  margin: 2.25rem 0 0;
  align-items: start;
}

#why-pilates .why-coach {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--why-card);
  box-shadow: 0 8px 22px rgba(36, 51, 50, 0.045);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#why-pilates .why-coach:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 20rem;
  justify-self: center;
}

#why-pilates .why-coach-photo {
  position: relative;
  overflow: hidden;
  background: #efeae0;
}

#why-pilates .why-coach-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

#why-pilates .why-coach-info {
  padding: 0.85rem 1rem 1rem;
  background: var(--why-card);
}

#why-pilates .why-coach-info h4 {
  margin: 0;
  font-family: var(--nav-display, "Playfair Display", Georgia, serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--why-text);
}

#why-pilates .why-coach-role {
  margin: 0.3rem 0 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(59, 184, 164, 0.2);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--why-accent);
}

#why-pilates .why-coach-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--why-muted);
}

#why-pilates .why-coach-meta + .why-coach-meta {
  margin-top: 0.28rem;
}

#why-pilates .why-coach-meta svg {
  flex-shrink: 0;
  width: 0.78rem;
  height: 0.78rem;
  margin-top: 0.18rem;
  color: var(--why-accent);
}

@media (hover: hover) {
  #why-pilates .why-coach:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(36, 51, 50, 0.08);
  }

  #why-pilates .why-coach:hover .why-coach-photo img {
    transform: scale(1.02);
  }
}

@media (min-width: 900px) {
  #why-pilates .why-layout {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.15fr);
    gap: 2.75rem 3.25rem;
    align-items: stretch;
  }

  #why-pilates .why-visual {
    margin-top: 1.15rem;
    max-width: none;
    max-height: 13.5rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
  }

  #why-pilates .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    align-content: stretch;
    height: 100%;
    gap: 0.95rem;
  }

  #why-pilates .why-coaches {
    grid-template-columns: repeat(2, minmax(0, 22rem));
    justify-content: center;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 48rem;
    margin-inline: auto;
  }

  #why-pilates .why-coaches:has(.why-coach:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    width: 100%;
  }

  #why-pilates .why-coach {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
  }

  #why-pilates .why-coach:only-child {
    max-width: 22rem;
  }

  #why-pilates .why-coach-info {
    flex: 1;
  }

  #why-pilates .why-coach-photo img {
    aspect-ratio: 1 / 1;
    object-position: center 18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #why-pilates .why-card,
  #why-pilates .why-card-icon,
  #why-pilates .why-card-bar,
  #why-pilates .why-coach,
  #why-pilates .why-coach-photo,
  #why-pilates .why-coach-photo img,
  #why-pilates .why-coach-info {
    transition: none;
  }

  #why-pilates .why-card:hover,
  #why-pilates .why-coach:hover,
  #why-pilates .why-coach:hover .why-coach-photo img {
    transform: none;
  }

  #why-pilates .why-grid {
    animation: none;
  }
}

@keyframes why-marquee {
  to {
    transform: translateX(calc(-50% - var(--gap, 0.7rem) / 2));
  }
}

/* Phone only — old mobile card language. Tablet/desktop rules above stay untouched. */
@media (max-width: 720px) {
  main > section#why-pilates {
    padding-top: 2.15rem !important;
    padding-bottom: 2.25rem !important;
    background: #fff !important;
  }

  #why-pilates .why-botany--bl,
  #why-pilates .why-botany--br {
    display: none;
  }

  #why-pilates .why-botany--tl {
    top: 0.35rem;
    right: 0.25rem;
    width: 5.5rem;
    height: 5.5rem;
    opacity: 0.12;
  }

  #why-pilates .why-inner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  #why-pilates .why-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 1.25rem;
  }

  #why-pilates .why-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
  }

  #why-pilates .why-eyebrow::after {
    margin: 0.45rem auto 0;
  }

  #why-pilates .why-headline {
    margin-top: 0.7rem;
    font-size: clamp(1.85rem, 8vw, 2.2rem) !important;
  }

  #why-pilates .why-lede {
    margin: 0.7rem auto 0;
    max-width: 34rem;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  #why-pilates .why-visual {
    display: block;
    width: 100%;
    height: auto;
    max-width: 340px;
    margin: 1rem auto 0;
    border-radius: 1.25rem;
    box-shadow: 0 8px 20px rgba(36, 51, 50, 0.1);
  }

  #why-pilates .why-grid {
    --gap: 0.7rem;
    display: flex;
    grid-template-columns: none;
    gap: var(--gap);
    width: max-content;
    overflow: visible;
    padding: 0.15rem 0 0.4rem;
    animation: why-marquee 22s linear infinite;
  }

  #why-pilates .why-card-clone {
    display: flex;
  }

  #why-pilates .why-card {
    flex: 0 0 15rem;
    height: auto;
    padding: 1rem;
    border: 0;
    border-radius: 1.5rem;
    background: #f4faf8;
    box-shadow: 0 10px 24px rgba(36, 51, 50, 0.05);
  }

  #why-pilates .why-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.9rem;
    background: #dff3ec;
    border-color: transparent;
  }

  #why-pilates .why-card-icon svg {
    width: 0.95rem;
    height: 0.95rem;
  }

  #why-pilates .why-card h3 {
    margin-top: 0.75rem;
    font-size: 1.12rem;
    line-height: 1.2;
  }

  #why-pilates .why-card p {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  #why-pilates .why-card-bar {
    display: none;
  }

  #why-pilates .why-card:hover,
  #why-pilates .why-card:active {
    transform: none;
    background: #f4faf8;
    border-color: transparent;
  }

  #why-pilates .why-card:hover .why-card-icon,
  #why-pilates .why-card:active .why-card-icon {
    transform: none;
    background: #dff3ec;
  }

  #why-pilates .why-trainers {
    margin-top: 2.15rem;
    padding-top: 1.85rem;
  }

  #why-pilates .why-trainers-head h3 {
    margin-top: 0.65rem;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.7rem, 7vw, 2rem);
    line-height: 1.15;
  }

  #why-pilates .why-trainers-head p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  #why-pilates .why-coaches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: none;
    margin-top: 1.5rem;
    align-items: stretch;
  }

  #why-pilates .why-coach {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(36, 51, 50, 0.06);
  }

  #why-pilates .why-coach-photo {
    height: auto;
    border-radius: 1.35rem 1.35rem 0 0;
  }

  #why-pilates .why-coach-photo img {
    width: 100%;
    height: 9.5rem;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: top center;
  }

  #why-pilates .why-coach-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.7rem 0.8rem 0.85rem;
    min-width: 0;
  }

  #why-pilates .why-coach-info h4 {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  #why-pilates .why-coach-role {
    margin-top: 0.28rem;
    padding-bottom: 0.4rem;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    line-height: 1.35;
  }

  #why-pilates .why-coach-meta {
    margin-top: 0.32rem;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  #why-pilates .why-coach-meta + .why-coach-meta {
    margin-top: 0.16rem;
  }

  #why-pilates .why-coach-meta svg {
    display: none;
  }

  #why-pilates .why-coach:hover,
  #why-pilates .why-coach:active {
    transform: none;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(36, 51, 50, 0.06);
  }

  #why-pilates .why-coach:hover .why-coach-photo img,
  #why-pilates .why-coach:active .why-coach-photo img {
    transform: none;
  }
}

html.dark #why-pilates {
  --why-bg: #1c2623;
  --why-card: #243532;
  --why-mint: #2c403b;
  --why-text: #eef3f1;
  --why-muted: #9eb5b0;
}

html.dark #why-pilates .why-coach-photo {
  background: #2a3834;
}

@media (max-width: 720px) {
  html.dark #why-pilates .why-card,
  html.dark #why-pilates .why-coach {
    background: var(--why-card);
  }
}
