﻿@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../fonts/fraunces-latin-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/noto-kufi-arabic-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-variable.woff2') format('woff2');
}

:root {
    --page-bg: #0b0a09;
    --surface-1: #15120f;
    --surface-2: #1e1914;
    --line-soft: rgba(232, 210, 176, 0.15);
    --line-strong: rgba(232, 210, 176, 0.28);
    --text-main: #fff9ef;
    --text-muted: #d8cbbb;
    --text-soft: #b6a897;
    --gold-1: #f4d18f;
    --gold-2: #c8944f;
    --gold-3: #8f6434;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(circle at 20% 0%, rgba(196, 142, 71, 0.12), transparent 34rem),
        linear-gradient(180deg, #100e0c 0%, #0b0a09 42%, #090807 100%);
    color: var(--text-main);
    line-height: 1.75;
}

[dir="rtl"] body {
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-display {
    font-family: 'Fraunces', 'Noto Kufi Arabic', serif;
    font-weight: 650;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--page-bg);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-3) 100%);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-1);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* WordPress and Contact Form 7 integration */
.admin-bar #navbar {
    top: 32px;
}

#mobile-menu-button {
    position: relative;
    z-index: 60;
}

.leopard-cf7 .wpcf7-form {
    margin: 0;
}

.leopard-cf7 .wpcf7-form > .space-y-5 {
    display: grid;
    gap: 1.35rem;
}

.leopard-cf7 .wpcf7-form .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.leopard-cf7 .leopard-form-label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .55rem;
    color: #d4d4d8;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
}

.leopard-cf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.leopard-cf7 .leopard-form-control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    margin: 0;
    border: 1px solid rgba(166, 124, 82, .35);
    border-radius: .9rem;
    background: rgba(0, 0, 0, .32);
    padding: .85rem 1rem;
    color: #fff;
    font: inherit;
    font-size: .9rem;
    line-height: 1.4;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.leopard-cf7 .leopard-form-control::placeholder {
    color: #71717a;
}

.leopard-cf7 .leopard-form-control:focus {
    border-color: #c8944f;
    background: rgba(0, 0, 0, .5);
    box-shadow: 0 0 0 3px rgba(200, 148, 79, .13);
}

.leopard-cf7 textarea {
    min-height: 10rem;
    resize: vertical;
}

.leopard-cf7 input[type="file"] {
    display: block;
    width: 100%;
    min-height: 4.25rem;
    border: 1px dashed rgba(166, 124, 82, .45);
    border-radius: .9rem;
    background: rgba(0, 0, 0, .25);
    padding: .85rem;
    color: #a1a1aa;
}

.leopard-cf7 input[type="file"]::file-selector-button {
    margin-inline-end: 1rem;
    border: 0;
    border-radius: 999px;
    background: #a67c52;
    padding: .65rem 1.1rem;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.leopard-cf7 .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.leopard-cf7 .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    color: #a1a1aa;
    font-size: .8rem;
    line-height: 1.7;
}

.leopard-cf7 .wpcf7-acceptance input {
    width: 1rem;
    height: 1rem;
    margin-top: .25rem;
    accent-color: #a67c52;
}

.leopard-cf7 .leopard-submit {
    display: block;
    width: 100%;
    min-height: 3.5rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #c8944f 0%, #8f6434 100%);
    padding: .9rem 1.5rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(143, 100, 52, .2);
    transition: transform .25s ease, filter .25s ease;
}

.leopard-cf7 .leopard-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.leopard-cf7 .leopard-submit:disabled {
    cursor: wait;
    opacity: .75;
}

.leopard-cf7 .wpcf7-spinner {
    display: block;
    margin: 1rem auto 0;
}

.leopard-cf7 .wpcf7-not-valid-tip {
    margin-top: .4rem;
    color: #fca5a5;
    font-size: .75rem;
}

