/*
  ╔══════════════════════════════════════════════════════════════╗
  ║  Assets Real Estate Appraisal — أصول للتقييم العقاري       ║
  ║  File: style.css                                             ║
  ║  Gold/Dark theme · RTL/LTR · Dark mode · Fully responsive   ║
  ╚══════════════════════════════════════════════════════════════╝
*/

/* ════════════════════════════════════════
   CSS VARIABLES — LIGHT MODE
════════════════════════════════════════ */
:root {
  /* Brand */
  --gold: #a09058;
  --gold-light: #c4b07a;
  --gold-dark: #7a6c3e;
  --gold-rgb: 160, 144, 88;

  /* Base */
  --white: #ffffff;
  --off-white: #f8f6f1;
  --dark: #1a1814;
  --gray: #4a4740;
  --gray-light: #e8e4dc;
  --gray-mid: #8a857e;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --text: var(--dark);
  --text-muted: var(--gray);
  --border: rgba(160, 144, 88, 0.18);
  --card-bg: var(--white);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-ar: 'Cairo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Radius */
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-sm: 6px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* ════════════════════════════════════════
   CSS VARIABLES — DARK MODE
════════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #1a1814;
  --bg-alt: #231f1a;
  --text: #f0ece4;
  --text-muted: #a09880;
  --border: rgba(160, 144, 88, 0.22);
  --card-bg: #231f1a;
  --nav-bg: rgba(26, 24, 20, 0.94);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.50);
}

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background-color 0.4s, color 0.4s;
  overflow-x: hidden;
}

/* Arabic default font */
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: var(--font-ar);
}

html[lang="en"] body,
html[dir="ltr"] body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ════════════════════════════════════════
   LAYOUT UTILITIES
════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}


.section-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.10);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-header .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.section-header:hover .section-title::after {
  width: 80px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-dark);
  color: #fff;
  border: 2px solid var(--gold-dark);
}

.btn-primary:hover {
  background: #5e5230;
  border-color: #5e5230;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-youtube {
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-youtube:hover {
  background: #ff0000;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   1. NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.logo-en {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar.scrolled .logo-en {
  color: var(--text);
}

.logo-sep {
  color: var(--gold);
  font-weight: 300;
}

.logo-ar {
  font-family: var(--font-ar);
  color: var(--gold);
  font-weight: 700;
}

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

.nav-link {
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  position: relative;
}

.navbar.scrolled .nav-link {
  color: var(--text-muted);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 12px;
  inset-inline-end: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--gold) !important;
}

.nav-link:hover {
  color: var(--gold) !important;
}

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

.ctrl-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.navbar.scrolled .ctrl-btn {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-alt);
}

.ctrl-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.theme-btn {
  min-width: 42px;
  text-align: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--text);
}

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

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

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

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  transition: max-height 0.4s ease;
  border-top: 1px solid transparent;
}

.mobile-menu.open {
  max-height: 500px;
  border-top-color: var(--border);
}

.mobile-menu ul {
  padding: 12px 24px 20px;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border);
}

.mobile-link {
  display: block;
  padding: 14px 0;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition), padding var(--transition);
}

.mobile-link:hover {
  color: var(--gold);
  padding-inline-start: 8px;
}

/* ════════════════════════════════════════
   2. HERO
════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Fallback visible before/when video hasn't loaded */
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45,36,24,0.78) 0%, rgba(26,20,16,0.88) 60%, rgba(13,11,8,0.96) 100%),
    url('assets/backgroundCh.webp') center / cover no-repeat;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ── Hero video controls ── */
.hero-video-controls {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 10;
}

.hero-vid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
}

.hero-vid-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.12);
}

.hero-vid-yt:hover {
  background: rgba(255, 0, 0, 0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 8, 0.65) 0%, rgba(13, 11, 8, 0.35) 50%, rgba(13, 11, 8, 0.88) 100%);
  z-index: 1;
}

/* Floating decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: floatShape 8s ease-in-out infinite;
  z-index: 2;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: -100px;
  right: -100px;
  animation-duration: 9s;
}

.hero-shape-2 {
  width: 250px;
  height: 250px;
  background: var(--gold-light);
  bottom: 80px;
  left: -60px;
  animation-duration: 11s;
  animation-delay: -3s;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  background: var(--gold);
  top: 40%;
  right: 15%;
  opacity: 0.04;
  animation-duration: 7s;
  animation-delay: -5s;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(var(--gold-rgb), 0.15);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.15;
}

html[lang="ar"] .hero-title {
  font-family: var(--font-ar);
  font-weight: 800;
}

.cursor {
  display: inline-block;
  color: var(--gold);
  animation: blink 1s step-end infinite;
  margin-inline-start: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-arrow {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.scroll-arrow:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(160, 144, 88, 0.35);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ════════════════════════════════════════
   3. ABOUT
════════════════════════════════════════ */
.about {
  background: var(--bg);
}

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

