/* ==========================================================================
   MG Real Estate Valuation - Main Stylesheet
   ========================================================================== */

:root {
  --color-primary: #1a2a4a;
  --color-primary-dark: #0f1d3a;
  --color-primary-light: #2d4170;
  --color-accent: #c9a961;
  --color-accent-light: #d8bd7e;
  --color-accent-dark: #a88a45;
  --color-light: #f7f8fb;
  --color-white: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #6c757d;
  --color-border: #e6e9ef;
  --shadow-sm: 0 2px 8px rgba(26, 42, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 42, 74, 0.10);
  --shadow-lg: 0 18px 50px rgba(26, 42, 74, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
}
body[dir="rtl"] {
  font-family: 'Tajawal', 'Cairo', 'Poppins', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.3;
}
a { text-decoration: none; color: var(--color-primary); transition: var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; }
section { padding: 100px 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 15px;
}
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}
.btn-accent:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ---------- Section Titles ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
  position: relative;
  padding: 0 22px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--color-accent);
}
.section-head .eyebrow::before { left: 0; }
.section-head .eyebrow::after { right: 0; }
.section-head h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
  font-size: 13px;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--color-accent); }
.topbar .topbar-info span {
  margin-right: 20px;
  display: inline-block;
}
body[dir="rtl"] .topbar .topbar-info span {
  margin-right: 0;
  margin-left: 20px;
}
.topbar .topbar-info i {
  color: var(--color-accent);
  margin-right: 6px;
}
body[dir="rtl"] .topbar .topbar-info i {
  margin-right: 0;
  margin-left: 6px;
}
.topbar .social-links a {
  margin-left: 12px;
  font-size: 14px;
}
body[dir="rtl"] .topbar .social-links a {
  margin-left: 0;
  margin-right: 12px;
}

/* ---------- Navbar (transparent over hero, solid on scroll) ---------- */
.main-nav {
  background: transparent;
  padding: 16px 0;
  box-shadow: none;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
}
.main-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}
.main-nav .navbar-brand img {
  height: 75px;
  width: auto;
  transition: var(--transition);
  display: block;
  background: var(--color-white);
  padding: 0;
  border-radius: var(--radius-md);
}
/* Default (over hero): white text */
.main-nav .nav-link {
  color: var(--color-white) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px !important;
  position: relative;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  width: 24px;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--color-accent) !important;
}
/* Language switcher */
.lang-switch {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--color-white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  margin-left: 10px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.30);
  text-shadow: none !important;
}
body[dir="rtl"] .lang-switch {
  margin-left: 0;
  margin-right: 10px;
}
.lang-switch:hover {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  border-color: var(--color-accent);
}
/* Mobile toggler */
.main-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 6px 10px;
}
.main-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Mobile toggler stays white throughout */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 140px 0 200px;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  background-image:url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* Subtle gold radial glows */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: transparent;
  --background-overlay: '';
  background-image: linear-gradient(180deg, #00000080 0%, #F2295B00 100%);
  pointer-events: none;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero-content {
  max-width: 880px;
  margin: 0 auto;
}
.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid rgba(201, 169, 97, 0.40);
  border-radius: 30px;
  color: var(--color-accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  color: var(--color-white);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.hero h1 .accent { color: var(--color-accent); }
.hero p.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.85;
  margin: 0 auto 40px;
  max-width: 720px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .hero-actions .btn {
  padding: 14px 34px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}
/* Wave bottom */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.hero-wave path { fill: var(--color-light); }

/* ---------- About ---------- */
.about { background: var(--color-light); }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap .placeholder-img {
  background-color: var(--color-primary);
  background-image:
    linear-gradient(135deg, rgba(15, 29, 58, 0.45) 0%, rgba(26, 42, 74, 0.35) 100%),
    url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 169, 97, 0.40);
  font-size: 6rem;
  position: relative;
}
.about-img-wrap .placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201,169,97,0.20), transparent 70%);
}
.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
body[dir="rtl"] .about-badge {
  left: auto;
  right: 24px;
}
.about-badge .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge .label { font-size: 13px; }

