/* ══ SITE POLISH (shared) ══════════════════════════════════
   Calmer motion + contact bar. Loaded after each page's own
   <style>, so it only overrides motion and layout, not colour.
═══════════════════════════════════════════════════════════ */

/* no custom cursor, no progress bar */
#cur, #cur-ring, #pbar { display: none !important; }
body { cursor: auto; }

/* WhatsApp button visible from the start */
#wa-float { opacity: 1 !important; transform: none !important; cursor: pointer; }

/* stop looping / attention-seeking motion */
.op-scroll, .hero-scroll { display: none !important; }
.op-scroll-line, .hero-scroll-line { animation: none !important; }
.gal-track { animation: none !important; }
#bars-hashim.pulse, #bars-hashim.shimmer::after { animation: none !important; }
#pp6 .pb-h-wrap::after { display: none !important; }
.fp-arrow { animation: none !important; }

/* fortress reel: poster first, play on tap */
#fortress-reel { position: relative; min-height: 0 !important; }
.fv-video { opacity: 1 !important; }
.fv-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75); background: rgba(20,16,14,.45);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .3s ease;
}
@media (hover: hover) and (pointer: fine) { .fv-play:hover { background: rgba(20,16,14,.7); } }
.fv-play svg { width: 24px; height: 24px; margin-left: 4px; }
.fv-play[hidden] { display: none; }

/* footer company details */
.ft-details { font-family: var(--sans, sans-serif); font-size: 12px; line-height: 1.9; color: var(--dim); letter-spacing: .02em; }
.ft-details a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(163,126,44,.35); }
@media (hover: hover) and (pointer: fine) { .ft-details a:hover { color: var(--gold); } }

/* phones: slim fixed contact bar replaces the floating bubble */
#hx-mbar { display: none; }
@media (max-width: 768px) {
  #wa-float { display: none !important; }
  #hx-mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000;
    background: rgba(36,31,23,.18);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 24px rgba(0,0,0,.08);
  }
  #hx-mbar a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; text-decoration: none;
    font-family: 'DM Sans', 'Noto Sans Arabic', sans-serif; font-size: 12px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
  }
  #hx-mbar .mb-wa { background: #1f1b16; color: #fff; }
  #hx-mbar .mb-call { background: #fff; color: #241F17; }
  #hx-mbar svg { width: 18px; height: 18px; flex: none; }
  [dir="rtl"] #hx-mbar a { letter-spacing: 0; font-size: 14px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .rev, [class*="reveal"] { opacity: 1 !important; transform: none !important; }
}

[dir="rtl"] .op-tag { font-style: normal; }

/* footer never wider than the screen */
#footer { flex-wrap: wrap; }
@media (max-width: 768px) {
  .ft-links { flex-wrap: wrap; gap: 12px 20px; max-width: 100%; }
  #footer > * { max-width: 100%; }
}

/* nav: solid light bar on every page (readable over photos and white) */
#nav, #nav.scrolled {
  background: rgba(255,255,255,.96) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36,31,23,.08) !important;
}
#nav .n-logo { color: #241F17 !important; }
#nav .n-links a { color: #6B6355; }
#nav .n-links a.active { color: #241F17; }
@media (hover: hover) and (pointer: fine) { #nav .n-links a:hover { color: #241F17; } }
#nav .n-burger span { background: #241F17 !important; }
#mob-menu { background: #fff !important; }
#mob-menu .mob-link { color: #241F17; }

/* heroes on white (heritage, contact): dark text instead of faint cream */
#hero:not(:has(.hero-bg)) .hero-h,
#hero:not(:has(.hero-bg)) .hero-h-inner,
#hero:not(:has(.hero-bg)) .hero-year,
#hero:not(:has(.hero-bg)) .hero-since,
#hero:not(:has(.hero-bg)) .hero-sub { color: #241F17 !important; }
#hero:not(:has(.hero-bg)) .hero-since { color: #6B6355 !important; }

/* ══ PHOTO HEROES: text band above, photo below (same in EN and AR, never mirrored) ══ */
#hero:has(.hero-bg) {
  display: flex !important; flex-direction: column !important;
  align-items: flex-start !important; justify-content: flex-start !important;
  height: auto !important; min-height: 0 !important; overflow: visible !important;
  padding: clamp(118px,12vw,150px) clamp(20px,6vw,96px) 0 !important;
  background: #fff !important; text-align: left;
}
[dir="rtl"] #hero:has(.hero-bg) { text-align: right; }
#hero:has(.hero-bg) .hero-overlay,
#hero:has(.hero-bg) .hero-noise,
#hero:has(.hero-bg) .hero-rule-v,
#hero:has(.hero-bg) .hero-scroll { display: none !important; }
#hero:has(.hero-bg) > *:not(.hero-bg) { position: relative; z-index: 1; }
#hero:has(.hero-bg) .hero-bg {
  order: 99; position: relative !important; inset: auto !important;
  width: calc(100% + 2 * clamp(20px,6vw,96px)); margin: clamp(36px,4vw,56px) calc(-1 * clamp(20px,6vw,96px)) 0;
  aspect-ratio: 16 / 9; max-height: 82vh; height: auto !important;
  background-size: cover !important; background-position: center !important;
  transform: none !important; transition: none !important;
}
#hero:has(.hero-bg) .hero-h { font-size: clamp(36px,4.2vw,64px) !important; max-width: 900px; margin-bottom: 18px; overflow: visible; }
#hero:has(.hero-bg) .hero-h,
#hero:has(.hero-bg) .hero-h-inner { color: #241F17 !important; text-shadow: none !important; }
#hero:has(.hero-bg) .hero-h em, #hero:has(.hero-bg) .hero-h .italic-accent { color: #6E2823 !important; }
#hero:has(.hero-bg) .hero-sub { color: #6B6355 !important; text-shadow: none !important; max-width: 560px; font-size: 18px; line-height: 1.7; }
#hero:has(.hero-bg) .hero-ey { color: #A37E2C !important; text-shadow: none !important; margin-bottom: 18px; }
#hero:has(.hero-bg) .hero-cta { color: #241F17 !important; border-color: rgba(163,126,44,.6) !important; margin-top: 24px; }
#hero:has(.hero-bg) .bx-actions { margin-top: 28px; }
#hero:has(.hero-bg) .bx-btn-solid { background: #241F17; color: #fff; }
@media (hover: hover) and (pointer: fine) { #hero:has(.hero-bg) .bx-btn-solid:hover { background: #6E2823; } }
#hero:has(.hero-bg) .bx-btn-line { color: #241F17; border-color: rgba(163,126,44,.6); }
@media (max-width: 768px) {
  #hero:has(.hero-bg) { padding: 104px 20px 0 !important; }
  #hero:has(.hero-bg) .hero-bg { width: calc(100% + 40px); margin: 32px -20px 0; aspect-ratio: 4 / 5; max-height: none; }
  #hero:has(.hero-bg) .hero-h { font-size: clamp(34px,9.5vw,44px) !important; }
}
@media (max-width: 768px) {
  #hx-mbar { transition: transform .28s cubic-bezier(.23,1,.32,1); }
  #hx-mbar.hx-mbar-hidden { transform: translateY(110%); }
}
@media (prefers-reduced-motion: reduce) { #hx-mbar { transition: none; } }
