/* qenart.com — QENART Pharaonic Theme */
:root {
    --primary: #B8956A;
    --primary-hover: #9A7B52;
    --primary-light: #E8DCC8;
    --accent-gold: #C9A227;
    --pharaoh-sand: #C9B896;
    --pharaoh-stone: #A89070;
    --pharaoh-dark: #0A0A0A;
    --secondary: #000000;
    --background: #E8E0D4;
    --surface: #F5F0E8;
    --text: #1A1510;
    --text-muted: #5C5348;
    --text-light: #8A8070;
    --border: #D4C9B8;
    --header-height: 80px;
    --font-en: 'Inter', sans-serif;
    --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-ar: 'Cairo', sans-serif;
}

[data-theme="dark"] {
    --background: #111827;
    --surface: #1F2937;
    --text: #F3F4F6;
    --text-muted: #9CA3AF;
    --border: #374151;
    --secondary: #F3F4F6;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-en);
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

.pharaonic-theme::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: url('/images/pharaonic/hieroglyphs-texture.png') center / 600px repeat;
    opacity: .03;
}

[dir="rtl"] body { font-family: var(--font-ar); }

a { text-decoration: none; color: inherit; transition: color .3s; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: var(--header-height);
    background: transparent;
    transition: all .3s ease;
}
.site-header.scrolled {
    background: var(--surface);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    height: 64px;
}
.site-header .navbar-brand {
    font-weight: 700; font-size: 1.5rem; color: #fff;
    padding: 0; display: flex; align-items: center;
}
.site-logo {
    height: 44px; width: auto; max-width: 140px;
    object-fit: contain; object-position: center;
    display: block; transition: opacity .25s ease;
}
/* Transparent / dark header → light (gold) logo */
.site-logo-on-dark { display: block; }
.site-logo-on-light { display: none; }
/* Scrolled / light header → dark (bronze) logo */
.site-header.scrolled .site-logo-on-dark { display: none; }
.site-header.scrolled .site-logo-on-light { display: block; }
.site-header.scrolled .navbar-brand { color: var(--secondary); }
[dir="rtl"] .site-header.scrolled .navbar-brand { color: var(--text); }
.site-header .nav-link {
    color: rgba(255,255,255,.9); font-weight: 500; font-size: .9rem;
    padding: .5rem 1rem !important;
}
.site-header.scrolled .nav-link { color: var(--text); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--primary) !important; }

.btn-primary-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary) 100%);
    border: 2px solid var(--accent-gold);
    color: #fff; font-weight: 600; padding: .6rem 1.5rem;
    border-radius: 2px; transition: all .3s;
    letter-spacing: .5px;
    box-shadow: 0 4px 20px rgba(201,162,39,.25);
}
.btn-primary-gold:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-hover); color: #fff;
    box-shadow: 0 6px 28px rgba(201,162,39,.35);
}
.btn-outline-gold {
    border: 2px solid var(--primary); color: var(--primary);
    font-weight: 600; padding: .6rem 1.5rem; border-radius: 4px; background: transparent;
}
.btn-outline-gold:hover { background: var(--primary); color: #fff; }
.btn-outline-white {
    border: 2px solid #fff; color: #fff; font-weight: 600;
    padding: .6rem 1.5rem; border-radius: 4px; background: transparent;
}
.btn-outline-white:hover { background: #fff; color: var(--secondary); }

/* Hero — Pharaonic */
.hero-section {
    min-height: 100vh; max-height: 960px;
    position: relative; display: flex; align-items: center;
    overflow: hidden;
}
.hero-pharaonic { background: var(--pharaoh-dark); }

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
    display: block;
}
.hero-hieroglyph-layer {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: url('/images/pharaonic/hieroglyphs-texture.png') center / 400px repeat;
    opacity: .06; mix-blend-mode: overlay;
}
.hero-overlay-pharaonic {
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.2) 100%),
        linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 40%, rgba(0,0,0,.5) 100%);
}
.hero-gold-border {
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 4;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--primary), var(--accent-gold), transparent);
}

