/*
Theme Name: Praxis Spiller
Theme URI: https://www.praxis-spiller.de/
Author: Gesundheitszentrum Dr. Spiller
Author URI: https://www.praxis-spiller.de/
Description: Maßgeschneidertes, datenschutzfreundliches und sicheres WordPress-Theme für das Gesundheitszentrum Dr. Spiller in Espenau. Vollständig responsive, DSGVO-konform, ohne externe Tracker. Cleanes, minimalistisches Weiß-Design mit rotem Akzent (Farbschema der Live-Website), Schrift Montserrat.
Version: 1.0.6
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: praxis-spiller
Tags: medical, healthcare, responsive, gdpr, accessibility-ready, translation-ready
*/

/* ==========================================================================
   Design tokens
   Palette: taken 1:1 from the live praxis-spiller.de site — a clean, minimal
   white aesthetic with near-black headings, soft grey body text and a single
   red accent (#de1515). Typeface: Montserrat, as on the live site.
   Variable names are kept generic so the whole stylesheet re-skins from here.
   ========================================================================== */
:root {
  --ps-forest:        #272a2f;   /* dark ink panel (live dark section)      */
  --ps-forest-deep:   #231f20;   /* heading ink (live H color)              */
  --ps-forest-soft:   #5a5a5a;   /* secondary grey                          */
  --ps-sage:          #f5f5f5;   /* light grey wash (live light panel)      */
  --ps-paper:         #ffffff;   /* page background — white                 */
  --ps-paper-dim:     #f7f7f7;   /* subtly off-white panel                  */
  --ps-ink:           #333333;   /* body text (live)                        */
  --ps-ink-soft:      #787878;   /* muted text (live)                       */
  --ps-copper:        #de1515;   /* single accent — CTAs, links (live red)  */
  --ps-copper-deep:   #b91111;   /* darker red for hover                    */
  --ps-line:          #eaeaea;   /* hairlines / borders                     */
  --ps-white:         #ffffff;
  --ps-danger:        #b91111;
  --ps-ok:            #1d7a4d;

  --ps-font-display:  'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ps-font-body:     'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ps-step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --ps-step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --ps-step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --ps-step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --ps-step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --ps-step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);

  --ps-maxw: 1160px;
  --ps-gap: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --ps-radius: 12px;
  --ps-radius-lg: 18px;
  --ps-shadow: 0 16px 44px -30px rgba(35, 31, 32, 0.20);
  --ps-shadow-soft: 0 4px 18px -14px rgba(35, 31, 32, 0.14);
  --ps-ring: 0 0 0 3px rgba(222, 21, 21, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--ps-font-body);
  font-size: var(--ps-step-0);
  line-height: 1.65;
  color: var(--ps-ink);
  background: var(--ps-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, p, li, dd, dt, figcaption { overflow-wrap: break-word; }

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--ps-copper-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ps-copper); }

h1, h2, h3, h4 { font-family: var(--ps-font-display); font-weight: 700; line-height: 1.16; color: var(--ps-forest-deep); margin: 0 0 0.5em; letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: var(--ps-step-4); letter-spacing: -0.03em; }
h2 { font-size: var(--ps-step-3); letter-spacing: -0.022em; }
h3 { font-size: var(--ps-step-2); }
h4 { font-size: var(--ps-step-1); }
p { margin: 0 0 1.1em; }

:focus-visible { outline: none; box-shadow: var(--ps-ring); border-radius: 6px; }

