/* Rehafit — 1a "Editorial Ruhe": Newsreader/Public Sans, warm sand, purple brand. */

/* Self-hosted variable fonts (latin subset). Served from our own domain on
   purpose: loading them from fonts.googleapis.com sent every visitor's IP
   to Google, which German courts treat as a GDPR violation (LG München I,
   2022). Files come from the Google Fonts CDN, OFL-licensed. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/public-sans.woff2') format('woff2');
}

:root {
  --bg: #FBF7F2;
  --bg-alt: #F4EDE3;
  --bg-dark: #2A2320;
  --ink: #2A2320;
  --ink-soft: #5B4E44;
  --ink-mute: #8A8578;
  --border: #E7DECF;
  --border-soft: #EDE6DA;

  /* Purples carried over from the old site, so the new pages keep the
     brand the logo already carries: #342e63 was its header bar, #8d4581
     its footer. The plum doubles as the interactive accent — the previous
     terracotta shared no ground with the purple/magenta logo. */
  --purple: #342e63;
  --purple-ink: #EDEAF6;
  --accent: #8d4581;
  --accent-deep: #6f3566;
  --accent-ink: #FFF7FB;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --content-w: 640px;
  --wide-w: 1080px;
  --header-h: 66px;
  /* 0 while the utility bar is hidden on phones; both values feed the
     overlay's top inset and the anchor scroll offset. */
  --topbar-h: 0px;

  /* One easing/duration pair for every transition on the site, so the
     interface feels like a single mechanism rather than a pile of widgets. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.34s;
  --dur-fast: 0.18s;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors like /#anfahrt must not end up underneath the sticky header. */
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(42, 35, 32, 0.06);
  overflow-x: hidden;
}

/* Scroll lock used by the nav overlay and the lightbox. `position: fixed`
   instead of `overflow: hidden` because iOS Safari ignores the latter on
   body, and JS pins the offset via an inline `top` so nothing jumps. */
body.is-nav-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
/* picture is only a format-switch wrapper — layout sees the img directly. */
picture { display: contents; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 0; }

.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-wide {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 0 20px;
}

.kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
}

/* padding-block, not the `padding` shorthand: most sections are
   `class="section wrap"`, and a shorthand here would reset the horizontal
   gutter that .wrap sets. */
