/* ==========================================================================
   مجمع الفارس التجاري — Brand overrides & custom components
   Loaded AFTER the theme's style.css so it wins the cascade.
   ========================================================================== */

/* ---------- 1. Brand palette & fonts (override theme root vars) ---------- */
:root {
    --theme-color: #2e609e;   /* Al-Faris primary blue */
    --theme-color2: #00a5e5;  /* Al-Faris secondary cyan */
    --title-color: #12283f;
    --title-dark: #10263f;    /* dark sections background */
    --body-color: #5c6b7a;
    --gray-color: #eef4f9;
    --smoke-color: #dbe6f0;
    --title-font: 'IBM Plex Sans Arabic', sans-serif;
    --body-font: 'IBM Plex Sans Arabic', sans-serif;
    --icon-font: 'Font Awesome 6 Pro';

    /* Header is position:absolute over the hero, so it takes no layout space.
       Anything sitting under it must reserve this much room by hand.
       = topbar (48 + 1px rule) + nav island (84). Keep in sync with both. */
    --elf-topbar-h: 49px;
    --elf-island-h: 84px;
    --elf-header-h: calc(var(--elf-topbar-h) + var(--elf-island-h));
}

body {
    font-family: var(--body-font);
    overflow-x: hidden;
}

/* hide the theme's GSAP mouse-follower dots (were showing as a stray dot) */
.cursor-follower, .slider-drag-cursor { display: none !important; }

/* keep the header on a single row */
.header-layout2 .menu-area .row { flex-wrap: nowrap; }