html[dir="rtl"] .about-grid {
  direction: rtl;
}


.about-body {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.pull-quote {
  border-inline-start: 4px solid var(--gold);
  padding: 12px 20px;
  margin: 28px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  background: rgba(var(--gold-rgb), 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

html[dir="rtl"] .pull-quote {
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.about-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.10);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/1;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(160, 144, 88, 0.18);
}

/* Gold border glow */
.about-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(160, 144, 88, 0.25);
  pointer-events: none;
  z-index: 2;
}

/* Decorative corner accent */
.about-img-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(13, 11, 8, 0.55) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s ease;
}

.about-image:hover .about-img {
  transform: scale(1.04);
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--gold-rgb), 0.4);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(var(--gold-rgb), 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}

.service-card:hover .card-icon {
  background: var(--gold);
  color: #fff;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  font-family: inherit;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.card-link:hover {
  gap: 10px;
  color: var(--gold-dark);
}

/* ── About section CTA button ── */
.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(160, 144, 88, 0.38);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  margin-top: 8px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.btn-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  border-radius: inherit;
  opacity: 1;
}

.btn-about svg {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.btn-about:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(160, 144, 88, 0.55);
  color: #fff;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
}

[dir="rtl"] .btn-about svg {
  transform: scaleX(-1);
}

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

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

/* ════════════════════════════════════════
   5. LEARN MORE
════════════════════════════════════════ */
.learn-more {
  background: var(--bg);
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #1a1410 0%, #2d2418 50%, #1a1410 100%);
  transition: opacity 0.3s;
}

.video-thumbnail:hover {
  opacity: 0.92;
}

.video-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(160, 144, 88, 0.04) 0, rgba(160, 144, 88, 0.04) 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}

.video-play-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-pulse-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.4;
  animation: pulsePing 2s ease-out infinite;
}

@keyframes pulsePing {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(var(--gold-rgb), 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-thumbnail:hover .play-icon {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(var(--gold-rgb), 0.7);
}

.video-play-label {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.video-brand-badge {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(var(--gold-rgb), 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
}


.video-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(var(--gold-rgb), 0.5);
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════
   6. KEY FIGURES
════════════════════════════════════════ */
.key-figures {
  position: relative;
  overflow: hidden;
  background-image: url('assets/backgroundm.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.key-figures::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 11, 8, 0.62) 0%, rgba(30, 20, 5, 0.55) 100%);
  z-index: 0;
}

.key-figures .container,
.key-figures .figures-grid {
  position: relative;
  z-index: 1;
}

.key-figures .section-title.figures-title {
  color: #fff;
}

.key-figures .section-header {
  position: relative;
  z-index: 1;
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.figure-item {
  text-align: center;
  padding: 40px 24px;
  border-inline-end: 1px solid rgba(var(--gold-rgb), 0.15);
  transition: background var(--transition);
}

.figure-item:last-child {
  border-inline-end: none;
}

.figure-item:hover {
  background: rgba(var(--gold-rgb), 0.06);
}

.figure-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
}

.figure-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 12px;
}

.figure-prefix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-heading);
  line-height: 1;
}

.counter {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-heading);
  line-height: 1;
}

.figure-suffix {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-heading);
  line-height: 1;
  margin-inline-start: 2px;
}

.figure-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  line-height: 1.5;
}

/* ════════════════════════════════════════
   7. TESTIMONIALS
════════════════════════════════════════ */
.testimonials {
  background: var(--bg-alt);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.test-quote {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
  border: none;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

html[dir="rtl"] .test-author {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.test-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.test-company {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
}

.carousel-dot.active::before {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ════════════════════════════════════════
   8. LANDMARKS
════════════════════════════════════════ */
.landmarks {
  background: var(--bg);
}

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

.landmark-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.landmark-img {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, hsl(var(--hue) 30% 18%) 0%, hsl(var(--hue) 25% 10%) 100%);
  overflow: hidden;
}

.landmark-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(160, 144, 88, 0.05) 0, rgba(160, 144, 88, 0.05) 1px, transparent 0, transparent 50%);
  background-size: 18px 18px;
  z-index: 1;
}

.landmark-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
  z-index: 0;
}

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

.landmark-overlay {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  padding: 32px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--transition);
}

.landmark-card:hover .landmark-overlay {
  transform: translateY(0);
  opacity: 1;
}

.landmark-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
}

