/* Explain: Base reset, typography, RTL support, and global utility styles. - */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    direction: rtl;
    font-family: var(--font-body);
}

img,
video {
    max-width: 100%;
}

a,
button,
summary {
    -webkit-tap-highlight-color: transparent;
}

button,
a.btn {
    cursor: pointer;
}

.font-heading {
    font-family: var(--font-heading);
}

.font-body {
    font-family: var(--font-body);
}

.bg-primary-grad {
    background:
        radial-gradient(circle at 18% 20%, rgba(201, 155, 69, 0.20), transparent 28%),
        linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.text-gradient {
    background: linear-gradient(to left, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.luxury-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 223, 214, 0.9);
    box-shadow: var(--shadow-soft);
}

.slider-shell {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.slider-track {
    display: flex;
    direction: ltr;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.slider-slide {
    min-width: 100%;
    direction: rtl;
}

.slider-slide img {
    user-select: none;
    -webkit-user-drag: none;
}

.slider-dot[aria-current="true"] {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.slider-dot[aria-current="false"] {
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-color);
    border-color: rgba(15, 94, 104, 0.16);
}

.service-slide-dot[aria-current="true"] {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.service-slide-dot[aria-current="false"] {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background: rgba(70, 183, 186, 0.12);
    color: var(--primary-color);
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.skip-link {
    position: absolute;
    top: -4rem;
    right: 1rem;
    z-index: 100;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    transition: top 160ms ease;
}

.skip-link:focus {
    top: 1rem;
}

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

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

@keyframes soft-pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 155, 69, 0.4); transform: scale(1); }
    70% { box-shadow: 0 0 0 12px rgba(201, 155, 69, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(201, 155, 69, 0); transform: scale(1); }
}

.pulse-btn {
    animation: soft-pulse 2s infinite;
}

/* تأثير ظهور سلس وخفيف جداً، يعتمد على كرت الشاشة (GPU) لضمان عدم التقطيع */
.animate-on-scroll {
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

@keyframes flip-ba {
    0%, 49.99% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (max-width: 767px) {
    .mobile-auto-flip {
        animation: flip-ba 4s infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slider-track,
    .animate-on-scroll {
        transition-duration: 0.01ms !important;
    }
}