/*
Theme Name: JM Astra Child
Theme URI: https://jacekmoczydlowski.pl/
Description: Motyw potomny Astra dla strony gabinetu Jacka Moczydlowskiego.
Author: IRiTS - Instytut Rozwoju i Tradycji Starachowic Sp. z o.o.
Author URI: https://instytutstarachowice.pl
Template: astra
Version: 0.2.55
Text Domain: jm-astra-child
*/

:root {
  --jm-font-body: "Atkinson Hyperlegible", Arial, Helvetica, sans-serif;
  --jm-font-heading: "Manrope", "Atkinson Hyperlegible", Arial, Helvetica, sans-serif;
  --jm-ink: #2f3137;
  --jm-navy: #01143c;
  --jm-navy-deep: #01143c;
  --jm-navy-alt: #142374;
  --jm-blue: #265996;
  --jm-blue-soft: #7f9dc0;
  --jm-clinical: #eaf2ff;
  --jm-surface: #f7faff;
  --jm-paper: #f4f7fb;
  --jm-paper-soft: #ffffff;
  --jm-beige: #f1eadf;
  --jm-muted: #667389;
  --jm-line: #dce6f4;
  --jm-shadow: 0 22px 70px rgba(1, 20, 60, 0.08);
  --jm-radius: 8px;
  --jm-focus: 0 0 0 3px rgba(38, 89, 150, 0.28);
}

/* Star Cookie Banner: accessible contrast overrides. */
.scb-banner,
.scb-modal,
.scb-dialog,
[class*="star-cookie"] {
  --scb-jm-bg: #111827;
  --scb-jm-ink: #ffffff;
  --scb-jm-button: #ffffff;
  --scb-jm-button-ink: #01143c;
  --scb-jm-muted-button: #334155;
  --scb-jm-border: rgba(255, 255, 255, 0.72);
}

.scb-banner,
.scb-modal,
.scb-dialog {
  color: var(--scb-jm-ink) !important;
}

.scb-banner button,
.scb-modal button,
.scb-dialog button {
  border-radius: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.scb-banner button:focus-visible,
.scb-modal button:focus-visible,
.scb-dialog button:focus-visible,
.scb-banner input:focus-visible,
.scb-modal input:focus-visible,
.scb-dialog input:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(38, 89, 150, 0.55) !important;
}

.scb-banner button[class*="accept"],
.scb-modal button[class*="accept"],
.scb-dialog button[class*="accept"],
.scb-banner button[id*="accept"],
.scb-modal button[id*="accept"],
.scb-dialog button[id*="accept"] {
  background: var(--scb-jm-button) !important;
  border-color: var(--scb-jm-button) !important;
  color: var(--scb-jm-button-ink) !important;
}

.scb-banner button[class*="reject"],
.scb-modal button[class*="reject"],
.scb-dialog button[class*="reject"],
.scb-banner button[id*="reject"],
.scb-modal button[id*="reject"],
.scb-dialog button[id*="reject"],
.scb-banner button[class*="decline"],
.scb-modal button[class*="decline"],
.scb-dialog button[class*="decline"] {
  background: var(--scb-jm-muted-button) !important;
  border-color: var(--scb-jm-muted-button) !important;
  color: #ffffff !important;
}

.scb-banner button[class*="settings"],
.scb-modal button[class*="settings"],
.scb-dialog button[class*="settings"],
.scb-banner button[id*="settings"],
.scb-modal button[id*="settings"],
.scb-dialog button[id*="settings"] {
  background: transparent !important;
  border-color: var(--scb-jm-border) !important;
  color: #ffffff !important;
}

body {
  background: var(--jm-paper);
  color: var(--jm-ink);
  font-family: var(--jm-font-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea,
.ast-button,
.button {
  font-family: var(--jm-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.entry-title {
  color: var(--jm-navy);
  font-family: var(--jm-font-heading);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.75rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 3.15rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.18;
}

p,
li {
  color: var(--jm-muted);
}

a {
  color: var(--jm-blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--jm-navy);
}

:focus-visible {
  outline: none;
  box-shadow: var(--jm-focus);
}

.site-content {
  background: var(--jm-paper);
}

.ast-container,
.site .site-content #primary {
  padding-inline: 0;
}

.main-header-bar,
.ast-primary-header-bar {
  border-bottom-color: var(--jm-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.main-header-menu .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link {
  color: var(--jm-navy);
  font-family: var(--jm-font-body);
  font-weight: 700;
}

.main-header-menu .menu-link:hover,
.ast-builder-menu-1 .menu-item:hover > .menu-link {
  color: var(--jm-blue);
}

.ast-button,
.button,
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link {
  min-height: 46px;
  border-radius: var(--jm-radius);
  font-weight: 700;
  letter-spacing: 0;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-color: var(--jm-line);
  border-radius: var(--jm-radius);
  background: #ffffff;
  color: var(--jm-ink);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--jm-blue);
  box-shadow: var(--jm-focus);
}

.jm-wrap {
  width: min(calc(100% - 32px), 1180px);
  margin-inline: auto;
}

.jm-section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.jm-after-hero {
  overflow: hidden;
  isolation: isolate;
}

.jm-after-hero > .jm-wrap {
  position: relative;
}

.jm-after-hero > .jm-wrap::before {
  content: "";
  position: absolute;
  inset: -22px -18px auto;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38, 89, 150, 0.22), transparent);
}

.jm-after-hero .jm-kicker {
  color: var(--jm-blue);
}

.jm-after-hero h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0;
}

.jm-after-hero .jm-lead {
  max-width: 820px;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  line-height: 1.72;
}

.jm-after-hero .jm-card,
.jm-after-hero .jm-booking-note,
.jm-after-hero .jm-price-row,
.jm-after-hero .jm-visual-placeholder,
.jm-after-hero .jm-featured-media__image,
.jm-after-hero .jm-booking-placeholder {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.jm-after-hero .jm-card:hover,
.jm-after-hero .jm-booking-note:hover,
.jm-after-hero .jm-price-row:hover,
.jm-after-hero .jm-featured-media__image:hover {
  border-color: rgba(38, 89, 150, 0.28);
  box-shadow: 0 22px 58px rgba(1, 20, 60, 0.12);
  transform: translateY(-3px);
}

.jm-kicker {
  margin-bottom: 12px;
  color: var(--jm-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jm-hero {
  --jm-hero-progress: 0;
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 108px);
  background:
    linear-gradient(180deg, rgba(234, 242, 255, 0.94) 0%, rgba(255, 255, 255, 0.96) 72%, rgba(244, 247, 251, 1) 100%);
  border-bottom: 1px solid var(--jm-line);
}

.jm-hero--with-media {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 150svh;
  padding: 0;
  background:
    #050c18;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.jm-hero--with-media .jm-hero-grid {
  position: sticky;
  top: 0;
  isolation: isolate;
  width: 100vw;
  margin-inline: 0;
  min-height: 100svh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  align-items: end;
  transform:
    translateY(calc(var(--jm-hero-progress) * -10px));
  transform-origin: center top;
  will-change: transform;
}

.jm-page-shell > .jm-hero--with-media + * {
  position: relative;
  z-index: 5;
  margin-top: -66svh;
  padding-top: clamp(52px, 7vw, 96px);
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.985) 0%, var(--jm-paper) 56%, var(--jm-paper) 100%);
  border-top: 1px solid rgba(220, 230, 244, 0.9);
  border-radius: clamp(26px, 4vw, 52px) clamp(26px, 4vw, 52px) 0 0;
  box-shadow: 0 -30px 76px rgba(1, 20, 60, 0.14);
}

.jm-hero-grid,
.jm-hero-content,
.jm-split,
.jm-contact-grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}

