/* ==========================================================================
   MB MEDIA — Dark Luxury Real Estate Landing Page (الواقع المعماري الفاخر)
   Engine E5 — Architecture & Luxury Properties
   Design System: Deep Black (#0A0A0B) & Bronze Gold (#C5A059)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #0A0A0B;
  --bg-surface: #121216;
  --bg-surface-hover: #1A1A22;
  --bg-card: rgba(18, 18, 24, 0.75);
  
  --accent-gold: #C5A059;
  --accent-gold-bright: #E5C178;
  --accent-gold-dark: #8F7034;
  --accent-bronze: #A37938;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Glassmorphism & Borders */
  --glass-bg: rgba(18, 18, 24, 0.72);
  --glass-border: 1px solid rgba(197, 160, 89, 0.22);
  --glass-border-light: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(197, 160, 89, 0.05);
  --glass-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 160, 89, 0.2);

  /* Radius & Dimensions */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --nav-height: 52px;
}

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

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  line-height: 1.6;
  position: relative;
  padding-top: var(--nav-height);
}

/* Container & Spacing */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

.section-spacing {
  padding-block: 5.5rem;
}

/* Typography & Badges */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(197, 160, 89, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 60%, var(--accent-bronze) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Glassmorphism Cards */
.dark-glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.dark-glass-card:hover {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-6px);
}

/* Shimmer & Glow Animations */
@keyframes goldShimmer {
  0% { transform: translateX(-150%) rotate(25deg); }
  100% { transform: translateX(150%) rotate(25deg); }
}

@keyframes pulseGoldGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(197, 160, 89, 0.2); }
  50% { box-shadow: 0 0 35px rgba(197, 160, 89, 0.5); }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(229, 193, 120, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-150%) rotate(25deg);
  animation: goldShimmer 5s infinite;
  pointer-events: none;
}

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-bronze) 100%);
  color: #0A0A0B;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(197, 160, 89, 0.45);
  background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-glass:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
  transform: translateY(-3px);
}

/* Navbar */
.luxury-nav {
  position: fixed;
  top: var(--nav-height);
  inset-inline: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.03em;
}

.nav-brand span {
  color: var(--accent-gold);
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-gold-bright);
}

/* ==========================================================================
   Hero Section (Cinematic Radial Mask Background)
   ========================================================================== */
.hero-luxury {
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 5rem 6rem;
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(10, 10, 11, 0.15) 0%, rgba(10, 10, 11, 0.88) 70%, #0A0A0B 100%),
    linear-gradient(to bottom, #0A0A0B 0%, rgba(10, 10, 11, 0.2) 25%, rgba(10, 10, 11, 0.7) 80%, #0A0A0B 100%),
    linear-gradient(to right, #0A0A0B 0%, transparent 20%, transparent 80%, #0A0A0B 100%),
    url('img/hero-villa.webp') center/cover no-repeat;
  filter: brightness(0.85) contrast(1.1);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero-stat-box {
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 15, 0.18);
  border: 1px solid rgba(197, 160, 89, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 30px rgba(197, 160, 89, 0.15);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.hero-stat-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(229, 193, 120, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-150%) rotate(25deg);
  animation: goldShimmer 6s infinite ease-in-out;
  pointer-events: none;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.stat-icon-gold {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--accent-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold-bright);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-lbl {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Services Grid Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: var(--accent-gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background: var(--accent-gold);
  color: #0A0A0B;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Featured Properties Gallery Section
   ========================================================================== */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-img-box {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #1A1A22;
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img {
  transform: scale(1.08);
}

.property-tag {
  position: absolute;
  top: 15px;
  inset-inline-start: 15px;
  padding: 0.35rem 0.85rem;
  background: rgba(10, 10, 11, 0.8);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: var(--accent-gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.property-price-badge {
  position: absolute;
  bottom: 15px;
  inset-inline-end: 15px;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-bronze) 100%);
  color: #0A0A0B;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.property-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.property-location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.property-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  border-block: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.spec-item strong {
  color: #FFFFFF;
}

/* ==========================================================================
   Process Timeline (01 -> 02 -> 03 -> 04)
   ========================================================================== */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

@media (min-width: 640px) {
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .timeline-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  padding: 2.2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-gold-bright) 0%, rgba(197, 160, 89, 0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Stats & Testimonials Section
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

.testimonial-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  object-fit: cover;
}

.client-name {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 1rem;
}

.client-role {
  font-size: 0.82rem;
  color: var(--accent-gold);
}

/* ==========================================================================
   Contact Form & Footer Section
   ========================================================================== */
.contact-section {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 22, 0.9) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  border: var(--glass-border);
}

.contact-card {
  max-width: 800px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-input-dark {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(10, 10, 11, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input-dark:focus {
  border-color: var(--accent-gold-bright);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.25);
}

textarea.form-input-dark {
  grid-column: 1 / -1;
  min-height: 130px;
  resize: vertical;
}

.footer-dark {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #070708;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
}

.footer-brand h3 span { color: var(--accent-gold); }

.footer-brand p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  max-width: 380px;
}

.footer-links h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-gold-bright);
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
