/* ============================================
   THAMARA REAL ESTATE — Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&family=Noto+Kufi+Arabic:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --gold: #b8964e;
  --gold-light: #d4b878;
  --gold-dark: #8a6d35;
  --navy: #0c1929;
  --navy-light: #162840;
  --charcoal: #1a1a2e;
  --slate: #2d3a4a;
  --off-white: #f8f6f2;
  --cream: #f0ece4;
  --warm-gray: #9a9590;
  --text-dark: #1a1a2e;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(12,25,41,0.06);
  --shadow-md: 0 8px 30px rgba(12,25,41,0.10);
  --shadow-lg: 0 20px 60px rgba(12,25,41,0.14);
  --shadow-gold: 0 8px 30px rgba(184,150,78,0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-arabic: 'Noto Kufi Arabic', sans-serif;
  --max-width: 1280px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
}

body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3,
body[dir="rtl"] h4, body[dir="rtl"] h5, body[dir="rtl"] h6 {
  font-family: var(--font-arabic);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Selection --- */
::selection {
  background: var(--gold);
  color: var(--white);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h4 { font-size: 1.35rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
  padding-left: 40px;
}

body[dir="rtl"] .section-label {
  padding-left: 0;
  padding-right: 40px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

body[dir="rtl"] .section-label::before {
  left: auto;
  right: 0;
}

.section-title {
  margin-bottom: 16px;
  color: var(--navy);
}

.section-desc {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-label::before { display: none; }
.section-header .section-label { padding: 0; }
.section-header .section-desc { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

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

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

body[dir="rtl"] .btn:hover svg {
  transform: translateX(-4px);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

body[dir="rtl"] .logo {
  font-family: var(--font-arabic);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav a:hover, .nav a.active {
  color: var(--gold);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-arabic);
  letter-spacing: 0.5px;
}

.lang-switch:hover {
  background: var(--gold);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO — HOME PAGE (Premium)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(184,150,78,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184,150,78,0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12,25,41,0.92), rgba(26,26,46,0.85)),
    url('assets/images/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold));
  background-size: 80px 140px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-label::before, .hero-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

body[dir="rtl"] .hero h1 {
  font-family: var(--font-arabic);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* --- Hero Slider --- */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

/* Slide Content */
.hero-slide-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.hero-slide-content.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
}

.hero-slide-content.active .hero-label {
  animation: fadeUp 0.7s 0.2s both;
}

.hero-slide-content.active h1 {
  animation: fadeUp 0.7s 0.35s both;
}

.hero-slide-content.active .hero-subtitle {
  animation: fadeUp 0.7s 0.5s both;
}

.hero-slide-content.active .hero-buttons {
  animation: fadeUp 0.7s 0.65s both;
}

/* Slider Controls */
.hero-slider-controls {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

.slider-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

.slider-dot:hover {
  border-color: var(--gold-light);
}

/* Progress Bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  transition: width 0.1s linear;
}

@keyframes sliderProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.slider-progress-bar.animating {
  animation: sliderProgress 6s linear forwards;
}

/* ============================================
   INNER PAGE HERO
   ============================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--navy);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12,25,41,0.95), rgba(26,26,46,0.9)),
    url('assets/images/page-hero-bg.jpg') center/cover no-repeat;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero .section-label {
  color: var(--gold-light);
}

.page-hero .section-label::before {
  background: var(--gold-light);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.breadcrumb a {
  color: var(--gold-light);
  transition: var(--transition);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 100px 0;
}

.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.bg-off-white { background: var(--off-white); }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gold);
}

.stat-item {
  background: var(--navy);
  padding: 48px 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

body[dir="rtl"] .stat-number {
  font-family: var(--font-arabic);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}

.service-card .card-link:hover { gap: 10px; }

/* --- Property Cards --- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.property-img {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  overflow: hidden;
}

.property-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,25,41,0.4), transparent);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

body[dir="rtl"] .property-badge {
  left: auto;
  right: 16px;
}

.property-body {
  padding: 24px;
}

.property-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-bottom: 16px;
}

.property-meta {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.property-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
}

.blog-body {
  padding: 24px;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.blog-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--navy);
  line-height: 1.4;
}

.blog-body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}

.blog-body .card-link:hover { gap: 10px; }

/* --- Gallery Grid --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn.active, .filter-btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,25,41,0.8), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

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

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1rem;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184,150,78,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(184,150,78,0.08) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- About Content --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius-lg);
  height: 480px;
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  position: relative;
  overflow: hidden;
}

.about-img::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.3;
}

body[dir="rtl"] .about-img::after {
  right: auto;
  left: -20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.value-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
}

.value-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.value-item h4 {
  margin-bottom: 8px;
  color: var(--navy);
}

.value-item p {
  font-size: 0.9rem;
}

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.portfolio-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--navy);
}

.portfolio-card h3 .icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Management Services --- */
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mgmt-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  transition: var(--transition);
}

.mgmt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mgmt-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 12px;
}

body[dir="rtl"] .mgmt-number {
  font-family: var(--font-arabic);
}

.mgmt-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.mgmt-card p {
  font-size: 0.9rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 100%, rgba(184,150,78,0.12) 0%, transparent 60%);
}

.contact-info-card > * { position: relative; z-index: 2; }

.contact-info-card h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--white);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(184,150,78,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-detail-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--font-body);
  color: var(--white);
}

body[dir="rtl"] .contact-detail-text h4 {
  font-family: var(--font-arabic);
}

.contact-detail-text p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin: 0;
}

.contact-hours {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-hours h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: var(--font-body);
}

body[dir="rtl"] .contact-hours h4 {
  font-family: var(--font-arabic);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.hours-row span:first-child {
  color: rgba(255,255,255,0.8);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.contact-form-card > p {
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  background: var(--off-white);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,78,0.1);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cream), var(--off-white));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray);
  font-size: 1rem;
  border: 2px dashed rgba(0,0,0,0.08);
  margin-top: 48px;
}

