/* PRO+ Site shared base — trusted Stavbahub CSS only. */

.pps-page-section {
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

.pps-related-wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.pps-root {
  --pps-primary: #8a5a3a;
  --pps-accent: #8a5a3a;
  --pps-ink: #1a1814;
  --pps-text: #1a1814;
  --pps-paper: #faf8f5;
  --pps-muted: #6b6560;
  --pps-surface: #ffffff;
  --pps-deep: #161310;
  --pps-line: rgba(26, 24, 20, 0.1);
  --pps-pad: clamp(1.25rem, 4vw, 3.5rem);
  --pps-font-display: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --pps-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--pps-text, var(--pps-ink));
  background: var(--pps-paper);
  font-family: var(--pps-font-body);
  margin: 0;
  width: 100%;
  overflow-x: clip;
}

.pps-shell-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0.55rem var(--pps-pad);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pps-muted);
  background: var(--pps-surface);
  border-bottom: 1px solid var(--pps-line);
}

.pps-shell-note__label {
  font-weight: 600;
  color: var(--pps-ink);
}

.pps-shell-note__name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.pps-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 245, 0.92);
  border-bottom: 1px solid var(--pps-line);
  backdrop-filter: blur(10px);
}

.pps-nav__list {
  display: flex;
  gap: 0.15rem 1.15rem;
  margin: 0 auto;
  padding: 0.65rem var(--pps-pad);
  list-style: none;
  max-width: 1120px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pps-nav__list::-webkit-scrollbar {
  display: none;
}

.pps-nav__link {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--pps-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.pps-nav__link:hover {
  color: var(--pps-accent);
}

.pps-nav__link:focus-visible {
  outline: 2px solid var(--pps-accent);
  outline-offset: 3px;
}

.pps-main {
  background: transparent;
}

.pps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  min-width: 7.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pps-btn:focus-visible {
  outline: 2px solid var(--pps-accent);
  outline-offset: 3px;
}

.pps-btn--primary {
  background: var(--pps-primary, var(--pps-accent));
  color: #fff;
}

.pps-btn--primary:hover {
  filter: brightness(0.92);
}

.pps-btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.pps-btn--lg {
  min-height: 3.1rem;
  padding-inline: 1.6rem;
}

.pps-reviews__pending {
  min-height: 0.25rem;
}

/* Layout preferences (config-driven class tokens) */
.pps-root.pps-width-compact .pps-section__inner,
.pps-root.pps-width-compact .pps-nav__list {
  max-width: 880px;
}
.pps-root.pps-width-wide .pps-section__inner,
.pps-root.pps-width-wide .pps-nav__list {
  max-width: 1280px;
}

.pps-root.pps-space-compact {
  --pps-pad: clamp(1rem, 3vw, 2rem);
}
.pps-root.pps-space-spacious {
  --pps-pad: clamp(1.75rem, 5vw, 4.5rem);
}

.pps-root.pps-hero-compact .pps-hero,
.pps-root.pps-hero-compact .pps-at-hero {
  min-height: min(62vh, 640px);
}
.pps-root.pps-hero-standard .pps-hero,
.pps-root.pps-hero-standard .pps-at-hero {
  min-height: min(78vh, 820px);
}
.pps-root.pps-hero-immersive .pps-hero,
.pps-root.pps-hero-immersive .pps-at-hero {
  min-height: min(92vh, 980px);
}

/* Stavbahub-owned background textures (no arbitrary URLs) */
.pps-root.pps-bg-solid {
  background: var(--pps-paper);
}
.pps-root.pps-texture-paper-soft {
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 4px 4px;
}
.pps-root.pps-texture-stone-grain {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%);
  background-size: 12px 12px;
}
.pps-root.pps-texture-linen {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.015),
    rgba(0, 0, 0, 0.015) 1px,
    transparent 1px,
    transparent 4px
  );
}