.landmark-city {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ════════════════════════════════════════
   9. PARTNERS
════════════════════════════════════════ */
.partners {
  background: var(--bg-alt);
}

/* ── Partners carousel ── */
.partners-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.pcar-viewport {
  flex: 1;
  overflow: hidden;
}

.pcar-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.pcar-item {
  flex: 0 0 calc(20% - 16px);
  /* 5 visible */
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.pcar-item:hover {
  border-color: rgba(160, 144, 88, 0.5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-4px);
}

.pcar-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.pcar-item:hover img {
  transform: scale(1.05);
}

/* Arrows */
.pcar-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.pcar-arrow:hover {
  background: rgba(160, 144, 88, 0.12);
  border-color: rgba(160, 144, 88, 0.5);
  transform: scale(1.1);
}

/* Dots */
.pcar-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pcar-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pcar-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(160, 144, 88, 0.3);
  transition: background 0.3s, transform 0.3s;
}

.pcar-dot.active::before {
  background: var(--gold);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .pcar-item {
    flex: 0 0 calc(33.33% - 14px);
  }

  /* 3 visible on tablet */
}

@media (max-width: 480px) {
  .pcar-item {
    flex: 0 0 calc(50% - 10px);
  }

  /* 2 visible on mobile */
}

/* ════════════════════════════════════════
   10. CONTACT
════════════════════════════════════════ */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.12);
}

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

.form-success {
  display: none;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  text-align: center;
}

[data-theme="dark"] .form-success {
  color: var(--gold-light);
}

.form-success.show {
  display: block;
}

.form-success.error {
  background: rgba(220, 53, 69, 0.10);
  color: #c0392b;
  border-color: rgba(220, 53, 69, 0.35);
}

[data-theme="dark"] .form-success.error {
  color: #ff8a80;
}

/* File upload */
.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.file-label:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.06);
}

.file-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

html[dir="rtl"] .info-item {
  flex-direction: row-reverse;
  text-align: right;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(var(--gold-rgb), 0.10);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 12px;
}

html[dir="rtl"] .social-links {
  justify-content: flex-start;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.map-embed-wrap {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}

.map-embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ════════════════════════════════════════
   11. JOIN US
════════════════════════════════════════ */
.join-us {
  background: var(--bg-alt);
}

.join-form-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.join-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

/* ════════════════════════════════════════
   12. FAQ
════════════════════════════════════════ */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item:has(.faq-answer:not([hidden])) {
  border-color: rgba(var(--gold-rgb), 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  text-align: start;
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}

.faq-question:hover {
  background: rgba(var(--gold-rgb), 0.05);
  color: var(--gold);
}

.faq-question[aria-expanded="true"] {
  color: var(--gold);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer:not([hidden]) {
  max-height: 300px;
}

.faq-answer[hidden] {
  display: block !important;
  max-height: 0;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ════════════════════════════════════════
   13. FOOTER
════════════════════════════════════════ */
.footer {
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
  border-top: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
  background-image: url('assets/backg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, rgba(10, 8, 5, 0.72) 0%, rgba(20, 14, 4, 0.68) 100%); */
  z-index: 0;
}

.footer>* {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.85fr 1.4fr;
  gap: 28px;
  padding-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo .logo-en {
  color: #fff;
}

/* ─ Footer image col ─ */
.footer-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--gold-rgb), 0.12);
}

.footer-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.95) contrast(1.05) saturate(1.1);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.footer-img-wrap:hover img {
  transform: scale(1.04);
  filter: brightness(1) contrast(1.05) saturate(1.15);
}

/* ── Coverage card ─────────────────────────────────── */
.coverage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Cairo', sans-serif;
  text-align: center;
}
.coverage-card .coverage-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.coverage-title {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.05em;
}
.coverage-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  margin: 0 0 2px;
  line-height: 1.3;
}

.coverage-stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1.5px solid var(--gold);
  border-radius: 5px;
  background: rgba(var(--gold-rgb), 0.08);
}
.coverage-stamp__inner {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 3px;
  pointer-events: none;
}
.coverage-stamp__notch {
  position: absolute;
  background: transparent;
}
.coverage-stamp__notch--top    { top: -1.5px; left: 8px; right: 8px; height: 1.5px; background: rgba(255,255,255,0.06); }
.coverage-stamp__notch--bottom { bottom: -1.5px; left: 8px; right: 8px; height: 1.5px; background: rgba(255,255,255,0.06); }
.coverage-stamp__notch--left   { top: 8px; bottom: 8px; left: -1.5px; width: 1.5px; background: rgba(255,255,255,0.06); }
.coverage-stamp__notch--right  { top: 8px; bottom: 8px; right: -1.5px; width: 1.5px; background: rgba(255,255,255,0.06); }
.coverage-stamp span {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
  display: block;
}

.coverage-map {
  width: 100%;
  height: auto;
  display: block;
}

/* Toggle map label language groups */
[lang="ar"] .map-labels-en { display: none; }
[lang="en"] .map-labels-ar { display: none; }

.footer-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 8, 5, 0.55) 100%);
  pointer-events: none;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition), padding var(--transition);
}

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