.ps-container { width: min(100% - 2.4rem, var(--ps-maxw)); margin-inline: auto; }
.ps-section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.ps-section--tight { padding-block: clamp(2rem, 1.4rem + 3vw, 3.6rem); }
.ps-eyebrow {
  font-family: var(--ps-font-body);
  font-size: var(--ps-step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ps-copper-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.ps-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ps-copper); display: inline-block; }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ps-forest); color: #fff; padding: 0.8rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.ps-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--ps-font-body); font-weight: 600; font-size: var(--ps-step-0);
  padding: 0.85rem 1.6rem; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.ps-btn--primary { background: var(--ps-copper); color: #fff; box-shadow: var(--ps-shadow-soft); }
.ps-btn--primary:hover { background: var(--ps-copper-deep); color: #fff; transform: translateY(-2px); }
.ps-btn--ghost { background: transparent; color: var(--ps-forest-deep); border-color: var(--ps-forest-soft); }
.ps-btn--ghost:hover { background: var(--ps-forest); color: #fff; transform: translateY(-2px); }
.ps-btn--light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.ps-btn--light:hover { background: #fff; color: var(--ps-forest-deep); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
/* ==========================================================================
   Header — clean two-band layout
   Band 1: slim info topbar (phone/address · hours)
   Band 2: brand + primary navigation
   On the front page the whole header overlays the hero transparently and
   turns solid on scroll. The two bands never overlap.
   ========================================================================== */
.ps-headwrap { position: sticky; top: 0; z-index: 60; }

.ps-topbar {
  background: var(--ps-paper-dim); color: var(--ps-ink);
  border-bottom: 1px solid var(--ps-line);
  font-size: var(--ps-step--1);
}
.ps-topbar .ps-container { display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; justify-content: space-between; align-items: center; padding-block: .45rem; }
.ps-topbar a { color: var(--ps-ink); text-decoration: none; }
.ps-topbar a:hover { color: var(--ps-copper-deep); text-decoration: none; }
.ps-topbar__group { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; align-items: center; }
.ps-topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.ps-topbar__item svg { opacity: .6; }

.ps-header {
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ps-line);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ps-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .6rem; }
.ps-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ps-forest-deep); flex: none; }
.ps-brand__mark-img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.ps-brand .custom-logo { height: 50px; width: auto; }
.ps-brand__mark { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--ps-copper); display: grid; place-items: center; color: #fff; font-family: var(--ps-font-display); font-weight: 700; font-size: 1.3rem; }
.ps-brand__name { font-family: var(--ps-font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.05; color: var(--ps-forest-deep); white-space: nowrap; }
.ps-brand__name span { display: block; font-family: var(--ps-font-body); font-weight: 600; font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ps-copper-deep); }

/* ---- Primary nav: understated links, red underline on hover/active ---- */
.ps-nav { display: flex; align-items: center; }
.ps-nav ul, .ps-nav__list { list-style: none; display: flex; flex-wrap: nowrap; gap: .05rem; margin: 0; padding: 0; align-items: center; }
.ps-nav a {
  position: relative;
  display: block; text-decoration: none; color: var(--ps-ink);
  font-weight: 500; font-size: .92rem; padding: .5rem .62rem; border-radius: 6px;
  white-space: nowrap; transition: color .15s ease, background .15s ease;
}
.ps-nav a::after {
  content: ""; position: absolute; left: .62rem; right: .62rem; bottom: .25rem; height: 2px;
  background: var(--ps-copper); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.ps-nav a:hover { color: var(--ps-forest-deep); }
.ps-nav a:hover::after,
.ps-nav .current-menu-item > a::after,
.ps-nav .current_page_item > a::after { transform: scaleX(1); }
.ps-nav .current-menu-item > a, .ps-nav .current_page_item > a { color: var(--ps-forest-deep); }

/* Tighten the nav a touch on mid-width screens so all items stay on one row */
@media (min-width: 981px) and (max-width: 1240px) {
  .ps-header__inner { gap: 1rem; }
  .ps-nav a { font-size: .86rem; padding: .45rem .5rem; letter-spacing: -.005em; }
  .ps-nav a::after { left: .5rem; right: .5rem; }
  .ps-brand__name { font-size: 1.05rem; }
}

/* ---- Front-page transparent overlay (whole header as one unit) ---- */
.home .ps-headwrap--overlay { position: absolute; left: 0; right: 0; top: 0; }
.home .ps-headwrap--overlay .ps-topbar { background: transparent; border-bottom: 1px solid rgba(255,255,255,.16); }
.home .ps-headwrap--overlay .ps-header { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.home .ps-headwrap--overlay .ps-topbar,
.home .ps-headwrap--overlay .ps-topbar a { color: rgba(255,255,255,.92); }
.home .ps-headwrap--overlay .ps-nav a { color: #fff; }
.home .ps-headwrap--overlay .ps-nav a:hover { color: #fff; }
.home .ps-headwrap--overlay .ps-brand__name { color: #fff; }
.home .ps-headwrap--overlay .ps-brand__name span { color: rgba(255,255,255,.85); }
.home .ps-headwrap--overlay .ps-brand__mark-img { filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.home .ps-headwrap--overlay .ps-nav__toggle { background: rgba(255,255,255,.18); }
.home .ps-hero { margin-top: -132px; padding-top: 132px; }
@media (max-width: 600px) { .home .ps-hero { margin-top: -120px; padding-top: 120px; } }
@media (max-width: 480px) {
  .ps-hero h1 { font-size: clamp(1.9rem, 1.2rem + 4vw, 2.4rem); }
}

/* ---- Scrolled: overlay header becomes solid + fixed ---- */
.home .ps-headwrap--overlay.is-scrolled {
  position: fixed; animation: ps-header-drop .35s ease;
}
.home .ps-headwrap--overlay.is-scrolled .ps-topbar { background: var(--ps-paper-dim); border-bottom: 1px solid var(--ps-line); }
.home .ps-headwrap--overlay.is-scrolled .ps-topbar,
.home .ps-headwrap--overlay.is-scrolled .ps-topbar a { color: var(--ps-ink); }
.home .ps-headwrap--overlay.is-scrolled .ps-topbar a:hover { color: var(--ps-copper-deep); }
.home .ps-headwrap--overlay.is-scrolled .ps-header {
  background: rgba(247, 245, 239, 0.95);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--ps-line);
  box-shadow: 0 6px 24px -18px rgba(35,31,32,.4);
}
.home .ps-headwrap--overlay.is-scrolled .ps-nav a { color: var(--ps-ink); }
.home .ps-headwrap--overlay.is-scrolled .ps-brand__name { color: var(--ps-forest-deep); }
.home .ps-headwrap--overlay.is-scrolled .ps-brand__name span { color: var(--ps-copper-deep); }
.home .ps-headwrap--overlay.is-scrolled .ps-brand__mark-img { filter: none; }
.home .ps-headwrap--overlay.is-scrolled .ps-nav__toggle { background: var(--ps-forest); }
@keyframes ps-header-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .home .ps-headwrap--overlay.is-scrolled { animation: none; } }

.ps-nav__toggle {
  display: none; background: var(--ps-forest); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; flex: none;
}
.ps-nav__toggle svg { width: 24px; height: 24px; }
/* Off-canvas controls are hidden on desktop; the mobile media query enables them */
.ps-nav__close { display: none; }
.ps-nav-backdrop { display: none; }

/* ---- Tablet / mobile ---- */
@media (max-width: 1100px) {
  /* Hide the hours item first to give the nav room before collapsing */
  .ps-topbar__item--hours { display: none; }
}
@media (max-width: 980px) {
  /* On mobile the header must NOT establish a containing block for the
     fixed off-canvas panel (a transform/animation on an ancestor would
     otherwise anchor position:fixed to the header instead of the viewport).
     So we strip positioning/transform/animation from the header on mobile. */
  .ps-headwrap,
  .home .ps-headwrap--overlay,
  .home .ps-headwrap--overlay.is-scrolled {
    position: static !important;
    transform: none !important;
    animation: none !important;
  }
  .home .ps-headwrap--overlay .ps-header,
  .home .ps-headwrap--overlay.is-scrolled .ps-header {
    position: static !important;
  }
  /* On mobile, never overlay the hero — header is a normal solid bar */
  .home .ps-hero { margin-top: 0 !important; padding-top: 0 !important; }
  .home .ps-headwrap--overlay .ps-header { background: rgba(247,245,239,.95); }
  .home .ps-headwrap--overlay .ps-topbar { background: var(--ps-paper-dim); border-bottom: 1px solid var(--ps-line); }
  .home .ps-headwrap--overlay .ps-topbar,
  .home .ps-headwrap--overlay .ps-topbar a,
  .home .ps-headwrap--overlay .ps-brand__name { color: var(--ps-ink); }
  .home .ps-headwrap--overlay .ps-brand__name span { color: var(--ps-copper-deep); }
  .home .ps-headwrap--overlay .ps-brand__mark-img { filter: none; }
}
@media (max-width: 980px) {
  .ps-nav__toggle { display: inline-flex; }
  /* On mobile the toggle is always a solid dark button (the faint translucent
     overlay style would be invisible against the light mobile header). */
  .ps-nav__toggle,
  .home .ps-headwrap--overlay .ps-nav__toggle,
  .home .ps-headwrap--overlay.is-scrolled .ps-nav__toggle { background: var(--ps-forest); color: #fff; }
  .ps-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(86vw, 360px); max-width: 360px;
    background: var(--ps-paper); flex-direction: column; align-items: stretch;
    padding: 5rem 1.4rem 2rem; box-shadow: -20px 0 60px -30px rgba(0,0,0,.5);
    transform: translateX(100%); transition: transform .28s ease, visibility 0s linear .28s;
    visibility: hidden;
    z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  }
  .ps-nav[data-open="true"] { transform: translateX(0); visibility: visible; transition: transform .28s ease; }
  .ps-nav ul, .ps-nav__list { flex-direction: column; gap: .2rem; flex-wrap: nowrap; align-items: stretch; width: 100%; }
  .ps-nav a { padding: .9rem 1rem; font-size: 1.05rem; border-bottom: 1px solid var(--ps-line); border-radius: 0; white-space: normal; }
  .ps-nav a::after { display: none; }
  /* In the off-canvas panel, links are always dark on light */
  .home .ps-headwrap--overlay .ps-nav a,
  .home .ps-headwrap--overlay.is-scrolled .ps-nav a { color: var(--ps-ink); }
  .ps-nav__close { display: inline-flex; position: absolute; top: 1rem; right: 1rem; background: none; border: none; cursor: pointer; color: var(--ps-forest-deep); padding: 0; }
  .ps-nav__close svg { width: 30px; height: 30px; }
  .ps-nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(35,31,32,.45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; z-index: 65; }
  .ps-nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; transition: opacity .25s; }
}
@media (min-width: 981px) {
  .ps-nav__close { display: none; }
  .ps-nav { visibility: visible; }
}


/* ==========================================================================
   Hero
   ========================================================================== */
.ps-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.ps-hero__media { position: absolute; inset: 0; z-index: -2; }
.ps-hero__media video, .ps-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.ps-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(35,31,32,.78) 0%, rgba(35,31,32,.55) 42%, rgba(35,31,32,.25) 100%); }
.ps-hero__inner { padding-block: clamp(4rem, 3rem + 8vw, 8.5rem); max-width: 760px; }
.ps-hero h1 {
  color: #fff; margin-bottom: .3rem;
  /* Keep long German compound words whole — never break mid-word */
  overflow-wrap: normal; word-break: keep-all; hyphens: none;
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4rem);
  line-height: 1.08;
}
.ps-hero__sub { font-size: var(--ps-step-1); font-family: var(--ps-font-display); color: var(--ps-sage); margin-bottom: 1.2rem; }
.ps-hero p { color: rgba(255,255,255,.92); font-size: var(--ps-step-0); }
.ps-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ==========================================================================
   Cards / Generic content blocks
   ========================================================================== */
.ps-grid { display: grid; gap: var(--ps-gap); }
.ps-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ps-grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.ps-card {
  background: var(--ps-white); border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  box-shadow: var(--ps-shadow-soft);
  min-width: 0;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.ps-card:hover { box-shadow: var(--ps-shadow); transform: translateY(-3px); border-color: var(--ps-line); }
.ps-card h3 { color: var(--ps-forest-deep); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.2; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.ps-card--accent { border-top: 4px solid var(--ps-copper); }
.ps-card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--ps-sage);
  display: grid; place-items: center; color: var(--ps-copper); margin-bottom: 1.1rem;
}
.ps-card__icon svg { width: 26px; height: 26px; }

.ps-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ps-info-list li { display: flex; gap: .65rem; align-items: flex-start; min-width: 0; overflow-wrap: break-word; hyphens: auto; line-height: 1.5; }
.ps-info-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .5rem; border-radius: 50%; background: var(--ps-copper); }

