/* =================================================================
   Cleopatra Queen — Pharaoh design system
   v2 (premium redesign, CSS + JS only — no PHP changes)

   Tokens → typography → ornaments → layout primitives →
   components (header, hero, cards, sections, footer) → motion.
   ================================================================= */

/* ---------- TOKENS ---------- */
:root {
    /* Crown blue — sampled from Nefertiti's crown in the logo */
    --cq-navy-50:  #eef1fa;
    --cq-navy-100: #d8def2;
    --cq-navy-200: #adbae0;
    --cq-navy-300: #7d8fcc;
    --cq-navy-400: #4d65b4;
    --cq-navy-500: #2c4ba8;   /* crown highlight */
    --cq-navy-600: #243f93;   /* crown body */
    --cq-navy-700: #1e3a8a;   /* "CLEOPATRA QUEEN" wordmark */
    --cq-navy-800: #15295c;   /* crown shadow */
    --cq-navy-900: #0c1228;   /* logo outline */

    /* Gold leaf — sampled from the crown trim */
    --cq-gold-50:  #fdf6e3;
    --cq-gold-100: #f9e9b9;
    --cq-gold-200: #f1d278;
    --cq-gold-300: #eecf6e;   /* crown highlight */
    --cq-gold-400: #d4a335;   /* crown trim mid */
    --cq-gold-500: #b88322;
    --cq-gold-600: #9c6c1c;   /* crown shadow */

    /* Sand / papyrus / champagne */
    --cq-cream-50:  #faf4e4;   /* warmer ivory base */
    --cq-cream-100: #f3e7c5;
    --cq-cream-200: #e7d29a;
    --cq-papyrus:   #f5e9c8;
    --cq-champagne: #efe1b5;

    /* Onyx — luxury deep base for contrast with gold */
    --cq-onyx-700: #1a140c;
    --cq-onyx-800: #120e07;
    --cq-onyx-900: #0a0805;

    /* Coral — sampled from the Q-tail and "Walaa Hegazi" signature */
    --cq-coral-100: #fbe1d2;
    --cq-coral-300: #ed8e5a;
    --cq-coral-400: #e16322;   /* Q-tail highlight */
    --cq-coral-500: #d4582a;   /* signature mid */
    --cq-coral-600: #b94816;   /* signature shadow */

    /* Crown stripe accents — used in ornaments */
    --cq-crimson-500: #c43028;
    --cq-emerald-500: #2a9650;

    /* Ink */
    --cq-ink:       #131f4d;
    --cq-muted:     #5b6584;
    --cq-line:      #e6dcc6;

    /* Gold leaf gradient — re-used everywhere */
    --cq-gradient-gold: linear-gradient(135deg, #fbe28a 0%, #e8bf47 25%, #d4a03c 50%, #b88322 75%, #e8bf47 100%);
    --cq-gradient-gold-rich: linear-gradient(135deg, #f9d976 0%, #d4a03c 40%, #8d621a 75%, #d4a03c 100%);
    --cq-gradient-gold-soft: linear-gradient(135deg, #f9ebc3 0%, #e8bf47 50%, #d4a03c 100%);
    --cq-gradient-onyx-gold: radial-gradient(120% 80% at 50% 0%, rgba(212,160,60,.25), transparent 65%), linear-gradient(160deg, #0a0805 0%, #1a140c 50%, #2a200f 100%);
    --cq-gradient-lapis: linear-gradient(160deg, #0c1638 0%, #131f4d 45%, #1e3a8a 100%);
    --cq-gradient-papyrus: linear-gradient(180deg, #faf4e4 0%, #f3e7c5 100%);
    --cq-gradient-champagne: linear-gradient(180deg, #faf4e4 0%, #efe1b5 60%, #f3e7c5 100%);

    /* Spacing rhythm */
    --cq-space-section: clamp(5rem, 9vw, 9rem);

    /* Motion */
    --cq-ease: cubic-bezier(.2, .65, .2, 1);
    --cq-ease-out: cubic-bezier(.16, 1, .3, 1);
    --cq-dur-fast: 220ms;
    --cq-dur: 480ms;
    --cq-dur-slow: 900ms;
}

/* ---------- BASE ---------- */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* ─── Nefertiti blue page ─── */
html, body {
    background:
        radial-gradient(1200px 800px at 50% -200px, rgba(36, 63, 147, .35), transparent 70%),
        linear-gradient(180deg, #15295c 0%, #0c1838 100%);
    color: var(--cq-cream-50);
}
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-feature-settings: 'ss01','cv11'; -webkit-font-smoothing: antialiased; min-height: 100vh; }

/* Subtle gold dust on the deep blue */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(rgba(212, 160, 60, .07) 1px, transparent 1px),
        radial-gradient(rgba(212, 160, 60, .05) 1px, transparent 1px);
    background-size: 7px 7px, 11px 11px;
    background-position: 0 0, 3px 5px;
    opacity: .9;
}
main, .cq-header, .cq-footer, .cq-wa-float, .cq-scroll-progress { position: relative; z-index: 2; }

/* Default text on the blue body */
.cq-section { color: var(--cq-cream-50); }

img { display: block; max-width: 100%; }
::selection { background: var(--cq-gold-300); color: var(--cq-navy-800); }

/* ---------- TYPOGRAPHY ---------- */
.font-display { font-family: 'Cinzel', 'Cormorant Garamond', 'Playfair Display', Georgia, serif; letter-spacing: .04em; }
.font-serif   { font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; letter-spacing: .01em; }
.font-body    { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

.cq-h1 {
    font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 7.6vw, 5.6rem);
    line-height: 1.04;
    letter-spacing: .03em;
}
.cq-h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 3.6vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: .01em;
}
.cq-h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    line-height: 1.2;
}
.cq-eyebrow {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--cq-gold-500);
    display: inline-flex;
    align-items: center;
    gap: .9rem;
}
.cq-eyebrow::before,
.cq-eyebrow::after {
    content: '';
    width: 28px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cq-gold-400), transparent);
}
.cq-eyebrow.left-only::after  { display: none; }
.cq-eyebrow.right-only::before { display: none; }

.cq-lede {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.05rem, 1.3vw, 1.32rem);
    line-height: 1.65;
    color: rgba(19, 31, 77, .82);
    font-style: italic;
}

/* Gold-leaf text */
.cq-gold-text {
    background: var(--cq-gradient-gold);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Cinzel for English; Amiri for Arabic display */
html[dir="rtl"] body { font-family: 'Cairo', 'Tajawal', 'Inter', system-ui, sans-serif; }
html[dir="rtl"] .font-display,
html[dir="rtl"] .cq-h1,
html[dir="rtl"] .cq-h2,
html[dir="rtl"] .cq-h3,
html[dir="rtl"] .cq-eyebrow { font-family: 'Amiri', 'Cairo', serif; letter-spacing: 0; }
html[dir="rtl"] .cq-lede { font-family: 'Amiri', 'Cairo', serif; }
html[dir="rtl"] .cq-eyebrow { letter-spacing: .18em; }

/* ---------- ORNAMENTS ---------- */
.cq-frieze {
    display: block;
    width: 100%;
    height: 24px;
    color: var(--cq-gold-400);
    background: center / contain no-repeat url('/assets/img/ornaments/hieroglyph-row.svg');
    opacity: .85;
}
.cq-frieze-sm { height: 18px; opacity: .7; }
.cq-frieze-lg { height: 30px; }

.cq-divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cq-gold-400) 18%, var(--cq-gold-300) 50%, var(--cq-gold-400) 82%, transparent 100%);
}
.cq-divider-gold-thick {
    height: 3px;
    background: var(--cq-gradient-gold);
    border-radius: 2px;
}
/* Centred decorative divider with lotus motif */
.cq-divider-lotus {
    display: flex; align-items: center; gap: 1rem;
    width: 220px; margin: 0 auto;
    color: var(--cq-gold-400);
}
.cq-divider-lotus::before, .cq-divider-lotus::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.cq-divider-lotus svg { width: 24px; height: 24px; }

/* Eye-of-Horus medallion (used in heading clusters) */
.cq-eye {
    display: inline-block;
    width: 36px; height: 22px;
    color: var(--cq-gold-400);
    background: center / contain no-repeat url('/assets/img/ornaments/eye-of-horus.svg');
}

/* Cartouche — pharaonic name ring */
.cq-cartouche {
    position: relative;
    display: inline-block;
    padding: 1.1rem 2.4rem;
    border: 1.5px solid rgba(212, 160, 60, .6);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.cq-cartouche::before, .cq-cartouche::after {
    content: '';
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--cq-gradient-gold);
    box-shadow: 0 0 0 2px rgba(212, 160, 60, .25);
}
.cq-cartouche::before { left: -7px;  }
.cq-cartouche::after  { right: -7px; }

/* Corner ornament — applied to .cq-frame */
.cq-frame {
    position: relative;
    padding: clamp(1.5rem, 3vw, 3rem);
}
/* Corner bracket ornaments removed from all cards/frames site-wide. */
.cq-frame::before, .cq-frame::after,
.cq-frame > .cq-corner-tl, .cq-frame > .cq-corner-br {
    display: none;
}

