/**
 * Leda Fay Yoga — front-end styles
 * Brand tokens + layout for home, listings, and detail pages.
 */

:root {
  --ledafay-brand: #a06aa9;
  --ledafay-brand-dark: #8c4c97;
  --ledafay-ink: #212529;
  --ledafay-muted: #555555;
  --ledafay-soft: #f3eef5;
  --ledafay-surface: #ffffff;
  --ledafay-border: rgba(160, 106, 169, 0.18);
  --ledafay-nav-offset: 72px;
  --ledafay-section-gap: 0;
  /* Match header / nav content width sitewide. */
  --ledafay-shell-max: 1180px;
  --ledafay-content-max: var(--ledafay-shell-max);
  --ledafay-home-content-max: var(--ledafay-shell-max);
  --ledafay-home-pad: clamp(3.5rem, 7vw, 5.5rem);
  --ledafay-page-pad: clamp(2.75rem, 5vw, 4.5rem);
  --ledafay-radius: 18px;
  --ledafay-radius-lg: 28px;
  --ledafay-shadow: 0 16px 40px rgba(88, 52, 96, 0.1);
  --ledafay-shadow-soft: 0 10px 28px rgba(88, 52, 96, 0.08);
  --ledafay-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* —— Base —— */
html {
  overflow-x: clip;
  max-width: 100%;
}

body {
  overflow-x: clip;
  max-width: 100%;
  font-family: var(--ledafay-font);
  color: var(--ledafay-ink);
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

p {
  line-height: 1.75;
  font-family: var(--ledafay-font);
}

a {
  color: var(--ledafay-brand);
}

a:hover {
  color: var(--ledafay-brand-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  font-family: var(--ledafay-font);
}

::selection {
  background: rgba(160, 106, 169, 0.28);
  text-shadow: none;
}

img::selection {
  background: transparent;
}

img {
  max-width: 100%;
  height: auto;
}

.img-fluid {
  width: 100%;
  height: auto;
}

.ledafay-page-shell img,
.ledafay-content-band__body img,
.ledafay-card__body img,
.two-column-container img,
.masonry-container img {
  max-width: 100%;
  height: auto;
}

/* —— Buttons —— */
.btn {
  font-family: var(--ledafay-font);
  font-weight: 600;
}

.btn-primary,
.ledafay-card__cta {
  display: inline-block;
  background-color: var(--ledafay-brand);
  border-color: var(--ledafay-brand);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(140, 76, 151, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.ledafay-card__cta:hover,
.ledafay-card__cta:focus {
  background-color: var(--ledafay-brand-dark) !important;
  border-color: var(--ledafay-brand-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(140, 76, 151, 0.28);
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(160, 106, 169, 0.45) !important;
}

a.link {
  color: var(--ledafay-brand-dark);
}

a.link:hover {
  color: var(--ledafay-brand);
  text-decoration: none;
}

/* —— Section headings —— */
.section-heading,
h1.section-heading,
h2.section-heading,
h4.section-heading {
  color: var(--ledafay-brand);
  margin-top: 0;
}

section h1.section-heading,
section h2.section-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
}

section h4.section-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.25rem;
}

.ledafay-section-heading {
  margin-bottom: 1.5rem;
}

.ledafay-section-heading.text-center {
  text-align: center;
}

.ledafay-section-heading.text-left {
  text-align: left;
}

/* —— Nav —— */
#mainNav.ledafay-nav {
  padding: 1rem 0;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  border: none;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#mainNav .ledafay-nav__inner {
  max-width: var(--ledafay-shell-max);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mainNav .navbar-toggler,
#mainNav .ledafay-nav__toggler {
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  right: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem;
  color: var(--ledafay-brand);
  border: 1px solid rgba(160, 106, 169, 0.35);
  border-radius: 8px;
  background: transparent;
  font-family: var(--ledafay-font);
  text-shadow: none;
  display: none; /* desktop default; shown only below lg */
}

#mainNav .ledafay-nav__toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(160, 106, 169, 0.35);
}

#mainNav .navbar-brand {
  color: var(--ledafay-brand);
  font-family: var(--ledafay-font);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  text-shadow: none;
}

#mainNav .navbar-brand:hover,
#mainNav .navbar-brand:focus,
#mainNav .navbar-brand.active {
  color: var(--ledafay-brand-dark);
}

#mainNav .navbar-nav .nav-item .nav-link,
#mainNav .navbar-nav .nav-item > a,
#mainNav .navbar-nav .menu-item > a {
  position: relative;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 0.75em 0;
  color: var(--ledafay-brand-dark);
  font-family: var(--ledafay-font);
  display: block;
  text-decoration: none;
  text-shadow: none;
  transition: color 0.2s ease;
}

#mainNav .navbar-nav .nav-item .nav-link::after,
#mainNav .navbar-nav .menu-item > a::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.4rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item > a:hover,
#mainNav .navbar-nav .menu-item > a:hover,
#mainNav .navbar-nav .current-menu-item > a,
#mainNav .navbar-nav .nav-item .nav-link:focus,
#mainNav .navbar-nav .menu-item > a:focus {
  color: var(--ledafay-brand);
}

#mainNav .navbar-nav .nav-item .nav-link:hover::after,
#mainNav .navbar-nav .nav-item .nav-link.active::after,
#mainNav .navbar-nav .menu-item > a:hover::after,
#mainNav .navbar-nav .current-menu-item > a::after,
#mainNav .navbar-nav .nav-item .nav-link:focus::after,
#mainNav .navbar-nav .menu-item > a:focus::after {
  transform: scaleX(1);
}

#mainNav .navbar-nav .nav-item .nav-link:focus-visible,
#mainNav .navbar-nav .menu-item > a:focus-visible,
#mainNav .navbar-brand:focus-visible {
  outline: 2px solid var(--ledafay-brand);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 991.98px) {
  #mainNav .ledafay-nav__inner {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  #mainNav .navbar-toggler,
  #mainNav .ledafay-nav__toggler {
    display: inline-flex;
    margin-left: auto;
  }

  #mainNav .navbar-brand {
    font-size: 1.25rem;
    color: var(--ledafay-brand);
    text-shadow: none;
  }

  #mainNav .ledafay-nav__collapse {
    flex-basis: 100%;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.5rem 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(88, 52, 96, 0.14);
  }

  #mainNav .ledafay-nav__collapse:not(.show) {
    display: none;
  }

  #mainNav .navbar-nav {
    align-items: stretch;
    text-align: left;
    width: 100%;
  }

  #mainNav .navbar-nav .nav-item .nav-link,
  #mainNav .navbar-nav .menu-item > a {
    color: var(--ledafay-brand-dark);
    text-shadow: none;
    padding: 0.75rem 0.5rem;
    font-size: 1.05rem;
  }

  #mainNav .navbar-nav .nav-item .nav-link::after,
  #mainNav .navbar-nav .menu-item > a::after {
    left: 0.5rem;
    right: auto;
    width: 1.25rem;
    margin-left: 0;
    bottom: 0.45rem;
  }

  #mainNav .navbar-nav .nav-item .nav-link:hover,
  #mainNav .navbar-nav .nav-item .nav-link.active,
  #mainNav .navbar-nav .current-menu-item > a {
    color: var(--ledafay-brand);
  }

  #mainNav.navbar-shrink {
    background: #fff;
    box-shadow: 0 4px 18px rgba(88, 52, 96, 0.1);
  }

  #mainNav.navbar-shrink .navbar-brand {
    color: var(--ledafay-brand);
    text-shadow: none;
  }

  #mainNav.navbar-shrink .ledafay-nav__toggler {
    color: var(--ledafay-brand);
    text-shadow: none;
    border-color: rgba(160, 106, 169, 0.35);
  }

  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link,
  #mainNav.navbar-shrink .navbar-nav .menu-item > a {
    color: var(--ledafay-brand-dark);
    text-shadow: none;
  }

  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover,
  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link.active,
  #mainNav.navbar-shrink .navbar-nav .current-menu-item > a {
    color: var(--ledafay-brand);
  }

  #mainNav .navbar-nav .nav-item .nav-link:focus-visible,
  #mainNav .navbar-nav .menu-item > a:focus-visible,
  #mainNav.navbar-shrink .navbar-brand:focus-visible {
    outline-color: var(--ledafay-brand);
  }
}

