/* ==========================================================================
   FAMOUS LANDMARK - DESIGNERS2GETHER
   Ultra-Luxury UAE Interior & Architectural Atelier Design System
   MOBILE-FIRST NATIVE ARCHITECTURE & BILINGUAL (EN / AR)
   ========================================================================== */

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

:root {
  --bg-primary: #08090C;
  --bg-surface: #0E1017;
  --bg-card: rgba(18, 20, 29, 0.75);
  --bg-card-hover: rgba(26, 29, 41, 0.9);
  
  --gold-300: #F3E5AB;
  --gold-400: #E5C378;
  --gold-500: #D4AF37;
  --gold-600: #B89028;
  --gold-700: #8E6D1D;
  
  --champagne: #F5E8D3;
  --sand: #E6DFD5;
  --bronze: #9E7B56;
  --border-gold: rgba(212, 175, 55, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --font-serif: 'Cormorant Garamond', 'Cinzel', serif;
  --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic-heading: 'Cairo', 'Amiri', sans-serif;
  --font-arabic-body: 'Cairo', sans-serif;
}

/* RTL Specific Tweaks */
[dir="rtl"] {
  font-family: var(--font-arabic-body);
  text-align: right;
}

[dir="rtl"] .font-heading {
  font-family: var(--font-arabic-heading);
  letter-spacing: 0;
  font-weight: 800;
}

[dir="rtl"] .font-serif {
  font-family: 'Amiri', serif;
}

/* Base Mobile-First Resets */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: #E2E4E9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-bottom: 5.8rem; /* Space for mobile app bottom dock */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

::selection {
  background-color: rgba(212, 175, 55, 0.35);
  color: #FFFFFF;
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-600), #2A200B);
  border-radius: 999px;
}

/* Typography Utility Classes */
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}
.font-serif {
  font-family: var(--font-serif);
}
.font-arabic {
  font-family: 'Amiri', 'Cairo', serif;
}

/* Metallic Gold Gradients */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF6D6 0%, #D4AF37 50%, #AA8222 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #ECC874 0%, #D4AF37 50%, #A57D1D 100%);
}

.bg-gold-radial {
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, rgba(8, 9, 12, 0) 70%);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(14, 16, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-gold {
  background: rgba(18, 20, 30, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.glass-nav {
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

/* Mobile App Quick Highlight Stories */
.story-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #F3E5AB, #D4AF37, #8E6D1D);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0D0F16;
  border: 2px solid #08090C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
}

.story-chip:active .story-ring {
  transform: scale(0.92);
}

/* Luxury Card Hover & Touch Micro-interactions */
.luxury-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.luxury-card:active {
  transform: scale(0.985);
}

@media (hover: hover) {
  .luxury-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.12);
  }
}

/* Interactive Before & After Slider */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  border-radius: 1.25rem;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  will-change: width;
}

.ba-after-wrapper .ba-image {
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, #F3E5AB 0%, #D4AF37 50%, #F3E5AB 100%);
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0D0F16;
  border: 2px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Custom Interactive Quiz / Estimator */
.option-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 21, 30, 0.65);
  min-height: 52px;
}

.option-card:active {
  transform: scale(0.98);
}

.option-card.active {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.option-card.active .check-indicator {
  background-color: #D4AF37;
  border-color: #D4AF37;
  color: #08090C;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #E5C378 0%, #D4AF37 50%, #B89028 100%);
  color: #08090C;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
  min-height: 48px;
}

.btn-gold:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.btn-gold-outline {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ECC874;
  font-weight: 600;
  transition: all 0.25s ease;
  min-height: 48px;
}

.btn-gold-outline:active {
  transform: scale(0.97);
  background: rgba(212, 175, 55, 0.2);
}

/* Swiper Container & Reviews Slider */
.reviews-swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-bottom: 2rem !important;
}

.reviews-swiper .swiper-wrapper {
  display: flex;
  width: 100%;
  box-sizing: content-box;
}

.reviews-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3) !important;
  opacity: 0.6;
  width: 8px;
  height: 8px;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: #D4AF37 !important;
  width: 22px !important;
  border-radius: 999px !important;
  opacity: 1 !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Mobile App Bottom Navigation Dock */
.mobile-app-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  padding: 0.5rem 0.75rem max(0.5rem, env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
}

/* Language Switcher Pill */
.lang-btn {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
  color: #ECC874;
  font-weight: 700;
  transition: all 0.2s;
}
.lang-btn:active {
  transform: scale(0.95);
  background: #D4AF37;
  color: #08090C;
}

/* Marquee Ticker */
@keyframes marqueeLeft {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marqueeLeft 30s linear infinite;
}

[dir="rtl"] .ticker-track {
  animation: marqueeRight 30s linear infinite;
}
