/* ==========================================================================
   معلم سيراميك ورخام بالرياض - VIP Luxury Responsive System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  /* Color Palette - Premium Marble & Slate & Gold Accent */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #182234;
  --bg-card-hover: #1f2d45;
  --bg-light: #f8fafc;
  --bg-light-alt: #f1f5f9;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-muted: #475569;
  
  --primary-gold: #d97706;
  --primary-gold-hover: #b45309;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --gold-glow: rgba(245, 158, 11, 0.25);
  
  --accent-blue: #0284c7;
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #1da851;
  --phone-blue: #0284c7;
  --phone-blue-hover: #0369a1;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-gold: rgba(217, 119, 6, 0.3);
  --border-light: rgba(15, 23, 42, 0.1);

  /* Glassmorphism & Shadows */
  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 10px 30px rgba(217, 119, 6, 0.2);

  /* Typography */
  --font-heading: 'Cairo', 'Tajawal', -apple-system, sans-serif;
  --font-body: 'Tajawal', 'Cairo', -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. Reset & CSS Normalization (Strict Anti-Overflow)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding: 0.35rem 1rem;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid var(--border-color-gold);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-description {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.8;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 48px; /* Touch target accessibility */
}

.btn-gold {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.4);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-phone {
  background-color: var(--phone-blue);
  color: #ffffff;
}
.btn-phone:hover {
  background-color: var(--phone-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  background: rgba(217, 119, 6, 0.08);
  transform: translateY(-2px);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), box-shadow var(--transition-normal);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(217, 119, 6, 0.25);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.logo-badge svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.logo-subtitle {
  font-size: clamp(0.72rem, 1.5vw, 0.78rem);
  color: var(--primary-gold);
  font-weight: 600;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff;
  align-items: center;
  justify-content: center;
}
.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Mobile Drawer Navigation */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  background: var(--bg-secondary);
  z-index: 1050;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid var(--border-color-gold);
  overflow-y: auto;
}
.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.drawer-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.drawer-nav-link:hover {
  color: var(--primary-gold);
}

.drawer-contact-box {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  background: radial-gradient(circle at 70% 20%, rgba(217, 119, 6, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(2, 132, 199, 0.08) 0%, transparent 40%),
              var(--bg-primary);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--border-color-gold);
  border-radius: var(--radius-full);
  color: var(--primary-gold);
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  font-weight: 600;
  color: var(--text-muted);
}
.trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-gold);
  flex-shrink: 0;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.4), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow-lg);
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color-gold);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(100% - 20px);
}
.floating-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.floating-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.floating-text-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
}
.floating-text-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Services Section
   -------------------------------------------------------------------------- */
.services-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-color-gold);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid var(--border-color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.service-icon-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-gold);
  padding: 0;
}
.service-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}
.service-card:hover .service-btn svg {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   6. Craftsmanship & Why Us Section
   -------------------------------------------------------------------------- */
.why-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.why-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.why-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-feature-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-secondary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.why-feature-item:hover {
  border-color: var(--border-color-gold);
}

.feature-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   7. Portfolio & Gallery Section (Interactive VIP Masonry)
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.filter-btn:hover, .filter-btn.active {
  color: #ffffff;
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-gold);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
}

.zoom-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.zoom-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 700;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.lightbox-close:hover {
  background: var(--primary-gold);
}
.lightbox-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.lightbox-nav:hover {
  background: var(--primary-gold);
}
.lightbox-nav svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.lightbox-prev {
  right: -55px;
}
.lightbox-next {
  left: -55px;
}

/* --------------------------------------------------------------------------
   8. Riyadh Districts Section
   -------------------------------------------------------------------------- */
.districts-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
}

.district-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.district-card:hover {
  border-color: var(--border-color-gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.district-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.12);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.district-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.district-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. FAQ Section (Accordion)
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-color-gold);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  background: transparent;
  gap: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), background var(--transition-fast);
  color: var(--primary-gold);
  flex-shrink: 0;
}
.faq-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary-gold);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   10. CTA High Impact Banner
   -------------------------------------------------------------------------- */
.cta-banner-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  border-top: 1px solid var(--border-color-gold);
  border-bottom: 1px solid var(--border-color-gold);
}

.cta-banner-box {
  background: radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.15) 0%, transparent 70%),
              rgba(24, 34, 52, 0.9);
  border: 1px solid var(--border-color-gold);
  border-radius: var(--radius-lg);
  padding: 3.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-banner-desc {
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   11. Contact Form Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.contact-item-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-bg {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid var(--border-color-gold);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon-bg svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-item-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.98rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d97706' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 0.3rem;
  display: none;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #090d16;
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--primary-gold);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   13. Floating Action Elements & Mobile Sticky Bar
   -------------------------------------------------------------------------- */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--whatsapp-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}
.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 6.5rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-gold);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  background: var(--primary-gold);
  color: #ffffff;
  transform: translateY(-3px);
}
.back-to-top-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color-gold);
  padding: 0.75rem 1rem;
  z-index: 999;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.4);
}
.mobile-sticky-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   14. Comprehensive Breakpoints (Mobile, Tablet, Laptop, Desktop, 4K)
   -------------------------------------------------------------------------- */

/* Large Desktop & Ultra-Wide (>= 1400px) */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }
}

/* Desktop & Laptop (1025px - 1399px) */
@media (max-width: 1024px) {
  .hero-grid, .why-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-image-wrapper {
    order: -1;
  }
  .hero-img {
    height: 380px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets & Mobile Landscape (769px - 1024px) */
@media (max-width: 900px) {
  .nav-desktop, .header-cta-group .btn {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 1.75rem);
    padding-bottom: 3.5rem;
  }

  .hero-img {
    height: 320px;
  }

  .hero-floating-card {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .why-img {
    height: 320px;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .lightbox-nav {
    display: none;
  }

  .lightbox-close {
    top: -40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .floating-whatsapp-btn {
    bottom: 5.5rem;
    left: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .back-to-top-btn {
    bottom: 5.5rem;
    left: 5rem;
    width: 42px;
    height: 42px;
  }

  body {
    padding-bottom: 75px; /* Offset for sticky mobile bar */
  }
}

/* Small Mobile Screens & Portrait Orientation (<= 480px) */
@media (max-width: 480px) {
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-buttons .btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .districts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-box {
    padding: 2.5rem 1rem;
  }

  .contact-info-card, .form-wrapper {
    padding: 1.75rem 1.25rem;
  }
}

/* Ultra Small Mobile Screens (<= 360px) */
@media (max-width: 360px) {
  .districts-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    font-size: 0.78rem;
  }
}