.about-content .eyebrow {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
  display: block;
}
.about-content h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}
.about-content p {
  color: var(--color-text-light);
  margin-bottom: 18px;
}
.about-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--color-text);
  font-weight: 500;
}
.about-features li i {
  color: var(--color-accent);
  background: rgba(201,169,97,0.12);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

/* ---------- Services ---------- */
.services { background: var(--color-white); }
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201,169,97,0.15), rgba(26,42,74,0.10));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--color-accent);
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: var(--color-white);
}
.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Why Us / Features ---------- */
.why-us {
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  background-image:url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 180px 0 180px;
}
.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: transparent;
  --background-overlay: '';
  background-image: linear-gradient(180deg, #00000080 0%, #F2295B00 100%);
  pointer-events: none;
  z-index: 1;
}
.why-us .container { position: relative; z-index: 3; }
/* Top + Bottom waves on Why Us */
.why-us-wave-top,
.why-us-wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.why-us-wave-top { top: -1px; }
.why-us-wave-bottom { bottom: -1px; }
.why-us-wave-top path,
.why-us-wave-bottom path { fill: var(--color-white); }
.why-us .section-head h2 { color: var(--color-white); }
.why-us .section-head p { color: rgba(255,255,255,0.7); }
.feature-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: #FFFFFF30;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  height: 100%;
  transition: var(--transition);
}
.feature-item:hover {
  background: rgba(201,169,97,0.10);
  border-color: rgba(201,169,97,0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-item .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-item h5 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-item p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--color-light);
  padding: 70px 0;
}
.stat-box {
  text-align: center;
  padding: 24px;
}
.stat-box .icon {
  font-size: 36px;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.stat-box .counter {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box .label {
  color: var(--color-text-light);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ---------- Process ---------- */
.process { background: var(--color-white); }
.process-step {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
.process-step .step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-accent);
  font-size: 1.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.process-step .step-num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px dashed var(--color-accent);
  border-radius: 50%;
  opacity: 0.5;
}
.process-step h5 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { color: var(--color-text-light); font-size: 0.95rem; margin: 0; }

/* ---------- Clients ---------- */
.clients { background: var(--color-light); padding: 70px 0; }
.client-logo {
  background: var(--color-white);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--color-text-light);
  font-weight: 600;
  transition: var(--transition);
  padding: 20px;
  overflow: hidden;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: var(--transition);
}
.client-logo:hover {
  box-shadow: var(--shadow-lg);
  color: var(--color-primary);
  transform: translateY(-6px);
}
.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- Contact ---------- */
.contact { background: var(--color-white); }
.contact-info-card {
  background: var(--color-light);
  border-radius: var(--radius-md);
  padding: 36px;
  height: 100%;
}
.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 26px;
}
.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: flex-start;
}
.contact-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-item .info strong {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-item .info span,
.contact-item .info a {
  color: var(--color-text-light);
  font-size: 0.95rem;
}
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  background: var(--color-light);
  transition: var(--transition);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.contact-form label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-size: 14px;
}
.success-msg {
  display: none;
  background: #e7f6ec;
  color: #1e6a3c;
  border: 1px solid #b8e0c4;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-weight: 500;
}
.success-msg i { margin-right: 8px; color: #2eaa5a; }
body[dir="rtl"] .success-msg i { margin-right: 0; margin-left: 8px; }

.map-wrap {
  margin-top: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}
.footer h5 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--color-accent);
}
body[dir="rtl"] .footer h5::after { left: auto; right: 0; }

