/* 
========================================================================
   MARA ESTATE - CORE STYLES & DESIGN SYSTEM
   Luxury PropTech Platform (English LTR & Arabic RTL)
========================================================================
*/

/* 1. Imports & Variable Configuration */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-dark: #07182a;
  --bg-darker: #04101d;
  --bg-card: rgba(11, 34, 58, 0.72);
  --bg-card-hover: rgba(16, 58, 92, 0.82);
  --gold-primary: #27B99A;
  --gold-accent: #39D0B0;
  --gold-glow: rgba(39, 185, 154, 0.26);
  --green-growth: #27B99A;
  --green-glow: rgba(39, 185, 154, 0.22);
  --text-white: #FFFFFF;
  --text-muted: #A8B9CC;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(39, 185, 154, 0.28);
  --mara-navy: #173F6D;
  --mara-teal: #27B99A;
  
  /* Fonts */
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  
  /* Layout Adjustments */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.20s ease-out;
}

/* 2. Global Resets & Body Configurations */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  transition: opacity 0.2s ease-in-out;
}

/* Dynamic Font assignment based on direction */
[dir="ltr"] body {
  font-family: var(--font-en);
  text-align: left;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
  text-align: right;
}

/* Selection Highlights */
::selection {
  background-color: var(--gold-primary);
  color: var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-accent);
}

/* 3. Loader & Preloader Overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-darker);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.loader-logo-container {
  width: min(220px, 58vw);
  height: auto;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 38px rgba(39, 185, 154, 0.18));
  animation: fadeUpIn 1.2s ease-out forwards;
}

.loader-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-white);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUpIn 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

.loader-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUpIn 1.5s ease-out forwards;
  animation-delay: 0.8s;
  text-align: center;
  padding: 0 15px;
}

/* 4. Navigation & Global Header (Glassmorphic) */
.mara-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: rgba(4, 16, 29, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.mara-header.scrolled {
  background: rgba(4, 16, 29, 0.94);
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mara-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.brand-logo-img {
  width: 132px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary) !important;
  text-shadow: 0 0 10px var(--gold-glow);
}

/* Language Toggle Styling */
.lang-toggle-btn {
  background: rgba(39, 185, 154, 0.1);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary) !important;
  border-radius: 50px;
  padding: 6px 18px !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-dark) !important;
  box-shadow: 0 0 15px var(--gold-glow);
}

.btn-consultation {
  background: linear-gradient(135deg, var(--mara-teal) 0%, var(--mara-navy) 100%);
  color: var(--bg-dark) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 8px 22px;
  border: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-consultation:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(39, 185, 154, 0.4);
}

.navbar-toggler {
  border: 1px solid var(--border-color);
  padding: 6px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.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(39,185,154,0.92)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 5. Hero & Dynamic Investment Calculator */
.hero-section {
  position: relative;
  padding: 180px 0 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(4, 16, 29, 0.98), rgba(9, 35, 60, 0.94)),
              radial-gradient(circle at 12% 20%, rgba(39, 185, 154, 0.1) 0%, transparent 36%),
              radial-gradient(circle at 88% 76%, rgba(23, 63, 109, 0.25) 0%, transparent 42%);
}

.hero-badge {
  background: rgba(39, 185, 154, 0.07);
  border: 1px solid rgba(39, 185, 154, 0.25);
  color: var(--gold-accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span.accent {
  color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-accent) 30%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-gold {
  background: linear-gradient(135deg, var(--mara-teal) 0%, var(--mara-navy) 100%);
  color: var(--bg-dark) !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(39, 185, 154, 0.2);
}

.btn-primary-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39, 185, 154, 0.4);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--text-white) !important;
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  transform: translateY(-3px);
}

/* Glassmorphic Calculator Widget */
.calculator-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 35px;
  width: 100%;
  height: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.calculator-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(39, 185, 154, 0.08);
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(39, 185, 154, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.calc-title-badge {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.calc-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.calc-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.calc-slider-group {
  margin-bottom: 25px;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.calc-slider-value {
  color: var(--gold-accent);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Custom Styled Range Slider */
.custom-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 15px 0;
  transition: var(--transition-fast);
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 4px solid var(--bg-dark);
  cursor: pointer;
  box-shadow: 0 0 10px var(--gold-primary);
  transition: transform 0.1s;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--gold-accent);
}

.calc-horizon-group {
  margin-bottom: 35px;
}

.horizon-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 50px;
}

.horizon-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.horizon-tab-btn.active {
  background: var(--gold-primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px var(--gold-glow);
}

/* Metric Display Cards */
.calc-metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.calc-metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.calc-metric-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(39, 185, 154, 0.2);
}

.calc-metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.calc-metric-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.calc-metric-box.total-box {
  background: rgba(39, 185, 154, 0.02);
  border: 1px solid rgba(39, 185, 154, 0.15);
}

.calc-metric-box.total-box:hover {
  background: rgba(39, 185, 154, 0.04);
  border-color: rgba(39, 185, 154, 0.3);
}

.calc-metric-box.total-box .calc-metric-label {
  color: var(--text-white);
  font-weight: 700;
}

.calc-metric-box.total-box .calc-metric-num {
  color: var(--green-growth);
  font-size: 1.4rem;
  text-shadow: 0 0 15px var(--green-glow);
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

/* 6. Section Setup & Scroll Reveal Framework */
.section-padding {
  padding: 100px 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.section-padding > .container {
  width: 100%;
}

.row.g-4 > [class*="col-"],
.row.g-5 > [class*="col-"] {
  display: flex;
}

.row.g-4 > [class*="col-"] > .reveal,
.row.g-5 > [class*="col-"] > .reveal {
  width: 100%;
  height: 100%;
}

.section-badge {
  background: rgba(39, 185, 154, 0.07);
  border: 1px solid rgba(39, 185, 154, 0.2);
  color: var(--gold-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 60px;
  line-height: 1.6;
}

/* Scroll reveal engine */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 7. Why Mara Estate Card Grid */
.premium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.premium-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(39, 185, 154, 0.08);
  border: 1px solid rgba(39, 185, 154, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  color: var(--gold-primary);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.premium-card:hover .card-icon-container {
  background: var(--gold-primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--gold-glow);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 8. Stepper (How it Works) Timeline */
.stepper-timeline {
  position: relative;
  padding: 20px 0;
}

.stepper-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 31px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-primary) 0%, rgba(255, 255, 255, 0.05) 100%);
}

[dir="rtl"] .stepper-timeline::before {
  left: auto;
  right: 31px;
}

.stepper-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
}

[dir="rtl"] .stepper-item {
  padding-left: 0;
  padding-right: 80px;
}

.stepper-item:last-child {
  margin-bottom: 0;
}

.stepper-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

[dir="rtl"] .stepper-node {
  left: auto;
  right: 0;
}

.stepper-item:hover .stepper-node {
  background: var(--gold-primary);
  color: var(--bg-dark);
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--gold-glow);
}

.stepper-content {
  padding-top: 12px;
}

.stepper-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stepper-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 700px;
}