.jm-hero h1,
.jm-section h1,
.jm-section h2 {
  max-width: 900px;
  color: var(--jm-navy);
  line-height: 1.02;
}

.jm-hero-content {
  max-width: 920px;
}

.jm-hero-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(340px, 42vw, 560px);
  margin: 0;
  border: 1px solid rgba(220, 230, 244, 0.92);
  border-radius: 26px;
  background: var(--jm-navy);
  box-shadow: 0 28px 80px rgba(1, 20, 60, 0.16);
  transform:
    translateY(calc(var(--jm-hero-progress) * 5px))
    translateZ(calc(var(--jm-hero-progress) * -40px));
  transform-origin: center top;
  transition: box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.jm-hero--with-media .jm-hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  background: #111827;
}

.jm-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(1, 20, 60, 0.08) 0%, rgba(1, 20, 60, 0.68) 100%),
    linear-gradient(90deg, rgba(1, 20, 60, 0.56), rgba(1, 20, 60, 0.08));
  opacity: calc(0.38 + (var(--jm-hero-progress) * 0.34));
  transition: opacity 220ms ease;
}

.jm-hero--with-media .jm-hero-media::before {
  background:
    linear-gradient(180deg, rgba(5, 12, 24, 0.06) 0%, rgba(5, 12, 24, 0.2) 48%, rgba(5, 12, 24, 0.76) 100%),
    linear-gradient(90deg, rgba(5, 12, 24, 0.54) 0%, rgba(5, 12, 24, 0.22) 46%, rgba(5, 12, 24, 0.04) 100%);
}

.jm-hero-media:hover::before {
  opacity: 0.94;
}

.jm-hero--with-media .jm-hero-grid:has(.jm-hero-content:hover) .jm-hero-media::before {
  opacity: 0.9;
}

.jm-hero-media__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-position: var(--jm-hero-image-position, center center);
  transition: transform 420ms ease, filter 220ms ease;
  will-change: transform, filter;
  backface-visibility: hidden;
}

.jm-hero-media__image--back {
  position: absolute;
  inset: -4%;
  z-index: 0;
  width: 108%;
  height: 108%;
  min-height: 108%;
  object-fit: cover;
  filter: blur(18px) brightness(0.76) saturate(0.9);
  transform: scale(calc(1.07 - (var(--jm-hero-progress) * 0.018)));
}

.jm-hero-media__image--front {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  object-position: var(--jm-hero-image-position, center 48%);
  filter: brightness(0.98) saturate(1.03) contrast(1.02);
  transform: translateY(calc(var(--jm-hero-progress) * -18px)) scale(calc(1.022 - (var(--jm-hero-progress) * 0.008)));
}

.jm-hero-media:hover .jm-hero-media__image--front {
  filter: brightness(1) saturate(1.04) contrast(1.03);
}

.jm-hero--with-media .jm-hero-grid:has(.jm-hero-content:hover) .jm-hero-media__image--front {
  filter: brightness(1) saturate(1.05) contrast(1.04);
  transform: translateY(calc(var(--jm-hero-progress) * -18px)) scale(calc(1.035 - (var(--jm-hero-progress) * 0.008)));
}

.jm-hero-media__overlay {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 2;
  display: grid;
  gap: 12px;
  max-width: min(520px, calc(100% - 44px));
  color: #ffffff;
  transform: translateY(calc(var(--jm-hero-progress) * -8px));
  will-change: transform;
}

.jm-hero--with-media .jm-hero-media__overlay {
  display: none;
}

.jm-hero--with-media .jm-hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  overflow: hidden;
  max-width: min(590px, calc(100% - 32px));
  align-self: end;
  margin: 0 0 clamp(112px, 18vh, 168px) max(16px, calc((100vw - 1240px) / 2));
  padding: clamp(20px, 2.8vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: clamp(22px, 2.6vw, 34px);
  background: transparent;
  box-shadow: 0 30px 95px rgba(1, 20, 60, 0.26);
  transform: translateY(calc(var(--jm-hero-progress) * -56px));
}

