/* Studio M public site — layout, header/nav/footer, and shared section patterns.
   Tokens/typography/buttons/forms come from design-system.css. */

.announcement-bar {
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.announcement-bar a { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(43, 40, 37, 0.08);
  box-shadow: inset 0 1px 0 var(--glass-tint);
  transition: background 0.4s ease, border-color 0.4s ease;
}
/* On the homepage, float transparently over the cinematic hero until scrolled past it. */
body.is-home .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.is-home .site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--hairline);
  box-shadow: inset 0 1px 0 var(--glass-tint);
}
body.is-home .site-header:not(.is-scrolled) .site-nav a,
body.is-home .site-header:not(.is-scrolled) .site-logo,
body.is-home .site-header:not(.is-scrolled) .icon-link {
  color: var(--ivory);
}
body.is-home .site-header:not(.is-scrolled) .site-header-actions .btn-primary {
  background: rgba(250,247,242,0.12);
  border: 1px solid rgba(250,247,242,0.4);
  color: var(--ivory);
  backdrop-filter: blur(4px);
}
body.is-home .site-header:not(.is-scrolled) .mobile-nav-toggle span { background: var(--ivory); }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  flex-shrink: 0;
}
.site-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 0.9rem; font-weight: 500; color: var(--graphite); }
.site-nav a:hover { color: var(--charcoal); }
.site-header-actions { display: flex; align-items: center; gap: 18px; }
.icon-link { color: var(--graphite); }
.icon-link:hover { color: var(--charcoal); }
.btn-sm-inline { padding: 10px 20px; font-size: 0.85rem; }

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
}
.mobile-nav-toggle span { width: 100%; height: 2px; background: var(--charcoal); border-radius: 2px; }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 32px;
  position: fixed;
  z-index: 60;
  top: 76px; left: 0; right: 0;
  /* Explicit height instead of relying on inset top+bottom to auto-resolve it — on pages with
     their own sticky elements (e.g. treatments.php's .universe-nav, .pricing-jumpnav) that
     auto-resolution was collapsing to the sticky element's own height instead of filling the
     screen, leaving page content visible underneath the menu. */
  height: calc(100vh - 76px);
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
  overflow-y: auto;
}
.mobile-nav a:not(.btn-primary) { padding: 14px 0; font-size: 1.05rem; font-weight: 500; color: var(--charcoal); border-bottom: 1px solid var(--hairline); }
.mobile-nav .btn-primary { margin-top: 20px; }
.mobile-nav.open { display: flex; }
body.mobile-nav-open { overflow: hidden; }
body.mobile-nav-open .mobile-dock, body.mobile-nav-open .brand-fab { display: none; }

@media (max-width: 980px) {
  .site-nav, .site-header-actions { display: none; }
  .mobile-nav-toggle { display: flex; }
}

/* --- Footer --- */
.site-footer { background: var(--cream); border-top: 1px solid rgba(43,40,37,0.08); margin-top: 80px; }
.signature-mark {
  display: flex; justify-content: center;
  padding-top: 40px;
  color: var(--champagne-dark);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.7s var(--ease-luxury), transform 0.7s var(--ease-luxury);
}
.signature-mark.revealed { opacity: 0.85; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .signature-mark { opacity: 0.85; transform: none; transition: none; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 56px;
}
.footer-grid h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.footer-grid h4 { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--champagne-dark); margin-bottom: 16px; }
.footer-desc { font-size: 0.9rem; max-width: 280px; line-height: 1.6; }
.footer-social { display: flex; gap: 16px; font-size: 0.88rem; margin-top: 18px; }
.footer-social a { font-weight: 600; }
.footer-social a:hover { color: var(--charcoal); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.footer-grid ul a { color: var(--graphite); transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-grid ul a:hover { color: var(--champagne-dark); padding-left: 3px; }
address { font-style: normal; font-size: 0.88rem; color: var(--graphite); line-height: 1.7; }
address p { margin: 0 0 4px; }
address a:hover { color: var(--champagne-dark); }
.hours-list { gap: 6px !important; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--graphite); font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid var(--hairline); background: rgba(201,168,118,0.04); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 24px; font-size: 0.76rem; color: var(--graphite); }
.footer-bottom-links { display: flex; align-items: center; gap: 16px; }
.footer-bottom-links a:hover { color: var(--champagne-dark); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Floating quick-action menu (Book / Call / Instagram / Directions) --- */
.brand-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50;
  display: none;
}
@media (min-width: 640px) { .brand-fab { display: block; right: 32px; bottom: calc(32px + env(safe-area-inset-bottom)); } }

/* Persistent mobile action dock — replaces the FAB below 640px. A fixed bottom bar is the
   pattern phone users actually expect from a local business (always-visible Call/Directions/
   Book), and doubles as a second surface for the "Glass Skin" frosted-glass language. */
.mobile-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -8px 30px rgba(43,40,37,0.08), inset 0 1px 0 var(--glass-tint);
}
@media (min-width: 640px) { .mobile-dock { display: none; } }
.mobile-dock-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 7px 4px;
  border-radius: var(--radius-md);
  color: var(--charcoal);
  font-size: 0.68rem; font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}