/* ============================================
   INNER PAGE CONTENT
   ============================================ */
.page-banner-img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  margin-bottom: 48px;
  overflow: hidden;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin-bottom: 16px;
  margin-top: 48px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   ARTICLE / BLOG POST PAGE
   ============================================ */

/* Article Hero */
.article-hero {
  position: relative;
  padding: 160px 0 0;
  background: var(--navy);
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12,25,41,0.96), rgba(26,26,46,0.92)),
    url('assets/images/article-hero.jpg') center/cover no-repeat;
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-category {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
}

.article-date-top {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.article-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.25;
  margin-bottom: 20px;
}

body[dir="rtl"] .article-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.article-excerpt {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 32px;
}

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.article-read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.article-read-time svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* Featured Image */
.article-featured-img {
  max-width: 960px;
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.article-featured-img .img-wrapper {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.article-featured-img .img-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* Article Body Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 720px) 1fr;
  gap: 0;
  padding: 64px 24px 0;
}

.article-sidebar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 40px;
  position: relative;
}

body[dir="rtl"] .article-sidebar-left {
  align-items: flex-start;
  padding-right: 0;
  padding-left: 40px;
}

.article-sidebar-right {
  padding-left: 40px;
}

body[dir="rtl"] .article-sidebar-right {
  padding-left: 0;
  padding-right: 40px;
}

/* Share Buttons — Sticky Sidebar */
.article-share {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-align: center;
  margin-bottom: 4px;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: var(--white);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s ease;
  font-size: 1rem;
}

.share-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Article Body Content */
.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--navy);
  margin: 48px 0 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.article-body h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.article-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--navy);
  margin: 36px 0 14px;
}

.article-body p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.article-body strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Blockquote */
.article-body blockquote {
  margin: 40px 0;
  padding: 32px 36px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  position: relative;
  border: none;
}

.article-body blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--gold);
  border-radius: 4px;
}

body[dir="rtl"] .article-body blockquote::before {
  left: auto;
  right: 0;
}

.article-body blockquote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 0;
}

.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* Article Lists */
.article-body ul, .article-body ol {
  margin: 20px 0;
  padding-left: 0;
}

body[dir="rtl"] .article-body ul,
body[dir="rtl"] .article-body ol {
  padding-right: 0;
}

.article-body li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

body[dir="rtl"] .article-body li {
  padding-left: 0;
  padding-right: 28px;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

body[dir="rtl"] .article-body ul li::before {
  left: auto;
  right: 0;
}

.article-body ol {
  counter-reset: article-ol;
}

.article-body ol li {
  counter-increment: article-ol;
}

.article-body ol li::before {
  content: counter(article-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[dir="rtl"] .article-body ol li::before {
  left: auto;
  right: 0;
}

/* Highlight Box / Callout */
.article-callout {
  margin: 40px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-md);
  color: var(--white);
}

.article-callout h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

body[dir="rtl"] .article-callout h4 {
  font-family: var(--font-arabic);
}

.article-callout p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Inline Image in Article */
.article-img {
  margin: 40px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-img .img-block {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  border-radius: var(--radius-md);
}

.article-img figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* Two-Image Grid */
.article-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.article-img-grid .img-block {
  height: 260px;
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  border-radius: var(--radius-md);
}

/* Stats Row in Article */
.article-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.article-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--off-white);
  border-radius: var(--radius-md);
}

.article-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

body[dir="rtl"] .article-stat .number {
  font-family: var(--font-arabic);
}

.article-stat .label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.article-tag {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--off-white);
  border-radius: 100px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.article-tag:hover {
  background: var(--gold);
  color: var(--white);
}

/* Author Box (bottom) */
.article-author-box {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius-md);
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-box-info h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: var(--font-body);
}

