/* ==========================================================================
   Page-level layout — inner heroes · breadcrumbs · treatments · gallery · faq
   ========================================================================== */

/* ---------- breadcrumbs ---------- */
.crumbs { padding-block: 20px; border-bottom: 1px solid var(--line-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .815rem; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: 9px; }
.crumbs li + li::before { content: "/"; color: #C8D6E1; }
.crumbs a { color: var(--body); font-weight: 550; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 650; }

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; padding-block: clamp(40px, 5.2vw, 78px) clamp(46px, 5.6vw, 84px);
  background:
    radial-gradient(880px 460px at 84% 0%, #E9F4FC 0%, rgba(233,244,252,0) 62%),
    var(--paper);
}
.page-hero.has-image { padding-bottom: clamp(120px, 15vw, 190px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(30px, 4.4vw, 62px); align-items: center; }
.page-hero h1 { margin: 18px 0 20px; font-size: clamp(2.1rem, 4.1vw, 3.4rem); }
.page-hero p.lead { max-width: 56ch; }
.page-hero-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.35; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stat {
  padding: 12px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.8);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.hero-stat b { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); font-weight: 700; }
.hero-stat span { font-size: .78rem; color: var(--muted); }

/* treatment hero variant */
.tx-hero { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: clamp(30px, 4.6vw, 66px); align-items: center; }
.tx-hero-copy h1 { margin: 16px 0 18px; font-size: clamp(2rem, 3.7vw, 3.05rem); }
.tx-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.tx-meta div b { display: block; font-family: var(--font-head); font-size: .945rem; color: var(--ink); font-weight: 700; }
.tx-meta div span { font-size: .775rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- sticky sub nav (treatment pages) ---------- */
.subnav {
  position: sticky; top: 78px; z-index: 60; background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 9px 15px; border-radius: var(--r-pill); font-size: .845rem; font-weight: 600;
  color: var(--body); white-space: nowrap; transition: all .25s var(--ease);
}
.subnav a:hover, .subnav a.is-active { background: var(--blue-50); color: var(--blue); }

/* ---------- treatment overview blocks ---------- */
.tx-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,340px); gap: clamp(30px, 4vw, 64px); align-items: start; }
.tx-main > section + section { margin-top: clamp(40px, 4.6vw, 62px); }
.tx-main h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); margin-bottom: 18px; }
.tx-main h3 { margin-bottom: 10px; }
.tx-main p + p { margin-top: 14px; }
.tx-aside { position: sticky; top: 150px; display: grid; gap: 16px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.aside-card h4 { font-size: 1rem; margin-bottom: 14px; }
.aside-card .btn { margin-top: 18px; }
.aside-list { display: grid; gap: 12px; }
.aside-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .875rem; font-weight: 600; color: var(--ink-2); padding: 11px 0; border-bottom: 1px solid var(--line-2); transition: color .25s var(--ease); }
.aside-list a:last-child { border-bottom: 0; }
.aside-list a:hover { color: var(--blue); }
.aside-list a svg { width: 15px; height: 15px; color: var(--blue); opacity: .7; }

/* process steps */
.proc-list { display: grid; gap: 0; counter-reset: p; }
.proc { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-2); position: relative; }
.proc:last-child { border-bottom: 0; }
.proc-n {
  width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); border: 1px solid #DCEBF6;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: .92rem;
}
.proc h3 { font-size: 1.03rem; margin-bottom: 6px; }
.proc p { font-size: .915rem; margin: 0; }

/* benefit / info tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { padding: 24px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: all .35s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #CFE3F1; }
.tile svg { width: 22px; height: 22px; color: var(--blue); margin-bottom: 14px; }
.tile b { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); margin-bottom: 7px; }
.tile p { font-size: .89rem; margin: 0; }

/* ---------- treatment index page ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.cat-tabs button {
  padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff;
  font-family: var(--font-head); font-size: .865rem; font-weight: 650; color: var(--ink-2);
  transition: all .28s var(--ease);
}
.cat-tabs button:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.cat-tabs button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 12px 24px -14px rgba(30,123,196,.7); }
.tx-card { display: flex; flex-direction: column; }
.tx-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-md); margin-bottom: 20px; }
.tx-card .tc-tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 9px; }
.tx-card .link-arrow { margin-top: auto; padding-top: 18px; }
.cat-hidden { display: none !important; }

/* ---------- gallery ---------- */
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.gal {
  columns: 3; column-gap: 18px;
}
.gal-item {
  break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: var(--r-lg);
  overflow: hidden; background: var(--off); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gal-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.gal-item img { width: 100%; display: block; transition: transform .8s var(--ease); }
.gal-item:hover img { transform: scale(1.045); }
.gal-cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px; color: #fff;
  background: linear-gradient(180deg, rgba(10,31,46,0) 0%, rgba(10,31,46,.82) 100%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.gal-cap b { font-family: var(--font-head); font-size: .925rem; font-weight: 700; }
.gal-cap span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-300); font-weight: 700; }
.gal-item button.gal-open { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.gal-item button.gal-open:focus-visible { opacity: 1; background: rgba(30,123,196,.12); outline-offset: -4px; }
.gal-note { text-align: center; margin-top: 34px; }
.gal-empty { grid-column: 1/-1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,31,46,.92);
  backdrop-filter: blur(6px); display: none; place-items: center; padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox figure { max-width: min(1080px, 92vw); max-height: 88vh; display: grid; gap: 14px; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: var(--r-md); }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; font-size: .9rem; }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.22); }

/* ---------- treatment page grid for related ---------- */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; }
.rel-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: all .35s var(--ease); }
.rel-card:hover { border-color: #CFE3F1; box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.rel-card svg { width: 21px; height: 21px; color: var(--blue); }
.rel-card b { font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.rel-card span { font-size: .875rem; }
.rel-card .link-arrow { margin-top: 6px; font-size: .83rem; }

/* ---------- long-form (legal pages) ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin: 40px 0 14px; font-size: clamp(1.32rem, 2.1vw, 1.72rem); }
.prose h3 { margin: 28px 0 10px; font-size: 1.09rem; }
.prose p, .prose li { font-size: .95rem; line-height: 1.78; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 20px; display: grid; gap: 9px; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; }
.prose ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 10px; }
.prose .updated { font-size: .82rem; color: var(--muted); }

/* ---------- split contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(28px, 4vw, 58px); align-items: start; }
.hours-table { display: grid; gap: 0; }
.hours-table div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.hours-table div:last-child { border-bottom: 0; }
.hours-table span:first-child { color: var(--muted); font-weight: 600; }
.hours-table span:last-child { color: var(--ink); font-weight: 650; }
.clinic-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.clinic-shots img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); }

@media (max-width: 1080px) {
  .page-hero-grid, .tx-hero, .tx-body, .contact-grid { grid-template-columns: 1fr; }
  .tx-aside { position: static; }
  .subnav { top: 70px; }
  .gal { columns: 2; }
}
@media (max-width: 760px) {
  .gal { columns: 1; }
  .subnav { top: 66px; }
  .crumbs { padding-block: 15px; font-size: .78rem; }
  .crumbs ol { gap: 7px; }
  .clinic-shots { grid-template-columns: repeat(2, 1fr); }
  .page-hero.has-image { padding-bottom: clamp(46px, 9vw, 70px); }
  .proc { grid-template-columns: 44px 1fr; gap: 15px; }
  .proc-n { width: 40px; height: 40px; border-radius: 12px; font-size: .85rem; }
  .tx-meta { gap: 16px; }
}
