/*
  site.css  v1.0  (18/11/2026)
  Styles for the bits that replace WordPress plugins. Loaded after the theme CSS.

  Changelog
  1.0  18/11/2026  First version.
*/

/* Responsive video (replaces Fluid Video Embeds; 4:3 box as on the old site) */
.video-embed { position: relative; overflow: hidden; height: 0; padding-bottom: 75%; margin: 0.5em auto; max-width: 1410px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact form honeypot (hidden from people, visible to bots) */
.dd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.dd-contact.submitting .wpcf7-submit { opacity: .6; cursor: progress; }

/* Before / after image compare (replaces Before After Image Compare) */
img-compare { display: block; margin: 1rem auto; max-width: 100%; }
img-compare .ic-wrap { position: relative; overflow: hidden; line-height: 0; user-select: none; }
img-compare img { display: block; width: 100%; height: auto; max-width: none; }
img-compare .ic-before { position: absolute; inset: 0; width: 100%; clip-path: inset(0 calc(100% - var(--ic-pos, 50%)) 0 0); }
img-compare .ic-before img { width: 100%; height: 100%; object-fit: cover; }
img-compare .ic-handle { position: absolute; top: 0; bottom: 0; left: var(--ic-pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
img-compare .ic-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 2px solid #fff; border-radius: 50%; box-sizing: border-box; background: rgba(0,0,0,.2); }
img-compare .ic-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
img-compare .ic-label { position: absolute; top: 50%; transform: translateY(-50%); padding: 10px 15px; font-size: 15px; line-height: 1.2; color: #fff; background: #00000080; opacity: 0; transition: opacity .2s; pointer-events: none; }
img-compare .ic-label-before { left: 0; }
img-compare .ic-label-after { right: 0; }
img-compare:hover .ic-label { opacity: 1; }