@media (min-width: 992px) {
  #mainNav.ledafay-nav {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
    background: transparent;
  }

  #mainNav .navbar-toggler,
  #mainNav .ledafay-nav__toggler {
    display: none !important;
  }

  #mainNav .ledafay-nav__inner {
    justify-content: flex-end;
  }

  #mainNav .navbar-brand {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    font-size: 1.55rem;
    transition: opacity 0.3s ease, color 0.3s ease;
  }

  #mainNav .ledafay-nav__collapse {
    display: flex !important;
    flex-grow: 0;
    justify-content: flex-end;
    margin-left: auto;
    width: auto;
  }

  #mainNav .navbar-nav,
  #mainNav .ledafay-nav__list {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #mainNav .navbar-nav .nav-item .nav-link,
  #mainNav .navbar-nav .nav-item > a,
  #mainNav .navbar-nav .menu-item > a {
    padding: 0.9rem 1.05rem !important;
    font-size: 1.12rem;
  }

  #mainNav.navbar-shrink {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    background: #fff;
    box-shadow: 0 4px 18px rgba(88, 52, 96, 0.1);
  }

  #mainNav.navbar-shrink .ledafay-nav__inner {
    justify-content: space-between;
  }

  #mainNav.navbar-shrink .navbar-brand {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0.55rem 0;
    color: var(--ledafay-brand);
  }

  #mainNav.navbar-shrink .navbar-brand:hover,
  #mainNav.navbar-shrink .navbar-brand:focus {
    color: var(--ledafay-brand-dark);
  }

  #mainNav.navbar-shrink .ledafay-nav__collapse {
    margin-left: auto;
    justify-content: flex-end;
  }

  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link,
  #mainNav.navbar-shrink .navbar-nav .menu-item > a {
    color: var(--ledafay-brand-dark);
    text-shadow: none;
  }

  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover,
  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link.active,
  #mainNav.navbar-shrink .navbar-nav .current-menu-item > a,
  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:focus {
    color: var(--ledafay-brand);
  }

  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:focus-visible,
  #mainNav.navbar-shrink .navbar-nav .menu-item > a:focus-visible,
  #mainNav.navbar-shrink .navbar-brand:focus-visible {
    outline-color: var(--ledafay-brand);
  }
}

body.ledafay-inner #mainNav.ledafay-nav,
body.ledafay-inner #mainNav.navbar-shrink {
  background: #fff;
  box-shadow: 0 4px 18px rgba(88, 52, 96, 0.08);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

body.ledafay-inner #mainNav .ledafay-nav__inner {
  justify-content: space-between;
}

body.ledafay-inner #mainNav .navbar-brand {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  padding: 0.55rem 0;
  color: var(--ledafay-brand);
  text-shadow: none;
  font-size: 1.55rem;
}

body.ledafay-inner #mainNav .ledafay-nav__collapse {
  margin-left: auto;
  justify-content: flex-end;
}

body.ledafay-inner #mainNav .navbar-nav .nav-item .nav-link,
body.ledafay-inner #mainNav .navbar-nav .menu-item > a {
  color: var(--ledafay-brand-dark);
  text-shadow: none;
}

body.ledafay-inner #mainNav .ledafay-nav__toggler {
  color: var(--ledafay-brand);
  text-shadow: none;
}

.scroll-trigger,
.ledafay-scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* —— Home hero —— */
header.ledafay-home-hero,
.wp-block-ledafayyoga-home-hero,
header:has(.intro-text) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  background-image: url("../media/img/background.png");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

@supports (height: 100dvh) {
  header.ledafay-home-hero,
  .wp-block-ledafayyoga-home-hero,
  header:has(.intro-text) {
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
  }
}

header .intro-text {
  z-index: 1;
  padding: 0;
  color: var(--ledafay-brand);
}

.logo-cover {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.ledafay-home-hero .ledafay-scroll-cue,
.wp-block-ledafayyoga-home-hero .ledafay-scroll-cue,
header:has(.intro-text) .ledafay-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px) + 1rem);
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ledafay-home-hero .ledafay-scroll-cue:hover,
.ledafay-home-hero .ledafay-scroll-cue:focus,
.wp-block-ledafayyoga-home-hero .ledafay-scroll-cue:hover,
.wp-block-ledafayyoga-home-hero .ledafay-scroll-cue:focus,
header:has(.intro-text) .ledafay-scroll-cue:hover,
header:has(.intro-text) .ledafay-scroll-cue:focus {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%) translateY(2px);
}

.ledafay-scroll-cue:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.arrow {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0yOTMuNzUxLDQ1NS44NjhjLTIwLjE4MSwyMC4xNzktNTMuMTY1LDE5LjkxMy03My42NzMtMC41OTVsMCwwYy0yMC41MDgtMjAuNTA4LTIwLjc3My01My40OTMtMC41OTQtNzMuNjcyICBsMTg5Ljk5OS0xOTBjMjAuMTc4LTIwLjE3OCw1My4xNjQtMTkuOTEzLDczLjY3MiwwLjU5NWwwLDBjMjAuNTA4LDIwLjUwOSwyMC43NzIsNTMuNDkyLDAuNTk1LDczLjY3MUwyOTMuNzUxLDQ1NS44Njh6Ii8+DQo8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjIwLjI0OSw0NTUuODY4YzIwLjE4LDIwLjE3OSw1My4xNjQsMTkuOTEzLDczLjY3Mi0wLjU5NWwwLDBjMjAuNTA5LTIwLjUwOCwyMC43NzQtNTMuNDkzLDAuNTk2LTczLjY3MiAgbC0xOTAtMTkwYy0yMC4xNzgtMjAuMTc4LTUzLjE2NC0xOS45MTMtNzMuNjcxLDAuNTk1bDAsMGMtMjAuNTA4LDIwLjUwOS0yMC43NzIsNTMuNDkyLTAuNTk1LDczLjY3MUwyMjAuMjQ5LDQ1NS44Njh6Ii8+DQo8L3N2Zz4=);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: bounce 2.4s infinite;
}