/* 9. About Us Section Tabs */
.about-interactive-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
}

.about-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.about-tab-trigger {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.about-tab-trigger:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.about-tab-trigger.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--mara-teal);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.about-tab-content {
  display: none;
  animation: fadeInTab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-tab-content.active {
  display: block;
}

.leader-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #1e3557 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.compliance-badge-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  min-height: 150px;
  transition: var(--transition-smooth);
}

.compliance-badge-card:hover {
  border-color: rgba(39, 185, 154, 0.3);
  background: rgba(255,255,255,0.04);
}

/* 10. Interactive Market Trends Graph */
.trends-visual-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 35px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.svg-chart-container {
  width: 100%;
  height: 240px;
  position: relative;
  margin: 20px 0;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1;
}

.chart-trend-line {
  fill: none;
  stroke: url(#chartGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawChartLine 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.chart-trend-area {
  fill: url(#areaGrad);
  opacity: 0;
  animation: fadeChartArea 1.5s ease-out forwards;
  animation-delay: 1.5s;
}

.chart-point {
  fill: var(--bg-dark);
  stroke: var(--green-growth);
  stroke-width: 3;
  r: 6;
  transition: var(--transition-fast);
  cursor: pointer;
}

.chart-point:hover {
  r: 9;
  fill: var(--green-growth);
  filter: drop-shadow(0 0 8px var(--green-growth));
}

.trends-mini-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trend-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 16px;
  min-height: 150px;
  transition: var(--transition-smooth);
}

.trend-mini-card:hover {
  border-color: rgba(39, 185, 154, 0.2);
  background: rgba(39, 185, 154, 0.01);
}

.trend-mini-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-growth);
  margin-bottom: 4px;
}

/* 11. FAQ Custom Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-header-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

[dir="rtl"] .faq-header-btn {
  text-align: right;
}

.faq-chevron {
  color: var(--gold-primary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180px);
}

/* Smooth Accordion Body Height Collapse */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-body-content {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* 12. Contact Form & Partnership Blocks */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  height: 100%;
  width: 100%;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(39, 185, 154, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-details h6 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-white);
}

.info-details p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Modern Form Controls */
.modern-form-group {
  margin-bottom: 20px;
}

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

.modern-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.modern-input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(39, 185, 154, 0.15);
  outline: none;
}

.modern-input::placeholder {
  color: #556272;
}

textarea.modern-input {
  min-height: 120px;
  resize: none;
}

/* Success notification block */
.form-success-alert {
  background: rgba(39, 185, 154, 0.05);
  border: 1px solid rgba(39, 185, 154, 0.3);
  border-radius: 12px;
  padding: 16px;
  color: var(--green-growth);
  font-size: 0.92rem;
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  animation: fadeUpIn 0.5s ease-out forwards;
}

/* Social posts */
.social-post-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  color: var(--text-white);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.social-post-card:hover {
  color: var(--text-white);
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.social-post-card h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.social-post-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.social-post-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-primary);
  background: rgba(39, 185, 154, 0.08);
  border: 1px solid rgba(39, 185, 154, 0.24);
  font-size: 1.35rem;
}

/* 14. Footer & Premium Modals */
.mara-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
  font-size: 0.92rem;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-logo-img {
  width: min(210px, 70vw);
  height: auto;
  display: block;
}