.section { padding-block: 44px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--bg-dark); color: #E8DFD3; }
.section-dark .kicker { color: #B8AC9C; }

.page-title { font-size: 31px; line-height: 1.15; }
.sub-heading { font-size: 23px; margin-top: 34px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; }
/* Same idiom as .kicker, so a count next to a serif heading reads as a quiet
   label rather than competing body text. */
.section-head-meta {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.section-head-link {
  display: inline-block;
  padding-block: 6px;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.section-head-link:hover { border-bottom-color: currentColor; }

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
  transition: border-color var(--dur-fast) var(--ease);
}
.inline-link:hover { border-bottom-color: currentColor; }

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 24px;
  border-radius: 27px;
  font-size: 15.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -10px rgba(42, 35, 32, .45); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: none; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-outline { background: transparent; border: 1px solid #D8CFC2; color: var(--ink-soft); }
.btn-outline:hover { background: rgba(255, 255, 255, .6); }
.btn-row { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */
/* Utility bar + header travel together, so the sticky offset stays a single
   known height and the overlay can inset itself below both. */
.site-top {
  position: sticky;
  top: 0;
  /* Above the nav overlay: the burger morphs into the close button and has
     to stay reachable while the overlay is open. */
  z-index: 100;
}

.top-bar {
  display: none;
  background: var(--purple);
  color: var(--purple-ink);
}
.top-bar-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13.5px;
}
.top-bar p { margin: 0; }
.top-bar-role { letter-spacing: .01em; }
.top-bar-phone { white-space: nowrap; }
.top-bar-phone a {
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  transition: border-color var(--dur-fast) var(--ease);
}
.top-bar-phone a:hover { border-bottom-color: #fff; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding: 12px 20px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-top.is-scrolled .site-header {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 24px -20px rgba(42, 35, 32, .5);
}
/* While the overlay is open the header sits on the overlay's own surface —
   a translucent bar on top of it would read as a seam. */
.has-nav-open .site-header {
  background: var(--bg);
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header .logo img {
  height: 36px;
  width: auto;
  mix-blend-mode: multiply;
  transition: transform var(--dur) var(--ease);
}
.site-header .logo:active img { transform: scale(.97); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.call-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 21px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.call-pill:hover { filter: brightness(1.06); }
.call-pill:active { transform: scale(.96); }

/* Burger that morphs into a ✕ ------------------------------------------ */
.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 21px;
  border: 1px solid #E0D8CC;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.menu-btn:hover { background: rgba(255, 255, 255, .7); border-color: #D3C9BA; }
.menu-btn:active { transform: scale(.94); }

.menu-bars {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
}
.menu-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 5.25px; }
.menu-bars span:nth-child(3) { top: 10.5px; }

.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.4);
}
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Horizontal menu (wide screens) with services dropdown              */
/* ------------------------------------------------------------------ */
.main-nav { display: none; }
/* Direct child only — `.main-nav ul` would also hand `align-items: center`
   to the dropdown, which centres its entries once it turns into a column. */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.main-nav > ul > li > a:hover { color: var(--accent); background: var(--bg-alt); }
.main-nav > ul > li > a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.main-nav .caret { font-size: 9px; opacity: .6; transition: transform var(--dur-fast) var(--ease); }
.main-nav .has-sub:hover .caret,
.main-nav .has-sub:focus-within .caret { transform: translateY(1px); }

/* Opened on hover and on keyboard focus alike, so the submenu needs no JS:
   tabbing into one of its links keeps it open via :focus-within. */
.main-nav .sub-nav {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  /* Two columns: eleven services in a single column made a panel taller
     than most laptop viewports. */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4px;
  list-style: none;
  margin: 0;
  width: max-content;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: 0 20px 40px -26px rgba(42, 35, 32, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}
.main-nav .has-sub:hover .sub-nav,
.main-nav .has-sub:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.main-nav .sub-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.main-nav .sub-nav a:hover { color: var(--accent); background: var(--bg-alt); }

/* ------------------------------------------------------------------ */
/* Fullscreen navigation overlay                                      */
/* ------------------------------------------------------------------ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  background: var(--bg);
  padding: calc(var(--topbar-h) + var(--header-h) + 8px) 20px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* Author-level rule needed because `.nav-overlay { display: flex }` would
   otherwise beat the user-agent's `[hidden] { display: none }`. */
.nav-overlay[hidden] { display: none; }
.nav-overlay.is-open { opacity: 1; transform: none; }

.nav-overlay-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  max-width: var(--content-w);
  margin: 0 auto;
  width: 100%;
}

.nav-overlay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-overlay-list li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  /* Each entry follows the one above it, so the menu unfolds instead of
     appearing all at once. */
  transition-delay: calc(var(--i, 0) * 38ms + 70ms);
}
.nav-overlay.is-open .nav-overlay-list li { opacity: 1; transform: none; }

.nav-overlay-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur) var(--ease);
}
.nav-overlay-list a:hover { color: var(--accent); padding-left: 8px; }
.nav-overlay-list a[aria-current="page"] { color: var(--accent); }
.nav-overlay-list a[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* The services nested under "Leistungen", mirroring the old site's
   collapsible dropdown. */
.nav-overlay-sub {
  list-style: none;
  margin: 2px 0 6px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--border);
  columns: 1;
}
/* Two columns only once the service names stop wrapping mid-word. */
@media (min-width: 560px) {
  .nav-overlay-sub { columns: 2; column-gap: 18px; }
}
.nav-overlay-sub a {
  display: block;
  padding: 7px 0;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  border-bottom: none;
  color: var(--ink-soft);
}
.nav-overlay-sub a:hover { color: var(--accent); padding-left: 0; }

.nav-overlay-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  color: var(--ink-mute);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  transition-delay: 260ms;
}
.nav-overlay.is-open .nav-overlay-footer { opacity: 1; }
.nav-overlay-phone { font-size: 17px; font-weight: 600; color: var(--accent); }

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */
.hero { padding-block: 40px 30px; }
.hero h1 { font-size: 38px; line-height: 1.1; }
.hero .hero-text { font-size: 16.5px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 22px; }
.hero-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 30%;
  background: var(--border-soft);
}

