/* ============================================================================
   JOISPA — 2026 Design System
   Loads last; restyles the existing Bootstrap markup site-wide.
   Colourful mesh backgrounds · fluid type · full responsive · dark mode ready
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand — vibrant wellness palette */
  --violet-50:  #f5f3ff;
  --violet-100: #ede9fe;
  --violet-300: #c4b5fd;
  --violet-500: #7c3aed;
  --violet-600: #6d28d9;
  --violet-700: #5b21b6;

  --coral:  #ff7a45;
  --coral-d:#ea580c;
  --amber:  #fbbf24;
  --teal:   #06b6d4;
  --teal-d: #0891b2;
  --pink:   #ec4899;
  --lime:   #84cc16;
  --rose:   #f43f5e;

  /* Surfaces */
  --bg:        #fbfaff;
  --bg-alt:    #f4f1fd;
  --surface:   #ffffff;
  --surface-2: #faf8ff;
  --border:    #e9e3f8;

  /* Text */
  --ink:      #1a1333;
  --ink-soft: #4b4266;
  --ink-mute: #6f6790;
  --on-brand: #ffffff;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #ff7a45 100%);
  --grad-cool:   linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);
  --grad-warm:   linear-gradient(135deg, #fbbf24 0%, #ff7a45 55%, #ec4899 100%);
  --grad-soft:   linear-gradient(135deg, #f5f3ff 0%, #fff1eb 50%, #ecfeff 100%);

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(26,19,51,.06), 0 1px 3px rgba(26,19,51,.05);
  --sh-md: 0 4px 12px rgba(93,45,180,.08), 0 2px 4px rgba(26,19,51,.04);
  --sh-lg: 0 12px 32px rgba(93,45,180,.13), 0 4px 8px rgba(26,19,51,.05);
  --sh-xl: 0 24px 60px rgba(93,45,180,.18);
  --sh-brand: 0 8px 24px rgba(124,58,237,.32);

  /* Shape & motion */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .28s;

  /* Layout */
  --header-h: 76px;
  --maxw: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #100b1f;
    --bg-alt:    #171029;
    --surface:   #1b1430;
    --surface-2: #221a3b;
    --border:    #2f2551;
    --ink:       #f3f0ff;
    --ink-soft:  #c8c0e4;
    --ink-mute:  #9b92bd;
    --grad-soft: linear-gradient(135deg, #1b1430 0%, #241a3d 50%, #12232c 100%);
    --sh-md: 0 4px 12px rgba(0,0,0,.4);
    --sh-lg: 0 12px 32px rgba(0,0,0,.5);
    --sh-xl: 0 24px 60px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg:#100b1f; --bg-alt:#171029; --surface:#1b1430; --surface-2:#221a3b;
  --border:#2f2551; --ink:#f3f0ff; --ink-soft:#c8c0e4; --ink-mute:#9b92bd;
  --grad-soft: linear-gradient(135deg,#1b1430 0%,#241a3d 50%,#12232c 100%);
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(15px, .35vw + 14.2px, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Colourful ambient mesh — the "colourful background", kept subtle enough to read over */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 12% 8%,  rgba(124,58,237,.20), transparent 70%),
    radial-gradient(34% 30% at 88% 14%, rgba(6,182,212,.18),  transparent 70%),
    radial-gradient(40% 34% at 78% 82%, rgba(236,72,153,.16), transparent 70%),
    radial-gradient(36% 30% at 18% 90%, rgba(255,122,69,.15), transparent 70%);
  filter: blur(20px);
  animation: meshDrift 26s var(--ease) infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0)        scale(1); }
  50%  { transform: translate3d(2%,-1.5%,0)   scale(1.06); }
  100% { transform: translate3d(-2%,2%,0)     scale(1.03); }
}

img, video, svg { max-width: 100%; height: auto; }
img { border-radius: var(--r-sm); }

a { color: var(--violet-600); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--pink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--violet-500); color: #fff; }

/* ---------- 3. Typography ------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", "Poppins", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 3.6vw + .6rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.2vw + .55rem, 2.4rem); font-weight: 750; }
h3 { font-size: clamp(1.2rem, 1.1vw + .7rem, 1.55rem); font-weight: 700; }
h4 { font-size: clamp(1.05rem,.6vw + .8rem, 1.25rem); font-weight: 650; }

p  { color: var(--ink-soft); margin: 0 0 1.1em; text-wrap: pretty; }

/* Headline accent — every H2 gets a coloured underline */
h2::after {
  content: "";
  display: block;
  width: 62px; height: 4px;
  margin-top: .5rem;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
}
.section-title h2::after,
h2.text-center::after, .text-center h2::after { margin-inline: auto; }

/* ---------- 4. Layout --------------------------------------------------- */
.container, .container-fluid {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

section {
  padding-block: clamp(48px, 6vw, 96px);
  position: relative;
}

.section-bg { background: var(--bg-alt); border-radius: var(--r-xl); }

/* The h2 underline above is centred for every .section-title, so the block
   itself has to be centred too - otherwise the rule floats in the middle
   under left-aligned text and the intro paragraph hugs the left edge. */
.section-title { margin-bottom: clamp(28px, 4vw, 48px); text-align: center; }
.section-title h2 { margin-bottom: .35em; }
.section-title h3 { margin-bottom: .3em; }
.section-title p {
  max-width: 62ch;
  margin-inline: auto;
  color: var(--ink-mute);
  text-wrap: pretty;
}

/* ---------- 5. Header / navigation -------------------------------------- */
#header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  height: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.72) !important;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  padding-block: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #header { background: rgba(16,11,31,.78) !important; }
}
#header.header-scrolled { box-shadow: var(--sh-md); }

#header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#header img { height: clamp(38px, 4.4vw, 54px); width: auto; border-radius: 0; }

#navbar ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#navbar li { position: relative; }

#navbar a, #navbar a:focus {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft) !important;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
#navbar a:hover, #navbar li:hover > a, #navbar .active {
  color: var(--violet-600) !important;
  background: var(--violet-100);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #navbar a:hover,
  :root:not([data-theme="light"]) #navbar .active { background: rgba(124,58,237,.22); color: var(--violet-300) !important; }
}

/* Dropdowns */
#navbar .dropdown > ul {
  display: block;
  position: absolute;
  left: 0; top: calc(100% + 10px);
  min-width: 240px;
  padding: 8px;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--dur) var(--ease);
  z-index: 99;
}
#navbar .dropdown:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
#navbar .dropdown > ul a { font-size: .87rem; padding: 9px 12px; white-space: normal; border-radius: var(--r-sm); }
#navbar .dropdown .dropdown > ul { left: calc(100% - 6px); top: 0; }
@media (max-width: 1300px) {
  #navbar .dropdown .dropdown > ul { left: auto; right: calc(100% - 6px); }
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.7rem;
  color: var(--violet-600);
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mobile-nav-toggle:hover { background: var(--violet-100); }
/* The legacy markup ships the toggle as an <img>; keep it tappable (44px target) */
img.mobile-nav-toggle { width: 28px; height: 28px; padding: 8px; box-sizing: content-box; border-radius: var(--r-sm); }
#navbar.navbar-mobile ~ .mobile-nav-toggle,
.mobile-nav-toggle[aria-expanded="true"] { transform: rotate(90deg); background: var(--violet-100); }

@media (max-width: 1199px) {
  .mobile-nav-toggle { display: block; }

  #navbar ul {
    display: none;
    position: absolute;
    inset: calc(100% + 8px) 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: min(74vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
  }
  #navbar.navbar-mobile > ul { display: flex; }
  #navbar.navbar-mobile a { padding: 12px 14px; font-size: .95rem; }

  #navbar.navbar-mobile .dropdown > ul {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--violet-300);
    border-radius: 0;
    margin: 2px 0 6px 14px;
    padding: 2px 0 2px 8px;
    min-width: 0;
  }
  #navbar.navbar-mobile .dropdown > ul.dropdown-active { display: block; }
}

/* ---------- 6. Hero ------------------------------------------------------ */
#hero {
  position: relative;
  isolation: isolate;
  display: block !important;   /* legacy .d-flex left a tall empty band */
  padding-block: clamp(40px, 5vw, 72px);
  background: var(--grad-soft);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 60% at 78% 26%, rgba(236,72,153,.30), transparent 68%),
    radial-gradient(48% 56% at 14% 76%, rgba(6,182,212,.28),  transparent 68%),
    radial-gradient(40% 48% at 52% 4%,  rgba(251,191,36,.24), transparent 70%);
  animation: meshDrift 22s var(--ease) infinite alternate-reverse;
}
#hero h1 {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .4em;
}
@supports not (background-clip: text) { #hero h1 { color: var(--violet-700); } }
#hero h1[style] { margin-top: 0 !important; font-family: "Raleway", sans-serif !important; }
#hero p { color: var(--ink-soft); font-size: clamp(1rem, .5vw + .9rem, 1.12rem); font-weight: 500; }
#hero .text-center p { margin-inline: auto; max-width: 62ch; }
#hero strong[style] { color: var(--ink-soft) !important; font-weight: 500; }
#hero img { box-shadow: var(--sh-md); }
/* Hero is above the fold — never defer its imagery */
#hero img { content-visibility: visible; }

/* Bordered callout blocks left over from the old inline styles */
[style*="border: 1px solid"], [style*="border:1px solid"] {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  text-align: left;
}
[style*="border: 1px solid"] h2, [style*="border:1px solid"] h2 { text-align: left; }
[style*="border: 1px solid"] h2::after, [style*="border:1px solid"] h2::after { margin-inline: 0; }

/* ---------- 7. Buttons -------------------------------------------------- */
/* The legacy sheet styles these with higher-specificity #hero / #main rules,
   so match that specificity here rather than reaching for !important. */
#hero .btn-get-started, #hero .cta-btn, #main .cta-btn, #main .btn-get-started,
body .cta-btn, body .btn-primary, body .btn-get-started, body .get-started-btn,
.cta-btn, .btn-primary, .php-email-form button[type="submit"], .get-started-btn, .btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  min-height: 46px;
  font-family: "Raleway", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--on-brand) !important;
  background: var(--grad-brand);
  background-size: 200% 200%;
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-brand);
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-position .5s var(--ease);
}
body .cta-btn:hover, body .btn-primary:hover, body .btn-get-started:hover,
.php-email-form button[type="submit"]:hover, .get-started-btn:hover {
  color: #fff !important;
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124,58,237,.4);
}
.cta-btn:active, .btn-get-started:active { transform: translateY(0); }

/* A bare <a> wrapping a button span shouldn't add its own underline/colour */
a:has(> .btn-get-started), a:has(> .cta-btn) { display: inline-block; }

/* Buttons sit inline-flex, so a long run of them (the CTA band carries ~36)
   wraps into rows that would otherwise touch, and a wide label could push a
   pill past its container. Give every run real spacing and a hard ceiling. */