/* Wings header banner — used in hero */
.cq-wings {
    width: clamp(180px, 22vw, 280px);
    height: auto;
    color: var(--cq-gold-300);
    opacity: .85;
}

/* Big brand logo at the top of the home hero */
.cq-hero-logo {
    display: block;
    width: clamp(260px, 38vw, 460px);
    height: auto;
    margin-inline: auto;
    filter:
        drop-shadow(0 0 2px rgba(250, 244, 228, 1))
        drop-shadow(0 0 24px rgba(238, 207, 110, .7))
        drop-shadow(0 0 48px rgba(238, 207, 110, .4))
        drop-shadow(0 12px 30px rgba(0, 0, 0, .55));
    animation: cqHeroLogoFloat 6s ease-in-out infinite;
}
@keyframes cqHeroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { .cq-hero-logo { animation: none; } }

/* Papyrus paper section */
.cq-papyrus-bg {
    background:
        radial-gradient(1200px 600px at 50% -100px, rgba(245, 233, 208, .55), transparent 60%),
        var(--cq-gradient-papyrus);
    position: relative;
}
.cq-papyrus-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('/assets/img/ornaments/papyrus-texture.svg');
    background-size: 320px;
    opacity: .35;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Lapis (dark navy) section — kept for variety */
.cq-lapis-bg {
    background: var(--cq-gradient-lapis);
    color: #f7eed9;
    position: relative;
    overflow: hidden;
}
.cq-lapis-bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 20% 0%,  rgba(212,160,60,.18), transparent 65%),
        radial-gradient(900px 500px at 80% 100%, rgba(45, 76, 162, .35), transparent 60%);
    pointer-events: none;
}

/* Onyx + gold section — the luxury dark backdrop */
.cq-onyx-bg {
    background: var(--cq-gradient-onyx-gold);
    color: var(--cq-gold-200);
    position: relative;
    overflow: hidden;
}
.cq-onyx-bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(1000px 500px at 50% 0%,   rgba(212,160,60,.18), transparent 60%),
        radial-gradient(900px 500px at 100% 100%, rgba(232,191,71,.10), transparent 55%);
    pointer-events: none;
}
.cq-onyx-bg::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url('/assets/img/ornaments/papyrus-texture.svg');
    background-size: 400px;
    opacity: .08;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 600;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    transition: transform var(--cq-dur-fast) var(--cq-ease), box-shadow var(--cq-dur-fast) var(--cq-ease), background var(--cq-dur-fast) var(--cq-ease), color var(--cq-dur-fast) var(--cq-ease);
    letter-spacing: .04em;
    text-transform: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-size: .92rem;
}
.btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform .8s var(--cq-ease);
    z-index: -1;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }

/* Primary = gold leaf (luxury default) */
.btn-primary  {
    background: var(--cq-gradient-gold);
    color: var(--cq-onyx-800);
    box-shadow: 0 14px 30px -10px rgba(212, 160, 60, .55), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(141, 98, 26, .35);
    border: 1px solid rgba(184, 131, 34, .55);
    font-weight: 700;
}
.btn-primary:hover  { box-shadow: 0 18px 40px -10px rgba(212, 160, 60, .75), inset 0 1px 0 rgba(255,255,255,.55); }

/* Accent button — same gold (alias for compat) */
.btn-accent {
    background: var(--cq-gradient-gold);
    color: var(--cq-onyx-800);
    box-shadow: 0 14px 30px -10px rgba(212, 160, 60, .55), inset 0 1px 0 rgba(255,255,255,.55);
    border: 1px solid rgba(184, 131, 34, .55);
    font-weight: 700;
}
.btn-accent:hover { box-shadow: 0 18px 40px -10px rgba(212, 160, 60, .75), inset 0 1px 0 rgba(255,255,255,.55); }

/* Dark luxury alternative */
.btn-dark { background: var(--cq-onyx-800); color: var(--cq-gold-300); border: 1px solid rgba(212,160,60,.5); }
.btn-dark:hover { background: var(--cq-onyx-700); color: var(--cq-gold-200); }

/* Coral — pulled from the Q-tail / signature */
.btn-coral {
    background: linear-gradient(135deg, var(--cq-coral-400) 0%, var(--cq-coral-500) 50%, var(--cq-coral-600) 100%);
    color: #fff;
    border: 1px solid rgba(185, 72, 22, .4);
    box-shadow: 0 14px 30px -10px rgba(225, 99, 34, .5), inset 0 1px 0 rgba(255,255,255,.35);
    font-weight: 700;
}
.btn-coral:hover { box-shadow: 0 18px 40px -10px rgba(225, 99, 34, .7); }

.text-coral { color: var(--cq-coral-500); }
.cq-divider-coral {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cq-coral-500) 50%, transparent 100%);
}

.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .55); }
.btn-whatsapp:hover { background: #1ebe57; box-shadow: 0 14px 32px -10px rgba(37, 211, 102, .7); }

.btn-outline  {
    border: 1.5px solid var(--cq-gold-400);
    color: var(--cq-navy-700);
    background: transparent;
}
.btn-outline:hover  { background: var(--cq-gold-400); color: var(--cq-navy-800); }

.btn-ghost {
    color: var(--cq-navy-700);
    background: transparent;
    border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--cq-gold-500); border-color: rgba(212,160,60,.3); }

.btn-lg { padding: 1.1rem 2.2rem; font-size: 1rem; }

/* ---------- HEADER ---------- */
.cq-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 60;
    transition: background var(--cq-dur) var(--cq-ease),
                box-shadow var(--cq-dur) var(--cq-ease),
                border-color var(--cq-dur) var(--cq-ease),
                padding var(--cq-dur) var(--cq-ease);
    background: rgba(251, 247, 238, 0);
    border-bottom: 1px solid transparent;
}
.cq-header .cq-header-inner { transition: padding var(--cq-dur) var(--cq-ease); }
/* The header needs more room than the 80rem content container so all the nav
   items sit clear of the language + auth controls. */
.cq-header .cq-container { max-width: 100rem; }

/* On-hero (transparent) state: white text */
.cq-header[data-state="hero"]                { color: #fbf7ee; }
.cq-header[data-state="hero"] .cq-nav a       { color: rgba(251, 247, 238, .92); }
.cq-header[data-state="hero"] .cq-nav a:hover { color: var(--cq-gold-300); }
.cq-header[data-state="hero"] .cq-lang-btn    { color: rgba(251, 247, 238, .9); }
.cq-header[data-state="hero"] .cq-burger      { color: #fbf7ee; }
.cq-header[data-state="hero"] .cq-logo-mark img { background: transparent; }

/* Scrolled / solid state — frosted dark blue with gold underline */
.cq-header[data-state="solid"] {
    background: rgba(21, 41, 92, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(212, 160, 60, .35);
    box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .55);
    color: var(--cq-cream-50);
}
.cq-header[data-state="solid"]::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cq-gold-400) 50%, transparent 100%);
}
.cq-header[data-state="solid"] .cq-nav a       { color: var(--cq-cream-50); }
.cq-header[data-state="solid"] .cq-nav a:hover { color: var(--cq-gold-300); }
.cq-header[data-state="solid"] .cq-lang-btn    { color: var(--cq-cream-50); }
.cq-header[data-state="solid"] .cq-burger      { color: var(--cq-cream-50); }
.cq-header[data-state="solid"] .cq-header-inner { padding-top: .85rem; padding-bottom: .85rem; }
.cq-header[data-state="solid"] .cq-logo-mark img { transform: scale(.92); }

/* Logo — ivory + gold halo so the dark navy crown reads on dark backgrounds */
.cq-logo-mark { display: inline-flex; align-items: center; }
.cq-logo-mark img {
    height: 56px; width: auto;
    transition: transform var(--cq-dur) var(--cq-ease), filter var(--cq-dur) var(--cq-ease);
    filter:
        drop-shadow(0 0 1.5px rgba(250, 244, 228, 1))
        drop-shadow(0 0 18px rgba(238, 207, 110, .6))
        drop-shadow(0 0 36px rgba(238, 207, 110, .35))
        drop-shadow(0 6px 22px rgba(0, 0, 0, .5));
}
@media (max-width: 640px) { .cq-logo-mark img { height: 40px; } }

/* Header auth CTA — compact on phones so logo + controls + burger all fit */
.cq-btn-auth { padding: .7rem 1.4rem; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 640px) { .cq-btn-auth { padding: .55rem 1rem; letter-spacing: .16em; } }

/* Over the home hero the hero itself carries the big glowing brand mark, so
   the header stays clean; the small mark fades in as the page scrolls and
   the hero logo scrolls away (brand hand-off). Pages without a hero go
   data-state="solid" on load, so the mark is always there. */