/* Philosophy / pull quote */
.pull-quote { font-family: 'Newsreader', Georgia, serif; font-size: 21px; line-height: 1.5; color: #38302A; margin: 0 0 14px; }
.body-text { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* Prose (rich-text content from the admin panel)                     */
/* ------------------------------------------------------------------ */
.prose { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 22px; color: var(--ink); margin: 1.7em 0 .5em; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 1.7em 0 .45em; }
.prose h4 { font-size: 16px; font-family: 'Public Sans', sans-serif; font-weight: 600; color: var(--ink); margin: 1.6em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.15em; }
.prose li { margin-bottom: .45em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { padding-left: 1.1em; position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.prose ol { list-style: decimal; }
.prose ol > li::before { content: none; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
}
.prose a:hover { border-bottom-color: currentColor; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
}
.prose img { margin: 1.2em 0; border-radius: var(--radius-md); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border-soft); }

/* ------------------------------------------------------------------ */
/* Services                                                           */
/* ------------------------------------------------------------------ */
/* A typographic list, not a table: the rows share the section's background
   and are separated by hairlines only. Filling each row in a lighter tone
   turned the block into a foreign near-white slab, and its 1px gutters were
   the hardest edges on the page. Without a frame the space between label and
   arrow reads as breathing room instead of an empty box. */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.35;
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur) var(--ease);
}
.service-row:hover { color: var(--accent); padding-left: 10px; }
.service-row .arrow {
  flex: none;
  color: var(--accent);
  font-size: 16px;
  opacity: .5;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.service-row:hover .arrow { opacity: 1; transform: translateX(4px); }
.service-note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: #7A6E60; }

.service-cards { display: grid; gap: 12px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--border));
  box-shadow: 0 14px 30px -24px rgba(42, 35, 32, .7);
  background: #fff;
}
.service-card:active { transform: translateY(0); }
.service-card-title { font-family: 'Newsreader', Georgia, serif; font-size: 21px; }
.service-card-teaser { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.service-card-note {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.breadcrumb { padding-top: 20px; }
.breadcrumb a {
  display: inline-block;
  padding-block: 6px;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color var(--dur-fast) var(--ease);
}
.breadcrumb a:hover { color: var(--accent); }

.service-hero-img { width: 100%; max-height: 320px; object-fit: cover; margin-top: 6px; }
.gkv-note { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }

.highlight-box { padding: 22px; border-radius: var(--radius-md); background: var(--bg-alt); margin: 26px 0; }
.highlight-box .title { font-size: 14.5px; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.highlight-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--ink-soft); }
.highlight-box li::before { content: "• "; color: var(--accent); }

.technique-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.technique-item { background: var(--bg); padding: 18px 0; }
.technique-item .title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.technique-item .body { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.technique-item .body p { margin: 0; }

/* ------------------------------------------------------------------ */
/* Opening hours, contact, map                                        */
/* ------------------------------------------------------------------ */
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.section-dark .hours-row { border-bottom-color: rgba(255, 255, 255, .16); }
.hours-row .value { font-weight: 600; text-align: right; }

.contact-box { margin-top: 30px; padding: 24px; border-radius: var(--radius-md); background: var(--bg-alt); border: 1px solid var(--border); }
.contact-box .title { font-family: 'Newsreader', Georgia, serif; font-size: 20px; margin: 0 0 14px; }
.contact-box .btn { max-width: 320px; }
.contact-list { margin: 20px 0 0; font-size: 14.5px; }
.contact-list dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 12px; }
.contact-list dd { margin: 3px 0 0; color: var(--ink-soft); }
.contact-box .hint { margin: 16px 0 0; font-size: 13px; color: #7A6E60; }

.address-block, .address-quote { font-style: normal; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.address-quote {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.footer-address { font-style: normal; font-size: 14px; line-height: 1.7; color: rgba(237, 234, 246, .78); }
.footer-address a { border-bottom: 1px solid rgba(237, 234, 246, .3); }
.footer-address a:hover { color: #fff; border-bottom-color: #fff; }

.map-box {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border: none;
  background: linear-gradient(160deg, var(--bg-alt), #EBE2D5);
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: filter var(--dur-fast) var(--ease);
}
.map-consent:hover { filter: brightness(1.02); }
.map-consent-title { font-family: 'Newsreader', Georgia, serif; font-size: 19px; color: var(--ink); }
.map-consent-text { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); max-width: 34ch; }
.map-consent-text a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ------------------------------------------------------------------ */
/* Impressions strip / gallery                                        */
/* ------------------------------------------------------------------ */
.impression-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Bleed to the viewport edges so the strip reads as scrollable. */
  margin: 0 -20px;
  padding: 0 20px 4px;
}
.impression-strip::-webkit-scrollbar { display: none; }
.impression-strip img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  scroll-snap-align: start;
}

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gallery-item:hover { transform: scale(1.015); box-shadow: 0 14px 30px -22px rgba(42, 35, 32, .8); }
.gallery-item:active { transform: scale(.99); }
.gallery-item img { width: 100%; height: 160px; object-fit: cover; }

/* Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(26, 21, 19, .93);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-figure {
  margin: 0;
  max-width: min(100%, 1000px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(.97);
  transition: transform var(--dur) var(--ease);
}
.lightbox.is-open .lightbox-figure { transform: none; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}
.lightbox-figure figcaption { text-align: center; font-size: 13.5px; color: #C9BEB1; }
.lightbox-close, .lightbox-nav {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #F6EFE7;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close:active, .lightbox-nav:active { transform: scale(.93); }
.lightbox-close { position: absolute; top: 16px; right: 16px; }

/* ------------------------------------------------------------------ */
/* Team, links                                                        */
/* ------------------------------------------------------------------ */
.team-list { margin-top: 14px; }
.team-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border-soft); }
.team-card:last-child { border-bottom: none; }
.team-card img { width: 88px; height: 108px; border-radius: 12px; object-fit: cover; flex: none; background: var(--border-soft); }
.team-card .name { font-family: 'Newsreader', Georgia, serif; font-size: 19px; margin: 0 0 4px; }
.team-card .role { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px; }
.team-card .bio { font-size: 14.5px; }

.link-list { margin-top: 22px; }
.link-row { padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.link-row:last-child { border-bottom: none; }
.link-row .label {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  transition: color var(--dur-fast) var(--ease);
}
.link-row .label:hover { color: var(--accent); }
.link-row .ext { color: var(--accent); font-size: 14px; }
.link-row .desc { margin: 0 0 6px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.link-row .url { margin: 0; font-size: 12.5px; color: var(--ink-mute); word-break: break-all; }

/* ------------------------------------------------------------------ */
/* CTA band + footer                                                  */
/* ------------------------------------------------------------------ */
.cta-band { background: var(--bg-alt); border-top: 1px solid var(--border); }
.cta-band .body-text { margin-bottom: 20px; }

/* Purple, like the old site's footer — it bookends the page against the
   utility bar up top. */
.site-footer {
  padding: 34px 0 38px;
  background: var(--purple);
  color: var(--purple-ink);
}
.site-footer .kicker { color: rgba(237, 234, 246, .65); }
.footer-top { display: flex; flex-direction: column; gap: 26px; }
.site-footer .practice-name { font-family: 'Newsreader', Georgia, serif; font-size: 20px; margin-bottom: 10px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 13.5px; }
.footer-nav a { color: rgba(237, 234, 246, .78); transition: color var(--dur-fast) var(--ease); display: inline-block; padding-block: 4px; }
.footer-nav a:hover { color: #fff; }
.copyright { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 11.5px; color: rgba(237, 234, 246, .55); }

/* ------------------------------------------------------------------ */
/* Error pages (error.php — renders without the database)             */
/* ------------------------------------------------------------------ */
.error-header {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.error-header .logo img { height: 36px; width: auto; mix-blend-mode: multiply; }
.error-main { padding-block: 44px 60px; }
.error-main .services-list { margin-top: 4px; }
/* No border-top: the link list above already closes with a hairline, and a
   second one right below it read as an empty row. */
.error-contact {
  margin-top: 34px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------------ */
/* Service icons (inline SVG, stroke = currentColor)                  */
/* ------------------------------------------------------------------ */
.service-icon { width: 21px; height: 21px; flex: none; color: var(--accent); }

.main-nav .sub-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-overlay-sub a {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-overlay-sub .service-icon { width: 18px; height: 18px; }

.service-row-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.service-card-head { display: flex; align-items: center; gap: 10px; }
.service-card-head .service-icon { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ */
/* Google rating band                                                 */
/* ------------------------------------------------------------------ */
.review-band { padding-block: 26px; }
.review-inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.review-score { display: flex; flex-direction: column; gap: 4px; }
.stars-svg { width: 116px; height: 23px; display: block; }
.stars-empty { fill: color-mix(in oklch, var(--accent) 22%, var(--bg)); }
.stars-full { fill: var(--accent); }
.review-value { margin: 4px 0 0; font-size: 15.5px; color: var(--ink-soft); }
.review-value strong { font-family: 'Newsreader', Georgia, serif; font-size: 22px; color: var(--ink); }
.review-source { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.review-links { display: flex; flex-wrap: wrap; gap: 10px; }
.review-links .btn { width: auto; height: 46px; padding: 0 20px; font-size: 14.5px; }

@media (min-width: 720px) {
  .review-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ------------------------------------------------------------------ */
/* Consent banner                                                     */
/* ------------------------------------------------------------------ */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 250;
  background: var(--purple);
  color: var(--purple-ink);
  box-shadow: 0 -12px 40px -18px rgba(26, 21, 50, .6);
  transform: translateY(102%);
  transition: transform var(--dur) var(--ease);
}
.consent-banner[hidden] { display: none; }
.consent-banner.is-open { transform: none; }
.consent-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.consent-text { margin: 0; font-size: 13.5px; line-height: 1.6; }
.consent-text a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.consent-text a:hover { border-bottom-color: #fff; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-btn { width: auto; height: 44px; padding: 0 20px; font-size: 14px; }
.consent-banner .btn-outline { border-color: rgba(255, 255, 255, .4); color: #fff; }
.consent-banner .btn-outline:hover { background: rgba(255, 255, 255, .12); }

@media (min-width: 720px) {
  .consent-inner { flex-direction: row; align-items: center; }
  .consent-text { flex: 1; }
}

/* News banner */
.news-banner { background: var(--accent); color: var(--accent-ink); padding: 12px 20px; font-size: 13.5px; text-align: center; }

/* ------------------------------------------------------------------ */
/* Wider viewports                                                    */
/* ------------------------------------------------------------------ */
@media (min-width: 720px) {
  :root { --header-h: 74px; --topbar-h: 36px; }
  /* Enough width for the practitioner line and the phone number side by
     side; on phones the number is already in the header as the call pill. */
  .top-bar { display: block; }
  .hero h1 { font-size: 46px; }
  .page-title { font-size: 38px; }
  .hero-photo { height: 380px; border-radius: var(--radius-lg); }
  .btn-row { flex-direction: row; max-width: none; flex-wrap: wrap; }
  .btn { width: auto; padding: 0 30px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .impression-strip { grid-auto-columns: 34%; }
  .nav-overlay-list a { font-size: 34px; }
  .footer-top { flex-direction: row; justify-content: space-between; gap: 40px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 10px 32px; }
  .call-pill { padding: 0 18px; }
  .section { padding-block: 60px; }
}

@media (min-width: 1000px) {
  /* The card grid is the one block that reads cramped at the editorial
     column width — give it a little more room without breaking the layout. */
  .service-cards-wrap { max-width: 860px; }
  .service-cards { gap: 16px; }
}

/* Six menu entries plus the logo need roughly this much room; below it the
   burger and the fullscreen overlay take over. */
@media (min-width: 1020px) {
  :root { --header-h: 82px; }
  /* Centres the header's contents on the same measure as the utility bar
     while the background stays full-bleed — a max-width on the element
     itself would cut the bar off at the sides. */
  .site-header { padding-inline: max(20px, calc((100% - var(--wide-w)) / 2)); }
  .site-header .logo img { height: 44px; }
  .main-nav { display: block; }
  .menu-btn, .call-pill { display: none; }
}

@media (max-width: 380px) {
  /* Keep the header from wrapping on the narrowest phones. */
  .call-pill-label { display: none; }
  .call-pill { padding: 0 13px; }
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                     */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    /* Not 0s: the nav overlay waits for `transitionend` before it hides
       itself, and a zeroed duration would never fire the event. */
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .service-card:hover, .gallery-item:hover { transform: none; }
  .nav-overlay { transform: none; }
}
