/* 2026 fixes (loaded after all theme CSS) */

/* Sticky footer: close button */
#footer-close {
    position: absolute;
    top: 6px;
    left: 10px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 26px;
    line-height: 36px;
    cursor: pointer;
}
#footer-close:hover, #footer-close:focus-visible { background: rgba(0, 0, 0, 0.6); outline: 2px solid #fff; }

/* Mixed Hebrew/English titles: take direction from the first strong letter (the site root is LTR) */
.main-title, .image-hover, .item-holder, .title h2, .content-section, h1, h2, h3 {
    unicode-bidi: plaintext;
}

/* Project gallery lightbox (fancyBox 2): the theme lacks fancybox_sprite@2x.png, so on retina screens the
   close button and arrows were invisible. Draw them in CSS and keep the arrows visible on touch screens. */
.fancybox-close,
.fancybox-nav span {
    background-image: none !important;
}
.fancybox-close {
    top: -18px;
    right: -18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.fancybox-close::before {
    content: "\00d7";
    display: block;
    color: #222;
    font: 300 32px/40px Arial, sans-serif;
    text-align: center;
}
.fancybox-nav span {
    visibility: visible !important;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45) !important;
}
.fancybox-nav span::before {
    display: block;
    color: #fff;
    font: 300 34px/42px Arial, sans-serif;
    text-align: center;
}
.fancybox-prev span { left: 12px; }
.fancybox-next span { right: 12px; }
.fancybox-prev span::before { content: "\2039"; }
.fancybox-next span::before { content: "\203A"; }
@media (max-width: 600px) {
    .fancybox-close { top: -14px; right: -6px; }
}

/* About › company values: glass cards with modern line icons (Lucide, ISC) */
.icon-title-content-items {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    float: none;
    box-sizing: border-box;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 15%, rgba(214, 185, 140, 0.45), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(15, 37, 87, 0.35), transparent 50%),
        linear-gradient(135deg, rgba(15, 37, 87, 0.10), rgba(214, 185, 140, 0.18));
}
.icon-title-content-items .icon-title-content-item {
    float: none;
    width: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 30px 26px 28px;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 30px rgba(15, 37, 87, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}
.icon-title-content-items .icon-title-content-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 37, 87, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.icon-title-content-items .item-icon {
    float: none;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 0 18px;
    font-size: inherit;
    border-radius: 16px;
    color: #0f2557;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(214, 185, 140, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px rgba(15, 37, 87, 0.12);
}
.icon-title-content-items .icon-title-content-item h4 {
    margin: 0 0 10px;
    font-size: 1.25em;
    font-weight: 700;
    color: #0f2557;
}
.icon-title-content-items .icon-title-content-item p {
    margin: 0;
    line-height: 1.7;
}
@media (max-width: 760px) {
    .icon-title-content-items { grid-template-columns: 1fr; padding: 16px; gap: 14px; border-radius: 20px; }
    .icon-title-content-items .icon-title-content-item { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .icon-title-content-items .icon-title-content-item { transition: none; }
    .icon-title-content-items .icon-title-content-item:hover { transform: none; }
}

/* Background slider: the theme stretched each image to the viewport (distorting it) and zoomed it 1.4x-1.9x,
   which made the photos blurry. Now: object-fit cover, and a cinematic "Ken Burns" move per slide.
   The move restarts each time a slide becomes active (owl adds .active) and keeps running while it fades out
   (.owl-animated-out), because the animation name stays the same. Each image gets its own direction. */
#background-slider .slide img {
    width: 100% !important; height: 100% !important; object-fit: cover; object-position: center;
    transform: scale(1.06); animation: none !important; will-change: transform;
}
#background-slider .owl-item.active .slide img,
#background-slider .owl-item.owl-animated-out .slide img {
    animation: dgKenA 15s linear forwards !important;
}
#background-slider .owl-item.active .slide img[src*="14695412876271"],
#background-slider .owl-item.owl-animated-out .slide img[src*="14695412876271"] { animation-name: dgKenB !important; }
#background-slider .owl-item.active .slide img[src*="14695413144272"],
#background-slider .owl-item.owl-animated-out .slide img[src*="14695413144272"] { animation-name: dgKenC !important; }
/* A: slow push-in toward the towers. B: drift right while zooming. C: start close and pull back with a slight rise. */
@keyframes dgKenA { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(0, -2%, 0); } }
@keyframes dgKenB { from { transform: scale(1.12) translate3d(3%, 0, 0); } to { transform: scale(1.2) translate3d(-3%, -1%, 0); } }
@keyframes dgKenC { from { transform: scale(1.22) translate3d(0, 2%, 0); } to { transform: scale(1.04) translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
    #background-slider .owl-item .slide img { animation: none !important; transform: none !important; }
}

/* Top menu: centered on the page, larger text; projects dropdown centered under its item with larger text */
@media (min-width: 901px) {
    #header-section-container .menu-section { float: none; left: 0; right: 0; width: 100%; margin-left: auto; margin-right: auto; }
    #header-section-container ul.menu { float: none; display: flex; justify-content: center; direction: rtl; width: 100%; }
    #header-section-container ul.menu li.menu-item { float: none; padding: 0 clamp(18px, 2.6vw, 40px); }
    #header-section-container ul.menu li.menu-item:first-child { margin-right: 0; }
    #header-section-container ul.menu li.menu-item > a { font-size: 19px; letter-spacing: 0.02em; }
    #header-section-container .submenu { right: 50%; transform: translateX(50%); min-width: 230px; padding-bottom: 0; top: 100%; padding-top: 14px; }
    #header-section-container .submenu li { float: none; text-align: center; background: rgba(20, 38, 56, 0.82); line-height: 2.8; }
    #header-section-container .submenu li a { display: block; padding: 0 22px; font-size: 17px; text-align: center; }
    #header-section-container .submenu li:hover { background: rgba(20, 38, 56, 0.95); }
    #header-section-container .submenu li:hover a { color: #d8b47a; }
}

/* Top bar on wide screens: the phone and social icons were floated into the menu row and pushed the menu to the
   bottom of the bar. Phone + icons go to the logo row (left), the menu sits vertically centered in the bar. */
@media (min-width: 1201px) {
    #header-section-container .social-menu-phone-section-container { display: flex; align-items: center; justify-content: center; height: 64px; }
    #header-section-container .social-menu-phone-section { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; float: none; margin: 0; }
    #header-section-container .menu-section { float: none; margin: 0; height: auto; position: static; }
    #header-section-container ul.menu li.menu-item > a { line-height: 1.4; }
    #header-section-container .phone-section { position: absolute; left: 50px; top: 26px; width: auto; float: none; margin: 0; text-align: left; }
    #header-section-container .social-section { position: absolute; left: 50px; top: 60px; width: auto; float: none; margin: 0; text-align: left; }
}

/* Top bar: "צור קשר" button instead of the phone number */
#header-section-container .phone-section a.dg-contact-btn {
    display: inline-block; padding: 7px 20px; border: 1px solid #d8b47a; color: #fff; font-size: 16px; line-height: 1.4;
    letter-spacing: 0.02em; text-decoration: none; background: rgba(216, 180, 122, 0.12); transition: background 0.3s ease, color 0.3s ease;
}
#header-section-container .phone-section a.dg-contact-btn:hover, #header-section-container .phone-section a.dg-contact-btn:focus-visible { background: #d8b47a; color: #10202c; }

