/* Public story pages: services, conditions and contact.
   The visual language intentionally echoes the site's About page: warm paper,
   dashed frames, two-tone headings and small organic gestures. */

/* Seamless cream background through the entire wrapper chain so
   there is no white gap between the header and .story-page content. */
body.story-public-page,
body.story-public-page .cmsmasters-main,
body.story-public-page .cmsmasters-main__outer,
body.story-public-page .cmsmasters-main__inner,
body.story-public-page .cmsmasters-content-wrap,
body.story-public-page .cmsmasters-content {
  background: #fff5e9;
}

.story-page {
  --story-navy: #2c4073;
  --story-ink: #46506a;
  --story-muted: #566078;
  --story-cream: #fff5e9;
  --story-paper: #fffaf3;
  --story-paper-deep: #f8eddf;
  --story-blue: #7792cd;
  --story-blue-soft: #dce5f6;
  --story-teal: #2090a0;
  --story-teal-soft: #cce8e6;
  --story-coral: #ee6f28;
  --story-coral-soft: #f9d9c6;
  --story-lime: #e7f1a8;
  --story-line: #7a8085;
  --story-font: var(--e-global-typography-primary-font-family, "Manrope", sans-serif);
  background: var(--story-cream);
  color: var(--story-ink);
  overflow: clip;
  padding: clamp(1.25rem, 3.5vw, 3rem) 0 clamp(4rem, 8vw, 7rem);
}

.story-page,
.story-page * {
  box-sizing: border-box;
}

.story-page img,
.story-page svg {
  display: block;
}

.story-shell {
  width: min(100% - clamp(2rem, 7vw, 7.5rem), 82rem);
  margin-inline: auto;
}

.story-shell--hero {
  width: min(100% - clamp(1.5rem, 4vw, 4rem), 92rem);
  margin-inline: auto;
}

.story-shell--cta {
  margin-top: clamp(4.5rem, 8vw, 7.5rem);
}

