/* ============================================================
   Wuthqa Legal — Homepage (foundation layer)
   Hero news-ticker, contact form extensions, mega footer +
   shared homepage utilities. Built strictly on the existing
   design tokens (colors_and_type.css) and wq- vocabulary.
   Loaded after site.css / site-pages.css / en.css.
   ============================================================ */

/* ---- Shared homepage helpers ------------------------------ */
.wq-learn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ar); font-weight: 600;
  font-size: 14.5px; color: var(--gold-600); background: none; border: none; padding: 0; cursor: pointer;
  transition: gap .25s var(--ease), color .25s var(--ease); }
.wq-learn:hover { gap: 12px; color: var(--teal); }
.wq-learn .wq-learn-ic { display: inline-flex; transition: transform .25s var(--ease); }

/* Soft band background used to alternate sections */
.wq-band-muted { background: var(--surface); }

/* ---- Hero: legal variant + news ticker -------------------- */
/* Reuses .wq-hero / .wq-hero-veil / .wq-hero-inner from site.css.
   Slightly taller copy block + a live "news" ticker pinned under the CTAs. */

/* Fill the first screen: copy is vertically centred while the metrics band
   and the news ticker sit at the bottom edge — everything visible without
   scrolling. The navbar is sticky (78px tall) so the hero takes the rest.
   Scoped to #home so the other heroes (index pages) are untouched. */
/* Subtract both the 78px nav AND the 40px utility bar so the hero (incl. the
   news ticker pinned at its foot) fits on the first screen without scrolling. */
#home.wq-hero { min-height: calc(100vh - 118px); min-height: calc(100dvh - 118px);
  display: flex; flex-direction: column; }
#home .wq-hero-inner { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
  padding-top: 28px; padding-bottom: 18px; }

/* ── Split hero (reference layout): dark copy panel left · bright photo right ── */
#home.wq-hero-split {
  background:
    radial-gradient(80% 120% at 8% 16%, rgba(200, 168, 75, .12), transparent 52%),
    linear-gradient(110deg, #141312 0%, var(--teal-900) 58%);
}
.wq-hero-media { position: absolute; inset: 0 0 0 auto; width: 60%; overflow: hidden; z-index: 0; }
.wq-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Melt the photo's left edge into the dark panel; keep its right side bright */
.wq-hero-media-fade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(95deg, var(--teal-900) 0%, var(--teal-900) 12%, rgba(13, 13, 13, .7) 32%, rgba(13, 13, 13, .12) 58%, transparent 78%),
    linear-gradient(0deg, rgba(13, 13, 13, .45) 0%, transparent 26%);
}
/* Copy hugs the left edge of the centred container (reference layout) */
#home.wq-hero-split .wq-hero-inner { align-self: stretch; align-items: flex-start; text-align: left;
  width: 100%; max-width: var(--container); margin-inline: auto; }
#home.wq-hero-split .wq-hero-copy { max-width: 560px; }
#home .wq-hero-title { font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.16; font-weight: 600; letter-spacing: -.01em; margin-top: 20px; }
#home .wq-hero-title .gold { color: var(--gold); }
#home .wq-hero-lead { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.7; margin-top: 18px; color: rgba(255, 255, 255, .9); max-width: 500px; }
#home .wq-hero-cta { margin-top: 32px; gap: 14px; align-items: center; }
/* Elegant micro trust line in place of the old metrics row — single line, no rule */
.wq-hero-trust { margin-top: 30px; display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-en); font-weight: 500; font-size: 11px; letter-spacing: .03em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58); }
.wq-hero-trust-rule { display: none; }
#home .wq-hero-metrics-inner { padding-top: 14px; padding-bottom: 14px; }