body[dir="rtl"] .author-box-info h4 {
  font-family: var(--font-arabic);
}

.author-box-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Navigation between articles */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.article-nav-item {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  transition: all 0.35s ease;
}

.article-nav-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.article-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.article-nav-item h4 {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
  font-family: var(--font-body);
}

body[dir="rtl"] .article-nav-item h4 {
  font-family: var(--font-arabic);
}

.article-nav-item.next {
  text-align: right;
}

body[dir="rtl"] .article-nav-item.prev {
  text-align: right;
}

body[dir="rtl"] .article-nav-item.next {
  text-align: left;
}

/* Related Articles */
.related-articles {
  padding: 80px 0;
  background: var(--off-white);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.04);
  z-index: 999;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  transition: width 0.1s linear;
}

/* Responsive Article */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }
  .article-sidebar-left,
  .article-sidebar-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .article-hero-inner { padding-bottom: 48px; }
  .article-featured-img .img-wrapper { height: 300px; }
  .article-img .img-block { height: 240px; }
  .article-img-grid { grid-template-columns: 1fr; }
  .article-img-grid .img-block { height: 220px; }
  .article-stats-row { grid-template-columns: 1fr; }
  .article-author-box { flex-direction: column; text-align: center; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item.next { text-align: left; }
  body[dir="rtl"] .article-nav-item.next { text-align: right; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  padding: 80px 0 0;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

body[dir="rtl"] .footer h4 {
  font-family: var(--font-arabic);
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

body[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,150,78,0); }
  50% { box-shadow: 0 0 20px 4px rgba(184,150,78,0.25); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes revealLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes counterPulse {
  0% { transform: scale(1); color: var(--gold); }
  50% { transform: scale(1.08); color: var(--gold-light); }
  100% { transform: scale(1); color: var(--gold); }
}

/* --- Scroll-Triggered Fade Variants --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Staggered Children Animation --- */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.24s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.36s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.48s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.6s; }

/* --- Enhanced Card Hover Effects --- */
.service-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(12,25,41,0.12);
}

.service-card:hover .service-icon {
  animation: pulse 0.6s ease;
}

.property-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.property-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 28px 56px rgba(12,25,41,0.14);
}

.property-card:hover .property-img::after {
  background: linear-gradient(to top, rgba(184,150,78,0.3), transparent);
}

.blog-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.blog-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 24px 48px rgba(12,25,41,0.12);
}

/* --- Section Label Line Animation --- */
.section-label.visible::before,
.fade-in.visible .section-label::before {
  animation: revealLine 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left;
}

body[dir="rtl"] .section-label.visible::before,
body[dir="rtl"] .fade-in.visible .section-label::before {
  transform-origin: right;
}

/* --- Stats Counter Glow on Hover --- */
.stat-item {
  transition: background 0.4s ease;
}

.stat-item:hover {
  background: var(--navy-light);
}

.stat-item:hover .stat-number {
  animation: counterPulse 0.5s ease;
}

/* --- Gold Button Glow --- */
.btn-primary {
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover {
  animation: goldGlow 1.5s ease infinite;
}

/* --- Gallery Hover Zoom --- */
.gallery-item {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover {
  transform: scale(1.04);
  z-index: 2;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,150,78,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* --- Hero Parallax Shimmer --- */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(184,150,78,0.03) 50%, transparent 100%);
  animation: shimmer 8s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* --- Logo Icon Float on Hover --- */
.logo:hover .logo-icon {
  animation: float 1.2s ease infinite;
}

/* --- CTA Section Subtle Pulse --- */
.cta-section .btn-primary {
  position: relative;
}

.cta-section .btn-primary::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  opacity: 0;
  animation: goldGlow 2.5s ease-in-out infinite;
}

/* --- Contact Card Shine Effect --- */
.contact-info-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(184,150,78,0.06) 0%, transparent 60%);
  animation: shimmer 10s linear infinite;
  pointer-events: none;
}

