/* ===== Base & Typography ===== */
body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-medium, .main-nav a, .btn {
    font-weight: 500;
}

.section-title {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
    font-weight: 700;
    text-align: center;
    color: #D4AF37;
}
@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem; /* 36px */
        line-height: 2.5rem; /* 40px */
    }
}

.section-subtitle {
    margin-top: 0.5rem;
    text-align: center;
    color: #a0a0a0;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Header ===== */
.site-header {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(240, 240, 240, 0.1);
}

.main-nav a {
    transition: color 0.3s, border-bottom-color 0.3s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #D4AF37; }
.main-nav a.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.btn.primary {
    background-color: #D4AF37;
    color: #1a1a1a;
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.2), 0 4px 6px -2px rgba(212, 175, 55, 0.15);
}
.btn.primary:hover {
    background-color: #c0a032;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(212, 175, 55, 0.25), 0 6px 8px -2px rgba(212, 175, 55, 0.2);
}
.btn.ghost {
    border-color: #D4AF37;
    color: #D4AF37;
}
.btn.ghost:hover {
    background-color: #D4AF37;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* ===== NEW INTERACTIVE GLASS FOOTER ===== */
.site-footer {
    background-color: #121212;
    padding: 6rem 0 2rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 2rem; /* إضافة هامش علوي */
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    transform: translateX(-50%);
    animation: pulse-light 10s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse-light {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
}

.footer-glass-card {
    position: relative;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    isolation: isolate;
}

.footer-glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(212, 175, 55, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 2fr;
    }
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4AF37;
}
.footer-brand p {
    margin-top: 1rem;
    color: #a0a0a0;
    line-height: 1.7;
}
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Aligns to the right in RTL */
    gap: 1rem;
    margin-top: 1.5rem;
}
@media (max-width: 400px) {
    .footer-social-icons {
        justify-content: center; /* Center icons on very small screens */
    }
}
.footer-social-icons a {
    font-size: 1.5rem;
    color: #a0a0a0;
    transition: color 0.3s, transform 0.3s;
}
.footer-social-icons a:hover {
    color: #D4AF37;
    transform: scale(1.1);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 640px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.footer-links-col h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: #D4AF37;
}
.footer-links-col a {
    display: block;
    color: #a0a0a0;
    margin-bottom: 0.75rem;
    transition: color 0.3s, padding-right 0.3s;
}
.footer-links-col a:hover {
    color: #D4AF37;
    padding-right: 5px;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    color: #a0a0a0;
    font-size: 0.875rem;
}

/* ===== Form Styling ===== */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #D4AF37;
}

.form-input {
    width: 100%;
    background-color: #272727;
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #f0f0f0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder {
    color: #a0a0a0;
    opacity: 0.7;
}

.form-input:focus,
.form-input:focus-visible {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Fix for date/time input placeholder */
.form-input:invalid {
    color: #a0a0a0;
}
.form-input:valid,
.form-input[type="time"]:valid,
.form-input[type="date"]:valid {
    color: #f0f0f0;
}
input[type="date"], input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(10deg);
    cursor: pointer;
}

textarea.form-input {
    min-height: 100px;
    line-height: 1.6;
}

/* ===== Common Components ===== */
#success-message {
    position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1000;
    background-color: #D4AF37;
    color: #1a1a1a; padding: 0.75rem 1.5rem;
    border-radius: 0.5rem; font-weight: 500; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    display: flex; align-items: center; gap: 0.75rem; transition: all 0.5s;
    opacity: 0; transform: translateX(100%);
}
#success-message.show { opacity: 1; transform: translateX(0); }

/* Accordion (FAQ) */
.acc-btn {
    width: 100%; text-align: right; font-weight: 500; padding: 1rem;
    background-color: rgba(45, 55, 72, 0.5); border-radius: 0.5rem;
    display: flex;
    justify-content: space-between; align-items: center; cursor: pointer;
    transition: background-color 0.2s;
}
.acc-btn:hover { background-color: rgba(74, 85, 104, 0.5); }
.acc-btn .chevron { transition: transform 0.3s; }
.acc-btn.active .chevron { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.acc-body p { padding: 0.5rem 1rem 1rem 1rem; color: #a0a0a0; }

/* Mobile Menu Transition */
#mobile-menu {
  transition: transform .25s ease, opacity .25s ease;
}
#mobile-menu.hidden {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
}

/* =================================== */
/* ===== زر WhatsApp العائم (FAB) ===== */
/* =================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 25px;
  right: 25px; /* في RTL سيظهر تلقائياً على اليسار */
  background-color: #25D366; /* لون واتساب الرسمي */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem; /* حجم الأيقونة */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
