/* Byte A Cookie — Dental Aesthetics. Brand layer on top of Bootstrap 5, shared by every bac page template. */
/* Scope: .bac-page on the #bac-main wrapper of each template. Order: tokens, atoms, shared blocks. */

/* ============================================================
   1. Tokens
   ============================================================ */

.bac-page {
  /* Palette tokens (--bac-gold, --bac-paper, --bac-ink, --bac-line …) live on :root in bac-global.css, loaded on every page. */

  /* contextual — flipped by .bac-on-dark */
  --bac-text:       var(--bac-ink);
  --bac-text-2:     var(--bac-ink-2);
  --bac-text-muted: var(--bac-ink-muted);
  --bac-border:     var(--bac-line);
  --bac-accent:     var(--bac-gold-deep);

  background: var(--bac-paper);
  overflow-x: clip; /* g-lg-5 rows reach 12px past the container at 992–998 / 1200–1246 / 1400–1426 */
}

/* Anchor offset: header + admin bar; services add the sticky sub-nav (72px, 76px from 992px). */
.bac-page [id^="da-"] {
  scroll-margin-top: 81px; /* fallback */
  scroll-margin-top: calc(var(--bac_hdr_h, 81px) + var(--bac_adminbar_h, 0px));
}
.bac-service-template .bac-page [id^="da-"] {
  scroll-margin-top: 153px; /* fallback */
  scroll-margin-top: calc(var(--bac_hdr_h, 81px) + var(--bac_adminbar_h, 0px) + 72px);
}
@media (min-width: 992px) {
  .bac-service-template .bac-page [id^="da-"] {
    scroll-margin-top: 157px; /* fallback */
    scroll-margin-top: calc(var(--bac_hdr_h, 81px) + var(--bac_adminbar_h, 0px) + 76px);
  }
}

/* One switch inverts every token below it. */
.bac-page .bac-on-dark {
  --bac-text:       #F6F2EC;
  --bac-text-2:     rgba(246, 242, 236, 0.88);
  --bac-text-muted: rgba(246, 242, 236, 0.62);
  --bac-border:     rgba(246, 242, 236, 0.14);
  --bac-accent:     var(--bac-gold-bright);
  color: var(--bac-text);
}

/* ============================================================
   2. Typography
   ============================================================ */

.bac-page .bac-eyebrow {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--bac-accent);
  display: inline-block;
}
.bac-page .bac-eyebrow--dash::before { content: "— "; }

/* Titles are named by role, not by tag: the heading level stays a content decision. */
.bac-page .bac-display {
  font-weight: 200;
  font-size: 2.5rem; /* fallback */
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: -0.02em;
  color: var(--bac-text);
}

.bac-page .bac-heading {
  font-weight: 200;
  font-size: 2rem; /* fallback */
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -0.018em;
  color: var(--bac-text);
}

.bac-page .bac-subheading {
  font-weight: 200;
  font-size: 1.625rem; /* fallback */
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.012em;
  color: var(--bac-text);
}

/* Gold accent inside titles — upright, one weight heavier. Never italic. */
.bac-page .bac-display em,
.bac-page .bac-heading em,
.bac-page .bac-subheading em {
  font-style: normal;
  font-weight: 300;
  color: var(--bac-accent);
}

/* Plain headings balance too; body text avoids one-word last lines. Ignored where unsupported. */
.bac-page h1,
.bac-page h2,
.bac-page h3,
.bac-page h4 { text-wrap: balance; }
.bac-page p,
.bac-page li,
.bac-page blockquote { text-wrap: pretty; }

.bac-page .bac-lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--bac-text-2);
  max-width: 58ch;
}

/* ============================================================
   3. Sections & surfaces
   ============================================================ */

.bac-page .bac-section {
  padding-top: 4.5rem; /* fallback */
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: 4.5rem;
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}
.bac-page .bac-section--flush { padding-top: 0; padding-bottom: 0; }