.cta-btn, .btn-primary, .btn-get-started, .get-started-btn {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cta .cta-btn,
#main .cta-btn,
.cta-btn + .cta-btn { margin: 6px 5px; }

/* Keep the floating call bar clear of the last row of buttons */
.cta .container > .text-center { padding-bottom: 8px; }
@media (max-width: 575px) {
  .cta-btn, .btn-get-started, .btn-primary, .get-started-btn {
    padding: 12px 20px;
    font-size: .88rem;
  }
  /* the fixed action bar overlaps the bottom-right corner on small screens */
  #footer { padding-bottom: 84px; }
}

/* ---------- 8. Cards: team / members / icon boxes ----------------------- */
.member {
  position: relative;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.member:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--violet-300); }

.member-img { position: relative; overflow: hidden; border-radius: 0; }
.member-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
  transition: transform .6s var(--ease);
}
.member:hover .member-img img { transform: scale(1.06); }

.member-info { padding: 16px 18px 20px; }
.member-info h4 { margin: 0 0 4px; font-size: 1.08rem; color: var(--ink); }
.member-info span { display: block; font-size: .85rem; color: var(--ink-mute); }

.social {
  position: absolute;
  inset: auto 0 12px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
}
.member:hover .social { opacity: 1; transform: translateY(0); }
.social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  color: #fff;
  background: rgba(26,19,51,.55);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease);
}
.social a:hover { background: var(--violet-500); color: #fff; }

.icon-box {
  height: 100%;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.icon-box:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.icon-box i, .icon-box .bx, .icon-box .bi {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 14px;
  font-size: 1.5rem;
  color: #fff;
  background: var(--grad-cool);
  border-radius: var(--r-md);
}

/* ---------- 9. Content blocks ------------------------------------------- */
.about, .about-video { position: relative; }
.about img, .about-video img { border-radius: var(--r-lg); box-shadow: var(--sh-md); }

.about ul, .about-video ul, .content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 10px;
}
.about ul li, .about-video ul li, .content ul li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}
.about ul li::before, .about-video ul li::before, .content ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 18px; height: 18px;
  border-radius: var(--r-pill);
  background: var(--grad-cool);
  box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1px var(--teal);
}
.about ul li i, .content ul li i { display: none; }

/* Counters */
.counts .count-box {
  padding: 26px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.counts span, .purecounter {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.8rem, 2.4vw + .8rem, 2.8rem);
  font-weight: 800;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* CTA band */
.cta {
  background: var(--grad-brand) !important;
  border-radius: var(--r-xl);
  color: #fff;
  box-shadow: var(--sh-lg);
}
.cta h2, .cta h3, .cta p, .cta a:not(.cta-btn) { color: #fff !important; }
.cta h2::after { background: rgba(255,255,255,.75); }
.cta .cta-btn {
  background: #fff;
  color: var(--violet-700) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.cta .cta-btn:hover { background: var(--ink); color: #fff !important; }

/* Pricing */
.pricing .box {
  height: 100%;
  padding: 30px 26px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pricing .box:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.pricing .box.featured { border: 2px solid transparent; background: linear-gradient(var(--surface),var(--surface)) padding-box, var(--grad-brand) border-box; }
.pricing h4, .pricing .price {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pricing table { width: 100%; border-collapse: collapse; }
.pricing td, .pricing th { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }

/* Tables anywhere — never break the layout on mobile */
table { width: 100%; border-collapse: collapse; }
.table-wrap, .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* FAQ */
.faq .faq-list { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq .faq-list li {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.faq .faq-list a { display: block; font-weight: 650; color: var(--ink); }
.faq .faq-list a:hover { color: var(--violet-600); }

/* Forms */
.php-email-form input, .php-email-form textarea, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(124,58,237,.15);
}

/* Video / iframe embeds stay responsive */
iframe, .video-box, .about-video iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--r-lg);
}

/* ---------- 10. Footer -------------------------------------------------- */
#footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  color: var(--ink-soft);
}
#footer h3, #footer h4 { color: var(--ink); font-size: 1.05rem; }
#footer h3::after, #footer h4::after { display: none; }
#footer .footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
#footer .footer-links a { color: var(--ink-soft); font-size: .92rem; }
#footer .footer-links a:hover { color: var(--violet-600); }
#footer .footer-links i, #footer .footer-links .bx { color: var(--teal); }
#footer .social-links { display: flex; gap: 10px; flex-wrap: wrap; }
#footer .social-links a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: #fff;
  background: var(--grad-cool);
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease);
}
#footer .social-links a:hover { transform: translateY(-3px) scale(1.05); color:#fff; }
#footer .copyright, #footer .credits {
  padding-block: 18px;
  font-size: .85rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

/* ---------- 11. Floating contact bar (conversion) ----------------------- */
.joispa-actions {
  position: fixed;
  right: clamp(12px, 2vw, 22px);
  bottom: clamp(12px, 2vw, 22px);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.joispa-actions a {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  font-size: 1.4rem;
  color: #fff !important;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  transition: transform var(--dur) var(--ease);
}
.joispa-actions a:hover { transform: scale(1.08); }
.joispa-actions .ja-wa   { background: #25d366; }
.joispa-actions .ja-call { background: var(--grad-brand); }
.joispa-actions .ja-top  { background: var(--surface); color: var(--violet-600) !important; border: 1px solid var(--border); font-size: 1.2rem; }

@media (max-width: 575px) {
  .joispa-actions {
    inset: auto 0 0 0;
    flex-direction: row;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(26,19,51,.12);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .joispa-actions a {
    flex: 1;
    width: auto; height: 46px;
    font-size: .95rem;
    font-weight: 700;
    gap: 8px;
    grid-auto-flow: column;
    box-shadow: none;
    margin-inline: 4px;
  }
  .joispa-actions .ja-top { display: none; }
  body { padding-bottom: 72px; }
}
.joispa-actions .ja-label { font-size: .9rem; }
@media (min-width: 576px) { .joispa-actions .ja-label { display: none; } }

/* ---------- 12. Utility / legacy cleanup -------------------------------- */
/* Kill inline colour overrides left in the old markup */
#navbar a[style], #footer a[style] { color: inherit !important; }
[style*="color:gold"], [style*="color: gold"] { color: var(--coral-d) !important; }

.back-to-top { display: none !important; } /* replaced by .joispa-actions */

/* Skip link for keyboard/screen-reader users */
/* Off-screen without widening the page (no left:-9999px). */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 1100;
  width: 1px; height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--violet-600);
  color: #fff !important;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 700;
}
.skip-link:focus {
  width: auto; height: auto;
  padding: 12px 20px;
  overflow: visible;
  clip-path: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive media grid fallback for old float/col markup */
@media (max-width: 767px) {
  [class*="col-"] { width: 100%; }
  .d-flex { flex-wrap: wrap; }
}

/* ---------- 13. Motion & print ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  body::before, .joispa-actions, #navbar, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ============================================================================
   PART 2 — Spa motion & colour system (2026)
   Photography: Unsplash License (free for commercial use).
   Everything below is decorative and additive: no rule here hides content
   unless the browser natively drives the animation itself.
   ========================================================================== */

/* ---------- 14. Extended tokens: colour, scale, rhythm ------------------ */
:root {
  /* Per-section accent pair — rotated below so each band reads differently */
  --sec-a: var(--violet-600);
  --sec-b: var(--pink);

  /* A fuller type scale (larger, with more steps than Part 1) */
  --fs-display: clamp(2.4rem, 5.2vw + .7rem, 4.6rem);
  --fs-h1:      clamp(2.1rem, 3.9vw + .7rem, 3.7rem);
  --fs-h2:      clamp(1.65rem, 2.5vw + .6rem, 2.7rem);
  --fs-h3:      clamp(1.28rem, 1.2vw + .75rem, 1.75rem);
  --fs-lead:    clamp(1.04rem, .6vw + .92rem, 1.28rem);

  /* Spacing rhythm */
  --sp-2:  8px;
  --sp-3:  14px;
  --sp-4:  22px;
  --sp-5:  34px;
  --sp-6:  clamp(40px, 5vw, 72px);
  --sp-7:  clamp(56px, 7vw, 112px);

  /* Spa photography */
  --img-hero:    url("../img/spa/spa-massage-hero.jpg");
  --img-oil:     url("../img/spa/spa-oil-massage.jpg");
  --img-stone:   url("../img/spa/spa-hot-stone.jpg");
  --img-aroma:   url("../img/spa/spa-aroma-oils.jpg");
  --img-candle:  url("../img/spa/spa-candles-towels.jpg");
  --img-towel:   url("../img/spa/spa-towel-lotus.jpg");
  --img-drop:    url("../img/spa/spa-oil-drop.jpg");
  --img-sauna:   url("../img/spa/spa-sauna.jpg");
  --img-resort:  url("../img/spa/spa-resort.jpg");

  /* Readability veils over photography */
  --veil-strong: linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(255,247,252,.88) 55%, rgba(240,251,255,.93) 100%);
  --veil-soft:   linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.84));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --veil-strong: linear-gradient(180deg, rgba(16,11,31,.93), rgba(23,16,41,.90) 55%, rgba(12,26,33,.93));
    --veil-soft:   linear-gradient(180deg, rgba(16,11,31,.90), rgba(23,16,41,.88));
  }
}

/* Rotate the accent pair section by section — this is the "all colours" pass.
   Every pair stays dark enough to keep text legible on light and dark. */