/* Tablet / mobile: the photo becomes a full-bleed backdrop behind the copy */
@media (max-width: 860px) {
  .wq-hero-media { width: 100%; }
  .wq-hero-media-fade {
    background: linear-gradient(180deg, rgba(13, 13, 13, .74) 0%, rgba(13, 13, 13, .84) 58%, rgba(13, 13, 13, .92) 100%);
  }
  #home.wq-hero-split .wq-hero-copy { max-width: 620px; }
  #home .wq-hero-lead { max-width: 560px; }
  .wq-hero-trust { max-width: 560px; white-space: normal; }
}
/* Short screens: drop the full-height lock so the copy is never clipped. */
@media (max-height: 660px) { #home.wq-hero { min-height: 0; } }

/* Cleaner section kickers across the page: drop the section numbers (some
   sections had one, some didn't) and the small gold rule/dash before each
   kicker label, leaving a consistent label-only eyebrow. */
.wq-kicker-idx, .wq-kicker-rule { display: none; }

/* ---- Arabic (RTL) page only -------------------------------------
   The Arabic page (root home.html) loads the base RTL stylesheets but NOT
   en.css, so headings/body already use the Arabic font. A few homepage
   components opt into the Latin font (var(--font-en)) for numerals/inputs;
   restore the Arabic font for those under [dir="rtl"] so Arabic labels read
   correctly. Numeric-only elements (stats, ticker dates) keep font-en. */
[dir="rtl"] .wq-rz-fld > .lb,
[dir="rtl"] .wq-rz-input,
[dir="rtl"] .wq-rz-select,
[dir="rtl"] .wq-rz-yn-btn,
[dir="rtl"] .wq-rz-chip,
[dir="rtl"] .wq-mada-chip,
[dir="rtl"] .wq-dd-ex,
[dir="rtl"] .wq-dd-field input,
[dir="rtl"] .wq-dd-metric { font-family: var(--font-ar); }

.wq-hero-eyebrow-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en);
  font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold); background: rgba(165,149,107,.14); border: 1px solid rgba(165,149,107,.4);
  padding: 6px 14px; border-radius: var(--r-full); }

.wq-ticker { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(48,69,70,.55); backdrop-filter: blur(6px); }
.wq-ticker-inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; height: 56px;
  display: flex; align-items: center; gap: 18px; overflow: hidden; }
.wq-ticker-tag { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-family: var(--font-en);
  font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-900);
  background: var(--gold); padding: 6px 13px; border-radius: var(--r-full); }
.wq-ticker-tag .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-900);
  box-shadow: 0 0 0 0 rgba(48,69,70,.6); animation: wqPulse 1.8s infinite; }
@keyframes wqPulse { 0% { box-shadow: 0 0 0 0 rgba(48,69,70,.55); } 70% { box-shadow: 0 0 0 7px rgba(48,69,70,0); } 100% { box-shadow: 0 0 0 0 rgba(48,69,70,0); } }
.wq-ticker-viewport { position: relative; flex: 1; overflow: hidden; height: 56px; }
/* LTR ticker: anchor left and scroll leftward so each item reads from its start */
.wq-ticker-track { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 56px;
  height: 56px; white-space: nowrap; animation: wqTicker 32s linear infinite; }
.wq-ticker:hover .wq-ticker-track { animation-play-state: paused; }
.wq-ticker-item { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9);
  font-size: 14.5px; }
.wq-ticker-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.wq-ticker-item time { font-family: var(--font-en); font-size: 12.5px; color: var(--gold); font-weight: 600; }
@keyframes wqTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Contact form: doc fields (Company + Topic select) ---- */
.wq-contact-form .wq-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wq-contact-form .wq-form-field { display: flex; flex-direction: column; gap: 7px; color: rgba(255,255,255,.84);
  font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.wq-contact-form .wq-form-field > span { padding-inline: 2px; }
.wq-contact-form select { width: 100%; font-family: var(--font-ar); font-size: 15px; padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); background: rgba(255,255,255,.06); color: #fff;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a89a78' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
  transition: border-color .25s var(--ease); }
