/*
Theme Name: Al Madinah Home Services
Theme URI: https://almadinah-services.com
Author: Al Madinah Services
Description: ثيم المدينة المنورة للخدمات المنزلية — Dark Gold + Light Mode
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 8.0
License: Private
Text Domain: almadinah
Tags: arabic, rtl, services, business, dark-mode, light-mode
*/

/* ===== CSS VARIABLES — DARK (default) ===== */
:root {
  --gold:        #c9a84c;
  --gold2:       #e8c97a;
  --gold-light:  #f5e6c0;
  --accent:      #1a6b5c;
  --accent2:     #22957a;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
  --font:        'Cairo', 'Tajawal', sans-serif;

  /* Dark mode colors */
  --bg:          #0a0e1a;
  --bg2:         #111827;
  --bg3:         #1a2235;
  --bg4:         #0d1424;
  --text:        #ffffff;
  --text-muted:  #94a3b8;
  --text-muted2: #64748b;
  --border:      rgba(201,168,76,0.2);
  --border2:     rgba(201,168,76,0.08);
  --card-bg:     #1a2235;
  --input-bg:    #0d1424;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
  --overlay:     rgba(10,14,26,0.92);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg:          #f8f9fc;
  --bg2:         #ffffff;
  --bg3:         #eef2f8;
  --bg4:         #e8edf5;
  --text:        #0f172a;
  --text-muted:  #475569;
  --text-muted2: #64748b;
  --border:      rgba(201,168,76,0.35);
  --border2:     rgba(201,168,76,0.12);
  --card-bg:     #ffffff;
  --input-bg:    #f1f5f9;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
  --overlay:     rgba(248,249,252,0.95);
  --gold:        #b8922e;
  --gold2:       #c9a84c;
}

/* Auto detect OS dark/light */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:          #f8f9fc;
    --bg2:         #ffffff;
    --bg3:         #eef2f8;
    --bg4:         #e8edf5;
    --text:        #0f172a;
    --text-muted:  #475569;
    --text-muted2: #64748b;
    --border:      rgba(201,168,76,0.35);
    --border2:     rgba(201,168,76,0.12);
    --card-bg:     #ffffff;
    --input-bg:    #f1f5f9;
    --shadow:      0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
    --overlay:     rgba(248,249,252,0.95);
    --gold:        #b8922e;
    --gold2:       #c9a84c;
  }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