.cq-header .cq-logo-mark {
    /* visibility waits for the fade-out, so the hidden mark leaves the tab order */
    transition: opacity var(--cq-dur) var(--cq-ease), transform var(--cq-dur) var(--cq-ease),
                visibility 0s linear var(--cq-dur);
}
.cq-header[data-state="hero"] .cq-logo-mark {
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
}
.cq-header[data-state="solid"] .cq-logo-mark { visibility: visible; transition-delay: 0s; }

/* Nav link gold underline */
.cq-nav {
    flex-wrap: nowrap;
}
.cq-nav a {
    position: relative;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .55rem 0;
    white-space: nowrap;
    transition: color var(--cq-dur-fast);
}
@media (min-width: 1536px) { .cq-nav a, .cq-nav-trigger { font-size: .82rem; letter-spacing: .1em; } }
@media (min-width: 1700px) { .cq-nav a, .cq-nav-trigger { font-size: .86rem; letter-spacing: .12em; } }
.cq-nav a::after {
    content: '';
    position: absolute; left: 50%; bottom: 0;
    width: 0; height: 1.5px;
    background: var(--cq-gradient-gold);
    transition: width var(--cq-dur) var(--cq-ease), left var(--cq-dur) var(--cq-ease);
}
.cq-nav a:hover::after,
.cq-nav a.is-active::after { width: 100%; left: 0; }

html[dir="rtl"] .cq-nav a { letter-spacing: .08em; font-family: 'Amiri', 'Cairo', serif; }

/* Vertical separator between language switcher and auth buttons */
.cq-vsep {
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 160, 60, .55) 50%, transparent 100%);
    margin-inline: .4rem;
}

/* Auxiliary nav links (Sign in) — same style as nav links */
.cq-nav-aux {
    font-family: 'Cinzel', serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    transition: color var(--cq-dur-fast);
}
.cq-header[data-state="hero"]  .cq-nav-aux         { color: rgba(251, 247, 238, .92); }
.cq-header[data-state="hero"]  .cq-nav-aux:hover   { color: var(--cq-gold-300); }
.cq-header[data-state="solid"] .cq-nav-aux         { color: var(--cq-cream-50); }
.cq-header[data-state="solid"] .cq-nav-aux:hover   { color: var(--cq-gold-300); }

/* User avatar dropdown trigger */
.cq-user-btn { transition: filter var(--cq-dur-fast); }
.cq-user-btn:hover { filter: brightness(1.08); }
.cq-header[data-state="hero"]  .cq-user-btn { color: rgba(251, 247, 238, .92); }
.cq-header[data-state="solid"] .cq-user-btn { color: var(--cq-cream-50); }

/* ─── "Trips inside Egypt" nav dropdown ─── */
.cq-nav-item { position: relative; }
.cq-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .55rem 0;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: 0;
    transition: color var(--cq-dur-fast);
}
html[dir="rtl"] .cq-nav-trigger { letter-spacing: .08em; font-family: 'Amiri', 'Cairo', serif; }
.cq-header[data-state="hero"]  .cq-nav-trigger        { color: rgba(251, 247, 238, .92); }
.cq-header[data-state="hero"]  .cq-nav-trigger:hover  { color: var(--cq-gold-300); }
.cq-header[data-state="solid"] .cq-nav-trigger        { color: var(--cq-cream-50); }
.cq-header[data-state="solid"] .cq-nav-trigger:hover  { color: var(--cq-gold-300); }
.cq-nav-caret { transition: transform var(--cq-dur) var(--cq-ease); opacity: .75; }
.cq-nav-item.is-open .cq-nav-caret { transform: rotate(180deg); }

/* Floating panel. A padding-top on the wrap bridges the gap so hover doesn't drop. */
.cq-nav-panel-wrap {
    position: absolute;
    top: 100%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding-top: .7rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--cq-dur) var(--cq-ease);
    z-index: 60;
}
html[dir="rtl"] .cq-nav-panel-wrap { transform: translateX(50%); }
/* Open on hover (desktop) or focus (keyboard); click also toggles for touch. */
.cq-nav-item:hover        .cq-nav-panel-wrap,
.cq-nav-item:focus-within .cq-nav-panel-wrap,
.cq-nav-item.is-open      .cq-nav-panel-wrap {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.cq-nav-item:hover .cq-nav-caret,
.cq-nav-item:focus-within .cq-nav-caret { transform: rotate(180deg); }
.cq-nav-panel {
    background: var(--cq-navy-800);
    border: 1px solid rgba(232, 191, 71, .28);
    border-radius: .6rem;
    padding: .5rem;
    box-shadow: 0 24px 50px -18px rgba(6, 10, 26, .8);
}
.cq-nav-panel a {
    display: block;
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--cq-cream-50);
    padding: .6rem .85rem;
    border-radius: .4rem;
    white-space: nowrap;
    transition: background var(--cq-dur-fast), color var(--cq-dur-fast);
}
.cq-nav-panel a:hover { background: rgba(232, 191, 71, .12); color: var(--cq-gold-300); }
.cq-nav-panel .cq-nav-panel-all {
    color: var(--cq-gold-300);
    font-family: 'Cinzel', serif;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(232, 191, 71, .2);
    border-radius: .4rem .4rem 0 0;
    margin-bottom: .25rem;
}

/* Mobile nav: collapsible "Trips inside Egypt" group */
.cq-m-group-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: .85rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    padding: .9rem 1rem;
    color: var(--cq-navy-700);
    border-top: 1px solid rgba(230, 220, 198, .5);
    background: none;
    cursor: pointer;
}
.cq-m-group.is-open .cq-nav-caret { transform: rotate(180deg); }
.cq-m-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--cq-dur) var(--cq-ease);
    background: rgba(21, 41, 92, .04);
}
.cq-m-group.is-open .cq-m-sub { max-height: 520px; }
.cq-m-sub a {
    padding-inline-start: 2rem !important;
    font-size: .78rem !important;
    letter-spacing: .16em !important;
}

/* ─── Language modal ─── */
.cq-lang-btn .fi { width: 1.4em; height: 1.05em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }

.cq-lang-modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: cqFadeIn .25s var(--cq-ease-out);
}
.cq-lang-modal[hidden] { display: none; }
@keyframes cqFadeIn { from { opacity: 0; } to { opacity: 1; } }

.cq-lang-backdrop {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(10, 8, 5, .72), rgba(5, 4, 2, .92));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cq-lang-card {
    position: relative;
    width: 100%;
    max-width: 880px;
    max-height: 86vh;
    display: flex; flex-direction: column;
    background: var(--cq-gradient-onyx-gold);
    border: 1px solid rgba(212, 160, 60, .55);
    border-radius: 10px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(238, 207, 110, .25);
    overflow: hidden;
    animation: cqLangPop .3s var(--cq-ease-out);
}
@keyframes cqLangPop {
    from { transform: scale(.94) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cq-lang-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--cq-gradient-gold);
}

.cq-lang-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 1.6rem 1rem;
    border-bottom: 1px solid rgba(212, 160, 60, .25);
}
.cq-lang-x {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--cq-cream-50);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(212, 160, 60, .35);
    transition: background var(--cq-dur-fast), color var(--cq-dur-fast);
}
.cq-lang-x:hover { background: var(--cq-gold-400); color: var(--cq-onyx-800); }

.cq-lang-search {
    position: relative;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid rgba(212, 160, 60, .2);
}
.cq-lang-search svg {
    position: absolute;
    inset-inline-start: 2.1rem;
    top: 50%; transform: translateY(-50%);
    color: var(--cq-gold-300);
    opacity: .7;
}
.cq-lang-search input {
    width: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(212, 160, 60, .35);
    border-radius: 999px;
    color: var(--cq-cream-50);
    padding: .75rem 1rem .75rem 3rem;
    font-size: .95rem;
    transition: border-color var(--cq-dur-fast), background var(--cq-dur-fast);
}
html[dir="rtl"] .cq-lang-search input { padding: .75rem 3rem .75rem 1rem; }
.cq-lang-search input::placeholder { color: rgba(241, 215, 133, .55); }
.cq-lang-search input:focus { outline: none; border-color: var(--cq-gold-400); background: rgba(255, 255, 255, .1); }

.cq-lang-grid {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem 1.6rem;
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.cq-lang-grid::-webkit-scrollbar { width: 8px; }
.cq-lang-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
.cq-lang-grid::-webkit-scrollbar-thumb { background: rgba(212,160,60,.4); border-radius: 4px; }

.cq-lang-tile {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem .9rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(212, 160, 60, .2);
    border-radius: 6px;
    color: var(--cq-cream-50);
    transition: background var(--cq-dur-fast), border-color var(--cq-dur-fast), transform var(--cq-dur-fast);
    min-width: 0;
}
.cq-lang-tile:hover { background: rgba(212, 160, 60, .12); border-color: rgba(212, 160, 60, .55); transform: translateY(-1px); }
.cq-lang-tile.is-active { background: var(--cq-gradient-gold); color: var(--cq-onyx-800); border-color: var(--cq-gold-500); }
.cq-lang-tile.is-active .cq-lang-name { color: rgba(19, 31, 77, .65); }

.cq-flag-wrap { flex-shrink: 0; }
.cq-flag-wrap .fi {
    width: 2.2em; height: 1.6em;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.18);
}