section:nth-of-type(6n+1) { --sec-a: #6d28d9; --sec-b: #ec4899; }
section:nth-of-type(6n+2) { --sec-a: #0891b2; --sec-b: #6d28d9; }
section:nth-of-type(6n+3) { --sec-a: #ea580c; --sec-b: #db2777; }
section:nth-of-type(6n+4) { --sec-a: #db2777; --sec-b: #7c3aed; }
section:nth-of-type(6n+5) { --sec-a: #0d9488; --sec-b: #0891b2; }
section:nth-of-type(6n+6) { --sec-a: #7c3aed; --sec-b: #ea580c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) section:nth-of-type(6n+1) { --sec-a: #c4b5fd; --sec-b: #f9a8d4; }
  :root:not([data-theme="light"]) section:nth-of-type(6n+2) { --sec-a: #67e8f9; --sec-b: #c4b5fd; }
  :root:not([data-theme="light"]) section:nth-of-type(6n+3) { --sec-a: #fdba74; --sec-b: #f9a8d4; }
  :root:not([data-theme="light"]) section:nth-of-type(6n+4) { --sec-a: #f9a8d4; --sec-b: #c4b5fd; }
  :root:not([data-theme="light"]) section:nth-of-type(6n+5) { --sec-a: #5eead4; --sec-b: #67e8f9; }
  :root:not([data-theme="light"]) section:nth-of-type(6n+6) { --sec-a: #c4b5fd; --sec-b: #fdba74; }
}

/* ---------- 15. Ambient spa background ---------------------------------- */
/* Layer 1: slow aurora wash (replaces the Part 1 mesh with a richer one) */
body::before {
  background:
    radial-gradient(34% 30% at 10% 6%,  rgba(124,58,237,.24), transparent 70%),
    radial-gradient(30% 28% at 90% 12%, rgba(6,182,212,.22),  transparent 70%),
    radial-gradient(36% 32% at 80% 78%, rgba(236,72,153,.20), transparent 70%),
    radial-gradient(32% 28% at 16% 88%, rgba(255,122,69,.18), transparent 70%),
    radial-gradient(26% 24% at 50% 48%, rgba(13,148,136,.14), transparent 72%);
  filter: blur(26px);
  animation: auroraDrift 34s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1)    rotate(0deg); }
  33%  { transform: translate3d(2.5%,-2%,0) scale(1.08) rotate(1.5deg); }
  66%  { transform: translate3d(-2%,1.5%,0) scale(1.04) rotate(-1deg); }
  100% { transform: translate3d(1%,2.5%,0) scale(1.09) rotate(.5deg); }
}

/* Layer 2: injected decorative elements (petals, steam, ripples) */
.joispa-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

/* Aroma steam — soft vertical wisps rising and fading */
.ja-steam {
  position: absolute;
  bottom: -18vh;
  width: clamp(120px, 16vw, 260px);
  aspect-ratio: 1 / 2.4;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, rgba(255,255,255,.5), transparent 68%);
  filter: blur(30px);
  opacity: 0;
  animation: steamRise var(--dur-s, 26s) linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes steamRise {
  0%   { transform: translate3d(0, 0, 0) scale(.7);        opacity: 0; }
  18%  {                                                    opacity: .5; }
  60%  { transform: translate3d(24px, -62vh, 0) scale(1.2); opacity: .34; }
  100% { transform: translate3d(-16px, -125vh, 0) scale(1.7); opacity: 0; }
}

/* Petals — small tinted shapes drifting diagonally, gently tumbling */
.ja-petal {
  position: absolute;
  top: -8vh;
  width: var(--sz, 16px);
  height: calc(var(--sz, 16px) * .68);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  background: linear-gradient(135deg, var(--pc1, #f9a8d4), var(--pc2, #c4b5fd));
  opacity: .5;
  filter: blur(.4px);
  animation: petalFall var(--dur-p, 30s) linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes petalFall {
  0%   { transform: translate3d(0,0,0) rotate(0deg);            opacity: 0; }
  10%  {                                                         opacity: .55; }
  50%  { transform: translate3d(9vw, 52vh, 0) rotate(220deg);   opacity: .45; }
  90%  {                                                         opacity: .25; }
  100% { transform: translate3d(-4vw, 112vh, 0) rotate(460deg); opacity: 0; }
}

/* Water rings — slow concentric ripples, like oil dropped in water */
.ja-ripple {
  position: absolute;
  width: clamp(220px, 26vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(124,58,237,.16);
  opacity: 0;
  animation: rippleOut var(--dur-r, 14s) ease-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes rippleOut {
  0%   { transform: scale(.28); opacity: 0; }
  14%  {                         opacity: .5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Mobile and low-power: keep the wash, drop the per-element motion */
@media (max-width: 767px), (prefers-reduced-motion: reduce), (update: slow) {
  .ja-petal, .ja-steam, .ja-ripple { display: none; }
}

/* ---------- 16. Titles: animated colour ---------------------------------- */
h1, h2, .section-title h2 {
  font-size: var(--fs-h2);
  background: linear-gradient(100deg, var(--sec-a) 0%, var(--sec-b) 48%, var(--sec-a) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueSlide 9s ease-in-out infinite alternate;
}
h1 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h3); color: var(--ink); }

@keyframes hueSlide {
  0%   { background-position:   0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Never let gradient text fall back to invisible */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  h1, h2, .section-title h2 { color: var(--sec-a); background: none; }
}

/* The underline accent grows in and picks up the section colours */
h2::after {
  height: 5px;
  width: 78px;
  background: linear-gradient(90deg, var(--sec-a), var(--sec-b));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--sec-a) 45%, transparent);
  transform-origin: left center;
}
.text-center h2::after, .section-title h2::after { transform-origin: center; }

/* A soft coloured glow behind each section heading block */
.section-title { position: relative; }
.section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: min(440px, 70vw);
  height: 150px;
  transform: translateX(-50%);
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sec-a) 22%, transparent), transparent);
  filter: blur(26px);
  animation: pulseGlow 7s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  0%   { opacity: .55; transform: translateX(-50%) scale(.9); }
  100% { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

p.fst-italic, .section-title p { font-size: var(--fs-lead); }

/* ---------- 17. Hero: spa photography + slow Ken Burns ------------------ */
#hero {
  isolation: isolate;
  padding-block: clamp(52px, 6.5vw, 104px);
}
#hero::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -2;
  background: var(--img-hero) center / cover no-repeat;
  animation: kenBurns 32s ease-in-out infinite alternate;
}
/* The veil is what keeps the headline readable over the photograph */
#hero::after {
  background:
    var(--veil-strong),
    radial-gradient(44% 56% at 80% 24%, rgba(236,72,153,.26), transparent 68%),
    radial-gradient(46% 54% at 14% 78%, rgba(6,182,212,.24),  transparent 68%);
  animation: auroraDrift 26s ease-in-out infinite alternate-reverse;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translate3d(0,0,0); }
  100% { transform: scale(1.14) translate3d(-1.5%,-1.5%,0); }
}
#hero h1 { font-size: var(--fs-display); letter-spacing: -.03em; }

/* ---------- 18. Section photography bands ------------------------------- */
/* Applied by background so no page markup has to change. */
.section-bg { position: relative; isolation: isolate; overflow: hidden; }
.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: .16;
  transform: scale(1.06);
  animation: kenBurns 40s ease-in-out infinite alternate;
}
.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--veil-soft);
}
.section-bg:nth-of-type(4n+1)::before { background-image: var(--img-aroma); }
.section-bg:nth-of-type(4n+2)::before { background-image: var(--img-stone); }
.section-bg:nth-of-type(4n+3)::before { background-image: var(--img-candle); }
.section-bg:nth-of-type(4n+4)::before { background-image: var(--img-towel); }

/* ---------- 19. Cards, images, counters --------------------------------- */
.member, .icon-box, .pricing .box, .count-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}
/* Coloured top edge that widens on hover */
.member::before, .icon-box::before, .pricing .box::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--sec-a), var(--sec-b));
  transition: width .45s var(--ease);
}
.member:hover::before, .icon-box:hover::before, .pricing .box:hover::before { width: 100%; }

/* Light sweep across a card on hover */
.member::after, .pricing .box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.member:hover::after, .pricing .box:hover::after { transform: translateX(120%); }

.member:hover, .icon-box:hover, .pricing .box:hover {
  box-shadow: 0 18px 44px color-mix(in srgb, var(--sec-a) 22%, rgba(26,19,51,.14));
}

/* Content imagery: coloured frame + gentle zoom */
.about img, .about-video img {
  transition: transform .6s var(--ease), box-shadow .4s var(--ease);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--sec-a) 18%, transparent);
}
.about img:hover, .about-video img:hover {
  transform: scale(1.02) rotate(-.35deg);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--sec-a) 30%, transparent);
}

.icon-box i, .icon-box .bx, .icon-box .bi {
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--sec-a) 34%, transparent);
  transition: transform .4s var(--ease);
}
.icon-box:hover i { transform: rotate(-8deg) scale(1.08); }

.counts span, .purecounter {
  background: linear-gradient(100deg, var(--sec-a), var(--sec-b));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hueSlide 8s ease-in-out infinite alternate;
}

/* Bullet markers pick up the section colour */
.about ul li::before, .about-video ul li::before, .content ul li::before {
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1px color-mix(in srgb, var(--sec-a) 60%, transparent);
}

/* ---------- 20. CTA band ------------------------------------------------ */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(120deg, var(--sec-a), var(--sec-b), var(--sec-a)) !important;
  background-size: 220% 220% !important;
  animation: hueSlide 12s ease-in-out infinite alternate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--img-oil) center / cover no-repeat;
  opacity: .22;
  mix-blend-mode: overlay;
  animation: kenBurns 36s ease-in-out infinite alternate;
}

/* ---------- 21. Contact ------------------------------------------------- */
#contact { position: relative; isolation: isolate; }
#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--img-drop) center / cover no-repeat;
  opacity: .14;
  animation: kenBurns 44s ease-in-out infinite alternate;
}
#contact::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--veil-soft);
}

#contact .info { display: grid; gap: var(--sp-3); }
#contact .info > div {
  position: relative;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 76px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
#contact .info > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--sec-a) 20%, rgba(26,19,51,.12));
}
#contact .info i {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-size: 1.25rem;
  color: #fff;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--sec-a) 38%, transparent);
}
#contact .info h4 { margin: 0 0 2px; font-size: .95rem; color: var(--ink-mute); font-weight: 600; }
#contact .info p  { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--ink); }

#contact .php-email-form {
  padding: clamp(20px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
#contact input:focus, #contact textarea:focus {
  border-color: var(--sec-a);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sec-a) 18%, transparent);
}
#contact button[type="submit"] { width: auto; min-width: 190px; }

/* ---------- 22. Footer -------------------------------------------------- */
#footer { position: relative; isolation: isolate; overflow: hidden; }
#footer::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: var(--img-resort) center / cover no-repeat;
  opacity: .12;
}
#footer::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--veil-soft);
}
#footer .social-links a { background: linear-gradient(135deg, var(--violet-500), var(--pink)); }

/* ---------- 23. Buttons: animated sheen --------------------------------- */
body .cta-btn, body .btn-get-started, body .btn-primary, .get-started-btn {
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  padding: 15px 34px;
}
body .cta-btn::after, body .btn-get-started::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
body .cta-btn:hover::after, body .btn-get-started:hover::after { transform: translateX(130%); }

/* The sheen rule above re-states padding/font-size with `body .` specificity,
   so it beat the earlier small-screen override and buttons stayed at desktop
   size on phones - the CTA band's long run of pills then ran off the edge.
   Restate the responsive sizes here, at the same specificity and later. */
@media (max-width: 767px) {
  body .cta-btn, body .btn-get-started, body .btn-primary, .get-started-btn {
    padding: 12px 22px;
    font-size: .9rem;
  }
}
@media (max-width: 480px) {
  body .cta-btn, body .btn-get-started, body .btn-primary, .get-started-btn {
    padding: 11px 18px;
    font-size: .85rem;
    min-height: 44px;          /* keep a comfortable tap target */
  }
  /* a lone hero / section CTA reads better full width than half-orphaned */
  #hero > .container > .text-center > .btn-get-started,
  #hero > .container > .text-center > a > .btn-get-started {
    display: flex;
    width: 100%;
  }
}
/* No sheen on touch devices: it can only ever fire on :hover, and on a
   narrow pill the overlay clips oddly mid-tap. */
@media (hover: none) {
  body .cta-btn::after, body .btn-get-started::after { content: none; }
}

/* Gentle breathing pulse on the primary call-to-action */
.joispa-actions .ja-wa { animation: softPulse 3.4s ease-in-out infinite; }
@keyframes softPulse {
  0%, 100% { box-shadow: var(--sh-lg), 0 0 0 0    rgba(37,211,102,.5); }
  55%      { box-shadow: var(--sh-lg), 0 0 0 14px rgba(37,211,102,0); }
}