.footer-brand img {
  height: 110px;
  width: auto;
  margin-bottom: 18px;
  background: var(--color-white);
  padding: 8px;
  border-radius: var(--radius-md);
  display: block;
}
.footer-brand p { font-size: 0.95rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }
body[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 4px; }

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  align-items: flex-start;
}
.footer-contact li i {
  color: var(--color-accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 22px 0;
  margin-top: 50px;
  font-size: 0.9rem;
  text-align: center;
}
.footer-bottom strong { color: var(--color-accent); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: 0;
}
body[dir="rtl"] .back-to-top { right: auto; left: 30px; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary); transform: translateY(-3px); }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}
body[dir="rtl"] .whatsapp-float { left: auto; right: 30px; }
.whatsapp-float:hover { color: var(--color-white); transform: scale(1.08); }

/* ---------- Stats (restyled big cards) ---------- */
.stats-cards { background: var(--color-light); padding: 80px 0; }
.stats-cards .row { justify-content: center; }
.stat-card {
  background: #87A7A4;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  color: var(--color-white);
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(201,169,97,0.20);
}
/*.stat-card::before {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: -60px;*/
/*  right: -60px;*/
/*  width: 180px;*/
/*  height: 180px;*/
/*  background: radial-gradient(circle, rgba(201,169,97,0.20), transparent 70%);*/
/*  border-radius: 50%;*/
/*}*/
body[dir="rtl"] .stat-card::before { right: auto; left: -60px; }
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.stat-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #00333B;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.stat-card .counter {
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  line-height: 1;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.stat-card .label {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ---------- Property Categories ---------- */
.categories { background: var(--color-light); }
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-card .cat-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  background-image:
    linear-gradient(135deg, rgba(15, 29, 58, 0.55) 0%, rgba(26, 42, 74, 0.45) 100%),
    url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(201, 169, 97, 0.18);
  transition: var(--transition);
}
.category-card .cat-bg.bg-1 { background-position: center top; }
.category-card .cat-bg.bg-2 { background-position: center center; }
.category-card .cat-bg.bg-3 { background-position: center bottom; }
.category-card:hover .cat-bg { transform: scale(1.05); }
.category-card .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,29,58,0.20) 0%, rgba(15,29,58,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--color-white);
  transition: var(--transition);
}
.category-card:hover .cat-overlay {
  background: linear-gradient(180deg, rgba(15,29,58,0.40) 0%, rgba(201,169,97,0.85) 100%);
}
.category-card .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.category-card h4 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.category-card p {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.category-card .cat-link {
  color: var(--color-accent-light);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.category-card:hover .cat-link {
  color: var(--color-white);
}

/* ---------- Team ---------- */
.team { background: var(--color-white); }
.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  height: 100%;
  border: 1px solid var(--color-border);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.team-photo {
  height: 280px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,169,97,0.45);
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-info {
  padding: 24px 20px;
}
.team-info h5 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.team-info .role {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.team-info .credentials {
  color: var(--color-text-light);
  font-size: 13px;
  margin-bottom: 14px;
  min-height: 36px;
}
.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.team-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}
.team-social a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---------- FAQ ---------- */
.faq {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  background-image:url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 180px 0 180px;
  color: var(--color-white);
}
.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: transparent;
  --background-overlay: '';
  background-image: linear-gradient(180deg, #00000080 0%, #F2295B00 100%);
  pointer-events: none;
  z-index: 1;
}
.faq .container { position: relative; z-index: 3; }
.faq .section-head h2 { color: var(--color-white); }
.faq .section-head p { color: rgba(255, 255, 255, 0.75); }
/* Top + Bottom waves on FAQ */
.faq-wave-top,
.faq-wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.faq-wave-top { top: -1px; }
.faq-wave-bottom { bottom: -1px; }
.faq-wave-top path,
.faq-wave-bottom path { fill: var(--color-white); }
.faq-list { max-width: 900px; margin: 0 auto; position: relative; z-index: 3; }
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: rgba(201,169,97,0.40);
}
.faq-q {
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.02rem;
  gap: 16px;
  transition: var(--transition);
}
.faq-q:hover { color: var(--color-accent); }
.faq-q .faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 14px;
}
.faq-item.open .faq-q .faq-toggle {
  background: var(--color-accent);
  color: var(--color-white);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 26px;
  color: var(--color-text-light);
  line-height: 1.85;
}
.faq-item.open .faq-a {
  max-height: 320px;
  padding: 0 26px 22px;
}

