/* ===== GLOBAL VARIABLES & RESET ===== */
:root {
    --color-emerald: #1a4d3e;
    --color-emerald-light: #2d7d5a;
    --color-emerald-dark: #0f3328;
    --color-gold: #c9a84c;
    --color-gold-light: #f5d78c;
    --color-cream: #f9f6ef;
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-charcoal: #1a1a2e;
    --color-gray: #4b5563;
    --color-gray-light: #e5e7eb;
    --color-light-yellow: #fef9e0;
    --font-heading: 'Playfair Display', 'Cairo', serif;
    --font-body: 'Inter', 'Cairo', sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 12px 40px rgba(26, 45, 62, 0.10);
    --shadow-lift: 0 24px 56px rgba(26, 45, 62, 0.18);
    --max-width: 1280px;
    --header-height: 90px;
    --touch-min: 44px; /* الحد الأدنى لحجم عناصر اللمس */
    --container-padding: 24px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== TYPOGRAPHY ===== */
.heading-lg {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.18;
}

.body-lg {
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    line-height: 1.7;
    color: var(--color-gray);
}

.body-md {
    font-size: clamp(0.95rem, 1vw, 1rem);
    line-height: 1.7;
    color: var(--color-gray);
}

.label {
    display: inline-block;
    font-size: clamp(0.7rem, 0.8vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-emerald-light);
    margin-bottom: 8px;
}

.text-gold {
    color: var(--color-gold);
}

.text-center {
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-emerald);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(26, 77, 62, 0.25);
    touch-action: manipulation;
    will-change: transform;
    min-height: var(--touch-min); /* ضمان حجم لمس مناسب */
    min-width: var(--touch-min);
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26, 77, 62, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-emerald);
    box-shadow: inset 0 0 0 2px var(--color-emerald);
}

.btn-outline:hover {
    background: var(--color-emerald);
    color: var(--color-white);
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-gold:hover {
    background: #b8943a;
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.45);
}

.btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-emerald);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.btn-white:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.btn-large {
    padding: 18px 48px;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    min-width: 200px;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-header { margin-bottom: 48px; }
.section-header p { max-width: 560px; margin-top: 8px; }
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* ===== RESPONSIVE (GLOBAL) ===== */

/* شاشات صغيرة جداً (≤480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
        --header-height: 70px;
    }
    section { padding: 48px 0; }
    .section-header { margin-bottom: 28px; }
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
        min-height: 44px;
    }
    .btn-large {
        padding: 14px 28px;
        font-size: 0.95rem;
        min-width: unset;
        width: 100%;
    }
    .heading-lg {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
    .body-lg {
        font-size: 1rem;
    }
    .body-md {
        font-size: 0.9rem;
    }
}

/* شاشات صغيرة (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --container-padding: 20px;
        --header-height: 70px;
    }
    section { padding: 60px 0; }
    .section-header { margin-bottom: 36px; }
    .btn {
        padding: 14px 32px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* شاشات متوسطة (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --container-padding: 24px;
    }
}

/* تقليل الحركة */
@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;
    }
}