.mobile-dock-item:active { transform: scale(0.94); background: rgba(43,40,37,0.06); }
.mobile-dock-primary {
  flex: 1.3;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius-md);
}
.mobile-dock-primary:active { background: #1c1a17; }
@media (prefers-reduced-motion: reduce) { .mobile-dock-item { transition: none; } }
.brand-fab-actions { position: relative; width: 56px; height: 56px; }
.brand-fab-action {
  position: absolute;
  left: 50%; top: 50%;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--ivory);
  box-shadow: var(--shadow-lifted);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-luxury), opacity 0.4s ease, background 0.2s ease;
  transition-delay: 0ms;
}
.brand-fab-action:hover { background: var(--champagne-dark); }
.brand-fab.is-open .brand-fab-action {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1);
  transition-delay: calc(var(--i) * 50ms);
}
.brand-fab-tip {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.brand-fab-action:hover .brand-fab-tip { opacity: 1; }
.brand-fab-toggle {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.75);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lifted), 0 0 0 1px var(--glass-tint) inset;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  transition: transform 0.5s var(--ease-luxury);
  animation: brandPulse 3.6s ease-in-out infinite;
}
.brand-fab.is-open .brand-fab-toggle { transform: rotate(135deg); animation: none; }
.brand-fab-toggle img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; transition: transform 0.5s var(--ease-luxury); }
.brand-fab.is-open .brand-fab-toggle img { transform: rotate(-135deg); }
.brand-fab-mark { font-family: var(--font-serif); font-size: 1.2rem; color: var(--champagne-dark); transition: transform 0.5s var(--ease-luxury); }
.brand-fab.is-open .brand-fab-mark { transform: rotate(-135deg); }
.brand-fab-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 2px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--charcoal);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.brand-fab-plus { color: var(--champagne-dark); font-weight: 700; margin-left: 1px; }
.brand-fab.is-open .brand-fab-label { opacity: 0; transform: translateY(-50%) translateX(6px); pointer-events: none; }
@media (max-width: 639px) { .brand-fab-label { display: none; } }
.brand-fab-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,118,0.35), transparent 70%);
  opacity: 0.8;
  transition: opacity 0.4s ease;
}
.brand-fab.is-open .brand-fab-glow { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .brand-fab-toggle { animation: none; }
  .brand-fab-action, .brand-fab-toggle, .brand-fab-toggle img, .brand-fab-mark { transition-duration: 0.15s; }
}

/* --- Generic section rhythm used across most pages --- */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-header { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-header.left { margin: 0 0 40px; text-align: left; }
/* On a 375px phone, full desktop section padding pushed a lot of empty space above every
   plain content page's heading (About, FAQ, Reviews, Contact, Results, Treatment Finder,
   Treatments index) before any real content appeared. .page-hero's own mobile override lives
   further down, after its unconditional base rule, so it actually wins the cascade. */
@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .section-tight { padding: 24px 0; }
  .section-header { margin-bottom: 24px; }
}