.jm-hero--with-media .jm-hero-content::before,
.jm-hero--with-media .jm-hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.jm-hero--with-media .jm-hero-content::before {
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(16, 24, 39, 0.42);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.jm-hero--with-media .jm-hero-content::after {
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.jm-hero--with-media .jm-hero-content > * {
  position: relative;
  z-index: 2;
}

.jm-hero--with-media .jm-hero-content,
.jm-hero--with-media .jm-hero-content * {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.jm-hero--with-media .jm-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.jm-hero--with-media h1 {
  max-width: 560px;
  color: #ffffff;
  font-size: clamp(2.05rem, 4.25vw, 3.75rem);
  line-height: 0.98;
  text-wrap: balance;
}

.jm-hero--with-media .jm-lead {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.55;
}

.jm-hero--with-media .jm-actions .jm-button {
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(1, 20, 60, 0.24);
}

.jm-hero--with-media .jm-actions .jm-button--primary {
  color: var(--jm-navy);
  background: rgba(255, 255, 255, 0.84);
}

.jm-hero--with-media .jm-actions .jm-button--primary:hover {
  color: var(--jm-navy);
  background: rgba(255, 255, 255, 0.96);
}

.jm-hero--with-media .jm-actions .jm-button--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.jm-hero--with-media .jm-actions .jm-button--secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.jm-hero-media__overlay span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.jm-hero-media__overlay strong {
  color: #ffffff;
  font-family: var(--jm-font-heading);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.jm-hero-media__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.jm-glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: var(--jm-navy);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(1, 20, 60, 0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  font-weight: 800;
  text-decoration: none;
}

.jm-glass-button:hover {
  color: var(--jm-navy);
  background: rgba(255, 255, 255, 0.92);
}

.jm-glass-button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.jm-glass-button--ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.jm-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--jm-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.jm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.jm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--jm-radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.jm-button:hover {
  transform: translateY(-2px);
}

.jm-button--primary {
  color: #ffffff;
  background: var(--jm-navy);
}

.jm-button--primary:hover {
  color: #ffffff;
  background: var(--jm-blue);
}

.jm-button--secondary {
  color: var(--jm-navy);
  background: #ffffff;
  border-color: var(--jm-line);
}

.jm-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.jm-editor-modules {
  display: grid;
  gap: clamp(18px, 2.8vw, 32px);
}

.jm-editor-intro {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(44px, 4.8vw, 56px) clamp(24px, 4vw, 42px) clamp(24px, 4vw, 42px);
  border: 1px solid rgba(220, 230, 244, 0.9);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.74));
  box-shadow: 0 24px 72px rgba(1, 20, 60, 0.08);
}

.jm-editor-intro::before {
  content: "";
  position: absolute;
  inset: clamp(20px, 2.2vw, 24px) auto auto clamp(22px, 2.8vw, 34px);
  width: clamp(72px, 8vw, 92px);
  height: 4px;
  border-radius: 999px;
  background: var(--jm-blue);
  opacity: 0.86;
}

.jm-editor-intro p {
  max-width: 880px;
  margin: 0;
  color: var(--jm-muted);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.78;
}

.jm-editor-module-grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.jm-editor-module {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 5vw, 66px) clamp(20px, 2.8vw, 34px) clamp(20px, 2.8vw, 34px);
  border: 1px solid rgba(220, 230, 244, 0.9);
  border-radius: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 88% 12%, rgba(127, 157, 192, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 255, 0.64));
  box-shadow: 0 26px 78px rgba(1, 20, 60, 0.08);
  backdrop-filter: blur(16px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.jm-editor-module::before {
  content: "";
  position: absolute;
  inset: clamp(24px, 2.4vw, 28px) auto auto clamp(22px, 2.8vw, 34px);
  width: clamp(72px, 8vw, 92px);
  height: 4px;
  border-radius: 999px;
  background: var(--jm-blue);
  opacity: 0.86;
}

.jm-editor-module:hover {
  border-color: rgba(38, 89, 150, 0.28);
  box-shadow: 0 28px 78px rgba(1, 20, 60, 0.12);
  transform: translateY(-3px);
}

.jm-editor-module__inner {
  display: grid;
  gap: clamp(22px, 3.4vw, 52px);
  align-items: center;
}

.jm-editor-module__copy {
  min-width: 0;
}

.jm-editor-module__kicker {
  display: block;
  margin: 0 0 12px;
  color: var(--jm-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jm-editor-module h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
}

.jm-editor-module p:last-child,
.jm-editor-module ul:last-child,
.jm-editor-module ol:last-child {
  margin-bottom: 0;
}

.jm-editor-module ul,
.jm-editor-module ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.jm-editor-module li {
  position: relative;
  padding-left: 28px;
  color: var(--jm-muted);
}

.jm-editor-module li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--jm-blue);
  box-shadow: 0 0 0 5px rgba(38, 89, 150, 0.12);
}

.jm-editor-module__media {
  position: relative;
  justify-self: end;
  overflow: hidden;
  width: min(100%, 400px);
  min-height: clamp(220px, 22vw, 350px);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: clamp(20px, 2.4vw, 30px);
  background: var(--jm-clinical);
  box-shadow: 0 22px 60px rgba(1, 20, 60, 0.13);
}

.jm-editor-module--reverse .jm-editor-module__media {
  justify-self: start;
}

.jm-editor-module__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--jm-image-position, center 38%);
  transition:
    transform 520ms ease,
    filter 220ms ease;
}

.jm-editor-module__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 20, 60, 0.02) 0%, rgba(1, 20, 60, 0.12) 44%, rgba(1, 20, 60, 0.58) 100%);
  pointer-events: none;
}

.jm-editor-module__caption {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 1;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(8, 18, 36, 0.44);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: blur(14px);
}

.jm-editor-module__caption strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-family: var(--jm-font-heading);
  font-size: 1rem;
  line-height: 1.15;
}

.jm-editor-module:hover .jm-editor-module__image {
  filter: saturate(1.04) brightness(0.96);
  transform: scale(1.035);
}