/* --- Smooth Page Transitions --- */
.page-hero-content > * {
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.page-hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.page-hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.page-hero-content > *:nth-child(4) { animation-delay: 0.4s; }

/* --- Value/Portfolio Card Hover --- */
.value-item {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.value-item:hover .value-icon {
  background: var(--gold);
  transition: background 0.4s ease;
}

.portfolio-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
}

/* --- Management Card Number Hover --- */
.mgmt-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.mgmt-card:hover .mgmt-number {
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

/* --- Filter Button Transition --- */
.filter-btn {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-btn:hover {
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid,
  .property-grid,
  .blog-grid,
  .mgmt-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .about-grid { gap: 40px; }

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

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

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .hero-slider-controls { bottom: 80px; gap: 12px; }
  .slider-arrow { width: 40px; height: 40px; }
  .slider-arrow svg { width: 14px; height: 14px; }

  .nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
  }

  .nav.open { display: flex; }

  .nav a {
    font-size: 1.1rem;
    padding: 12px 24px;
  }

  .mobile-toggle { display: flex; }

  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }

  body[dir="rtl"] .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }

  .services-grid,
  .property-grid,
  .blog-grid,
  .mgmt-grid,
  .values-grid { grid-template-columns: 1fr; }

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

  .gallery-item.tall, .gallery-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .about-grid,
  .contact-layout,
  .portfolio-grid { grid-template-columns: 1fr; }

  .about-img { height: 300px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

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

  .stat-number { font-size: 2.2rem; }

  .form-row { grid-template-columns: 1fr; }

  .hero-buttons { flex-direction: column; }

  .contact-info-card, .contact-form-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .page-banner-img { height: 240px; }
}

/* ============================================
   LANGUAGE VISIBILITY
   ============================================ */
/* Default: hide Arabic, show English */
[data-lang="ar"] { display: none !important; }
[data-lang="en"] { display: revert !important; }

/* Arabic active */
body[data-active-lang="ar"] [data-lang="ar"] { display: revert !important; }
body[data-active-lang="ar"] [data-lang="en"] { display: none !important; }

/* English active */
body[data-active-lang="en"] [data-lang="ar"] { display: none !important; }
body[data-active-lang="en"] [data-lang="en"] { display: revert !important; }

/* Force correct display types for specific elements */
body[data-active-lang="ar"] h1[data-lang="ar"],
body[data-active-lang="ar"] h2[data-lang="ar"],
body[data-active-lang="ar"] h3[data-lang="ar"],
body[data-active-lang="ar"] h4[data-lang="ar"],
body[data-active-lang="ar"] p[data-lang="ar"],
body[data-active-lang="ar"] div[data-lang="ar"],
body[data-active-lang="ar"] label[data-lang="ar"],
body[data-active-lang="en"] h1[data-lang="en"],
body[data-active-lang="en"] h2[data-lang="en"],
body[data-active-lang="en"] h3[data-lang="en"],
body[data-active-lang="en"] h4[data-lang="en"],
body[data-active-lang="en"] p[data-lang="en"],
body[data-active-lang="en"] div[data-lang="en"],
body[data-active-lang="en"] label[data-lang="en"] {
  display: block !important;
}

body[data-active-lang="ar"] span[data-lang="ar"],
body[data-active-lang="en"] span[data-lang="en"] {
  display: inline !important;
}

body[data-active-lang="ar"] a[data-lang="ar"],
body[data-active-lang="en"] a[data-lang="en"] {
  display: inline-flex !important;
}

body[data-active-lang="ar"] input[data-lang="ar"],
body[data-active-lang="ar"] textarea[data-lang="ar"],
body[data-active-lang="en"] input[data-lang="en"],
body[data-active-lang="en"] textarea[data-lang="en"] {
  display: block !important;
}

body[data-active-lang="ar"] button[data-lang="ar"],
body[data-active-lang="en"] button[data-lang="en"] {
  display: inline-flex !important;
}

/* Nav links */
.nav a[data-lang] { display: none !important; }
body[data-active-lang="ar"] .nav a[data-lang="ar"] { display: inline-flex !important; }
body[data-active-lang="en"] .nav a[data-lang="en"] { display: inline-flex !important; }

/* Footer links */
.footer-links a[data-lang] { display: none !important; }
body[data-active-lang="ar"] .footer-links a[data-lang="ar"] { display: block !important; }
body[data-active-lang="en"] .footer-links a[data-lang="en"] { display: block !important; }