/* —— Scroll reveals (vertical only — sideways transforms cause mobile X-scroll) —— */
.ledafay-reveal-ready .ledafay-reveal {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--ledafay-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.ledafay-reveal-ready .ledafay-reveal.is-inview {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .arrow {
    animation: none;
  }

  .btn-primary,
  .ledafay-card__cta,
  #mainNav.ledafay-nav,
  .ledafay-icon-trio__item,
  .why-practice-card-inner,
  .why-practice-card-face {
    transition: none !important;
  }

  .ledafay-reveal-ready .ledafay-reveal,
  .ledafay-reveal-ready .ledafay-reveal.is-inview {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* —— Page shell / spacing —— */
.ledafay-page-content {
  min-height: calc(100vh - var(--ledafay-nav-offset));
}

.ledafay-page-content > section:first-child,
.ledafay-page-content > .courses:first-child,
.ledafay-page-content > .wp-block-ledafayyoga-page-shell:first-child {
  margin-top: var(--ledafay-nav-offset);
}

.ledafay-front > header:first-child,
.ledafay-front > .ledafay-home-hero:first-child,
.ledafay-front > .wp-block-ledafayyoga-home-hero:first-child {
  margin-top: 0;
}

.ledafay-front section:not(header) {
  margin-top: 0;
  padding-top: var(--ledafay-home-pad);
  padding-bottom: var(--ledafay-home-pad);
}

.ledafay-front .ledafay-icon-trio {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: var(--ledafay-home-pad);
  padding-bottom: var(--ledafay-home-pad);
  background: var(--ledafay-surface);
}

.ledafay-front .ledafay-home-teaser--introduction,
.ledafay-front .ledafay-why-practice,
.ledafay-front #events.ledafay-home-teaser,
.ledafay-front #trainings.ledafay-home-teaser,
.ledafay-front .ledafay-home-gallery {
  background: linear-gradient(180deg, rgba(243, 238, 245, 0.92), rgba(243, 238, 245, 0.55));
}

.ledafay-front .ledafay-home-teaser--standard,
.ledafay-front #practice.ledafay-home-teaser,
.ledafay-front #retreats.ledafay-home-teaser,
.ledafay-front .ledafay-newsletter {
  background: var(--ledafay-surface);
}

.ledafay-front .ledafay-home-teaser .container,
.ledafay-front .ledafay-why-practice .container,
.ledafay-front .ledafay-newsletter .container,
.ledafay-front .ledafay-home-gallery .container,
.ledafay-front .ledafay-icon-trio .container {
  max-width: var(--ledafay-home-content-max);
}

/* —— Icon trio —— */
.ledafay-icon-trio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.ledafay-icon-trio__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  height: 100%;
  min-height: 100%;
  padding: 1.5rem 1.15rem 1.35rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ledafay-border);
  border-radius: var(--ledafay-radius);
  box-shadow: var(--ledafay-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ledafay-icon-trio__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(88, 52, 96, 0.14);
}

.ledafay-icon-trio__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  min-height: 0;
}

.ledafay-icon-trio__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 72% !important;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

/* Beat section h2.section-heading so labels stay card-sized on desktop. */
section h2.ledafay-icon-trio__label,
.ledafay-icon-trio__label {
  margin: 0.9rem 0 0;
  padding: 0.15rem 0.35rem 0;
  width: 100%;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ledafay-page-shell,
.wp-block-ledafayyoga-page-shell {
  margin-top: 0;
  padding: var(--ledafay-page-pad) 0 calc(var(--ledafay-page-pad) + 0.5rem);
}

.ledafay-page-shell .container {
  max-width: var(--ledafay-content-max);
}

/* Inner pages share the same calm surface language as home */
body.ledafay-inner .ledafay-page-content {
  background:
    linear-gradient(180deg, rgba(243, 238, 245, 0.7) 0%, rgba(255, 255, 255, 0) 12rem),
    var(--ledafay-surface);
}

body.ledafay-inner .ledafay-page-shell .section-heading,
body.ledafay-listing .section-heading {
  letter-spacing: -0.01em;
}

body.ledafay-inner .ledafay-page-shell .wp-block-heading,
body.ledafay-inner .ledafay-page-shell h2,
body.ledafay-inner .ledafay-page-shell h3,
body.ledafay-inner .ledafay-page-shell h4 {
  color: var(--ledafay-brand);
}

body.ledafay-inner .ledafay-page-shell ul,
body.ledafay-inner .ledafay-page-shell ol {
  padding-left: 1.2rem;
  line-height: 1.75;
}

body.ledafay-inner .ledafay-page-shell a.link,
body.ledafay-listing a.link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

body.ledafay-inner .ledafay-page-shell a.link:hover,
body.ledafay-listing a.link:hover {
  border-bottom-color: currentColor;
}

/* —— Listing cards —— */
.timeline,
.ledafay-listing .timeline,
.courses .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.ledafay-listing .timeline > li,
.courses .timeline > li {
  margin: 0;
  padding: 0;
  min-height: 0;
}

.ledafay-listing > section.courses,
.ledafay-listing > .courses,
.ledafay-listing .ledafay-listing-section,
.ledafay-listing .wp-block-ledafayyoga-listing-section {
  margin-top: var(--ledafay-nav-offset);
  min-height: calc(100vh - var(--ledafay-nav-offset));
  padding: var(--ledafay-page-pad) 0;
  background: transparent;
}

.ledafay-listing > section.courses ~ section.courses,
.ledafay-listing > .courses ~ .courses,
.ledafay-listing .ledafay-listing-section ~ .ledafay-listing-section,
.ledafay-listing .wp-block-ledafayyoga-listing-section ~ .wp-block-ledafayyoga-listing-section {
  margin-top: 0 !important;
  min-height: auto !important;
  padding-top: 1.5rem;
  background: linear-gradient(180deg, rgba(243, 238, 245, 0.55), rgba(243, 238, 245, 0.2));
}

.ledafay-card,
.ledafay-listing .course,
.courses .course {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  grid-template-areas: "media content";
  gap: 1.35rem 1.75rem;
  align-items: center;
  padding: 1.35rem;
  margin: 0 auto;
  max-width: var(--ledafay-content-max);
  border: 1px solid var(--ledafay-border);
  border-radius: var(--ledafay-radius);
  background: #fff;
  box-shadow: var(--ledafay-shadow-soft);
}

.ledafay-listing .container > .col-lg-12,
.courses .container > .col-lg-12 {
  max-width: var(--ledafay-content-max);
  margin-left: auto;
  margin-right: auto;
}

.ledafay-listing .timeline > li:last-child .ledafay-card,
.ledafay-listing .timeline > li:last-child .course,
.courses .timeline > li:last-child .course {
  border-bottom: 1px solid var(--ledafay-border);
}

.ledafay-card__media,
.courses .course > img,
.ledafay-card > img {
  grid-area: media;
  align-self: stretch;
  width: 100%;
  max-width: 320px;
  margin: 0;
}

.ledafay-card__media img,
.courses .course > img,
.ledafay-card > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--ledafay-radius) - 4px);
  background: var(--ledafay-soft);
  margin: 0;
}

.ledafay-card__content,
.ledafay-listing .course .details,
.courses .course .details {
  grid-area: content;
  align-self: center;
  width: 100%;
  margin: 0;
  min-width: 0;
}

.ledafay-card__title,
.courses .course .details > h3,
.courses .course .details > h4 {
  margin: 0 0 0.35rem;
  color: var(--ledafay-ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.ledafay-card__subtitle {
  margin: 0 0 1rem;
  color: var(--ledafay-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.ledafay-card__body p,
.courses .course .details p {
  margin: 0 0 0.85rem;
  white-space: normal;
}

.ledafay-card__body p:last-child,
.courses .course .details p:last-child {
  margin-bottom: 0;
}

.ledafay-card__body h6,
.courses .course .details h6 {
  margin: 1.15rem 0 0.25rem;
  color: var(--ledafay-brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ledafay-card__cta,
.courses .course .btn-primary {
  margin-top: 1.15rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* —— Content band (shared detail / about pattern) —— */
.ledafay-content-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  margin: 0 0 1.75rem;
  padding: 1.35rem;
  border: 1px solid var(--ledafay-border);
  border-radius: var(--ledafay-radius);
  background: #fff;
  box-shadow: var(--ledafay-shadow-soft);
}

.ledafay-page-shell .ledafay-content-band:nth-of-type(even),
.wp-block-ledafayyoga-page-shell .ledafay-content-band:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(243, 238, 245, 0.72), rgba(255, 255, 255, 0.95));
}

.ledafay-content-band--left {
  grid-template-areas: "media text";
}

.ledafay-content-band--right {
  grid-template-areas: "text media";
}

/* Text-only bands and bands with nested galleries use the full shell width. */
.ledafay-content-band:not(:has(.ledafay-content-band__media)),
.ledafay-content-band:has(.masonry-container),
.ledafay-content-band:has(.ledafay-gallery-grid) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text";
}

.ledafay-content-band:has(.masonry-container) .ledafay-content-band__media,
.ledafay-content-band:has(.ledafay-gallery-grid) .ledafay-content-band__media {
  display: none;
}

.ledafay-content-band__media {
  grid-area: media;
  min-width: 0;
}

.ledafay-content-band__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--ledafay-radius) - 4px);
  background: var(--ledafay-soft);
}