.story-eyebrow,
.story-kicker {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.4;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.story-hero {
  background: var(--story-paper);
  border: 1px dashed color-mix(in srgb, var(--story-line) 68%, transparent);
  border-radius: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: clamp(31rem, 45vw, 39rem);
  overflow: hidden;
  position: relative;
}

.story-hero__media {
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.story-hero__media::after {
  border: 1px dashed rgb(255 255 255 / .78);
  border-radius: 1.25rem;
  content: "";
  inset: 1.25rem;
  pointer-events: none;
  position: absolute;
}

.story-hero__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.story-hero--right .story-hero__media {
  order: 2;
}

.story-hero--right .story-hero__media img {
  object-position: 56% center;
}

.story-hero--left .story-hero__media img {
  object-position: 50% center;
}

.story-hero__copy {
  align-self: center;
  isolation: isolate;
  max-width: 42rem;
  padding: clamp(3rem, 4.5vw, 4.5rem) clamp(2.25rem, 4.5vw, 4.5rem);
  position: relative;
}

.story-hero__copy::before {
  background: var(--story-lime);
  border-radius: 56% 44% 62% 38% / 44% 58% 42% 56%;
  content: "";
  height: 7.5rem;
  opacity: .5;
  position: absolute;
  right: 4%;
  top: 8%;
  transform: rotate(12deg);
  width: 8.5rem;
  z-index: -1;
}

.story-tone--blue .story-hero__copy::before {
  background: var(--story-blue-soft);
}

.story-tone--coral .story-hero__copy::before {
  background: var(--story-coral-soft);
}

.story-breath-mark {
  height: auto;
  margin: 0 0 1.25rem auto;
  width: clamp(7rem, 11vw, 10.25rem);
}

.story-breath-mark path,
.story-breath-mark circle,
.story-service-feature__breath path,
.story-condition-item__breath path {
  fill: none;
  stroke: var(--story-coral);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.story-breath-mark path,
.story-breath-mark circle {
  animation: story-line-draw 900ms cubic-bezier(.22, 1, .36, 1) 180ms both;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

@keyframes story-line-draw {
  to { stroke-dashoffset: 0; }
}

.story-breath-mark path:nth-child(2),
.story-breath-mark circle:nth-child(2) {
  animation-delay: 400ms;
}

.story-breath-mark circle:nth-child(3) { animation-delay: 550ms; }
.story-breath-mark circle:nth-child(4) { animation-delay: 700ms; }
.story-breath-mark circle:nth-child(5) { animation-delay: 850ms; }

.story-hero h1 {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: clamp(2.3rem, 3.3vw, 3.1rem);
  font-weight: 760;
  hyphens: none;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 0;
  max-width: 16ch;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.story-hero h1 span {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}

.story-hero h1 .story-hero__accent {
  color: var(--story-teal);
}

.story-tone--blue h1 .story-hero__accent {
  color: var(--story-blue);
}

.story-tone--coral h1 .story-hero__accent {
  color: var(--story-coral);
}

.story-hero__description {
  color: var(--story-ink);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  margin: 1.75rem 0 0;
  max-width: 37rem;
}

.story-hero__shape {
  border: 2px solid var(--story-paper);
  border-radius: 50%;
  bottom: -2rem;
  height: 8rem;
  pointer-events: none;
  position: absolute;
  right: -1.5rem;
  width: 8rem;
}

.story-hero__shape--two {
  bottom: -3.25rem;
  height: 11rem;
  right: 3.75rem;
  width: 11rem;
}

.story-arrow-link {
  align-items: center;
  color: var(--story-navy);
  display: inline-flex;
  font-family: var(--story-font);
  font-size: .94rem;
  font-weight: 750;
  gap: .65rem;
  margin-top: 1.75rem;
  min-height: 2.75rem;
  text-decoration: underline;
  text-decoration-color: var(--story-coral);
  text-decoration-thickness: 2px;
  text-underline-offset: .35rem;
}

.story-arrow-link svg,
.story-button svg,
.story-contact-step > svg,
.story-service-row > svg,
.story-condition-item__arrow {
  fill: none;
  flex: 0 0 auto;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
  width: 1.25rem;
}

.story-arrow-link:hover svg,
.story-button:hover svg,
.story-contact-step:hover > svg,
.story-service-row:hover > svg,
.story-condition-item:hover .story-condition-item__arrow {
  transform: translateX(.25rem);
}

.story-section-heading {
  margin: clamp(4.75rem, 9vw, 8rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  max-width: 48rem;
}

.story-section-heading--offset {
  margin-left: clamp(0rem, 7vw, 6rem);
}

.story-section-heading h2,
.story-contact-form-panel h2,
.story-contact-location h2,
.story-booking h2 {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 0;
}

.story-section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.story-section-heading > p:last-child {
  color: var(--story-ink);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 1.25rem 0 0;
  max-width: 42rem;
}

/* Services directory */
.story-service-groups {
  border-top: 1px dashed var(--story-line);
}

.story-service-group {
  border-bottom: 1px dashed var(--story-line);
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(13rem, .58fr) minmax(0, 1.42fr);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.story-service-group__heading {
  align-self: start;
}

.story-group-number {
  color: var(--story-coral);
  display: block;
  font-family: var(--story-font);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 1.25rem;
}

.story-service-group__heading h3,
.story-condition-group__heading h3 {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: clamp(1.65rem, 2.7vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 0;
}

.story-service-group__heading p,
.story-condition-group__heading p {
  color: var(--story-muted);
  line-height: 1.65;
  margin: .8rem 0 0;
}

.story-service-feature {
  background: var(--story-blue-soft);
  border: 1px dashed var(--story-line);
  border-radius: 1.25rem;
  color: var(--story-ink);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(12rem, .9fr);
  min-height: 19rem;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.story-service-group:nth-child(3n + 2) .story-service-feature {
  background: var(--story-teal-soft);
}

.story-service-group:nth-child(3n + 3) .story-service-feature {
  background: var(--story-coral-soft);
}

.story-service-feature:hover {
  border-color: var(--story-navy);
  transform: translateY(-.2rem);
}

.story-service-feature__copy {
  align-self: center;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.25rem);
}

.story-service-feature__copy > strong {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -.03em;
  line-height: 1.15;
}

.story-service-feature__copy > strong + span {
  line-height: 1.65;
  margin-top: 1rem;
}

.story-arrow-link--inside {
  align-self: flex-start;
  margin-top: 1.5rem;
}

.story-service-feature__media {
  min-height: 19rem;
  overflow: hidden;
}

.story-service-feature__media--placeholder {
  background: var(--story-sand, #f5efe6);
}

.story-service-feature__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.story-service-feature:hover .story-service-feature__media img {
  transform: scale(1.035);
}

.story-service-feature__breath {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 15rem;
  padding: 2rem;
}

.story-service-feature__breath svg {
  height: auto;
  width: min(100%, 13rem);
}

.story-service-list {
  margin-top: 1.25rem;
}

.story-service-row {
  align-items: start;
  border-bottom: 1px dashed color-mix(in srgb, var(--story-line) 62%, transparent);
  color: var(--story-ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  min-height: 5.5rem;
  padding: 1.35rem .25rem;
  text-decoration: none;
}

.story-service-row__number {
  color: var(--story-coral);
  font-family: var(--story-font);
  font-size: .72rem;
  font-weight: 800;
  padding-top: .2rem;
}

.story-service-row__copy {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.story-service-row__copy strong {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: 1.05rem;
  line-height: 1.35;
}

.story-service-row__copy span {
  color: var(--story-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.story-service-row > svg {
  color: var(--story-navy);
  margin-top: .05rem;
}

.story-service-row:hover strong {
  color: var(--story-teal);
}

/* Conditions directory */
.story-condition-groups {
  display: grid;
  gap: clamp(4rem, 8vw, 7rem);
}

.story-condition-group {
  border-top: 1px dashed var(--story-line);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(15rem, .7fr) minmax(0, 1.55fr);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.story-condition-group__heading {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
}

.story-condition-group__heading .story-group-number {
  padding-top: .35rem;
}

.story-condition-group__heading p {
  max-width: 25rem;
}

.story-condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.story-condition-item {
  background: var(--story-paper);
  border: 1px dashed color-mix(in srgb, var(--story-line) 72%, transparent);
  border-radius: 1rem;
  color: var(--story-ink);
  display: grid;
  flex: 1 1 17rem;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  min-height: 12.5rem;
  overflow: hidden;
  padding: 1.75rem;
  position: relative;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.story-condition-item--featured {
  flex-basis: 27rem;
}

.story-tone--lime .story-condition-item--featured {
  background: color-mix(in srgb, var(--story-lime) 67%, var(--story-paper));
}

.story-tone--blue .story-condition-item--featured {
  background: var(--story-blue-soft);
}

.story-tone--coral .story-condition-item--featured {
  background: var(--story-coral-soft);
}

.story-condition-item:hover {
  border-color: var(--story-navy);
  transform: translateY(-.2rem);
}

.story-condition-item__index {
  color: var(--story-coral);
  font-size: .72rem;
  font-weight: 800;
  padding-top: .25rem;
}

.story-condition-item__copy {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  position: relative;
  z-index: 1;
}

.story-condition-item__copy strong {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.3;
}

.story-condition-item__copy > span {
  color: var(--story-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.story-condition-item__breath {
  bottom: -0.35rem;
  height: auto;
  opacity: .16;
  position: absolute;
  right: 1.5rem;
  width: 7.5rem;
}

.story-condition-item__arrow {
  color: var(--story-navy);
}

/* Contact guide, form and location */
.story-contact-guide {
  border: 1px dashed var(--story-line);
  border-radius: 1.25rem;
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr;
  overflow: hidden;
}

.story-contact-step {
  color: var(--story-ink);
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  position: relative;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.story-contact-step + .story-contact-step {
  border-left: 1px dashed var(--story-line);
}

.story-contact-step--primary {
  background: var(--story-lime);
}

.story-contact-step:not(.story-contact-step--primary):hover {
  background: var(--story-blue-soft);
}

.story-contact-step__number {
  color: var(--story-coral);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 2.5rem;
}

.story-contact-step__label {
  color: var(--story-muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .09em;
  margin-bottom: .6rem;
  text-transform: uppercase;
}

.story-contact-step strong {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.story-contact-step strong + span {
  color: var(--story-ink);
  font-size: .9rem;
  line-height: 1.55;
  margin-top: .75rem;
  max-width: 26rem;
}

.story-contact-step > svg {
  bottom: 2rem;
  color: var(--story-navy);
  position: absolute;
  right: 2rem;
}

.story-contact-main {
  align-items: stretch;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.48fr) minmax(19rem, .92fr);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.story-contact-form-panel,
.story-contact-location {
  border: 1px dashed var(--story-line);
  border-radius: 1.25rem;
  overflow: hidden;
}

.story-contact-form-panel {
  background: var(--story-paper);
  padding: clamp(2rem, 5vw, 4.5rem);
}

.story-contact-form-panel h2,
.story-contact-location h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.story-contact-form-panel__intro {
  color: var(--story-ink);
  line-height: 1.7;
  margin: 1rem 0 2rem;
  max-width: 39rem;
}

.story-form-alert {
  border: 1px solid currentColor;
  border-radius: .65rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding: .9rem 1rem;
}

.story-form-alert--success {
  background: #edf5df;
  color: #315c28;
}

.story-form-alert--error {
  background: #fff0ed;
  color: #8a2d28;
}

.story-contact-form {
  display: grid;
  gap: 1.25rem;
}

.story-form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-form-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.story-form-field label {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: .88rem;
  font-weight: 750;
}

.story-form-field label > span[aria-hidden="true"] {
  color: #a43827;
}

.story-form-optional {
  color: var(--story-muted);
  font-size: .8rem;
  font-weight: 500;
}

.story-form-field input,
.story-form-field textarea {
  appearance: none;
  background: var(--story-cream);
  border: 1px solid color-mix(in srgb, var(--story-line) 62%, transparent);
  border-radius: .7rem;
  color: var(--story-navy);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 3.25rem;
  padding: .8rem .95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.story-form-field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.story-form-field input::placeholder,
.story-form-field textarea::placeholder {
  color: #74798a;
  opacity: 1;
}

.story-form-field input:focus,
.story-form-field textarea:focus {
  border-color: var(--story-navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--story-blue) 35%, transparent);
  outline: 0;
}

.story-form-field [aria-invalid="true"] {
  border-color: #a43827;
}

.story-form-error {
  color: #8a2d28;
  font-size: .82rem;
  line-height: 1.45;
  margin: 0;
}

.story-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.25rem;
  margin-top: .5rem;
}

.story-form-actions > p {
  color: var(--story-muted);
  font-size: .78rem;
  line-height: 1.45;
  margin: 0;
}

.story-contact-location {
  background: var(--story-blue-soft);
  display: flex;
  flex-direction: column;
}

.story-contact-location__map {
  min-height: 21rem;
  overflow: hidden;
}

.story-contact-location iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 21rem;
  width: 100%;
}

.story-contact-location__details {
  padding: clamp(1.75rem, 4vw, 3rem);
}

.story-contact-location__details > p:not(.story-eyebrow) {
  color: var(--story-ink);
  line-height: 1.65;
  margin: 1rem 0 0;
}

.story-contact-location__phones {
  display: grid;
  gap: .45rem;
  margin-top: 1.25rem;
}

.story-contact-location__phones a {
  color: var(--story-navy);
  font-size: .9rem;
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, var(--story-coral) 55%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: .2rem;
}

.story-contact-location__phones a:hover {
  color: var(--story-coral);
}

/* Shared closing call to action */
.story-booking {
  background: var(--story-blue-soft);
  border: 1px dashed var(--story-line);
  border-radius: 1.5rem;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem);
  position: relative;
}

.story-booking__copy,
.story-booking__actions {
  position: relative;
  z-index: 1;
}

.story-booking h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 15ch;
}

.story-booking__copy > p:last-child {
  line-height: 1.7;
  margin: 1.25rem 0 0;
  max-width: 42rem;
}

.story-booking__actions {
  align-items: stretch;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.story-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: .75rem;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--story-font);
  font-size: .95rem;
  font-weight: 750;
  gap: .65rem;
  justify-content: center;
  min-height: 3.25rem;
  padding: .85rem 1.2rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.story-button--primary {
  background: var(--story-navy);
  color: #fff;
}

.story-page .story-button--primary {
  background-color: var(--story-navy) !important;
  color: #fff !important;
}

.story-button--primary:hover {
  background: #1f315f;
  color: #fff;
  transform: translateY(-.12rem);
}

.story-button--quiet {
  border-color: var(--story-navy);
  color: var(--story-navy);
}

.story-button--quiet:hover {
  background: var(--story-paper);
  color: var(--story-navy);
}

.story-booking__shape {
  height: auto;
  pointer-events: none;
  position: absolute;
  width: 13rem;
}

.story-booking__shape--left {
  bottom: -5rem;
  left: -2.25rem;
  opacity: .75;
  transform: rotate(18deg);
}

.story-booking__shape--right {
  right: -3rem;
  top: -4.5rem;
  transform: rotate(-18deg);
}

.story-contact-submit[disabled] {
  cursor: wait;
  opacity: .78;
  transform: none;
}

.story-submit-spinner {
  animation: story-spin .7s linear infinite;
  border: 2px solid rgb(255 255 255 / .45);
  border-radius: 50%;
  border-top-color: #fff;
  display: none;
  height: 1rem;
  width: 1rem;
}

.story-contact-form.is-submitting .story-submit-spinner {
  display: block;
}

.story-contact-form.is-submitting .story-contact-submit > svg {
  display: none;
}

@keyframes story-spin {
  to { transform: rotate(1turn); }
}

.story-empty {
  border: 1px dashed var(--story-line);
  border-radius: 1rem;
  color: var(--story-ink);
  padding: 2rem;
}

.story-visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.story-page a:focus-visible,
.story-page button:focus-visible,
.story-page input:focus-visible,
.story-page textarea:focus-visible {
  outline: 3px solid var(--story-coral);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .story-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .story-service-group,
  .story-condition-group {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .story-service-group__heading,
  .story-condition-group__heading {
    max-width: 39rem;
  }

  .story-contact-guide {
    grid-template-columns: 1fr 1fr;
  }

  .story-contact-step--primary {
    grid-column: span 2;
    min-height: 14rem;
  }

  .story-contact-step:nth-child(2) {
    border-left: 0;
    border-top: 1px dashed var(--story-line);
  }

  .story-contact-step:nth-child(3) {
    border-top: 1px dashed var(--story-line);
  }

  .story-contact-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, .8fr);
  }
}

/* The split hero becomes too narrow for long Greek medical terms before the
   conventional phone breakpoint. Stack it as soon as the copy column breaks. */
@media (max-width: 1023px) {
  .story-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .story-hero__copy,
  .story-hero--right .story-hero__copy {
    order: 1;
  }

  .story-hero__media,
  .story-hero--right .story-hero__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    order: 2;
  }

  .story-hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.15rem);
    max-width: 18ch;
  }
}

@media (max-width: 767px) {
  .story-page {
    padding-top: 1rem;
  }

  .story-shell,
  .story-shell--hero {
    width: min(100% - 1.5rem, 40rem);
  }

  .story-hero {
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .story-hero__copy,
  .story-hero--right .story-hero__copy {
    order: 1;
    padding: 2.5rem 1.5rem 2.25rem;
  }

  .story-hero__media,
  .story-hero--right .story-hero__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
    order: 2;
  }

  .story-hero__media::after {
    border-radius: .9rem;
    inset: .8rem;
  }

  .story-breath-mark {
    margin-left: 0;
    width: 7.25rem;
  }

  .story-hero h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.85rem);
    line-height: 1.06;
    max-width: none;
  }

  .story-section-heading,
  .story-section-heading--offset {
    margin: 4.25rem 0 2.75rem;
  }

  .story-service-group {
    padding: 3rem 0;
  }

  .story-service-feature {
    display: flex;
    flex-direction: column;
  }

  .story-service-feature__copy {
    order: 2;
  }

  .story-service-feature__media,
  .story-service-feature__breath {
    aspect-ratio: 16 / 10;
    min-height: 0;
    order: 1;
  }

  .story-service-row {
    padding-block: 1.25rem;
  }

  .story-condition-group__heading {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .story-condition-item,
  .story-condition-item--featured {
    flex-basis: 100%;
  }

  .story-contact-guide {
    display: block;
  }

  .story-contact-step,
  .story-contact-step--primary {
    min-height: 14.5rem;
  }

  .story-contact-step + .story-contact-step,
  .story-contact-step:nth-child(3) {
    border-left: 0;
    border-top: 1px dashed var(--story-line);
  }

  .story-contact-main {
    grid-template-columns: 1fr;
  }

  .story-form-row {
    grid-template-columns: 1fr;
  }

  .story-contact-location__map,
  .story-contact-location iframe {
    min-height: 17rem;
  }

  .story-booking {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }

  .story-booking__actions {
    align-items: stretch;
  }

  .story-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .story-hero__copy,
  .story-hero--right .story-hero__copy {
    padding-inline: 1rem;
  }

  .story-hero__description {
    font-size: .98rem;
  }

  .story-service-row {
    gap: .65rem;
    grid-template-columns: minmax(0, 1fr) 1.25rem;
  }

  .story-condition-item {
    grid-template-columns: minmax(0, 1fr) 1.1rem;
    padding: 1.35rem;
  }

  .story-contact-form-panel {
    padding: 1.5rem;
  }
}

/* Detail pages: service show + condition show */

.story-breadcrumb {
  font-family: var(--story-font);
  font-size: .82rem;
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0;
}

.story-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-breadcrumb li {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

.story-breadcrumb li + li::before {
  color: var(--story-coral);
  content: "/";
  font-weight: 700;
}

.story-breadcrumb a {
  color: var(--story-muted);
  text-decoration: none;
}

.story-breadcrumb a:hover {
  color: var(--story-navy);
  text-decoration: underline;
}

.story-breadcrumb [aria-current] {
  color: var(--story-navy);
  font-weight: 700;
}

.story-detail-body {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.story-detail-content {
  margin-inline: auto;
  max-width: 48rem;
}

.story-detail-content h2,
.story-detail-content h3 {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.story-detail-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 2.5rem 0 1rem;
}

.story-detail-content h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  margin: 2rem 0 .75rem;
}

.story-detail-content p {
  color: var(--story-ink);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.story-detail-content ul,
.story-detail-content ol {
  color: var(--story-ink);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.story-detail-content li + li {
  margin-top: .35rem;
}

.story-detail-content img {
  border-radius: 1rem;
  height: auto;
  max-width: 100%;
}

.story-detail-content strong {
  color: var(--story-navy);
  font-weight: 700;
}

.story-detail-inline-cta {
  margin: 2.5rem auto;
  max-width: 48rem;
  text-align: center;
}

.story-detail-gallery {
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  max-width: 48rem;
}

.story-detail-gallery > p {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .14em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.story-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.story-gallery-grid a {
  aspect-ratio: 4 / 3;
  border-radius: .75rem;
  display: block;
  overflow: hidden;
  position: relative;
}

.story-gallery-grid img {
  height: 100%;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.story-gallery-grid a:hover img {
  transform: scale(1.05);
}

.story-detail-related {
  margin-top: clamp(4.5rem, 8vw, 7rem);
}

.story-detail-related > .story-eyebrow {
  margin-bottom: .5rem;
}

.story-detail-related > h2 {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.story-related-items-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
}

.story-related-item {
  background: var(--story-paper);
  border: 1px dashed color-mix(in srgb, var(--story-line) 68%, transparent);
  border-radius: 1.25rem;
  color: var(--story-ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.story-related-item:hover {
  border-color: var(--story-navy);
  transform: translateY(-.2rem);
}

.story-related-item__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.story-related-item__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.story-related-item:hover .story-related-item__media img {
  transform: scale(1.04);
}

.story-related-item__placeholder {
  align-items: center;
  background: var(--story-blue-soft);
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.story-related-item__placeholder svg {
  color: var(--story-navy);
  height: 2.5rem;
  opacity: .2;
  width: 2.5rem;
}

.story-related-item__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem 1.25rem 1.5rem;
}

.story-related-item__copy strong {
  color: var(--story-navy);
  font-family: var(--story-font);
  font-size: 1.05rem;
  line-height: 1.3;
}

.story-related-item__copy span {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--story-muted);
  display: -webkit-box;
  font-size: .9rem;
  line-height: 1.55;
  overflow: hidden;
}

.story-related-item__arrow {
  align-items: center;
  color: var(--story-navy);
  display: inline-flex;
  font-family: var(--story-font);
  font-size: .85rem;
  font-weight: 700;
  gap: .4rem;
  margin-top: auto;
  padding-top: .5rem;
}

.story-related-item__arrow svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
  width: 1rem;
}

.story-related-item:hover .story-related-item__arrow svg {
  transform: translateX(.25rem);
}

@media (max-width: 1024px) {
  .story-related-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .story-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-related-items-grid {
    grid-template-columns: 1fr;
  }

  .story-detail-content h2 {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-page *,
  .story-page *::before,
  .story-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ── Medical review badge (E-E-A-T) ── */

.medical-review-badge {
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--story-paper, #fffaf3);
  border: 1px solid color-mix(in srgb, var(--story-navy, #2c4073) 12%, transparent);
  border-radius: 10px;
}

.medical-review-badge__inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--story-muted, #566078);
}

.medical-review-badge__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #2090a0;
}

.medical-review-badge__label {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--story-muted, #566078);
}

.medical-review-badge__name {
  color: var(--story-navy, #2c4073);
  font-weight: 600;
  text-decoration: none;
}

.medical-review-badge__name:hover {
  text-decoration: underline;
}

.medical-review-badge__creds {
  font-weight: 400;
  color: var(--story-muted, #566078);
}

.medical-review-badge__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--story-muted, #566078);
}

/* ── Emergency / After-hours info ── */

.story-emergency-info {
  margin: 40px 0;
  padding: 24px;
  background: #fff5f5;
  border: 1px solid #e8c4c4;
  border-left: 4px solid #d32f2f;
  border-radius: 10px;
}

.story-emergency-info__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: normal;
  color: #d32f2f;
}

.story-emergency-info__title svg {
  flex-shrink: 0;
}

.story-emergency-info__list {
  margin: 0;
  padding: 0 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--story-ink, #46506a);
}

.story-emergency-info__list li + li {
  margin-top: 6px;
}

.story-emergency-info__list strong {
  color: var(--story-navy, #2c4073);
}

.story-emergency-info__footer {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--story-muted, #566078);
}

.story-emergency-info__footer a {
  color: #d32f2f;
  font-weight: 600;
  text-decoration: none;
}

.story-emergency-info__footer a:hover {
  text-decoration: underline;
}

/* ── Conditions cross-link on service pages ── */

.story-conditions-treated {
  margin: 40px 0;
  padding: 28px 24px;
  background: var(--story-paper, #fffaf3);
  border: 1px dashed color-mix(in srgb, var(--story-navy, #2c4073) 18%, transparent);
  border-radius: 12px;
}

.story-conditions-treated__title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--story-navy, #2c4073);
}

.story-conditions-treated__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.story-conditions-treated__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--story-navy, #2c4073);
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.story-conditions-treated__link:hover {
  background: var(--story-blue-soft, #dce5f6);
  transform: translateX(2px);
}

.story-conditions-treated__link svg {
  flex-shrink: 0;
  color: var(--story-teal, #2090a0);
}

/* Doctor biography paragraph formatting */
.doctor-bio p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--e-global-color-text, #46506a);
}

.doctor-bio p:last-child {
  margin-bottom: 0;
}

}

}

.cmsmasters-testimonial__inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

}

/* FORCE testimonial heights - CRITICAL FIX */
.elementor-53353 .elementor-element-d92be52 .cmsmasters-testimonial__text,
.cmsmasters-testimonial__text {
  display: -webkit-box !important;
  display: -moz-box !important;
  display: box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  -moz-box-orient: vertical !important;
  box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-height: 6.4em !important;
  min-height: 6.4em !important;
  line-height: 1.6em !important;
  word-wrap: break-word !important;
}

.elementor-53353 .elementor-element-d92be52 .cmsmasters-testimonial__text p,
.cmsmasters-testimonial__text p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.6em !important;
}

/* Equal card heights */
.elementor-53353 .elementor-element-d92be52 .swiper-slide {
  height: auto !important;
}

.elementor-53353 .elementor-element-d92be52 .cmsmasters-testimonial {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 280px !important;
}

.elementor-53353 .elementor-element-d92be52 .cmsmasters-testimonial__inner {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.elementor-53353 .elementor-element-d92be52 .cmsmasters-testimonial__main-area {
  flex: 1 !important;
}

.elementor-53353 .elementor-element-d92be52 .cmsmasters-testimonial__author-info {
  margin-top: auto !important;
  flex-shrink: 0 !important;
}

/* Disable title color change on hover in service cards */
.elementor-145 .elementor-element.elementor-element-3f6e2598 .cmsmasters-widget-title__heading {
  --title-color-hover: var(--title-color) !important;
}

/* Show full titles, no truncation */
.elementor-145 .elementor-element.elementor-element-3f6e2598.cmsmasters-color-variation-default .cmsmasters-widget-title__heading {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}
