/* Fairdeal — front-end additions on top of the unchanged theme CSS (bundle.css).
   Only what the removed jQuery/Elementor/Revolution Slider scripts used to provide. */

/* ---------- hero slider (replaces Revolution Slider, same slides) ---------- */
/* Revolution Slider sized the stage 1600×980 and scaled it with the viewport (980 tall at 1024, 860 at 778, 720 at 480). */
.fd-hero { position: relative; width: 100%; height: 61.25vw; max-height: 980px; overflow: hidden; background: #0e1418; color: #fff; }
@media (max-width: 1023px) { .fd-hero { height: 95.7vw; } }
@media (max-width: 777px) { .fd-hero { height: 110.5vw; max-height: 860px; } }
@media (max-width: 479px) { .fd-hero { height: 150vw; max-height: 720px; } }
.fd-hero__track, .fd-slide { position: absolute; inset: 0; }
.fd-slide { opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.fd-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.fd-slide__img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center; display: block; }
.fd-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 55%); }
.fd-slide.is-active .fd-slide__img { animation: fdKenBurns 12s ease-out both; }
@keyframes fdKenBurns { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.fd-slide__caption { position: absolute; left: 150px; top: 38.5%; z-index: 2; max-width: 620px; }
.fd-slide__title { font-family: Belleza, "DM Serif Display", serif; font-weight: 400; font-size: 60px; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; color: #fff; margin: 0 0 90px; }
.fd-slide__btn { display: inline-block; font-family: "Be Vietnam", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(189,165,136,.55); padding: 20px 32px; text-decoration: none; transition: background .25s; }
.fd-slide__btn:hover { background: #bda588; color: #fff; }
.fd-hero__social { position: absolute; left: 58px; top: 61%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 22px; }
.fd-hero__social a { color: #fff; font-size: 13px; opacity: .9; }
.fd-hero__social a:hover { color: #bda588; }
.fd-hero__call { position: absolute; left: 152px; bottom: 36px; z-index: 3; display: flex; align-items: center; gap: 16px; }
.fd-hero__call-icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); display: grid; place-items: center; font-size: 15px; }
.fd-hero__call-text { display: flex; flex-direction: column; line-height: 1.2; }
.fd-hero__call-text small { font-family: "Be Vietnam", sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.fd-hero__call-text a { font-family: "Be Vietnam", sans-serif; font-weight: 600; font-size: 24px; color: #fff; text-decoration: none; }
.fd-hero__nav { position: absolute; right: 70px; bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 28px; }
.fd-hero__dots { display: flex; gap: 34px; }
.fd-hero__dot { background: none; border: 0; padding: 0 0 6px; color: #fff; font-family: "Be Vietnam", sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; opacity: .8; }
.fd-hero__dot.is-active { border-bottom-color: #fff; opacity: 1; }
.fd-hero__line { width: 132px; height: 1px; background: rgba(255,255,255,.5); display: inline-block; }
.fd-hero__arrow { background: none; border: 0; color: #fff; font-size: 14px; cursor: pointer; padding: 6px; }
.fd-hero__arrow:hover { color: #bda588; }
@media (max-width: 1240px) { .fd-slide__caption, .fd-hero__call { left: 80px; } .fd-hero__social { left: 24px; } }
@media (max-width: 778px) {
  .fd-slide__caption { left: 30px; right: 30px; top: 40%; max-width: none; }
  .fd-slide__title { font-size: 44px; margin-bottom: 40px; }
  .fd-hero__call { left: 30px; bottom: 120px; } .fd-hero__social { display: none; }
  .fd-hero__nav { right: 20px; bottom: 40px; } .fd-hero__line { width: 60px; }
}
/* On phones the live slider shows the image only (its text layers are hidden below 480px); keep the title for screen readers. */
@media (max-width: 479px) {
  .fd-slide::after, .fd-hero__call, .fd-hero__nav { display: none; }
  .fd-slide__caption { left: 0; right: 0; top: auto; bottom: 0; }
  .fd-slide__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
  .fd-slide__btn { position: absolute; left: 20px; bottom: 20px; }
}

/* ---------- entrance animation (Elementor "elementor-invisible" reveal) ---------- */
.elementor-invisible.fd-in { visibility: visible; animation: fdFadeUp .7s ease both; }
@keyframes fdFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .elementor-invisible.fd-in { animation: none; } .fd-slide { transition: none; } }

/* ---------- Elementor nav menu without Elementor's JS ---------- */
.elementor-nav-menu--main .elementor-nav-menu li.menu-item-has-children { position: relative; }
.elementor-nav-menu--main .elementor-nav-menu > li > ul.sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 9999; min-width: 220px; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.elementor-nav-menu--main .elementor-nav-menu > li:hover > ul.sub-menu, .elementor-nav-menu--main .elementor-nav-menu > li:focus-within > ul.sub-menu { display: block; }
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu li { display: block; }
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu a { display: block; padding: 10px 22px; white-space: nowrap; }
.elementor-nav-menu--dropdown.elementor-nav-menu__container { display: none; }
.elementor-nav-menu--dropdown.elementor-nav-menu__container.fd-open { display: block; }
.elementor-nav-menu--dropdown ul.sub-menu { display: none; }
.elementor-nav-menu--dropdown li.fd-open > ul.sub-menu { display: block; }

/* ---------- lightbox + video modal ---------- */
.fd-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.fd-modal[hidden] { display: none; }
.fd-modal__body { position: relative; max-width: 1100px; width: 100%; }
.fd-modal__body img { max-width: 100%; max-height: 86vh; display: block; margin: 0 auto; }
.fd-modal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.fd-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fd-modal__close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.fd-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 10px; }
.fd-modal__nav.prev { left: -10px; } .fd-modal__nav.next { right: -10px; }
.fd-modal__caption { color: #ddd; text-align: center; margin-top: 10px; font-size: 14px; }

/* ---------- project overview slider (theme markup, previously an inline script) ---------- */
.simple-slider { position: relative; }
.simple-slider .slide { width: 100%; display: block; }
.simple-slider .slide:not(:first-child) { position: absolute; inset: 0; }
.simple-slider .slide { opacity: 0; transition: opacity .5s; }
.simple-slider .slide.active { opacity: 1; position: relative; }
.simple-slider .slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.45); color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.simple-slider .slide-btn.prev { left: 10px; } .simple-slider .slide-btn.next { right: 10px; }

/* ---------- page-title banner: first-paint fallback for what theme.js used to set inline (site.js refines it) ---------- */
@media (min-width: 993px) { body.opal-header-absolute .page-title-bar .wrap { min-height: 520px; padding-top: 100px; } }

/* ---------- misc ---------- */
.wpcf7-response-output:empty { display: none; }
.fd-filter-form .project-inner .btn { margin-top: 26px; }
#wptime-plugin-preloader { display: none; }