/* ---------- Dark Section Utility (reusable) ---------- */
.dark-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  background-image:url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 180px 0 !important;
  color: var(--color-white);
}
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: transparent;
  --background-overlay: '';
  background-image: linear-gradient(180deg, #00000080 0%, #F2295B00 100%);
  pointer-events: none;
  z-index: 1;
}
.dark-section > .container { position: relative; z-index: 3; }
.dark-section .section-head h2 { color: var(--color-white); }
.dark-section .section-head p { color: rgba(255, 255, 255, 0.78); }
.dark-section .section-head .eyebrow { color: var(--color-accent-light); }

/* Generic wave classes — usable on any section */
.section-wave-top,
.section-wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.section-wave-top { top: -1px; }
.section-wave-bottom { bottom: -1px; }
.section-wave-top path,
.section-wave-bottom path { fill: var(--color-white); }

/* About section — dark variant overrides */
.about.dark-section { background-color: var(--color-primary-dark); }
.about.dark-section .about-content .eyebrow { color: var(--color-accent-light); }
.about.dark-section .about-content h2 { color: var(--color-white); }
.about.dark-section .about-content p { color: rgba(255, 255, 255, 0.85); }
.about.dark-section .about-features li { color: var(--color-white); }
.about.dark-section .about-features li i {
  background: rgba(201, 169, 97, 0.20);
  color: var(--color-accent-light);
}
.about.dark-section .about-content .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}
.about.dark-section .about-content .btn-primary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
}
.about.dark-section .about-img-wrap { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }

/* Process section — dark variant overrides */
.process.dark-section .process-step h5 { color: var(--color-white); }
.process.dark-section .process-step p { color: rgba(255, 255, 255, 0.78); }
.process.dark-section .process-step .step-num {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.process.dark-section .process-step .step-num::after {
  border-color: rgba(255, 255, 255, 0.40);
}

/* ---------- Animations ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-aos].aos-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  section { padding: 70px 0; }
  .hero { padding: 110px 0 160px; min-height: auto; }
  .hero h1 { font-size: 2.5rem; }
  .section-head h2 { font-size: 1.9rem; }
  .about-content h2 { font-size: 1.85rem; }
  .main-nav .navbar-collapse {
    background: var(--color-white);
    margin-top: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  /* Mobile: when collapse opens, links should be dark (against white panel) */
  .main-nav .navbar-collapse .nav-link,
  .main-nav .navbar-collapse .lang-switch {
    color: var(--color-primary) !important;
    text-shadow: none !important;
  }
  .main-nav .navbar-collapse .lang-switch {
    background: var(--color-light) !important;
    border-color: transparent;
  }
  .main-nav .navbar-collapse .nav-link:hover,
  .main-nav .navbar-collapse .nav-link.active {
    color: var(--color-accent) !important;
  }
}
@media (max-width: 575px) {
  .hero { padding: 90px 0 130px; }
  .hero h1 { font-size: 1.95rem; }
  .hero p.lead { font-size: 0.98rem; }
  .hero .hero-eyebrow { font-size: 11px; padding: 7px 14px; }
  .hero .hero-actions .btn { padding: 12px 22px; font-size: 14px; }
  .section-head h2 { font-size: 1.6rem; }
  .contact-form, .contact-info-card { padding: 24px; }
  .back-to-top, .whatsapp-float { bottom: 20px; }
  .back-to-top { right: 20px; width: 42px; height: 42px; }
  body[dir="rtl"] .back-to-top { right: auto; left: 20px; }
  .whatsapp-float { left: 20px; width: 50px; height: 50px; font-size: 24px; }
  body[dir="rtl"] .whatsapp-float { left: auto; right: 20px; }
}
