/* Beyond – Quiet Luxury sitewide layer: page-template polish for treatment, category, location and landing pages. */

/* ---------- Reading rhythm ---------- */
body.bac-ql :is(.bde-text, .bde-rich-text):not(.bac-page *) { font-size: 1.0625rem; }
body.bac-ql .bde-rich-text :is(ul, ol) { padding-left: 1.15em; margin-block: .75em; }
body.bac-ql .bde-rich-text li { margin-block: .3em; padding-left: .2em; }
body.bac-ql .bde-rich-text li::marker { color: var(--ql-muted); }
body.bac-ql .bde-rich-text p + p { margin-top: .9em; }
body.bac-ql .section-container > :is(h2).bde-heading:not(:last-child) { margin-bottom: clamp(20px, 2.4vw, 36px); }
body.bac-ql .bde-column > :is(h2, h3).bde-heading + :is(.bde-text, .bde-rich-text) { margin-top: .55em; }

/* ---------- Hero (first section of a page) ---------- */
body.bac-ql:is(.bac-ql-treatment, .bac-ql-category, .bac-ql-location, .bac-ql-landing, .bac-ql-about, .bac-ql-profile, .bac-ql-member) .bde-section:first-of-type > .section-container {
  min-height: clamp(520px, 72vh, 760px); justify-content: center;
  padding-top: clamp(56px, 6vw, 96px) !important; padding-bottom: clamp(56px, 6vw, 96px) !important;
}
body.bac-ql .bde-section:first-of-type h1.bde-heading { max-width: 16em; }
body.bac-ql .bde-section:first-of-type .bde-column > .bde-rich-text, body.bac-ql .bde-section:first-of-type .bde-column > .bde-text { max-width: 34em; }
body.bac-ql .bde-section:first-of-type .bde-column > h1.bde-heading + :is(.bde-rich-text, .bde-text) { margin-top: clamp(16px, 2vw, 28px); }
/* hero enquiry card */
body.bac-ql .bde-section:first-of-type .bde-form-builder { border-radius: 2px !important; box-shadow: none !important; --ql-muted: #d9dbd0; --ql-fg: #f5f1e8; }
body.bac-ql .bde-section:first-of-type .bde-form-builder .breakdance-form-field__input { border-color: transparent !important; min-height: 50px; }
body.bac-ql .bde-section:first-of-type .bde-form-builder .breakdance-form-footer .button-atom { background: var(--bac-cream) !important; border-color: var(--bac-cream) !important; color: var(--bac-ink) !important; }
body.bac-ql .bde-section:first-of-type .bde-form-builder .breakdance-form-footer .button-atom:hover { background: #fff !important; border-color: #fff !important; }
body.bac-ql .bde-section:first-of-type .bde-form-builder :is(.breakdance-form-checkbox, .breakdance-form-radio) input:checked { background: var(--bac-cream); border-color: var(--bac-cream); }
body.bac-ql .bde-section:first-of-type .bde-form-builder :is(.breakdance-form-checkbox, .breakdance-form-radio) input::after { border-color: var(--bac-ink); }
/* forms that already carry their own arrow */
body.bac-ql .bm-contact-form .breakdance-form-footer .button-atom::after { display: none; }

/* ---------- Press strip: one quiet row of marks instead of a grid of cards ---------- */
body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) {
  display: flex !important; flex-flow: row wrap; align-items: center; justify-content: center; gap: clamp(20px, 2.4vw, 36px) clamp(20px, 3vw, 48px);
  padding-top: var(--ql-sec-tight) !important; padding-bottom: var(--ql-sec-tight) !important;
}
body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) > .bde-text:first-child {
  flex: 0 0 100%; text-align: center; font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ql-muted); margin: 0 0 4px;
}
body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) > .bde-columns:has(> .bde-column > img.bde-image2:only-child) { display: contents !important; }
body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) > .bde-columns > .bde-column:has(> img.bde-image2:only-child) {
  flex: 0 0 auto !important; width: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; display: flex; align-items: center; justify-content: center; height: 34px;
}
body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) > .bde-columns > .bde-column > img.bde-image2:only-child {
  width: auto !important; height: auto !important; max-width: 118px !important; max-height: 30px !important; object-fit: contain;
  filter: grayscale(100%) contrast(105%); opacity: .85; transition: filter .3s, opacity .3s;
}
body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) > .bde-columns > .bde-column:hover > img.bde-image2 { filter: none; opacity: 1; }
@media (max-width: 767px) {
  body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
  body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) > .bde-text:first-child { grid-column: 1 / -1; }
  body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) > .bde-columns > .bde-column > img.bde-image2:only-child { max-width: 96px !important; max-height: 24px !important; }
}