/* ---------- 24. Scroll-driven reveal (browser-native only) -------------- */
/* Guarded by @supports: where the browser cannot drive this itself, nothing
   is ever hidden. No JavaScript is involved, so content cannot get stuck. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 992px) {
    /* Small cards only. The .about/.about-video rows were in this list and
       they hold very long prose - taller than the viewport on most screens.
       An element taller than the scrollport can never finish its entry
       range, so `both` fill left those sections parked at partial opacity
       and they read as blank space that never appears. Never animate
       opacity on a block that can outgrow the viewport. */
    .member, .icon-box, .count-box, .pricing .box,
    #contact .info > div {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
    @keyframes riseIn {
      from { opacity: 0; transform: translateY(30px) scale(.985); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- 25. Motion guard ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body::before, #hero::before, #hero::after,
  .section-bg::before, .cta, .cta::before, #contact::before, #footer::before,
  h1, h2, .section-title h2, .section-title::before,
  .counts span, .purecounter, .joispa-actions .ja-wa {
    animation: none !important;
  }
}

/* ============================================================================
   PART 3 — Offer / Steps / FAQ / Insights section patterns
   ========================================================================== */

/* ---------- 26. Shared card grid ---------------------------------------- */
.jo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.jo-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.jo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  height: 4px; width: 0;
  background: linear-gradient(90deg, var(--sec-a), var(--sec-b));
  transition: width .5s var(--ease);
}
.jo-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--sec-a) 45%, var(--border));
  box-shadow: 0 20px 46px color-mix(in srgb, var(--sec-a) 22%, rgba(26,19,51,.14));
}
.jo-card:hover::before { width: 100%; }

.jo-card-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.jo-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .7s var(--ease);
}
.jo-card:hover .jo-card-media img { transform: scale(1.07); }
/* Colour wash over the photo so cards read as one family */
.jo-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sec-a) 26%, transparent), transparent 62%);
  opacity: .85;
  transition: opacity var(--dur) var(--ease);
}
.jo-card:hover .jo-card-media::after { opacity: .35; }

.jo-card-body { display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2vw, 24px); }
.jo-card-body h3 { margin: 0; font-size: clamp(1.12rem, .7vw + .95rem, 1.32rem); color: var(--ink); }
.jo-card-body h3 a { color: var(--ink); background-image: linear-gradient(90deg, var(--sec-a), var(--sec-b)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease), color var(--dur) var(--ease); }
.jo-card-body h3 a:hover { color: var(--sec-a); background-size: 100% 2px; }
.jo-card-body p { margin: 0; font-size: .96rem; }

.jo-tag {
  align-self: flex-start;
  padding: 5px 13px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sec-a);
  background: color-mix(in srgb, var(--sec-a) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sec-a) 28%, transparent);
  border-radius: var(--r-pill);
}
.jo-post .jo-tag { order: -1; }

/* ---------- 27. How it works -------------------------------------------- */
.jo-steps {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 3vw, 38px);
  counter-reset: jostep;
}
.jo-step {
  position: relative;
  padding: clamp(26px, 3vw, 36px) clamp(20px, 2.4vw, 28px) clamp(22px, 2.4vw, 30px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.jo-step:hover { transform: translateY(-5px); box-shadow: 0 18px 40px color-mix(in srgb, var(--sec-a) 20%, rgba(26,19,51,.12)); }
.jo-step h3 { margin: 14px 0 8px; font-size: 1.2rem; color: var(--ink); }
.jo-step p { margin: 0; font-size: .97rem; }

.jo-step-num {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto;
  font-family: "Raleway", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--sec-a) 40%, transparent);
  animation: stepFloat 4.5s ease-in-out infinite;
}
.jo-step:nth-child(2) .jo-step-num { animation-delay: .6s; }
.jo-step:nth-child(3) .jo-step-num { animation-delay: 1.2s; }
@keyframes stepFloat {
  0%, 100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-7px) scale(1.04); }
}

/* Connector line between steps on wide screens */
@media (min-width: 900px) {
  .jo-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(clamp(26px, 3vw, 36px) + 31px);
    right: calc(-1 * clamp(20px, 3vw, 38px) - 1px);
    width: clamp(20px, 3vw, 38px);
    height: 2px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--sec-a) 55%, transparent), transparent);
  }
}

.jo-steps-note {
  text-align: center;
  font-size: .95rem;
  color: var(--ink-mute);
  margin-bottom: var(--sp-4);
}

/* ---------- 28. FAQ accordion (native <details>, no JS) ----------------- */
.jo-faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}
.jo-faq-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.jo-faq-item[open] {
  border-color: color-mix(in srgb, var(--sec-a) 45%, var(--border));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--sec-a) 16%, rgba(26,19,51,.10));
}
.jo-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 2vw, 24px);
  font-family: "Raleway", sans-serif;
  font-size: clamp(1rem, .5vw + .9rem, 1.12rem);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease);
}
.jo-faq-item summary::-webkit-details-marker { display: none; }
.jo-faq-item summary:hover { color: var(--sec-a); }
.jo-faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background:
    linear-gradient(currentColor, currentColor) center / 13px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 13px no-repeat,
    linear-gradient(135deg, color-mix(in srgb, var(--sec-a) 16%, transparent), color-mix(in srgb, var(--sec-b) 16%, transparent));
  color: var(--sec-a);
  transition: transform .35s var(--ease);
}
.jo-faq-item[open] summary::after {
  transform: rotate(135deg);
}
.jo-faq-a { padding: 0 clamp(18px, 2vw, 24px) 20px; }
.jo-faq-a p { margin: 0; font-size: .98rem; }
.jo-faq-item[open] .jo-faq-a { animation: faqOpen .32s var(--ease) both; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 29. Section rhythm for the new blocks ----------------------- */
.joispa-offer, .joispa-steps, .joispa-faq, .joispa-blog { padding-block: var(--sp-7); }

@media (prefers-reduced-motion: reduce) {
  .jo-step-num { animation: none; }
  .jo-faq-item[open] .jo-faq-a { animation: none; }
}


/* ============================================================================
   PART 4 — Contrast repairs + hero showcase
   ========================================================================== */

/* ---------- 30. Sections wrongly carrying the .cta class ----------------- */
/* Some content blocks in the legacy markup were given class="... cta" even
   though they are ordinary copy, not a call-to-action band. Combined with the
   light .section-bg veil that produced white text on a near-white background.
   Treat any section that is BOTH .section-bg and .cta as normal content. */
section.cta:not(.section-bg) { /* genuine CTA bands keep the gradient */ }

section.section-bg.cta {
  background: var(--bg-alt) !important;
  background-size: auto !important;
  animation: none !important;
  color: var(--ink);
}
section.section-bg.cta::before { mix-blend-mode: normal; opacity: .13; }
section.section-bg.cta::after  { background: var(--veil-soft); }

/* Readable text, overriding both the white-CTA rule and the legacy inline colours */
section.section-bg.cta p,
section.section-bg.cta li,
section.section-bg.cta h3,
section.section-bg.cta h4,
section.section-bg.cta span:not(.jo-tag):not(.jo-dot) {
  color: var(--ink-soft) !important;
}
section.section-bg.cta h3, section.section-bg.cta h4 { color: var(--ink) !important; }

/* The heading takes a solid section colour instead of the old gold.
   Deliberately NOT gradient-clipped text here: the legacy inline styles on
   these headings fight the clip and the result is an unreadable colour bar. */
section.section-bg.cta h2,
section.section-bg.cta h2[style] {
  background: none !important;
  background-image: none !important;
  color: var(--sec-a) !important;
  -webkit-text-fill-color: var(--sec-a) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  animation: none !important;
  font-family: "Raleway", sans-serif !important;
}

/* Scope the white-on-gradient rule to real CTA bands only */
.cta.section-bg h2, .cta.section-bg h3, .cta.section-bg p { color: inherit; }

/* Legacy inline colours that no longer suit the light surfaces */
[style*="color: #dbb331"], [style*="color:#dbb331"] { color: var(--sec-a) !important; }
[style*="color: #fff"], [style*="color:#fff"],
[style*="color: white"], [style*="color:white"] { color: var(--ink-soft) !important; }
.cta:not(.section-bg) [style*="color: #fff"],
.cta:not(.section-bg) [style*="color:#fff"] { color: #fff !important; }
[style*="color:#000"], [style*="color: #000"] { color: var(--ink-soft) !important; }

/* Loud legacy borders (e.g. "solid 2px red") toned to the section colour */
[style*="solid 2px red"], [style*="solid 1px red"], [style*="border: solid 2px red"] {
  border: 1.5px solid color-mix(in srgb, var(--sec-a) 42%, transparent) !important;
  border-radius: var(--r-lg);
}

/* Numbered step images in the process block */
.icon-box .icon img { width: 64px !important; height: 64px !important; object-fit: contain; border-radius: 0; }

/* ---------- 31. Hero showcase (replaces the seasonal GIF) --------------- */
.jo-hero-show {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  justify-items: center;
  margin-top: clamp(22px, 3vw, 36px);
}

.jo-hero-figure {
  position: relative;
  margin: 0;
  width: min(560px, 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(93,45,180,.26);
  transform: rotate(-.6deg);
  animation: showFloat 7s ease-in-out infinite;
}
.jo-hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
}
.jo-hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, color-mix(in srgb, var(--sec-a) 22%, transparent), transparent 58%);
}
@keyframes showFloat {
  0%, 100% { transform: rotate(-.6deg) translateY(0); }
  50%      { transform: rotate(.4deg)  translateY(-9px); }
}

.jo-hero-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  display: grid;
  gap: 1px;
  padding: 11px 18px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  text-align: left;
}
.jo-hero-badge strong {
  display: block;
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #0d9488;
}
.jo-hero-badge span { font-size: 1rem; font-weight: 700; color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jo-hero-badge { background: rgba(27,20,48,.9); }
}

.jo-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jo-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jo-hero-trust li { background: rgba(27,20,48,.66); }
}
.jo-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec-a) 16%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .jo-hero-figure { animation: none; transform: none; }
}

/* ---------- 32. Contrast safety net ------------------------------------- */
/* Nothing on a light surface may inherit pure white text. */
body:not(.dark) section:not(.cta) p[style*="#fff"],
body:not(.dark) section:not(.cta) span[style*="#fff"] { color: var(--ink-soft) !important; }

/* ============================================================================
   PART 5 — Directory · advanced header · advanced footer
   ========================================================================== */

/* ---------- 33. Service & area directory -------------------------------- */
.joispa-dir .jo-dir {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}