.wq-contact-form select:focus { outline: none; border-color: var(--gold); }
.wq-contact-form select.placeholder { color: rgba(255,255,255,.45); }
.wq-contact-form select option { color: #111; }

/* Contact form as dark glass to match the theme (home only) */
.wq-contact-form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wq-contact-form input, .wq-contact-form textarea {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff; }
.wq-contact-form input::placeholder, .wq-contact-form textarea::placeholder { color: rgba(255,255,255,.45); }
.wq-contact-form input:focus, .wq-contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.wq-contact-form .wq-btn:disabled { opacity: .62; cursor: wait; transform: none; }
.wq-form-error { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: var(--r-md);
  color: #ffe5df; background: rgba(157, 45, 24, .22); border: 1px solid rgba(255, 147, 124, .38);
  font-size: 12.5px; line-height: 1.55; }
.wq-form-error [data-lucide], .wq-form-error svg { flex-shrink: 0; margin-top: 1px; }
.wq-contact-sent { color: #fff; }
.wq-contact-sent h3 { color: #fff; }
.wq-contact-sent p { color: rgba(255,255,255,.7); }

/* ---- Mega footer (per doc: offices, links, social, Vision 2030, newsletter, legal) ---- */
.wq-mega-footer { background: #1c1b19; color: #fff; }
.wq-mega-top { max-width: var(--container); margin: 0 auto; padding: 72px 32px 48px;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 48px; }
.wq-mf-brand .wq-footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wq-mf-brand .wq-footer-logo img { width: 50px; height: 50px; border-radius: var(--r-md); object-fit: contain; }
.wq-mf-brand .wq-footer-logo span { font-weight: 700; font-size: 20px; color: #fff; }
.wq-mf-brand p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.85; max-width: 360px; margin-bottom: 24px; }
.wq-mf-offices { display: flex; flex-direction: column; gap: 16px; }
.wq-mf-office { display: flex; gap: 12px; align-items: flex-start; }
.wq-mf-office .ic { width: 40px; height: 40px; border-radius: var(--r-md); background: rgba(165,149,107,.18);
  color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wq-mf-office .ti { font-weight: 700; font-size: 14.5px; color: #fff; }
.wq-mf-office .ad { font-size: 13.5px; color: rgba(255,255,255,.7); line-height: 1.7; margin-top: 2px; }
.wq-mf-office-map { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--gold);
  transition: color .25s var(--ease), gap .25s var(--ease); }
.wq-mf-office-map:hover { color: #fff; gap: 9px; }
.wq-mf-col h5 { font-weight: 700; font-size: 15px; color: var(--gold); margin-bottom: 18px; letter-spacing: .01em; }
.wq-mf-col a { display: block; font-family: var(--font-ar); font-size: 14.5px; color: rgba(255,255,255,.78);
  padding: 6px 0; transition: color .25s var(--ease); }
.wq-mf-col a:hover { color: var(--gold); }

/* Newsletter subscribe (footer) */
.wq-mf-news h5 { font-weight: 700; font-size: 15px; color: var(--gold); margin-bottom: 14px; }
.wq-mf-news p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.wq-mf-sublabel { display: block; margin-bottom: 7px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 600; }
.wq-mf-subform { display: flex; gap: 8px; }
.wq-mf-subform input { flex: 1; min-width: 0; font-family: var(--font-ar); font-size: 14px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-md); background: rgba(255,255,255,.06); color: #fff; }
.wq-mf-subform input::placeholder { color: rgba(255,255,255,.5); }
.wq-mf-subform input:focus { outline: none; border-color: var(--gold); }
.wq-mf-subbtn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; border: none; border-radius: var(--r-md); background: var(--gold); color: #17140f; cursor: pointer;
  transition: background .25s var(--ease); }
.wq-mf-subbtn:hover { background: var(--gold-600); }
.wq-mf-subbtn:disabled { opacity: .58; cursor: wait; }
.wq-mf-subbtn:disabled [data-lucide], .wq-mf-subbtn:disabled svg { animation: wqSpin 1s linear infinite; }
@keyframes wqSpin { to { transform: rotate(360deg); } }
.wq-mf-subok { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 14px; font-weight: 600; margin-top: 4px; }
.wq-mf-suberr { margin-top: 8px; color: #ffc8bc; font-size: 12px; line-height: 1.5; }

/* Social + certificate / Vision 2030 row */
.wq-mf-social { display: flex; gap: 10px; margin-top: 22px; }
.wq-mf-social a { width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.82);
  transition: all .25s var(--ease); }
.wq-mf-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(165,149,107,.1); }

.wq-mf-badges { max-width: var(--container); margin: 0 auto; padding: 28px 32px;
  border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; }
.wq-mf-badge { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.62); }
.wq-mf-badge .bx { width: 54px; height: 54px; border-radius: var(--r-md); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0; overflow: hidden; }
.wq-mf-badge .bx img { width: 100%; height: 100%; object-fit: contain; padding: 8px; filter: brightness(0) invert(1); opacity: .9; }
.wq-mf-badge .lb { font-size: 12px; line-height: 1.5; max-width: 130px; }
.wq-mf-badge .lb strong { display: block; color: #fff; font-size: 13px; font-weight: 700; }

.wq-mf-bar { border-top: 1px solid rgba(255,255,255,.12); }
.wq-mf-bar-inner { max-width: var(--container); margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: rgba(255,255,255,.55); font-size: 13px; }
.wq-mf-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.wq-mf-legal a { color: rgba(255,255,255,.6); font-size: 13px; transition: color .25s var(--ease); }
.wq-mf-legal a:hover { color: var(--gold); }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 980px) {
  .wq-mega-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .wq-ticker-tag span.txt { display: none; }
}
@media (max-width: 700px) {
  .wq-contact-form .wq-field-row { grid-template-columns: 1fr; }
  .wq-mega-top { grid-template-columns: 1fr; gap: 32px; }
  .wq-mf-bar-inner { flex-direction: column; align-items: flex-start; }
  .wq-ticker-inner { padding: 0 18px; }
}

/* ============================================================
   Palette — luxurious Black & Gold (default theme, data-theme="gold")
   Swaps the teal token family to a near-black scale and enriches the
   gold accent: deep surfaces (hero, stats, footer, contact) go black
   while the light content sections stay white and gold leads the
   accents. Toggle to "default" for the classic teal look.
   ============================================================ */
:root[data-theme="gold"] {
  --teal:      #1a1a1a;   /* near-black — headings, icons, buttons, links */
  --teal-700:  #333333;   /* hover / pressed */
  --teal-900:  #0d0d0d;   /* deepest — hero, stats band, footer, contact */
  --teal-tint: rgba(200, 168, 75, .13);  /* faint gold — icon-chip / tile bg */
  --gold:      #c8a84b;   /* richer metallic gold */
  --gold-600:  #ab8c39;   /* gold hover / pressed */
  --gold-tint: rgba(200, 168, 75, .15);
  --surface:   #f7f5ef;   /* near-white warm light sections */
}

/* Surfaces painted with literal rgba (no token) need a direct override. */
[data-theme="gold"] .wq-hero-veil {
  background: linear-gradient(105deg, rgba(10,10,10,.95) 0%, rgba(12,12,12,.92) 55%, rgba(15,15,15,.9) 100%); }
[data-theme="gold"] .wq-ticker { background: rgba(12,12,12,.62); }

/* ============================================================
   Utility top bar (above the main nav) — language · social · downloads
   ============================================================ */
/* Utility bar + nav both stay pinned while scrolling (utility on top, nav below it) */
.wq-utility { position: sticky; top: 0; z-index: 70; background: var(--teal-900); color: rgba(255,255,255,.85); }
.wq-nav { top: 40px; }
.wq-utility-inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; height: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wq-utility-left, .wq-utility-right { display: flex; align-items: center; gap: 20px; }
.wq-utility-lang { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-en);
  font-weight: 600; font-size: 12.5px; color: rgba(255,255,255,.82); transition: color .2s var(--ease); }
.wq-utility-lang:hover { color: var(--gold); }
.wq-utility-social { display: inline-flex; align-items: center; gap: 13px; }
.wq-utility-social a { display: inline-flex; color: rgba(255,255,255,.72); transition: color .2s var(--ease); }
.wq-utility-social a:hover { color: var(--gold); }
.wq-utility-social svg { width: 15px; height: 15px; }

.wq-utility-dl { position: relative; }
.wq-utility-dlbtn { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer;
  font-family: var(--font-en); font-weight: 600; font-size: 12.5px; color: rgba(255,255,255,.82);
  padding: 8px 0; transition: color .2s var(--ease); }
.wq-utility-dlbtn:hover { color: var(--gold); }
.wq-utility-dlmenu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 90; width: 300px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
  padding: 8px; animation: wqDdIn .2s var(--ease); }
.wq-dl-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md);
  color: var(--fg); transition: background .18s var(--ease); }