.footer-projects {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-project {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .footer-project {
  direction: ltr;
  text-align: left;
}

.fp-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(var(--gold-rgb), 0.25);
}

.fp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-text {
  flex: 1;
  min-width: 0;
}

.fp-title {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-date {
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.7;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hours-list li strong {
  color: rgba(255, 255, 255, 0.8);
}

.hours-list li strong.closed {
  color: rgba(255, 100, 100, 0.7);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social .social-link {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
}

.footer-social .social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright,
.powered {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.powered {
  /* color: rgba(var(--gold-rgb), 0.5); */
  color: rgba(250, 248, 248, 0.35)
}

/* ════════════════════════════════════════
   FLOATING BUTTONS
════════════════════════════════════════ */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 900;
}

html[dir="rtl"] .floating-buttons {
  inset-inline-end: auto;
  inset-inline-start: 24px;
  align-items: flex-start;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.float-btn:hover {
  transform: scale(1.10);
}

.float-chat {
  background: var(--gold);
}

.float-wa {
  background: #25D366;
}

/* Pulse ring */
.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.5;
  animation: pulsePing 2.5s ease-out infinite;
}

/* Tooltip */
.float-tooltip {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

html[dir="rtl"] .float-tooltip {
  inset-inline-end: auto;
  inset-inline-start: calc(100% + 12px);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
}

.float-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-start: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-inline-start-color: var(--dark);
}

html[dir="rtl"] .float-tooltip::after {
  inset-inline-start: auto;
  inset-inline-end: 100%;
  border-inline-start-color: transparent;
  border-inline-end-color: var(--dark);
}

/* Chatbot icon toggle */
.chat-icon-close {
  display: none !important;
}

.float-chat.open .chat-icon-open {
  display: none !important;
}

.float-chat.open .chat-icon-close {
  display: flex !important;
}

/* Chat window */
.chat-window {
  position: fixed;
  bottom: 92px;
  inset-inline-end: 24px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: min(520px, calc(100vh - 180px));
  background: var(--card-bg);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideIn 0.25s ease;
  z-index: 1000;
}

html[dir="rtl"] .chat-window {
  inset-inline-end: auto;
  inset-inline-start: 24px;
  border-radius: 16px;
}

.chat-window[hidden] {
  display: none;
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--gold);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

html[dir="rtl"] .chat-header-info {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.chat-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-alt);
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 85%;
}

.msg.bot {
  align-self: flex-start;
}

.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

html[dir="rtl"] .msg.bot {
  flex-direction: row-reverse;
  align-self: flex-end;
}

html[dir="rtl"] .msg.user {
  flex-direction: row;
  align-self: flex-start;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.msg.bot .msg-bubble {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  border-bottom-left-radius: 4px;
}

html[dir="rtl"] .msg.bot .msg-bubble {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}

.msg.user .msg-bubble {
  background: var(--gold);
  color: #fff;
  border-bottom-right-radius: 4px;
}

html[dir="rtl"] .msg.user .msg-bubble {
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 4px;
}

.msg-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--text-muted, #999);
  padding-left: 4px;
  opacity: 0.7;
}

/* Streaming cursor */
.streaming-cursor {
  display: inline-block;
  animation: blink 0.7s step-end infinite;
  opacity: 1;
}
@keyframes blink { 50% { opacity: 0; } }

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-8px);
  }
}

.chat-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
  background: var(--card-bg);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input:focus {
  border-color: var(--gold);
}

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.chat-send:hover {
  background: var(--gold-dark);
  transform: scale(1.05);
}

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

  .figure-item {
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
  }

  .figure-item:nth-child(even) {
    border-inline-end: none;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
════════════════════════════════════════ */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .nav-container {
    padding: 14px 20px;
  }

  .nav-logo {
    font-size: 0.95rem;
    gap: 5px;
  }

  .nav-logo img {
    height: 34px;
  }

  .hero-content {
    padding: 100px 20px 70px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

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

  .about-image {
    order: -1;
  }

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

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

  .testimonial-card {
    padding: 28px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .join-form {
    padding: 28px 20px;
  }

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

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .chat-window {
    bottom: 84px;
    width: 340px;
    height: 480px;
    inset-inline-end: 16px;
  }

  html[dir="rtl"] .chat-window {
    inset-inline-start: 16px;
  }
}

@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 24px);
    height: calc(100vh - 130px);
    bottom: 76px;
    inset-inline-end: 12px;
    border-radius: 12px;
  }

  html[dir="rtl"] .chat-window {
    inset-inline-start: 12px;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max 480px)
════════════════════════════════════════ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

  .counter {
    font-size: 2.2rem;
  }

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

  .floating-buttons {
    inset-inline-end: 16px;
    bottom: 16px;
  }

  html[dir="rtl"] .floating-buttons {
    inset-inline-end: auto;
    inset-inline-start: 16px;
  }
}