/* --- Contextual review on treatment detail pages --- */
.context-review { margin: 48px 0 0; padding: 28px 32px; background: var(--cream); border-left: 3px solid var(--champagne-dark); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.context-review .review-stars { color: var(--champagne-dark); font-size: 0.9rem; letter-spacing: 2px; }
.context-review p { margin: 10px 0 0; font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; line-height: 1.5; color: var(--charcoal); }
.context-review cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--graphite); }

.results-empty { max-width: 460px; margin: 56px auto 0; text-align: center; padding: 48px 36px; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); color: var(--champagne-dark); }
.results-empty p { color: var(--charcoal); }
.results-empty svg { margin-bottom: 16px; }

/* --- Custom 404 --- */
.not-found-section { min-height: 60vh; display: flex; align-items: center; }
.not-found-card { max-width: 620px; margin: 0 auto; text-align: center; padding: 56px 40px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lifted); }
.not-found-categories { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.not-found-categories a { font-size: 0.82rem; font-weight: 600; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--graphite); }
.not-found-categories a:hover { border-color: var(--champagne-dark); color: var(--charcoal); }

/* --- Service / treatment cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.service-card:hover { box-shadow: var(--shadow-lifted); transform: translateY(-3px); }
.service-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.service-card-body { padding: 18px; }
.service-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-card-price { color: var(--champagne-dark); font-weight: 700; font-size: 0.95rem; }
.service-card-desc { font-size: 0.85rem; color: var(--graphite); margin: 6px 0 0; }

/* --- Breadcrumbs --- */
.breadcrumbs { font-size: 0.8rem; color: var(--graphite); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--charcoal); text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

/* --- Review cards --- */
.review-card { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px 22px 22px; overflow: hidden; transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury); display: flex; flex-direction: column; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lifted); }
.review-card::before {
  content: '\201C'; position: absolute; top: -6px; right: 14px; font-family: var(--font-serif);
  font-size: 4.4rem; line-height: 1; color: var(--champagne); opacity: 0.18; pointer-events: none;
}
.review-card--featured { grid-column: span 2; background: var(--cream); padding: 34px 30px 28px; }
.review-card--featured p { font-size: 1.08rem; font-family: var(--font-serif); line-height: 1.5; }
.review-card--featured::before { font-size: 6rem; top: -10px; right: 20px; }
@media (max-width: 640px) { .review-card--featured { grid-column: span 1; padding: 26px 22px 22px; } .review-card--featured p { font-size: 1rem; } }
.review-stars { color: var(--champagne-dark); letter-spacing: 2px; margin-bottom: 8px; }
.review-name { font-weight: 700; font-size: 0.88rem; margin-top: auto; padding-top: 16px; }
.review-source { font-size: 0.76rem; color: var(--graphite); opacity: 0.8; }

/* --- FAQ accordion --- */
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--charcoal); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; font-size: 0.92rem; color: var(--graphite); }
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 18px; }
.faq-icon { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* --- Empty/plain content pages --- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--graphite); padding-left: 1.3em; }

.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero p { max-width: 620px; margin: 0 auto; }
/* Abstract procedural accent for plain content pages that have no photography of their own
   (About, FAQ, Reviews, Contact, Book, Results, Treatment Finder, Treatments index) — a soft
   drifting gradient rather than a flat wall of centered text opening the page. Purely
   decorative (aria-hidden, non-participating in layout); real content stays above it via z-index. */