.wq-dl-item:hover { background: var(--surface); }
.wq-dl-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r-md); background: var(--teal-tint);
  color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.wq-dl-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wq-dl-tx .t { font-weight: 600; font-size: 14px; color: var(--fg); line-height: 1.3; }
.wq-dl-tx .m { font-family: var(--font-en); font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.wq-dl-item > svg, .wq-dl-item > .lucide { color: var(--gold); flex-shrink: 0; }

/* Main-nav page links */
.wq-nav .wq-nav-links { display: flex; align-items: center; gap: 17px; margin-inline-start: auto; }
.wq-nav .wq-nav-link { font-size: 14.5px; white-space: nowrap; }
.wq-nav-link.active { color: var(--teal); }
.wq-nav-link.active::after { width: 100%; }
/* Contact Us rendered as a button */
.wq-nav-cta { display: inline-flex; align-items: center; white-space: nowrap; background: var(--gold); color: #17140f;
  font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: .01em;
  padding: 9px 20px; border-radius: var(--r-full); margin-inline-start: 4px;
  transition: background .25s var(--ease), transform .2s var(--ease); }
.wq-nav-cta:hover { background: var(--gold-600); color: #17140f; transform: translateY(-1px); }

/* ============================================================
   Mobile navigation — hamburger + slide-down panel (≤980px)
   The desktop links are hidden ≤980px; this restores navigation
   on phone/tablet. Black & Gold: near-black panel, gold accents.
   ============================================================ */
.wq-nav-burger { display: none; /* shown ≤980px via the media query below */
  margin-inline-start: auto; width: 44px; height: 44px; padding: 0;
  background: none; border: none; cursor: pointer; border-radius: var(--r-md);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.wq-nav-burger span { display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--gold); transition: transform .26s var(--ease), opacity .2s var(--ease); }
.wq-nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wq-nav-burger.open span:nth-child(2) { opacity: 0; }
.wq-nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dim the page behind the panel; click to dismiss. Sits below the
   nav (z 60) + utility bar (z 70) so the close button stays usable. */
.wq-mobile-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease); }
.wq-mobile-backdrop.open { opacity: 1; visibility: visible; }