/* Top bar on wide screens (round 2): contact button sits low in the logo row, just above the line;
   social icons move below the line, into the menu row (left side) */
@media (min-width: 1201px) {
    #header-section-container .phone-section { top: auto; bottom: 78px; }
    #header-section-container .social-section { top: auto; bottom: 12px; left: 50px; z-index: 2; }
    #header-section-container .social-section li.icon { margin-right: 14px; }
}

/* Phones: compact top bar. Social icons are hidden here (they are on the contact page),
   the contact button is smaller and sits level with the menu button. */
@media (max-width: 900px) {
    #header-section-container .social-section { display: none !important; }
    #header-section-container .phone-section a.dg-contact-btn { padding: 5px 14px; font-size: 14px; }
}
@media (max-width: 900px) {
    #header-section-container .phone-section a.dg-contact-btn { padding: 3px 10px; font-size: 13px; letter-spacing: 0; }
}

/* social icons row at the bottom of the phone menu (js/mobile-menu-2026.js) */
.slicknav_nav li.dg-menu-social { display: flex !important; justify-content: center; gap: 22px; padding: 14px 0 10px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.slicknav_nav li.dg-menu-social a { display: inline-block; padding: 0 !important; margin: 0 !important; color: #fff !important; font-size: 24px; background: none !important; }
.slicknav_nav li.dg-menu-social a:hover { color: #d8b47a !important; }

.dg-social-mobile { display: none; }
@media (max-width: 900px) {
  .dg-social-mobile { position:relative; z-index:5; display:flex; align-items:center; justify-content:center; gap:18px; padding:22px 16px; background:#001c54; color:#fff; font-size:15px; }
  .dg-social-mobile a { display:grid; place-items:center; width:42px; height:42px; border:1px solid rgba(255,255,255,.4); border-radius:50%; color:#fff; font-size:20px; text-decoration:none; }
  .dg-social-mobile a:hover, .dg-social-mobile a:focus-visible { border-color:#d8b47a; color:#d8b47a; }
}

/* mobile: the legacy sticky footer covered ~40% of the screen over the content and hid the social strip */
@media (max-width: 750px) {
  #footer-container { display: none !important; }
}
.dg-social-mobile svg { display: block; }

/* Articles (list + single): the article text scrolls in its own layer (.inside-scroll-internal), so the end-of-page
   phone social strip landed in the middle of the text. The same social links are in the phone menu, so hide it there. */
@media (max-width: 900px) {
  body:has(.inside-scroll-internal) .dg-social-mobile { display: none !important; }
}