.ps-split { display: grid; gap: var(--ps-gap); align-items: center; }
@media (min-width: 860px) { .ps-split { grid-template-columns: 1.05fr .95fr; } .ps-split--media-first .ps-split__media { order: -1; } }
.ps-split__media img, .ps-split__media video { border-radius: var(--ps-radius-lg); box-shadow: var(--ps-shadow); width: 100%; }

.ps-section--sage { background: var(--ps-sage); }
.ps-section--forest { background: var(--ps-forest); color: #e9efe9; }
.ps-section--forest h2, .ps-section--forest h3 { color: #fff; }
.ps-section--paper-dim { background: var(--ps-paper-dim); }

/* hours table */
.ps-hours { display: grid; gap: .2rem; }
.ps-hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--ps-line); }
.ps-hours__row:last-child { border-bottom: none; }
.ps-hours__row strong { font-weight: 600; }

/* ---- Contact section (no form) ---- */
.ps-contact-head { max-width: 640px; margin-bottom: 2.2rem; }
.ps-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2.2rem; }
.ps-contact-card {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--ps-white); border: 1px solid var(--ps-line); border-radius: var(--ps-radius-lg);
  padding: 1.5rem; text-decoration: none; color: var(--ps-ink);
  box-shadow: var(--ps-shadow-soft); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