.jo-dir-col {
  position: relative;
  padding: clamp(18px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jo-dir-col::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--sec-a), var(--sec-b));
  opacity: .8;
}
.jo-dir-col:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--sec-a) 40%, var(--border));
  box-shadow: 0 16px 38px color-mix(in srgb, var(--sec-a) 18%, rgba(26,19,51,.12));
}
/* Rotate the accent per column so the block reads as many colours, not one */
.jo-dir-col:nth-child(6n+1) { --sec-a:#6d28d9; --sec-b:#ec4899; }
.jo-dir-col:nth-child(6n+2) { --sec-a:#0891b2; --sec-b:#6d28d9; }
.jo-dir-col:nth-child(6n+3) { --sec-a:#ea580c; --sec-b:#db2777; }
.jo-dir-col:nth-child(6n+4) { --sec-a:#db2777; --sec-b:#7c3aed; }
.jo-dir-col:nth-child(6n+5) { --sec-a:#0d9488; --sec-b:#0891b2; }
.jo-dir-col:nth-child(6n+6) { --sec-a:#7c3aed; --sec-b:#ea580c; }

.jo-dir-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}
.jo-dir-head::after { display: none; }

.jo-dir-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--sec-a) 34%, transparent);
}
.jo-dir-ico svg { width: 20px; height: 20px; fill: #fff; }

.jo-dir-count {
  margin-left: auto;
  padding: 2px 9px;
  font-size: .74rem;
  font-style: normal;
  font-weight: 700;
  color: var(--sec-a);
  background: color-mix(in srgb, var(--sec-a) 12%, transparent);
  border-radius: var(--r-pill);
}

.jo-dir-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.jo-dir-list li { margin: 0; }
.jo-dir-list a {
  display: block;
  position: relative;
  padding: 7px 10px 7px 20px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.jo-dir-list a::before {
  content: "";
  position: absolute;
  left: 7px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--sec-a);
  opacity: .45;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.jo-dir-list a:hover {
  color: var(--sec-a);
  background: color-mix(in srgb, var(--sec-a) 8%, transparent);
  padding-left: 24px;
}
.jo-dir-list a:hover::before { opacity: 1; transform: scale(1.5); }

/* ---------- 34. Header: advanced -------------------------------------- */
#header {
  padding-block: 10px;
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--border);
}
/* Gradient hairline along the very top */
#header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #6d28d9, #ec4899, #ff7a45, #06b6d4, #6d28d9);
  background-size: 300% 100%;
  animation: hueSlide 14s linear infinite alternate;
}
/* Reading-progress bar, driven by the browser where supported */
#header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet-500), var(--pink));
}
@supports (animation-timeline: scroll()) {
  #header::after {
    animation: progressGrow linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progressGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
#header.header-scrolled { box-shadow: 0 6px 24px rgba(93,45,180,.12); }

#header img { transition: transform var(--dur) var(--ease); }
#header a:hover img { transform: scale(1.04); }

/* Nav items get a sliding underline plus a pill on the active item */
#navbar > ul > li > a {
  position: relative;
  padding: 10px 15px;
  font-size: .93rem;
}
#navbar > ul > li > a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-500), var(--pink));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .32s var(--ease);
}
#navbar > ul > li > a:hover::after { transform: scaleX(1); }
#navbar > ul > li > a.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--violet-600), var(--pink));
  box-shadow: 0 6px 16px rgba(124,58,237,.34);
}
#navbar > ul > li > a.active::after { display: none; }

/* The phone number in the nav reads as the primary action */
#navbar > ul > li:last-child > a[href^="tel"],
#header a[href^="tel"] {
  color: #fff !important;
  background: linear-gradient(135deg, var(--violet-600), var(--pink));
  box-shadow: 0 8px 20px rgba(124,58,237,.32);
  font-weight: 700;
}
#header a[href^="tel"]:hover { transform: translateY(-1px); }

/* Dropdown panels */
#navbar .dropdown > ul {
  padding: 10px;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 56px rgba(26,19,51,.18);
  border: 1px solid var(--border);
}
#navbar .dropdown > ul::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--violet-500), var(--pink), var(--teal));
}
#navbar .dropdown > ul > li > a {
  border-radius: var(--r-sm);
  padding: 10px 12px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
#navbar .dropdown > ul > li > a:hover {
  background: color-mix(in srgb, var(--violet-500) 10%, transparent);
  padding-left: 17px;
}

@media (max-width: 1199px) {
  #navbar > ul > li > a::after { display: none; }
  #navbar.navbar-mobile > ul {
    padding: 14px;
    border-radius: var(--r-xl);
    box-shadow: 0 28px 64px rgba(26,19,51,.24);
  }
  #navbar.navbar-mobile > ul > li > a {
    border-radius: var(--r-md);
    font-weight: 650;
  }
}

/* ---------- 35. Footer: advanced ---------------------------------------- */
#footer {
  border-top: 0;
  padding-top: 0;
}
#footer .footer-top {
  position: relative;
  padding-block: clamp(44px, 5vw, 72px) clamp(28px, 3vw, 40px);
}
#footer .footer-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #6d28d9, #ec4899, #ff7a45, #06b6d4, #6d28d9);
  background-size: 300% 100%;
  animation: hueSlide 16s linear infinite alternate;
}
#footer .footer-top .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(22px, 3vw, 40px); }
#footer .footer-top [class*="col-"] { width: auto; }

/* Brand block */
#footer .footer-contact h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--violet-500), var(--pink), var(--coral));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hueSlide 10s ease-in-out infinite alternate;
  margin-bottom: 12px;
}
#footer .footer-contact p { font-size: .94rem; line-height: 1.9; }
#footer .footer-contact strong { color: var(--ink); font-weight: 650; }

/* Link columns */
#footer h4 {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-size: 1rem;
  font-weight: 750;
  color: var(--ink);
}
#footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--violet-500), var(--pink));
  display: block;
}
#footer .footer-links ul { display: grid; gap: 4px; }
#footer .footer-links ul li { margin: 0; }
#footer .footer-links ul li a {
  position: relative;
  display: block;
  padding: 6px 6px 6px 20px;
  font-size: .92rem;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
/* Chevron marker, replacing the icon fonts removed from the markup */
#footer .footer-links ul li a::before {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -4px;
  border-right: 2px solid var(--violet-500);
  border-bottom: 2px solid var(--violet-500);
  transform: rotate(-45deg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
#footer .footer-links ul li a:hover {
  color: var(--violet-600);
  background: color-mix(in srgb, var(--violet-500) 8%, transparent);
  padding-left: 24px;
}
#footer .footer-links ul li a:hover::before { border-color: var(--pink); transform: rotate(-45deg) scale(1.25); }

/* Brand / newsletter column */
#footer .footer-newsletter img { border-radius: var(--r-md); }
#footer .footer-newsletter > div[style] {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px !important;
  box-shadow: var(--sh-sm);
}

/* Bottom bar */
#footer .container:last-child,
#footer .copyright, #footer .credits {
  text-align: center;
}
#footer .copyright {
  margin-top: 8px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  font-size: .87rem;
}
#footer .credits { padding-top: 0; border: 0; margin-top: 0; font-size: .82rem; }
#footer .copyright strong, #footer .credits a { color: var(--violet-600); }

@media (prefers-reduced-motion: reduce) {
  #header::before, #footer .footer-top::before, #footer .footer-contact h3 { animation: none !important; }
}

/* ---------- 36. Footer alignment corrections ---------------------------- */
#footer .footer-top,
#footer .footer-top [class*="col-"],
#footer .footer-contact,
#footer .footer-links,
#footer .footer-newsletter { text-align: left; }

#footer .footer-top h3, #footer .footer-top h4 { text-align: left; }
#footer h4::after { left: 0; margin-inline: 0; }

/* the brand/DMCA column is a list only by accident of the old markup */
#footer .footer-newsletter ul,
#footer .footer-newsletter li { list-style: none; margin: 0; padding: 0; }
#footer .footer-newsletter li::marker { content: ""; }

/* close the gap the empty legacy columns leave behind */
#footer .footer-top { padding-bottom: clamp(20px, 2.5vw, 32px); }
#footer .footer-top .row { align-items: start; }

/* social row sits with the bottom bar */
#footer .social-links { justify-content: flex-start; margin-top: 6px; }
@media (min-width: 768px) {
  #footer .copyright { display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; }
  #footer .copyright .social-links { margin: 0; }
}
/* ============================================================================
   PART 6 — Tabbed directory · animated location buttons · logo
   ========================================================================== */

/* ---------- 37. Logo ----------------------------------------------------- */
#header img[src$="joispa-logo.svg"], #header img[src$="logo-joispa.png"] {
  height: clamp(40px, 4.6vw, 56px);
  width: auto;
  border-radius: 0;
}

/* ---------- 38. Tabbed directory (CSS only, no JavaScript) --------------- */
.jo-tabs { position: relative; }
.jo-tab-radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

.jo-tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.jo-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: "Raleway", sans-serif;
  font-size: .93rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  user-select: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.jo-tab b {
  min-width: 22px;
  padding: 1px 7px;
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
  color: var(--violet-600);
  background: var(--violet-100);
  border-radius: var(--r-pill);
  transition: inherit;
}
.jo-tab:hover {
  color: var(--violet-600);
  border-color: var(--violet-300);
  transform: translateY(-2px);
}
.jo-tab:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Panels: hidden siblings, revealed by the matching radio */
.jo-panel { display: none; }

.jo-tab-radio:nth-of-type(1):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(1),
.jo-tab-radio:nth-of-type(2):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(2),
.jo-tab-radio:nth-of-type(3):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(3),
.jo-tab-radio:nth-of-type(4):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(4),
.jo-tab-radio:nth-of-type(5):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(5),
.jo-tab-radio:nth-of-type(6):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(6),
.jo-tab-radio:nth-of-type(7):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(7),
.jo-tab-radio:nth-of-type(8):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(8),
.jo-tab-radio:nth-of-type(9):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(9),
.jo-tab-radio:nth-of-type(10):checked ~ .jo-tab-bar .jo-tab:nth-of-type(10),
.jo-tab-radio:nth-of-type(11):checked ~ .jo-tab-bar .jo-tab:nth-of-type(11) {
  color: #fff;
  background: linear-gradient(135deg, var(--violet-600), var(--pink));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(124,58,237,.32);
}
.jo-tab-radio:nth-of-type(1):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(1) b,
.jo-tab-radio:nth-of-type(2):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(2) b,
.jo-tab-radio:nth-of-type(3):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(3) b,
.jo-tab-radio:nth-of-type(4):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(4) b,
.jo-tab-radio:nth-of-type(5):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(5) b,
.jo-tab-radio:nth-of-type(6):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(6) b,
.jo-tab-radio:nth-of-type(7):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(7) b,
.jo-tab-radio:nth-of-type(8):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(8) b,
.jo-tab-radio:nth-of-type(9):checked  ~ .jo-tab-bar .jo-tab:nth-of-type(9) b,
.jo-tab-radio:nth-of-type(10):checked ~ .jo-tab-bar .jo-tab:nth-of-type(10) b,
.jo-tab-radio:nth-of-type(11):checked ~ .jo-tab-bar .jo-tab:nth-of-type(11) b {
  color: var(--violet-700); background: rgba(255,255,255,.9);
}