.bac-page .bac-surface-paper   { background: var(--bac-paper); }
.bac-page .bac-surface-paper-2 { background: var(--bac-paper-2); }
.bac-page .bac-surface-paper-3 { background: var(--bac-paper-3); }
.bac-page .bac-surface-ink {
  background: #241a10; /* fallback */
  background: linear-gradient(180deg, #2D1F13 0%, #1A1109 100%);
}
.bac-page .bac-surface-ink-warm {
  background: #2E281E;
  border-bottom: 1px solid rgba(246, 242, 236, 0.14);
}
.bac-page .bac-border-top    { border-top: 1px solid var(--bac-border); }
.bac-page .bac-border-bottom { border-bottom: 1px solid var(--bac-border); }

@media (min-width: 992px) {
  .bac-page .bac-section-head__title { max-width: 17ch; }
}

/* ============================================================
   4. Buttons & text links
   ============================================================ */

.bac-page .bac-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

/* Size through Bootstrap's own .btn variables; they move to the Customizer ($btn-*) at the redesign. */
.bac-page .btn {
  --bs-btn-padding-y: 0.875rem;
  --bs-btn-padding-x: 1.375rem;
  --bs-btn-font-size: 0.8125rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
/* gap fallback: margin on the icon, removed where gap is supported */
.bac-page .btn > .bac-arrow { margin-left: 0.625rem; }
@supports (gap: 1px) {
  .bac-page .btn { gap: 0.625rem; }
  .bac-page .btn > .bac-arrow { margin-left: 0; }
}

/* Bootstrap reads --bs-btn-* on :active and :focus-visible; mirror our hover values. */
.bac-page .bac-btn--dark {
  --bs-btn-active-color: var(--bac-paper);
  --bs-btn-active-bg: var(--bac-gold-deep);
  --bs-btn-active-border-color: var(--bac-gold-deep);
  background: var(--bac-ink);
  border: 1px solid var(--bac-ink);
  color: var(--bac-paper);
}
.bac-page .bac-btn--dark:hover,
.bac-page .bac-btn--dark:focus {
  background: var(--bac-gold-deep);
  border-color: var(--bac-gold-deep);
  color: var(--bac-paper);
}

.bac-page .bac-btn--gold {
  --bs-btn-active-color: var(--bac-paper-3);
  --bs-btn-active-bg: var(--bac-gold-deep);
  --bs-btn-active-border-color: var(--bac-gold-deep);
  background: var(--bac-gold);
  border: 1px solid var(--bac-gold);
  color: var(--bac-paper-3);
}
.bac-page .bac-btn--gold:hover,
.bac-page .bac-btn--gold:focus {
  background: var(--bac-gold-deep);
  border-color: var(--bac-gold-deep);
  color: var(--bac-paper-3);
}

.bac-page .bac-btn--ghost {
  --bs-btn-active-color: var(--bac-ink);
  --bs-btn-active-bg: var(--bac-paper-3);
  --bs-btn-active-border-color: var(--bac-ink);
  --bs-btn-hover-border-color: var(--bac-line-strong);
  background: transparent;
  border: 1px solid var(--bac-line-strong);
  color: var(--bac-ink);
}
.bac-page .bac-btn--ghost:hover {
  border-color: var(--bac-ink);
  background: var(--bac-paper-3);
  color: var(--bac-ink);
}

/* On dark surfaces the two buttons swap roles. */
.bac-page .bac-on-dark .bac-btn--gold {
  --bs-btn-active-color: var(--bac-ink);
  --bs-btn-active-bg: #D7CBAA;
  --bs-btn-active-border-color: #D7CBAA;
  background: var(--bac-gold-bright);
  border-color: var(--bac-gold-bright);
  color: var(--bac-ink);
  font-weight: 700;
}
.bac-page .bac-on-dark .bac-btn--gold:hover,
.bac-page .bac-on-dark .bac-btn--gold:focus {
  background: #D7CBAA;
  border-color: #D7CBAA;
  color: var(--bac-ink);
}
.bac-page .bac-on-dark .bac-btn--ghost {
  --bs-btn-active-color: #F6F2EC;
  --bs-btn-active-bg: rgba(246, 242, 236, 0.08);
  --bs-btn-active-border-color: #F6F2EC;
  --bs-btn-hover-border-color: rgba(246, 242, 236, 0.22);
  color: #F6F2EC;
  border-color: rgba(246, 242, 236, 0.22);
}
.bac-page .bac-on-dark .bac-btn--ghost:hover,
.bac-page .bac-on-dark .bac-btn--ghost:focus {
  border-color: #F6F2EC;
  background: rgba(246, 242, 236, 0.08);
  color: #F6F2EC;
}

/* Keyboard focus is an outline, never a fill swap. */
.bac-page .btn:focus-visible {
  outline: 2px solid var(--bac-gold-bright);
  outline-offset: 3px;
}

/* Text links: phone number and "see all" — mono, no button weight. */
.bac-page .bac-tel {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--bac-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease;
}
.bac-page .bac-tel:hover { color: var(--bac-text); }

.bac-page .bac-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bac-accent);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(var(--bs-primary-rgb, 151, 140, 111), 0.55);
  transition: border-color 200ms ease;
}
.bac-page .bac-more:hover { border-bottom-color: var(--bac-accent); }
.bac-page .bac-more .bac-arrow { margin-left: 0.5625rem; }
.bac-page .bac-more:hover .bac-arrow { transform: translateX(5px); }
.bac-page .btn:hover .bac-arrow { transform: translateX(3px); }

