/* ═══════════════════════════════════════════════════════════
   Osool Riyadh Real Estate & Asset Management — Design System
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg-dark: #070c14;
  --bg-card: #0d1522;
  --bg-surface: #121c2e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(197, 168, 128, 0.35);
  --gold-primary: #c5a880;
  --gold-light: #e4cca8;
  --gold-dark: #9a7d55;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-dim: rgba(255, 255, 255, 0.45);
  --accent-blue: #2563eb;
  --font-ar: 'Noto Naskh Arabic', 'Cairo', serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --nav-h: 76px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-gold: 0 10px 30px -10px rgba(197, 168, 128, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ar);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-en {
  font-family: var(--font-en);
}

/* Subtle background architectural grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(197, 168, 128, 0.12) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

/* ═════ NAVBAR ═════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(7, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070c14;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.68rem;
  color: var(--gold-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lang {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-gold);
  background: rgba(197, 168, 128, 0.08);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-lang:hover {
  background: var(--gold-primary);
  color: #070c14;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: #070c14 !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 168, 128, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-gold);
}

/* ═════ HERO ═════ */
.hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-gold);
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 12, 20, 0.85) 0%, transparent 50%);
}

.hero-img-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(13, 21, 34, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ═════ STATS ═════ */
.stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═════ SECTION STYLES ═════ */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

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

/* ═════ SERVICES GRID ═════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 54px;
  height: 54px;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.service-features li::before {
  content: '✓';
  color: var(--gold-light);
  font-weight: bold;
}

/* ═════ PORTFOLIO GRID ═════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s;
}

.portfolio-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.portfolio-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.portfolio-info {
  padding: 24px;
}

.portfolio-type {
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.portfolio-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═════ CTA & CONTACT ═════ */
.cta-box {
  background: linear-gradient(135deg, #101a2b, #09101a);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-card-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(197, 168, 128, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.2rem;
  shrink-0;
}

/* ═════ FLOATING WHATSAPP ═════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

body.lang-en .whatsapp-float {
  left: auto;
  right: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* ═════ FOOTER ═════ */
.footer {
  background: #04080e;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* ═════ RESPONSIVE ═════ */
@media (max-width: 992px) {
  .hero-grid, .cta-box {
    grid-template-columns: 1fr;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }
  .container {
    padding: 0 16px;
  }
  .navbar {
    height: var(--nav-h);
  }
  .nav-inner {
    gap: 8px;
  }
  .nav-links {
    display: none;
  }
  .logo-wrap {
    gap: 8px;
    min-width: 0;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .logo-text {
    min-width: 0;
  }
  .logo-text h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1.2;
  }
  .logo-text span {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-lang {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .nav-actions .btn-primary {
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    gap: 4px;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 50px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-img {
    height: 300px;
  }
  .cta-box {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 60px;
  }
  .logo-text span {
    display: none;
  }
  .logo-text h1 {
    font-size: 0.88rem;
  }
  .nav-actions .btn-primary {
    padding: 5px 9px;
    font-size: 0.74rem;
  }
  .btn-lang {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