.pps-root.pps-gallery-grid .pps-portfolio__mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.pps-root.pps-gallery-grid .pps-portfolio__item--featured {
  grid-column: auto;
}

.pps-hero__logo,
.pps-at-hero__logo {
  margin-bottom: 0.75rem;
}
.pps-hero__logo img,
.pps-at-hero__logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Allowlisted typography presets (no provider font-family strings) */
.pps-root.pps-typo-elegant {
  --pps-font-display: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --pps-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
.pps-root.pps-typo-modern {
  --pps-font-display: Inter, "Segoe UI", system-ui, sans-serif;
  --pps-font-body: Inter, "Segoe UI", system-ui, sans-serif;
}
.pps-root.pps-typo-architectural {
  --pps-font-display: Fraunces, Georgia, serif;
  --pps-font-body: system-ui, "Segoe UI", sans-serif;
}
.pps-root.pps-typo-technical {
  --pps-font-display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --pps-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
.pps-root.pps-typo-classic {
  --pps-font-display: Georgia, "Times New Roman", serif;
  --pps-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
.pps-root.pps-typo-minimal {
  --pps-font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  --pps-font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.pps-root.pps-typo-strong {
  --pps-font-display: Fraunces, Georgia, serif;
  --pps-font-body: Inter, "Segoe UI", system-ui, sans-serif;
}
.pps-root.pps-typo-friendly {
  --pps-font-display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --pps-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

.pps-section__title,
.pps-at-display,
.pps-st-display,
.pps-sg-title,
.pps-sg-cta__title {
  color: var(--pps-heading, var(--pps-ink));
}

/* Provider profile video — facade first, iframe after click */
.pps-video {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.pps-video__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pps-pad);
}
.pps-video__header {
  margin-bottom: 1.25rem;
}
.pps-video__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  border-radius: 2px;
}
.pps-video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111;
  color: #fff;
}
.pps-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pps-video__thumb--empty {
  display: block;
  background: linear-gradient(135deg, #222, #444);
}
.pps-video__play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}
.pps-video__play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1rem;
  padding-left: 0.15rem;
}
.pps-video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pps-video__cinematic .pps-video__player {
  border-radius: 0;
  max-width: none;
}
.pps-video--cinematic .pps-video__inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.pps-video--cinematic .pps-video__header {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pps-pad);
}
.pps-video__split {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .pps-video__split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.pps-video__compact-frame {
  max-width: 720px;
}
.pps-video__context {
  color: var(--pps-muted);
  line-height: 1.55;
  max-width: 36rem;
}
.pps-video__thumbs {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}
.pps-video__thumb-btn {
  display: grid;
  gap: 0.35rem;
  min-width: 9rem;
  max-width: 11rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--pps-text, var(--pps-ink));
  font: inherit;
}
.pps-video__thumb-btn img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.pps-video__thumb-btn span {
  font-size: 0.85rem;
  color: var(--pps-muted);
}

/* Template-flavored video shells */
.pps-tpl-atelier .pps-video {
  background: var(--pps-paper);
}
.pps-tpl-atelier .pps-video__player {
  border-radius: 0;
}
.pps-tpl-craft .pps-video {
  background: var(--pps-surface);
}
.pps-tpl-craft .pps-video__player {
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(22, 19, 16, 0.08);
}
.pps-tpl-studio .pps-st-video-wrap .pps-video__split {
  grid-template-columns: 0.9fr 1.1fr;
}
.pps-tpl-studio .pps-video__player {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.pps-tpl-signature .pps-video {
  border-top: 1px solid var(--pps-line);
  border-bottom: 1px solid var(--pps-line);
}
.pps-tpl-signature .pps-video__player {
  border: 1px solid var(--pps-line);
}

body.proplus-site-canary #provider-detail-loading,
body.proplus-site-canary #provider-detail-content,
body.proplus-site-canary #provider-detail-error {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .pps-btn,
  .pps-nav__link {
    transition: none;
  }
}