/* ============================================================
   5. Media — placeholders and image frames
   ============================================================ */

.bac-page .bac-placeholder {
  background: var(--bac-paper-2); /* fallback */
  background: repeating-linear-gradient(45deg, #EFE9E0, #EFE9E0 12px, #FBFAF7 12px, #FBFAF7 24px);
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  color: var(--bac-ink-muted);
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
.bac-page .bac-placeholder--dark {
  background: #2a251f; /* fallback */
  background: repeating-linear-gradient(45deg, #2a251f, #2a251f 12px, #322b24 12px, #322b24 24px);
  color: #a69c8c;
}
.bac-page .bac-placeholder::after {
  content: attr(data-label);
  padding: 6px 10px;
  border: 1px dashed currentColor;
  border-radius: 2px;
}

/* Image frame on Bootstrap .ratio; extra ratios set only its --bs-aspect-ratio variable. */
.bac-page .bac-ratio-4x5 { --bs-aspect-ratio: 125%; }
.bac-page .bac-ratio-5x4 { --bs-aspect-ratio: 80%; }
.bac-page .bac-media {
  border-radius: var(--bac-radius);
  overflow: hidden;
  background: var(--bac-ink);
}
/* Photos from [bac_image] (inc/bac-media.php) fill the frame like the placeholders and crop to it.
   Descendant selector: in the LiveCanvas editor the shortcode sits in a wrapper div, which .ratio > * already sizes. */
.bac-page .bac-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   6. Cover — full-bleed dark hero (Home, New Patients, Clinic)
   ============================================================ */

.bac-page .bac-cover {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72vh; /* fallback */
  min-height: min(72vh, 660px);
  overflow: hidden;
  background: var(--bac-ink);
}
.bac-page .bac-cover--tall {
  min-height: 88vh; /* fallback */
  min-height: min(88vh, 820px);
}
.bac-page .bac-cover__media .bac-placeholder { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.bac-page .bac-cover__media .bac-placeholder::after { display: none; }
.bac-page .bac-cover__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* focus point per photo: focus="x% y%" on the shortcode */
}
.bac-page .bac-cover__scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(19, 16, 13, 0.6); /* fallback */
  /* As in the design with photos: dark behind the text on the left, the photo still visible on the right. */
  background:
    linear-gradient(90deg, rgba(19, 16, 13, 0.8) 0%, rgba(19, 16, 13, 0.5) 45%, rgba(19, 16, 13, 0.3) 100%),
    linear-gradient(180deg, rgba(19, 16, 13, 0.3) 0%, rgba(19, 16, 13, 0) 36%, rgba(19, 16, 13, 0.7) 100%);
}
/* Below lg the text runs across the whole photo: even, deeper shade. */
@media (max-width: 991.98px) {
  .bac-page .bac-cover__scrim {
    background: linear-gradient(180deg, rgba(19, 16, 13, 0.62) 0%, rgba(19, 16, 13, 0.55) 45%, rgba(19, 16, 13, 0.88) 100%);
  }
}
.bac-page .bac-cover__caption {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.7);
}
.bac-page .bac-cover__caption::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bac-gold);
  margin-right: 9px;
}
.bac-page .bac-cover__inner {
  position: relative;
  padding-top: 4.5rem; /* fallback */
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: 4.5rem; /* fallback */
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}
/*.bac-page .bac-cover__inner {
  position: relative;
  /*padding-top: 5.5rem; /* fallback */
  /*padding-top: clamp(5.5rem, 14vw, 11rem);
  padding-top: clamp(3.5rem, 7vw, 6rem);   
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 2.75rem;
  padding-bottom: clamp(2.75rem, 5.5vw, 4.5rem);
}*/
.bac-page .bac-cover__title { max-width: 19ch; }
@media (max-width: 991.98px) {
  .bac-page .bac-cover,
  .bac-page .bac-cover--tall { min-height: 0; }
  .bac-page .bac-cover__title { max-width: none; }
}