a.ps-contact-card:hover { box-shadow: var(--ps-shadow); transform: translateY(-3px); border-color: var(--ps-copper); }
.ps-contact-card--static { cursor: default; }
.ps-contact-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ps-sage); display: grid; place-items: center; color: var(--ps-copper); margin-bottom: .5rem; }
.ps-contact-card__icon svg { width: 24px; height: 24px; }
.ps-contact-card__label { font-size: var(--ps-step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ps-ink-soft); }
.ps-contact-card__value { font-size: var(--ps-step-1); font-weight: 600; color: var(--ps-forest-deep); line-height: 1.3; overflow-wrap: break-word; }
.ps-contact-hours { background: var(--ps-white); border: 1px solid var(--ps-line); border-radius: var(--ps-radius-lg); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); box-shadow: var(--ps-shadow-soft); max-width: 640px; }
.ps-contact-hours h3 { margin-top: 0; }

/* gallery */
.ps-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.ps-tile { position: relative; border-radius: var(--ps-radius); overflow: hidden; background: var(--ps-sage); aspect-ratio: 3 / 4; box-shadow: var(--ps-shadow-soft); }
.ps-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ps-tile:hover img { transform: scale(1.05); }
.ps-tile__label { position: absolute; inset: auto 0 0 0; padding: .9rem 1rem; color: #fff; font-family: var(--ps-font-display); font-size: 1.1rem;
  background: linear-gradient(transparent, rgba(35,31,32,.82)); }