body.page-id-21 .jm-page-shell {
  background:
    linear-gradient(180deg, var(--jm-paper) 0%, #ffffff 48%, var(--jm-paper) 100%);
  background-color: var(--jm-paper);
}

body.page-id-21 .jm-page-shell > .jm-section {
  position: relative;
  z-index: 6;
  margin-top: 0;
  padding-top: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(22px, 3vw, 40px);
  background:
    linear-gradient(180deg, var(--jm-paper) 0%, #ffffff 48%, var(--jm-paper) 100%);
}

body.page-id-21 .jm-page-shell > .jm-section + .jm-section {
  margin-top: 0;
  padding-top: clamp(8px, 1.4vw, 20px);
}

body.page-id-21 .jm-page-shell > .jm-hero--with-media + .jm-section {
  margin-top: -66svh;
  background:
    radial-gradient(circle at 84% 8%, rgba(127, 157, 192, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(247, 250, 255, 0.99) 0%, var(--jm-paper) 100%);
  padding-top: clamp(40px, 5vw, 74px);
  padding-bottom: clamp(10px, 1.6vw, 20px);
}

body.page-id-21 .jm-editor-module {
  padding-top: clamp(46px, 4.2vw, 58px);
}

body.page-id-21 .jm-editor-module__inner {
  gap: clamp(18px, 2.7vw, 40px);
}

body.page-id-21 .jm-editor-module--reverse .jm-editor-module__inner {
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  column-gap: clamp(16px, 1.8vw, 26px);
  justify-content: start;
}

body.page-id-21 .jm-editor-module--reverse .jm-editor-module__media {
  justify-self: end;
  width: min(100%, 400px);
}

body.page-id-21 .jm-editor-module--reverse .jm-editor-module__copy {
  justify-self: start;
  max-width: 620px;
}

.jm-featured-media-section {
  padding-top: clamp(34px, 5vw, 70px);
  padding-bottom: clamp(34px, 6vw, 82px);
  background: #ffffff;
}

.jm-featured-media {
  display: grid;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.jm-featured-media__image {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  margin: 0;
  border: 1px solid var(--jm-line);
  border-radius: 18px;
  background: var(--jm-clinical);
  box-shadow: var(--jm-shadow);
}

.jm-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--jm-image-position, center 40%);
}

.jm-featured-media__copy {
  padding: clamp(8px, 2vw, 18px) 0;
}

.jm-featured-media__copy h2 {
  max-width: 620px;
}

.jm-media-strip-section {
  padding-top: clamp(44px, 7vw, 92px);
  padding-bottom: clamp(56px, 8vw, 112px);
  background:
    radial-gradient(circle at 86% 10%, rgba(127, 157, 192, 0.22), transparent 28%),
    linear-gradient(180deg, var(--jm-paper) 0%, #ffffff 100%);
}

.jm-media-strip {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(58px, 5vw, 70px) clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px);
  border: 1px solid rgba(220, 230, 244, 0.92);
  border-radius: clamp(24px, 3.5vw, 42px);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 30px 90px rgba(1, 20, 60, 0.09);
  backdrop-filter: blur(18px);
}

.jm-media-strip::before {
  content: "";
  position: absolute;
  inset: clamp(24px, 2.4vw, 28px) auto auto clamp(22px, 2.8vw, 34px);
  width: clamp(72px, 8vw, 92px);
  height: 4px;
  border-radius: 999px;
  background: var(--jm-blue);
  opacity: 0.9;
}

.jm-media-strip__copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.jm-media-strip__copy h2 {
  max-width: 660px;
}

.jm-media-strip__copy .jm-lead {
  max-width: 640px;
}

.jm-media-strip__copy > .jm-kicker {
  margin: 0 0 14px;
}

.jm-media-strip__points {
  display: grid;
  gap: 12px;
  margin: clamp(20px, 3vw, 32px) 0 0;
}

.jm-media-strip__point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(220, 230, 244, 0.86);
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.7);
  box-shadow: 0 14px 34px rgba(1, 20, 60, 0.05);
}

a.jm-media-strip__point {
  color: inherit;
  text-decoration: none;
}

.jm-media-strip__point--link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.jm-media-strip__point--link:hover,
.jm-media-strip__point--link:focus {
  transform: translateY(-2px);
  border-color: rgba(38, 89, 150, 0.42);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 44px rgba(1, 20, 60, 0.1);
}

.jm-media-strip__point--link em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--jm-blue);
  font-family: var(--jm-font-heading);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.jm-media-strip__point--link em::after {
  content: ">";
  font-size: 0.9em;
  transition: transform 180ms ease;
}

.jm-media-strip__point--link:hover em::after,
.jm-media-strip__point--link:focus em::after {
  transform: translateX(3px);
}

.jm-media-strip__point span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--jm-navy);
  color: #ffffff;
  font-family: var(--jm-font-heading);
  font-size: 0.82rem;
  font-weight: 800;
}

.jm-media-strip__point strong {
  display: block;
  color: var(--jm-navy);
  font-family: var(--jm-font-heading);
  font-size: 1rem;
  line-height: 1.2;
}

.jm-media-strip__point p {
  margin: 4px 0 0;
  color: var(--jm-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.jm-media-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}

.jm-media-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: clamp(18px, 2.2vw, 28px);
  background: var(--jm-clinical);
  box-shadow: 0 20px 58px rgba(1, 20, 60, 0.12);
  transform: translateZ(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.jm-media-tile--large {
  grid-row: span 2;
  min-height: clamp(360px, 42vw, 580px);
}

.jm-media-tile__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--jm-image-position, center 38%);
  transition:
    transform 520ms ease,
    filter 220ms ease;
}

.jm-media-tile--large .jm-media-tile__image {
  aspect-ratio: 4 / 5;
}

.jm-media-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 20, 60, 0.03) 0%, rgba(1, 20, 60, 0.1) 46%, rgba(1, 20, 60, 0.62) 100%);
  opacity: 0.84;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.jm-media-tile__caption {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 1;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(8, 18, 36, 0.44);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: blur(14px);
}

.jm-media-tile__caption strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-family: var(--jm-font-heading);
  font-size: 1rem;
  line-height: 1.15;
}

.jm-media-tile:hover {
  border-color: rgba(38, 89, 150, 0.32);
  box-shadow: 0 28px 74px rgba(1, 20, 60, 0.16);
  transform: translateY(-4px);
}

.jm-media-tile:hover .jm-media-tile__image {
  filter: saturate(1.04) brightness(0.96);
  transform: scale(1.045);
}

.jm-media-tile:hover::after {
  opacity: 0.42;
}

.jm-visual-placeholder {
  display: grid;
  min-height: 320px;
  padding: 24px;
  place-items: center;
  border: 1px dashed var(--jm-line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(234, 242, 255, 0.9), rgba(255, 255, 255, 0.82));
  color: var(--jm-muted);
}

.jm-visual-placeholder span {
  max-width: 480px;
}

.jm-card,
.jm-step,
.jm-price-row {
  padding: 22px;
  background: var(--jm-paper-soft);
  border: 1px solid var(--jm-line);
  border-radius: var(--jm-radius);
  box-shadow: var(--jm-shadow);
}