.ledafay-content-band__text {
  grid-area: text;
  min-width: 0;
}

.ledafay-content-band__text h5 {
  margin: 0 0 0.85rem;
  color: var(--ledafay-brand);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
}

.ledafay-content-band__body {
  color: var(--ledafay-ink);
  line-height: 1.75;
}

.ledafay-content-band__body > *:last-child {
  margin-bottom: 0;
}

.ledafay-content-band__body .btn-primary,
.ledafay-page-shell .btn-primary {
  margin-top: 0.85rem;
}

/* Full-width detail prose (program, pricing, reviews). */
.ledafay-prose {
  margin: 0 0 1.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ledafay-border);
  border-radius: var(--ledafay-radius);
  background: #fff;
  box-shadow: var(--ledafay-shadow-soft);
  color: var(--ledafay-ink);
  line-height: 1.75;
}

.ledafay-page-shell .ledafay-prose:nth-of-type(even),
.wp-block-ledafayyoga-page-shell .ledafay-prose:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(243, 238, 245, 0.72), rgba(255, 255, 255, 0.95));
}

.ledafay-prose > h5:first-child,
.ledafay-prose > .ledafay-prose__title:first-child {
  margin-top: 0;
}

.ledafay-prose h5,
.ledafay-prose .ledafay-prose__title {
  margin: 1.5rem 0 0.85rem;
  color: var(--ledafay-brand);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
}

.ledafay-prose > *:last-child {
  margin-bottom: 0;
}

.ledafay-program-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem 1.75rem;
  margin: 1.25rem 0;
}

.ledafay-program-days > div {
  min-width: 0;
}

.ledafay-program-days p:first-child {
  margin-top: 0;
  font-weight: 700;
  color: var(--ledafay-brand-dark);
}

.ledafay-prose .img-fluid,
.ledafay-content-band__body .img-fluid {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  margin: 1rem 0;
  border-radius: calc(var(--ledafay-radius) - 4px);
}

/* Inner-page gallery sitting after the page shell. */
.ledafay-page-content > .ledafay-home-gallery,
.ledafay-page-content > .wp-block-ledafayyoga-home-gallery {
  margin: 0 0 2.5rem;
  padding: 0.5rem 0 0;
}

.ledafay-page-content > .ledafay-home-gallery .container,
.ledafay-page-content > .wp-block-ledafayyoga-home-gallery .container,
.ledafay-listing .container,
.courses .container,
.ledafay-page-shell .container,
.footer-container .container {
  max-width: var(--ledafay-shell-max);
}

/* —— About page editorial layout —— */
#about-full {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

#about-full::before {
  content: "";
  position: absolute;
  top: 6rem;
  right: -9rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(160, 106, 169, 0.08);
  pointer-events: none;
  z-index: 0;
}

#about-full > .container {
  position: relative;
  z-index: 1;
  max-width: var(--ledafay-shell-max);
}

#about-full > .container > .ledafay-section-heading:first-child {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/*
 * About / story panels: always show the full photograph.
 * Targets page slug too so it works even when #about-full is missing
 * from older saved markup. !important beats stale plugin/cache CSS.
 */
body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial),
body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial),
#about-full .ledafay-content-band:not(.ledafay-content-band--testimonial),
.ledafay-content-band--story,
.ledafay-about-story {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start !important;
  gap: 0 !important;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: var(--ledafay-radius-lg);
  background: #fff;
  box-shadow: var(--ledafay-shadow);
}

body.page-slug-about .ledafay-content-band--right:not(.ledafay-content-band--testimonial),
body.ledafay-about .ledafay-content-band--right:not(.ledafay-content-band--testimonial),
#about-full .ledafay-content-band--right:not(.ledafay-content-band--testimonial),
.ledafay-content-band--story.ledafay-content-band--right,
.ledafay-about-story.ledafay-content-band--right {
  flex-direction: row-reverse !important;
}

body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media,
body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media,
#about-full .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media,
.ledafay-content-band--story .ledafay-content-band__media,
.ledafay-about-story .ledafay-content-band__media {
  flex: 0 1 42%;
  width: 42%;
  max-width: 42%;
  align-self: flex-start !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  background: var(--ledafay-soft);
}

body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text,
body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text,
#about-full .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text,
.ledafay-content-band--story .ledafay-content-band__text,
.ledafay-about-story .ledafay-content-band__text {
  flex: 1 1 58%;
  width: 58%;
  max-width: 58%;
  display: block;
  padding: clamp(1.75rem, 4vw, 3.75rem);
}

body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media img,
body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media img,
#about-full .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media img,
.ledafay-content-band--story .ledafay-content-band__media img,
.ledafay-about-story .ledafay-content-band__media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
  border-radius: 0 !important;
}

body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__body,
body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__body,
#about-full .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__body,
.ledafay-content-band--story .ledafay-content-band__body,
.ledafay-about-story .ledafay-content-band__body {
  font-size: 1.02rem;
  line-height: 1.85;
}

#about-full > .container > .section-heading {
  margin: clamp(4rem, 8vw, 7rem) 0 clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
}

/* About story — classic float wrap like the original about.html */
.ledafay-about-story-flow,
.ledafay-about-story-flow.wp-block-group {
  display: block !important;
  max-width: none;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  color: var(--ledafay-ink);
  font-size: 1.05rem;
  line-height: 1.85;
  text-align: justify;
  background: #fff;
  border: 1px solid var(--ledafay-border);
  border-radius: var(--ledafay-radius-lg);
  box-shadow: var(--ledafay-shadow);
}

.ledafay-about-story-flow::after {
  content: "";
  display: table;
  clear: both;
}

.ledafay-about-story-flow > p {
  margin: 0 0 1.15rem;
}

.ledafay-about-story-flow > p:last-child {
  margin-bottom: 0;
}

.ledafay-about-bio {
  margin: 0.15rem 0 1.1rem;
  max-width: min(46%, 280px);
}

.ledafay-about-bio img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 4px;
  background: var(--ledafay-soft);
}

.ledafay-about-bio--right {
  float: right;
  margin-left: 2rem;
  margin-right: 0;
}

.ledafay-about-bio--left {
  float: left;
  margin-right: 2rem;
  margin-left: 0;
  max-width: min(42%, 260px);
}

.ledafay-about-bio--left img {
  height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: top center;
}

.ledafay-about-credentials,
.ledafay-about-credentials.wp-block-group,
.ledafay-about-credentials.is-layout-flow,
.ledafay-about-credentials.is-layout-flex,
.ledafay-about-credentials.is-layout-constrained {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.75fr);
  grid-template-rows: max-content 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

/* Neutralize WP Group flow margins so cards share a flat top edge. */
.ledafay-about-credentials > .ledafay-about-credential,
.ledafay-about-credentials.is-layout-flow > * + *,
.ledafay-about-credentials.wp-block-group > * + * {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

.ledafay-about-credential {
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--ledafay-border);
  border-radius: var(--ledafay-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ledafay-shadow-soft);
}

/* Yoga spans both rows; Sound stays top; Other pins to Yoga's bottom edge. */
.ledafay-about-credential:first-child {
  grid-column: 1;
  grid-row: 1 / -1;
  height: auto;
  align-self: stretch;
}

.ledafay-about-credential:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.ledafay-about-credential:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}

