@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --primary-lighter: #334155;
  --gold: #D4AF37;
  --gold-light: #E8C84A;
  --gold-dark: #B8960C;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --success: #10B981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-gold: 0 4px 24px rgba(212,175,55,0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  line-height: 1.3;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===================== SELECTION ===================== */
::selection { background: var(--gold); color: var(--primary); }

/* ===================== CONTAINER ===================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 0.875rem;
  }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--primary);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,175,55,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ===================== SECTION TITLE ===================== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold-dark);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-title span {
  color: var(--gold);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ===================== CARDS — LIQUID GLASS ===================== */
.card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.09),
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(0,0,0,0.04) inset;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.02) 100%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.16),
    0 1px 0 rgba(255,255,255,1) inset,
    0 0 0 1.5px rgba(212,175,55,0.25);
  border-color: rgba(212,175,55,0.35);
  background: rgba(255, 255, 255, 0.78);
}

/* Liquid Glass for dark/VIP sections */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.glass-card:hover {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.15);
}

/* Matte Gold × Dark Navy Blend */
.section-matte-gold {
  background:
    radial-gradient(ellipse at 15% 40%, rgba(212,175,55,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(212,175,55,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%,   rgba(15,23,42,0.85)  0%, transparent 70%),
    linear-gradient(155deg,
      #0f172a       0%,
      #1c1608       20%,
      #2e2008       40%,
      #3a2a0a       55%,
      #1e1607       75%,
      #0f172a       100%
    );
  position: relative;
}
.section-matte-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(212,175,55,0.03) 0px,
      rgba(212,175,55,0.03) 1px,
      transparent 1px,
      transparent 14px
    );
  pointer-events: none;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-img {
  transform: scale(1.06);
}

.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: 1.25rem;
}

/* ===================== RATING ===================== */
.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ===================== PRICE TAG ===================== */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}
.price-tag .amount {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-dark);
}
.price-tag .currency {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===================== BADGE ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary);
}
.badge-primary {
  background: var(--primary);
  color: white;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 5rem 0;
}
.section-dark {
  background: var(--primary);
  color: white;
}
.section-dark .section-title {
  color: white;
}

/* ===================== DIVIDER ===================== */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0.75rem auto 1.5rem;
  border-radius: 2px;
}

/* ===================== GRID ===================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* ===================== SWIPER OVERRIDES ===================== */
.swiper-pagination-bullet {
  background: var(--gold) !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--gold) !important;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fadeInUp { animation: fadeInUp 0.7s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ===================== GLASS EFFECT ===================== */
.glass {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1), 0 1px 0 rgba(255,255,255,0.3) inset;
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: var(--transition);
  animation: pulse-gold 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.whatsapp-float svg {
  color: white;
  width: 30px;
  height: 30px;
}

/* ===================== INPUT ===================== */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: white;
  transition: var(--transition);
  direction: rtl;
}
.input-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.input-field::placeholder {
  color: var(--text-muted);
}

select.input-field {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

/* ===================== LABEL ===================== */
.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