/* ---------- Partner logo marquee ---------- */
body.bac-ql .bde-logo-list img { max-height: 34px; width: auto; object-fit: contain; }

/* ---------- Media ---------- */
body.bac-ql .bde-columns > .bde-column > img.bde-image2, body.bac-ql .bde-columns > .bde-column > .bde-image img { display: block; }
body.bac-ql .bde-image-comparison, body.bac-ql .bde-gallery img { border-radius: 2px !important; }

/* ---------- Numbered journey cards ---------- */
body.bac-ql .bde-icon-box { text-align: left; }

/* ---------- Mobile rhythm ---------- */
@media (max-width: 767px) {
  body.bac-ql .bde-section:first-of-type > .section-container { min-height: 0 !important; }
  body.bac-ql .bde-columns { row-gap: clamp(24px, 6vw, 36px); }
}

/* press strip: fixes after review */
body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) { align-content: center; row-gap: 22px !important; column-gap: clamp(16px, 2.2vw, 36px) !important; min-height: 0 !important; }
body.bac-ql .section-container:has(> .bde-text:first-child + .bde-columns > .bde-column > img.bde-image2:only-child) > .bde-columns > .bde-column > img.bde-image2:only-child {
  padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; box-sizing: content-box; max-width: 104px !important; aspect-ratio: auto !important;
}

/* ================= Treatment template elevation (shared patterns on /procedures/ and sibling pages) ================= */

/* Eyebrow: a small heading sitting directly above a main heading */
body.bac-ql :is(h3, h4, h5, h6).bde-heading:has(+ :is(h1, h2).bde-heading):not(.bac-page *) {
  font-size: .75rem !important; font-weight: 500 !important; line-height: 1.5 !important; letter-spacing: .22em !important; text-transform: uppercase;
  color: var(--ql-muted) !important; margin: 0 0 clamp(12px, 1.4vw, 18px) !important;
}
body.bac-ql :is(h2, h3, h4).bde-heading:empty { display: none; }

/* Key facts (Duration / Results / Pricing): an editorial spec row instead of grey boxes */
body.bac-ql .bde-column:has(> h4.bde-heading):not(:has(> :not(h4.bde-heading))) {
  background: transparent !important; border: 0 !important; border-top: 1px solid var(--ql-fg) !important; border-radius: 0 !important; box-shadow: none !important;
  padding: clamp(16px, 1.8vw, 24px) 0 0 !important; align-items: flex-start !important; text-align: left !important; justify-content: flex-start !important;
}
body.bac-ql .bde-column:has(> h4.bde-heading):not(:has(> :not(h4.bde-heading))) > h4.bde-heading {
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem) !important; font-weight: 400 !important; line-height: 1.3 !important; letter-spacing: -0.015em !important;
  text-align: left !important; color: var(--ql-fg) !important; margin: 0 !important; width: 100%;
}
body.bac-ql .bde-column:has(> h4.bde-heading):not(:has(> :not(h4.bde-heading))) > h4.bde-heading::first-line {
  font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ql-muted); line-height: 2.6;
}
body.bac-ql .bde-columns:has(.bde-column > h4.bde-heading:only-child) { align-items: stretch; column-gap: clamp(20px, 3vw, 48px) !important; }
body.bac-ql .bde-columns:has(.bde-column > h4.bde-heading:only-child) + .bde-columns > .bde-column:has(> .bde-text:only-child) {
  background: transparent !important; border: 0 !important; border-top: 1px solid var(--ql-hair) !important; border-radius: 0 !important; padding: 18px 0 0 !important; margin-top: clamp(20px, 2.4vw, 32px);
}
body.bac-ql .bde-columns:has(.bde-column > h4.bde-heading:only-child) + .bde-columns > .bde-column > .bde-text:only-child {
  font-size: .8125rem; letter-spacing: .04em; color: var(--ql-muted); text-align: left;
}