.hero-vertical-tagline {
    position: absolute; right: 2.5rem; top: 50%; transform: translateY(-50%);
    flex-direction: column; align-items: center; gap: .35rem;
    z-index: 3; pointer-events: none;
    font-family: var(--font-display); font-size: .65rem; font-weight: 500;
    letter-spacing: 3px; color: rgba(201,162,39,.55);
    text-transform: uppercase;
}
[dir="rtl"] .hero-vertical-tagline {
    right: auto; left: 2.5rem;
    font-family: var(--font-ar); letter-spacing: 1px; font-size: .7rem;
}
.hero-vertical-tagline span { display: block; line-height: 1.4; }

.hero-pharaoh-ornament {
    color: var(--accent-gold); font-size: 1.5rem; margin-bottom: 1rem;
    opacity: .9; text-shadow: 0 0 20px rgba(201,162,39,.4);
}
.hero-content { position: relative; z-index: 3; color: #fff; padding-top: var(--header-height); }
.hero-overline {
    display: inline-block; font-size: .75rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase; color: var(--accent-gold);
    margin-bottom: 1rem; font-family: var(--font-display);
}
.hero-overline::before, .hero-overline::after {
    content: '◆'; font-size: .5rem; margin: 0 .5rem; opacity: .7; vertical-align: middle;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600;
    line-height: 1.15; margin-bottom: 1.25rem;
    text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero-desc { font-size: 1.125rem; opacity: .88; max-width: 560px; margin-bottom: 2rem; }
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: #fff; z-index: 2;
    cursor: pointer;
}
.hero-scroll-label {
    opacity: .85; font-size: .75rem; letter-spacing: 1px;
    text-transform: uppercase;
    animation: hero-vibrate-text 2.8s ease-in-out infinite;
}
.hero-scroll-icon {
    font-size: 1.1rem; opacity: .9;
    animation: hero-vibrate-icon 2.8s ease-in-out infinite;
}
@keyframes hero-vibrate-text {
    0%, 100% { transform: translate(0, 0); }
    15% { transform: translate(-1px, 0); }
    30% { transform: translate(1px, 0); }
    45% { transform: translate(-1px, 0); }
    60% { transform: translate(1px, 0); }
    75% { transform: translate(0, 0); }
}
@keyframes hero-vibrate-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
    55% { transform: translateY(4px) translateX(-1px); }
    60% { transform: translateY(6px) translateX(1px); }
    65% { transform: translateY(4px) translateX(-1px); }
    70% { transform: translateY(6px); }
}

/* Sections */
.section { padding: 6rem 0; }
.section-compact { padding: 4rem 0; }
.section-dark { background: var(--secondary); color: #fff; }
.section-overline {
    display: block; font-size: .75rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase; color: var(--accent-gold);
    margin-bottom: .75rem; text-align: center;
    font-family: var(--font-display);
}
.section-overline::before,
.section-overline::after {
    content: ''; display: inline-block; width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold));
    vertical-align: middle; margin: 0 1rem;
}
.section-overline::after {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600;
    text-align: center; margin-bottom: 1rem; color: var(--secondary);
}
[dir="rtl"] .section-title, [data-theme="dark"] .section-title { color: var(--text); }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; }

/* Stats */
.stat-item { text-align: center; padding: 1.5rem; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: .9rem; }

/* Service Card */
.service-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 2px; padding: 2rem; height: 100%;
    transition: transform .3s, box-shadow .3s;
    border-top: 3px solid var(--accent-gold);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.service-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .75rem; }
.service-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.service-link { color: var(--primary); font-weight: 600; font-size: .875rem; }

/* Why Us */
.why-card { text-align: center; padding: 1.5rem; }
.why-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem;
    border-radius: 50%; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary);
}
.why-card h4 { font-weight: 600; margin-bottom: .5rem; }
.why-card p { color: var(--text-muted); font-size: .9rem; }