.page-hero { position: relative; }
.page-hero > .eyebrow, .page-hero > h1, .page-hero > p { position: relative; z-index: 1; }
.page-hero-accent {
  position: absolute; top: 50%; left: 50%; z-index: 0; pointer-events: none;
  width: min(620px, 92vw); height: 300px; transform: translate(-50%, -55%);
  background:
    radial-gradient(closest-side, rgba(201,168,118,0.18), transparent 70%),
    radial-gradient(closest-side at 32% 68%, rgba(43,40,37,0.05), transparent 65%);
  filter: blur(6px);
  animation: pageHeroAccentDrift 14s ease-in-out infinite;
}
@keyframes pageHeroAccentDrift {
  0%, 100% { transform: translate(-50%, -55%) scale(1); }
  50% { transform: translate(-48%, -52%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .page-hero-accent { animation: none; } }
@media (max-width: 640px) { .page-hero { padding: 20px 0 16px; } }

/* --- Cinematic banner — category & service detail pages, reusing the real category photo --- */
.treatment-banner { position: relative; margin-top: 8px; aspect-ratio: 21/9; min-height: 260px; max-height: 440px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-cinematic); }
@media (max-width: 640px) { .treatment-banner { aspect-ratio: 4/5; max-height: 460px; } }
.treatment-banner img { width: 100%; height: 100%; object-fit: cover; animation: heroKenBurns 10s var(--ease-soft) forwards; }
.treatment-banner-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,40,37,0.8), rgba(43,40,37,0.18) 55%, transparent 80%); }
.treatment-banner-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 36px; color: var(--ivory); }
.treatment-banner .eyebrow { color: var(--champagne); }
.treatment-banner h1 { color: #fff; margin: 8px 0 0; font-weight: 500; letter-spacing: -0.015em; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.treatment-banner-desc { margin-top: 10px; max-width: 42rem; font-size: 0.98rem; color: rgba(250,247,242,0.85); }
@media (prefers-reduced-motion: reduce) { .treatment-banner img { animation: none; } }

/* --- Icon-based service cards (treatments listing/category/detail) --- */
.icon-service-card { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury); }
.icon-service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lifted); }
/* Cursor-tracked spotlight — a distinct interactive language from the magnetic-button pull,
   so cards don't just repeat the same effect as every other interactive element. Desktop/
   fine-pointer only (site.js sets --spot-x/--spot-y and toggles .spotlight-active). */
.icon-service-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
  transition: opacity 0.5s var(--ease-luxury);
  background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 50%), var(--glass-glow-soft), transparent 70%);
}
.icon-service-card.spotlight-active::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .icon-service-card::after { display: none; } }
.icon-service-media { position: relative; height: 104px; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.icon-service-media--photo { height: 180px; }
.icon-service-media--photo img { width: 100%; height: 100%; object-fit: cover; }
.icon-service-badge { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--champagne-dark); }
.service-detail-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 24px; }
.service-card-badge { position: absolute; top: 12px; right: 12px; background: var(--charcoal); color: var(--ivory); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 999px; }
.icon-service-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.icon-service-body h3 { font-size: 1.05rem; margin: 0 0 8px; font-weight: 600; }
.icon-service-body p { font-size: 0.86rem; flex: 1; }
.icon-service-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--graphite); margin-top: 10px; }
.icon-service-meta .price { font-weight: 700; color: var(--charcoal); }
.icon-service-actions { display: flex; gap: 8px; margin-top: 14px; }
.icon-service-actions a { flex: 1; text-align: center; padding: 9px 10px; font-size: 0.78rem; }

/* --- Treatments index — editorial split layout per category, alternating sides --- */
/* Treatment Universe jump-nav — a sticky map across the treatment index instead of a plain
   anchor list, so the page reads as a navigable "universe" rather than a long static scroll. */
.universe-nav {
  position: sticky; top: 92px; z-index: 20;
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
}
.universe-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600; color: var(--graphite);
  transition: background 0.2s ease, color 0.2s ease;
}
.universe-nav a:hover { color: var(--charcoal); background: rgba(43,40,37,0.04); }
.universe-nav a.is-active { color: var(--charcoal); background: var(--champagne); }
.universe-nav-count { font-size: 0.7rem; opacity: 0.6; font-weight: 500; }
.universe-nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--champagne-dark); }
@media (max-width: 640px) {
  .universe-nav {
    top: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
    /* Fades the trailing edge so a cut-off chip reads as "more to scroll", not a broken layout. */
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
  }
  .universe-nav::-webkit-scrollbar { display: none; }
}