/* Panel anchored just under the nav (utility 40px + nav 78px = 118px). */
.wq-mobile-menu { position: fixed; top: 118px; inset-inline: 0; z-index: 65;
  display: flex; flex-direction: column;
  padding: 12px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: calc(100vh - 118px); overflow-y: auto;
  background: var(--teal-900); border-top: 1px solid rgba(200, 168, 75, .28); box-shadow: var(--shadow-xl);
  transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s var(--ease); }
.wq-mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }

.wq-mobile-link { font-family: var(--font-ar); font-size: 16px; font-weight: 500; color: rgba(255,255,255,.86);
  padding: 15px 12px; border-bottom: 1px solid rgba(255,255,255,.09);
  border-inline-start: 3px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.wq-mobile-link:hover { color: var(--gold); background: rgba(200, 168, 75, .07); }
.wq-mobile-link.active { color: var(--gold); border-inline-start-color: var(--gold); }
.wq-mobile-cta { margin-top: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #17140f; font-family: var(--font-en); font-weight: 600; font-size: 15px;
  letter-spacing: .01em; padding: 14px 22px; border-radius: var(--r-full);
  transition: background .25s var(--ease); }
.wq-mobile-cta:hover { background: var(--gold-600); color: #17140f; }

/* ============================================================
   Floating demo-controls box (client presentation only)
   ============================================================ */
.wq-demo { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wq-demo-fab { width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform .2s var(--ease), background .2s var(--ease); }
.wq-demo-fab:hover { transform: translateY(-2px); background: var(--gold-600); }
.wq-demo-panel { width: 256px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); padding: 16px; animation: wqDdIn .22s var(--ease); }
.wq-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border-soft); }
.wq-demo-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en);
  font-weight: 700; font-size: 13.5px; color: var(--teal); }
.wq-demo-x { background: none; border: none; cursor: pointer; color: var(--fg-3); display: inline-flex; padding: 2px; }
.wq-demo-x:hover { color: var(--teal); }
.wq-demo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.wq-demo-lb { font-family: var(--font-en); font-weight: 600; font-size: 13px; color: var(--fg); }
.wq-demo-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-full); cursor: pointer; padding: 4px 12px 4px 5px;
  transition: border-color .2s var(--ease); }