.footer-tagline {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-section-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a, .footer-legal-trigger {
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  cursor: pointer;
  display: inline-block;
}

.footer-links a:hover, .footer-legal-trigger:hover {
  color: var(--gold-primary);
  transform: translateX(4px);
}

[dir="rtl"] .footer-links a:hover, [dir="rtl"] .footer-legal-trigger:hover {
  transform: translateX(-4px);
}

.footer-social-grid {
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.footer-social-grid a {
  text-decoration: none;  
}

.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.social-circle:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(39, 185, 154, 0.05);
  box-shadow: 0 0 10px var(--gold-glow);
}

.footer-divider {
  height: 1px;
  background: var(--border-color);
  margin: 40px 0 25px 0;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

/* Premium Glassmorphic Modal Overlays */
.mara-modal {
  display: none;
  position: fixed !important;
  inset: 0;
  width: auto;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 9999 !important;
  background: rgba(2, 4, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mara-modal.active {
  display: flex;
}

body.modal-open {
  overflow: hidden !important;
}

.mara-modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  width: 100%;
  max-width: 650px;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mara-modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
}

.mara-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0;
}

.mara-modal-close-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mara-modal-close-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
}

.mara-modal-body {
  padding: 30px;
  overflow-y: auto;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.mara-modal-body p {
  margin-bottom: 20px;
}

.mara-modal-body p:last-child {
  margin-bottom: 0;
}

.mara-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* 15. CSS Keyframes & Animations */
@keyframes drawLogo {
  0% {
    stroke-dashoffset: 600;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes drawAccent {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeUpIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInTab {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawChartLine {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeChartArea {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.15;
  }
}

@keyframes modalSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 16. Media Queries & Mobile Responsiveness */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 130px 0 80px 0;
  }

  .section-padding {
    min-height: auto;
    padding: 80px 0;
  }

  .brand-logo-img {
    width: 96px;
    height: 58px;
    object-position: left center;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .navbar-collapse {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
  }
  
  .nav-link {
    padding: 10px 0 !important;
  }
  
  .lang-toggle-btn {
    display: inline-block;
    margin: 15px 0 10px 0 !important;
  }
  
  .btn-consultation {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
  
  .stepper-timeline::before {
    left: 20px;
  }
  
  [dir="rtl"] .stepper-timeline::before {
    right: 20px;
  }
  
  .stepper-item {
    padding-left: 55px;
    margin-bottom: 40px;
  }
  
  [dir="rtl"] .stepper-item {
    padding-right: 55px;
  }
  
  .stepper-node {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  
  .about-nav-tabs {
    justify-content: center;
  }
  
  .about-tab-trigger {
    width: 100%;
    text-align: center;
  }

  .premium-card,
  .contact-info-card,
  .calculator-card,
  .about-interactive-box,
  .trends-visual-box {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .mara-header .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-logo-img {
    width: 82px;
    height: 54px;
  }

  .loader-logo-container {
    width: min(180px, 70vw);
  }

  .section-padding {
    padding: 64px 0;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.98rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    margin-bottom: 32px;
  }
  
  .calculator-card {
    padding: 20px;
  }

  .premium-card,
  .about-interactive-box,
  .trends-visual-box,
  .contact-info-card {
    padding: 24px;
  }

  .calc-metric-box,
  .info-item {
    align-items: flex-start;
  }

  .hero-ctas,
  .footer-social-grid {
    justify-content: center;
  }

  .hero-ctas .btn {
    width: 100%;
  }
  
  .calc-metric-num {
    font-size: 1rem;
  }
  
  .calc-metric-box.total-box .calc-metric-num {
    font-size: 1.2rem;
  }
  
  .social-circle {
    width: 36px;
    height: 36px;
  }
}

/* 17. White Real Estate Theme & Interactive Background */
:root {
  --bg-dark: #ffffff;
  --bg-darker: #f4f8fb;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.94);
  --text-white: #173F6D;
  --text-muted: #586f84;
  --border-color: rgba(23, 63, 109, 0.12);
  --border-glow: rgba(39, 185, 154, 0.32);
}

html,
body {
  background: #f7fbff;
}

body {
  color: var(--mara-navy);
}

body,
p,
.card-desc,
.stepper-desc,
.faq-body-content,
.info-details p {
  color: var(--text-muted);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,250,253,0.92) 42%, rgba(235,245,249,0.96) 100%),
    radial-gradient(circle at 12% 18%, rgba(39,185,154,0.14) 0 18%, transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(23,63,109,0.11) 0 16%, transparent 36%);
  background-size: 100% 100%, 125% 125%, 135% 135%;
  animation: maraAmbientWash 28s ease-in-out infinite alternate;
  will-change: background-position;
}

.real-estate-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.real-estate-bg::before,
.real-estate-bg::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
}

.real-estate-bg::before {
  opacity: 0.42;
  background:
    linear-gradient(25deg, transparent 0 18%, rgba(23,63,109,0.1) 18.1% 18.35%, transparent 18.45% 100%),
    linear-gradient(155deg, transparent 0 34%, rgba(39,185,154,0.12) 34.1% 34.35%, transparent 34.45% 100%),
    linear-gradient(90deg, transparent 0 58%, rgba(23,63,109,0.08) 58.1% 58.32%, transparent 58.42% 100%),
    repeating-linear-gradient(0deg, transparent 0 132px, rgba(23,63,109,0.04) 133px 134px, transparent 135px 264px);
  background-size: 560px 430px, 680px 520px, 740px 600px, 100% 264px;
  animation: maraPlotLines 34s linear infinite;
  will-change: transform;
}

.real-estate-bg::after {
  inset: auto -8% -12px -8%;
  height: 42vh;
  min-height: 260px;
  opacity: 0.78;
  background:
    linear-gradient(to top, rgba(23,63,109,0.12), transparent 78%),
    linear-gradient(to top, rgba(255,255,255,0.88), rgba(255,255,255,0)),
    linear-gradient(to right,
      transparent 0 4%,
      rgba(23,63,109,0.11) 4% 10%,
      transparent 10% 13%,
      rgba(39,185,154,0.1) 13% 19%,
      transparent 19% 22%,
      rgba(23,63,109,0.13) 22% 31%,
      transparent 31% 35%,
      rgba(23,63,109,0.09) 35% 42%,
      transparent 42% 46%,
      rgba(39,185,154,0.12) 46% 54%,
      transparent 54% 58%,
      rgba(23,63,109,0.12) 58% 67%,
      transparent 67% 70%,
      rgba(23,63,109,0.08) 70% 76%,
      transparent 76% 80%,
      rgba(39,185,154,0.1) 80% 88%,
      transparent 88% 100%);
  clip-path: polygon(0 100%, 0 38%, 4% 38%, 4% 30%, 10% 30%, 10% 58%, 13% 58%, 13% 25%, 19% 25%, 19% 48%, 22% 48%, 22% 14%, 31% 14%, 31% 60%, 35% 60%, 35% 34%, 42% 34%, 42% 54%, 46% 54%, 46% 20%, 54% 20%, 54% 44%, 58% 44%, 58% 10%, 67% 10%, 67% 50%, 70% 50%, 70% 32%, 76% 32%, 76% 58%, 80% 58%, 80% 24%, 88% 24%, 88% 46%, 100% 46%, 100% 100%);
  animation: maraSkylineRise 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.bg-blueprint-grid {
  position: absolute;
  inset: -20%;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(23,63,109,0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,63,109,0.075) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: maraGridDrift 36s linear infinite;
  will-change: transform;
}

.bg-light-band {
  position: absolute;
  bottom: 0;
  height: 34vh;
  min-height: 230px;
  opacity: 0.28;
  will-change: transform, opacity;
}

.bg-light-band::before {
  content: "";
  position: absolute;
  inset: 20% 0 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.86) 0 2px, transparent 2.5px);
  background-size: 22px 26px;
  opacity: 0.72;
  animation: maraWindowGlow 4.5s ease-in-out infinite alternate;
}

.bg-light-band-1 {
  left: -6%;
  width: 54vw;
  background:
    linear-gradient(to top, rgba(23,63,109,0.18), rgba(23,63,109,0.02)),
    linear-gradient(to right,
      rgba(23,63,109,0.18) 0 12%,
      transparent 12% 16%,
      rgba(39,185,154,0.16) 16% 28%,
      transparent 28% 34%,
      rgba(23,63,109,0.2) 34% 48%,
      transparent 48% 54%,
      rgba(23,63,109,0.14) 54% 66%,
      transparent 66% 72%,
      rgba(39,185,154,0.14) 72% 88%,
      transparent 88% 100%);
  clip-path: polygon(0 100%, 0 36%, 12% 36%, 12% 64%, 16% 64%, 16% 22%, 28% 22%, 28% 48%, 34% 48%, 34% 8%, 48% 8%, 48% 58%, 54% 58%, 54% 30%, 66% 30%, 66% 68%, 72% 68%, 72% 18%, 88% 18%, 88% 56%, 100% 56%, 100% 100%);
  animation: maraBuildingFloat 16s ease-in-out infinite alternate;
}

.bg-light-band-2 {
  right: -4%;
  width: 58vw;
  background:
    linear-gradient(to top, rgba(39,185,154,0.16), rgba(39,185,154,0.02)),
    linear-gradient(to right,
      transparent 0 8%,
      rgba(23,63,109,0.16) 8% 22%,
      transparent 22% 28%,
      rgba(39,185,154,0.16) 28% 42%,
      transparent 42% 48%,
      rgba(23,63,109,0.18) 48% 62%,
      transparent 62% 68%,
      rgba(23,63,109,0.14) 68% 80%,
      transparent 80% 86%,
      rgba(39,185,154,0.13) 86% 100%);
  clip-path: polygon(0 100%, 0 62%, 8% 62%, 8% 26%, 22% 26%, 22% 54%, 28% 54%, 28% 12%, 42% 12%, 42% 44%, 48% 44%, 48% 6%, 62% 6%, 62% 56%, 68% 56%, 68% 24%, 80% 24%, 80% 52%, 86% 52%, 86% 18%, 100% 18%, 100% 100%);
  animation: maraBuildingFloat 20s ease-in-out infinite alternate-reverse;
}

.bg-architect-lines {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(135deg, transparent 0 52%, rgba(23,63,109,0.16) 52.1% 52.32%, transparent 52.42% 100%),
    linear-gradient(45deg, transparent 0 48%, rgba(39,185,154,0.18) 48.1% 48.32%, transparent 48.42% 100%),
    linear-gradient(90deg, transparent 0 64%, rgba(23,63,109,0.1) 64.1% 64.28%, transparent 64.38% 100%);
  background-size: 520px 520px, 620px 620px, 780px 780px;
  animation: maraTraceShift 38s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes maraAmbientWash {
  0% {
    background-position: center, 0% 0%, 100% 0%;
  }
  50% {
    background-position: center, 45% 20%, 60% 30%;
  }
  100% {
    background-position: center, 100% 40%, 0% 44%;
  }
}

@keyframes maraPlotLines {
  from {
    transform: translate3d(-28px, -12px, 0);
  }
  to {
    transform: translate3d(34px, 22px, 0);
  }
}

@keyframes maraSkylineRise {
  0% {
    opacity: 0.62;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 0.82;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes maraGridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(80px, 80px, 0);
  }
}

@keyframes maraBuildingFloat {
  0% {
    opacity: 0.2;
    transform: translate3d(0, 12px, 0);
  }
  100% {
    opacity: 0.34;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes maraWindowGlow {
  0%, 100% {
    opacity: 0.34;
  }
  45% {
    opacity: 0.72;
  }
}

@keyframes maraTraceShift {
  from {
    opacity: 0.08;
    transform: translate3d(-18px, 12px, 0);
  }
  to {
    opacity: 0.16;
    transform: translate3d(28px, -18px, 0);
  }
}

body > :not(.real-estate-bg):not(#preloader):not(.mara-modal) {
  position: relative;
  z-index: 1;
}

#preloader {
  background: #ffffff;
}

.mara-header,
.mara-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(23, 63, 109, 0.1);
  box-shadow: 0 10px 32px rgba(23, 63, 109, 0.08);
}

.mara-header .navbar {
  min-height: 92px;
}

.brand-logo-img {
  width: 178px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

.text-white {
  color: var(--mara-navy) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-dark,
.bg-darker {
  background: transparent !important;
}

.navbar-collapse {
  background: transparent;
}

.hero-section {
  background: transparent;
  padding-top: 170px;
}

section.bg-dark,
section.bg-darker {
  background: transparent !important;
}

.calculator-card,
.premium-card,
.about-interactive-box,
.trends-visual-box,
.trend-mini-card,
.faq-item,
.contact-info-card,
.mara-modal-container {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 63, 109, 0.1);
  box-shadow: 0 14px 38px rgba(23, 63, 109, 0.08);
}

.calculator-card,
.premium-card,
.about-interactive-box,
.trends-visual-box,
.contact-info-card {
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.premium-card:hover,
.trend-mini-card:hover,
.compliance-badge-card:hover,
.faq-item:hover {
  border-color: rgba(39, 185, 154, 0.28);
  box-shadow: 0 20px 48px rgba(23, 63, 109, 0.12);
}

.btn-primary-gold,
.btn-consultation,
.about-tab-trigger.active,
.horizon-tab-btn.active {
  color: (--gold-primary) !important;
}

.btn-secondary-outline {
  color: var(--mara-navy) !important;
  background: rgba(255,255,255,0.86);
  border-color: rgba(23, 63, 109, 0.18);
}

.hero-badge,
.section-badge {
  background: rgba(39, 185, 154, 0.09);
  border-color: rgba(39, 185, 154, 0.2);
  color: var(--mara-teal);
}

.card-icon-container,
.info-icon {
  background: rgba(39, 185, 154, 0.1);
  border-color: rgba(39, 185, 154, 0.18);
}

.calc-metric-box,
.trend-mini-card,
.compliance-badge-card,
.modern-input,
.faq-item {
  background: rgba(255, 255, 255, 0.74);
}

.calc-metric-box.total-box {
  background: rgba(39, 185, 154, 0.08);
}

.about-tab-trigger {
  background: rgba(255, 255, 255, 0.72);
}

.leader-avatar-placeholder {
  background: linear-gradient(135deg, var(--mara-teal) 0%, var(--mara-navy) 100%);
  color: #ffffff;
}

.modern-input {
  background: rgba(255, 255, 255, 0.72);
  color: var(--mara-navy);
}

.modern-input:focus {
  background: #ffffff;
}

.mara-footer {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(23, 63, 109, 0.08);
  }

  .mara-header .navbar {
    min-height: 78px;
  }

  .brand-logo-img {
    width: 150px;
    height: 72px;
  }
}

@media (max-width: 575.98px) {
  .real-estate-bg {
    opacity: 0.72;
  }

  .bg-blueprint-grid {
    background-size: 52px 52px;
  }

  .brand-logo-img {
    width: 128px;
    height: 66px;
  }
}

/* 18. Final UI Refinements */
.section-title,
.hero-title,
.card-title,
.stepper-title,
.calc-title,
.faq-header-btn,
.footer-section-title,
.info-details h6,
.modern-form-group label {
  color: var(--mara-navy);
}

.hero-title {
  /* max-width: 780px; */
}

.hero-subtitle {
  max-width: 620px;
}

.premium-card,
.calculator-card,
.about-interactive-box,
.trends-visual-box,
.contact-info-card {
  border-radius: 14px;
}

.premium-card {
  padding: 32px;
}

.card-icon-container {
  border-radius: 12px;
}

.calc-metric-box,
.trend-mini-card,
.compliance-badge-card,
.faq-item,
.modern-input {
  border-color: rgba(23, 63, 109, 0.1);
}

.hero-section .calculator-card {
  min-height: 390px;
}

.about-interactive-box[style] {
  background: rgba(255, 255, 255, 0.92) !important;
}

.footer-logo-img {
  width: min(250px, 76vw);
}

@media (min-width: 992px) {
  .mara-header .container {
    max-width: 1240px;
  }

  .brand-logo-img {
    width: 218px;
    height: 76px;
    object-fit: cover;
    object-position: center 77%;
  }
}

@media (max-width: 575.98px) {
  .mara-header .navbar {
    min-height: 72px;
  }

  .brand-logo-img {
    width: 156px;
    height: 58px;
    object-fit: cover;
    object-position: center 77%;
  }

  .hero-section {
    padding-top: 120px;
  }

  .premium-card {
    min-height: auto;
  }
}

@media (max-width: 991.98px) {
  .brand-logo-img {
    width: 180px;
    height: 66px;
    object-fit: cover;
    object-position: center 77%;
  }
}

@media (max-width: 575.98px) {
  .brand-logo-img {
    width: 156px;
    height: 58px;
  }
}

/* 19. Header, Footer, and Static Background Polish */
.mara-header {
  overflow: visible;
}

.mara-header .navbar {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 112px;
}

.mara-brand {
  justify-self: start;
  min-width: 0;
}

.brand-logo-img {
  width: 190px !important;
  height: 104px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.navbar-collapse {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-width: 0;
}

.navbar-nav {
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.navbar-nav .nav-link {
  white-space: nowrap;
  color: #62748a !important;
  font-weight: 700;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--mara-teal) !important;
}

.mara-header .d-flex.align-items-center.gap-3 {
  justify-self: end;
  white-space: nowrap;
}

.hero-section {
  padding-top: 190px;
}

.mara-footer .row {
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  width: min(260px, 72vw);
}

@media (max-width: 1199.98px) {
  .mara-header .navbar {
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .brand-logo-img {
    width: 166px !important;
    height: 94px !important;
  }

  .nav-link {
    padding: 8px 10px !important;
  }
}

@media (max-width: 991.98px) {
  .mara-header .navbar {
    display: flex;
    min-height: 92px;
  }

  .brand-logo-img {
    width: 150px !important;
    height: 84px !important;
  }

  .navbar-collapse {
    display: none !important;
    background: rgba(255,255,255,0.98);
    border-radius: 14px;
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .navbar-nav {
    align-items: center;
    gap: 0;
  }

  .mara-header .d-flex.align-items-center.gap-3 {
    width: 100%;
    justify-content: center;
  }

  .hero-section {
    padding-top: 138px;
  }

  .bg-light-band,
  .bg-architect-lines {
    opacity: 0.18;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .real-estate-bg::before,
  .real-estate-bg::after,
  .bg-blueprint-grid,
  .bg-light-band,
  .bg-light-band::before,
  .bg-architect-lines {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 575.98px) {
  .brand-logo-img {
    width: 126px !important;
    height: 74px !important;
  }

  .footer-brand,
  .footer-social-grid {
    justify-content: center;
  }

  .mara-footer {
    text-align: center;
  }
}

/* 20. Footer and Chat Layout Fix */
.mara-footer {
  padding: 56px 0 56px;
}

.mara-footer .footer-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(150px, 0.7fr) minmax(190px, 0.85fr) minmax(190px, auto);
  column-gap: clamp(32px, 5vw, 88px);
  row-gap: 34px;
  align-items: flex-start;
  justify-content: stretch;
  margin-left: 0;
  margin-right: 0;
}

.mara-footer .footer-column {
  display: block;
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  min-width: 0;
}

.mara-footer .footer-brand-column {
  max-width: 460px;
}

.footer-brand {
  margin-bottom: 18px;
  display: block;
}

.footer-logo-img {
  width: min(210px, 72vw);
  max-width: 100%;
}

.footer-tagline {
  max-width: 420px;
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.65;
}

.footer-section-title {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  line-height: 1.2;
}

.footer-links {
  margin: 0;
  padding: 0;
  min-width: 0;
  display: block;
}

.footer-links li {
  display: block;
  min-width: 0;
  margin: 0 0 10px;
}

.footer-links a,
.footer-legal-trigger {
  display: block;
  text-align: inherit;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.footer-divider {
  margin: 38px 0 22px;
}

@media (max-width: 1199.98px) {
  .mara-footer .footer-row {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.75fr) minmax(190px, 0.85fr) minmax(170px, 0.75fr);
    column-gap: 32px;
    gap: 34px;
  }

  .mara-footer .footer-brand-column {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .mara-footer .footer-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .mara-footer .footer-row {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .mara-footer .footer-column {
    max-width: 100%;
  }

  .footer-brand,
  .footer-social-grid {
    justify-content: center;
  }

  .footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

/* 21. Interactive About Redesign */
.about-interactive-box {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,252,251,0.9)),
    linear-gradient(90deg, rgba(39,185,154,0.08), transparent 38%);
  border: 1px solid rgba(23, 63, 109, 0.1);
  box-shadow: 0 24px 70px rgba(23, 63, 109, 0.1);
}

.about-interactive-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 0 46%, rgba(39,185,154,0.13) 46% 46.25%, transparent 46.25% 100%),
    linear-gradient(60deg, transparent 0 58%, rgba(23,63,109,0.08) 58% 58.2%, transparent 58.2% 100%);
  background-size: 320px 320px;
  opacity: 0.45;
}

.about-nav-tabs,
.about-dashboard {
  position: relative;
  z-index: 1;
}

.about-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px;
  border: 1px solid rgba(23, 63, 109, 0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
}

.about-tab-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: start;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.about-tab-trigger::before {
  content: attr(data-step);
  position: absolute;
  top: 7px;
  inset-inline-end: 10px;
  color: rgba(23,63,109,0.22);
  font-size: 0.72rem;
  font-weight: 900;
}

.about-tab-trigger i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(39,185,154,0.09);
  color: var(--mara-teal);
}

.about-tab-trigger:hover,
.about-tab-trigger.active {
  transform: translateY(-1px);
  border-color: rgba(39,185,154,0.28);
  background: #ffffff;
  color: var(--mara-navy);
  box-shadow: 0 14px 30px rgba(23, 63, 109, 0.08);
}

.about-tab-trigger.active i {
  background: linear-gradient(135deg, var(--mara-teal), var(--mara-navy));
  color: #ffffff;
}

.about-dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.about-visual-panel {
  display: grid;
  gap: 18px;
  align-content: stretch;
}

.about-visual-shell {
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(23,63,109,0.96), rgba(23,63,109,0.82)),
    linear-gradient(45deg, rgba(39,185,154,0.26), transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 18px 44px rgba(23,63,109,0.18);
}

.about-visual-shell::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  animation: aboutPanelGrid 18s linear infinite;
}

.about-building-mark {
  position: absolute;
  inset: 92px 0 auto;
  display: flex;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 7rem;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,0.22));
}

.about-flow-line {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 92px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}

.about-flow-line span {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 8px rgba(39,185,154,0.22);
  transform: translateY(-50%);
  animation: aboutPulse 2.8s ease-in-out infinite;
}

.about-flow-line span:nth-child(1) { left: 0; }
.about-flow-line span:nth-child(2) { left: 50%; animation-delay: 0.35s; }
.about-flow-line span:nth-child(3) { right: 0; animation-delay: 0.7s; }

.about-mini-stat {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 118px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.about-mini-stat span {
  color: var(--mara-navy);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.about-mini-stat small {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.about-mini-stat-top {
  top: 24px;
  inset-inline-start: 24px;
}

.about-mini-stat-bottom {
  right: 24px;
  bottom: 24px;
}

[dir="rtl"] .about-mini-stat-bottom {
  right: auto;
  left: 24px;
}

.about-status-list {
  display: grid;
  gap: 10px;
}

.about-status-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(23,63,109,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
  color: var(--mara-navy);
  font-weight: 800;
}

.about-status-list i {
  color: var(--mara-teal);
}

.about-content-panel {
  min-height: 100%;
  display: flex;
  align-items: center;
}

.about-tab-content {
  width: 100%;
  display: none;
  animation: aboutPaneIn 320ms ease both;
}

.about-tab-content.active {
  display: block;
}

.about-content-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--mara-teal);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-content-kicker i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(39,185,154,0.1);
}

.about-tab-content h4 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--mara-navy) !important;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.12;
  font-weight: 900;
}

.about-tab-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.about-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about-pill-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(39,185,154,0.08);
  color: var(--mara-navy);
  font-size: 0.84rem;
  font-weight: 900;
}

.about-pill-row i {
  color: var(--mara-teal);
}

.about-lead {
  max-width: 780px;
  margin-bottom: 22px;
}

.about-feature-grid {
  display: grid;
  gap: 14px;
}

.about-feature-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-feature-item {
  position: relative;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(23,63,109,0.09);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.about-feature-item:hover {
  transform: translateY(-3px);
  border-color: rgba(39,185,154,0.32);
  box-shadow: 0 16px 34px rgba(23,63,109,0.09);
}

.about-feature-item > i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(39,185,154,0.16), rgba(23,63,109,0.08));
  color: var(--mara-teal);
  font-size: 1.15rem;
}

.about-feature-item h5 {
  margin: 0 0 8px;
  color: var(--mara-navy) !important;
  font-size: 1rem;
  font-weight: 900;
}

.about-feature-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mara-teal);
  font-size: 0.84rem;
}

