/* Additions for the React rebuild (replacing jQuery plugins). The theme itself lives in /assets/css/style.css */

/* preloader fade */
.preloader-bg, #preloader { transition: opacity .6s ease, visibility .6s ease; }
.preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* embla carousels (testimonials, clients) */
.embla { overflow: hidden; }
.embla__container { display: flex; touch-action: pan-y pinch-zoom; }
.embla__slide { min-width: 0; flex: 0 0 100%; padding-right: 30px; }
.testimonials-box .embla__slide .item { display: block; }
.clients .embla__slide { flex: 0 0 33.3333%; padding: 0 6px; }
.clients .embla__container { align-items: center; }
@media (max-width: 600px) { .clients .embla__slide { flex-basis: 50%; } }
.clients .clients-logo a { display: block; }

/* masonry (replaces Isotope) */
.masonry { position: relative; }
.masonry.is-ready > .single-item { position: absolute; top: 0; left: 0; transition: transform .35s ease; }
.masonry:not(.is-ready) { opacity: 0; }
.masonry { transition: opacity .4s ease; }

/* lightbox (replaces Magnific Popup) */
.lb { position: fixed; inset: 0; z-index: 99990; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; animation: lbfade .25s ease; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; opacity: .8; padding: 14px; line-height: 1; }
.lb button:hover { opacity: 1; }
.lb .lb-x { top: 6px; right: 10px; } .lb .lb-prev { left: 8px; top: 50%; } .lb .lb-next { right: 8px; top: 50%; }
.lb .lb-count { position: absolute; bottom: 14px; left: 0; width: 100%; text-align: center; color: #bbb; font-size: 13px; }
.lb .lb-cap { position: absolute; bottom: 38px; left: 0; width: 100%; text-align: center; color: #fff; font-size: 14px; padding: 0 60px; }

/* video modal (replaces YouTubePopUp) */
.vm { position: fixed; inset: 0; z-index: 99990; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 16px; animation: lbfade .25s ease; }
.vm-box { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; }
.vm-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm .vm-x { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }
button.video-gallery-button { background: none; border: 0; padding: 0; cursor: pointer; }

/* form feedback */
.form-note { margin-bottom: 15px; padding: 12px 15px; border-radius: 3px; font-size: 14px; }
.form-note.ok { background: #1f3d2b; color: #bfe8cf; } .form-note.err { background: #4a2323; color: #f1c4c4; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 1000000; }
.skip-link:focus { left: 8px; top: 8px; }
a:focus-visible, button:focus-visible { outline: 2px solid #c8a15a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .masonry, .lb, .vm { transition: none !important; animation: none !important; } }
.featured-desc a { color: inherit; text-decoration: none; }
.featured-desc a:hover { text-decoration: underline; }