/* Project Card */
.project-card {
    border-radius: 8px; overflow: hidden; position: relative;
    background: var(--surface); border: 1px solid var(--border);
}
.project-card img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.05); }
.project-card .img-wrap { overflow: hidden; }
.project-overlay {
    position: absolute; inset: 0; background: rgba(31,41,55,.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-info { padding: 1.25rem; }
.project-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.project-meta { font-size: .8rem; color: var(--text-muted); }

/* Before After */
.ba-slider {
    position: relative; max-width: 900px; margin: 0 auto;
    border-radius: 12px; overflow: hidden; user-select: none;
    aspect-ratio: 16/10;
}
.ba-after { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before-wrap {
    position: absolute; top: 0; left: 0; height: 100%; width: 50%;
    overflow: hidden;
}
.ba-before { height: 100%; width: auto; max-width: none; object-fit: cover; }
.ba-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
    background: #fff; cursor: ew-resize; transform: translateX(-50%); z-index: 5;
}
.ba-handle::after {
    content: '◄ ►'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); background: #fff; color: var(--secondary);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.ba-label {
    position: absolute; top: 1rem; padding: .25rem .75rem;
    background: rgba(0,0,0,.6); color: #fff; font-size: .75rem;
    border-radius: 4px; z-index: 3;
}
.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

/* Testimonials */
.testimonial-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 2rem; height: 100%;
}
.testimonial-quote { font-size: 3rem; color: var(--primary); line-height: 1; margin-bottom: .5rem; }
.testimonial-text { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; }
.testimonial-stars { color: var(--primary); margin-bottom: 1rem; }
.testimonial-author { font-weight: 600; }
.testimonial-role { font-size: .85rem; color: var(--text-muted); }

/* Partners */
.partner-logo {
    filter: grayscale(100%); opacity: .6; transition: all .3s;
    max-height: 50px; width: auto;
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; }

/* Blog Card */
.blog-card {
    background: var(--surface); border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border); height: 100%;
    transition: transform .3s, box-shadow .3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-card .date { font-size: .8rem; color: var(--text-muted); }

/* CTA Banner */
.cta-banner {
    background: var(--pharaoh-dark); color: #fff;
    padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url('/images/pharaonic/hieroglyphs-texture.png') center / 450px repeat;
    opacity: .05;
}
.cta-banner::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; position: relative;
}
.cta-banner p { opacity: .85; margin-bottom: 2rem; position: relative; }

/* Contact */
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item i { color: var(--primary); font-size: 1.25rem; width: 24px; }
.contact-form .form-control,
.quote-form .form-control,
.contact-form .form-select,
.quote-form .form-select {
    border: 1px solid var(--border); border-radius: 8px;
    padding: .75rem 1rem; background: var(--surface); color: var(--text);
}
.contact-form .form-control:focus,
.quote-form .form-control:focus,
.contact-form .form-select:focus,
.quote-form .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}