.cq-lang-info { display: flex; flex-direction: column; min-width: 0; }
.cq-lang-native {
    font-family: 'Cormorant Garamond', 'Cairo', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cq-lang-name {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(241, 215, 133, .65);
    margin-top: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cq-lang-empty { padding: 2rem; text-align: center; color: rgba(241, 215, 133, .55); }

body.cq-lang-open { overflow: hidden; }

/* ─── Suppress Google Translate UI (banner, tooltips, highlight) ─── */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; background: transparent !important; box-shadow: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
.goog-logo-link, .goog-te-gadget span { display: none !important; }
.goog-te-gadget { color: transparent !important; font-size: 0 !important; }
#google_translate_element, #goog-gt-tt { display: none !important; }
.skiptranslate iframe { display: none !important; visibility: hidden !important; }
.VIpgJd-ZVi9od-l4eHX-hSRGPd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }

/* Mobile slide-down panel */
.cq-mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--cq-dur) var(--cq-ease);
    background: rgba(251, 247, 238, .98);
    backdrop-filter: blur(14px);
}
.cq-mobile-nav.is-open {
    /* Grow to fill the viewport below the fixed header and scroll when the
       content (an expanded category + Log In / Sign Up) is taller — otherwise
       the bottom items get clipped with no way to reach them. */
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.cq-mobile-nav a {
    display: block;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: .85rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    padding: .9rem 1rem;
    color: var(--cq-navy-700);
    border-top: 1px solid rgba(230, 220, 198, .5);
}

/* Scroll progress bar */
.cq-scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 2px;
    width: 0%;
    z-index: 70;
    background: var(--cq-gradient-gold);
    transition: width 80ms linear;
    pointer-events: none;
}

/* ---------- HERO ---------- */
.cq-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    isolation: isolate;
    color: #fbf7ee;
}
.cq-hero-media {
    position: absolute; inset: 0;
    z-index: -2;
    overflow: hidden;
}
.cq-hero-media img {
    width: 100%; height: 106%; object-fit: cover;
    animation: cqKenBurns 30s ease-in-out infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
}
/* Showcase mode: show the WHOLE photo (no crop) on a deep-navy backdrop —
   used where the subject must stay entirely visible (e.g. the limousine). */
.cq-hero-media--contain { background: #0a1330; }
.cq-hero-media--contain img {
    height: 100%; object-fit: contain; object-position: center;
    animation: none; transform: none;
}
/* Keep a little overscan at every keyframe (never scale(1)/flush to the edge),
   otherwise browsers flash a 1px seam at the frame edge as the zoom passes
   through — the "glitch" seen on desktop. */
@keyframes cqKenBurns {
    0%   { transform: scale(1.03) translate3d(0, 0, 0); }
    100% { transform: scale(1.08) translate3d(-1.5%, -2%, 0); }
}
.cq-hero-veil {
    position: absolute; inset: 0;
    z-index: -1;
    /* Light scrim only — keep the hero photo clear and bright. Just enough
       top + bottom darkening for the title and lede to stay readable (the
       header has its own dark band via .cq-hero::before). */
    background: linear-gradient(180deg, rgba(8, 10, 22, .40) 0%, rgba(8, 10, 22, .22) 34%, rgba(8, 10, 22, .22) 60%, rgba(8, 8, 14, .50) 100%);
}

/* ─── 3D canvas layer (Three.js scene) ─── */
.cq-3d-stage {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Fade top so the header logo has a clean backdrop, and bottom so it blends into the page */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
}
#cq-3d-canvas {
    display: block;
    width: 100%; height: 100%;
}

/* Subtle dark band behind the header for logo readability */
.cq-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(8, 12, 30, .65) 0%, rgba(8, 12, 30, .25) 60%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

/* ─── Floating pharaonic signs (hero background) ─── */
.cq-hieros {
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.cq-hieros .hiero {
    position: absolute;
    color: var(--cq-gold-300);
    opacity: 0;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 18px rgba(212, 160, 60, .45));
    animation: cqHieroDrift var(--cq-dur, 18s) ease-in-out infinite;
    animation-delay: var(--cq-delay, 0s);
}
@keyframes cqHieroDrift {
    0%   { transform: translate3d(0, 24px, 0) rotate(0deg) scale(.95); opacity: 0; }
    12%  { opacity: var(--cq-o, .22); }
    50%  { transform: translate3d(var(--cq-dx, 14px), var(--cq-dy, -28px), 0) rotate(var(--cq-dr, 4deg)) scale(1); opacity: calc(var(--cq-o, .22) * 1.5); }
    88%  { opacity: var(--cq-o, .22); }
    100% { transform: translate3d(0, 24px, 0) rotate(0deg) scale(.95); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cq-hieros .hiero { animation: none; opacity: var(--cq-o, .18); }
}
.cq-hero-content {
    position: relative;
    max-width: 56rem;
    padding: clamp(8rem, 18vh, 14rem) 1.5rem 6rem;
    text-align: center;
    z-index: 1;
}
.cq-hero-eyebrow {
    color: var(--cq-gold-300);
    font-family: 'Cinzel', serif;
    font-size: .75rem;
    letter-spacing: .55em;
    text-transform: uppercase;
    margin-bottom: 2.4rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.cq-hero h1 {
    background: var(--cq-gradient-gold);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(212, 160, 60, .35);
    margin-bottom: 1.4rem;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .55));
}
.cq-hero .cq-lede { color: rgba(251, 247, 238, .92); font-style: normal; max-width: 38rem; margin: 0 auto 2.6rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.cq-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Hero — page (non-home) variant, shorter */
.cq-hero-page { min-height: 62vh; }
.cq-hero-page .cq-hero-content { padding: clamp(7rem, 14vh, 10rem) 1.5rem 4rem; }

/* Scroll-down indicator */
.cq-scroll-cue {
    position: absolute;
    bottom: 2.2rem; left: 50%; transform: translateX(-50%);
    width: 22px; height: 38px;
    border: 1.5px solid rgba(251, 247, 238, .55);
    border-radius: 999px;
    display: flex; justify-content: center; padding-top: 8px;
    z-index: 1;
}
.cq-scroll-cue::after {
    content: ''; width: 3px; height: 8px; border-radius: 2px;
    background: var(--cq-gold-300);
    animation: cqScrollPing 1.8s var(--cq-ease) infinite;
}
@keyframes cqScrollPing {
    0%   { transform: translateY(0);   opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- SECTION ---------- */
.cq-section {
    padding-top: var(--cq-space-section);
    padding-bottom: var(--cq-space-section);
    position: relative;
}
.cq-section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.cq-section-head .cq-eyebrow { margin-bottom: 1rem; }
.cq-section-head .cq-h2 {
    margin-bottom: 1rem;
    background: var(--cq-gradient-gold-rich);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.cq-section-head .cq-divider-lotus { margin-top: 1rem; }
html[dir="rtl"] .cq-section-head { text-align: center; }

/* ---------- CARDS ---------- */
.cq-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--cq-line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--cq-dur) var(--cq-ease-out), box-shadow var(--cq-dur) var(--cq-ease-out), border-color var(--cq-dur) var(--cq-ease-out);
    display: block;
}
.cq-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -30px rgba(19, 31, 77, .35), 0 0 0 1px rgba(212, 160, 60, .35);
    border-color: rgba(212, 160, 60, .35);
}

/* Tour / experience card (premium) */
.cq-card-tour {
    background: #fff;
    border: 1px solid rgba(212, 160, 60, .35);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: transform var(--cq-dur) var(--cq-ease-out), box-shadow var(--cq-dur) var(--cq-ease-out), border-color var(--cq-dur) var(--cq-ease-out);
}
.cq-card-tour::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212,160,60,0) 0%, rgba(212,160,60,.55) 50%, rgba(212,160,60,0) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--cq-dur) var(--cq-ease-out);
}
.cq-card-tour:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(141, 98, 26, .45), 0 0 0 1px rgba(212, 160, 60, .7); border-color: rgba(212, 160, 60, .7); }
.cq-card-tour:hover::before { opacity: 1; }
.cq-card-tour .cq-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cq-cream-100);
}
.cq-card-tour .cq-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 900ms var(--cq-ease-out), filter 900ms var(--cq-ease-out);
}
.cq-card-tour:hover .cq-card-media img { transform: scale(1.08); filter: saturate(1.08); }

.cq-card-tour .cq-card-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(12, 22, 56, .55) 100%);
    pointer-events: none;
}

/* Floating destination chip on top-left of media */
.cq-card-chip {
    position: absolute;
    top: .9rem; inset-inline-start: .9rem;
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem;
    background: rgba(19, 31, 77, .82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 160, 60, .4);
    color: var(--cq-gold-300);
    font-family: 'Cinzel', serif;
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    border-radius: 999px;
    z-index: 2;
}