.wq-demo-toggle:hover { border-color: var(--teal); }
.wq-demo-toggle .knob { width: 16px; height: 16px; border-radius: 50%; background: var(--fg-3); transition: background .2s var(--ease); }
.wq-demo-toggle.on .knob { background: var(--gold); }
.wq-demo-toggle .val { font-family: var(--font-en); font-weight: 600; font-size: 12.5px; color: var(--fg-2); }
.wq-demo-toggle.on .val { color: var(--teal); }

/* Utility bar / page links responsive */
@media (max-width: 980px) {
  .wq-nav .wq-nav-links { display: none; }
  .wq-nav-burger { display: inline-flex; }
  .wq-utility-inner { padding: 0 18px; }
}
/* Belt-and-braces: never render the mobile panel above the breakpoint, even
   if a resize event was missed while it was open (JS also closes it on resize). */
@media (min-width: 981px) {
  .wq-mobile-menu, .wq-mobile-backdrop { display: none; }
}

/* ============================================================
   "Rich backgrounds" demo toggle (data-rich="on")
   Layers a subtle dot texture + soft gold/teal corner glows onto
   the light content sections so the page reads less empty. The
   glows use the tint tokens, so they re-tint under the navy theme.
   Dark bands (hero, Numbers) and the footer are left untouched.
   ============================================================ */
:root[data-rich="on"] {
  --rich-warm: rgba(165, 149, 107, .26);   /* gold wash */
  --rich-cool: rgba(88, 126, 128, .20);    /* teal wash */
}
:root[data-rich="on"][data-theme="gold"] { --rich-warm: rgba(200, 168, 75, .22); --rich-cool: rgba(26, 26, 26, .05); }

/* Soft off-centre colour washes — no tiled texture, no watermark. */
:root[data-rich="on"] section:not(.wq-hero):not(.wq-numbers)::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(900px 600px at 96% -12%, var(--rich-warm), transparent 56%),
    radial-gradient(820px 560px at -10% 112%, var(--rich-cool), transparent 56%);
}
/* Mirror the wash on alternating sections so the page never looks repetitive. */
:root[data-rich="on"] section:not(.wq-hero):not(.wq-numbers):nth-of-type(odd)::before {
  background-image:
    radial-gradient(860px 560px at 4% -12%, var(--rich-cool), transparent 56%),
    radial-gradient(900px 600px at 108% 110%, var(--rich-warm), transparent 56%);
}

/* ============================================================
   Wordmark logo — "Wuthqa Consultancy" (replaces the image logo)
   ============================================================ */
.wq-nav-wordmark { display: inline-flex; flex-direction: row; align-items: center; gap: 11px;
  line-height: 1.05; text-decoration: none; }
.wq-brand-logo { width: 42px; height: 42px; flex-shrink: 0; display: block; }
.wq-nav-wordmark .wm-text { display: inline-flex; flex-direction: column; align-items: flex-end; }
.wq-nav-wordmark .wm-name { font-family: var(--font-en); font-weight: 700; font-size: 20px;
  letter-spacing: .01em; color: var(--teal); white-space: nowrap; }
.wq-nav-wordmark .wm-name .wm-light { font-weight: 400; }
/* Slogan sits under the name, aligned to its right edge */
.wq-nav-wordmark .wm-sub { margin-top: 5px; font-family: var(--font-en); font-weight: 600; font-size: 9px;
  letter-spacing: .17em; text-transform: uppercase; color: var(--gold-600); white-space: nowrap; }

/* Footer wordmark mirrors the top-bar one (name white on the dark footer).
   Selectors are scoped to .wq-mf-brand so they beat the generic
   `.wq-mf-brand .wq-footer-logo span` rule above. */
.wq-footer-wordmark { flex-direction: row; align-items: center; gap: 12px; }
.wq-footer-wordmark .wm-text { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.06; }
.wq-mf-brand .wq-footer-wordmark .wm-name { font-family: var(--font-en); font-weight: 700; font-size: 23px;
  letter-spacing: .01em; color: #fff; line-height: 1; }
.wq-mf-brand .wq-footer-wordmark .wm-sub { font-family: var(--font-en); font-weight: 600; font-size: 10px;
  letter-spacing: .36em; text-transform: uppercase; color: var(--gold); margin-top: 4px; line-height: 1; }