/* Breadcrumb colours on dark surfaces; the global .bac-crumbs rules stay in sass/_custom.scss. */
.bac-page .bac-on-dark .bac-crumbs { color: var(--bac-text-muted); }
.bac-page .bac-on-dark .bac-crumbs a:hover,
.bac-page .bac-on-dark .bac-crumbs [aria-current="page"],
.bac-page .bac-on-dark .bac-crumbs .breadcrumb_last { color: var(--bac-text); }


/* ============================================================
   7. Lists
   ============================================================ */

/* Checklist — round gold mark + text. */
.bac-page .bac-checklist__item {
  padding: 16px 0;
  border-top: 1px solid var(--bac-line);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bac-ink);
}
.bac-page .bac-checklist__item:first-child { border-top: 0; }
.bac-page .bac-checklist__mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  background: rgba(var(--bs-primary-rgb, 151, 140, 111), 0.18);
  color: var(--bac-gold-deep);
}
.bac-page .bac-checklist--know .bac-checklist__mark { background: rgba(var(--bs-primary-rgb, 151, 140, 111), 0.12); }
.bac-page .bac-checklist__mark svg { width: 14px; height: 14px; }
@media (min-width: 992px) {
  .bac-page .bac-checklist--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4.5rem;
  }
  .bac-page .bac-checklist--split .bac-checklist__item:nth-child(2) { border-top: 0; }
}

/* Dash list — short gold rule + text, rows divided by a hairline. */
.bac-page .bac-dashlist__item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--bac-line);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bac-text-2);
}
.bac-page .bac-dashlist__item:last-child { border-bottom: 0; }
.bac-page .bac-dashlist__item::before {
  content: "";
  flex: 0 0 14px;
  height: 1px;
  margin: 11px 12px 0 0;
  background: var(--bac-gold);
}
.bac-page .bac-dashlist strong { font-weight: 600; color: var(--bac-text); }