/* Cartouche price tag — bottom-right of media */
.cq-card-price {
    position: absolute;
    bottom: -22px; inset-inline-end: 1.2rem;
    padding: .55rem 1.2rem;
    background: var(--cq-gradient-gold);
    color: var(--cq-navy-800);
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    letter-spacing: .12em;
    border-radius: 999px;
    box-shadow: 0 12px 24px -10px rgba(212, 160, 60, .55), inset 0 1px 0 rgba(255,255,255,.4);
    z-index: 2;
    white-space: nowrap;
}
.cq-card-price small { font-family: 'Inter', sans-serif; font-size: .62rem; letter-spacing: .15em; opacity: .75; margin-inline-end: .25rem; text-transform: uppercase; }
.cq-card-price b { font-weight: 600; font-size: 1rem; letter-spacing: .04em; }

.cq-card-tour .cq-card-body { padding: 1.6rem 1.5rem 1.5rem; }
.cq-card-tour .cq-card-meta {
    font-family: 'Cinzel', serif;
    font-size: .65rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--cq-gold-500);
    margin-bottom: .55rem;
    display: flex; align-items: center; gap: .55rem;
}
.cq-card-tour .cq-card-meta::before {
    content: ''; width: 18px; height: 1px;
    background: var(--cq-gold-400);
}
.cq-card-tour .cq-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.35rem, 1.4vw, 1.6rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--cq-onyx-800);
    margin-bottom: .6rem;
    transition: color var(--cq-dur);
}
.cq-card-tour:hover .cq-card-title { color: var(--cq-gold-600); }
.cq-card-tour .cq-card-desc {
    color: rgba(19, 31, 77, .68);
    font-size: .92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cq-card-tour .cq-card-footer {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 160, 60, .4);
    display: flex; align-items: center; justify-content: space-between;
    font-size: .8rem;
    color: var(--cq-navy-700);
}
.cq-card-tour .cq-card-footer .cq-go {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: 'Cinzel', serif;
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--cq-navy-700);
    transition: color var(--cq-dur), gap var(--cq-dur);
}
.cq-card-tour:hover .cq-card-footer .cq-go { color: var(--cq-gold-500); gap: .7rem; }

/* Hotel card variant */
.cq-card-hotel { /* shares cq-card-tour styles */ }
.cq-card-hotel .cq-stars { color: var(--cq-gold-400); display: inline-flex; gap: 2px; }
.cq-card-hotel .cq-stars svg { width: 14px; height: 14px; }

/* Destination tile (square, image-led) */
.cq-tile-destination {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 5;
    display: block;
    isolation: isolate;
    background: var(--cq-cream-100);
}
.cq-tile-destination img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s var(--cq-ease-out), filter 1.2s var(--cq-ease-out);
}
.cq-tile-destination:hover img { transform: scale(1.1); filter: brightness(.9); }
.cq-tile-destination::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(12, 22, 56, .9) 100%);
    pointer-events: none;
}
.cq-tile-destination .cq-tile-label {
    position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
    z-index: 1;
    color: #fbf7ee;
}
.cq-tile-destination .cq-tile-label .cq-h3 { font-family: 'Cinzel', serif; letter-spacing: .12em; text-transform: uppercase; font-size: 1.15rem; }
.cq-tile-destination .cq-tile-label small { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .95rem; opacity: .85; display: block; margin-top: .25rem; }

/* Feature pillar (used on home "Why" section) */
.cq-pillar {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
}
.cq-pillar-num {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    line-height: 1;
    background: var(--cq-gradient-gold);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: .6rem;
    opacity: .9;
}
.cq-pillar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    color: var(--cq-cream-50);
    margin-bottom: .85rem;
}
.cq-pillar p { color: rgba(250, 244, 228, .78); line-height: 1.65; }
/* Pillar inside a light section (e.g. papyrus bg) should flip back to dark */
.cq-papyrus-bg .cq-pillar h3 { color: var(--cq-navy-800); }
.cq-papyrus-bg .cq-pillar p { color: rgba(19, 31, 77, .7); }
.cq-pillar + .cq-pillar { border-inline-start: 1px solid rgba(212, 160, 60, .25); }
@media (max-width: 768px) { .cq-pillar + .cq-pillar { border-inline-start: 0; border-top: 1px solid rgba(212, 160, 60, .25); } }

/* Marquee (destination strip) */
.cq-marquee {
    position: relative;
    overflow: hidden;
    color: var(--cq-gold-400);
    padding: 1.6rem 0;
    border-top: 1px solid rgba(212, 160, 60, .25);
    border-bottom: 1px solid rgba(212, 160, 60, .25);
}
.cq-marquee::before, .cq-marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.cq-marquee::before { left: 0;  background: linear-gradient(90deg, var(--cq-cream-50), transparent); }
.cq-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--cq-cream-50), transparent); }
.cq-marquee-track {
    display: inline-flex; gap: 4rem;
    animation: cqMarquee 48s linear infinite;
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cq-marquee-track span { display: inline-flex; align-items: center; gap: 4rem; }
.cq-marquee-track svg { width: 18px; height: 18px; opacity: .7; }
@keyframes cqMarquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Umrah package cards — the "from outside" photo shown inside each card. */
.cq-pkg-media { border-radius: .55rem; overflow: hidden; border: 1px solid rgba(232, 191, 71, .25); aspect-ratio: 16 / 10; }
.cq-pkg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Whole-card click target (JS navigates on click). Gentle hover lift for feedback. */
[data-cq-cardlink] { transition: transform var(--cq-dur) var(--cq-ease), box-shadow var(--cq-dur) var(--cq-ease); }
@media (hover: hover) {
    [data-cq-cardlink]:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7); }
}

/* Booking sidebar (tour detail) */
.cq-booking {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, var(--cq-cream-50) 100%);
    border: 1px solid rgba(212, 160, 60, .55);
    border-radius: 6px;
    padding: 2rem 1.75rem;
    box-shadow: 0 30px 60px -30px rgba(141, 98, 26, .35);
}
.cq-booking::before {
    content: '';
    position: absolute; top: -1px; left: 0; right: 0; height: 4px;
    background: var(--cq-gradient-gold);
    border-radius: 6px 6px 0 0;
}
.cq-booking::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
    background: var(--cq-gradient-gold);
    opacity: .5;
    border-radius: 0 0 6px 6px;
}
.cq-booking-label {
    font-family: 'Cinzel', serif;
    font-size: .68rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--cq-gold-500);
    margin-bottom: .4rem;
}
.cq-booking-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1;
    background: var(--cq-gradient-gold-rich);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: .25rem;
}
.cq-booking-price .cq-curr { font-size: 1.1rem; vertical-align: super; margin-inline-end: .15rem; color: var(--cq-gold-500); letter-spacing: .15em; }
.cq-booking-row {
    display: flex; align-items: center; gap: .55rem;
    color: var(--cq-navy-700); font-size: .92rem;
    padding: .6rem 0;
    border-top: 1px dashed rgba(212, 160, 60, .35);
}
.cq-booking-row svg { color: var(--cq-gold-500); flex: 0 0 18px; }
.cq-booking-row:first-of-type { border-top: 1px solid rgba(212, 160, 60, .25); margin-top: 1.25rem; }

/* Page-section heading inside detail body */
.cq-body-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 2vw, 2rem);
    background: var(--cq-gradient-gold-rich);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: .85rem;
}
.cq-body-heading::before {
    content: ''; width: 28px; height: 1.5px;
    background: var(--cq-gradient-gold);
    border-radius: 2px;
}

/* Itinerary timeline */
.cq-itinerary {
    position: relative;
    padding-inline-start: 1.6rem;
    border-inline-start: 1px solid rgba(212, 160, 60, .5);
    color: rgba(250, 244, 228, .88);
    line-height: 1.75;
    white-space: pre-wrap;
}
/* Light context (papyrus / inside cards) flips back to dark ink */
.cq-papyrus-bg .cq-itinerary,
.cq-incl-excl .cq-itinerary { color: rgba(19, 31, 77, .85); }

/* Includes / excludes panel */
.cq-incl-excl {
    background: var(--cq-cream-50);
    border: 1px solid rgba(212, 160, 60, .3);
    border-radius: 6px;
    padding: 1.5rem;
}
.cq-incl-excl h3 {
    font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
    margin-bottom: .8rem;
    display: flex; align-items: center; gap: .5rem;
}
.cq-incl-excl.includes h3 { color: #2f7a4f; }
.cq-incl-excl.excludes h3 { color: #b8302a; }

/* Floating WhatsApp */
.cq-wa-float {
    position: fixed;
    bottom: 1.5rem; inset-inline-end: 1.5rem;
    width: 60px; height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 18px 40px -10px rgba(37, 211, 102, .55), 0 0 0 6px rgba(37, 211, 102, .12);
    z-index: 50;
    transition: transform var(--cq-dur) var(--cq-ease);
    /* Keep the fixed button on its own GPU layer so it doesn't repaint / ghost
       ("glitch like it's tabbed many times") while the page scrolls on mobile. */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}
.cq-wa-float:hover { transform: translateZ(0) scale(1.06); }
/* Sonar pulse done with a compositor-only transform/opacity ring. Animating
   box-shadow spread directly (the old approach) repainted every frame and
   looked glitchy/"broken" on mobile, especially while scrolling. */
.cq-wa-float::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .6);
    z-index: -1;
    animation: cqWaPulse 2.4s var(--cq-ease) infinite;
}
@keyframes cqWaPulse {
    0%        { transform: scale(1);    opacity: .7; }
    70%, 100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cq-wa-float::after { animation: none; opacity: 0; }
}