/* Footer — Pharaonic */
.site-footer {
    background: var(--pharaoh-dark); color: rgba(255,255,255,.75);
    padding: 4rem 0 2rem; position: relative;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--primary), var(--accent-gold), transparent);
}
.site-footer::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: url('/images/pharaonic/hieroglyphs-texture.png') center / 500px repeat;
    opacity: .04;
}
.site-footer h5 { color: #fff; font-weight: 600; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--primary); }
.footer-brand { font-size: 1.5rem; font-weight: 700; color: var(--accent-gold) !important; font-family: var(--font-display); letter-spacing: 2px; }

/* Floating buttons */
.fab-whatsapp {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
}
[dir="rtl"] .fab-whatsapp { right: auto; left: 1.5rem; }
.fab-top {
    position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 300;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--secondary); color: #fff; border: none;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
[dir="rtl"] .fab-top { left: auto; right: 1.5rem; }
.fab-top.visible { display: flex; }

/* Swiper overrides */
.swiper-pagination-bullet-active { background: var(--primary) !important; }

.site-header.scrolled .btn-outline-light { color: var(--text) !important; border-color: var(--border) !important; }
.site-header.scrolled .navbar-toggler i { color: var(--text) !important; }
@media (max-width: 991px) {
    .site-header .navbar-collapse {
        background: var(--surface); padding: 1rem;
        border-radius: 8px; margin-top: .5rem;
        box-shadow: 0 10px 40px rgba(0,0,0,.1);
    }
    .site-header .nav-link { color: var(--text) !important; }
    .section { padding: 4rem 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Inner Pages */
.page-hero {
    padding: calc(var(--header-height) + 3rem) 0 3rem;
    background: var(--pharaoh-dark); color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('/images/pharaonic/hieroglyphs-texture.png') center / 400px repeat;
    opacity: .05; pointer-events: none;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--primary), var(--accent-gold), transparent);
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; margin-bottom: .75rem; position: relative;
}
.page-hero-subtitle { opacity: .85; max-width: 600px; margin: 0 auto; position: relative; }
.breadcrumb-dark { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.breadcrumb-dark .breadcrumb-item a { color: rgba(255,255,255,.75); }
.breadcrumb-dark .breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-dark .breadcrumb-item.active { color: #fff; }

.content-prose { line-height: 1.8; }
.content-prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 .75rem; color: var(--secondary); }
[dir="rtl"] .content-prose h3, [data-theme="dark"] .content-prose h3 { color: var(--text); }
.content-prose p { margin-bottom: 1rem; color: var(--text-muted); }

.detail-hero-img { width: 100%; border-radius: 12px; max-height: 480px; object-fit: cover; }

.sidebar-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem; position: sticky; top: calc(var(--header-height) + 1rem);
}
.benefits-list { list-style: none; padding: 0; margin: 0; }
.benefits-list li { padding: .5rem 0; display: flex; align-items: center; gap: .75rem; }
.benefits-list i { color: var(--primary); }

.process-step { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.process-num {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
}

.faq-accordion .accordion-item { border: 1px solid var(--border); margin-bottom: .5rem; border-radius: 8px !important; overflow: hidden; }
.faq-accordion .accordion-button { background: var(--surface); color: var(--text); font-weight: 600; font-size: .95rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--primary-light); color: var(--secondary); }
.faq-accordion .accordion-body { background: var(--surface); color: var(--text-muted); }

.filter-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.filter-bar .form-select, .filter-bar .form-control { background: var(--surface); border-color: var(--border); color: var(--text); }

.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.filter-pill {
    padding: .4rem 1rem; border-radius: 50px; font-size: .875rem; font-weight: 500;
    border: 1px solid var(--border); color: var(--text-muted); transition: all .2s;
}
.filter-pill:hover, .filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.team-card { padding: 1rem; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); }

.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; height: 100%; }
.project-details dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-top: .75rem; }
.project-details dt:first-child { margin-top: 0; }
.project-details dd { font-weight: 500; margin-bottom: 0; }