.ledafay-about-credential h5 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  margin: 0 0 1.25rem;
  color: var(--ledafay-brand-dark);
  font-size: 1.3rem;
}

.ledafay-about-credential .certificate {
  flex: 0 0 auto;
}

.ledafay-about-credential .wp-block-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledafay-about-credential .wp-block-list li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.15rem;
  line-height: 1.65;
}

.ledafay-about-credential .wp-block-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--ledafay-brand);
}

.ledafay-about-testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.ledafay-content-band--testimonial,
.ledafay-page-shell .ledafay-content-band--testimonial:nth-of-type(even),
.wp-block-ledafayyoga-page-shell .ledafay-content-band--testimonial:nth-of-type(even) {
  grid-template-columns: 6.5rem minmax(0, 1fr);
  grid-template-areas: "media text";
  gap: 1.35rem;
  align-items: start;
  height: 100%;
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  background: #fff;
}

.ledafay-content-band--testimonial .ledafay-content-band__media img {
  width: 6.5rem;
  height: 6.5rem;
  aspect-ratio: 1;
  border: 4px solid var(--ledafay-soft);
  border-radius: 50%;
  object-fit: cover;
}

.ledafay-content-band--testimonial h6 {
  margin: 0 0 0.75rem;
  color: var(--ledafay-brand-dark);
  font-size: 1rem;
  font-weight: 700;
}

.ledafay-content-band--testimonial p {
  margin: 0;
  color: var(--ledafay-muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* —— Split section —— */
.ledafay-split,
.two-column-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--ledafay-border);
  border-radius: var(--ledafay-radius);
  background: #fff;
  box-shadow: var(--ledafay-shadow-soft);
}

.two-column-container-column {
  flex: 1 1 50%;
  min-width: 0;
}

/*
 * Nested legacy two-column markup inside a content-band text column gets
 * squeezed to ~half the shell width (Dreamscape 2026 migration bug).
 * Stack those bands so nested splits use the full content width.
 */
.ledafay-content-band:has(.two-column-container) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "text";
}

.ledafay-content-band:has(.two-column-container) .ledafay-content-band__media {
  max-width: min(100%, 40rem);
}

.ledafay-content-band__body > .two-column-container {
  margin-top: 1.25rem;
}

/* Nested split cards — drop double chrome against the parent band. */
.ledafay-content-band__body .two-column-container,
.ledafay-page-shell .ledafay-content-band__body .two-column-container {
  padding: 1rem 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ledafay-split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--ledafay-radius) - 4px);
}

/* —— Home teasers / portrait —— */
.ledafay-home-teaser .portrait,
section .col-md-6 .portrait {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--ledafay-radius);
}

.ledafay-home-teaser__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Desktop: image on the right without changing source order (media stays first in HTML). */
.ledafay-home-teaser--image-right .ledafay-home-teaser__row {
  flex-direction: row-reverse;
}

.ledafay-home-teaser__copy {
  max-width: 38rem;
}

.ledafay-home-teaser__body,
.ledafay-home-teaser__body p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Short “NEXT …” lines stay left — justify looks sparse on one-liners. */
.ledafay-home-teaser__next {
  text-align: left;
}

.ledafay-home-teaser .text-justify {
  text-align: justify !important;
}

.ledafay-home-teaser__body.has-text-align-left,
.ledafay-home-teaser__body.has-text-align-left p,
.ledafay-home-teaser__next.has-text-align-left {
  text-align: left !important;
  hyphens: manual;
}

.ledafay-home-teaser__body.has-text-align-center,
.ledafay-home-teaser__body.has-text-align-center p,
.ledafay-home-teaser__next.has-text-align-center {
  text-align: center !important;
  hyphens: manual;
}

.ledafay-home-teaser__body.has-text-align-right,
.ledafay-home-teaser__body.has-text-align-right p,
.ledafay-home-teaser__next.has-text-align-right {
  text-align: right !important;
  hyphens: manual;
}

.ledafay-home-teaser__body.has-text-align-justify,
.ledafay-home-teaser__body.has-text-align-justify p,
.ledafay-home-teaser__next.has-text-align-justify {
  text-align: justify !important;
}

.ledafay-home-teaser--standard .ledafay-home-teaser__copy .section-heading {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  margin-bottom: 1.15rem;
  line-height: 1.2;
}

.ledafay-home-teaser__body p {
  margin-bottom: 1rem;
}

.ledafay-home-teaser__body p:last-child {
  margin-bottom: 0;
}

.ledafay-home-teaser__frame {
  position: relative;
}

.ledafay-home-teaser__next {
  margin-top: 1.35rem;
  margin-bottom: 0;
  padding: 0.95rem 1.1rem;
  background: var(--ledafay-soft);
  border: 1px solid var(--ledafay-border);
  border-left: 4px solid var(--ledafay-brand);
  border-radius: 12px;
  color: var(--ledafay-ink);
  line-height: 1.6;
}

.ledafay-home-teaser__next a {
  font-weight: 600;
}

.ledafay-home-teaser .btn-primary {
  margin-top: 1.35rem;
  padding: 0.75rem 1.5rem;
}

.ledafay-home-teaser--introduction {
  position: relative;
}

.ledafay-home-teaser--introduction .ledafay-home-teaser__copy .section-heading {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin-bottom: 1.35rem;
}

.ledafay-home-teaser--introduction .ledafay-home-teaser__body {
  font-size: 1.02rem;
  line-height: 1.75;
}

/*
 * Meet Leda: same content width as other home sections.
 * Text hugs the left edge; portrait hugs the right edge.
 */
@media (min-width: 768px) {
  .ledafay-home-teaser--introduction .ledafay-home-teaser__row {
    align-items: center;
  }

  .ledafay-home-teaser--introduction .ledafay-home-teaser__copy {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .ledafay-home-teaser--introduction.ledafay-home-teaser--image-right .ledafay-home-teaser__copy {
    padding-right: 1.25rem;
  }

  .ledafay-home-teaser--introduction.ledafay-home-teaser--image-right .ledafay-home-teaser__media {
    display: flex;
    justify-content: flex-end;
    padding-left: 1.25rem;
  }

  .ledafay-home-teaser--introduction.ledafay-home-teaser--image-left .ledafay-home-teaser__copy {
    padding-left: 1.25rem;
  }

  .ledafay-home-teaser--introduction.ledafay-home-teaser--image-left .ledafay-home-teaser__media {
    display: flex;
    justify-content: flex-start;
    padding-right: 1.25rem;
  }
}

.ledafay-home-teaser--introduction .ledafay-home-teaser__frame {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(160, 106, 169, 0.16);
  border-radius: 42% 58% 48% 52% / 46% 42% 58% 54%;
  box-shadow: var(--ledafay-shadow);
  transform: none;
  max-width: none;
  width: 100%;
}

.ledafay-home-teaser--introduction .portrait {
  border-radius: 44% 56% 50% 50% / 48% 42% 58% 52%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.ledafay-home-teaser--introduction.ledafay-home-teaser--image-right .ledafay-home-teaser__frame {
  transform: none;
  margin-left: auto;
  max-width: min(100%, 22rem);
}

.ledafay-home-teaser--introduction.ledafay-home-teaser--image-left .ledafay-home-teaser__frame {
  margin-right: auto;
  max-width: min(100%, 22rem);
}

.ledafay-home-teaser--standard .portrait {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(88, 52, 96, 0.12);
}

.certificate {
  width: 32px;
  height: auto;
  margin-left: 6px;
  vertical-align: middle;
}

/* —— Why Practice —— */
.ledafay-why-practice .section-heading {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin-bottom: 1.35rem;
}

.why-practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  padding-top: 0.5rem;
}

.why-practice-card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 1000px;
  cursor: pointer;
  appearance: none;
}