.ti-category { display: grid; gap: 32px; align-items: center; margin-top: 88px; position: relative; scroll-margin-top: 150px; }
@media (min-width: 900px) { .ti-category { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.ti-category:nth-of-type(even) .ti-media { order: 2; }
.ti-media { position: relative; aspect-ratio: 5/4; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lifted); }
.ti-media a { display: block; width: 100%; height: 100%; }
.ti-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-luxury); }
.ti-category:hover .ti-media img { transform: scale(1.05); }
.ti-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.01em; }
.ti-body > p { max-width: 34rem; }
.ti-list { margin-top: 20px; display: flex; flex-direction: column; }
.ti-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--hairline); font-size: 0.92rem; font-weight: 500; color: var(--charcoal); transition: padding-left 0.3s var(--ease-luxury), color 0.25s ease; }
.ti-list a:hover { padding-left: 10px; color: var(--champagne-dark); }
.ti-list a .arrow { opacity: 0; transition: opacity 0.25s ease; color: var(--champagne-dark); }
.ti-list a:hover .arrow { opacity: 1; }
.ti-viewall { margin-top: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--champagne-dark); }

/* --- Service detail layout --- */
.service-detail-grid { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .service-detail-grid { grid-template-columns: 2fr 1fr; } }
.service-detail-aside .card { position: sticky; top: 100px; box-shadow: var(--shadow-lifted); border: 1px solid var(--hairline); }

/* --- On-site booking dialog (details -> price+payment -> confirmation) --- */
.booking-dialog { position: relative; width: min(480px, 92vw); border: none; border-radius: var(--radius-lg); padding: 32px 24px; box-shadow: var(--shadow-cinematic); }
.booking-dialog::backdrop { background: rgba(20,16,13,0.55); }
.booking-dialog h3 { margin-top: 0; }
.booking-dialog-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--cream); font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--graphite); }
.booking-dialog label { display: block; margin-bottom: 12px; font-size: 0.85rem; }
.booking-dialog input { width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 8px; font-family: var(--font-sans); font-size: 0.92rem; }
#booking-card-container { min-height: 90px; padding: 4px 0; }
.booking-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 180px; overflow-y: auto; }
.booking-slot-btn { padding: 8px 6px; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; font-family: var(--font-sans); font-size: 0.82rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.booking-slot-btn:hover { border-color: var(--champagne-dark); }
.booking-slot-btn.is-selected { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
@media (prefers-reduced-motion: no-preference) { .booking-dialog[open] { animation: bookingDialogIn 0.3s var(--ease-luxury); } }
@keyframes bookingDialogIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.service-detail-main h2 { font-size: 1.4rem; font-weight: 500; }
.process-timeline { list-style: none; margin: 16px 0 0; padding: 0 0 0 32px; border-left: 1px solid var(--hairline); }
.process-timeline li { position: relative; margin-bottom: 28px; }
.process-timeline li:last-child { margin-bottom: 0; }
.process-num { position: absolute; left: -47px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--charcoal); color: var(--ivory); font-family: var(--font-serif); font-size: 0.78rem; display: flex; align-items: center; justify-content: center; }
.process-timeline h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--champagne-dark); margin: 0; }
.process-timeline p { margin-top: 6px; font-size: 0.9rem; }

/* --- Pricing page --- */
.pricing-jumpnav { position: sticky; top: 76px; z-index: 30; margin-top: 24px; background: rgba(250,247,242,0.95); backdrop-filter: blur(6px); border: 1px solid rgba(43,40,37,0.08); border-radius: var(--radius-md); padding: 10px 14px; display: flex; gap: 8px; overflow-x: auto; }
.pricing-jumpnav a { flex-shrink: 0; padding: 7px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--graphite); }
.pricing-jumpnav a:hover { background: var(--cream); }
.pricing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid rgba(43,40,37,0.08); }
.pricing-row-name { font-weight: 600; margin: 0; }
.pricing-row-duration { font-size: 0.76rem; color: var(--graphite); margin: 2px 0 0; }
.pricing-row-action { display: flex; align-items: center; gap: 12px; }
.pricing-row-price { font-weight: 700; }