.badge-tag {
    display: inline-block; padding: .25rem .75rem; border-radius: 50px; font-size: .8rem;
    background: var(--primary-light); color: var(--secondary); font-weight: 500;
}
.badge-tag:hover { background: var(--primary); color: #fff; }

.gallery-img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
.recent-post { color: inherit; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.recent-post:hover .fw-semibold { color: var(--primary); }

.cta-strip { background: var(--secondary); color: #fff; padding: 4rem 0; }

.site-header.inner-page:not(.scrolled) .navbar-brand { color: #fff; }
.site-header.inner-page:not(.scrolled) .nav-link { color: rgba(255,255,255,.9) !important; }
.site-header.inner-page:not(.scrolled) .btn-outline-light { color: #fff !important; }
.qenart-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; line-height: 1; }
.qenart-brand span { color: var(--accent-gold); }
.site-header.inner-page:not(.scrolled) .site-logo-on-light { display: none; }
.site-header.inner-page:not(.scrolled) .site-logo-on-dark { display: block; }
.site-header.inner-page.scrolled .site-logo-on-dark { display: none; }
.site-header.inner-page.scrolled .site-logo-on-light { display: block; }

/* Mobile menu open on dark header keeps light logo readable */
@media (max-width: 991px) {
    .site-header:not(.scrolled) .navbar-collapse.show ~ .navbar-brand .site-logo-on-dark,
    .site-header:not(.scrolled).nav-open .site-logo-on-dark { display: block; }
}

/* ── QENART About Page ── */
.q-section-light { background: var(--background); color: var(--text); position: relative; overflow: hidden; }
.q-section-dark { background: #000; color: #fff; position: relative; overflow: hidden; }
.q-section-white { background: #fff; color: var(--text); position: relative; overflow: hidden; }
.q-section-padded { padding: 5rem 0; }

.q-section-label {
    position: absolute; top: 1.5rem; left: 2rem;
    font-size: .75rem; color: var(--text-light); letter-spacing: .5px;
}
[dir="rtl"] .q-section-label { left: auto; right: 2rem; }

.q-sidebar {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%) rotate(-90deg);
    font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; color: rgba(0,0,0,.08);
    letter-spacing: 4px; white-space: nowrap; pointer-events: none; z-index: 1;
}
[dir="rtl"] .q-sidebar { left: auto; right: 1rem; transform: translateY(-50%) rotate(90deg); }
.q-sidebar-dark { color: rgba(255,255,255,.12); }
.q-sidebar-muted { color: rgba(0,0,0,.06); font-size: clamp(1.5rem, 4vw, 3rem); }

.q-hero {
    min-height: 70vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: calc(var(--header-height) + 2rem) 2rem 4rem;
    position: relative;
}
.q-hero-content { position: relative; z-index: 2; max-width: 700px; }
.q-overline { font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 1rem; font-size: .9rem; }
.q-section-light .q-overline { color: rgba(0,0,0,.35); }
.q-quote {
    font-family: var(--font-serif); font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3; color: var(--text); font-weight: 700;
}
.q-section-light .q-quote { color: var(--text); }

.q-splash {
    padding: 5rem 2rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
.q-splash-logo { max-width: 280px; opacity: .95; }
.q-divider {
    width: 100%; max-width: 600px; height: 6px;
    background: linear-gradient(to bottom, #333, var(--primary) 50%, #333);
    border-radius: 3px;
}
.q-splash-tagline {
    font-family: var(--font-serif); font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--accent-gold); line-height: 1.6; max-width: 500px;
}

.q-arch-hero img { width: 100%; display: block; max-height: 70vh; object-fit: cover; }

.q-heading-serif { font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; }
.q-heading-bold { font-weight: 700; font-size: 1.35rem; }
.q-body-text { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.q-body-text-light { color: var(--text-light); line-height: 1.8; }

.q-name-section { padding-left: 4rem; }
[dir="rtl"] .q-name-section { padding-left: 0; padding-right: 4rem; }
.q-name-block { position: relative; padding-left: 2rem; }
.q-vertical-label {
    writing-mode: vertical-rl; text-orientation: mixed;
    position: absolute; left: -1rem; top: 0;
    font-size: .7rem; font-weight: 600; letter-spacing: 2px; color: #fff;
}
[dir="rtl"] .q-vertical-label { left: auto; right: -1rem; writing-mode: vertical-lr; }
.q-brand-title {
    font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700; color: #fff; margin-bottom: 1rem;
}

.q-vm-icon { font-size: 2rem; color: var(--text); margin-bottom: 1rem; }
.q-vm-title { font-weight: 700; margin-bottom: 1rem; }

.q-services-list { position: relative; }
.q-watermark {
    position: absolute; inset: 0;
    background: url('/images/brand/logo-splash.png') center 20% / 40% no-repeat;
    opacity: .04; pointer-events: none;
}
.q-services-items {
    list-style: none; padding: 0; text-align: left;
    display: inline-block; margin: 0 auto;
}
[dir="rtl"] .q-services-items { text-align: right; }
.q-services-items li {
    padding: .6rem 0; color: var(--text-muted); font-size: .95rem;
    border-bottom: 1px solid var(--border);
}
.q-services-items li::before { content: '•'; color: var(--primary); margin-right: .75rem; }
[dir="rtl"] .q-services-items li::before { margin-right: 0; margin-left: .75rem; }

.q-values-intro .q-big-number {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    font-size: clamp(6rem, 15vw, 12rem); font-weight: 700; color: rgba(255,255,255,.15);
    pointer-events: none; line-height: 1;
}
.q-section-light.q-values-intro .q-big-number { color: rgba(0,0,0,.06); }

.q-value-card { padding: 1.5rem 0; }
.q-value-icon {
    width: 80px; height: 80px; border: 3px solid #000; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 1rem; font-size: 1.25rem;
}
.q-value-icon span { font-size: .65rem; font-weight: 700; margin-top: .25rem; }
.q-value-summary { font-size: .95rem; }

.q-clients-img { max-width: 100%; border-radius: 4px; }

.q-section-contact { background: #fff; position: relative; }
.q-contact-list { list-style: none; padding: 0; }
.q-contact-list li {
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 0; border-bottom: 1px solid var(--border);
    font-size: .9rem; color: var(--text-muted);
}
.q-contact-list i { width: 20px; color: var(--primary); text-align: center; }
.q-contact-list a { color: var(--text); }
.q-contact-list a:hover { color: var(--primary); }

@media (max-width: 767px) {
    .q-sidebar { display: none; }
    .q-name-section { padding-left: 0; }
    [dir="rtl"] .q-name-section { padding-right: 0; }
    .q-vertical-label { display: none; }
}

/* ── Spectrum-inspired homepage ── */
.hero-spectrum { max-height: none; min-height: 100vh; }
.hero-overlay-spectrum {
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.55) 100%),
        linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 35%, rgba(0,0,0,.7) 100%);
}
.hero-watermark {
    position: absolute; left: 4%; top: 22%; z-index: 2; pointer-events: none;
    opacity: .12; width: min(28vw, 320px);
}
.hero-watermark img { width: 100%; filter: brightness(2); }
[dir="rtl"] .hero-watermark { left: auto; right: 4%; }
.hero-content-spectrum {
    position: absolute; left: 0; right: 0; bottom: 5rem; z-index: 3;
    padding-top: 0 !important;
}
.hero-title-alt { font-family: var(--font-ar), var(--font-display); }
.hero-pager {
    position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .5rem; z-index: 4;
}
.hero-pager span {
    width: 28px; height: 2px; background: rgba(255,255,255,.35); display: block;
}
.hero-pager span.active { background: #fff; width: 40px; }

.stats-bar {
    background: #000; color: #fff; padding: 3.5rem 0;
}
.stat-item-dark .stat-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: #fff; line-height: 1;
}
.stat-item-dark .stat-icon { color: rgba(255,255,255,.7); margin: .5rem 0; font-size: 1.1rem; }
.stat-item-dark .stat-label { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: .5rem; }

.media-band { background: #fff; padding: 3rem 0; }
.media-band-frame {
    background: #000; min-height: 280px; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.media-band-frame img, .media-band-frame video {
    width: 100%; max-height: 420px; object-fit: cover; display: block;
}

.section-why { background: #E8E8E8; }
.section-light-gray { background: #F0F0F0; }
.section-dark-solid { background: #000; color: #fff; }
.section-hieroglyph {
    background: #000 url('/images/pharaonic/hieroglyphs-texture.png') center / 520px repeat;
    color: #fff; position: relative;
}
.section-hieroglyph::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.45); pointer-events: none;
}
.section-hieroglyph > .container { position: relative; z-index: 1; }

.section-title-light { color: #fff !important; }
.section-overline-light { color: rgba(255,255,255,.65) !important; }
.section-overline-light::before,
.section-overline-light::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.5)) !important; }

.dept-card {
    background: #000; border: 1px solid rgba(255,255,255,.12);
    padding: 1.75rem; height: 100%; min-height: 420px;
}
.dept-card-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; margin-bottom: 1.25rem;
}
.dept-logo { font-family: var(--font-display); font-weight: 700; letter-spacing: 1px; }
.dept-logo span { color: var(--accent-gold); }
.dept-name { font-size: .7rem; letter-spacing: 1.5px; opacity: .85; text-align: end; max-width: 55%; }
.dept-tagline { font-weight: 600; margin-bottom: .75rem; }
.dept-desc { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 1.25rem; }
.dept-list-title { font-size: .85rem; margin-bottom: .5rem; opacity: .9; }
.dept-list { list-style: none; padding: 0; margin: 0; }
.dept-list li {
    font-size: .85rem; color: rgba(255,255,255,.7);
    padding: .2rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.dept-list li::before { content: '– '; color: var(--accent-gold); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.project-tile {
    position: relative; aspect-ratio: 1; overflow: hidden; background: #111; display: block;
}
.project-tile img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
    filter: brightness(.85);
}
.project-tile:hover img { transform: scale(1.06); filter: brightness(1); }
.project-tile-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 1rem;
    background: linear-gradient(transparent 40%, rgba(0,0,0,.8));
    color: #fff; opacity: 0; transition: opacity .3s;
}
.project-tile:hover .project-tile-overlay { opacity: 1; }
.project-tile-overlay h3 { font-size: .95rem; margin: 0 0 .25rem; }
.project-tile-overlay span { font-size: .75rem; opacity: .8; }

.ba-slider-dark {
    border: 1px solid rgba(255,255,255,.15);
    max-width: 960px;
}

.vm-block h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: .75rem; }
.vm-block p { color: rgba(255,255,255,.75); }
.vm-icon { font-size: 1.75rem; color: #fff; margin-bottom: .75rem; }

.presence-map {
    position: relative; min-height: 360px;
    display: flex; flex-direction: column; gap: 1rem; padding-bottom: 8rem;
}
.presence-callout {
    display: grid; grid-template-columns: auto auto 1fr auto;
    gap: .75rem; align-items: center;
    border: 1px solid rgba(255,255,255,.2); padding: .75rem 1rem;
    background: rgba(255,255,255,.04); max-width: 420px;
}
.presence-callout-1 { margin-inline-start: 8%; }
.presence-callout-2 { margin-inline-start: 16%; }
.presence-code { font-weight: 700; letter-spacing: 1px; }
.presence-flag { font-size: 1.25rem; }
.presence-text { font-size: .75rem; color: rgba(255,255,255,.75); line-height: 1.4; }
.presence-pin { color: var(--accent-gold); }
.presence-world {
    position: absolute; bottom: 0; right: 0; width: min(100%, 520px); opacity: .9;
}
[dir="rtl"] .presence-world { right: auto; left: 0; }

.testimonial-card-spectrum {
    background: #fff; border: none; box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.partners-row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}
.partner-box {
    width: 140px; height: 70px; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center; padding: .75rem;
}
.partner-box img {
    max-width: 100%; max-height: 40px; filter: grayscale(1) brightness(1.4); opacity: .75;
}

.section-contact-temple {
    position: relative; padding: 5rem 0; overflow: hidden;
}
.contact-temple-bg { position: absolute; inset: 0; z-index: 0; }
.contact-temple-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-temple-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(8,12,24,.55);
}
.contact-panel, .contact-side-panel {
    position: relative; z-index: 2;
    background: rgba(10,16,32,.82); color: #fff;
    padding: 2rem; backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.08);
}
.contact-panel-title {
    font-family: var(--font-display); font-size: 1.75rem; text-align: center; margin-bottom: .5rem;
}
.contact-panel .form-label { color: rgba(255,255,255,.85); }
.contact-panel .form-control {
    background: rgba(30,36,48,.9); border-color: rgba(255,255,255,.15); color: #fff;
}
.contact-panel .form-control:focus {
    background: rgba(30,36,48,1); border-color: var(--accent-gold); color: #fff;
}
.contact-side-panel h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.contact-side-panel .contact-info-item a { color: #fff; }
.contact-side-panel .contact-info-item i { color: var(--accent-gold); }

@media (max-width: 991px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-content-spectrum { position: relative; bottom: auto; padding: 8rem 1.5rem 5rem !important; }
    .hero-watermark { display: none; }
}
@media (max-width: 575px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
