/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  --primary: #12223a;
  --primary-light: #1b3252;
  --accent: #c5a059;
  --accent-rgb: 197, 160, 89;
  --accent-light: #dfc18d;
  --accent-dark: #a68341;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-gray: #666666;
  --bg-light: #fcfcfc;
  --bg-creme: #f9f6f0;
  --bg-dark: #0a141f;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.12);
  --glass: rgba(255, 255, 255, 0.92);
  --border-radius: 16px;
  --nav-height: 80px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

html[dir="rtl"] body {
  font-family: 'Almarai', sans-serif;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

section {
  padding: 120px 0;
  position: relative;
}

.section-padding {
  padding: 120px 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 15px auto 0;
}


h2 {
  font-size: 2.8rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 20px 0;
  border-radius: 2px;
}

[style*="text-align: center"] h2::after {
  margin: 20px auto;
}

html[dir="rtl"] h2::after {
  right: 0;
  left: auto;
}

html[dir="rtl"] [style*="text-align: center"] h2::after {
  margin: 20px auto;
}

/* ============================================================
   NAVIGATION — FIXED & CLEAN
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  will-change: transform;
}

header .container {
  padding: 0 15px; /* Reduced from 30px */
}

header.scrolled {
  background: rgba(18, 34, 58, 0.95); /* Match var(--primary) but with transparency */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled .nav-links a {
  color: var(--white);
}

header.scrolled .logo img {
  filter: brightness(0) invert(1); /* Stay white on dark background */
  height: 50px;
}

/* Nav container */
nav.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding: 10px 15px;
  position: relative;
}

/* Logo */
.logo {
  padding: 0; /* Reduced from 15px */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo img {
  height: auto;
  max-height: 80px;
  width: auto;
  max-width: 220px;
  transition: var(--transition);
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Pure White */
}



/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 15px;
  row-gap: 8px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}



.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.has-submenu {
  position: relative;
}

.has-submenu .nav-link-parent {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.has-submenu .nav-link-parent i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.has-submenu:hover .nav-link-parent i,
.has-submenu.is-open .nav-link-parent i {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  background: var(--white);
  min-width: 200px;
  padding: 15px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  list-style: none;
}

/* RTL Support for dropdown */
html[dir="rtl"] .submenu {
  left: auto;
  right: 0;
}

.has-submenu:hover .submenu,
.has-submenu.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  width: 100%;
  padding: 0;
}

.submenu a {
  display: block !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  color: var(--primary) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}

.submenu a::after { display: none; }

.submenu a:hover {
  background: var(--bg-creme);
  color: var(--accent) !important;
}

[dir="rtl"] .submenu {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(10px);
}
[dir="rtl"] .has-submenu:hover .submenu,
[dir="rtl"] .has-submenu.is-open .submenu {
  transform: translateX(50%) translateY(0);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Desktop action buttons */
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-inline-start: 25px;
}

.lang-switch, .btn-call, .nav-actions .btn {
  height: 48px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Almarai', 'Montserrat', sans-serif;
}

.lang-switch {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-call {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  text-decoration: none;
}

.nav-actions .btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

header.scrolled .lang-switch,
header.scrolled .btn-call {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

header.scrolled .btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Hover effects */
.lang-switch:hover, .btn-call:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.nav-actions .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 13px; }
  .lang-switch, .btn-call, .nav-actions .btn { padding: 0 16px; font-size: 12px; height: 42px; }
}



@media (min-width: 801px) and (max-width: 1024px) {
  .container { padding: 0 15px; }
  .logo img { height: auto; max-height: 65px !important; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .lang-switch, .btn-call, .nav-actions .btn { padding: 0 12px; font-size: 11px; height: 38px; }
}


/* Hamburger — hidden on desktop */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  transition: var(--transition);
  z-index: 1002;
  flex-shrink: 0;
}

header.scrolled #menu-toggle {
  color: var(--white);
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */

/* Hidden by default on desktop */
.mobile-menu {
  display: none;
}