/* --- About page practitioner card --- */
.practitioner-card { display: grid; gap: 28px; margin: 56px auto 0; max-width: 760px; border: 1px solid rgba(43,40,37,0.1); background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px; }
@media (min-width: 640px) { .practitioner-card { grid-template-columns: 150px 1fr; align-items: start; } }
.practitioner-photo { width: 130px; height: 130px; margin: 0 auto; border-radius: 50%; overflow: hidden; }
@media (min-width: 640px) { .practitioner-photo { width: 100%; height: auto; aspect-ratio: 1/1; } }
.practitioner-photo img { width: 100%; height: 100%; object-fit: cover; }
.practitioner-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.practitioner-title { color: var(--champagne-dark); font-size: 0.9rem; margin: 0 0 10px; }
.practitioner-bio { font-size: 0.9rem; }
.practitioner-specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.practitioner-chip { font-size: 0.78rem; font-weight: 600; padding: 5px 13px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--hairline); color: var(--charcoal); }
.practitioner-quals { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.practitioner-quals-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--graphite); margin: 0 0 8px; }
.practitioner-quals ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.practitioner-quals li { font-size: 0.85rem; color: var(--charcoal); padding-left: 20px; position: relative; }
.practitioner-quals li::before { content: '✓'; position: absolute; left: 0; color: var(--champagne-dark); font-weight: 700; }
.practitioner-languages { font-size: 0.82rem; color: var(--graphite); margin-top: 14px; }
.practitioner-social { display: flex; gap: 16px; margin-top: 16px; }
.practitioner-social a { font-size: 0.85rem; font-weight: 600; color: var(--champagne-dark); }

/* --- Certificate showcase: real certificate photos "hung" on a line, each frame tilted a few
   degrees and straightening on hover — a distinct visual moment for real, verified credentials
   instead of a plain checklist. Only rendered when at least one real certificate photo has been
   uploaded via admin (about.php falls back to the plain text list otherwise). --- */
.cert-wall { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.cert-wall-row { position: relative; display: flex; flex-wrap: wrap; gap: 28px 22px; padding-top: 22px; }
.cert-wall-line { position: absolute; top: 8px; left: 4px; right: 4px; height: 2px; background: linear-gradient(90deg, transparent, var(--hairline) 8%, var(--hairline) 92%, transparent); }
.cert-frame {
  position: relative; width: 110px; text-align: center; background: #fff; padding: 8px 8px 10px;
  border-radius: 4px; box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, -3deg));
  transition: transform 0.45s var(--ease-luxury), box-shadow 0.45s var(--ease-luxury);
}
.cert-frame:hover, .cert-frame:focus-within { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-lifted); z-index: 1; }
.cert-pin { position: absolute; top: -7px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--champagne); box-shadow: 0 1px 3px rgba(43,40,37,0.35); }
.cert-frame img { width: 100%; height: 78px; object-fit: cover; border-radius: 2px; display: block; }
.cert-label { font-size: 0.68rem; color: var(--graphite); margin: 8px 0 0; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .cert-frame { transition: none; } }

/* --- Contact page --- */
.contact-grid { display: grid; gap: 48px; margin-top: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-block { margin-bottom: 24px; font-size: 0.9rem; }
.contact-block h2 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.contact-block p { margin: 0 0 2px; }
.contact-block a:hover { color: var(--charcoal); }
.contact-link { color: var(--champagne-dark); text-decoration: underline; font-size: 0.85rem; }
.contact-form label { margin-bottom: 18px; }

/* --- Before/After slider --- */
.ba-slider { position: relative; aspect-ratio: 1/1; width: 100%; overflow: hidden; touch-action: none; user-select: none; cursor: ew-resize; }
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-after img, .ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { transition: clip-path 0.1s linear; }
.ba-slider.is-demo .ba-before { transition: clip-path 1.1s var(--ease-luxury); }
.ba-label { position: absolute; top: 12px; background: rgba(43,40,37,0.8); color: #fff; font-size: 0.72rem; padding: 3px 9px; border-radius: 4px; }
.ba-label-right { right: 12px; }
.ba-label-left { left: 12px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--glass-glow) 15%, var(--glass-glow) 85%, transparent);
  box-shadow: 0 0 12px var(--glass-glow-soft);
  transition: left 0.1s linear;
}
.ba-slider.is-demo .ba-handle { transition: left 1.1s var(--ease-luxury); }
.ba-handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-lifted), 0 0 0 1px var(--glass-tint) inset;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  transition: transform 0.3s var(--ease-luxury), box-shadow 0.3s ease;
}
.ba-slider:hover .ba-handle-grip, .ba-slider:focus-visible .ba-handle-grip {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: var(--shadow-cinematic), 0 0 0 1px var(--glass-glow-soft) inset;
}