.jm-card h3,
.jm-step h3 {
  margin-top: 0;
  color: var(--jm-navy-deep);
}

.jm-muted {
  color: var(--jm-muted);
}

.jm-price-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.jm-price-list h3 {
  margin: 18px 0 4px;
  color: var(--jm-navy-deep);
}

.jm-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.jm-price-row span {
  display: grid;
  gap: 2px;
}

.jm-price-row small {
  color: var(--jm-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.jm-price-row strong {
  color: var(--jm-navy);
  white-space: nowrap;
}

.jm-booking-placeholder {
  padding: clamp(24px, 5vw, 48px);
  background: #ffffff;
  color: var(--jm-ink);
  border: 1px solid var(--jm-line);
  border-radius: var(--jm-radius);
  box-shadow: var(--jm-shadow);
}

.jm-booking-placeholder p {
  color: var(--jm-muted);
}

.jm-booking-page {
  background: linear-gradient(180deg, var(--jm-paper) 0%, #ffffff 42%);
}

.jm-booking-intro {
  display: grid;
  gap: 24px;
  margin-bottom: 26px;
}

.jm-booking-intro h2 {
  max-width: 760px;
}

.jm-booking-intro .jm-lead {
  max-width: 780px;
}

.jm-booking-notes {
  display: grid;
  gap: 10px;
}

.jm-booking-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--jm-line);
  border-radius: var(--jm-radius);
  background: rgba(255, 255, 255, 0.78);
}

.jm-booking-note strong {
  color: var(--jm-navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jm-booking-note span {
  color: var(--jm-muted);
}

.jm-booking-panel {
  max-width: 920px;
  margin: 0 auto;
}

.jm-booking-panel .jma-calendar,
.jm-booking-panel .jma-field input:not([type="hidden"]),
.jm-booking-panel .jma-field select,
.jm-booking-panel .jma-field textarea {
  max-width: none;
}

.jm-booking-panel .jma-calendar {
  margin-top: 2px;
}

.jm-anchor-target {
  height: 1px;
  scroll-margin-top: 96px;
}

.jm-booking-services {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 28px 0 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(127, 157, 192, 0.28);
  border-radius: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(circle at 8% 0%, rgba(127, 157, 192, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 70px rgba(1, 20, 60, 0.08);
  overflow: hidden;
}

.jm-booking-services::before {
  content: "";
  position: absolute;
  inset: 20px auto auto 24px;
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: var(--jm-blue);
}

.jm-booking-services__intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: end;
  padding-top: 18px;
}

.jm-booking-services__intro h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1;
}

.jm-booking-services__intro .jm-lead {
  max-width: 700px;
  margin: 8px 0 0;
  font-size: 1rem;
}

.jm-booking-services__intro .jm-button {
  align-self: start;
  justify-self: start;
}

.jm-booking-services__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.jm-service-choice {
  border: 1px solid var(--jm-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.9));
  box-shadow: 0 12px 30px rgba(1, 20, 60, 0.05);
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.jm-service-choice:hover,
.jm-service-choice:focus-within {
  border-color: rgba(38, 89, 150, 0.42);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(1, 20, 60, 0.1);
}

.jm-service-choice[open] {
  border-color: rgba(38, 89, 150, 0.42);
  background: #ffffff;
}

.jm-service-choice__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.jm-service-choice__summary::-webkit-details-marker {
  display: none;
}

.jm-service-choice__summary-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.jm-service-choice__eyebrow {
  margin: 0 0 2px;
  color: var(--jm-blue);
  font-family: var(--jm-font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.jm-service-choice h3 {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.08;
}

.jm-service-choice__panel {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.jm-service-choice__panel p {
  margin: 0;
  color: var(--jm-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.jm-service-choice__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.jm-service-choice__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(127, 157, 192, 0.28);
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.78);
  color: var(--jm-navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.jm-service-choice__toggle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(127, 157, 192, 0.3);
  border-radius: 999px;
  background: #ffffff;
  color: var(--jm-navy);
  font-family: var(--jm-font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.jm-service-choice[open] .jm-service-choice__toggle {
  transform: rotate(45deg);
  background: var(--jm-navy);
  color: #ffffff;
}

.jm-service-choice__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.jm-service-choice__actions .jm-button {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 0.84rem;
}

.jm-service-choice__more {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--jm-navy);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.jm-service-choice__soon {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--jm-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.jm-service-choice__more:hover,
.jm-service-choice__more:focus {
  color: var(--jm-blue);
}

.jm-booking-steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.jm-assessment-section {
  padding-top: clamp(46px, 7vw, 96px);
  padding-bottom: clamp(46px, 7vw, 96px);
  background:
    radial-gradient(circle at 12% 18%, rgba(127, 157, 192, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--jm-paper) 100%);
}

.jm-assessment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: stretch;
  padding: clamp(42px, 5vw, 64px) clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px);
  border: 1px solid rgba(220, 230, 244, 0.92);
  border-radius: clamp(24px, 3.5vw, 42px);
  background:
    radial-gradient(circle at 88% 12%, rgba(127, 157, 192, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 30px 90px rgba(1, 20, 60, 0.09);
  backdrop-filter: blur(18px);
}

.jm-assessment::before {
  content: "";
  position: absolute;
  inset: clamp(24px, 2.4vw, 28px) auto auto clamp(22px, 2.8vw, 34px);
  width: clamp(72px, 8vw, 92px);
  height: 4px;
  border-radius: 999px;
  background: var(--jm-blue);
  opacity: 0.9;
}

.jm-assessment__intro {
  position: relative;
  z-index: 1;
  align-self: center;
}

.jm-assessment__intro > .jm-kicker {
  margin: 0 0 14px;
}

.jm-assessment__intro h2 {
  max-width: 560px;
}

.jm-assessment__intro .jm-lead {
  max-width: 590px;
}

.jm-assessment__status {
  display: inline-flex;
  min-height: 30px;
  margin-top: clamp(18px, 3vw, 30px);
  padding: 7px 12px;
  border: 1px solid rgba(38, 89, 150, 0.16);
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.82);
  color: var(--jm-blue);
  font-family: var(--jm-font-heading);
  font-size: 0.82rem;
  font-weight: 800;
}

.jm-assessment__panel {
  position: relative;
  min-height: 430px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(220, 230, 244, 0.9);
  border-radius: clamp(20px, 2.6vw, 30px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.78));
  box-shadow: 0 22px 58px rgba(1, 20, 60, 0.075);
  overflow: hidden;
}

.jm-assessment__panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -34% 24%;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(38, 89, 150, 0.13), transparent 68%);
  pointer-events: none;
}

.jm-assessment__pane {
  position: relative;
  z-index: 1;
  animation: jmPaneIn 260ms ease both;
}

.jm-assessment__pane[hidden] {
  display: none;
}

.jm-assessment__pane h3 {
  margin: 0 0 18px;
  color: var(--jm-navy);
  font-family: var(--jm-font-heading);
  font-size: clamp(1.28rem, 2.4vw, 1.85rem);
  line-height: 1.12;
}

.jm-assessment__choices {
  display: grid;
  gap: 12px;
}

.jm-assessment__choices button,
.jm-assessment__back {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(220, 230, 244, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--jm-navy);
  font-family: var(--jm-font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(1, 20, 60, 0.045);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.jm-assessment__choices button {
  position: relative;
  min-height: 58px;
  padding: 15px 54px 15px 16px;
}

.jm-assessment__choices button::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(38, 89, 150, 0.18);
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.88);
  color: var(--jm-blue);
  font-size: 1.28rem;
  line-height: 1;
  transform: translateY(-50%);
}

.jm-assessment__choices button:hover,
.jm-assessment__choices button:focus,
.jm-assessment__back:hover,
.jm-assessment__back:focus {
  border-color: rgba(38, 89, 150, 0.34);
  background: #ffffff;
  color: var(--jm-navy);
  box-shadow: 0 20px 48px rgba(1, 20, 60, 0.09);
  transform: translateY(-2px);
}

.jm-assessment__choices button:hover::after,
.jm-assessment__choices button:focus::after {
  background: var(--jm-blue);
  color: #ffffff;
}

.jm-assessment__back {
  display: inline-flex;
  width: auto;
  margin-top: 16px;
  padding: 11px 15px;
  color: var(--jm-blue);
}

.jm-assessment__result {
  display: grid;
  gap: 14px;
}

.jm-assessment__result > span {
  color: var(--jm-blue);
  font-family: var(--jm-font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.jm-assessment__result h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.jm-assessment__result p {
  max-width: 660px;
  margin: 0;
  color: var(--jm-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.jm-assessment__result .jm-actions {
  margin-top: 8px;
}

@keyframes jmPaneIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.jm-faq {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: clamp(12px, 1.8vw, 18px);
  border: 1px solid rgba(220, 230, 244, 0.86);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 92% 8%, rgba(127, 157, 192, 0.2), transparent 32%),
    rgba(255, 255, 255, 0.56);
  box-shadow: 0 30px 86px rgba(1, 20, 60, 0.08);
  backdrop-filter: blur(16px);
}

.jm-faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 244, 0.9);
  border-radius: clamp(16px, 2vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.74));
  box-shadow: 0 14px 34px rgba(1, 20, 60, 0.055);
  backdrop-filter: blur(14px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.jm-faq-item:hover,
.jm-faq-item.is-open {
  border-color: rgba(38, 89, 150, 0.28);
  box-shadow: 0 22px 58px rgba(1, 20, 60, 0.1);
}

.jm-faq-item.is-open::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--jm-blue), rgba(127, 157, 192, 0.38), transparent);
}

.jm-faq-question {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: clamp(18px, 2.2vw, 26px);
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--jm-navy) !important;
  font-family: var(--jm-font-heading);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  font-weight: 800;
  line-height: 1.22;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
}

.jm-faq-question:hover,
.jm-faq-question:focus,
.jm-faq-question:active {
  background: transparent !important;
  color: var(--jm-navy) !important;
  box-shadow: none !important;
}

.jm-faq-question:focus-visible {
  outline: 3px solid rgba(38, 89, 150, 0.24);
  outline-offset: -6px;
}

.jm-faq-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--jm-line);
  border-radius: 999px;
  background: var(--jm-surface);
  color: var(--jm-navy);
  font-size: 1.35rem;
  line-height: 1;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.jm-faq-item.is-open .jm-faq-icon {
  background: var(--jm-blue);
  color: #ffffff;
  transform: rotate(45deg);
}

.jm-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.jm-faq-item.is-open .jm-faq-answer {
  grid-template-rows: 1fr;
}

.jm-faq-answer-inner {
  overflow: hidden;
}

.jm-faq-answer-inner p {
  margin: 0;
  padding: 0 clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px);
  color: var(--jm-muted);
  line-height: 1.7;
}

.jm-related-section {
  padding-top: clamp(34px, 5vw, 72px);
  padding-bottom: clamp(42px, 6vw, 86px);
  background:
    radial-gradient(circle at 12% 18%, rgba(127, 157, 192, 0.16), transparent 30%),
    linear-gradient(180deg, var(--jm-paper) 0%, #ffffff 100%);
}

.jm-related-head {
  max-width: 780px;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.jm-related-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
}

.jm-service-nav {
  display: grid;
  gap: 10px;
}

.jm-service-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 230, 244, 0.92);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.74));
  color: var(--jm-navy);
  font-family: var(--jm-font-heading);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(1, 20, 60, 0.045);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.jm-service-nav a::after {
  content: "›";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(38, 89, 150, 0.18);
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.78);
  color: var(--jm-blue);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.jm-service-nav a:hover,