.jo-tab-radio:nth-of-type(1):checked  ~ .jo-panel:nth-of-type(1),
.jo-tab-radio:nth-of-type(2):checked  ~ .jo-panel:nth-of-type(2),
.jo-tab-radio:nth-of-type(3):checked  ~ .jo-panel:nth-of-type(3),
.jo-tab-radio:nth-of-type(4):checked  ~ .jo-panel:nth-of-type(4),
.jo-tab-radio:nth-of-type(5):checked  ~ .jo-panel:nth-of-type(5),
.jo-tab-radio:nth-of-type(6):checked  ~ .jo-panel:nth-of-type(6),
.jo-tab-radio:nth-of-type(7):checked  ~ .jo-panel:nth-of-type(7),
.jo-tab-radio:nth-of-type(8):checked  ~ .jo-panel:nth-of-type(8),
.jo-tab-radio:nth-of-type(9):checked  ~ .jo-panel:nth-of-type(9),
.jo-tab-radio:nth-of-type(10):checked ~ .jo-panel:nth-of-type(10),
.jo-tab-radio:nth-of-type(11):checked ~ .jo-panel:nth-of-type(11) {
  display: block;
  animation: panelIn .38s var(--ease) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Link chips inside a panel */
.jo-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}
.jo-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 44px 15px 18px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* left colour rail that fills on hover */
.jo-chip::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--violet-500), var(--pink));
  transform: scaleY(.35);
  transform-origin: center;
  transition: transform .38s var(--ease);
}
/* arrow that slides in */
.jo-chip::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -5px;
  border-right: 2px solid var(--violet-500);
  border-bottom: 2px solid var(--violet-500);
  transform: rotate(-45deg) translateX(-4px);
  opacity: .45;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.jo-chip:hover {
  color: var(--violet-700);
  border-color: var(--violet-300);
  transform: translateX(3px);
  box-shadow: 0 12px 28px rgba(124,58,237,.16);
}
.jo-chip:hover::before { transform: scaleY(1); }
.jo-chip:hover::after  { transform: rotate(-45deg) translateX(0); opacity: 1; }

@media (max-width: 575px) {
  .jo-tab-bar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
  .jo-tab-bar::-webkit-scrollbar { display: none; }
  .jo-tab { flex: 0 0 auto; }
}

/* ---------- 39. "Our location" — animated area buttons ------------------ */
#pricing.cta, section.pricing.cta { border-radius: var(--r-xl); }
#pricing .box { background: transparent; border: 0; box-shadow: none; padding: 0; }
#pricing .box:hover { transform: none; box-shadow: none; }
#pricing .box::before, #pricing .box::after { display: none; }

#pricing .box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
#pricing .box ul li { margin: 0; }

/* each area renders as a glass pill that lifts and shines */
#pricing .box ul li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px 11px 38px;
  font-size: .92rem;
  font-weight: 650;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  cursor: default;
  animation: pillIn .5s var(--ease) both;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
/* map-pin dot with a pulsing halo */
#pricing .box ul li::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pinPulse 2.6s ease-out infinite;
}
/* light sweep on hover */
#pricing .box ul li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.45) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
#pricing .box ul li:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255,255,255,.26);
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
#pricing .box ul li:hover::after { transform: translateX(130%); }

@keyframes pinPulse {
  0%   { box-shadow: 0 0 0 0    rgba(255,255,255,.65); }
  70%  { box-shadow: 0 0 0 11px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0    rgba(255,255,255,0); }
}
@keyframes pillIn {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
/* stagger the entrance across the group */
#pricing .box ul li:nth-child(1) { animation-delay: .02s }
#pricing .box ul li:nth-child(2) { animation-delay: .07s }
#pricing .box ul li:nth-child(3) { animation-delay: .12s }
#pricing .box ul li:nth-child(4) { animation-delay: .17s }
#pricing .box ul li:nth-child(5) { animation-delay: .22s }
#pricing .box ul li:nth-child(6) { animation-delay: .27s }
#pricing .box ul li:nth-child(7) { animation-delay: .32s }
#pricing .box ul li:nth-child(8) { animation-delay: .37s }

#pricing h3 { color: #fff !important; text-align: center; margin-bottom: 26px; }

@media (prefers-reduced-motion: reduce) {
  #pricing .box ul li, #pricing .box ul li::before { animation: none !important; }
  .jo-panel { animation: none !important; }
}

/* ---------- 40. Our location — rebuilt block ---------------------------- */
.jo-loc { text-align: center; }
.jo-loc h3 {
  color: #fff !important;
  font-size: clamp(1.5rem, 2vw + .8rem, 2.2rem);
  margin-bottom: 6px;
}
.jo-loc h3::after { display: none; }
.jo-loc-sub { color: rgba(255,255,255,.92) !important; max-width: 60ch; margin: 0 auto 26px; }
.jo-loc-note { color: rgba(255,255,255,.86) !important; max-width: 78ch; margin: 24px auto 22px; font-size: .95rem; }

.jo-loc-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jo-loc-list li {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 11px 20px 11px 38px;
  font-size: .92rem;
  font-weight: 650;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  animation: pillIn .55s var(--ease) both;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.jo-loc-list li::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  animation: pinPulse 2.6s ease-out infinite;
}
.jo-loc-list li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
.jo-loc-list li:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255,255,255,.28);
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.jo-loc-list li:hover::after { transform: translateX(130%); }

.jo-loc-list li:nth-child(2n) { animation-delay: .09s }
.jo-loc-list li:nth-child(3n) { animation-delay: .16s }
.jo-loc-list li:nth-child(4n) { animation-delay: .23s }
.jo-loc-list li:nth-child(5n) { animation-delay: .30s }

.jo-loc .cta-btn { background: #fff; color: var(--violet-700) !important; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.jo-loc .cta-btn:hover { background: var(--ink); color: #fff !important; }

/* logo: pin the lockup ratio so the SVG cannot collapse */
#header img[src$="joispa-logo.svg"], #header img[src$="logo-joispa.png"] {
  height: clamp(42px, 4.8vw, 58px);
  width: auto;
  aspect-ratio: 260 / 64;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .jo-loc-list li, .jo-loc-list li::before { animation: none !important; }
}

/* ---------- 41. Two-image composition + content typography -------------- */
.jo-duo {
  position: relative;
  margin: 0 0 clamp(46px, 6vw, 70px);
  padding-bottom: 8%;
}
.jo-duo-a {
  display: block;
  width: 88%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: 0 22px 52px color-mix(in srgb, var(--sec-a) 24%, rgba(26,19,51,.16));
}
.jo-duo-b {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 5px solid var(--surface);
  box-shadow: 0 18px 40px rgba(26,19,51,.2);
  transition: transform .6s var(--ease);
}
.jo-duo:hover .jo-duo-b { transform: translateY(-6px) rotate(-1deg); }

.jo-duo-tag {
  position: absolute;
  left: 0; bottom: 12%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}
.jo-duo-num {
  font-family: "Raleway", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jo-duo-txt { font-size: .78rem; font-weight: 600; line-height: 1.25; color: var(--ink-mute); }

/* decorative ring behind the composition */
.jo-duo::before {
  content: "";
  position: absolute;
  left: -6%; top: -6%;
  width: 42%; aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sec-a) 26%, transparent), transparent);
  filter: blur(18px);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

/* The legacy template italicised entire copy blocks, which reads poorly.
   Keep the first line as a lead, set the rest upright. */
.content p.fst-italic,
.about-video .content p.fst-italic {
  font-style: normal;
}
.content p.fst-italic:first-of-type,
.about-video .content p.fst-italic:first-of-type {
  font-size: var(--fs-lead);
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  padding-left: 16px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--sec-a), var(--sec-b)) 1;
}
.about-video .content { display: flex; flex-direction: column; gap: 2px; }
.about-video .content h2 { margin-bottom: .45em; }

/* --- balanced media column -------------------------------------------------
   These sections pair one 450px image with 1500px+ of prose, which left a
   tall empty gap beside the text. The media column now carries a stacked
   pair and sticks alongside the copy instead of stranding it. */
.about-video .row > [class*="col-lg-6"]:first-child,
.about .row > [class*="col-lg-6"]:first-child {
  align-self: flex-start;
}
@media (min-width: 992px) {
  .about-video .row > [class*="col-lg-6"]:first-child.jo-media-col {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }
}
.jo-media-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
}
.jo-media-col img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.jo-media-col img:first-of-type { aspect-ratio: 4 / 3; }
.jo-media-col .jo-media-second { aspect-ratio: 16 / 9; }
@media (max-width: 991px) {
  .jo-media-col { flex-direction: row; }
  .jo-media-col img { width: 50%; }
  .jo-media-col img:first-of-type,
  .jo-media-col .jo-media-second { aspect-ratio: 4 / 3; }
}
@media (max-width: 575px) {
  .jo-media-col { flex-direction: column; }
  .jo-media-col img { width: 100%; }
}

@media (max-width: 991px) {
  .jo-duo { max-width: 560px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .jo-duo::before { animation: none; }
}

/* Bootstrap's .fst-italic is !important, so match it to un-italicise body copy */
.content p.fst-italic, .about-video .content p.fst-italic,
#hero p.fst-italic, .section-title p.fst-italic { font-style: normal !important; }
/* ---------- 42. Logo sizing --------------------------------------------- */
/* The logo link is an inline <a> inside a plain <div>, so it collapsed to
   ~100px and the global img{max-width:100%} capped the lockup to that.
   Give the wrapper real width, then let the image size from its height. */
#header .container > div:first-child {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
#header .container > div:first-child > a,
#header a:has(> img) {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

#header img,
#header img[src$="joispa-logo.svg"],
#header img[src$="logo-joispa.png"] {
  height: clamp(48px, 5.2vw, 66px);
  width: auto;
  max-width: none;          /* overrides the global img cap */
  aspect-ratio: 260 / 64;
  object-fit: contain;
  border-radius: 0;
  flex: 0 0 auto;
}

/* Keep it from crowding the burger on small screens */
@media (max-width: 575px) {
  #header img,
  #header img[src$="joispa-logo.svg"],
  #header img[src$="logo-joispa.png"] {
    height: 44px;
    max-width: 62vw;
  }
}

/* Footer brand lockup, same treatment */
#footer img[src$="joispa-logo.svg"], #footer img[src$="logo-joispa.png"] {
  height: 56px; width: auto; max-width: none; aspect-ratio: 260 / 64; object-fit: contain;
}

/* ---------- 43. Therapist directory ------------------------------------- */
.joispa-team { padding-block: var(--sp-7); }

.jo-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.jo-tcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(20px, 2.4vw, 26px) 18px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jo-tcard:nth-child(6n+1) { --sec-a:#6d28d9; --sec-b:#ec4899; }
.jo-tcard:nth-child(6n+2) { --sec-a:#0891b2; --sec-b:#6d28d9; }
.jo-tcard:nth-child(6n+3) { --sec-a:#ea580c; --sec-b:#db2777; }
.jo-tcard:nth-child(6n+4) { --sec-a:#db2777; --sec-b:#7c3aed; }
.jo-tcard:nth-child(6n+5) { --sec-a:#0d9488; --sec-b:#0891b2; }
.jo-tcard:nth-child(6n+6) { --sec-a:#7c3aed; --sec-b:#ea580c; }
.jo-tcard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--sec-a) 42%, var(--border));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--sec-a) 20%, rgba(26,19,51,.13));
}

.jo-tcard-link { display: grid; justify-items: center; gap: 10px; }

.jo-tavatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--sec-a) 34%, transparent);
}
/* portraits are tall (360x551); bias the square crop up so faces stay in frame */
.jo-tavatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; border-radius: 50%; }
/* initial avatar for therapists without a photo on file */
.jo-tavatar-i {
  font-family: "Raleway", sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}
