/* SoftWash Systems — content and image deterrents (casual copying only).
   Does not hide images from crawlers or strip alt text. */

/* Sitewide text-selection block, restored from the morning version.
   Form fields and .sws-allow-select stay selectable and typeable. */
html body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
html body input,
html body textarea,
html body select,
html body option,
html body [contenteditable],
html body [contenteditable] *,
html body .sws-allow-select,
html body .sws-allow-select * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img, picture {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* (e) Transparent overlay so "Save image" hits the overlay, not the <img>.
   Placed on gallery and hero frames. Interactive controls sit above it.
   Not applied to before/after sliders or video slides.
   Do not force position:relative on .hero-slide — those are already
   position:absolute stacked inside .hero-campaign-media. */
.gallery-full,
.hero-photo,
.yr-photo.yr-photo--img:not(.yr-photo--logo) {
  position: relative;
}
.gallery-full::before,
.hero-photo::before,
picture.hero-slide::before,
.yr-photo.yr-photo--img:not(.yr-photo--logo)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: auto;
}

.gallery-nav,
.gallery-filmstrip button,
.ba-range,
.ba-handle,
.ba-label {
  position: relative;
  z-index: 4;
}

/* (f) Subtle visible watermark on photo frames (not logos, icons, or exempt portraits). */
.sws-wm,
.sws-wm-bg {
  position: relative;
}
.sws-wm::after,
.sws-wm-bg::after {
  content: "© SoftWash Systems®";
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 3;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(10px, 1.7vw, 15px);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
/* Keep the mark under hero typography and buttons */
.surf-hero.sws-wm-bg::after,
.cty-hero.sws-wm-bg::after,
.page-hero.sws-wm-bg::after,
.wt-hero.sws-wm-bg::after,
.loc-hero.sws-wm-bg::after {
  z-index: 1;
}

/* (g) Gentle conceal while the tab is hidden or the window is unfocused.
   Restored instantly on return. Not applied inside iframes (cannot be). */
html.sws-obscure img,
html.sws-obscure picture,
html.sws-obscure .sws-wm-bg {
  filter: blur(16px);
}
html img,
html picture,
html .sws-wm-bg {
  transition: filter 0.12s ease;
}

/* (h) Print: hide images and show a copyright notice. Alt text stays in the HTML. */
@media print {
  img, picture, video, svg.sws-print-hide,
  .hero-campaign-media, .hero-photo, .gallery-full,
  .surf-hero, .ba, .ba-block {
    display: none !important;
  }
  html.sws-obscure img,
  html.sws-obscure picture,
  html.sws-obscure .sws-wm-bg {
    filter: none;
  }
  body::before {
    content: "© SoftWash Systems®. Photographs and images are omitted from this printout and may not be copied without written permission. All rights reserved.";
    display: block;
    font-family: "Source Sans 3", "Source Sans Pro", Calibri, sans-serif;
    font-size: 11pt;
    color: #12507A;
    border: 2px solid #12507A;
    padding: 12px 16px;
    margin: 0 0 16px;
  }
}
