/* =====================================================================
   IEM Content Protection — CSS Layer
   Version: 2026.05.23
   Scope: main static HTML only. NOT loaded by /crm/, /crm2/, /partners/.
   ===================================================================== */

/* ---------- IMAGE PROTECTION ----------
   Disable native drag, iOS long-press "Save Image", and selection.
   Background images are not affected (CSS engine renders them server-side
   in the eyes of "Save Image" UI). */
img, picture, picture > img, svg.iem-asset {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* Non-interactive images additionally lose pointer-events on hover so
   inspector "Open image in new tab" gesture is awkward. Interactive img
   (inside <a>, <button>) keeps pointer-events. */
a img, button img, [role="button"] img, [data-clickable] img,
.iem-brand-pill img, .iem-card img, .iem-logo img {
  pointer-events: auto;
}

/* ---------- HONEYPOT FIELD ----------
   Visually + screen-reader hidden; bots that fill all fields will fill
   this one too and trigger silent rejection. */
.iem-hp,
.iem-hp-wrap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- PRINT WATERMARK ----------
   Anyone printing the site to PDF gets a footer watermark with our
   domain + copyright. Hard to remove without re-editing the PDF. */
@media print {
  body::after {
    content: "© Industrial Electric & Mechanic Kft. — ielectric.hu — Másolás, terjesztés engedély nélkül tilos.";
    position: fixed;
    bottom: 4mm;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 8pt;
    color: #888;
    font-family: Georgia, serif;
    letter-spacing: 0.02em;
    z-index: 9999;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* Diagonal watermark on every page — visible but not blocking */
  html::before {
    content: "ielectric.hu";
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 72pt;
    color: rgba(0, 0, 0, 0.04);
    font-family: Georgia, serif;
    font-weight: 700;
    pointer-events: none;
    z-index: 9998;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------- COPY-PROTECTED ELEMENTS (opt-in via class) ----------
   Add .iem-no-copy to elements where text copying should be discouraged.
   Used in /ÁSZF, /adatvédelmi, calculator output blocks. */
.iem-no-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.iem-no-copy::selection,
.iem-no-copy *::selection { background: transparent; color: inherit; }
.iem-no-copy::-moz-selection,
.iem-no-copy *::-moz-selection { background: transparent; color: inherit; }