.ps-tile--placeholder { display: grid; place-items: center; color: var(--ps-forest-soft); }

/* team */
.ps-person { text-align: center; }
.ps-person__photo { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1rem; background: var(--ps-sage); display: grid; place-items: center; overflow: hidden; border: 3px solid #fff; box-shadow: var(--ps-shadow-soft); }
.ps-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-person__role { color: var(--ps-copper-deep); font-weight: 600; font-size: .95rem; }

/* FAQ */
.ps-faq { display: grid; gap: .8rem; }
.ps-faq details { background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); overflow: hidden; }
.ps-faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--ps-font-display); font-size: 1.1rem; color: var(--ps-forest-deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--ps-copper); transition: transform .2s; }
.ps-faq details[open] summary::after { transform: rotate(45deg); }
.ps-faq__body { padding: 0 1.3rem 1.2rem; color: var(--ps-ink-soft); }

/* ==========================================================================
   Contact form
   ========================================================================== */
.ps-form { display: grid; gap: 1rem; }
.ps-field { display: grid; gap: .35rem; }
.ps-field label { font-weight: 600; font-size: .92rem; color: var(--ps-forest-deep); }
.ps-field input, .ps-field textarea {
  font-family: var(--ps-font-body); font-size: 1rem; padding: .8rem 1rem;
  border: 1.5px solid var(--ps-line); border-radius: 12px; background: #fff; color: var(--ps-ink);
}
.ps-field input:focus, .ps-field textarea:focus { border-color: var(--ps-copper); outline: none; box-shadow: var(--ps-ring); }
.ps-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ps-ink-soft); }
.ps-consent input { margin-top: .25rem; width: 20px; height: 20px; accent-color: var(--ps-copper); flex: none; }
.ps-form__note { font-size: .82rem; color: var(--ps-ink-soft); }
.ps-form__status { padding: .9rem 1.1rem; border-radius: 12px; font-size: .95rem; display: none; }
.ps-form__status--ok { display: block; background: #e3f0e8; color: var(--ps-ok); border: 1px solid #b9d8c6; }
.ps-form__status--err { display: block; background: #f6e3df; color: var(--ps-danger); border: 1px solid #e0bdb4; }
.ps-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ps-footer { background: var(--ps-forest-deep); color: #d7e0d9; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem; }
.ps-footer a { color: #fff; }
.ps-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ps-footer h4 { color: #fff; font-family: var(--ps-font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.ps-footer__legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between; font-size: .85rem; }
.ps-footer__legal nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* floating call button (mobile) */
.ps-call-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  background: var(--ps-copper); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center; box-shadow: var(--ps-shadow); text-decoration: none;
}
.ps-call-float svg { width: 26px; height: 26px; }
@media (max-width: 700px) { .ps-call-float { display: grid; } }

/* ==========================================================================
   Cookie / consent banner (first-party, no tracking by default)
   ========================================================================== */
.ps-consent-banner {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 90; max-width: 520px; margin-inline: auto;
  background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-radius-lg);
  padding: 1.3rem 1.4rem; box-shadow: var(--ps-shadow); display: none;
}
.ps-consent-banner[data-show="true"] { display: block; }
.ps-consent-banner h4 { font-family: var(--ps-font-display); margin-bottom: .4rem; }
.ps-consent-banner p { font-size: .9rem; color: var(--ps-ink-soft); margin-bottom: 1rem; }
.ps-consent-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* page intro / breadcrumb header for sub pages */
.ps-pagehead { background: var(--ps-white); color: var(--ps-ink); padding-block: clamp(2.6rem, 2rem + 3vw, 4.4rem) clamp(1.5rem, 1rem + 2vw, 2.4rem); border-bottom: 1px solid var(--ps-line); }
.ps-pagehead h1 { color: var(--ps-forest-deep); }
.ps-pagehead p { color: var(--ps-ink-soft); max-width: 60ch; margin-bottom: 0; }

/* legal / prose pages */
.ps-prose { max-width: 78ch; }
.ps-prose h2 { font-size: var(--ps-step-1); margin-top: 2rem; }
.ps-prose h3 { font-size: var(--ps-step-0); font-family: var(--ps-font-body); font-weight: 700; color: var(--ps-forest-deep); margin-top: 1.4rem; }
.ps-prose a { word-break: break-word; }

/* utilities */
.ps-mt-0 { margin-top: 0; }

/* ---------- Modal (price list) ---------- */
.ps-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem; }
.ps-modal[hidden] { display: none; }
.ps-modal__backdrop { position: absolute; inset: 0; background: rgba(35,31,32,.55); backdrop-filter: blur(2px); animation: ps-fade .2s ease; }
.ps-modal__dialog {
  position: relative; z-index: 1; width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--ps-white); border-radius: var(--ps-radius-lg); padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
  box-shadow: 0 40px 90px -30px rgba(35,31,32,.5); animation: ps-modal-in .25s ease;
}
.ps-modal__close {
  position: absolute; top: .9rem; right: .9rem; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--ps-sage); border: none; border-radius: 10px; color: var(--ps-forest-deep); cursor: pointer; transition: background .15s;
}
.ps-modal__close:hover { background: var(--ps-line); }
.ps-modal__note { color: var(--ps-ink-soft); font-size: var(--ps-step--1); }
@keyframes ps-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ps-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ps-modal__backdrop, .ps-modal__dialog { animation: none; } }

.ps-priceheading { font-size: var(--ps-step-0); font-family: var(--ps-font-body); font-weight: 700; color: var(--ps-forest-deep); text-transform: uppercase; letter-spacing: .08em; margin: 1.6rem 0 .2rem; }
.ps-pricetable { margin: .4rem 0 0; border-top: 1px solid var(--ps-line); }
.ps-pricetable__row { display: flex; justify-content: space-between; gap: 1.2rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--ps-line); }
.ps-pricetable__label { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ps-pricetable__label strong { color: var(--ps-forest-deep); font-weight: 600; }
.ps-pricetable__label small { color: var(--ps-ink-soft); font-size: var(--ps-step--1); line-height: 1.4; }
.ps-pricetable__price { color: var(--ps-copper-deep); white-space: nowrap; font-weight: 700; }
.ps-center { text-align: center; }
.ps-lead { font-size: var(--ps-step-1); color: var(--ps-ink-soft); font-family: var(--ps-font-display); }
.ps-divider { height: 1px; background: var(--ps-line); border: 0; margin-block: var(--ps-gap); }