.leopard-cf7 .wpcf7-response-output {
    margin: 1.25rem 0 0 !important;
    border-radius: .75rem;
    padding: .75rem 1rem !important;
    color: #e4e4e7;
}

@media (min-width: 640px) {
    .leopard-cf7 .wpcf7-form .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 782px) {
    .admin-bar #navbar {
        top: 46px;
    }
}

/* Global footer utilities */
.leopard-floating-actions {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

html[dir="rtl"] .leopard-floating-actions {
    right: auto;
    left: 1.5rem;
}

.leopard-floating-button {
    display: flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px !important;
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.leopard-floating-button:hover {
    transform: translateY(-3px);
}

.leopard-floating-button svg {
    width: 1.55rem;
    height: 1.55rem;
}

.leopard-floating-button--whatsapp {
    background: #25d366;
}

.leopard-floating-button--top {
    background: #171310;
    cursor: pointer;
}

/* Premium cookie consent */
.leopard-cookie-banner[hidden] {
    display: none !important;
}

.leopard-cookie-banner {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 70;
    display: grid;
    width: min(47rem, calc(100vw - 3rem));
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(244, 209, 143, .22);
    border-radius: 1.25rem;
    background:
        linear-gradient(135deg, rgba(30, 25, 20, .98), rgba(10, 9, 8, .98));
    padding: 1.15rem;
    color: #fff9ef;
    opacity: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    backdrop-filter: blur(20px);
    transform: translateY(1rem);
    transition: opacity .25s ease, transform .25s ease;
}

.leopard-cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html[dir="rtl"] .leopard-cookie-banner {
    right: auto;
    left: 1.5rem;
}

.leopard-cookie-icon {
    display: flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(244, 209, 143, .18);
    border-radius: 1rem;
    background: rgba(200, 148, 79, .1);
    font-size: 1.55rem;
}

.leopard-cookie-copy strong {
    display: block;
    font-family: "Fraunces", "Noto Kufi Arabic", serif;
    font-size: 1.15rem;
}

.leopard-cookie-copy p {
    margin: .25rem 0 0;
    color: #b6a897;
    font-size: .78rem;
    line-height: 1.75;
}

.leopard-cookie-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.leopard-cookie-actions > a {
    padding: .55rem;
    color: #d8cbbb;
    font-size: .72rem;
    white-space: nowrap;
}

.leopard-cookie-button {
    min-height: 2.7rem;
    border-radius: 999px !important;
    padding: .65rem 1rem;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.leopard-cookie-button--ghost {
    border: 1px solid rgba(244, 209, 143, .2);
    background: transparent;
    color: #d8cbbb;
}

.leopard-cookie-button--primary {
    border: 0;
    background: linear-gradient(135deg, #f4d18f, #a46d34);
    color: #17110b;
}

@media (max-width: 720px) {
    .leopard-cookie-banner {
        right: 1rem;
        bottom: 1rem;
        width: calc(100vw - 2rem);
        grid-template-columns: auto minmax(0, 1fr);
    }

    html[dir="rtl"] .leopard-cookie-banner {
        left: 1rem;
    }

    .leopard-cookie-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .leopard-cookie-actions > a {
        margin-inline-end: auto;
    }

    .leopard-floating-actions {
        right: 1rem;
        bottom: 1rem;
    }

    html[dir="rtl"] .leopard-floating-actions {
        left: 1rem;
    }
}

.text-gold-metallic {
    background: linear-gradient(135deg, #ffe7b4 0%, var(--gold-1) 32%, var(--gold-2) 70%, #f7dfab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(18, 15, 12, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.glass-dark {
    background: rgba(12, 10, 8, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-soft);
}

.glass-premium {
    background: linear-gradient(145deg, rgba(30, 25, 20, 0.92), rgba(13, 11, 9, 0.9));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 52px -24px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link-premium {
    position: relative;
}
.nav-link-premium::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, var(--gold-2) 0%, var(--gold-1) 100%);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-premium:hover::after,
.nav-link-premium.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.client-logo-premium {
    filter: grayscale(100%) opacity(48%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.client-logo-premium:hover {
    filter: grayscale(0%) opacity(100%);
}

.card-hover-glow {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-glow:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 209, 143, 0.36);
    box-shadow: 0 22px 44px -26px rgba(244, 209, 143, 0.34);
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

.carousel-track {
    animation: scroll 45s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

.carousel-track:hover {
    animation-play-state: paused;
}

body .text-zinc-100,
body .text-white {
    color: var(--text-main) !important;
}

body .text-zinc-300,
body .text-zinc-400 {
    color: var(--text-muted) !important;
}

body .text-zinc-500 {
    color: var(--text-soft) !important;
}

body .text-brand-400,
body .text-brand-500 {
    color: var(--gold-1) !important;
}

body .bg-\[\#050507\],
body .bg-\[\#08080b\] {
    background: transparent !important;
}

section {
    position: relative;
}

section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.018) !important;
    border-block: 1px solid rgba(255, 255, 255, 0.04);
}

h1,
h2,
h3 {
    letter-spacing: 0 !important;
    text-wrap: balance;
}

p,
li,
td,
label,
input,
select,
textarea,
button,
a {
    letter-spacing: 0 !important;
}

p,
li,
td {
    line-height: 1.85;
}

nav .rounded-full,
.rounded-3xl,
.rounded-\[2\.5rem\],
.rounded-\[2rem\],
.rounded-2xl {
    border-radius: 14px !important;
}

nav .max-w-7xl {
    border-color: var(--line-soft) !important;
}

img {
    image-rendering: auto;
}

.shadow-2xl,
.shadow-xl,
.shadow-lg {
    box-shadow: 0 20px 48px -26px rgba(0, 0, 0, 0.72) !important;
}

.border-zinc-800\/60,
.border-zinc-800\/80,
.border-zinc-900\/60,
.border-brand-500\/10,
.border-brand-500\/20,
.border-brand-900\/30 {
    border-color: var(--line-soft) !important;
}

.bg-zinc-900\/20,
.bg-zinc-950\/40,
.bg-zinc-900\/10,
.bg-\[\#0a0a0c\],
.bg-\[\#0d0d10\] {
    background-color: rgba(28, 23, 18, 0.72) !important;
}

.bg-gradient-to-r.from-brand-500,
.bg-brand-500 {
    background: linear-gradient(135deg, #e3b76e 0%, #a46d34 100%) !important;
}

a[class*='bg-gradient-to-r'],
button[class*='bg-gradient-to-r'] {
    color: #17110b !important;
    font-weight: 800 !important;
    box-shadow: 0 14px 28px -18px rgba(244, 209, 143, 0.75) !important;
}

a[class*='border'],
button[class*='border'],
input,
select,
textarea {
    border-color: var(--line-soft) !important;
}

input,
select,
textarea {
    background: rgba(12, 10, 8, 0.74) !important;
    color: var(--text-main) !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(244, 209, 143, 0.34) !important;
    outline-offset: 2px;
}

table {
    border-color: var(--line-soft) !important;
}

thead {
    background: rgba(196, 142, 71, 0.18) !important;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.absolute[class*='blur-'] {
    opacity: 0.22 !important;
}

.uppercase {
    letter-spacing: 0.06em !important;
}

@media (max-width: 767px) {
    body {
        line-height: 1.8;
    }

    nav {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    h1 {
        font-size: clamp(2.45rem, 12.8vw, 3.55rem) !important;
    }

    h2,
    h3 {
        font-size: clamp(2rem, 9vw, 3rem) !important;
    }

    .py-24 {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }
}

/* Strong overrides for Tailwind runtime classes */
body.font-sans,
.font-sans {
    font-family: 'Noto Kufi Arabic', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.font-display,
h1.font-display,
h2.font-display,
h3.font-display {
    font-family: 'Fraunces', 'Noto Kufi Arabic', serif !important;
    font-weight: 650 !important;
}

img[class*='object-cover'] {
    filter: saturate(1.08) contrast(1.06) brightness(1.08);
}

.absolute.inset-0[class*='bg-gradient'] {
    opacity: 0.45 !important;
}

nav img {
    filter: none !important;
}


/* Partners carousel visibility */
.carousel-track {
    animation-duration: 58s;
    width: calc(320px * 26);
}

.carousel-track > div {
    width: 320px !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.carousel-track > div > div {
    height: 128px !important;
    padding: 1.25rem 1.75rem !important;
    background: linear-gradient(145deg, rgba(36, 30, 24, 0.88), rgba(14, 12, 10, 0.92)) !important;
    border-color: rgba(244, 209, 143, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 38px -28px rgba(0, 0, 0, 0.86) !important;
}

.client-logo-premium {
    width: 100%;
    max-width: 210px !important;
    max-height: 82px !important;
    filter: grayscale(20%) opacity(88%) contrast(1.18) brightness(1.16) !important;
}

.carousel-track > div > div:hover .client-logo-premium {
    filter: grayscale(0%) opacity(100%) contrast(1.22) brightness(1.2) !important;
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .carousel-track {
        width: calc(260px * 26);
    }

    .carousel-track > div {
        width: 260px !important;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .carousel-track > div > div {
        height: 112px !important;
        padding: 1rem 1.35rem !important;
    }

    .client-logo-premium {
        max-width: 185px !important;
        max-height: 72px !important;
    }
}

/* Facilities equipment table polish */
.facilities-equipment-table {
    max-width: 1180px !important;
}

.facilities-equipment-table table {
    min-width: 880px;
    font-size: 0.95rem !important;
}

.facilities-equipment-table thead tr {
    background: linear-gradient(135deg, rgba(45, 36, 27, 0.98), rgba(18, 15, 12, 0.98)) !important;
}

.facilities-equipment-table th {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    color: #ffe4aa !important;
    font-size: 0.78rem !important;
    border-bottom: 1px solid rgba(244, 209, 143, 0.2);
}

.facilities-equipment-table td {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.facilities-equipment-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.025);
}

.facilities-equipment-table tbody tr:hover {
    background: rgba(244, 209, 143, 0.07) !important;
}

.facilities-equipment-table tbody td:first-child {
    width: 6rem;
    color: #1b1208 !important;
    font-weight: 800 !important;
    font-size: 0 !important;
}

.facilities-equipment-table tbody td:first-child::before {
    content: attr(data-qty);
    display: inline-flex;
    min-width: 2.2rem;
    height: 2.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4d18f, #b77a38);
    color: #1b1208;
    box-shadow: 0 10px 22px -16px rgba(244, 209, 143, 0.9);
}

.facilities-equipment-table tbody td:nth-child(2) {
    font-size: 1rem !important;
    font-weight: 800 !important;
}

.facilities-equipment-table tbody td:nth-child(3) {
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .facilities-equipment-table {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 12px !important;
    }

    .facilities-equipment-table table {
        min-width: 760px;
        font-size: 0.88rem !important;
    }

    .facilities-equipment-table th,
    .facilities-equipment-table td {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.facilities-equipment-table tbody td:first-child::before {
    font-size: 0.95rem !important;
    line-height: 1;
}

.partners-section {
    padding-top: 5rem !important;
    padding-bottom: 5.5rem !important;
}

.partners-section .mb-16 {
    margin-bottom: 2.25rem !important;
}

.partners-section .carousel-track {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

@media (max-width: 767px) {
    .partners-section {
        padding-top: 4rem !important;
        padding-bottom: 4.25rem !important;
    }

    .partners-section .mb-16 {
        margin-bottom: 1.75rem !important;
    }
}

/* Language switch and RTL Arabic pages */
.lang-switch,
.lang-switch-mobile {
    white-space: nowrap;
}

html[dir='rtl'] body {
    direction: rtl;
    text-align: right;
}

html[dir='rtl'] .md\:text-left {
    text-align: right !important;
}

html[dir='rtl'] .md\:justify-start {
    justify-content: flex-end !important;
}

html[dir='rtl'] .space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

html[dir='rtl'] .space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

html[dir='rtl'] .md\:divide-x > :not([hidden]) ~ :not([hidden]) {
    border-left-width: 0;
    border-right-width: 1px;
}

html[dir='rtl'] .ml-1,
html[dir='rtl'] .ml-2,
html[dir='rtl'] .ml-4 {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}

html[dir='rtl'] .left-8 {
    left: auto !important;
    right: 2rem !important;
}

html[dir='rtl'] table {
    text-align: right !important;
}

html[dir='rtl'] .facilities-equipment-table tbody td:first-child::before {
    direction: ltr;
}

html[dir='rtl'] input,
html[dir='rtl'] textarea,
html[dir='rtl'] select {
    text-align: right;
}

html[dir='rtl'] [dir='ltr'] {
    direction: ltr;
    unicode-bidi: embed;
}

/* Final Arabic spacing refinements */
nav .hidden.md\:flex.items-center.space-x-8 {
    gap: clamp(1.65rem, 2.2vw, 2.45rem) !important;
}

nav .hidden.md\:flex.items-center.space-x-8 > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.lang-switch {
    min-width: 4.9rem;
    padding-inline: 1.05rem !important;
}

html[dir='rtl'] .lang-switch {
    margin-inline-start: 0.35rem !important;
}

nav a[href*='quote-section'],
nav a[href='#quote-section'] {
    padding-inline: 1.35rem !important;
}

h1,
h2,
h3,
.font-display {
    line-height: 1.18 !important;
}

h1 .text-gold-metallic,
h2 .text-gold-metallic,
h3 .text-gold-metallic {
    line-height: 1.22 !important;
    display: inline-block;
    padding-bottom: 0.08em;
}

html[dir='rtl'] h1,
html[dir='rtl'] h2,
html[dir='rtl'] h3,
html[dir='rtl'] .font-display {
    line-height: 1.28 !important;
}

html[dir='rtl'] h1 .text-gold-metallic,
html[dir='rtl'] h2 .text-gold-metallic,
html[dir='rtl'] h3 .text-gold-metallic {
    line-height: 1.34 !important;
    padding-bottom: 0.12em;
}

@keyframes partners-loop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.partners-section .carousel-track {
    direction: ltr !important;
    width: max-content !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    position: relative;
    left: 0;
    right: auto;
    animation: partners-loop 42s linear infinite !important;
    will-change: transform;
}

html[dir='rtl'] .partners-section .w-full.overflow-hidden {
    direction: ltr !important;
}

html[dir='rtl'] .partners-section .carousel-track {
    direction: ltr !important;
    animation-name: partners-loop !important;
}

.partners-section .carousel-track > div {
    flex: 0 0 320px !important;
}

@media (max-width: 767px) {
    nav .h-20 {
        height: 4.75rem !important;
    }

    h1,
    h2,
    h3,
    .font-display {
        line-height: 1.24 !important;
    }

    html[dir='rtl'] h1,
    html[dir='rtl'] h2,
    html[dir='rtl'] h3,
    html[dir='rtl'] .font-display {
        line-height: 1.34 !important;
    }

    .partners-section .carousel-track {
        width: max-content !important;
        animation-duration: 36s !important;
    }

    .partners-section .carousel-track > div {
        flex-basis: 260px !important;
    }
}

/* Premium five-service bento */
.services-bento {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 340px;
    gap: 1.25rem !important;
}

.services-bento > div {
    position: relative;
    isolation: isolate;
    min-height: 0;
    border-color: rgba(244, 209, 143, 0.2) !important;
    background: #120f0c !important;
}

.services-bento > div::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 11;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.02) 18%, rgba(5, 5, 7, 0.38) 52%, rgba(5, 5, 7, 0.97) 100%);
}

.services-bento > div > .h-48 {
    position: absolute !important;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100% !important;
}

.services-bento > div > .h-48 img {
    transition: transform 800ms cubic-bezier(.2, .7, .2, 1), filter 500ms ease;
    filter: saturate(.9) contrast(1.04) brightness(.86);
}

.services-bento > div:hover > .h-48 img {
    transform: scale(1.055);
    filter: saturate(1.04) contrast(1.08) brightness(.94);
}

.services-bento > div > .p-6 {
    position: relative;
    z-index: 20;
    margin-top: auto;
    flex: 0 0 auto;
    padding: 1.5rem 1.65rem 1.65rem !important;
}

.services-bento h4 {
    margin-bottom: .45rem !important;
    font-size: 1.12rem !important;
}

.services-bento p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 1rem !important;
}

.services-bento a {
    width: fit-content;
}

@media (min-width: 768px) {
    .services-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: 320px;
    }

    .services-bento > div:first-child {
        grid-column: span 2;
        min-height: 430px;
    }
}

@media (min-width: 1024px) {
    .services-bento {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        grid-auto-rows: 255px;
    }

    .services-bento > div:nth-child(1) {
        grid-column: span 7;
        grid-row: span 2;
        min-height: 0;
    }

    .services-bento > div:nth-child(2),
    .services-bento > div:nth-child(3) {
        grid-column: span 5;
    }

    .services-bento > div:nth-child(4),
    .services-bento > div:nth-child(5) {
        grid-column: span 6;
        min-height: 300px;
    }

    .services-bento > div:nth-child(1) > .p-6 {
        padding: 2.25rem 2.5rem !important;
    }

    .services-bento > div:nth-child(1) h4 {
        font-size: 1.65rem !important;
    }

    .services-bento > div:nth-child(1) p {
        max-width: 38rem;
        font-size: .85rem;
        -webkit-line-clamp: 3;
    }
}

/* Arabic homepage hero balance */
.home-hero-ar h1 {
    line-height: 1.18 !important;
}

.home-hero-ar h1 .text-gold-metallic {
    padding-bottom: .16em;
    line-height: 1.22 !important;
}

@media (min-width: 768px) {
    .home-hero-ar .animate-fade-in-up {
        margin-right: 0;
        margin-left: auto;
    }

    .home-hero-ar .animate-fade-in-up > p {
        margin-right: 0;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .home-hero-ar h1 {
        line-height: 1.26 !important;
    }
}

/* Coordinated mobile navigation and services accordion */
@media (max-width: 767px) {
    #mobile-menu.mobile-nav-panel {
        align-items: stretch !important;
        gap: .65rem !important;
        padding: 7rem 1rem 2rem !important;
        background:
            radial-gradient(circle at 50% 0%, rgba(166, 124, 82, .14), transparent 20rem),
            rgba(5, 5, 7, .98) !important;
    }

    #mobile-menu.mobile-nav-panel > a,
    #mobile-menu .mobile-services-group {
        width: 100%;
        max-width: 30rem;
        margin: 0 auto !important;
    }

    #mobile-menu.mobile-nav-panel > a {
        display: flex;
        min-height: 3.35rem;
        align-items: center;
        justify-content: space-between;
        padding: .85rem 1rem !important;
        border: 1px solid rgba(244, 209, 143, .12);
        border-radius: 1rem;
        background: rgba(24, 20, 16, .72);
        color: var(--text-muted) !important;
        font-family: 'Noto Kufi Arabic', 'Plus Jakarta Sans', sans-serif !important;
        font-size: .9rem !important;
        font-weight: 650 !important;
        line-height: 1.45 !important;
        text-align: start;
        letter-spacing: 0 !important;
        text-transform: none !important;
        transition: border-color .25s ease, background .25s ease, color .25s ease;
    }

    #mobile-menu.mobile-nav-panel > a:hover,
    #mobile-menu.mobile-nav-panel > a.active {
        border-color: rgba(244, 209, 143, .4);
        background: rgba(166, 124, 82, .14);
        color: var(--gold-1) !important;
    }

    #mobile-menu .mobile-services-group {
        overflow: hidden;
        border: 1px solid rgba(244, 209, 143, .2);
        border-radius: 1rem;
        background: rgba(24, 20, 16, .78);
        transition: border-color .25s ease;
    }

    #mobile-menu .mobile-services-group.is-open {
        border-color: rgba(244, 209, 143, .42);
    }

    #mobile-menu .mobile-services-trigger {
        display: flex;
        min-height: 3.35rem;
        align-items: stretch;
    }

    #mobile-menu .mobile-services-trigger > a {
        display: flex;
        flex: 1;
        align-items: center;
        padding: .85rem 1rem;
        color: var(--text-muted) !important;
        font-family: 'Noto Kufi Arabic', 'Plus Jakarta Sans', sans-serif !important;
        font-size: .9rem !important;
        font-weight: 650 !important;
        line-height: 1.45 !important;
        text-align: start;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    #mobile-menu .mobile-services-toggle {
        display: flex;
        width: 3.35rem;
        flex: 0 0 3.35rem;
        align-items: center;
        justify-content: center;
        border-inline-start: 1px solid rgba(244, 209, 143, .12);
        color: var(--gold-1);
    }

    #mobile-menu .mobile-services-toggle svg {
        width: 1rem;
        height: 1rem;
        transition: transform .25s ease;
    }

    #mobile-menu .mobile-services-group.is-open .mobile-services-toggle svg {
        transform: rotate(180deg);
    }

    #mobile-menu .services-mobile-menu {
        margin: 0 !important;
        padding: .4rem;
        border-top: 1px solid rgba(244, 209, 143, .12);
        background: rgba(5, 5, 7, .45);
    }

    #mobile-menu .services-mobile-menu.hidden {
        display: none !important;
    }

    #mobile-menu .services-mobile-menu:not(.hidden) {
        display: grid !important;
        gap: .25rem !important;
    }

    #mobile-menu .services-mobile-menu a {
        display: flex;
        min-height: 2.75rem;
        align-items: center;
        padding: .65rem .8rem;
        border-radius: .75rem;
        color: var(--text-soft) !important;
        font-size: .76rem !important;
        font-weight: 500 !important;
        line-height: 1.5;
        text-align: start;
        transition: background .2s ease, color .2s ease;
    }

    #mobile-menu .services-mobile-menu a:hover {
        background: rgba(166, 124, 82, .14);
        color: var(--gold-1) !important;
    }

    #mobile-menu.mobile-nav-panel > a[href*="#quote-section"] {
        justify-content: center;
        border-color: transparent;
        background: linear-gradient(135deg, var(--gold-2), var(--gold-3)) !important;
        color: #17110b !important;
        box-shadow: 0 14px 30px -18px rgba(200, 148, 79, .8);
    }

    #mobile-menu.mobile-nav-panel > .lang-switch-mobile {
        justify-content: center;
        background: transparent !important;
        color: var(--gold-1) !important;
    }
}