/* Benefit lists: heading + line pairs become a ruled list */
body.bac-ql .bde-column:has(> h3.bde-heading + .bde-text + h3.bde-heading) > h3.bde-heading {
  font-size: clamp(1.1875rem, 1.1rem + .3vw, 1.375rem) !important; line-height: 1.3 !important; letter-spacing: -0.01em !important;
  border-top: 1px solid var(--ql-hair); padding-top: clamp(16px, 1.6vw, 22px); margin: clamp(18px, 2vw, 26px) 0 0 !important; width: 100%;
}
body.bac-ql .bde-column:has(> h3.bde-heading + .bde-text + h3.bde-heading) > h3.bde-heading:first-child { margin-top: 0 !important; }
body.bac-ql .bde-column:has(> h3.bde-heading + .bde-text + h3.bde-heading) > h3.bde-heading + .bde-text { margin-top: 8px !important; color: var(--ql-muted); font-size: 1rem; }

/* Split layouts: photographs fill their column at a consistent, uncropped-looking proportion */
body.bac-ql:is(.bac-ql-treatment, .bac-ql-category, .bac-ql-location) .bde-columns > .bde-column > img.bde-image2:only-child {
  width: 100% !important; max-width: none; height: auto; max-height: 640px; object-fit: cover; border-radius: 2px !important;
}
body.bac-ql:is(.bac-ql-treatment, .bac-ql-category, .bac-ql-location) .bde-section:first-of-type .bde-columns > .bde-column > img.bde-image2:only-child { aspect-ratio: 5 / 4; max-height: 560px; }
body.bac-ql .bde-columns:has(> .bde-column > img.bde-image2:only-child):has(> .bde-column > :is(h2, h3).bde-heading) { align-items: center; column-gap: clamp(32px, 5vw, 88px) !important; }

/* FAQ and long copy stay at a readable measure */
body.bac-ql .bde-frequently-asked-questions { width: 100% !important; max-width: 920px; margin-inline: auto; }
body.bac-ql .bde-faq__item { padding-block: 4px; }
body.bac-ql .bde-faq__question { padding-block: 18px; }

@media (max-width: 767px) {
  body.bac-ql .bde-column:has(> h4.bde-heading):not(:has(> :not(h4.bde-heading))) { padding-top: 14px !important; }
  body.bac-ql:is(.bac-ql-treatment, .bac-ql-category, .bac-ql-location) .bde-columns > .bde-column > img.bde-image2:only-child { max-height: 460px; }
}

/* key facts: fixes after review (label line styled via ::first-line once the leading line break is ignored) */
body.bac-ql .bde-column:has(> h4.bde-heading):not(:has(> :not(h4.bde-heading))) { flex-direction: column !important; }
body.bac-ql .bde-column:has(> h4.bde-heading):not(:has(> :not(h4.bde-heading))) > h4.bde-heading { width: 100% !important; max-width: none; align-self: stretch; }
body.bac-ql .bde-column:has(> h4.bde-heading):not(:has(> :not(h4.bde-heading))) > h4.bde-heading > br:first-child,
body.bac-ql .bde-column:has(> h4.bde-heading):not(:has(> :not(h4.bde-heading))) > h4.bde-heading > br:nth-of-type(n+3) { display: none; }