h1, h2, h3, h4, h5, h6, .sec-title, .box-title, .box-number, .hero-title {
    font-family: var(--title-font);
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Secondary-colour accents reused across sections */
.text-theme2 { color: var(--theme-color2) !important; }
.bg-theme2   { background-color: var(--theme-color2) !important; }

/* Self-contained entrance animation (no JS dependency) */
@keyframes elfUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.elf-up { opacity: 0; animation: elfUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
@media (prefers-reduced-motion: reduce) { .elf-up { animation: none; opacity: 1; } }

/* Safety net: never let the theme's opacity:0 entrance classes hide content
   if their JS-driven animation fails to run in this Laravel context. */
.fadein, .scalein, .slideinleft, .slideinright, .slideindown, .slideinup,
.slidetopleft, .slidebottomright, .rollinleft, .rollinright { opacity: 1; }

/* ---------- 2. Section title helper ---------- */
.sub-title.elfares-sub {
    color: var(--theme-color2);
    font-weight: 700;
    letter-spacing: .04em;
    display: inline-block;
    margin-bottom: 12px;
}

/* ---------- 3. Hero — full-bleed video, RTL copy on the right ----------
   Text sits right-of-centre and low: measured against 10 frames of hero.mp4,
   that zone never drops below 4.5:1 for white text, while the sky band at the
   top hits 100% failure — hence the dedicated scrims below rather than one
   flat overlay. */
/* smooth in-page scrolling — the hero down-arrow and the header anchor nav
   glide to their target instead of jumping */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.elfares-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a1a2b;
    /* reserve the absolutely-positioned header's height so the copy centres in
       the space BELOW it — without this it rides up under the island on short
       viewports (1280x720 and down) */
    padding-top: var(--elf-header-h);
}
.elfares-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.elfares-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.elfares-hero__scrim { position: absolute; z-index: 1; pointer-events: none; }
.elfares-hero__scrim--top {
    inset: 0 0 auto 0; height: 260px;
    background: linear-gradient(180deg, rgba(8,22,38,.92) 0%, rgba(8,22,38,.55) 45%, rgba(8,22,38,0) 100%);
}
/* logical: darkens the copy side (right in RTL, left in LTR) */
.elfares-hero__scrim--side {
    inset: 0;
    background: linear-gradient(to left, rgba(8,22,38,.88) 0%, rgba(8,22,38,.62) 38%, rgba(8,22,38,.12) 72%, rgba(8,22,38,0) 100%);
}
.elfares-hero__scrim--bottom {
    inset: auto 0 0 0; height: 300px;
    background: linear-gradient(0deg, rgba(8,22,38,.95) 0%, rgba(8,22,38,.6) 45%, rgba(8,22,38,0) 100%);
}
.elfares-hero__container { position: relative; z-index: 2; width: 100%; }
.elfares-hero__copy {
    max-width: 620px;
    margin-inline-end: auto;   /* auto on the END side pins the box to the start edge (right in RTL) */
    text-align: start;
    padding-block: 40px 150px;
}

/* Eyebrow — Arabic is cursive, so NO letter-spacing (it shreds the joins).
   The "quiet label" effect comes from colour + weight + the marker instead. */
.elf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--theme-color2);
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 18px;
}
.elf-eyebrow__mark {
    width: 26px; height: 3px; border-radius: 2px;
    background: var(--theme-color2);
    flex: none;
}
.elfares-hero__title {
    color: #fff;
    font-size: clamp(2.3rem, 5.2vw, 4.4rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 18px;
    text-shadow: 0 2px 24px rgba(4, 14, 26, .45);
}
.elfares-hero__title-accent { color: var(--theme-color2); }
.elfares-hero__text {
    color: #d6e2ee;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.85;
    max-width: 540px;
    margin-bottom: 32px;
}
.elfares-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Buttons — 65px tall, 3px radius, no text-transform (Byron's proportions) */
.elf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding-inline: 30px;
    border-radius: 3px;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1;
    transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.elf-btn i { font-size: .9em; transition: transform .25s ease; }
.elf-btn:hover i { transform: translateX(-4px); }
.elf-btn--solid { background: var(--theme-color2); color: #fff; }
.elf-btn--solid:hover { background: #fff; color: var(--title-dark); transform: translateY(-2px); }
.elf-btn--ghost {
    background: rgba(255,255,255,.06);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.elf-btn--ghost:hover { background: #fff; color: var(--title-dark); border-color: #fff; transform: translateY(-2px); }

/* Proof strip along the base */
.elfares-hero__strip {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(0deg, rgba(8,22,38,.72), rgba(8,22,38,.34));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.elf-hstrip { display: flex; }
.elf-hstrip__item {
    flex: 1;
    padding: 22px 26px;
    border-inline-start: 1px solid rgba(255,255,255,.12);
}
.elf-hstrip__item:first-child { border-inline-start: 0; }
.elf-hstrip__num {
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    display: flex; align-items: baseline; gap: 5px;
}
.elf-hstrip__num small { font-size: .55em; font-weight: 500; color: var(--theme-color2); }
.elf-hstrip__label { color: #a9bdd1; font-size: .9rem; margin-top: 4px; }

/* Scroll cue — a bouncing down-arrow that signals "there is more below".
   Shown on every screen size (mobile-first: centred at the base of the cover). */
.elfares-hero__scroll {
    margin: clamp(16px, 3vw, 24px) auto 0;   /* centre it under the text */
    width: 46px; height: 46px;
    display: grid; place-items: center;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 50%;
    background: rgba(8,22,38,.30);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.elfares-hero__scroll:hover {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    border-color: transparent; color: #fff;
}
.elfares-hero__scroll i {
    font-size: 18px; line-height: 1;
    animation: elfaresBounce 1.6s var(--elx-ease, ease) infinite;
}
@keyframes elfaresBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@media (prefers-reduced-motion: reduce) { .elfares-hero__scroll i { animation: none; } }
@media (max-width: 991px) {
    /* fit the cover to the *visible* viewport (svh), not 100vh — otherwise the
       bottom scroll-cue is pushed behind the phone browser's bottom toolbar */
    .elfares-hero { min-height: 100svh; }
    .elfares-hero__copy { max-width: none; margin-inline-end: 0; padding-block: 20px 40px; }
    /* the strip would collide with the floating WhatsApp button and crowd the
       copy on a phone; the same figures get a full section further down */
    .elfares-hero__strip { display: none; }
    .elfares-hero__scrim--side {
        background: linear-gradient(0deg, rgba(8,22,38,.8) 0%, rgba(8,22,38,.5) 60%, rgba(8,22,38,.25) 100%);
    }
}
@media (max-width: 575px) {
    .elf-btn { height: 54px; padding-inline: 22px; font-size: .95rem; }
    .elfares-hero__btns { gap: 10px; }
    .elf-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- 4. "Why invest" feature cards ---------- */
.why-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: 20px;
    padding: 40px 32px;
    height: 100%;
    transition: .35s ease;
    position: relative;
    overflow: hidden;
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(46,96,158,.14); border-color: transparent; }
.why-card__icon {
    width: 74px; height: 74px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    margin-bottom: 24px;
}
.why-card__icon i { color: #fff; font-size: 30px; }
.why-card h3 { font-size: 22px; margin-bottom: 12px; }
.why-card p { margin: 0; color: var(--body-color); }

/* ---------- 5. Operational readiness — credentials band under the hero ---------- */
.elf-ready {
    position: relative;
    padding: 64px 0 58px;
    background: var(--gray-color);
    border-bottom: 1px solid #dbe6f0;
    overflow: hidden;
}
.elf-ready__head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.elf-eyebrow--dark { color: var(--theme-color); }
.elf-eyebrow--dark .elf-eyebrow__mark { background: var(--theme-color); }
.elf-ready__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 10px; color: var(--title-dark); }
.elf-ready__text { margin: 0; color: var(--body-color); }

/* Marquee.
   `direction: ltr` on the viewport is load-bearing: the track is wider than the
   screen, and in an RTL container an over-wide flex track gets right-aligned,
   which parks it off-screen and makes the strip look empty. The items restore
   `direction: rtl` for the Arabic labels. */
.elf-mq {
    direction: ltr;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.elf-mq__track {
    display: flex;
    width: max-content;
    animation: elfMarquee 44s linear infinite;
}
.elf-mq:hover .elf-mq__track { animation-play-state: paused; }
@keyframes elfMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.3333%); }   /* exactly one of the 3 sets */
}
.elf-mq__item {
    direction: rtl;
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-inline: 9px;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid #e2ebf4;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(16, 38, 63, .05);
    transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}
.elf-mq__item:hover {
    border-color: var(--theme-color2);
    box-shadow: 0 12px 30px rgba(46, 96, 158, .16);
    transform: translateY(-4px);
}
.elf-mq__icon {
    flex: none;
    width: 52px; height: 52px;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
}
.elf-mq__label { color: var(--title-dark); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.elf-mq__ok { color: var(--theme-color2); font-size: 15px; }

.elf-ready__note {
    margin: 34px 0 0;
    text-align: center;
    color: var(--body-color);
}
.elf-ready__note a {
    display: inline-flex; align-items: center; gap: 7px;
    margin-inline-start: 10px;
    color: var(--theme-color); font-weight: 600;
}
.elf-ready__note a i { font-size: .85em; transition: transform .25s ease; }
.elf-ready__note a:hover i { transform: translateX(-4px); }

@media (prefers-reduced-motion: reduce) {
    .elf-mq__track { animation: none; }
    .elf-mq { overflow-x: auto; }
}
@media (max-width: 575px) {
    .elf-ready { padding: 44px 0 40px; }
    .elf-mq__item { padding: 12px 16px; gap: 11px; }
    .elf-mq__icon { width: 44px; height: 44px; font-size: 18px; }
    .elf-mq__label { font-size: .92rem; }
}

/* ---------- 6. Interactive 3D plan ---------- */
.plan-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--theme-color); font-weight: 600; margin-bottom: 8px; flex-wrap: wrap; justify-content: center; }
.plan-hint i { color: var(--theme-color2); }

.plan-3d { position: relative; }
.plan-3d__stage {
    position: relative; overflow: hidden; border-radius: 26px;
    perspective: 1400px; perspective-origin: 50% 50%;
    background: linear-gradient(180deg, #eaf1f8, #dbe6f2);
    box-shadow: 0 34px 70px rgba(16, 38, 63, .22);
    cursor: grab; touch-action: none;
}
.plan-3d.is-grabbing .plan-3d__stage { cursor: grabbing; }
.plan-3d__scene {
    position: relative; transform-style: preserve-3d;
    transition: transform .18s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}
.plan-3d.is-grabbing .plan-3d__scene { transition: none; }
.plan-3d__img { width: 100%; display: block; user-select: none; -webkit-user-drag: none; }

.plan-3d__tools {
    position: absolute; bottom: 18px; inset-inline-end: 18px; z-index: 6;
    display: flex; flex-direction: column; gap: 8px;
}
.plan-3d__tools button {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid #dbe6f2;
    background: rgba(255,255,255,.92); color: var(--theme-color); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    box-shadow: 0 6px 18px rgba(16,38,63,.14); transition: .25s ease;
}
.plan-3d__tools button:hover { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }
.plan-3d__tools button.is-on { background: var(--theme-color2); color: #fff; border-color: var(--theme-color2); }

@media (max-width: 767px) { .plan-3d__stage { perspective: none; } }
.plan-marker {
    position: absolute; z-index: 3;
    /* float the pins slightly above the model so they parallax with the tilt */
    transform: translate(-50%, -50%) translateZ(26px);
}
.plan-marker__dot {
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: var(--theme-color); color: #fff; font-weight: 700; font-size: 18px;
    border: 3px solid #fff; box-shadow: 0 6px 16px rgba(16,38,63,.35);
    transition: .3s ease;
}
.plan-marker__dot::after {
    content: ""; position: absolute; inset: -8px; border-radius: 50%;
    border: 2px solid var(--theme-color2); opacity: .0; animation: elfaresPing 2.4s infinite;
}
@keyframes elfaresPing { 0%{transform:scale(.7);opacity:.7} 100%{transform:scale(1.5);opacity:0} }
.plan-marker:hover .plan-marker__dot { background: var(--theme-color2); transform: scale(1.12); }
.plan-marker__pop {
    position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
    width: 260px; max-width: 70vw; background: #fff; border-radius: 14px; padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(16,38,63,.25); opacity: 0; visibility: hidden; transition: .28s ease; z-index: 5;
    text-align: center; pointer-events: none;
}
.plan-marker__pop::after {
    content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 9px solid transparent; border-top-color: #fff;
}
.plan-marker__pop h5 { color: var(--theme-color); font-size: 17px; margin: 0 0 6px; }
.plan-marker__pop p { margin: 0; font-size: 14px; color: var(--body-color); line-height: 1.6; }
.plan-marker:hover .plan-marker__pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* markers near the top open their tooltip downwards so it isn't clipped */
.plan-marker--below .plan-marker__pop { bottom: auto; top: calc(100% + 14px); transform: translateX(-50%) translateY(-8px); }
.plan-marker--below .plan-marker__pop::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fff; }
.plan-marker--below:hover .plan-marker__pop { transform: translateX(-50%) translateY(0); }
.plan-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; margin-top: 34px; }
.plan-legend__item { display: flex; gap: 12px; align-items: flex-start; }
.plan-legend__num {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-color); color: var(--theme-color);
}
.plan-legend__item p { margin: 0; font-size: 14px; color: var(--body-color); }
.plan-legend__item b { color: var(--title-color); display: block; font-size: 15px; }

/* Ghost marker: sits over the pre-numbered infographic pin (number shows through) */
.plan-marker--ghost .plan-marker__dot {
    width: 46px; height: 46px; background: transparent; border: 2px solid transparent;
    box-shadow: none; color: transparent;
}
.plan-marker--ghost .plan-marker__dot::after { opacity: .55; border-color: var(--theme-color2); }
.plan-marker--ghost:hover .plan-marker__dot { background: rgba(0,165,229,.18); transform: scale(1.25); border-color: rgba(0,165,229,.5); }

/* ---------- 7. Numbers / stats ---------- */
.elf-stats { background-size: cover; background-position: center; }
.elf-stats__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(16,38,63,.95) 0%, rgba(46,96,158,.92) 100%);
}
.elf-stats__grid {
    display: grid; gap: 1px; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.14); border-radius: 24px; overflow: hidden;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px)  { .elf-stats__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .elf-stats__grid { grid-template-columns: repeat(5, 1fr); } }
.elf-stat {
    background: rgba(16, 38, 63, .55); padding: 34px 14px; text-align: center;
    transition: .35s ease; backdrop-filter: blur(2px);
}
.elf-stat:hover { background: rgba(0, 165, 229, .22); }
.elf-stat__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px; font-size: 22px;
    color: var(--theme-color2); background: rgba(255,255,255,.10); transition: .35s ease;
}
.elf-stat:hover .elf-stat__icon { background: #fff; color: var(--theme-color); transform: translateY(-4px); }
.elf-stat__num {
    color: #fff; font-family: var(--title-font); font-weight: 700; line-height: 1;
    font-size: clamp(1.6rem, 2.2vw, 2.3rem); margin: 0 0 8px;
}
.elf-stat__num small { font-size: .45em; color: var(--theme-color2); font-weight: 600; margin-inline-start: 4px; }
.elf-stat__label { margin: 0; color: #cfe0f0; font-size: 14px; font-weight: 500; }

/* ---------- 8. Services groups ---------- */
.svc-group { margin-bottom: 56px; }
.svc-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.svc-group__head .icon {
    width: 54px; height: 54px; border-radius: 14px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
}
.svc-group__head h3 { margin: 0; font-size: 26px; }
.svc-card { position: relative; border-radius: 18px; overflow: hidden; display: block; height: 260px; }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.svc-card:hover img { transform: scale(1.08); }
.svc-card__cap {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px;
    background: linear-gradient(180deg, rgba(16,38,63,0) 40%, rgba(16,38,63,.85) 100%);
    color: #fff;
}
.svc-card__cap span { font-size: 18px; font-weight: 600; }
.svc-card .plus { position: absolute; top: 16px; inset-inline-end: 16px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.2); color:#fff; display:flex; align-items:center; justify-content:center; opacity:0; transition:.3s; }
.svc-card:hover .plus { opacity: 1; }

/* ---------- 8b. Filterable gallery ---------- */
.gal-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.gal-filter__btn {
    border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #cfe0f0;
    padding: 10px 22px; border-radius: 40px; font-weight: 600; font-size: 14.5px;
    font-family: var(--body-font); transition: .3s ease; cursor: pointer;
}
.gal-filter__btn:hover { border-color: var(--theme-color2); color: #fff; }
.gal-filter__btn.active { background: var(--theme-color2); border-color: var(--theme-color2); color: #fff; }

.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 768px)  { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }

.gal-item {
    position: relative; display: block; border-radius: 18px; overflow: hidden;
    aspect-ratio: 4/3; animation: elfUp .5s ease both;
}
.gal-item.is-hidden { display: none; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal-item:hover img { transform: scale(1.08); }
.gal-item__body {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    gap: 4px; padding: 18px;
    background: linear-gradient(180deg, rgba(16,38,63,0) 45%, rgba(16,38,63,.9) 100%);
    color: #fff; transition: .35s ease;
}
.gal-item__cat { font-size: 12px; color: var(--theme-color2); font-weight: 600; }
.gal-item__title { font-size: 16px; font-weight: 600; font-family: var(--title-font); }
.gal-item__zoom {
    position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: rgba(0,165,229,.85); opacity: 0; transform: scale(.7); transition: .35s ease;
}
.gal-item:hover .gal-item__zoom { opacity: 1; transform: scale(1); }

/* ---------- 9. Reference profile (PDF + video) ---------- */
.ref-card {
    position: relative; border-radius: 22px; overflow: hidden; min-height: 300px;
    display: flex; align-items: flex-end; padding: 34px; color: #fff;
}
.ref-card__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transition: .5s; }
.ref-card:hover .ref-card__bg { transform: scale(1.06); }
.ref-card::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(16,38,63,.35), rgba(16,38,63,.86)); }
.ref-card__body { position: relative; z-index: 2; width: 100%; }
.ref-card h3 { color: #fff; font-size: 24px; margin: 0 0 16px; }
.ref-card .play-btn { position: relative; }
.ref-play {
    width: 78px; height: 78px; border-radius: 50%; background: var(--theme-color2); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px;
    box-shadow: 0 0 0 0 rgba(0,165,229,.6); animation: elfaresPulse 2.2s infinite;
}
@keyframes elfaresPulse { 0%{box-shadow:0 0 0 0 rgba(0,165,229,.55)} 100%{box-shadow:0 0 0 26px rgba(0,165,229,0)} }

/* ---------- 10. CTA + Location ---------- */
.elfares-cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--title-dark), var(--theme-color)); }
.elfares-cta .sec-title, .elfares-cta p { color: #fff; }
.wa-btn { background: #25d366 !important; border-color: #25d366 !important; }
.wa-btn:hover { background: #1eb257 !important; }
.loc-card { background:#fff; border:1px solid #e7eef5; border-radius:18px; padding:26px; }
.loc-card h4 { color: var(--theme-color); }
.contact-map iframe { width: 100%; height: 460px; border: 0; display: block; }

/* interactive Leaflet map */
.elf-map-wrap { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(16,38,63,.16); }
.elf-map { height: 480px; width: 100%; z-index: 1; }
.elf-map__layers {
    position: absolute; top: 14px; inset-inline-start: 14px; z-index: 500;
    display: flex; gap: 6px; background: rgba(255,255,255,.94); padding: 5px; border-radius: 12px;
    box-shadow: 0 6px 18px rgba(16,38,63,.16);
}
.elf-map__layers button {
    border: 0; background: transparent; color: var(--title-color); font-family: var(--body-font);
    font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: .25s;
}
.elf-map__layers button.active { background: var(--theme-color); color: #fff; }
.elf-pin {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: #fff; font-size: 18px; box-shadow: 0 8px 20px rgba(16,38,63,.35); border: 2px solid #fff;
}
.elf-pin i { transform: rotate(45deg); }
.leaflet-popup-content { font-family: var(--body-font); direction: rtl; text-align: right; line-height: 1.7; }
.leaflet-popup-content a { color: var(--theme-color); font-weight: 600; }

/* ---------- 10b. Contact section ---------- */
.ct-card {
    height: 100%; text-align: center; padding: 40px 24px; border-radius: 20px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    transition: .35s ease; display: flex; flex-direction: column; align-items: center;
}
.ct-card:hover { background: rgba(0,165,229,.10); border-color: var(--theme-color2); transform: translateY(-6px); }
.ct-card__icon {
    width: 66px; height: 66px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2)); transition: .35s ease;
}
.ct-card:hover .ct-card__icon { transform: rotate(-6deg) scale(1.06); }
.ct-card--wa .ct-card__icon { background: linear-gradient(135deg, #25d366, #128c7e); }
.ct-card__title { color: #fff; font-size: 20px; margin: 0 0 14px; }
.ct-card__link { display: block; color: #cfe0f0; font-weight: 600; font-size: 16px; padding: 3px 0; transition: .25s; }
.ct-card__link:hover { color: var(--theme-color2); }
.ct-strip {
    margin-top: 44px; padding: 22px 28px; border-radius: 18px;
    background: rgba(255,255,255,.05); border: 1px dashed rgba(0,165,229,.35);
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
    color: #dbe7f3; font-weight: 500;
}
.ct-strip i { color: var(--theme-color2); }
.ct-strip a { color: #fff; font-weight: 600; }
.ct-strip a:hover { color: var(--theme-color2); }

/* ---------- 10c. Floating WhatsApp button ---------- */
.wa-float {
    position: fixed; right: 30px; bottom: 30px; z-index: 94;
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #25d366; color: #fff; font-size: 30px;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
    transition: transform .3s ease, background .3s ease;
}
.wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
    animation: waPulse 2.2s infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { background: #1eb257; color: #fff; transform: scale(1.08); }
.wa-float__tip {
    position: absolute; inset-inline-end: calc(100% + 12px); white-space: nowrap;
    background: var(--title-dark); color: #fff; font-size: 13px; font-weight: 600;
    padding: 8px 14px; border-radius: 8px; opacity: 0; visibility: hidden; transition: .3s ease;
}
.wa-float:hover .wa-float__tip { opacity: 1; visibility: visible; }
@media (max-width: 575px) {
    .wa-float { width: 52px; height: 52px; font-size: 26px; right: 18px; bottom: 18px; }
    .wa-float__tip { display: none; }
}

/* ---------- 11. Header: navy utility topbar + floating white nav island ----------
   The island is opaque, so the logo and links never sit directly on the video —
   which is what keeps them readable through the clip's bright frames. */
.th-header.header-elfares {
    position: absolute;
    inset-inline: 0;
    top: 0;
    width: 100%;
    z-index: 41;
    background: transparent;
}

/* --- topbar --- */
.elf-topbar {
    background: var(--title-dark);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.elf-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}
.elf-topbar__group { display: flex; align-items: center; height: 100%; }
.elf-topbar__cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding-inline: 18px;
    color: #b9c7d6;
    font-size: .85rem;
    white-space: nowrap;
    border-inline-start: 1px solid rgba(255,255,255,.1);
}
.elf-topbar__group > .elf-topbar__cell:first-child { border-inline-start: 0; padding-inline-start: 0; }
.elf-topbar__group > .elf-topbar__cell:last-child { border-inline-end: 1px solid rgba(255,255,255,.1); }
.elf-topbar__cell i { color: var(--theme-color2); font-size: .82rem; }
a.elf-topbar__cell:hover { color: #fff; }
.elf-topbar__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    color: #b9c7d6;
    border-radius: 3px;
    transition: background .25s ease, color .25s ease;
}
.elf-topbar__ico:hover { background: var(--theme-color2); color: #fff; }

/* --- floating nav island --- */
.header-elfares .menu-area { background: transparent; }
.elf-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 84px;
    padding-inline: 30px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(6, 20, 34, .22);
    transition: height .3s ease, background .3s ease, box-shadow .3s ease, border-radius .3s ease;
}
.elf-navbar__menu { flex: 1; display: flex; justify-content: center; }
.header-elfares .main-menu > ul > li > a { color: var(--title-dark); font-weight: 600; }
.header-elfares .main-menu > ul > li > a:hover { color: var(--theme-color); }
.header-elfares .header-logo .logo-light { display: none; }
.header-elfares .header-logo .logo-dark { display: inline-block; }
.elf-navbar__end { display: flex; align-items: center; gap: 14px; }
.elf-navbar__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 52px;
    padding-inline: 26px;
    border-radius: 3px;
    background: var(--theme-color);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .25s ease, transform .25s ease;
}
.elf-navbar__cta i { font-size: .85em; transition: transform .25s ease; }
.elf-navbar__cta:hover { background: var(--theme-color2); color: #fff; transform: translateY(-2px); }
.elf-navbar__cta:hover i { transform: translateX(-4px); }
/* own burger — the theme's .sidebar-btn skin is built for a different slot
   (it forces a solid 84x56 block and 46px line margins), so style it here */
.elf-burger {
    width: 46px; height: 46px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: var(--theme-color);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.elf-burger .line {
    display: block;
    width: 20px; height: 2px;
    margin: 0;
    border-radius: 2px;
    background: #fff;
}

/* --- sticky: island expands to a full-width solid bar --- */
.header-elfares .sticky-wrapper.sticky {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 41;
    animation: elfSlideDown .4s ease forwards;
}
.header-elfares .sticky-wrapper.sticky .container { max-width: 100%; padding-inline: 0; }
.header-elfares .sticky-wrapper.sticky .elf-navbar {
    height: 74px;
    border-radius: 0;
    padding-inline: 60px;
    box-shadow: 0 6px 24px rgba(6, 20, 34, .14);
}
@keyframes elfSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

@media (max-width: 991px) {
    .elf-topbar__cell--addr { display: none; }
    .elf-navbar { height: 70px; padding-inline: 18px; }
    .header-elfares .sticky-wrapper.sticky .elf-navbar { height: 66px; padding-inline: 18px; }
}
@media (max-width: 575px) {
    .elf-topbar__cell { padding-inline: 10px; font-size: .78rem; }
    .elf-topbar__cell:not(:first-child):not(.elf-topbar__ico) { display: none; }
    .elf-topbar__group--end { gap: 2px; }
}

/* ---------- 11a. Logo sizing ---------- */
.header-logo img { max-height: 50px; width: auto; }
.mobile-logo img { max-height: 46px; width: auto; }
.footer-widget .about-logo img { max-height: 54px; width: auto; }

/* ---------- 11b. Theme component tweaks ---------- */
.service-card.style2 .service-card-icon { display: inline-flex; align-items: center; justify-content: center; }
.service-card.style2 .service-card-icon i { font-size: 34px; color: var(--theme-color); line-height: 1; }
/* keep every card the same height and pin the image to the bottom so all
   images line up even when the text above runs to a different length */
.service-card.style2 { display: flex; flex-direction: column; height: 100%; }
.service-card.style2 .box-text {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 4.9em;
}
.service-card.style2 .service-img { margin-top: auto; }

/* ---------- 11c. About: single large image ---------- */
.elf-about-img { position: relative; }
.elf-about-img .img1 { border-radius: 28px; overflow: hidden; }
.elf-about-img .img1 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.elf-about-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 86px; height: 86px; border-radius: 50%; background: #fff; color: var(--theme-color);
    display: flex; align-items: center; justify-content: center; font-size: 26px; z-index: 2;
    box-shadow: 0 12px 34px rgba(16, 38, 63, .28);
}
.elf-about-play .ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: elfaresPulse 2.2s infinite; }
.elf-about-badge {
    position: absolute; inset-inline-start: 26px; bottom: 26px; z-index: 2;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: #fff; border-radius: 18px; padding: 18px 26px; text-align: center;
    box-shadow: 0 16px 40px rgba(46, 96, 158, .35);
}
.elf-about-badge .num { display: block; font-family: var(--title-font); font-weight: 700; font-size: 28px; line-height: 1; }
.elf-about-badge .lbl { display: block; font-size: 13px; opacity: .92; margin-top: 6px; }
.box-number .counter-unit { font-size: .42em; color: var(--theme-color2); font-weight: 600; }
.about-thumb-slider .img1 img { aspect-ratio: 3/4; width: 100%; object-fit: cover; border-radius: 24px; }
.about-wrap2 { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.checklist.style2 ul { column-count: 1; }
.portfolio-card.style2 .portfolio-img img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }

/* ---------- 12. Breadcrumb (inner pages) ---------- */
.elf-breadcrumb {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--title-dark), var(--theme-color));
    /* clears the 48px topbar + the 84px nav island that floats over it */
    padding: 205px 0 70px; text-align: center;
}
.elf-breadcrumb::after {
    content: ""; position: absolute; inset: 0; opacity: .12;
    background-image: url('../img/shape/section_shape_2_2.jpg'); background-size: 340px; mix-blend-mode: screen;
}
.elf-breadcrumb__title { position: relative; z-index: 1; color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 12px; }
.elf-breadcrumb__nav { position: relative; z-index: 1; display: flex; gap: 10px; justify-content: center; align-items: center; margin: 0; padding: 0; list-style: none; }
.elf-breadcrumb__nav li { color: #cfe0f0; font-weight: 500; }
.elf-breadcrumb__nav li a { color: #fff; }
.elf-breadcrumb__nav li:not(:last-child)::after { content: "/"; margin-inline-start: 10px; color: rgba(255,255,255,.5); }