/* Contact map isolation from global transparency rules */
.contact-map {
    isolation: isolate;
    background: #0b0a09 !important;
}

.contact-map-frame {
    z-index: 1;
    opacity: 1 !important;
    filter: grayscale(.9) invert(.9) contrast(1.02) brightness(.98);
}

.contact-map-overlay {
    z-index: 5;
    opacity: 1 !important;
    background: linear-gradient(90deg, rgba(5, 5, 7, .45) 0%, rgba(5, 5, 7, .08) 38%, transparent 64%) !important;
}

html[dir='rtl'] .contact-map-overlay {
    background: linear-gradient(270deg, rgba(5, 5, 7, .45) 0%, rgba(5, 5, 7, .08) 38%, transparent 64%) !important;
}

/* Homepage testimonials */
.leopard-testimonials {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 8rem) 1rem;
    border-top: 1px solid rgba(244, 209, 143, .08);
    background:
        radial-gradient(circle at 50% 0%, rgba(166, 124, 82, .13), transparent 38%),
        #08080b;
}

.leopard-testimonials::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 52px 52px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

.leopard-testimonials__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 80rem);
    margin-inline: auto;
}

.leopard-testimonials__heading {
    width: min(100%, 46rem);
    margin: 0 auto clamp(2.8rem, 6vw, 4.5rem);
    text-align: center;
}