/* Phones: drop the frosted-glass blur on the scrolled header. A per-frame
   backdrop-filter repaint is costly while scrolling; a near-solid navy reads the
   same and scrolls smoothly. */
@media (max-width: 640px) {
    .cq-header[data-state="solid"] {
        background: rgba(21, 41, 92, .95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ---------- FOOTER ---------- */
.cq-footer {
    background: var(--cq-gradient-onyx-gold);
    color: var(--cq-gold-200);
    position: relative;
    overflow: hidden;
}
/* Footer logo — same halo so the dark wordmark reads on the dark backdrop */
.cq-footer-logo img {
    filter:
        drop-shadow(0 0 1px rgba(250, 244, 228, .95))
        drop-shadow(0 0 16px rgba(238, 207, 110, .55))
        drop-shadow(0 0 32px rgba(238, 207, 110, .3))
        drop-shadow(0 6px 20px rgba(0, 0, 0, .5));
}
.cq-footer::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url('/assets/img/ornaments/papyrus-texture.svg');
    background-size: 380px;
    opacity: .08;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.cq-footer .cq-frieze { color: var(--cq-gold-400); }
.cq-footer-inner { padding: 5rem 1.5rem 2rem; max-width: 80rem; margin: 0 auto; position: relative; z-index: 1; }
.cq-footer h4 {
    font-family: 'Cinzel', serif;
    font-size: .75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    background: var(--cq-gradient-gold);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    margin-bottom: 1.1rem;
}
.cq-footer a { color: rgba(241, 215, 133, .8); transition: color var(--cq-dur-fast); }
.cq-footer a:hover { color: var(--cq-gold-200); }
.cq-footer .cq-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--cq-gold-300);
}
.cq-footer .cq-signature {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--cq-coral-400);  /* her signature colour from the logo */
    font-weight: 600;
}
.cq-footer-bottom { border-top: 1px solid rgba(212,160,60,.18); margin-top: 3rem; padding-top: 1.5rem; text-align: center; color: rgba(241, 215, 133, .5); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; }

/* ---------- MOTION UTILITIES ---------- */

/* fade-up reveal — set by JS when intersecting */
.cq-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity var(--cq-dur-slow) var(--cq-ease-out), transform var(--cq-dur-slow) var(--cq-ease-out);
    transition-delay: calc(var(--cq-stagger, 0) * 90ms);
    will-change: opacity, transform;
}
.cq-reveal.is-visible { opacity: 1; transform: none; }

.cq-reveal-left  { transform: translate3d(-32px, 0, 0); }
.cq-reveal-right { transform: translate3d( 32px, 0, 0); }
.cq-reveal-scale { transform: scale(.96); }

/* Stagger children */
.cq-stagger > * { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--cq-dur-slow) var(--cq-ease-out), transform var(--cq-dur-slow) var(--cq-ease-out); }
.cq-stagger.is-visible > * { opacity: 1; transform: none; }
.cq-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.cq-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.cq-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.cq-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.cq-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.cq-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
.cq-stagger.is-visible > *:nth-child(7) { transition-delay: 540ms; }
.cq-stagger.is-visible > *:nth-child(8) { transition-delay: 630ms; }

/* Subtle parallax on data-parallax */
[data-parallax] { will-change: transform; }

/* Tilt-on-hover */
.cq-tilt { transition: transform 600ms var(--cq-ease-out); transform-style: preserve-3d; will-change: transform; }

/* Image gradient frame (for inline images in detail content) */
.cq-img-frame { position: relative; overflow: hidden; border-radius: 6px; }
.cq-img-frame::before {
    content: ''; position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px rgba(212, 160, 60, .35);
    pointer-events: none;
    border-radius: inherit;
}

/* ---------- FORM ---------- */
.cq-input {
    width: 100%;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid rgba(212, 160, 60, .35);
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
    color: var(--cq-navy-800);
    transition: border-color var(--cq-dur-fast), box-shadow var(--cq-dur-fast);
}
.cq-input:focus { outline: none; border-color: var(--cq-gold-500); box-shadow: 0 0 0 3px rgba(212, 160, 60, .2); }
.cq-label { display: block; font-family: 'Cinzel', serif; font-size: .68rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--cq-navy-700); margin-bottom: .45rem; }
/* The transportation booking form sits on the dark page background, so its field
   labels must be light — the default navy is invisible ("blue text") on dark. */
#cq-transport-form .cq-label { color: rgba(251, 247, 238, .9); }

/* ---------- UTILITIES ---------- */
.cq-container { max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px)  { .cq-container { padding-inline: 1.75rem; } }
@media (min-width: 1024px) { .cq-container { padding-inline: 2.5rem;  } }

.cq-container-narrow { max-width: 56rem; margin-inline: auto; padding-inline: 1.25rem; }

.cq-grid-3 { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .cq-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cq-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.cq-grid-2 { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cq-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }

/* Body padding under fixed header — for non-hero pages */
.cq-page { padding-top: 96px; }
.cq-page-hero-offset { padding-top: 0; }

/* =================================================================
   PORTAL  —  cinematic temple-gateway hero + the two gateways
   ================================================================= */

/* ─── 3D stage (Three.js temple scene) ─── */
.cq-portal-stage {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Let the corridor fill the screen — only a light top fade for the header
       and a soft bottom fade to blend into the next section. */
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.74) 0%, #000 9%, #000 91%, transparent 100%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,.74) 0%, #000 9%, #000 91%, transparent 100%);
}
#cq-portal-canvas { display: block; width: 100%; height: 100%; }

/* The corridor fades in on its first rendered frame (JS adds .is-live), so
   the hero settles in instead of popping. Purely decorative — if WebGL never
   boots, the gradient backdrop + veil simply stay. */
.cq-portal-stage { opacity: 0; transition: opacity 1.3s var(--cq-ease-out); }
.cq-portal-stage.is-live { opacity: 1; }

/* Keep the upper hall bright and immersive; darken only behind the headline +
   gateways (lower-centre) and the very bottom so the copy stays legible. */
.cq-portal-veil {
    z-index: 0;
    background:
        radial-gradient(120% 58% at 50% 80%, rgba(5,7,20,.8) 0%, rgba(6,8,22,.32) 46%, transparent 72%),
        linear-gradient(180deg, rgba(7,10,26,.32) 0%, transparent 16%, transparent 46%, rgba(6,8,20,.88) 100%);
}
.cq-portal-veil::after { display: none; }

.cq-portal-content {
    max-width: 64rem;
    padding-top: clamp(6.5rem, 13vh, 10.5rem);
    padding-bottom: 4rem;
    z-index: 2;
}

/* ─── The two gateways ─── */
.cq-gateways {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 30rem;
    margin: 2.6rem auto 0;
    text-align: start;
}

.cq-gateway {
    --g:        var(--cq-gold-300);
    --g-soft:   rgba(212, 160, 60, .5);
    --g-glow:   rgba(232, 194, 90, .42);
    --g-shadow: rgba(184, 131, 34, .55);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    padding: 2.2rem 1.8rem;
    min-height: 232px;
    color: #fbf7ee;
    border: 1px solid var(--g-soft);
    border-radius: 130px 130px 16px 16px;   /* a temple-doorway arch */
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.07), transparent 60%),
        linear-gradient(180deg, rgba(18,22,48,.66) 0%, rgba(10,12,30,.82) 100%);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
            backdrop-filter: blur(8px) saturate(1.1);
    box-shadow: 0 30px 70px -36px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform var(--cq-dur) var(--cq-ease-out),
                box-shadow var(--cq-dur) var(--cq-ease-out),
                border-color var(--cq-dur) var(--cq-ease-out);
}
.cq-gateway--b2b {
    --g:        #9fc0ff;
    --g-soft:   rgba(79, 111, 214, .5);
    --g-glow:   rgba(63, 111, 214, .42);
    --g-shadow: rgba(45, 76, 162, .6);
}

/* arch-top inner light */
.cq-gateway::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(72% 46% at 50% 0%, var(--g-glow), transparent 70%);
    opacity: .55;
    pointer-events: none;
}
/* shine sweep on hover */
.cq-gateway::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.20) 50%, transparent 100%);
    transform: translateX(-130%);
    transition: transform .9s var(--cq-ease);
    pointer-events: none;
}
.cq-gateway:hover::after { transform: translateX(130%); }

.cq-gateway:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: var(--g);
    box-shadow: 0 44px 90px -40px var(--g-shadow), 0 0 0 1px var(--g), inset 0 1px 0 rgba(255,255,255,.12);
}

