/* Primowheels Our Service visual theme.
   Appended as /our-service/theme/primo-theme.css — delete the link+script pair to revert.
   Does not change texts, catalog markup, SEO, WhatsApp, Nowości, the game banner,
   Trustindex, or the hidden Primo Social state. */

#primo-theme-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #0b1220;
}

#primo-theme-bg .primo-theme-bg__slide {
  position: absolute;
  inset: 0;
  background-color: #0b1220;
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

#primo-theme-bg .primo-theme-bg__slide.is-active {
  opacity: 1;
}

/* Veil: even over a white photo, body text #f1f5f9 stays ≥9:1 and muted #94a3b8 stays ≥4.5:1
   when sitting on the section panels (0.88). The global veil is a bit lighter so photos show
   in the page margins. */
#primo-theme-bg .primo-theme-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.62) 0%,
    rgba(8, 12, 20, 0.70) 100%
  );
}

body.primo-theme-on {
  background-color: #0b1220;
}

body.primo-theme-on > *:not(#primo-theme-bg):not(nav):not(.lightbox) {
  position: relative;
  z-index: 1;
}

body.primo-theme-on > nav {
  z-index: 100;
  background: rgba(11, 18, 32, 0.94);
}

body.primo-theme-on > .lightbox {
  z-index: 999;
}

/* Keep the existing hero video; let the rotating photos show if the video has not loaded yet. */
body.primo-theme-on .hero {
  background-color: transparent;
}

/* Landing on #start should not hide the hero title under the sticky nav. */
html {
  scroll-padding-top: 88px;
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 200px;
  }
}

/* Semi-opaque panels so catalog text stays readable over any photo. */
body.primo-theme-on section {
  background: rgba(8, 12, 20, 0.90);
  border-radius: 18px;
  margin-top: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.primo-theme-on .seo-intro {
  background: rgba(8, 12, 20, 0.90);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.primo-theme-on .contact {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

body.primo-theme-on footer {
  background: rgba(8, 12, 20, 0.90);
}

body.primo-theme-on .card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  background: rgba(20, 30, 48, 0.96);
}

body.primo-theme-on .card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

body.primo-theme-on .nw-card {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  background: rgba(17, 26, 43, 0.96);
}

/* Do not restyle the game banner, Nowości button, WhatsApp buttons,
   or un-hide #social-banner / the Social nav link. */

/* If a Trustindex bar is injected, keep its own colours. */
body.primo-theme-on .ti-widget,
body.primo-theme-on .ti-widget-container {
  background-color: #ffffff;
  color: #222222;
}

@media (prefers-reduced-motion: reduce) {
  #primo-theme-bg .primo-theme-bg__slide {
    transition: none;
  }
}

/* WhatsApp buttons: white on #25d366 is only 1.98:1. Darker green keeps white text at ≥4.5:1. */
body.primo-theme-on a.btn-wa,
body.primo-theme-on .btn-wa {
  background: #0f7a3e !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 122, 62, 0.4);
}
body.primo-theme-on a.btn-wa:hover,
body.primo-theme-on .btn-wa:hover {
  background: #0d6b38 !important;
  color: #ffffff !important;
}

/* Google reviews (Trustindex) — same widget as /nowosci/. White cards, dark text. */
.reviews-bar {
  max-width: 1200px;
  margin: 16px auto;
  padding: 16px 14px 24px;
}
.reviews-bar .reviews-link {
  text-align: center;
  margin: 0 0 12px;
}
.reviews-bar .reviews-link a {
  color: var(--accent, #f59e0b);
  font-weight: 700;
}
.reviews-bar .ti-widget,
.reviews-bar .ti-widget p,
.reviews-bar .ti-widget span {
  color: #222222 !important;
}
#opinie .ti-widget,
.reviews-bar .ti-widget {
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  background: #ffffff !important;
  border-radius: 12px;
}
.reviews-bar .ti-widget-container {
  background: #ffffff !important;
  color: #222222 !important;
}