.jm-service-nav a:focus {
  border-color: rgba(38, 89, 150, 0.32);
  background:
    linear-gradient(135deg, #ffffff, rgba(234, 242, 255, 0.82));
  color: var(--jm-navy);
  box-shadow: 0 22px 52px rgba(1, 20, 60, 0.09);
  transform: translateY(-2px);
}

.jm-service-nav a:hover::after,
.jm-service-nav a:focus::after {
  background: var(--jm-blue);
  color: #ffffff;
  transform: translateX(2px);
}

.jm-home-draft .jm-assessment-section {
  padding-top: clamp(54px, 8vw, 108px);
}

.jm-home-draft .jm-section .jm-wrap {
  width: min(calc(100% - 40px), 1320px);
}

.jm-home-section-head {
  max-width: 820px;
  margin-bottom: clamp(22px, 4vw, 38px);
}

.jm-home-section-head h2 {
  margin-bottom: 14px;
}

.jm-home-pathways-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(127, 157, 192, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--jm-paper) 100%);
}

.jm-home-pathways {
  display: grid;
  gap: 14px;
}

.jm-home-pathway {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 174px;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid rgba(220, 230, 244, 0.9);
  border-radius: clamp(22px, 2.8vw, 30px);
  background:
    radial-gradient(circle at 90% 12%, rgba(127, 157, 192, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.72));
  color: var(--jm-navy);
  text-decoration: none;
  box-shadow: 0 22px 62px rgba(1, 20, 60, 0.065);
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.jm-home-pathway::before {
  content: "";
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: var(--jm-blue);
  opacity: 0.86;
}

.jm-home-pathway::after {
  content: "›";
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(38, 89, 150, 0.18);
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.82);
  color: var(--jm-blue);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.jm-home-pathway span {
  margin-top: 10px;
  color: var(--jm-blue);
  font-family: var(--jm-font-heading);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jm-home-pathway strong {
  max-width: 320px;
  color: var(--jm-navy);
  font-family: var(--jm-font-heading);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.06;
}

.jm-home-pathway em {
  max-width: 360px;
  margin-right: 34px;
  color: var(--jm-muted);
  font-style: normal;
  line-height: 1.55;
}

.jm-home-pathway:hover,
.jm-home-pathway:focus {
  border-color: rgba(38, 89, 150, 0.32);
  color: var(--jm-navy);
  box-shadow: 0 28px 78px rgba(1, 20, 60, 0.12);
  transform: translateY(-4px);
}

.jm-home-pathway:hover::after,
.jm-home-pathway:focus::after {
  background: var(--jm-blue);
  color: #ffffff;
  transform: translateX(3px);
}

.jm-home-trust-section {
  background:
    radial-gradient(circle at 82% 16%, rgba(127, 157, 192, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--jm-paper) 100%);
}

.jm-home-trust {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(58px, 5vw, 72px) clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px);
  border: 1px solid rgba(220, 230, 244, 0.92);
  border-radius: clamp(24px, 3.5vw, 42px);
  background:
    radial-gradient(circle at 10% 8%, rgba(127, 157, 192, 0.17), transparent 30%),
    rgba(255, 255, 255, 0.66);
  box-shadow: 0 30px 90px rgba(1, 20, 60, 0.09);
  backdrop-filter: blur(18px);
}

.jm-home-trust::before {
  content: "";
  position: absolute;
  inset: clamp(24px, 2.4vw, 28px) auto auto clamp(22px, 2.8vw, 34px);
  width: clamp(72px, 8vw, 92px);
  height: 4px;
  border-radius: 999px;
  background: var(--jm-blue);
}

.jm-home-trust__copy {
  max-width: 720px;
}

.jm-home-trust__cards {
  display: grid;
  gap: 12px;
}

.jm-home-trust-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(220, 230, 244, 0.9);
  border-radius: 20px;
  background: rgba(247, 250, 255, 0.72);
  box-shadow: 0 14px 34px rgba(1, 20, 60, 0.05);
}