.why-practice-card:focus {
  outline: none;
}

.why-practice-card:focus-visible .why-practice-card-face {
  box-shadow: 0 0 0 3px rgba(160, 106, 169, 0.35);
}

.why-practice-card-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 12.5rem; /* compact constant size — back copy sized to fit */
  min-height: 12.5rem;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.why-practice-card.is-flipped .why-practice-card-inner {
  transform: rotateY(180deg);
}

.why-practice-card-face {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(145deg, #f7f1f8 0%, #ebe0ef 52%, #e4d4ea 100%);
  border: 1px solid rgba(160, 106, 169, 0.22);
  border-radius: var(--ledafay-radius);
  backface-visibility: hidden;
  box-sizing: border-box;
  box-shadow: var(--ledafay-shadow-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.why-practice-card-face::before,
.why-practice-card-face::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.why-practice-card-face > * {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: center;
}

/* Each card gets a distinct organic shape pair. */
.why-practice-card:nth-child(1) .why-practice-card-face::before {
  top: -2.5rem;
  right: -1.75rem;
  width: 10rem;
  height: 10rem;
  border-radius: 58% 42% 64% 36% / 48% 55% 45% 52%;
  background: radial-gradient(circle at 35% 35%, rgba(160, 106, 169, 0.34), rgba(140, 76, 151, 0.08));
}

.why-practice-card:nth-child(1) .why-practice-card-face::after {
  bottom: -2rem;
  left: -1.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(160, 106, 169, 0.12);
}

.why-practice-card:nth-child(2) .why-practice-card-face::before {
  top: -3rem;
  left: -2.25rem;
  width: 11rem;
  height: 8.5rem;
  border-radius: 40% 60% 55% 45% / 60% 35% 65% 40%;
  background: linear-gradient(135deg, rgba(140, 76, 151, 0.28), rgba(160, 106, 169, 0.08));
}

.why-practice-card:nth-child(2) .why-practice-card-face::after {
  right: 1rem;
  bottom: -1.25rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(243, 238, 245, 0.95);
  border: 1px solid rgba(160, 106, 169, 0.16);
}

.why-practice-card:nth-child(3) .why-practice-card-face::before {
  top: 15%;
  right: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(160, 106, 169, 0.22), transparent 55%, rgba(140, 76, 151, 0.16));
}

.why-practice-card:nth-child(3) .why-practice-card-face::after {
  left: -1rem;
  bottom: -2.5rem;
  width: 8rem;
  height: 6rem;
  border-radius: 70% 30% 55% 45% / 45% 60% 40% 55%;
  background: rgba(160, 106, 169, 0.14);
}

.why-practice-card:nth-child(4) .why-practice-card-face::before {
  top: -1.5rem;
  left: 25%;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  background: radial-gradient(circle at 60% 40%, rgba(140, 76, 151, 0.3), rgba(160, 106, 169, 0.05));
}

.why-practice-card:nth-child(4) .why-practice-card-face::after {
  right: -1.75rem;
  bottom: -1.75rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 40% 60% 40% 60%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(160, 106, 169, 0.14);
}

.why-practice-card-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.5), transparent 40%),
    linear-gradient(160deg, #f2eaf4 0%, #e7d8ec 58%, #dcc9e3 100%);
}

.why-practice-card:hover:not(.is-flipped) .why-practice-card-front,
.why-practice-card:focus-visible:not(.is-flipped) .why-practice-card-front {
  border-color: rgba(140, 76, 151, 0.45);
  box-shadow: 0 14px 34px rgba(125, 78, 132, 0.18);
  transform: translateY(-3px);
}

.why-practice-card:hover:not(.is-flipped) h3,
.why-practice-card:focus-visible:not(.is-flipped) h3 {
  color: var(--ledafay-brand-dark);
}

.why-practice-card-front {
  text-align: center;
}

.why-practice-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--ledafay-brand-dark);
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
  transition: color 0.25s ease;
}

.why-practice-card p {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ledafay-ink);
  line-height: 1.45;
  margin: 0;
  text-align: center;
  text-wrap: pretty;
}

/* —— Home gallery —— */
.ledafay-home-gallery .section-heading {
  margin-bottom: 1.75rem;
}

.ledafay-gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ledafay-gallery-item {
  margin: 0;
}

.ledafay-gallery-item__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--ledafay-radius);
  background: var(--ledafay-soft);
  box-shadow: 0 12px 28px rgba(88, 52, 96, 0.12);
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ledafay-gallery-item__link:hover,
.ledafay-gallery-item__link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(88, 52, 96, 0.18);
}

.ledafay-gallery-item__link:focus-visible {
  outline: 2px solid var(--ledafay-brand);
  outline-offset: 3px;
}

.ledafay-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ledafay-gallery-item__link:hover img,
.ledafay-gallery-item__link:focus-visible img {
  transform: scale(1.05);
}

.ledafay-gallery-empty {
  margin: 0;
  color: var(--ledafay-muted);
}

/* Lightbox */
body.ledafay-lightbox-open {
  overflow: hidden;
}

.ledafay-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ledafay-lightbox[hidden] {
  display: none !important;
}

.ledafay-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 32, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ledafay-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ledafay-lightbox__figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.ledafay-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #111;
}

.ledafay-lightbox__caption {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.ledafay-lightbox__close,
.ledafay-lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ledafay-brand-dark);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ledafay-lightbox__close:hover,
.ledafay-lightbox__nav:hover,
.ledafay-lightbox__close:focus-visible,
.ledafay-lightbox__nav:focus-visible {
  background: #fff;
  transform: scale(1.05);
  outline: none;
}

.ledafay-lightbox__close {
  top: 0;
  right: 0;
}