/* bottom glow blob — pulses up on hover */
.cq-gateway-glow {
    position: absolute;
    left: 50%; bottom: -42%;
    transform: translateX(-50%);
    width: 92%; height: 82%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 100%, var(--g-glow), transparent 70%);
    opacity: .5;
    filter: blur(6px);
    transition: opacity var(--cq-dur) var(--cq-ease-out);
}
.cq-gateway:hover .cq-gateway-glow { opacity: 1; }

.cq-gateway-eyebrow,
.cq-gateway-title,
.cq-gateway-sub,
.cq-gateway-go { position: relative; z-index: 2; }

.cq-gateway-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: .66rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--g);
}
.cq-gateway-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fdfaf2;
}
.cq-gateway-sub {
    font-size: .92rem;
    line-height: 1.5;
    color: rgba(251, 247, 238, .72);
    max-width: 32ch;
}
.cq-gateway-go {
    margin-top: .35rem;
    padding-top: .2rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Cinzel', serif;
    font-size: .7rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--g);
    transition: gap var(--cq-dur) var(--cq-ease-out);
}
.cq-gateway:hover .cq-gateway-go { gap: .85rem; }
.cq-gateway-go svg { width: 16px; height: 16px; }

html[dir="rtl"] .cq-gateway-eyebrow,
html[dir="rtl"] .cq-gateway-go { font-family: 'Amiri', 'Cairo', serif; letter-spacing: .12em; }

@media (prefers-reduced-motion: reduce) {
    .cq-gateway:hover { transform: none; }
    .cq-gateway::after { display: none; }
}

/* ─── The "watch our videos" gateway — a richer, gilded variant ─── */
.cq-gateway--videos {
    --g:        #f4d780;
    --g-soft:   rgba(232, 194, 90, .62);
    --g-glow:   rgba(244, 214, 128, .5);
    --g-shadow: rgba(184, 131, 34, .68);
    border-width: 1.5px;
    background:
        radial-gradient(120% 82% at 50% 0%, rgba(255, 236, 184, .14), transparent 60%),
        linear-gradient(180deg, rgba(24, 20, 50, .72) 0%, rgba(11, 10, 30, .9) 100%);
    box-shadow: 0 40px 92px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 236, 184, .16);
}
.cq-gateway--videos::before { opacity: .72; }

/* gilded play badge with a soft pulsing ring */
.cq-gateway-play {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 66px; height: 66px;
    margin-bottom: .35rem;
    border-radius: 50%;
    color: var(--cq-navy-900);
    background: var(--cq-gradient-gold);
    box-shadow: 0 12px 30px -8px var(--g-shadow), 0 0 0 6px rgba(244, 214, 128, .14);
    transition: transform var(--cq-dur) var(--cq-ease-out);
}
.cq-gateway-play svg { width: 26px; height: 26px; margin-inline-start: 3px; }
.cq-gateway-play::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(244, 214, 128, .55);
    animation: cq-play-pulse 2.6s var(--cq-ease-out) infinite;
}
.cq-gateway--videos:hover .cq-gateway-play { transform: scale(1.06); }
@keyframes cq-play-pulse {
    0%   { transform: scale(1);    opacity: .7; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cq-gateway-play::after { animation: none; }
}

/* ─── Watch Our Videos — public gallery ─── */
.cq-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}
.cq-video-card {
    display: flex;
    flex-direction: column;
    border-radius: .7rem;
    overflow: hidden;
    background: rgba(251, 247, 238, .04);
    border: 1px solid rgba(232, 191, 71, .22);
    box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .8);
    transition: transform var(--cq-dur) var(--cq-ease-out),
                border-color var(--cq-dur) var(--cq-ease-out),
                box-shadow var(--cq-dur) var(--cq-ease-out);
}
.cq-video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 191, 71, .5);
    box-shadow: 0 40px 80px -44px rgba(184, 131, 34, .5);
}
.cq-video-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a0d22;
}
.cq-video-frame,
.cq-video-facade {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.cq-video-facade {
    cursor: pointer;
    display: grid;
    place-items: center;
    background-color: #0a0d22;
    background-size: cover;
    background-position: center;
}
.cq-video-facade::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 26, .1), rgba(8, 10, 26, .55));
    transition: background var(--cq-dur) var(--cq-ease-out);
}
.cq-video-facade:hover::before { background: linear-gradient(180deg, rgba(8, 10, 26, 0), rgba(8, 10, 26, .35)); }
.cq-video-play {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 68px; height: 68px;
    border-radius: 50%;
    color: var(--cq-navy-900);
    background: var(--cq-gradient-gold);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7);
    transition: transform var(--cq-dur) var(--cq-ease-out);
}
.cq-video-facade:hover .cq-video-play { transform: scale(1.08); }
.cq-video-play svg { width: 28px; height: 28px; margin-inline-start: 4px; }
.cq-video-meta { padding: 1.15rem 1.25rem 1.4rem; }
.cq-video-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fdfaf2;
    line-height: 1.2;
}
.cq-video-desc {
    margin-top: .4rem;
    font-size: .92rem;
    line-height: 1.55;
    color: rgba(251, 247, 238, .72);
}

/* ─── Social icon row (footer) ─── */
.cq-socials { display: flex; gap: .7rem; flex-wrap: wrap; }
.cq-social {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--cq-gold-300);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(212, 160, 60, .35);
    transition: background var(--cq-dur-fast), color var(--cq-dur-fast), transform var(--cq-dur-fast), border-color var(--cq-dur-fast);
}
.cq-social:hover {
    background: var(--cq-gradient-gold);
    color: var(--cq-onyx-800);
    border-color: var(--cq-gold-500);
    transform: translateY(-2px);
}
.cq-social svg { width: 18px; height: 18px; }

/* ─── Keyboard focus visibility ─── */
.cq-gateway:focus-visible {
    outline: 2px solid var(--g);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 44px 90px -40px var(--g-shadow);
}
.cq-nav a:focus-visible,
.cq-nav-aux:focus-visible,
.cq-footer a:focus-visible,
.cq-social:focus-visible,
.cq-scroll-cue:focus-visible,
.cq-lang-tile:focus-visible {
    outline: 2px solid var(--cq-gold-300);
    outline-offset: 3px;
    border-radius: 4px;
}

/* On the portal hero the "Scroll to walk the hall" hint (with its own animated
   line) is the scroll indicator, so hide the generic mouse cue here — it would
   otherwise overlap the hint text. */
.cq-portal-hero .cq-scroll-cue { display: none; }

/* ─── Scroll-driven "walk the hall" journey (JS adds .cq-journey-on) ─── */
.cq-portal-journey { position: relative; }
.cq-journey-on { height: 340vh; }                 /* the tall scroll-stage */
.cq-portal-sticky { position: relative; }
.cq-journey-on .cq-portal-sticky {                /* hero pins while you scroll the stage */
    position: sticky; top: 0;
    height: 100vh;
    height: 100svh;                               /* mobile: track the small (URL-bar-visible) viewport */
    min-height: 0;
}
@media (max-width: 640px) { .cq-journey-on { height: 240vh; } }   /* shorter drag on phones */

/* Intro copy fades out as you walk into the hall (opacity driven by JS). */
.cq-portal-intro { transition: opacity .3s linear; will-change: opacity; }

/* About told through the corridor — words fade in/out at scroll waypoints
   (opacity is set by the journey controller from scroll progress). */
.cq-corridor-word {
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 42rem);
    text-align: center;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s linear;
    will-change: opacity;
    text-shadow: 0 2px 26px rgba(0, 0, 0, .65);
}
.cq-corridor-word .cq-lede { margin: 0 auto; }

/* In fallback (no JS) the hero stacks intro + gateways in a centred column. */
.cq-portal-hero { flex-direction: column; }

/* In journey mode the gateways are pinned where the 3D portals used to be —
   centred over the end of the corridor, with a gap so the vanishing point
   shows between them — and reveal only on arrival. */
