/* ====================================================================
   الجسر العربي — Base & RTL Reset (Editorial Luxury)
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    direction: rtl;
    text-align: right;
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
}

/* 🖼️ Media Defaults */
img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
    border: none;
    outline: none;
    background: transparent;
}

button {
    cursor: pointer;
    touch-action: manipulation;
}

/* 📦 Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: 20px;
}

@media (min-width: 768px) {
    .container {
        padding-inline: 32px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding-inline: 40px;
    }
}

/* 🔤 Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.text-serif {
    font-family: var(--font-serif);
}

.text-gold {
    color: var(--color-gold-primary);
}

.text-gold-dark {
    color: var(--color-gold-dark);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-secondary {
    color: var(--color-text-secondary);
}

/* 📜 Custom Luxury Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-main);
}

::-webkit-scrollbar-thumb {
    background: #DCD5CB;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-primary);
}

/* ⚡ Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ♿ Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