.jo-tavatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55);
}

.jo-tname {
  font-family: "Raleway", sans-serif;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.jo-tcard-link:hover .jo-tname { color: var(--sec-a); }

.jo-tspec {
  margin: 0;
  font-size: .88rem;
  font-weight: 650;
  color: var(--sec-a);
}

.jo-tmeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.jo-tmeta li {
  padding: 4px 11px;
  font-size: .76rem;
  color: var(--ink-mute);
  background: color-mix(in srgb, var(--sec-a) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--sec-a) 20%, transparent);
  border-radius: var(--r-pill);
}
.jo-tmeta b { color: var(--ink); font-weight: 700; }

.jo-tlang { margin: 6px 0 12px; font-size: .8rem; color: var(--ink-mute); }

.jo-tbtn {
  margin-top: auto;
  padding: 9px 20px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--sec-a);
  border: 1.5px solid color-mix(in srgb, var(--sec-a) 40%, transparent);
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jo-tbtn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--sec-a), var(--sec-b));
  border-color: transparent;
}

.jo-team-note {
  margin-top: clamp(24px, 3vw, 34px);
  text-align: center;
  font-size: .95rem;
  color: var(--ink-mute);
}

/* ---------- 44. Therapist profile page ---------------------------------
   Used by /bangalore-massage/<name>.html. Each page sets its own accent
   pair on .jo-pf so the fourteen profiles read as one family without
   looking like fourteen copies of the same page. */
.jo-pf {
  --pf-a: var(--violet-600);
  --pf-b: var(--pink);
  --pf-grad: linear-gradient(135deg, var(--pf-a), var(--pf-b));
  --pf-tint: color-mix(in srgb, var(--pf-a) 7%, transparent);
  padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 76px);
}
.jo-pf-a1 { --pf-a:#6d28d9; --pf-b:#ec4899; }
.jo-pf-a2 { --pf-a:#0891b2; --pf-b:#6d28d9; }
.jo-pf-a3 { --pf-a:#ea580c; --pf-b:#db2777; }
.jo-pf-a4 { --pf-a:#db2777; --pf-b:#7c3aed; }
.jo-pf-a5 { --pf-a:#0d9488; --pf-b:#0891b2; }
.jo-pf-a6 { --pf-a:#7c3aed; --pf-b:#ea580c; }

.jo-pf-wrap {
  width: min(100% - 2.4rem, var(--maxw));
  margin-inline: auto;
}

/* --- breadcrumb --- */
.jo-pf-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  padding: 0;
  list-style: none;
  font-size: .82rem;
  color: var(--ink-mute);
}
.jo-pf-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: color-mix(in srgb, var(--ink-mute) 55%, transparent);
}
.jo-pf-crumbs a { color: var(--ink-mute); }
.jo-pf-crumbs a:hover { color: var(--pf-a); }
.jo-pf-crumbs [aria-current] { color: var(--ink); font-weight: 650; }

/* --- hero --- */
.jo-pf-hero {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 46px);
  align-items: start;
  padding: clamp(22px, 3vw, 38px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.jo-pf-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--pf-grad);
}

/* Monogram medallion. Deliberately a designed mark rather than a stock
   photo of an unrelated person — swap in a real portrait by dropping an
   <img> inside .jo-pf-portrait and it will cover the tile. */
.jo-pf-portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--pf-grad);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--pf-a) 32%, transparent);
}
.jo-pf-portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keep faces in frame when the tile crops */
}
/* the therapist photos are all 360x551 — match the tile to them so nothing
   important is cropped away */
.jo-pf-portrait.jo-pf-has-photo { aspect-ratio: 5 / 8; }
.jo-pf-portrait.jo-pf-has-photo::after {
  background: linear-gradient(to top, rgba(10,6,22,.55) 0%, rgba(10,6,22,.10) 34%, transparent 62%);
}
.jo-pf-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255,255,255,.30), transparent 58%),
    radial-gradient(90% 80% at 88% 100%, rgba(0,0,0,.22), transparent 60%);
}
.jo-pf-mono {
  position: relative;
  z-index: 1;
  font-family: "Raleway", sans-serif;
  font-size: clamp(4.4rem, 9vw, 6.6rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,.28);
}
.jo-pf-portrait-tag {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  white-space: nowrap;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pf-a);
  background: rgba(255,255,255,.94);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 18px rgba(26,19,51,.18);
}
.jo-pf-portrait-tag svg { flex: none; }

.jo-pf-intro { min-width: 0; }
.jo-pf-eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pf-a);
}
.jo-pf-name {
  margin: 0 0 6px;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  color: var(--ink);
}
.jo-pf-name::after { content: none; }
.jo-pf-spec {
  margin: 0 0 18px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 600;
  color: var(--ink-soft);
}

.jo-pf-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.jo-pf-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: .82rem;
  color: var(--ink-soft);
  background: var(--pf-tint);
  border: 1px solid color-mix(in srgb, var(--pf-a) 22%, transparent);
  border-radius: var(--r-pill);
}
.jo-pf-facts b { color: var(--ink); font-weight: 700; }
.jo-pf-facts svg { flex: none; color: var(--pf-a); }

.jo-pf-bio { margin: 0 0 22px; color: var(--ink-soft); }
.jo-pf-bio p { margin: 0 0 12px; }
.jo-pf-bio p:last-child { margin-bottom: 0; }

.jo-pf-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.jo-pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  font-size: .92rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--pf-grad);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pf-a) 30%, transparent);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.jo-pf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--pf-a) 38%, transparent);
}
.jo-pf-btn-ghost {
  background: transparent;
  color: var(--pf-a) !important;
  border-color: color-mix(in srgb, var(--pf-a) 40%, transparent);
  box-shadow: none;
}
.jo-pf-btn-ghost:hover {
  background: var(--pf-tint);
  box-shadow: none;
}

/* --- credential strip --- */
.jo-pf-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: clamp(18px, 2.4vw, 26px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.jo-pf-stat {
  padding: 18px 16px;
  text-align: center;
  background: var(--surface);
}
.jo-pf-stat b {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pf-a);
}
.jo-pf-stat span {
  font-size: .78rem;
  color: var(--ink-mute);
}

/* --- generic profile section --- */
.jo-pf-sec { margin-top: clamp(38px, 5vw, 64px); }
.jo-pf-sec > h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ink);
}
.jo-pf-sec > h2::after { content: none; }
.jo-pf-lede {
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  max-width: 62ch;
  color: var(--ink-mute);
}

/* --- therapy cards --- */
.jo-pf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.jo-pf-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.jo-pf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--pf-a) 18%, rgba(26,19,51,.12));
}
.jo-pf-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.jo-pf-card-body { padding: 18px 20px 22px; }
.jo-pf-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  color: var(--ink);
}
.jo-pf-card h3::after { content: none; }
.jo-pf-card p { margin: 0; font-size: .9rem; color: var(--ink-mute); }
.jo-pf-card-dur {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--pf-a);
  background: var(--pf-tint);
  border-radius: var(--r-pill);
}

/* --- session steps --- */
.jo-pf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pfstep;
}
.jo-pf-step {
  position: relative;
  padding: 24px 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.jo-pf-step::before {
  counter-increment: pfstep;
  content: counter(pfstep);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--pf-grad);
  border-radius: 50%;
}
.jo-pf-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--ink);
}
.jo-pf-step h3::after { content: none; }
.jo-pf-step p { margin: 0; font-size: .88rem; color: var(--ink-mute); }

/* --- rates --- */
.jo-pf-rates {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.jo-pf-rates caption {
  caption-side: bottom;
  padding-top: 12px;
  font-size: .8rem;
  color: var(--ink-mute);
  text-align: left;
}
.jo-pf-rates th,
.jo-pf-rates td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.jo-pf-rates thead th {
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pf-grad);
  border-bottom: none;
}
.jo-pf-rates tbody tr:last-child th,
.jo-pf-rates tbody tr:last-child td { border-bottom: none; }
.jo-pf-rates tbody tr:hover { background: var(--pf-tint); }
.jo-pf-rates tbody th { font-weight: 650; color: var(--ink); }
.jo-pf-rates td { color: var(--ink-soft); }
.jo-pf-rates .jo-pf-price { font-weight: 750; color: var(--pf-a); white-space: nowrap; }

/* --- credentials list --- */
.jo-pf-creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jo-pf-creds li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.jo-pf-cred-tick {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--pf-grad);
  color: #fff;
}

/* --- gallery --- */
.jo-pf-gal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.jo-pf-gal a {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.jo-pf-gal img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
/* therapist photo sets: tall full-length shots, so a narrower tile than the
   treatment photography, cropped from the bottom to keep the face in frame */
.jo-pf-gal-portraits {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.jo-pf-gal-portraits img {
  aspect-ratio: 5 / 8;
  object-position: center top;
}
.jo-pf-gal a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--pf-a) 55%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.jo-pf-gal a:hover img { transform: scale(1.06); }
.jo-pf-gal a:hover::after { opacity: 1; }
.jo-pf-gal a:focus-visible { outline: 3px solid var(--pf-a); outline-offset: 3px; }

/* --- booking panel --- */
.jo-pf-book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  color: #fff;
  background: var(--pf-grad);
  border-radius: var(--r-xl);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--pf-a) 32%, transparent);
}
.jo-pf-book h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: #fff;
}
.jo-pf-book h2::after { content: none; }
.jo-pf-book p { margin: 0; color: rgba(255,255,255,.92); }
.jo-pf-book-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.jo-pf-book-btns a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-weight: 700;
  color: var(--pf-a) !important;
  background: #fff;
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease);
}
.jo-pf-book-btns a:hover { transform: translateY(-2px); }
.jo-pf-book-btns .jo-pf-book-alt {
  color: #fff !important;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6);
}

/* --- other therapists --- */
.jo-pf-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jo-pf-more a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 8px;
  font-size: .88rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.jo-pf-more a:hover {
  color: var(--pf-a);
  border-color: color-mix(in srgb, var(--pf-a) 40%, transparent);
  transform: translateY(-2px);
}
.jo-pf-more i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-style: normal;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  background: var(--pf-grad);
  border-radius: 50%;
}

/* --- FAQ --- */
.jo-pf-faq { display: grid; gap: 12px; }
.jo-pf-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.jo-pf-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.jo-pf-faq summary::-webkit-details-marker { display: none; }
.jo-pf-faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pf-a);
  background: var(--pf-tint);
  border-radius: 50%;
}
.jo-pf-faq details[open] summary::after { content: "\2212"; }
.jo-pf-faq summary:hover { color: var(--pf-a); }
.jo-pf-faq details > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: .92rem;
  color: var(--ink-mute);
}