.cq-journey-on .cq-gateways {
    position: absolute;
    top: 48%; left: 50%;
    z-index: 3;
    width: min(92vw, 30rem);
    max-width: none;
    margin: 0;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 28px)) scale(.96);
    pointer-events: none;
    transition: opacity .8s var(--cq-ease-out), transform .8s var(--cq-ease-out);
    will-change: opacity, transform;
}
.cq-journey-on .cq-gateways.is-arrived {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
@media (max-width: 640px) {
    .cq-journey-on .cq-gateways { width: 92vw; top: 50%; }
}

/* "Scroll to walk the hall" cue under the intro. */
.cq-portal-hint {
    margin-top: 1.9rem;
    font-family: 'Cinzel', serif;
    font-size: .7rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(238, 207, 110, .82);
    display: inline-flex; flex-direction: column; align-items: center; gap: .7rem;
}
.cq-portal-hint::after {
    content: '';
    width: 1px; height: 30px;
    background: linear-gradient(180deg, var(--cq-gold-300), transparent);
    animation: cqHintPulse 1.8s var(--cq-ease) infinite;
}
@keyframes cqHintPulse {
    0%, 100% { opacity: .25; transform: translateY(-4px) scaleY(.6); }
    50%      { opacity: 1;   transform: translateY(0) scaleY(1); }
}
.cq-journey-on.cq-portal-arrived .cq-portal-hint { opacity: 0; transition: opacity .4s; }
html[dir="rtl"] .cq-portal-hint { font-family: 'Amiri', 'Cairo', serif; letter-spacing: .12em; }
@media (prefers-reduced-motion: reduce) { .cq-portal-hint::after { animation: none; } }

/* =================================================================
   MOBILE / TOUCH  —  responsiveness fixes (phones ~360–430px)
   ================================================================= */

/* Contain accidental horizontal overflow site-wide. `clip` (not hidden)
   so position:sticky on the pinned hero keeps working. */
html, body { overflow-x: clip; }

/* ── Mobile section bar — all section buttons visible at once (wraps, no burger,
   no horizontal scroll so nothing is hidden off-screen). ── */
.cq-mnav {
    display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: center;
    padding: .2rem .75rem .85rem;
}
.cq-mnav::-webkit-scrollbar { display: none; }
.cq-mnav a {
    flex: 0 0 auto; white-space: nowrap;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
    padding: .4rem .72rem; border-radius: 999px;
    border: 1px solid rgba(232, 191, 71, .32);
    background: rgba(251, 247, 238, .05);
    color: rgba(251, 247, 238, .92);
    transition: background var(--cq-dur-fast), color var(--cq-dur-fast), border-color var(--cq-dur-fast);
}
.cq-mnav a.is-active, .cq-mnav a:hover {
    background: rgba(232, 191, 71, .18); color: var(--cq-gold-300); border-color: rgba(232, 191, 71, .55);
}
.cq-header[data-state="solid"] .cq-mnav a { color: var(--cq-cream-50); }
html[dir="rtl"] .cq-mnav a { font-family: 'Amiri', 'Cairo', serif; letter-spacing: 0; }

/* Mobile: show the WHOLE hero photo (contain, no crop) and keep the same
   drifting motion as desktop. */
@media (max-width: 640px) {
    .cq-hero-media img {
        height: 100%; object-fit: contain; object-position: top;
    }

    /* The header now carries the visible section-button strip on phones, so it's
       taller — give the hero copy extra top clearance so the logo, eyebrow and
       titles don't tuck under the buttons. */
    .cq-hero-content { padding-top: var(--cq-hero-offset, 11rem); }
    .cq-hero-page .cq-hero-content { padding-top: var(--cq-hero-offset, 11rem); }
    .cq-portal-content { padding-top: var(--cq-hero-offset, 11rem); }
}

/* Comfortable, guaranteed tap targets for the header controls (≥44px). */
.cq-burger, .cq-lang-btn, .cq-user-btn {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Give the one primary CTA + buttons a real touch-press acknowledgement
   (hover doesn't exist on touch, and the global tap-highlight is off). */
.cq-gateway, .btn, .cq-social, .cq-lang-tile { -webkit-tap-highlight-color: rgba(212, 160, 60, .18); }
.cq-gateway:active {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--g);
    box-shadow: 0 30px 70px -34px var(--g-shadow), 0 0 0 1px var(--g), inset 0 1px 0 rgba(255,255,255,.12);
}
.cq-gateway:active .cq-gateway-glow { opacity: 1; }
.btn:active { transform: translateY(0) scale(.985); }

/* Respect iOS safe areas for the floating WhatsApp button. */
.cq-wa-float {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    inset-inline-end: calc(1.5rem + env(safe-area-inset-right));
}

/* Language modal: track the visible viewport so its close button stays on-screen. */
.cq-lang-card { max-height: 86dvh; }

/* Footer developer email is one long token — let it wrap, and enlarge the hit area. */
.cq-footer-bottom a { display: inline-block; padding: .35rem .15rem; overflow-wrap: anywhere; }

@media (max-width: 640px) {
    /* No iOS focus-zoom: inputs at a true 16px regardless of root scale. */
    .cq-input, .cq-lang-search input { font-size: 16px; }

    /* Ease extreme letter-spacing on tiny labels so short phrases stay word-shaped. */
    .cq-hero-eyebrow { letter-spacing: .32em; }
    .cq-portal-hint, .cq-gateway-eyebrow, .cq-gateway-go { letter-spacing: .18em; }
    .cq-card-chip { letter-spacing: .14em; }

    /* Corridor "about" words fit the visible band on a phone. */
    .cq-corridor-word { width: min(94vw, 30rem); top: 42%; }
    .cq-corridor-word .cq-h2 { font-size: clamp(1.5rem, 7vw, 2.4rem); }

    /* Keep the scroll cue clear of the home-indicator / URL bar. */
    .cq-portal-hero .cq-scroll-cue { bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
}

/* =================================================================
   FINAL POLISH  —  chrome, a11y and micro-interaction touches
   ================================================================= */

/* ─── Themed page scrollbar (gold on deep navy, like the lang modal) ─── */
html { scrollbar-width: thin; scrollbar-color: rgba(212, 160, 60, .55) #0c1638; }
body::-webkit-scrollbar,
html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: #0c1638; }
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 160, 60, .75), rgba(141, 98, 26, .75));
    border-radius: 8px;
    border: 2px solid #0c1638;
}
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #e8bf47, #b88322); }

/* ─── Skip-to-content (appears on keyboard focus as a gold pill) ─── */
.cq-skip {
    position: fixed;
    top: .9rem; inset-inline-start: .9rem;
    z-index: 200;
    padding: .75rem 1.4rem;
    border-radius: 999px;
    background: var(--cq-gradient-gold);
    color: var(--cq-onyx-800);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
    box-shadow: 0 14px 30px -10px rgba(212, 160, 60, .55);
    transform: translateY(-250%);
    opacity: 0;
    transition: transform .25s var(--cq-ease), opacity .25s var(--cq-ease);
}
.cq-skip:focus-visible {
    transform: none;
    opacity: 1;
    outline: 2px solid var(--cq-navy-800);
    outline-offset: 2px;
}
#main:focus { outline: none; }

/* Anchored sections land clear of the fixed header */
section[id] { scroll-margin-top: 88px; }

/* ─── Floating WhatsApp — "Chat with us" label slides out on hover ─── */
.cq-wa-label {
    position: absolute;
    inset-inline-end: calc(100% + .9rem);
    top: 50%;
    transform: translateY(-50%) scale(.94);
    white-space: nowrap;
    padding: .5rem 1.05rem;
    border-radius: 999px;
    background: rgba(10, 8, 5, .88);
    border: 1px solid rgba(212, 160, 60, .45);
    color: var(--cq-gold-200);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--cq-dur-fast) var(--cq-ease), transform var(--cq-dur-fast) var(--cq-ease);
}
@media (hover: hover) {
    .cq-wa-float:hover .cq-wa-label,
    .cq-wa-float:focus-visible .cq-wa-label { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ─── Form feedback: required marks + submitting state ─── */
.cq-label .req { color: var(--cq-coral-500); font-family: 'Inter', sans-serif; letter-spacing: 0; }

.btn:disabled { opacity: .85; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
    content: '';
    width: 1em; height: 1em;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-inline-start-color: transparent;
    animation: cqSpin .7s linear infinite;
}
@keyframes cqSpin { to { transform: rotate(360deg); } }

/* ─── User account dropdown — onyx & gold, matches the language modal ───
   .cq-menu-wrap covers the gap under the trigger so hover never drops;
   JS toggles .is-open on the wrapper for touch devices. */
.cq-menu-wrap { pointer-events: none; z-index: 80; }
.group:hover .cq-menu-wrap,
[data-cq-user-menu].is-open .cq-menu-wrap { pointer-events: auto; }

.cq-menu {
    background: var(--cq-gradient-onyx-gold);
    border: 1px solid rgba(212, 160, 60, .45);
    border-radius: 10px;
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(238, 207, 110, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s var(--cq-ease), transform .22s var(--cq-ease), visibility 0s linear .25s;
}
.group:hover .cq-menu,
[data-cq-user-menu].is-open .cq-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.cq-menu-head {
    padding: .65rem 1rem .7rem;
    border-bottom: 1px solid rgba(212, 160, 60, .22);
    margin-bottom: .35rem;
}
.cq-menu-name { font-size: .9rem; font-weight: 600; color: #fdfaf2; }
.cq-menu-mail { font-size: .72rem; color: rgba(241, 215, 133, .6); }
.cq-menu-item {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    width: 100%;
    padding: .55rem 1rem;
    font-size: .9rem;
    color: var(--cq-cream-50);
    text-align: start;
    transition: background var(--cq-dur-fast), color var(--cq-dur-fast);
}
.cq-menu-item:hover { background: rgba(212, 160, 60, .14); color: var(--cq-gold-200); }
.cq-menu-item.is-gold { color: var(--cq-gold-300); font-weight: 600; }