.jm-home-trust-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--jm-navy);
  color: #ffffff;
  font-family: var(--jm-font-heading);
  font-size: 0.78rem;
  font-weight: 800;
}

.jm-home-trust-card h3 {
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
}

.jm-home-trust-card p {
  margin: 0;
  color: var(--jm-muted);
}

.jm-home-location-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(127, 157, 192, 0.18), transparent 28%),
    linear-gradient(180deg, var(--jm-paper) 0%, #ffffff 100%);
}

.jm-home-location {
  margin-inline: auto;
}

.jm-footer-cta {
  padding: 44px 0;
  background: var(--jm-navy);
  color: #ffffff;
}

.jm-footer-cta .jm-lead {
  color: rgba(255, 255, 255, 0.78);
}

.jm-site-footer {
  position: relative;
  padding: clamp(54px, 7vw, 86px) 0 26px;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(1, 20, 60, 0.98), rgba(20, 35, 116, 0.96)),
    var(--jm-navy);
}

.jm-site-footer h2,
.jm-site-footer strong,
.jm-site-footer a {
  color: #ffffff;
}

.jm-site-footer p,
.jm-site-footer span,
.jm-site-footer li {
  color: rgba(255, 255, 255, 0.76);
}

.jm-site-footer .jm-kicker {
  color: var(--jm-blue-soft);
}

.jm-site-footer .jm-button--primary {
  color: var(--jm-navy);
  background: #ffffff;
}

.jm-site-footer .jm-button--primary:hover {
  color: #ffffff;
  background: var(--jm-blue);
}

.jm-site-footer .jm-button--secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.jm-site-footer__top,
.jm-site-footer__nav,
.jm-site-footer__bottom {
  display: grid;
  gap: 24px;
}

.jm-site-footer__brand h2 {
  max-width: 680px;
  margin: 0;
  color: #ffffff;
}

.jm-site-footer__logo {
  display: block;
  width: min(180px, 58vw);
  height: auto;
  margin-bottom: 22px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.jm-site-footer__brand p {
  max-width: 560px;
  margin-top: 12px;
}

.jm-site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.jm-site-footer__contact {
  display: grid;
  gap: 14px;
}

.jm-site-footer__contact > div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--jm-radius);
  background: rgba(255, 255, 255, 0.06);
}

