/* Luxury Meridian - r3 overlay (2026-11-11): header/menu fix, nav, buttons, accessibility, back-to-top.
   Loaded after lm-home2.css (English) and lm-ar2.css (Arabic). */

/* ---------- 1. Header: the rotating clock no longer sits in the nav (it covered the links on wide screens
   and pushed the mobile menu button off-screen). World clocks stay in the footer and on Contact. ---------- */
nav .lm-hclock{display:none !important}
nav.fixed>div{gap:1.25rem;min-height:44px}
nav .lm-logo{flex:none;min-width:0}
nav .hidden.md\:flex{gap:clamp(1.1rem,1.9vw,2.1rem) !important}
nav .hidden.md\:flex>a.font-body{white-space:nowrap;padding:.55rem 0;letter-spacing:.16em}
nav .hidden.md\:flex>a[aria-current="page"]{color:hsl(var(--accent))}
nav .hidden.md\:flex>a[aria-current="page"]::after{transform:scaleX(1) !important}
nav .hidden.md\:flex>button[aria-label="Search"]{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;margin:0 -.5rem}
/* the full link row needs ~1200px; below that use the menu button (tablets and small laptops included) */
@media (max-width:1199px){
  nav .hidden.md\:flex{display:none !important}
  nav .flex.md\:hidden{display:flex !important}
  .fixed.inset-0.z-40.md\:hidden{display:flex !important}
}
/* menu + search buttons: 44px touch targets, always inside the viewport */
nav .flex.md\:hidden{gap:.35rem !important;flex:none}
nav .flex.md\:hidden>button{width:44px !important;height:44px !important;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:999px;transition:background-color .3s}
nav .flex.md\:hidden>button:hover{background:hsl(var(--foreground)/.06)}
nav button[aria-label="Menu"]{margin-right:-8px}
nav button[aria-label="Menu"]>span{width:22px !important;height:1.5px !important;transform:none !important;left:11px !important;top:21px;transition:translate .4s var(--lm-ease),rotate .4s var(--lm-ease) !important}
nav button[aria-label="Menu"]>span:first-child{translate:0 -4px}
nav button[aria-label="Menu"]>span:last-child{translate:0 4px}
nav button[aria-label="Menu"][aria-expanded="true"]>span:first-child{translate:0 0;rotate:45deg}
nav button[aria-label="Menu"][aria-expanded="true"]>span:last-child{translate:0 0;rotate:-45deg}
/* mobile menu panel */
.fixed.inset-0.z-40.md\:hidden{padding:6rem 1.5rem 2.5rem;overflow-y:auto;background:hsl(var(--background)) radial-gradient(90% 60% at 80% 0%,rgba(212,175,105,.16),transparent 70%)}
.fixed.inset-0.z-40.md\:hidden a{font-size:clamp(1.6rem,6.5vw,2.25rem);padding:.55rem 0;text-align:center}
.fixed.inset-0.z-40.md\:hidden a[aria-current="page"]{color:hsl(var(--accent))}
.lm-mm-cta{margin-top:1.75rem}
@media (max-width:767px){
  nav.fixed>div{padding-left:1.15rem !important;padding-right:1.15rem !important;gap:.6rem}
  nav .lm-word-sub{letter-spacing:.24em}
}
@media (max-width:374px){nav .lm-word-sub{display:none}nav .lm-word-main{font-size:.7rem}}

/* ---------- 2. Typography & rhythm ---------- */
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
.lm-hero p.text-muted-foreground{max-width:36rem}
section h2.font-display{line-height:1.08}
@media (max-width:767px){
  section.py-24{padding-top:4.75rem;padding-bottom:4.75rem}
  .lm-hero{min-height:auto !important;padding-top:7.5rem !important}
  .lm-hero-title{font-size:2.55rem !important}
}

/* ---------- 3. Buttons: one consistent system ---------- */
.lm-btn,section form button[type="submit"],a.lm-cta{min-height:52px;display:inline-flex !important;align-items:center;justify-content:center;gap:.5rem;font-weight:500;border-radius:0;text-decoration:none}
section form button[type="submit"]{transition:background-color .4s var(--lm-ease),color .4s var(--lm-ease),transform .4s var(--lm-ease),box-shadow .4s}
section form button[type="submit"]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 18px 36px -18px rgba(11,18,32,.55)}
section.bg-foreground form button[type="submit"]{background:var(--lm-gold);color:var(--lm-navy)}
section.bg-foreground form button[type="submit"]:hover:not(:disabled){background:#F1DDA4;color:var(--lm-navy)}
@media (max-width:639px){.lm-hero .lm-btn{width:100%}}

/* ---------- 4. Contrast & forms ---------- */
footer .text-background\/50,section.bg-foreground .text-background\/50{color:hsl(var(--background)/.74) !important}
footer .text-background\/60,section.bg-foreground .text-background\/60{color:hsl(var(--background)/.8) !important}
footer .text-background\/70{color:hsl(var(--background)/.86) !important}
.text-muted-foreground\/60{color:hsl(var(--muted-foreground)) !important}
input::placeholder,textarea::placeholder{color:hsl(var(--muted-foreground)/.85) !important;opacity:1}
section.bg-foreground input::placeholder,section.bg-foreground textarea::placeholder{color:hsl(var(--background)/.7) !important}
input,textarea,select{font-size:16px}
footer h2{font-size:.75rem;line-height:1rem;font-weight:500}

/* ---------- 5. Focus & skip link ---------- */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #B08A4A !important;outline-offset:3px}
.bg-foreground a:focus-visible,.bg-foreground button:focus-visible{outline-color:#F1DDA4 !important}
.lm-skip{position:fixed;left:1rem;top:-4rem;z-index:200;padding:.8rem 1.1rem;background:#0B1220;color:#F9F7F2;font:500 .8rem/1 "Space Grotesk",sans-serif;letter-spacing:.08em;transition:top .25s}
.lm-skip:focus{top:1rem}

/* ---------- 6. Back to top ---------- */
.lm-top{position:fixed;right:1.5rem;bottom:6.25rem;z-index:41;width:48px;height:48px;border-radius:999px;display:flex;align-items:center;justify-content:center;
  background:rgba(11,18,32,.92);color:#F1DDA4;border:1px solid rgba(212,175,105,.45);box-shadow:0 14px 30px -14px rgba(11,18,32,.7);cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .35s,transform .35s,visibility .35s,background-color .3s}
.lm-top.is-on{opacity:1;visibility:visible;transform:none}
.lm-top:hover{background:#8C6628;color:#fff}
.lm-top svg{width:18px;height:18px}
html[dir="rtl"] .lm-top{right:auto;left:1.5rem}
@media (max-width:767px){.lm-top{right:1.5rem;bottom:5.75rem;width:44px;height:44px}}
html.lm-menu-open .lm-top{opacity:0;visibility:hidden}

/* ---------- 7. Blog cards on the home page ---------- */
.lm-post-card img{aspect-ratio:3/2;object-fit:cover;width:100%;height:100%}
.lm-post-meta{display:flex;gap:.6rem;align-items:center}

/* ---------- 8. Sector cards (were "example case studies") ---------- */
.lm-sector-note{font-style:italic}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}
/* Arabic pages use their own static menu button/panel */
nav .lm-mm-btn{width:44px !important;height:44px !important;flex:none}
nav .lm-mm-btn>span{height:20px !important}