/* Numbered list — mono index + title/text. */
.bac-page .bac-numlist__item {
  display: flex;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--bac-line-strong);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bac-text);
}
.bac-page .bac-numlist__num {
  flex: 0 0 auto;
  margin-right: 16px;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--bac-accent);
}
.bac-page .bac-numlist__title {
  display: block;
  font-weight: 300;
  font-size: 1.125rem; /* fallback */
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.26;
  margin-bottom: 7px;
}
.bac-page .bac-numlist__text { display: block; font-size: 0.90625rem; color: var(--bac-text-2); }
.bac-page .bac-numlist:not(.bac-numlist--split) .bac-numlist__item:last-child { border-bottom: 1px solid var(--bac-line-strong); }
@media (min-width: 992px) {
  .bac-page .bac-numlist--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4.5rem;
  }
}

/* Link list — full-row links with an arrow; --labelled puts a mono label first, --split runs two columns. */
.bac-page .bac-link-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--bac-line-strong); }
.bac-page .bac-link-list__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--bac-line-strong);
  color: var(--bac-ink);
  text-decoration: none;
  transition: padding-left 280ms ease, border-top-color 220ms ease;
}
.bac-page .bac-link-list__link:hover { padding-left: 12px; border-top-color: var(--bac-gold); }
.bac-page .bac-link-list__label {
  flex: 0 0 7rem;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bac-gold-deep);
}
.bac-page .bac-link-list__title {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 300;
  font-size: 1.125rem; /* fallback */
  font-size: clamp(1.0625rem, 1.7vw, 1.375rem);
  line-height: 1.28;
  letter-spacing: -0.008em;
  transition: color 200ms ease;
}
.bac-page .bac-link-list__text {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--bac-ink-2);
}
.bac-page .bac-link-list__to {
  margin-left: auto;
  padding-left: 1.125rem;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bac-gold-deep);
  white-space: nowrap;
}
.bac-page .bac-link-list__arrow {
  width: 17px;
  height: 17px;
  margin-left: 1.5rem;
  color: var(--bac-gold-deep);
  opacity: 0.6;
  transition: opacity 200ms ease, transform 220ms ease;
}
.bac-page .bac-link-list__to + .bac-link-list__arrow { width: 15px; height: 15px; margin-left: 0.5rem; opacity: 1; }
.bac-page .bac-link-list__link:hover .bac-link-list__title { color: var(--bac-gold-deep); }
.bac-page .bac-link-list__link:hover .bac-link-list__arrow { opacity: 1; transform: translateX(5px); }
@media (max-width: 991.98px) {
  .bac-page .bac-link-list__link:hover { padding-left: 0; }
  .bac-page .bac-link-list__text { order: 3; flex-basis: 100%; padding-left: 0; padding-top: 6px; }
  .bac-page .bac-link-list__label { flex-basis: 100%; margin-bottom: 6px; }
  /* After a full-row label the title must start a new line; with flex-basis 0 it stayed on the label's line at 0px wide. */
  .bac-page .bac-link-list__label + .bac-link-list__title { min-width: calc(100% - 17px - 1.5rem); }
}
@media (min-width: 992px) {
  .bac-page .bac-link-list--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4.5rem;
    border-bottom: 0;
  }
}

/* ============================================================
   8. Content blocks
   ============================================================ */

/* Topic — a block under a hairline: mono label, title, text. */
.bac-page .bac-topic {
  height: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--bac-line-strong);
}
.bac-page .bac-topic__label {
  display: block;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bac-accent);
  margin-bottom: 16px;
}
.bac-page .bac-topic__title {
  font-weight: 300;
  font-size: 1.25rem; /* fallback */
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--bac-text);
  margin-bottom: 12px;
}
.bac-page .bac-topic__text {
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--bac-text-2);
  margin: 0;
}

/* Callout — label/value pairs on paper with a gold edge (device, system, maker). */
.bac-page .bac-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  max-width: 46ch;
  margin: 0;
  padding: 16px 20px;
  background: var(--bac-paper);
  border-left: 2px solid var(--bac-gold);
}
.bac-page .bac-callout__label {
  padding-top: 3px;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bac-gold-deep);
}
.bac-page .bac-callout__value { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--bac-ink); }