.ledafay-lightbox__nav--prev {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.ledafay-lightbox__nav--next {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.ledafay-lightbox__nav--prev:hover,
.ledafay-lightbox__nav--next:hover,
.ledafay-lightbox__nav--prev:focus-visible,
.ledafay-lightbox__nav--next:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .ledafay-gallery-item__link,
  .ledafay-gallery-item img,
  .ledafay-lightbox__close,
  .ledafay-lightbox__nav {
    transition: none !important;
  }

  .ledafay-gallery-item__link:hover img,
  .ledafay-gallery-item__link:focus-visible img {
    transform: none;
  }
}

/* —— Newsletter —— */
.ledafay-newsletter .section-heading {
  text-align: center;
}

.ledafay-newsletter form.validate,
form.validate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ledafay-newsletter form.validate {
  position: relative;
  overflow: hidden;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.ledafay-newsletter form.validate [aria-hidden="true"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

input.email {
  width: 280px;
  max-width: 100%;
  outline: 0;
  border: 1px solid rgba(160, 106, 169, 0.35);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #fff;
}

.ledafay-newsletter input.email {
  flex: 1 1 240px;
  width: auto;
}

/* —— Footer —— */
footer,
.footer-container {
  padding: 25px 0;
  margin-top: 0;
  text-align: center;
  background-color: var(--ledafay-brand);
  color: #fff;
}

footer span.copyright {
  font-size: 90%;
  line-height: 40px;
}

footer .imprint a,
.imprint a,
a.email {
  color: #fff;
}

a.email:hover {
  color: #fff;
  text-decoration: underline;
}

ul.social-buttons {
  margin: 0;
  height: auto;
  min-height: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.footer-container .ledafay-footer-social {
  min-height: 50px;
}

ul.social-buttons li,
ul.social-buttons .list-inline-item {
  margin: 0 !important;
}

ul.social-buttons li a {
  font-size: 20px;
  line-height: 50px;
  display: inline-block;
  margin: 0;
  width: 50px;
  height: 50px;
  transition: background-color 0.3s;
  color: var(--ledafay-brand);
  border-radius: 100%;
  background-color: #fff;
}

ul.social-buttons li a:hover,
ul.social-buttons li a:focus {
  background-color: var(--ledafay-soft);
  color: var(--ledafay-brand-dark);
}

/* —— Masonry (legacy detail galleries) —— */
.masonry-container {
  column-count: 3;
  column-gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.masonry-container figure {
  margin: 0 0 0.85rem;
  break-inside: avoid;
  border-radius: var(--ledafay-radius);
  overflow: hidden;
  box-shadow: var(--ledafay-shadow-soft);
  background: var(--ledafay-soft);
}

.masonry-container figure img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .ledafay-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 991.98px) {
  .ledafay-icon-trio__grid {
    gap: 0.85rem;
  }

  .ledafay-icon-trio__item {
    padding: 1.35rem 0.85rem 1.15rem;
  }

  .ledafay-home-teaser--introduction .ledafay-home-teaser__copy .section-heading,
  .ledafay-why-practice .section-heading {
    font-size: clamp(1.85rem, 3vw, 2.4rem);
  }
}

/* —— Mobile —— */
@media (max-width: 768px) {
  :root {
    --ledafay-nav-offset: 64px;
    --ledafay-home-pad: 2.75rem;
    --ledafay-radius: 16px;
  }

  /* Keep every major surface inside the viewport width. */
  #page-top,
  #main-content,
  .ledafay-page-content,
  .ledafay-page-shell,
  .ledafay-front > section,
  .footer-container,
  .container,
  .row {
    max-width: 100%;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .row > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    width: 100%;
  }

  img,
  video,
  iframe,
  embed,
  object,
  table {
    max-width: 100%;
  }

  #about-full::before {
    right: -4rem;
    width: 14rem;
    height: 14rem;
  }

  #mainNav.ledafay-nav {
    padding: 0.55rem 0;
  }

  #mainNav .ledafay-nav__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #mainNav .navbar-brand {
    font-size: 1.2rem;
    max-width: calc(100% - 3.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #mainNav .ledafay-nav__toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 0.55rem;
  }

  #mainNav .ledafay-nav__collapse {
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  header.ledafay-home-hero,
  .wp-block-ledafayyoga-home-hero,
  header:has(.intro-text) {
    padding: 4.5rem 1rem 5.5rem;
  }

  .logo-cover {
    max-width: min(240px, 68vw);
  }

  /* Mobile: keep justified body copy with hyphenation so gaps stay even. */
  .ledafay-home-teaser__body,
  .ledafay-home-teaser__body p,
  .ledafay-home-teaser .text-justify,
  .ledafay-home-teaser__body.has-text-align-justify,
  .ledafay-home-teaser__body.has-text-align-justify p,
  .ledafay-content-band__body,
  .ledafay-content-band__body p,
  .ledafay-page-shell .ledafay-content-band__body,
  .ledafay-about-story-flow,
  .ledafay-about-story-flow p,
  .ledafay-card__body,
  .ledafay-card__body p {
    text-align: justify !important;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }

  .ledafay-home-teaser__next,
  .ledafay-home-teaser__next.has-text-align-justify {
    text-align: left !important;
    hyphens: manual;
  }

  .ledafay-home-teaser__copy {
    max-width: none;
  }

  .ledafay-home-teaser--standard .ledafay-home-teaser__copy .section-heading {
    font-size: 1.75rem;
  }

  .ledafay-home-hero .ledafay-scroll-cue,
  .wp-block-ledafayyoga-home-hero .ledafay-scroll-cue,
  header:has(.intro-text) .ledafay-scroll-cue {
    width: 48px;
    height: 48px;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.75rem);
  }

  .ledafay-front section:not(header) {
    margin-top: 0;
    padding-top: var(--ledafay-home-pad);
    padding-bottom: var(--ledafay-home-pad);
  }

  .ledafay-front .ledafay-icon-trio {
    margin-top: 0;
    padding-top: var(--ledafay-home-pad);
    padding-bottom: var(--ledafay-home-pad);
  }

  .ledafay-front .ledafay-home-teaser .container,
  .ledafay-front .ledafay-why-practice .container,
  .ledafay-front .ledafay-newsletter .container,
  .ledafay-front .ledafay-home-gallery .container,
  .ledafay-front .ledafay-icon-trio .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  section h1.section-heading,
  section h2.section-heading {
    font-size: 1.85rem;
    margin-bottom: 1.1rem;
  }

  section h4.section-heading {
    font-size: 1.55rem;
    margin-bottom: 1rem;
  }

  /* Stack icon trio: three equal rows, icon + label — avoids crushed 3-col text. */
  .ledafay-icon-trio__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .ledafay-icon-trio__item {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 1rem 1.15rem;
    box-shadow: 0 10px 24px rgba(88, 52, 96, 0.1);
  }

  .ledafay-icon-trio__item:hover,
  .ledafay-icon-trio__item:active {
    transform: none;
  }

  .ledafay-icon-trio__media {
    width: 4.75rem;
    aspect-ratio: 1 / 1;
    min-height: 0;
    flex: 0 0 4.75rem;
  }

  .ledafay-icon-trio__image {
    max-width: 82%;
    max-height: 82% !important;
  }

  section h2.ledafay-icon-trio__label,
  .ledafay-icon-trio__label {
    margin: 0;
    padding-top: 0;
    width: auto;
    min-height: 0;
    justify-content: flex-start;
    font-size: 1.35rem;
    line-height: 1.2;
  }

  /* Stack every teaser the same way: photo, then text (incl. Events / Trainings). */
  .ledafay-home-teaser .row,
  .ledafay-home-teaser__row,
  .ledafay-home-teaser--image-right .ledafay-home-teaser__row,
  .ledafay-home-teaser--image-left .ledafay-home-teaser__row {
    display: flex !important;
    flex-direction: column !important;
    margin-left: 0;
    margin-right: 0;
  }

  .ledafay-home-teaser .col-md-6,
  .ledafay-home-teaser .col-md-7,
  .ledafay-home-teaser .col-md-5 {
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .ledafay-home-teaser__media {
    order: 1 !important;
    margin-bottom: 1.35rem;
  }

  .ledafay-home-teaser__copy {
    order: 2 !important;
    max-width: none;
  }

  /* Fallback if older markup still puts copy before media (image-right). */
  .ledafay-home-teaser--image-right .ledafay-home-teaser__row > [class*="col-"]:first-child:not(.ledafay-home-teaser__media) {
    order: 2 !important;
  }

  .ledafay-home-teaser--image-right .ledafay-home-teaser__row > [class*="col-"]:last-child:not(.ledafay-home-teaser__copy) {
    order: 1 !important;
    margin-bottom: 1.35rem;
  }

  .ledafay-home-teaser .portrait {
    margin-bottom: 0;
  }

  .ledafay-home-teaser--standard .portrait {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .ledafay-home-teaser--introduction .ledafay-home-teaser__copy .section-heading,
  .ledafay-why-practice .section-heading {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
    margin-bottom: 1rem;
  }

  .ledafay-home-teaser--introduction .ledafay-home-teaser__body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .ledafay-home-teaser--introduction .ledafay-home-teaser__frame,
  .ledafay-home-teaser--introduction.ledafay-home-teaser--image-right .ledafay-home-teaser__frame,
  .ledafay-home-teaser--introduction.ledafay-home-teaser--image-left .ledafay-home-teaser__frame {
    max-width: min(20rem, 78vw);
    margin: 0 auto;
    padding: 0.55rem;
    transform: none;
    border-radius: 32% 68% 48% 52% / 42% 38% 62% 58%;
  }

  .ledafay-home-teaser--introduction .portrait {
    aspect-ratio: 4 / 5;
    border-radius: 34% 66% 50% 50% / 44% 40% 60% 56%;
  }

  .ledafay-home-teaser__next {
    margin-top: 1.15rem;
    padding: 0.85rem 0.95rem;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ledafay-home-teaser .btn-primary,
  .ledafay-newsletter .btn-primary {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 1.15rem;
    min-height: 48px;
  }

  .ledafay-home-gallery .section-heading {
    margin-bottom: 1.15rem;
  }

  .ledafay-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .ledafay-lightbox {
    padding: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .ledafay-lightbox__nav {
    width: 2.75rem;
    height: 2.75rem;
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
    transform: none;
  }

  .ledafay-lightbox__nav--prev {
    left: 0.75rem;
  }

  .ledafay-lightbox__nav--next {
    right: 0.75rem;
  }

  .ledafay-lightbox__close {
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .ledafay-lightbox__image {
    max-height: calc(100vh - 8.5rem);
    max-height: calc(100dvh - 8.5rem);
    border-radius: 10px;
  }

  .ledafay-lightbox__caption {
    margin-bottom: 3.5rem;
  }

  .ledafay-newsletter form.validate {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: none;
  }

  .ledafay-newsletter input.email,
  input.email {
    width: 100%;
    flex: none;
    min-height: 48px;
  }

  .ledafay-card,
  .ledafay-listing .course,
  .courses .course {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    gap: 1rem;
    padding: 1rem;
    max-width: 100%;
  }

  .ledafay-card__media,
  .ledafay-card__content,
  .courses .course .details {
    max-width: 100%;
  }

  .ledafay-card__media img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .ledafay-card__cta,
  .courses .course .btn-primary,
  .ledafay-content-band__body .btn-primary,
  .ledafay-page-shell .btn-primary {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 48px;
    align-items: center;
  }

  .ledafay-content-band,
  .ledafay-content-band--left,
  .ledafay-content-band--right {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "text";
    padding: 1rem;
    gap: 1rem;
  }

  .ledafay-content-band__media img {
    aspect-ratio: auto;
    object-fit: contain;
    height: auto;
  }

  .ledafay-content-band--story,
  .ledafay-content-band--story.ledafay-content-band--right,
  .ledafay-about-story,
  .ledafay-about-story.ledafay-content-band--right,
  body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial),
  body.page-slug-about .ledafay-content-band--right:not(.ledafay-content-band--testimonial),
  body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial),
  body.ledafay-about .ledafay-content-band--right:not(.ledafay-content-band--testimonial),
  #about-full .ledafay-content-band:not(.ledafay-content-band--testimonial),
  #about-full .ledafay-content-band--right:not(.ledafay-content-band--testimonial) {
    flex-direction: column !important;
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "text";
    padding: 0 !important;
  }

  body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media,
  body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media,
  #about-full .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media,
  .ledafay-content-band--story .ledafay-content-band__media,
  .ledafay-about-story .ledafay-content-band__media,
  body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text,
  body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text,
  #about-full .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text,
  .ledafay-content-band--story .ledafay-content-band__text,
  .ledafay-about-story .ledafay-content-band__text {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ledafay-content-band--story .ledafay-content-band__media img,
  .ledafay-about-story .ledafay-content-band__media img,
  body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media img,
  body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media img,
  #about-full .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__media img {
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  .ledafay-content-band--story .ledafay-content-band__text,
  .ledafay-about-story .ledafay-content-band__text,
  body.page-slug-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text,
  body.ledafay-about .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text,
  #about-full .ledafay-content-band:not(.ledafay-content-band--testimonial) .ledafay-content-band__text {
    padding: 1.5rem;
  }

  #about-full > .container > .section-heading {
    margin-top: 3.75rem;
  }

  .ledafay-about-story-flow,
  .ledafay-about-story-flow.wp-block-group {
    max-width: none;
    text-align: left;
    padding: 1.25rem;
  }

  .ledafay-about-bio,
  .ledafay-about-bio--right,
  .ledafay-about-bio--left {
    float: none;
    display: block;
    width: min(100%, 22rem);
    max-width: 100%;
    margin: 0 auto 1.25rem;
  }

  .ledafay-about-bio--left img {
    height: auto;
    width: 100%;
  }

  .ledafay-about-credentials,
  .ledafay-about-credentials.wp-block-group,
  .ledafay-about-credentials.is-layout-flow,
  .ledafay-about-credentials.is-layout-flex,
  .ledafay-about-testimonials {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .ledafay-about-credential:first-child,
  .ledafay-about-credential:nth-child(2),
  .ledafay-about-credential:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
  }

  .ledafay-content-band--testimonial,
  .ledafay-page-shell .ledafay-content-band--testimonial:nth-of-type(even),
  .wp-block-ledafayyoga-page-shell .ledafay-content-band--testimonial:nth-of-type(even) {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    grid-template-areas: "media text";
    padding: 1.2rem;
    gap: 1rem;
  }

  .ledafay-content-band--testimonial .ledafay-content-band__media img {
    width: 4.75rem;
    height: 4.75rem;
    aspect-ratio: 1;
  }

  .ledafay-split,
  .two-column-container {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .two-column-container-column {
    flex-basis: 100%;
  }

  /* Nested split cards inside content bands — drop double chrome on phones. */
  .ledafay-content-band__body .two-column-container,
  .ledafay-page-shell .ledafay-content-band__body .two-column-container {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    gap: 1rem;
  }

  .ledafay-card__body h6 {
    color: var(--ledafay-brand-dark) !important;
  }

  .ledafay-page-shell .container,
  .ledafay-listing .container,
  .courses .container,
  #about-full > .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .masonry-container {
    column-count: 2;
  }

  /* One pillar per row — same compact constant height, copy sized to fit. */
  .why-practice-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .why-practice-card-inner {
    height: 13.5rem;
    min-height: 13.5rem;
  }

  .why-practice-card-face {
    padding: 1.15rem 1.2rem;
  }

  .why-practice-card h3 {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  .why-practice-card p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .why-practice-card:hover:not(.is-flipped) .why-practice-card-front {
    transform: none;
  }

  .ledafay-content-band__body,
  .ledafay-page-shell,
  .ledafay-card__content,
  .ledafay-listing .course .details {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  form.validate {
    flex-direction: column;
  }

  .certificate {
    width: 28px;
  }

  footer,
  .footer-container {
    margin-top: 0;
    padding: 2rem 1rem;
  }

  .footer-container .row > [class*="col-"] {
    margin-bottom: 1.1rem;
  }

  .footer-container .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  footer span.copyright {
    line-height: 1.4;
  }
}

/* Narrow phones */
@media (max-width: 420px) {
  .ledafay-icon-trio__media {
    width: 4.25rem;
    flex-basis: 4.25rem;
  }

  section h2.ledafay-icon-trio__label,
  .ledafay-icon-trio__label {
    font-size: 1.25rem;
  }

  .ledafay-home-teaser--introduction .ledafay-home-teaser__frame {
    max-width: 220px;
  }

  .masonry-container {
    column-count: 1;
  }

  .why-practice-card h3 {
    font-size: 1.2rem;
  }

  ul.social-buttons li a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
  }
}

/* Short landscape phones — keep hero usable. */
@media (max-height: 480px) and (max-width: 900px) {
  header.ledafay-home-hero,
  .wp-block-ledafayyoga-home-hero,
  header:has(.intro-text) {
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding: 4rem 1rem 4.5rem;
  }

  .logo-cover {
    max-width: min(180px, 42vw);
  }

  .ledafay-home-hero .ledafay-scroll-cue,
  .wp-block-ledafayyoga-home-hero .ledafay-scroll-cue,
  header:has(.intro-text) .ledafay-scroll-cue {
    width: 42px;
    height: 42px;
  }
}