@media (max-width: 800px) {

  nav.topnav {
    padding: 0 20px;
    height: var(--nav-height);
  }
  .logo img { height: auto; max-height: 55px !important; }

  /* Always show hamburger */
  #menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide desktop nav and actions */
  .nav-links,
  .nav-actions {
    display: none !important;
  }

  /* Mobile drawer — full screen glassmorphism */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(18, 34, 58, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
  }

  html[dir="rtl"] .mobile-menu {
    transform: translateX(-100%);
  }

  .mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  html[dir="rtl"] .mobile-menu.open {
    transform: translateX(0);
  }

  header.scrolled + .mobile-menu,
  .scrolled-menu {
    background: rgba(18, 34, 58, 0.98);
  }

  .mobile-menu-inner {
    padding: calc(var(--nav-height) + 40px) 40px 60px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    flex-grow: 1;
  }

  .mobile-nav-links li {
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .mobile-menu.open li {
    opacity: 1;
    transform: translateY(0);
  }

  /* staggered animation */
  .mobile-menu.open li:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu.open li:nth-child(2) { transition-delay: 0.2s; }
  .mobile-menu.open li:nth-child(3) { transition-delay: 0.3s; }
  .mobile-menu.open li:nth-child(4) { transition-delay: 0.4s; }
  .mobile-menu.open li:nth-child(5) { transition-delay: 0.5s; }

  .mobile-nav-toggle, .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
  }

  .mobile-nav-toggle span, .mobile-nav-link {
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
  }

  .mobile-nav-toggle i {
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }

  header.scrolled + .mobile-menu .mobile-nav-toggle span,
  header.scrolled + .mobile-menu .mobile-nav-link,
  .scrolled-menu .mobile-nav-link {
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-nav-label {
    display: block;
    font-size: 1.1rem;
    color: var(--accent);
    padding: 25px 0 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .mobile-submenu {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
  }

  .mobile-has-submenu.is-open .mobile-submenu {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 20px;
  }

  .mobile-has-submenu.is-open .bi-chevron-down {
    transform: rotate(180deg) !important;
  }

  .mobile-submenu .mobile-nav-link {
    font-size: 1.4rem;
    padding: 12px 0;
    border-bottom: none;
    opacity: 0.8;
  }

  .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  header.scrolled + .mobile-menu .mobile-menu-actions,
  .scrolled-menu .mobile-menu-actions {
    border-top-color: rgba(0,0,0,0.06);
  }

  .mobile-menu-actions .btn {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
  }

  .mobile-menu-actions .lang-switch {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
  }

  .mobile-menu-actions .lang-switch:hover {
    background: rgba(255,255,255,0.1);
    color: white;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding-top: 100px !important;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 34, 58, 0.95) 0%, rgba(18, 34, 58, 0.4) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--white);
  max-width: 900px;
  margin-bottom: 30px;
  line-height: 1.1;
}

.hero-sub {
  min-height: 40vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  padding-top: var(--nav-height);
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin-bottom: 20px;
  opacity: 0.95;
  font-weight: 500;
  line-height: 1.7;
}

.hero p:last-child {
  margin-bottom: 50px;
}

html[dir="rtl"] .hero-overlay {
  background: linear-gradient(-135deg, rgba(18, 34, 58, 0.95) 0%, rgba(18, 34, 58, 0.4) 100%);
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 280px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-body {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body .tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-body ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.card-body ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-body ul li i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   FLEX RESPONSIVE
   ============================================================ */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
}

/* ============================================================
   ICON CIRCLE
   ============================================================ */
.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   BACKGROUNDS
   ============================================================ */
.bg-light  { background-color: var(--bg-light); }
.bg-creme  { background-color: var(--bg-creme); }
.bg-dark   { background-color: var(--bg-dark); color: var(--white); }

.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6 {
  color: var(--white);
}

/* ============================================================
   PHILOSOPHY CARD
   ============================================================ */
.philosophy-card {
  background: var(--primary);
  color: white;
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: 'QD';
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 8rem;
  font-weight: 900;
  opacity: 0.05;
  color: var(--accent);
  pointer-events: none;
}

/* ============================================================
   STATS
   ============================================================ */
.stat-item {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.stat-item h3 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: var(--accent);
}

html[dir="rtl"] .stat-item {
  border-left: none;
  border-right: 3px solid var(--accent);
  padding-left: 0;
  padding-right: 24px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: #fdfdfd;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 70px;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.footer-col p {
  opacity: 0.65;
  margin-bottom: 28px;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

/* ============================================================
   INTERACTIVE MAPS
   ============================================================ */
.earth-map-container {
  position: relative;
  width: 100%;
  height: 550px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.map-iframe-wrapper {
  width: 100%;
  height: 100%;
}

.explore-earth-btn {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 50px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.explore-earth-btn:hover {
  transform: translateY(-5px);
  background: var(--white);
  color: var(--accent);
}

.explore-earth-btn i {
  font-size: 1.2rem;
  color: var(--accent);
}

html[dir="rtl"] .explore-earth-btn {
  right: auto;
  left: 25px;
}
.social-links a:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 13px;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.25s ease;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Footer Contact Info */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  transform: translateX(5px);
}

html[dir="rtl"] .footer-contact-item:hover {
  transform: translateX(-5px);
}

.footer-contact-item .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.footer-contact-item .icon-box.whatsapp { background: rgba(37, 211, 102, 0.1); color: #25D366; }
.footer-contact-item .icon-box.phone { background: rgba(var(--accent-rgb, 191, 161, 114), 0.1); color: var(--accent); }
.footer-contact-item .icon-box.email { background: rgba(255, 255, 255, 0.05); color: #fff; }
.footer-contact-item .icon-box.location { background: rgba(255, 255, 255, 0.05); color: #fff; }
.footer-contact-item .icon-box.clock { background: rgba(255, 255, 255, 0.05); color: #fff; }
.footer-contact-item .icon-box.globe { background: rgba(255, 255, 255, 0.05); color: #fff; }

.footer-contact-item .text-box {
  display: flex;
  flex-direction: column;
}

.footer-contact-item .text-box span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-contact-item .text-box strong {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 700;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 36px;
  right: 36px;
  background-color: #25d366;
  color: white;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: var(--transition);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

html[dir="rtl"] .wa-float {
  right: auto;
  left: 36px;
}

/* ============================================================
   TABLET: 768–991px
   ============================================================ */
@media (max-width: 991px) {

  /* Grid collapses to 1–2 cols */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero h1 { font-size: 3.2rem; }
}

/* ============================================================
   MOBILE: ≤768px — scoped stacking (no global inline flex/grid)
   ============================================================ */
@media (max-width: 768px) {

  /* ----- Global ----- */
  .container {
    padding: 0 20px;
  }

  section,
  .section-padding {
    padding: 60px 0 !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 { font-size: 1.6rem !important; }

  /* ----- Content heroes (internal pages) — not 90vh ----- */
  .hero:not(.home-hero) {
    height: auto !important;
    min-height: clamp(360px, 55svh, 520px) !important;
    padding-top: calc(var(--nav-height, 72px) + 16px) !important;
    padding-bottom: 44px !important;
    background-attachment: scroll !important;
    background-position: center center !important;
    display: flex !important;
    align-items: center !important;
  }

  .hero:not(.home-hero) > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Homepage hero can be taller (form) without huge empty bands */
  .hero.home-hero {
    height: auto !important;
    min-height: clamp(520px, 68svh, 760px) !important;
    padding-top: calc(var(--nav-height, 72px) + 12px) !important;
    padding-bottom: 40px !important;
    background-attachment: scroll !important;
    background-position: center center !important;
    display: block !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: manual !important;
  }

  .hero p {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }

  /* ----- Grid Systems — class-based only ----- */
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* ----- Flex stacks — intended containers only ----- */
  .flex-responsive,
  .hero-split {
    flex-direction: column !important;
    gap: 24px !important;
    align-items: stretch !important;
  }

  .flex-responsive > *,
  .hero-split > .hero-content-left,
  .hero-split > .hero-content-right {
    width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
  }

  /* ----- Image Blobs / Gallery ----- */
  .live-gallery-premium {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .gallery-item {
    height: 280px !important;
  }

  /* ----- Absolute Overlays ----- */
  .desktop-only {
    display: none !important;
  }

  .hero-overlay {
    position: absolute !important;
  }

  /* Intro float card only — do not reposition all absolute UI */
  .intro-float-card {
    position: relative !important;
    bottom: unset !important;
    right: unset !important;
    left: unset !important;
    width: 100% !important;
    margin-top: 20px;
  }

  /* ----- WA float (hidden when sticky bar present via site-overrides) ----- */
  .wa-float {
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    font-size: 26px;
  }

  html[dir="rtl"] .wa-float {
    right: auto;
    left: 24px;
  }
}

/* ============================================================
   VERY SMALL: ≤480px
   ============================================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h2 { font-size: 1.65rem; }

  .hero h1 { font-size: 1.85rem; }

  .stat-grid {
    grid-template-columns: 1fr !important;
  }

  .card-body {
    padding: 18px 16px;
  }

  .contact-form {
    padding: 22px 16px;
  }
}

/* ============================================================
   RTL UTILITIES
   ============================================================ */
html[dir="rtl"] .footer-col a:hover {
  padding-left: 0;
  padding-right: 5px;
}

html[dir="rtl"] .stat-item {
  border-left: none;
  border-right: 3px solid var(--accent);
  padding-left: 0;
  padding-right: 24px;
}

/* ============================================================
   MOBILE-ONLY UTILITY
   ============================================================ */
.mobile-only {
  display: none;
}

@media (max-width: 991px) {
  .mobile-only {
    display: block;
  }
}

.desktop-only {
  display: block;
}

@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }
}

/* ============================================================
   SPIN ANIMATION (loading state)
   ============================================================ */
.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
  font-size: 2rem;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}
/* ============================================================
   SHARED FAQ ACCORDION (Minimalist Professional)
   ============================================================ */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
    transition: var(--transition);
}

.faq-item[open] {
    background: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
}

.faq-item summary {
    padding: 25px 20px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.faq-item[open] summary {
    color: var(--accent);
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .icon {
    transition: transform 0.3s ease;
    color: var(--accent);
    font-size: 1rem;
}

.faq-item[open] summary .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 50px 20px;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

.faq-answer p {
    margin: 0;
    width: 100%;
    display: block;
}

/* ============================================================
   MASTERPLAN & LOCATION SPECIAL STYLES
   ============================================================ */
.badge-accent {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(197, 160, 89, 0.1);
  color: var(--accent);
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.custom-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-check-list li {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
}

.custom-check-list li i {
  color: var(--accent);
  font-size: 1.1rem;
}

.mini-card {
  background: #fcfcfc;
  padding: 15px 25px;
  border-radius: 15px;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.mini-card:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.mini-card i {
  color: var(--accent);
}

.earth-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: 50px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.earth-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateX(-50%) translateY(-5px);
}

.relevance-card-premium {
  background: white;
  padding: 50px 40px;
  border-radius: 32px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  height: 100%;
}

.relevance-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.relevance-card-premium .card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-creme);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: var(--accent);
}

.tag-item {
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-gray);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.masterplan-frame {
  position: relative;
  padding: 20px;
}

.masterplan-frame img {
  display: block;
}

.caption-bubble {
  position: absolute;
  bottom: -40px;
  right: 0;
  background: white;
  padding: 30px 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 350px;
  border-left: 5px solid var(--accent);
}

.caption-bubble p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.zone-card {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

.zone-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.zone-card .zone-image {
  height: 240px;
  overflow: hidden;
}

.zone-card .zone-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zone-card .zone-content {
  padding: 35px;
}

.zone-card .zone-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.amenity-horizontal {
  display: flex;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.amenity-horizontal:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.amenity-horizontal .amenity-img {
  width: 180px;
  flex-shrink: 0;
}

.amenity-horizontal .amenity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amenity-horizontal .amenity-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.amenity-horizontal .amenity-info h4 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.amenity-horizontal .amenity-info p {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin: 0;
}

.live-gallery-premium {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.live-gallery-premium .gallery-item {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.live-gallery-premium .gallery-item:first-child {
  grid-row: span 2;
  height: 100%;
}

.live-gallery-premium .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-accordion-premium details {
  background: white;
  margin-bottom: 20px;
  border-radius: 24px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-accordion-premium summary {
  padding: 30px 40px;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.faq-accordion-premium summary:hover {
  background: var(--bg-creme);
}

.faq-accordion-premium summary i {
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.4s ease;
}

.faq-accordion-premium details[open] summary i {
  transform: rotate(45deg);
}

.faq-accordion-premium .content {
  padding: 0 40px 40px;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 1.05rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 50px 40px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.benefit-card .card-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 30px;
}

.benefit-card h3 {
  color: white;
  margin-bottom: 25px;
}

.clean-check-list {
  list-style: none;
  padding: 0;
}

.clean-check-list li {
  margin-bottom: 12px;
  opacity: 0.8;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.clean-check-list li i {
  color: var(--accent);
}

@media (max-width: 768px) {
  .masterplan-frame { padding: 0; }
  .caption-bubble { position: static; max-width: 100%; margin-top: 20px; }
  .amenity-horizontal { flex-direction: column; }
  .amenity-horizontal .amenity-img { width: 100%; height: 200px; }
}

[dir="rtl"] .caption-bubble {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 5px solid var(--accent);
}

[dir="rtl"] .amenity-horizontal:hover {
  transform: translateX(-10px);
}

/* Contact Info Bar Custom Styles */
.contact-info-bar {
    background: white;
    border-radius: 24px;
    padding: 30px 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
}

.contact-hero {
    margin-bottom: 100px !important;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info-item + .contact-info-item {
    border-left: 1px solid #f1f5f9;
    padding-left: 30px;
}

.contact-info-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .contact-info-bar {
        padding: 30px 20px;
        gap: 20px;
    }
    .contact-info-item + .contact-info-item {
        padding-left: 15px;
    }
}

@media (max-width: 991px) {
    .contact-info-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .contact-info-item:nth-child(2n+1) {
        border-left: none !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .contact-info-bar {
        grid-template-columns: 1fr;
        padding: 25px;
        margin-top: 50px;
        text-align: left !important;
    }
    .contact-info-item {
        border-left: none !important;
        padding-left: 0 !important;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 20px;
        justify-content: flex-start !important;
        direction: ltr !important; /* Force left to right for numbers */
    }
    .contact-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Responsive Hero Fix for Contact Page */
@media (max-width: 768px) {
    .contact-hero {
        height: auto !important;
        min-height: clamp(360px, 55svh, 520px) !important;
        display: block !important;
        padding-top: calc(var(--nav-height, 72px) + 16px) !important;
        padding-bottom: 44px !important;
        background-attachment: scroll !important;
    }
    .contact-hero .hero-content-left,
    .contact-hero .hero-content-right {
        flex: none !important;
        width: 100% !important;
        margin-bottom: 24px;
    }
    .contact-info-bar-wrapper {
        position: relative !important;
        bottom: auto !important;
        transform: none !important;
        margin-top: 40px;
    }
}
/* ============================================================
   ABOUT PAGE SPECIFIC (legacy class names retained)
   ============================================================ */
.about-ora-hero {
  background-position: center;
  background-size: cover;
  background-attachment: scroll; /* Better for performance on many devices */
}

.custom-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  color: var(--text-gray);
  font-size: 1rem;
}

.custom-list li i {
  color: var(--accent);
  font-size: 1.1rem;
}

.custom-list.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
}

@media (max-width: 768px) {
  .custom-list.two-cols {
    grid-template-columns: 1fr;
  }
}

.structure-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}

.structure-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Homepage Specific Premium Styles */
.tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-creme);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.tag-item {
  background: var(--bg-creme);
  color: var(--text-dark);
  padding: 6px 15px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.mini-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid rgba(0,0,0,0.03);
}

.mini-card i {
  color: var(--accent);
  font-size: 1.2rem;
}

.live-gallery-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.live-gallery-premium .gallery-item {
  border-radius: 30px;
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-lg);
}

.live-gallery-premium .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.live-gallery-premium .gallery-item:hover img {
  transform: scale(1.1);
}

.faq-accordion-premium details {
  background: white;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.faq-accordion-premium summary {
  padding: 25px 35px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-accordion-premium summary::-webkit-details-marker {
  display: none;
}

.faq-accordion-premium summary i {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-accordion-premium details[open] summary i {
  transform: rotate(45deg);
}

.faq-accordion-premium .content {
  padding: 0 35px 30px 35px;
  color: var(--text-gray);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .live-gallery-premium {
    grid-template-columns: 1fr;
  }
  .live-gallery-premium .gallery-item {
    height: 250px;
  }
}

/* ============================================================
   FINAL RTL & RESPONSIVE STABILITY FIXES
   ============================================================ */
html[dir="rtl"] {
    direction: rtl;
}

/* Fix for blank space around issue */
html, body {
    max-width: 100%;
    position: relative;
}

/* Ensure no horizontal scroll on reveal elements */
.reveal {
    overflow: hidden;
}

/* RTL Icon Flips */
html[dir="rtl"] .bi-chevron-right::before { content: "\f282"; }
html[dir="rtl"] .bi-chevron-left::before { content: "\f285"; }
html[dir="rtl"] .bi-arrow-right::before { content: "\f12c"; }
html[dir="rtl"] .bi-arrow-left::before { content: "\f135"; }

/* RTL Transform Fixes */
html[dir="rtl"] .footer-contact-item:hover i {
    transform: translateX(-5px);
}

html[dir="rtl"] .hover-up:hover {
    transform: translateY(-10px);
}

/* Responsive Gaps for dynamic sections */
@media (max-width: 800px) {
    .flex-responsive {
        gap: 30px !important;
    }
    .grid-2, .grid-3, .grid-4 {
        gap: 20px !important;
    }
    .section-padding {
        padding: 60px 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px !important;
    }
    .hero {
        padding: 80px 0 !important;
    }
}



/* Lead Automation Styles */

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 3rem;
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.form-title {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.lead-form-dark .form-title {
    color: #fff;
}

.lead-form-light .form-title {
    color: #1a1a1a;
}

/* Base Inputs */
.lead-form input,
.lead-form select,
.form-group-select {
    width: 100%;
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Dark Theme (Glassmorphism) */
.lead-form-dark {
    background: rgba(18, 34, 58, 0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    padding: 2.5rem;
}

.lead-form-dark .form-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.lead-form-dark input {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    height: 55px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.lead-form-dark select,
.lead-form-dark .form-group-select {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    height: 55px;
    padding-left: 20px;
    padding-right: 45px;
    font-size: 1rem;
    margin-bottom: 15px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1rem;
}

.lead-form-dark input:focus,
.lead-form-dark select:focus {
    background-color: rgba(255, 255, 255, 0.08); /* use background-color to preserve image */
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    box-shadow: none;
}

.lead-form-dark input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.lead-form-dark select:invalid,
.lead-form-dark select option[value=""][disabled] {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.lead-form-dark .btn-submit {
    height: 55px;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* RTL Specific Adjustments */
html[dir="rtl"] .lead-form-dark input {
    padding-right: 20px;
    padding-left: 20px;
}

html[dir="rtl"] .lead-form-dark select {
    padding-right: 20px;
    padding-left: 45px;
    background-position: left 1.5rem center;
}

/* Light Theme (Clean Premium) */
.lead-form-light {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.lead-form-light input,
.lead-form-light select,
.lead-form-light .form-group-select {
    background: #f8f9fa;
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.08);
}

.lead-form-light input:focus,
.lead-form-light select:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.lead-form-light input::placeholder {
    color: #666;
}

.lead-form-light select:invalid,
.lead-form-light select option[value=""][disabled] {
    color: #666;
}

.lead-form select option {
    background: #fff;
    color: #1a1a1a;
}

.lead-form-dark select option {
    background: #12223a;
    color: #fff;
}

@media (max-width: 600px) {
    .lead-form {
        padding: 2.5rem 2rem;
    }
    .lead-form-dark {
        padding: 3rem 2rem;
    }
    .lead-form-dark input,
    .lead-form-dark select,
    .lead-form-dark .btn-submit {
        height: 60px;
        font-size: 1rem;
    }
}

.lead-form button {
    padding: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #c5a059 0%, #a68545 100%);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.wa-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    color: #fff;
}

.wa-link i {
    font-size: 1.4rem;
}

/* Floating WhatsApp Version */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: #fff;
}

/* RTL Support */
[dir="rtl"] .wa-float {
    right: auto;
    left: 30px;
}


/* ============================================================
   HOME PAGE SPECIFIC STYLES
   ============================================================ */

.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 0;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 34, 58, 0.85) 0%, rgba(18, 34, 58, 0.3) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--white);
    max-width: 900px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 24px 0;
    border-radius: 2px;
}

.hero .subtitle {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero .description {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 750px;
    margin-bottom: 48px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero split — form right on desktop, below text on mobile */
.hero-split {
    width: 100%;
}

.hero-content-right {
    flex: 1;
    width: 100%;
    min-width: 0;
}

@media (max-width: 991px) {
    .home-hero .hero-split {
        flex-direction: column;
        align-items: stretch !important;
    }

    .home-hero .hero-content-left {
        flex: none;
        width: 100%;
    }

    .home-hero .hero-content-right {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .home-hero .hero-content-right {
        max-width: 420px;
        flex-shrink: 0;
    }
}



/* Explore Grid */
.explore-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.explore-card .icon-circle {
    background: var(--bg-creme);
    color: var(--accent);
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
}

/* Hero Text */
.hero .description {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 750px;
    margin-bottom: 48px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Discover Section */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.discovery-item {
    padding: 22px;
    background: var(--bg-creme);
    border-radius: 12px;
    transition: var(--transition);
}

.discovery-item h4 {
    margin-bottom: 9px;
    color: var(--primary);
    font-size: 1rem;
}

.discovery-item p {
    font-size: 0.83rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 { animation: fadeIn 0.8s ease-out 0.2s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.8s ease-out 0.4s forwards; opacity: 0; }
.fade-in-delay-3 { animation: fadeIn 0.8s ease-out 0.6s forwards; opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Lines */
.section-padding h2::after {
    margin: 20px auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero.home-hero {
        text-align: center;
        min-height: clamp(520px, 68svh, 760px);
        background-attachment: scroll;
    }
    
    .hero h1::after {
        margin: 24px auto;
    }

    .hero-actions,
    .hero-btns {
        justify-content: center;
    }
    
    .intro-float-card {
        margin-left: 0;
        margin: -40px auto 0;
    }

    .discovery-grid {
        grid-template-columns: 1fr;
    }
}


/* Qatari Diar Projects in Egypt — site overrides */

.logo-text {
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1.25;
  max-width: 220px;
}

.logo-text .logo-name {
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.logo-text .logo-tag {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

header.scrolled .logo-text .logo-name {
  color: var(--primary);
}

header.scrolled .logo-text .logo-tag {
  color: var(--text-gray);
}

.philosophy-card::before {
  content: 'QD';
}

.compliance-banner {
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-gray);
}

.compliance-banner strong {
  color: var(--primary);
}

/* Micro compliance note — below hero, before first content section */
.micro-compliance-wrap {
  padding: 14px 0 6px;
  background: var(--bg-creme);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.micro-compliance {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-gray);
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}

/* Project cards — aligned CTAs */
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.card.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card.project-card .card-body {
  flex: 1;
}

.card.project-card .project-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* Gallery grid — consistent aspect ratio */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-grid__item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #eee;
}

.gallery-grid__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Location card */
.location-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
  border: 1px solid #eee;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.location-card__visual {
  min-height: 220px;
  background: var(--bg-creme);
}

.location-card__visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
}

.location-card__body {
  padding: 28px 28px 28px 0;
  display: flex;
  align-items: center;
}

.location-card__body p {
  margin: 0;
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Language switcher */
.lang-switch {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  color: var(--accent);
  border-color: rgba(197, 160, 89, 0.45);
}

header.scrolled .lang-switch {
  color: var(--text-gray);
  border-color: #e5e5e5;
}

header.scrolled .lang-switch:hover {
  color: var(--accent);
}

/* WhatsApp float with supporting note */
.wa-float-wrap {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 220px;
}

.wa-float-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-gray);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: right;
}

.wa-float-wrap .wa-float {
  position: static;
}

html[dir="rtl"] .wa-float-wrap {
  right: auto;
  left: 36px;
  align-items: flex-start;
}

html[dir="rtl"] .wa-float-note {
  text-align: left;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 14px;
  background: #fff;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.faq-item p {
  color: var(--text-gray);
  margin: 0;
  line-height: 1.65;
}

.inquiry-form.lead-form-light {
  background: var(--bg-creme);
  border: 1px solid #eee;
  border-radius: 24px;
  padding: 2rem;
}

.inquiry-form .form-field {
  margin-bottom: 1rem;
}

.inquiry-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.inquiry-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 1rem;
}

.inquiry-form input[type="radio"],
.inquiry-form input[type="checkbox"] {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--accent, #c9a227);
}

.inquiry-form .form-field--checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.inquiry-form .form-field--checkbox input {
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  margin-top: 4px;
  flex: 0 0 auto;
}

.inquiry-form .form-field--checkbox label {
  font-weight: 500;
  margin: 0;
}

.form-notice {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.55;
  margin: 1rem 0;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status.is-error {
  color: #b42318;
}

.footer-disclaimer-block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding-top: 32px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-disclaimer-block p {
  margin-bottom: 12px;
}

.footer-disclaimer-block p:last-child {
  margin-bottom: 0;
}

footer .footer-grid {
  gap: 36px 28px;
}

footer .footer-bottom {
  margin-top: 36px;
  padding-top: 28px;
}

/* Social links — footer & contact only */
.social-follow {
  margin-top: 0;
}

.social-follow__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.social-follow__note {
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 0.65rem;
  max-width: 28rem;
}

.social-follow--footer .social-follow__label {
  color: rgba(255, 255, 255, 0.5);
}

.social-follow--footer .social-follow__note {
  color: rgba(255, 255, 255, 0.4);
}

.social-follow--contact {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #eee;
}

.social-follow--contact .social-follow__label {
  color: var(--text-gray);
}

.social-follow--contact .social-follow__note {
  color: var(--text-gray);
}

.social-links--subtle {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.social-links--subtle a {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.social-links--subtle a:hover {
  background: none;
  transform: none;
  color: var(--accent);
}

.social-follow--contact .social-links--subtle a {
  color: var(--primary);
}

.social-follow--contact .social-links--subtle a:hover {
  color: var(--accent);
}

.footer-bottom-flex {
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-bottom-social {
  flex: 1 1 280px;
}

.footer-bottom-flex > p {
  flex: 0 0 auto;
  margin: 0;
}

/* Scroll reveal: hero content visible on first paint (does not depend on JS) */
.hero .container.reveal,
.hero .compliance-banner.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Hero inquiry form (above the fold) */
.hero-form-container {
  background: rgba(255, 255, 255, 0.02);
  padding: 5px;
  border-radius: 32px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
}

.inquiry-form--hero.lead-form-dark {
  max-width: none;
  margin: 0;
  padding: 2rem 1.75rem;
}

.inquiry-form--hero.lead-form-dark .form-title {
  margin-bottom: 1.25rem;
}

.inquiry-form--hero.lead-form-dark label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.inquiry-form--hero.lead-form-dark .form-field {
  margin-bottom: 0.85rem;
}

.inquiry-form--hero.lead-form-dark .form-field--checkbox label {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.inquiry-form--hero.lead-form-dark .form-field--checkbox label a {
  color: var(--accent);
}

.inquiry-form--hero.lead-form-dark .form-notice {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.inquiry-form--hero.lead-form-dark textarea {
  min-height: 72px;
  resize: vertical;
}

/* Floating WhatsApp — site-wide, above footer scroll */
.wa-float--pulse {
  animation: wa-float-pulse 2.5s ease-out infinite;
}

@keyframes wa-float-pulse {
  0% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .wa-float-wrap {
    bottom: 20px;
    right: 18px;
    max-width: 180px;
  }

  html[dir="rtl"] .wa-float-wrap {
    left: 18px;
  }

  .wa-float-wrap .wa-float {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .wa-float-note {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-card__body {
    padding: 20px;
  }

  .contact-main {
    padding: 40px 0 48px;
  }

  .contact-hero {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }

  .contact-main__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-form-card {
    order: 1;
  }

  .contact-info-card {
    order: 2;
  }

  .contact-project-strip {
    order: 3;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-wa-strip {
    order: 4;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .contact-trust-list {
    grid-template-columns: 1fr;
  }
}

/* Contact page — luxury layout */
.contact-hero {
  position: relative;
  width: 100%;
  height: 460px;
  min-height: 460px;
  max-height: 500px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #071223;
  background-image: var(--contact-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(7, 18, 35, 0.55),
    rgba(7, 18, 35, 0.35)
  );
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.contact-hero__content {
  color: #fff;
  max-width: 720px;
}

.contact-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
}

.contact-crumb__link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-crumb__link:hover {
  color: #fff;
}

.contact-crumb__sep {
  color: rgba(197, 160, 89, 0.75);
  font-weight: 400;
  user-select: none;
}

.contact-crumb__current {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.contact-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.65rem);
  margin: 0 0 12px;
  line-height: 1.15;
}

.contact-hero__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  max-width: 600px;
}

.contact-main {
  margin: 0;
  padding: 48px 0 60px;
}

.contact-main__wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 28px;
  align-items: stretch;
}

.contact-info-card,
.contact-form-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(7, 18, 35, 0.08);
  overflow: hidden;
}

.contact-info-card__visual {
  flex-shrink: 0;
  height: 200px;
  overflow: hidden;
}

.contact-info-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-info-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.contact-info-card__body h2 {
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--primary);
}

.contact-info-card__text {
  color: var(--text-gray);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 18px;
}

.contact-trust-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.contact-trust-list__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-creme);
  border: 1px solid #eee;
}

.contact-trust-list__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(197, 160, 89, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}

.contact-trust-list__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-trust-list__copy strong {
  font-size: 0.84rem;
  color: var(--primary);
  line-height: 1.3;
}

.contact-trust-list__copy span {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-gray);
}

.contact-info-card .micro-compliance {
  margin: 0;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-gray);
  opacity: 0.9;
}

html[dir="rtl"] .contact-info-card .micro-compliance {
  text-align: right;
}

.contact-form-card {
  padding: 0;
}

.contact-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 26px 24px 28px;
  box-shadow: none;
}

.contact-form-panel__title {
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--primary);
}

.contact-form-panel__note {
  font-size: 0.84rem;
  color: var(--text-gray);
  line-height: 1.55;
  margin: 0 0 18px;
}

.contact-main .inquiry-form {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-project-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 16px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  background: var(--bg-creme);
  box-shadow: 0 8px 28px rgba(7, 18, 35, 0.05);
}

.contact-project-strip__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8e8e8;
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.contact-project-strip__item:hover {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 0 4px 12px rgba(7, 18, 35, 0.06);
}

.contact-project-strip__item--label {
  cursor: default;
  color: var(--text-gray);
}

.contact-project-strip__cta {
  margin-left: auto;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 12px;
}

html[dir="rtl"] .contact-project-strip__cta {
  margin-left: 0;
  margin-right: auto;
}

.contact-wa-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a2f4d 100%);
  color: #fff;
  box-shadow: 0 12px 36px rgba(7, 18, 35, 0.12);
}

.contact-wa-strip h3 {
  color: #fff;
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.contact-wa-strip p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.contact-wa-strip__btn {
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 12px;
}

@media (max-width: 991px) and (min-width: 769px) {
  .contact-hero {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }

  .contact-main__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-form-card {
    order: 1;
  }

  .contact-info-card {
    order: 2;
  }
}

@media (max-width: 991px) {
  .contact-main__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-form-card {
    order: 1;
  }

  .contact-info-card {
    order: 2;
  }
}

/* Phase 03 — project cluster guidance (information-first) */
.cluster-nav {
  background: var(--bg-creme, #f7f5f1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px 0;
}

.cluster-nav__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin: 0 0 10px;
}

.cluster-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.cluster-nav__link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.cluster-nav__link:hover,
.cluster-nav__link:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.faq-group__more {
  margin-top: 18px;
  font-weight: 600;
}

html {
  scroll-behavior: smooth;
}

/* —— Phase 10: optional inquiry + sticky contact —— */
/* Mobile/tablet: sticky bar needs bottom padding. Desktop uses WA float only. */
body.has-sticky-contact {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 901px) {
  body.has-sticky-contact {
    padding-bottom: 0;
  }
}

.inquiry-lite {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.inquiry-form--lite .form-field,
.inquiry-form--prompt .form-field {
  margin-bottom: 16px;
}

.form-field--checkbox,
.form-field--prefs {
  display: grid;
  gap: 10px;
}

.form-field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
}

fieldset.form-field--prefs {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  min-inline-size: 0;
}

.form-field--prefs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.pref-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  margin-inline-end: 0;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.pref-option input[type="radio"] {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status.is-error {
  color: #b42318;
  margin-top: 10px;
}

.sticky-contact {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 997;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #0f1c2e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  min-height: calc(64px + env(safe-area-inset-bottom, 0px));
  max-height: calc(72px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.sticky-contact.is-hidden {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sticky-contact__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  color: #fff;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sticky-contact__btn i {
  font-size: 1.05rem;
}

.sticky-contact__btn--wa {
  color: #25d366;
}

.sticky-contact__btn--inquiry {
  color: var(--accent, #c9a227);
}

@media (min-width: 901px) {
  /* Desktop: WhatsApp float only — hide sticky chip cluster entirely */
  .sticky-contact {
    display: none !important;
  }

  body.has-sticky-contact .wa-float-wrap {
    display: flex;
    bottom: 36px;
  }

  html[dir="rtl"] body.has-sticky-contact .wa-float-wrap {
    bottom: 36px;
  }
}

@media (max-width: 900px) {
  /* Mobile/tablet: sticky Call / WhatsApp / Inquiry only */
  body.has-sticky-contact .wa-float-wrap {
    display: none !important;
  }
}

.inquiry-prompt[hidden] {
  display: none !important;
}

.inquiry-prompt {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.inquiry-prompt__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.55);
}

.inquiry-prompt__dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.inquiry-prompt__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #667;
}

.inquiry-prompt__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  padding-inline-end: 28px;
}

.inquiry-prompt__lead {
  margin: 0 0 18px;
  color: var(--text-gray, #667);
  line-height: 1.6;
}

.inquiry-form--prompt input[type="text"],
.inquiry-form--prompt input[type="tel"],
.inquiry-form--prompt input[type="email"] {
  min-height: 48px;
}

.inquiry-form--prompt .btn {
  width: 100%;
  min-height: 48px;
}

@media (max-width: 900px) {
  .inquiry-prompt {
    padding: 12px;
    align-items: center;
  }

  .inquiry-prompt__dialog {
    width: calc(100% - 24px);
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .inquiry-prompt__title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .inquiry-form--prompt input[type="text"],
  .inquiry-form--prompt input[type="tel"],
  .inquiry-form--prompt input[type="email"] {
    min-height: 46px;
  }
}

body.prompt-open {
  overflow: hidden;
}

/* —— Phase 11: consent banner —— */
.consent-banner {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1300;
  max-width: 560px;
  margin-inline: auto;
  left: 12px;
  right: 12px;
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #0f1c2e;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-banner__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.consent-banner__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.consent-banner__text a {
  color: var(--accent, #c9a227);
}

.consent-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.consent-banner__btn {
  min-height: 40px;
  padding: 0 14px;
}

.consent-banner__btn--reject {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 701px) {
  .consent-banner {
    inset-inline-end: 24px;
    inset-inline-start: auto;
    bottom: 24px;
    margin-inline: 0;
    left: auto;
    right: 24px;
  }

  html[dir="rtl"] .consent-banner {
    right: auto;
    left: 24px;
  }
}

body.has-sticky-contact .consent-banner {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 901px) {
  body.has-sticky-contact .consent-banner {
    bottom: 24px;
  }
}

/* Phase 16 — key facts + sales contact + section figures (existing visual language) */
.key-facts-section {
  padding-top: 24px;
}

.key-facts__heading {
  margin-bottom: 24px;
}

.key-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.key-fact {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px 20px;
  background: #fff;
}

.key-fact__label {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-gray);
  letter-spacing: 0.02em;
}

.key-fact__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark, #1a1a1a);
  line-height: 1.35;
}

.content-section-figure {
  margin: 28px 0 0;
}

.content-section-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.facts-table-wrap {
  overflow-x: auto;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
}

.facts-table th,
.facts-table td {
  text-align: start;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.facts-table th {
  width: 38%;
  color: var(--text-dark, #1a1a1a);
  font-weight: 600;
}

.facts-table td {
  color: var(--text-gray);
}

.sales-contact-section {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-top: 1px solid #eee;
}

.sales-contact__number {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 8px 0 12px;
}

.sales-contact__number a {
  color: inherit;
  text-decoration: none;
}

.sales-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 700px) {
  .key-facts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phase 25 — timelines + portfolio project modules */
.timeline-section {
  padding-top: 24px;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-inline-start: 2px solid #eee;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
  margin: 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #b8860b);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #eee;
}

.timeline-item__date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.timeline-item__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.timeline-item__body {
  margin: 0;
  color: var(--text-gray);
  line-height: 1.7;
}

.project-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-module {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px 22px;
  background: #fff;
}

.project-module__name {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.project-module__facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 38%) 1fr;
  gap: 6px 12px;
}

.project-module__label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-gray);
  font-weight: 500;
}

.project-module__value {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.project-module__link {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .project-module__facts {
    grid-template-columns: 1fr;
  }
}


/* Phase 3 — status cards, mobile hardening, a11y */
html {
  overflow-x: clip;
}

.status-cards-section {
  padding-top: 8px;
}

.status-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.status-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px 22px;
  background: #fff;
}

.status-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.status-card__body {
  margin: 0;
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 0.98rem;
}

.location-card__body {
  padding: 28px;
  padding-inline-start: 0;
}

@media (max-width: 700px) {
  .location-card {
    grid-template-columns: 1fr;
  }

  .location-card__body {
    padding: 20px;
  }

  .hero-btns .btn,
  .sales-contact__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cluster-nav__link {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .key-facts-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid__item img {
    height: 220px;
  }
}

.skip-link:focus {
  left: 12px !important;
  top: 12px;
  z-index: 10000;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
  outline: 2px solid var(--accent, #c9a227);
}

.content-narrow {
  max-width: 760px;
}

.verified-map-section .maps-gate {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(160deg, rgba(197, 160, 89, 0.10), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.015) 10px,
      rgba(0, 0, 0, 0.015) 11px
    );
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
}

.maps-gate__placeholder {
  text-align: center;
}

.maps-gate__note {
  color: var(--text-gray);
  line-height: 1.65;
  margin: 0 0 1.1rem;
}

.maps-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

html[dir="rtl"] .maps-gate__actions {
  flex-direction: row-reverse;
}

img {
  max-width: 100%;
  height: auto;
}

/* Final mobile hero authority (overrides bundled home.css .hero height:100vh) */
@media (max-width: 768px) {
  .hero:not(.home-hero) {
    height: auto !important;
    min-height: clamp(360px, 55svh, 520px) !important;
    padding-top: calc(var(--nav-height, 72px) + 16px) !important;
    padding-bottom: 44px !important;
    background-attachment: scroll !important;
    background-position: center center !important;
    display: flex !important;
    align-items: center !important;
  }

  .hero:not(.home-hero) > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero.home-hero {
    height: auto !important;
    min-height: clamp(520px, 68svh, 760px) !important;
    padding-top: calc(var(--nav-height, 72px) + 12px) !important;
    padding-bottom: 40px !important;
    background-attachment: scroll !important;
    background-position: center center !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-wrap: balance;
  }
}