/* Review — patient quote; rating — score + stars + count. */
.bac-page .bac-review {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--bac-line-strong);
}
.bac-page .bac-review__text {
  flex: 1 1 auto;
  margin: 0 0 18px;
  font-weight: 200;
  font-style: italic;
  font-size: 1.0625rem; /* fallback */
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--bac-ink);
}
.bac-page .bac-review__cite {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bac-gold-deep);
}
.bac-page .bac-rating__score {
  margin-right: 14px;
  font-weight: 200;
  font-size: 2.75rem; /* fallback */
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bac-text);
}
.bac-page .bac-rating__stars { display: flex; color: var(--bac-gold); }
.bac-page .bac-on-dark .bac-rating__stars { color: var(--bac-gold-bright); }
.bac-page .bac-rating__stars svg { width: 15px; height: 15px; margin-right: 3px; fill: currentColor; }
.bac-page .bac-rating__count {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bac-text-2);
}

/* Opening hours — day / time rows (New Patients, Contact). */
.bac-page .bac-hours__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--bac-line);
  font-size: 0.90625rem;
}
.bac-page .bac-hours__row:last-child { border-bottom: 0; }
.bac-page .bac-hours__day { font-weight: 400; color: var(--bac-ink-2); }
.bac-page .bac-hours__time {
  margin: 0;
  font-family: var(--bac-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--bac-ink);
}
/* Set by bac-hours.js on the current day. */
.bac-page .bac-hours__row--today .bac-hours__day { font-weight: 600; color: var(--bac-ink); }
.bac-page .bac-hours__today {
  margin-left: 10px;
  padding: 3px 7px;
  border: 1px solid rgba(var(--bs-primary-rgb, 151, 140, 111), 0.55);
  border-radius: 2px;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: var(--bac-gold-deep);
}

/* ============================================================
   9. Trust strip (partial: bac-trust-strip)
   ============================================================ */

.bac-page .bac-trust { padding: 28px 0; }
.bac-page .bac-trust__cap {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bac-ink-muted);
  white-space: nowrap;
  position: relative;
  padding-right: 32px;
}
.bac-page .bac-trust__cap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  background: var(--bac-line-strong);
  transform: translateY(-50%);
}
.bac-page .bac-trust__logo {
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--bac-ink-2);
  opacity: 0.78;
  white-space: nowrap;
  transition: opacity 200ms ease;
}
.bac-page .bac-trust__logo:hover { opacity: 1; }
/* Below xxl the logos wrap under the caption: short horizontal rule instead of a vertical one. */
@media (max-width: 1399.98px) {
  .bac-page .bac-trust__cap { flex: 0 0 100%; padding-right: 0; padding-bottom: 14px; }
  .bac-page .bac-trust__cap::after { top: auto; bottom: 0; left: 0; right: auto; width: 32px; height: 1px; transform: none; }
}
@media (max-width: 767.98px) {
  .bac-page .bac-trust__logo { font-size: 0.9375rem; }
}

/* ============================================================
   10. Inline CTA
   ============================================================ */

.bac-page .bac-inline-cta__inner {
  padding-top: 1.75rem; /* fallback */
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 1.75rem;
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.bac-page .bac-inline-cta__kicker {
  display: block;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bac-gold-deep);
  margin-bottom: 10px;
}
.bac-page .bac-inline-cta__title {
  font-weight: 200;
  font-size: 1.375rem; /* fallback */
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--bac-ink);
  max-width: 26ch;
  margin: 0;
}
.bac-page .bac-inline-cta__title em {
  font-style: normal;
  font-weight: 300;
  color: var(--bac-accent);
}

/* ============================================================
   11. Final CTA (partial: bac-prefooter-cta)
   ============================================================ */

.bac-page .bac-cta__inner { max-width: 760px; }
.bac-page .bac-cta__title {
  font-size: 2.25rem; /* fallback */
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
}

/* ============================================================
   12. Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .bac-page *,
  .bac-page *::before,
  .bac-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Keep AOS content visible when motion is reduced. */
  .bac-page [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