.leopard-testimonials__heading > p {
    margin: 0 0 .85rem;
    color: #d2a66f;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.leopard-testimonials__heading h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(2.35rem, 5vw, 4.25rem);
    font-weight: 300;
    line-height: 1.08;
}

.leopard-testimonials__heading div {
    margin: 1.25rem auto 0;
    color: #a1a1aa;
    font-size: .98rem;
    font-weight: 300;
    line-height: 1.8;
}

.leopard-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.leopard-testimonial-card {
    position: relative;
    display: flex;
    min-height: 21rem;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid rgba(244, 209, 143, .12);
    border-radius: 1.6rem;
    background: linear-gradient(145deg, rgba(28, 24, 20, .82), rgba(12, 12, 15, .92));
    box-shadow: 0 25px 60px -38px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .035);
    transition: transform .3s ease, border-color .3s ease;
}

.leopard-testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 209, 143, .32);
}

.leopard-testimonial-card::after {
    position: absolute;
    top: 1.15rem;
    inset-inline-end: 1.55rem;
    color: rgba(244, 209, 143, .08);
    content: "“";
    font-family: Georgia, serif;
    font-size: 6.5rem;
    line-height: 1;
}

.leopard-testimonial-card__stars {
    position: relative;
    z-index: 1;
    margin-bottom: 1.4rem;
    color: #d2a66f;
    font-size: .85rem;
    letter-spacing: .25em;
}