.jm-site-footer__contact strong,
.jm-site-footer__nav strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jm-site-footer__nav {
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.jm-site-footer__menu {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.jm-site-footer__menu a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.jm-site-footer__menu a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.jm-site-footer__bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.jm-site-footer__bottom p {
  margin: 0;
}

#colophon {
  display: none;
}

@media (min-width: 760px) {
  .jm-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jm-home-pathways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jm-home-trust {
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
    align-items: center;
  }

  .jm-booking-services__intro {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .jm-booking-intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: end;
  }

  .jm-booking-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jm-hero-grid,
  .jm-split,
  .jm-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .jm-hero--with-media .jm-hero-grid {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .jm-featured-media {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  }

  .jm-media-strip {
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  }

  .jm-editor-module--with-media .jm-editor-module__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  }

  .jm-editor-module--reverse.jm-editor-module--with-media .jm-editor-module__inner {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  }

  .jm-editor-module--reverse .jm-editor-module__media {
    order: -1;
  }

  .jm-site-footer__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
  }

  .jm-site-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jm-site-footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1080px) {
  .jm-card-grid.jm-card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .jm-home-pathways {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1500px) {
  .jm-home-draft .jm-media-strip,
  .jm-home-draft .jm-home-trust,
  .jm-home-draft .jm-home-location {
    max-width: 1320px;
  }
}

@media (max-width: 759px) {
  .jm-hero--with-media {
    min-height: 150svh;
  }

  .jm-hero--with-media .jm-hero-grid {
    min-height: 100svh;
    align-items: end;
    transform:
      translateY(calc(var(--jm-hero-progress) * -8px));
  }

  .jm-page-shell > .jm-hero--with-media + * {
    margin-top: -60svh;
    padding-top: clamp(42px, 10vw, 64px);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -22px 54px rgba(1, 20, 60, 0.13);
  }

  .jm-hero--with-media .jm-hero-media::before {
    background:
      linear-gradient(180deg, rgba(5, 12, 24, 0.08) 0%, rgba(5, 12, 24, 0.18) 42%, rgba(5, 12, 24, 0.72) 100%),
      linear-gradient(90deg, rgba(5, 12, 24, 0.44) 0%, rgba(5, 12, 24, 0.18) 58%, rgba(5, 12, 24, 0.05) 100%);
  }

  .jm-hero-media__image--back {
    inset: -3%;
    width: 106%;
    height: 106%;
    min-height: 106%;
    object-position: var(--jm-hero-mobile-position, 70% center);
    filter: blur(14px) brightness(0.78) saturate(0.92);
  }

  .jm-hero-media__image--front {
    object-position: var(--jm-hero-mobile-position, 70% center);
    filter: brightness(0.99) saturate(1.03) contrast(1.02);
    transform: translateY(calc(var(--jm-hero-progress) * -14px)) scale(calc(1.03 - (var(--jm-hero-progress) * 0.01)));
  }

  .jm-editor-module__image,
  .jm-featured-image,
  .jm-media-tile__image {
    object-position: var(--jm-image-mobile-position, var(--jm-image-position, center 38%));
  }

  .jm-home-draft .jm-section .jm-wrap {
    width: min(calc(100% - 24px), 1320px);
  }

  .jm-hero--with-media .jm-hero-content {
    max-width: calc(100% - 28px);
    margin: 0 14px clamp(102px, 18vh, 148px);
    padding: clamp(18px, 5.8vw, 26px);
    border-radius: 24px;
    transform: translateY(calc(var(--jm-hero-progress) * -40px));
  }

  .jm-hero--with-media .jm-kicker {
    margin-bottom: 10px;
    font-size: 0.7rem;
  }

  .jm-hero--with-media h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 11vw, 3.15rem);
    line-height: 0.98;
  }

  .jm-hero--with-media .jm-lead {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .jm-hero--with-media .jm-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .jm-hero--with-media .jm-actions .jm-button {
    min-height: 44px;
    padding: 11px 14px;
  }

  .jm-editor-intro {
    padding-top: 50px;
  }

  .jm-editor-module {
    padding-top: 64px;
  }

  .jm-editor-intro::before {
    inset: 21px auto auto 22px;
    width: 72px;
  }

  .jm-editor-module::before {
    inset: 24px auto auto 22px;
    width: 72px;
  }

  .jm-editor-module__kicker {
    margin-bottom: 16px;
  }

  .jm-editor-module__media {
    justify-self: stretch;
    width: 100%;
    min-height: 240px;
  }

  .jm-editor-module--reverse .jm-editor-module__media {
    justify-self: stretch;
    order: 0;
  }

  body.page-id-21 .jm-page-shell > .jm-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body.page-id-21 .jm-page-shell > .jm-section + .jm-section {
    padding-top: 8px;
  }

  body.page-id-21 .jm-editor-module {
    padding-top: 58px;
  }

  .jm-booking-services {
    gap: 14px;
    margin: 24px 0 20px;
    padding: 48px 14px 14px;
    border-radius: 24px;
  }

  .jm-booking-services::before {
    inset: 20px auto auto 18px;
    width: 68px;
  }

  .jm-booking-services__intro {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 0;
  }

  .jm-booking-services__intro h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .jm-booking-services__intro .jm-lead {
    margin-top: 6px;
    font-size: 0.96rem;
  }

  .jm-service-choice {
    border-radius: 18px;
  }

  .jm-service-choice__summary {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }

  .jm-service-choice__summary-side {
    justify-content: space-between;
    min-width: 0;
  }

  .jm-service-choice__panel {
    padding: 0 13px 13px;
  }

  .jm-service-choice__actions {
    align-items: stretch;
  }

  .jm-service-choice__actions .jm-button,
  .jm-service-choice__more,
  .jm-service-choice__soon {
    justify-content: center;
    width: 100%;
  }

  .jm-media-strip__grid {
    grid-template-columns: 1fr;
  }

  .jm-media-tile,
  .jm-media-tile--large {
    min-height: 240px;
  }

  .jm-media-strip {
    padding: 64px 18px 18px;
    border-radius: 28px;
  }

  .jm-media-strip::before {
    inset: 24px auto auto 22px;
    width: 72px;
  }

  .jm-media-strip__points {
    gap: 10px;
  }

  .jm-media-tile--large .jm-media-tile__image {
    aspect-ratio: 4 / 3;
  }

  .jm-assessment {
    grid-template-columns: 1fr;
    padding: 64px 18px 18px;
    border-radius: 28px;
  }

  .jm-assessment::before {
    inset: 24px auto auto 22px;
    width: 72px;
  }

  .jm-assessment__panel {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .jm-assessment__choices button {
    min-height: 54px;
    padding: 14px 48px 14px 14px;
  }

  .jm-assessment__result .jm-actions {
    align-items: stretch;
  }

  .jm-home-pathway {
    min-height: 0;
    padding: 20px;
  }

  .jm-home-trust {
    padding: 64px 18px 18px;
    border-radius: 28px;
  }

  .jm-home-trust::before {
    inset: 24px auto auto 22px;
    width: 72px;
  }
}