/* --- lightbox (driven by joispa-2026.js) --- */
.jo-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none; /* JS sets display:grid when opening */
  place-items: center;
  padding: 4vmin;
  background: rgba(10, 6, 22, .88);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.jo-lb.is-open { opacity: 1; }
.jo-lb img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.jo-lb-close,
.jo-lb-prev,
.jo-lb-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  cursor: pointer;
}
.jo-lb-close:hover, .jo-lb-prev:hover, .jo-lb-next:hover { background: rgba(255,255,255,.28); }
.jo-lb-close { top: 3vmin; right: 3vmin; }
.jo-lb-prev { left: 3vmin; }
.jo-lb-next { right: 3vmin; }
.jo-lb-count {
  position: absolute;
  bottom: 3vmin;
  left: 50%;
  transform: translateX(-50%);
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}

@media (max-width: 900px) {
  .jo-pf-hero { grid-template-columns: 1fr; }
  .jo-pf-portrait { max-width: 260px; aspect-ratio: 1; }
  .jo-pf-portrait.jo-pf-has-photo { max-width: 240px; aspect-ratio: 5 / 8; }
  .jo-pf-book { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .jo-pf-cta .jo-pf-btn { flex: 1 1 100%; justify-content: center; }
  .jo-lb-prev, .jo-lb-next { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .jo-pf-card, .jo-pf-gal img, .jo-pf-btn, .jo-pf-more a, .jo-pf-book-btns a { transition: none; }
}

/* ---------- 49. RTA label badge ----------------------------------------- */
.jo-rta { list-style: none; margin-top: 10px; }
.jo-rta a {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
  opacity: .9;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.jo-rta a:hover { opacity: 1; transform: translateY(-2px); }
.jo-rta img { width: 132px; height: 44px; border-radius: 6px; }
.jo-rta a:focus-visible { outline: 3px solid var(--violet-300); outline-offset: 3px; }
/* legacy footer variant sits in a flex row beside the copyright line */
div.jo-rta { margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  .jo-rta a { transition: none; }
}

/* ---------- 48. Error page ---------------------------------------------- */
.jo-404 {
  position: relative;
  padding-block: clamp(46px, 7vw, 96px);
  background: var(--grad-soft);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
  text-align: center;
}
.jo-404::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 60% at 78% 26%, rgba(236,72,153,.28), transparent 68%),
    radial-gradient(48% 56% at 14% 76%, rgba(6,182,212,.26),  transparent 68%),
    radial-gradient(40% 48% at 52% 4%,  rgba(251,191,36,.22), transparent 70%);
  animation: meshDrift 22s var(--ease) infinite alternate-reverse;
}
.jo-404-code {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: clamp(5.5rem, 20vw, 11rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) { .jo-404-code { color: var(--violet-700); } }
.jo-404 h1 {
  margin: 6px 0 12px;
  font-size: clamp(1.5rem, 3vw + .5rem, 2.3rem);
}
.jo-404 h1::after { margin-inline: auto; }
.jo-404 > .container > p {
  max-width: 58ch;
  margin: 0 auto clamp(24px, 3vw, 34px);
  color: var(--ink-soft);
}
.jo-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.jo-404-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.jo-404-links a {
  --lc: var(--violet-600);
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 20px 22px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jo-404-links li:nth-child(4n+1) a { --lc:#7c3aed; }
.jo-404-links li:nth-child(4n+2) a { --lc:#0891b2; }
.jo-404-links li:nth-child(4n+3) a { --lc:#ea580c; }
.jo-404-links li:nth-child(4n+4) a { --lc:#0d9488; }
.jo-404-links a:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--lc) 45%, var(--border));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--lc) 20%, rgba(26,19,51,.12));
}
.jo-404-links b { font-size: 1.02rem; font-weight: 750; color: var(--lc); }
.jo-404-links span { font-size: .86rem; color: var(--ink-mute); }

@media (prefers-reduced-motion: reduce) {
  .jo-404::after { animation: none; }
  .jo-404-links a { transition: none; }
}

/* ---------- 47. Therapist showcase (home page) --------------------------
   Replaces the old .team/.member grid, which carried dead href="#" social
   icons over every face and a typo'd class that broke one card's caption. */
.jo-show {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}

.jo-show-card {
  --sc-a: var(--violet-600);
  --sc-b: var(--pink);
  position: relative;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-md);
  isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.jo-show-card:nth-child(4n+1) { --sc-a:#7c3aed; --sc-b:#ec4899; }
.jo-show-card:nth-child(4n+2) { --sc-a:#0891b2; --sc-b:#7c3aed; }
.jo-show-card:nth-child(4n+3) { --sc-a:#ea580c; --sc-b:#db2777; }
.jo-show-card:nth-child(4n+4) { --sc-a:#0d9488; --sc-b:#06b6d4; }
.jo-show-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px color-mix(in srgb, var(--sc-a) 26%, rgba(26,19,51,.16));
}
.jo-show-card:focus-visible { outline: 3px solid var(--sc-a); outline-offset: 3px; }

.jo-show-photo {
  position: relative;
  display: block;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sc-a), var(--sc-b));
}
.jo-show-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s var(--ease);
}
.jo-show-card:hover .jo-show-photo img { transform: scale(1.07); }
/* colour wash keeps the set feeling like one family despite mixed sources */
.jo-show-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      color-mix(in srgb, var(--sc-a) 88%, transparent) 0%,
      color-mix(in srgb, var(--sc-a) 30%, transparent) 34%,
      transparent 62%);
}

.jo-show-body {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  padding: 18px 18px 20px;
  color: #fff;
}
.jo-show-name {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 1.24rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.jo-show-name::after { content: none; }
.jo-show-spec {
  margin: 3px 0 10px;
  font-size: .86rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}
.jo-show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.jo-show-meta li {
  padding: 4px 11px;
  font-size: .72rem;
  font-weight: 650;
  color: #fff;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.jo-show-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 750;
  color: #fff;
}
.jo-show-cta::after {
  content: "";
  width: 16px; height: 2px;
  background: currentColor;
  transition: width var(--dur) var(--ease);
}
.jo-show-card:hover .jo-show-cta::after { width: 28px; }

@media (prefers-reduced-motion: reduce) {
  .jo-show-card, .jo-show-photo img, .jo-show-cta::after { transition: none; }
}

/* ---------- 46. Session price cards -------------------------------------
   Replaces the old "pricing-section" block, which shipped a monthly/yearly
   toggle (a spa session is not a subscription), two cards with no price at
   all, and dead "Choose Plan" buttons. */
.jo-price {
  padding-block: clamp(38px, 5vw, 70px);
}
.jo-price-head {
  max-width: 62ch;
  margin: 0 auto clamp(28px, 3.4vw, 44px);
  text-align: center;
}
.jo-price-eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-600);
}
.jo-price-head h2 { margin: 0 0 12px; }
.jo-price-head h2::after { margin-inline: auto; }
.jo-price-head p { margin: 0; color: var(--ink-mute); }

.jo-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

.jo-price-card {
  --pc: var(--violet-600);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px) clamp(22px, 2.6vw, 30px) clamp(24px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jo-price-card:nth-child(1) { --pc: #0891b2; }
.jo-price-card:nth-child(2) { --pc: #7c3aed; }
.jo-price-card:nth-child(3) { --pc: #db2777; }
.jo-price-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--pc) 42%, var(--border));
  box-shadow: 0 20px 44px color-mix(in srgb, var(--pc) 20%, rgba(26,19,51,.13));
}
.jo-price-card.is-featured {
  border-color: color-mix(in srgb, var(--pc) 55%, transparent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--pc) 22%, rgba(26,19,51,.12));
}
.jo-price-card.is-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(135deg, var(--pc), var(--pink));
}
.jo-price-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--pc), var(--pink));
  border-radius: var(--r-pill);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pc) 34%, transparent);
}

.jo-price-dur {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--pc);
  background: color-mix(in srgb, var(--pc) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 22%, transparent);
  border-radius: var(--r-pill);
}
.jo-price-name {
  margin: 14px 0 4px;
  font-size: 1.22rem;
  font-weight: 750;
  color: var(--ink);
}
.jo-price-name::after { content: none; }
.jo-price-sub { margin: 0 0 16px; font-size: .88rem; color: var(--ink-mute); }

.jo-price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.jo-price-amount b {
  font-family: "Raleway", sans-serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--pc);
}
.jo-price-amount span { font-size: .82rem; color: var(--ink-mute); }

.jo-price-list {
  flex: 1;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.jo-price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.jo-price-list li svg { flex: none; margin-top: 3px; color: var(--pc); }

.jo-price-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--pc) !important;
  border: 1.5px solid color-mix(in srgb, var(--pc) 40%, transparent);
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jo-price-btn:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--pc), var(--pink));
  border-color: transparent;
}
.jo-price-card.is-featured .jo-price-btn {
  color: #fff !important;
  background: linear-gradient(135deg, var(--pc), var(--pink));
  border-color: transparent;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pc) 30%, transparent);
}
.jo-price-card.is-featured .jo-price-btn:hover { filter: brightness(1.07); }

.jo-price-note {
  max-width: 70ch;
  margin: clamp(24px, 3vw, 34px) auto 0;
  text-align: center;
  font-size: .9rem;
  color: var(--ink-mute);
}
.jo-price-note a { font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  .jo-price-card, .jo-price-btn { transition: none; }
}

/* ---------- 45. Compact hero title lockup -------------------------------
   The legacy hero left a very tall, mostly empty band: display-size H1,
   an H2 carrying the full section underline, and generous padding on top
   of both. This tightens the whole band and turns the headline group into
   a single readable card over the photography. Markup is untouched — the
   selectors match the structure every page already ships. */
#hero {
  padding-block: clamp(24px, 3vw, 48px);
}

/* the headline column only — not the nested .text-center blocks inside it */
#hero > .container > .row > [class*="col-"].text-center {
  padding: clamp(20px, 2.6vw, 34px) clamp(20px, 3vw, 42px);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  border-radius: var(--r-xl);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--sh-md);
}

#hero h1 {
  font-size: clamp(1.8rem, 2.7vw + .6rem, 2.95rem);
  line-height: 1.12;
  margin: 0 0 .4em;
}

/* the hero H2 is a standfirst, not a section heading: drop the weight,
   the size and the full-width underline the global H2 rule gives it */
#hero h2 {
  font-size: clamp(.98rem, .45vw + .88rem, 1.12rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto;
}
#hero h2::after {
  width: 46px;
  height: 3px;
  margin: 14px auto 0;
}

/* phone / CTA row directly under the card */
#hero > .container > .text-center { margin-top: clamp(14px, 1.8vw, 22px); }
#hero > .container > .text-center:empty { display: none; }

@media (max-width: 575px) {
  #hero > .container > .row > [class*="col-"].text-center {
    padding: 18px 16px;
    border-radius: var(--r-lg);
  }
}