.leopard-testimonial-card blockquote {
    position: relative;
    z-index: 1;
    flex: 1;
    margin: 0 0 2rem;
    color: #d4d4d8;
    font-size: .95rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.85;
}

.leopard-testimonial-card blockquote p {
    margin: 0;
}

.leopard-testimonial-card__client {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.leopard-testimonial-card__client img,
.leopard-testimonial-card__avatar {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(244, 209, 143, .35);
    border-radius: 50%;
    background: #211a14;
    color: #e7c590;
    object-fit: cover;
}

.leopard-testimonial-card__client strong,
.leopard-testimonial-card__client span {
    display: block;
}

.leopard-testimonial-card__client strong {
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}

.leopard-testimonial-card__client div span {
    margin-top: .3rem;
    color: #c69762;
    font-size: .72rem;
}

@media (max-width: 900px) {
    .leopard-testimonials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .leopard-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .leopard-testimonial-card {
        min-height: 0;
        padding: 1.6rem;
    }
}

.contact-map-card {
    z-index: 20;
    opacity: 1 !important;
    background: linear-gradient(145deg, #18130f 0%, #0b0907 100%) !important;
    border-color: rgba(244, 209, 143, .28) !important;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.contact-map-card h2,
.contact-map-card p,
.contact-map-card a {
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .contact-map {
        min-height: 580px !important;
    }

    .contact-map-card {
        bottom: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
    }
}
.leopard-youtube-background {
    position: absolute;
    inset: -12%;
    width: 124%;
    height: 124%;
    border: 0;
    pointer-events: none;
}