.about-feature-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

@keyframes aboutPanelGrid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(42px, 42px, 0); }
}

@keyframes aboutPulse {
  0%, 100% { transform: translateY(-50%) scale(0.82); opacity: 0.58; }
  50% { transform: translateY(-50%) scale(1.08); opacity: 1; }
}

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

@media (max-width: 1199.98px) {
  .about-nav-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-visual-shell {
    min-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .about-nav-tabs,
  .about-feature-grid.two,
  .about-feature-grid.three,
  .about-copy-grid {
    grid-template-columns: 1fr;
  }

  .about-tab-trigger {
    min-height: 54px;
  }

  .about-visual-shell {
    min-height: 280px;
  }

  .about-building-mark {
    font-size: 5.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-visual-shell::before,
  .about-flow-line span,
  .about-tab-content {
    animation: none !important;
  }
}

/* 22. Final Responsive Stability Patch */
img,
svg,
video,
canvas {
  max-width: 100%;
}

body {
  min-width: 320px;
}

.container,
.container-fluid,
.row,
[class*="col-"],
.reveal,
.premium-card,
.calculator-card,
.about-interactive-box,
.trends-visual-box,
.contact-info-card,
.faq-item,
.mara-modal-container {
  min-width: 0;
}

.hero-title,
.section-title,
.card-title,
.stepper-title,
.calc-title,
.about-tab-content h4,
.faq-header-btn,
.btn,
.nav-link,
.footer-links a,
.footer-legal-trigger,
.social-post-card h4,
.social-post-card p {
  overflow-wrap: anywhere;
}

.mara-header .navbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 92px;
  gap: clamp(12px, 2vw, 22px);
}

.brand-logo-img {
  width: clamp(130px, 14vw, 178px) !important;
  height: 76px !important;
}

.navbar-collapse {
  min-width: 0;
}

.navbar-nav {
  gap: clamp(2px, 0.6vw, 8px);
}

.navbar-nav .nav-link {
  padding-inline: clamp(6px, 0.7vw, 10px) !important;
  font-size: clamp(0.78rem, 0.82vw, 0.9rem);
}

.mara-header .d-flex.align-items-center.gap-3 {
  gap: 10px !important;
}

.btn-consultation {
  padding-inline: 16px;
  font-size: 0.84rem;
}

.hero-section {
  min-height: auto;
  padding: clamp(132px, 15vw, 180px) 0 clamp(62px, 8vw, 96px);
}

.hero-title {
  font-size: clamp(2.05rem, 5.5vw, 3.45rem);
  line-height: 1.12;
}

.section-title {
  font-size: clamp(1.85rem, 4.6vw, 2.5rem);
  line-height: 1.16;
}

.section-padding {
  min-height: auto;
  padding: clamp(58px, 8vw, 94px) 0;
}

.hero-badge,
.section-badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.45;
}