/* --- Blog post rich content (rendered from admin-authored contentHtml only) --- */
.blog-content { margin-top: 40px; font-size: 0.94rem; line-height: 1.75; color: var(--graphite); }
.blog-content h2 { margin-top: 2em; font-size: 1.5rem; color: var(--charcoal); }
.blog-content h3 { margin-top: 1.6em; font-size: 1.2rem; color: var(--charcoal); }
.blog-content h4 { margin-top: 1.2em; font-weight: 700; color: var(--charcoal); }
.blog-content p, .blog-content ul, .blog-content ol { margin-top: 1em; }
.blog-content ul { list-style: disc; padding-left: 1.4em; }
.blog-content ol { list-style: decimal; padding-left: 1.4em; }
.blog-content a { color: var(--champagne-dark); text-decoration: underline; }
.blog-content blockquote { margin-top: 1em; border-left: 2px solid var(--champagne-dark); padding-left: 16px; font-style: italic; }
.blog-content table { margin-top: 1em; width: 100%; border-collapse: collapse; }
.blog-content td, .blog-content th { border: 1px solid rgba(43,40,37,0.1); padding: 8px; }
.blog-content th { background: var(--cream); }
.blog-content img { margin-top: 1em; border-radius: var(--radius-md); }
.blog-content .faq-block { margin-top: 1.5em; border: 1px solid rgba(43,40,37,0.1); background: rgba(243,237,228,0.5); border-radius: var(--radius-md); padding: 20px; }
.blog-content .faq-block h3 { margin-top: 0; font-size: 1.1rem; }
.blog-content .cta-block { margin-top: 1.5em; border: 1px solid var(--champagne-dark); background: rgba(201,168,118,0.2); border-radius: var(--radius-md); padding: 20px; }
.blog-content .cta-block p { margin-top: 0; }

/* --- Compare table --- */
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.compare-table th { border-bottom: 1px solid rgba(43,40,37,0.1); padding: 12px 20px 12px 0; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; }
.compare-table th:first-child { width: 160px; }
.compare-table td { border-bottom: 1px solid rgba(43,40,37,0.08); padding: 12px 20px 12px 0; vertical-align: top; color: var(--graphite); }
.compare-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Treatment Finder chips --- */
.finder-chip { border: 1px solid rgba(43,40,37,0.15); color: var(--charcoal); background: transparent; padding: 10px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.finder-chip:hover { border-color: var(--charcoal); }
.finder-chip.is-active { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.finder-result-card { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-luxury), transform 0.5s var(--ease-luxury); }
.finder-result-card.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .finder-result-card { opacity: 1; transform: none; transition: none; } }

/* Footer map */
.footer-map { padding-top:8px; padding-bottom:32px; }
.footer-map-frame { border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--hairline-on-dark); height:300px; box-shadow:var(--shadow-card); background:#1b1816; }
.footer-map-frame iframe { width:100%; height:100%; border:0; display:block; filter:grayscale(.2) contrast(1.02); }
.footer-map-link { display:inline-block; margin-top:14px; font-size:.9rem; font-weight:600; color:var(--champagne-dark); }
@media (max-width:640px) { .footer-map-frame { height:230px; } }