main { flex: 1; display: block; width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

/* ===== FLOATING BUTTONS ===== */
.floating-actions {
  position: fixed;
  left: 24px;
  bottom: 90px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.fab:hover { transform: scale(1.12); }
.fab svg { width: 24px; height: 24px; }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-call     { background: var(--gold); color: #fff; }

/* Pulse animation on WhatsApp */
.fab-whatsapp::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-wa 2s ease-out infinite;
}
@keyframes pulse-wa {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 16px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.logo-sub  { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.logo-img  { height: 48px; width: auto; }
.logo-placeholder--sm .logo-main { font-size: 14px; }
.logo-placeholder--sm .logo-sub  { font-size: 10px; }
.logo-icon--sm { width: 36px; height: 36px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
}
.header-phone:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* NAV */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: var(--border2); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  order: -1;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg   { padding: 14px 30px; font-size: 16px; }
.btn-sm   { padding: 8px 16px; font-size: 13px; }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #20b358; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }

.btn-call { background: var(--gold); color: #fff; }
.btn-call:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }

.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.btn-outline-light {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline-light:hover { background: var(--bg3); }

/* ===== SECTION TAGS ===== */
.section-tag {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.section { padding: 80px 0; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 80px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201,168,76,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-highlight { color: var(--gold); position: relative; }

.hero-desc { font-size: 17px; color: var(--text-muted); line-height: 1.8; margin-bottom: 36px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hstat { text-align: center; }
.hstat-num { display: block; font-size: 28px; font-weight: 900; color: var(--gold); }
.hstat-lbl { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hstat-div { width: 1px; height: 40px; background: var(--border); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.service-card:hover::before { opacity: 1; }

.sc-icon { display: block; font-size: 36px; margin-bottom: 12px; }
.sc-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.sc-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Service card image style */
.sc-img {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sc-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: transform 0.4s ease; }
.service-card:hover .sc-img img { transform: scale(1.05); }

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.why-card:hover { border-color: var(--border); transform: translateY(-4px); }
.why-icon { font-size: 32px; margin-bottom: 14px; }
.why-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.why-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== CITIES ===== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.city-card {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  overflow: hidden;
  position: relative;
}
.city-card-img {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.city-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.city-card:hover .city-card-img img { transform: scale(1.08); }
.city-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.city-emoji { font-size: 36px; margin-bottom: 10px; }
.city-name  { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.city-count { font-size: 12px; color: var(--gold); font-weight: 600; }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border); }

.project-img {
  height: 220px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img img { transform: scale(1.08); }
.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.project-zoom {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform 0.3s ease;
  z-index: 2;
}
.project-zoom svg { width: 22px; height: 22px; }
.project-card:hover .project-zoom { transform: translate(-50%, -50%) scale(1); }

.project-body { padding: 20px; }
.project-tag {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.project-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.project-loc  { font-size: 13px; color: var(--text-muted); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; animation: lb-fade 0.2s ease; }
@keyframes lb-fade { from { opacity:0; } to { opacity:1; } }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; left: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%;
  color: #fff; font-size: 22px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-caption {
  position: absolute;
  bottom: 30px; left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all var(--transition);
}
.review-card:hover { border-color: var(--border); transform: translateY(-4px); }
.review-quote { font-size: 48px; color: var(--gold); line-height: 1; margin-bottom: 8px; opacity: 0.4; }
.review-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.review-text  { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-name { font-size: 15px; font-weight: 700; color: var(--text); }
.review-city { font-size: 12px; color: var(--text-muted); }
.rating-summary { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rating-num  { font-size: 48px; font-weight: 900; color: var(--gold); }
.rating-count{ font-size: 14px; color: var(--text-muted); }
.stars       { color: var(--gold); font-size: 22px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.faq-item.open { border-color: var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
  gap: 12px;
}
.faq-q:hover { color: var(--gold); }
.faq-item.open .faq-q { color: var(--gold); }
.faq-icon { font-size: 22px; color: var(--gold); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 22px 20px; font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* ===== BOOKING FORM ===== */
.booking-form {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--input-bg);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group select option { background: var(--bg2); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 14px; font-size: 16px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success .success-icon { font-size: 56px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.form-success p { color: var(--text-muted); }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, var(--bg3), rgba(201,168,76,0.08)); padding: 80px 0; }
.cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-title { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 16px; color: var(--text); }
.cta-desc  { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.bc-img {
  height: 200px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
  position: relative;
}
.bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .bc-img img { transform: scale(1.05); }
.bc-img--placeholder { background: linear-gradient(135deg, var(--bg3), var(--bg4)); }
.bc-body  { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.bc-cat   { font-size: 11px; color: var(--gold); font-weight: 700; margin-bottom: 10px; letter-spacing: 0.05em; }
.bc-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--text); line-height: 1.4; }
.bc-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.bc-read { font-size: 13px; color: var(--gold); font-weight: 600; }

/* ===== SINGLE POST (BLOG) ===== */
.article-body { font-size: 16px; color: var(--text-muted); line-height: 1.9; }
.article-body h2 { font-size: 22px; font-weight: 800; color: var(--text); margin: 28px 0 12px; }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 20px 0 10px; }
.article-body p  { margin-bottom: 16px; }
.article-body ul { padding-right: 20px; margin-bottom: 16px; }
.article-body ul li { list-style: disc; margin-bottom: 8px; }
.article-body img { border-radius: 12px; margin: 20px 0; width: 100%; }

/* ===== FOOTER ===== */

.footer {
  isolation: isolate;
  position: relative;
  z-index: 1;
  clear: both;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  margin-top: auto;
}

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

.footer-about { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin: 16px 0 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.footer-col-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border2);
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '›'; color: var(--gold); font-size: 16px; }
.footer-links a:hover { color: var(--gold); }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.footer-contact-list a { color: var(--text-muted); transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--gold); }
.footer-contact-list svg { color: var(--gold); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--border2);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted2);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted2); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
  padding: 12px 0;
}
.breadcrumb-nav {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav .current { color: var(--gold); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(rgba(10,14,26,0.9),rgba(10,14,26,0.9));
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .page-hero { background: linear-gradient(rgba(248,249,252,0.95),rgba(248,249,252,0.95)); }

/* ===== SINGLE SERVICE (improved) ===== */
.service-hero-img {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.service-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.service-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--border2);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 28px; font-weight: 900; color: var(--gold); display: block; }
.stat-lbl { font-size: 12px; color: var(--text-muted); display: block; margin-top: 4px; }

/* ===== PROCESS STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  transition: all var(--transition);
}
.step-card:hover { border-color: var(--border); }
.step-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 12px;
  left: 16px;
  line-height: 1;
}
.step-icon { font-size: 30px; margin-bottom: 12px; }
.step-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== GALLERY (project images) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { color: #fff; width: 32px; height: 32px; }

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ===== PROJECT FILTER ===== */
.proj-filter {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border2);
  background: var(--card-bg);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.proj-filter.active,
.proj-filter:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.proj-hidden { display: none !important; }

/* ===== SCROLL CTA (page-service-city) ===== */
.scroll-cta-bar {
  position: fixed;
  bottom: -80px;
  left: 0; right: 0;
  z-index: 997;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: bottom 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.scroll-cta-bar.visible { bottom: 0; }

/* ===== SCROLL-TO-TOP adjust for RTL floating buttons =====*/
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: auto;
  width: 44px; height: 44px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: all var(--transition);
  z-index: 996;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }
.scroll-top svg { width: 20px; height: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0; background: var(--overlay); backdrop-filter: blur(20px); padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav-link { display: block; padding: 10px 16px; }
  .burger { display: flex; }
  .header-contact { display: none; }

  .hero-stats { gap: 20px; }
  .hstat-div { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border2); }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-two-col { grid-template-columns: 1fr !important; gap: 32px !important; }

  .booking-form { padding: 24px 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .reviews-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-ctas { gap: 10px; }
  .btn { padding: 10px 18px; font-size: 14px; }
  .section-title { font-size: 26px; }
}