.hero-ctas .btn,
.btn-primary-gold,
.btn-secondary-outline {
  max-width: 100%;
  white-space: normal;
}

.premium-card,
.calculator-card,
.about-interactive-box,
.trends-visual-box,
.contact-info-card {
  padding: clamp(22px, 4vw, 34px);
}

.calc-metric-box,
.info-item,
.form-success-alert {
  gap: 12px;
}

.calc-metric-box {
  flex-wrap: wrap;
}

.calc-metric-label {
  flex: 1 1 170px;
}

.about-tab-trigger {
  min-width: 0;
}

.about-tab-trigger span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.about-visual-shell {
  min-height: clamp(250px, 36vw, 380px);
}

.about-mini-stat {
  min-width: min(118px, 42vw);
}

.about-feature-item,
.compliance-badge-card,
.trend-mini-card {
  min-width: 0;
}

.social-post-card {
  min-width: 0;
}

.mara-modal {
  padding: 14px;
}

.mara-modal-container {
  max-width: min(650px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .mara-header .container {
    max-width: 100%;
  }

  .mara-header .navbar {
    grid-template-columns: auto 1fr;
  }

  .navbar-collapse {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 12px;
  }

  .brand-logo-img {
    width: 158px !important;
    height: 68px !important;
  }

  .hero-section {
    padding-top: 168px;
  }
}

@media (max-width: 991.98px) {
  .mara-header .navbar {
    display: flex;
    position: relative;
    justify-content: flex-start;
    min-height: 78px;
    padding-block: 4px;
  }

  .mara-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
  }

  .brand-logo-img {
    width: 140px !important;
    height: 64px !important;
  }

  .navbar-toggler {
    margin: 0;
    z-index: 2;
  }

  .navbar-collapse {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    max-height: calc(100svh - 110px);
    overflow-y: auto;
    padding: 16px;
  }

  .navbar-nav {
    align-items: stretch;
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 10px 12px !important;
    white-space: normal;
    font-size: 0.95rem;
  }

  .mara-header .d-flex.align-items-center.gap-3 {
    flex-direction: column;
    align-items: stretch !important;
  }

  .lang-toggle-btn,
  .btn-consultation {
    width: 100%;
    margin: 0 !important;
    text-align: center;
  }

  .hero-section {
    padding-top: 112px;
  }

  .hero-section .container,
  .section-padding > .container {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-section .row,
  .section-padding .row {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-section .row > *,
  .section-padding .row > * {
    max-width: 100%;
  }

  .row.g-4 > [class*="col-"],
  .row.g-5 > [class*="col-"] {
    display: block;
  }

  .about-nav-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-dashboard,
  .about-feature-grid.three,
  .mara-footer .footer-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .container {
    --bs-gutter-x: 1.5rem;
  }

  .hero-section .row {
    --bs-gutter-y: 1.5rem;
  }

  .hero-badge {
    font-size: 0.78rem;
  }

  .hero-section .text-center,
  .section-padding .text-center {
    max-width: 100%;
  }

  .hero-title,
  .section-title {
    width: 100%;
    max-width: 100%;
    text-align: center;
    word-break: break-word;
  }

  .hero-title span {
    display: inline;
  }

  .hero-title span.accent {
    display: block;
  }

  .hero-title span:not(.accent) {
    display: block;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle,
  .section-subtitle {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: center;
  }

  .hero-ctas {
    gap: 10px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .about-nav-tabs,
  .about-feature-grid.two,
  .about-feature-grid.three,
  .about-copy-grid,
  .social-post-card {
    grid-template-columns: 1fr;
  }

  .social-post-card {
    text-align: center;
    justify-items: center;
  }

  .stepper-item {
    padding-left: 58px;
    margin-bottom: 34px;
  }

  [dir="rtl"] .stepper-item {
    padding-left: 0;
    padding-right: 58px;
  }

  .stepper-timeline::before {
    left: 21px;
  }

  [dir="rtl"] .stepper-timeline::before {
    right: 21px;
  }

  .stepper-node {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }

  .faq-header-btn {
    padding: 18px;
    font-size: 1rem;
  }

  .calculator-card,
  .premium-card,
  .about-interactive-box,
  .trends-visual-box,
  .contact-info-card,
  .social-post-card {
    max-width: 100%;
    overflow: hidden;
  }

  .calc-metric-box {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  [dir="rtl"] .calc-metric-box {
    grid-template-columns: 1fr;
  }

  .calc-metric-label,
  .calc-metric-num {
    min-width: 0;
    max-width: 100%;
  }

  .faq-body-content {
    padding: 0 18px 18px;
  }

  .mara-modal-header,
  .mara-modal-body,
  .mara-modal-footer {
    padding-inline: 18px;
  }

}

@media (max-width: 575.98px) {
  .mara-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo-img {
    width: 118px !important;
    height: 56px !important;
  }

  .hero-section {
    padding-top: 96px;
  }

  .hero-title {
    font-size: clamp(1.62rem, 7.4vw, 2rem);
    line-height: 1.22;
  }

  .section-title {
    font-size: clamp(1.42rem, 6.7vw, 1.72rem);
    line-height: 1.22;
    max-width: 315px;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-title {
    max-width: 285px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.32rem;
    line-height: 1.3;
    text-align: center;
  }

  .calc-subtitle,
  .calc-disclaimer {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .calc-subtitle,
  .card-desc,
  .stepper-desc,
  .about-tab-content p,
  .faq-body-content,
  .info-details p {
    font-size: 0.9rem;
  }

  .premium-card,
  .calculator-card,
  .about-interactive-box,
  .trends-visual-box,
  .contact-info-card {
    padding: 20px;
  }

  .about-tab-trigger {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .premium-card,
  .calculator-card,
  .about-interactive-box,
  .trends-visual-box,
  .contact-info-card {
    margin-left: auto;
    margin-right: auto;
  }

  .about-tab-trigger i {
    width: 34px;
    height: 34px;
  }

  .about-visual-shell {
    min-height: 230px;
  }

  .about-building-mark {
    inset-block-start: 72px;
    font-size: 4.5rem;
  }

  .about-mini-stat {
    padding: 10px;
  }

  .about-mini-stat span {
    font-size: 1.1rem;
  }

  .about-status-list div,
  .info-item {
    align-items: flex-start;
  }

  .footer-logo-img {
    width: min(180px, 68vw);
  }
}

/* Arabic alignment pass */
[dir="rtl"] body,
[dir="rtl"] .text-center,
[dir="rtl"] .text-lg-start,
[dir="rtl"] .hero-section,
[dir="rtl"] .hero-section .reveal,
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .calculator-card,
[dir="rtl"] .calc-title-badge,
[dir="rtl"] .calc-title,
[dir="rtl"] .calc-subtitle,
[dir="rtl"] .calc-disclaimer,
[dir="rtl"] .premium-card,
[dir="rtl"] .card-title,
[dir="rtl"] .card-desc,
[dir="rtl"] .about-interactive-box,
[dir="rtl"] .about-tab-content,
[dir="rtl"] .trends-visual-box,
[dir="rtl"] .trend-mini-card,
[dir="rtl"] .faq-body-content,
[dir="rtl"] .contact-info-card,
[dir="rtl"] .info-details,
[dir="rtl"] .mara-modal-container,
[dir="rtl"] .mara-modal-body,
[dir="rtl"] .mara-footer {
  text-align: right !important;
}

/* [dir="rtl"] .hero-section .text-center,
[dir="rtl"] .section-padding .text-center {
  align-items: flex-end !important;
} */

[dir="rtl"] .hero-badge,
[dir="rtl"] .section-badge {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .hero-ctas {
  justify-content: flex-start !important;
}

[dir="rtl"] .hero-title span:not(.accent),
[dir="rtl"] .calc-title,
[dir="rtl"] .calc-subtitle,
[dir="rtl"] .calc-disclaimer,
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .calc-metric-box,
[dir="rtl"] .info-item,
[dir="rtl"] .social-post-card {
  direction: rtl;
}

[dir="rtl"] .calc-metric-label,
[dir="rtl"] .calc-metric-num {
  text-align: right;
}

@media (max-width: 767.98px) {
  [dir="rtl"] .hero-title,
  [dir="rtl"] .hero-title span,
  [dir="rtl"] .hero-title span.accent,
  [dir="rtl"] .hero-title span:not(.accent),
  [dir="rtl"] .hero-subtitle,
  [dir="rtl"] .section-title,
  [dir="rtl"] .section-subtitle,
  [dir="rtl"] .calc-title,
  [dir="rtl"] .calc-subtitle,
  [dir="rtl"] .calc-disclaimer,
  [dir="rtl"] .calc-metric-box,
  [dir="rtl"] .social-post-card {
    text-align: right !important;
  }

  [dir="rtl"] .calc-metric-box {
    justify-items: end;
  }
}

/* Fixed navigation */
html {
  scroll-padding-top: 152px;
}

.mara-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5000;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 26px rgba(23, 63, 109, 0.1);
}

.mara-header .navbar {
  min-height: 82px !important;
  padding-block: 4px !important;
}

.mara-header .brand-logo-img {
  width: clamp(118px, 10vw, 150px) !important;
  height: 68px !important;
}

.mara-header .nav-link {
  font-size: clamp(0.74rem, 0.78vw, 0.86rem);
  padding-inline: clamp(5px, 0.55vw, 8px) !important;
}

.mara-header.scrolled {
  transform: none;
  padding: 0;
}

section[id] {
  scroll-margin-top: 152px;
}

section[id]:target {
  scroll-margin-top: 152px;
}

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 108px;
  }

  section[id] {
    scroll-margin-top: 108px;
  }

  section[id]:target {
    scroll-margin-top: 108px;
  }

  .mara-header {
    z-index: 5000;
  }

  .mara-header .navbar {
    min-height: 76px !important;
  }

  .mara-header .brand-logo-img {
    width: 128px !important;
    height: 58px !important;
  }
}

/* Navigation final fix */
.mara-header {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 99999 !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(23, 63, 109, 0.1);
  box-shadow: 0 10px 26px rgba(23, 63, 109, 0.1);
  isolation: isolate;
}

.mara-header .container {
  width: min(1500px, calc(100% - 32px));
  max-width: none;
  padding-inline: 0;
}

.mara-header .navbar {
  min-height: 78px !important;
  padding-block: 6px !important;
}

.mara-brand {
  flex: 0 0 auto;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
}

.mara-header .brand-logo-img {
  width: clamp(104px, 8vw, 132px) !important;
  height: 62px !important;
  object-fit: contain !important;
}

@media (min-width: 992px) {
  .mara-header .navbar {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
  }

  .mara-header .navbar-toggler {
    display: none !important;
  }

  .mara-header .navbar-collapse {
    position: static !important;
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 1.8vw, 26px);
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0 !important;
    background: transparent !important;
  }

  .mara-header .navbar-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.65vw, 10px);
    min-width: 0;
    margin: 0 !important;
  }

  .mara-header .nav-link {
    padding: 8px clamp(5px, 0.55vw, 9px) !important;
    font-size: clamp(0.72rem, 0.74vw, 0.86rem);
    line-height: 1.2;
    white-space: nowrap;
  }

  .mara-header .d-flex.align-items-center.gap-3 {
    flex: 0 0 auto;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 10px !important;
    min-width: max-content;
    white-space: nowrap;
  }

  .mara-header .lang-toggle-btn {
    margin: 0 !important;
    padding: 7px 16px !important;
  }

  .mara-header .btn-consultation {
    padding: 9px 18px;
    font-size: 0.84rem;
  }
}

@media (max-width: 991.98px) {
  .mara-header .container {
    width: min(100% - 24px, 720px);
  }

  .mara-header .navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 72px !important;
  }

  .mara-header .brand-logo-img {
    width: 116px !important;
    height: 54px !important;
  }

  .mara-header .navbar-toggler {
    position: relative;
    z-index: 2;
    margin-inline-start: auto;
  }

  .mara-header .navbar-collapse {
    position: absolute !important;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none !important;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    padding: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(23, 63, 109, 0.12);
    border-radius: 12px;
    box-shadow: 0 18px 38px rgba(23, 63, 109, 0.14);
  }

  .mara-header .navbar-collapse.show {
    display: block !important;
  }

  .mara-header .navbar-nav {
    align-items: stretch;
    text-align: center;
    gap: 4px;
    margin: 0 0 12px !important;
  }

  .mara-header .nav-link {
    padding: 10px 12px !important;
    font-size: 0.95rem;
    white-space: normal;
  }

  .mara-header .d-flex.align-items-center.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
}

