/* ============================================================
   مركز الشعلان – Al-Shalan Center
   ============================================================ */

:root {
  --bg-dark: #0f1216;
  --bg-dark-2: #161b22;
  --bg-light: #f6f5f2;
  --bg-white: #ffffff;
  --card-dark: #1c222b;
  --text-dark: #14171c;
  --text-light: #f2f4f7;
  --muted: #6b7280;
  --muted-light: #a7b0bd;
  --accent: #d4a853;      /* leather gold */
  --accent-dark: #b98d3a;
  --blue: #2f7de1;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --border: rgba(0,0,0,.08);
  --border-light: rgba(255,255,255,.08);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-dark: 0 10px 30px rgba(0,0,0,.35);
  --container: 1140px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { fill: currentColor; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section[id], [id="top"] { scroll-margin-top: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 17px; }

.btn-accent {
  background: var(--accent);
  color: #1a1408;
  box-shadow: 0 6px 20px rgba(212,168,83,.35);
}
.btn-accent:hover { background: #e2b866; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-outline {
  border-color: var(--text-dark);
  color: var(--text-dark);
  background: transparent;
}
.btn-outline:hover { background: var(--text-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,18,22,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-light);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.brand-logo { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 900; font-size: 20px; }
.brand-tag { font-size: 12px; color: var(--muted-light); }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  color: #d5dbe3;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }

.header-call { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--text-light);
  background: var(--bg-dark);
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(212,168,83,.22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(47,125,225,.22), transparent 60%),
    linear-gradient(180deg, #12161c 0%, #0f1216 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  padding: 90px 20px;
  max-width: 820px;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212,168,83,.4);
  background: rgba(212,168,83,.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 22px;
}
.kicker svg { width: 16px; height: 16px; }
.hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  margin-bottom: 18px;
}
.highlight {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: #c9d1db;
  max-width: 680px;
  margin: 0 auto 32px;
}
.lead strong { color: #fff; }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges li {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  color: #dfe5ec;
}
.hero-badges li::before {
  content: "✓";
  color: var(--accent);
  margin-left: 6px;
  font-weight: 900;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; gap: 24px; }

/* ---------- Services ---------- */
.services { background: var(--bg-light); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  border-color: rgba(212,168,83,.5);
}
.card-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(212,168,83,.18), rgba(47,125,225,.14));
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.card-icon svg { width: 32px; height: 32px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Why us ---------- */
.why {
  background: var(--bg-dark);
  color: var(--text-light);
}
.why .eyebrow { color: var(--accent); }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-item {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card-dark);
  border: 1px solid var(--border-light);
}
.why-num {
  display: inline-block;
  font-size: 34px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  opacity: .9;
}
.why-item h3 { font-size: 18px; }
.why-item p { color: var(--muted-light); margin: 0; font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-dark-2);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35));
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.is-placeholder { pointer-events: none; }

/* ---------- Location ---------- */
.location { background: var(--bg-light); }
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}
.location-text h2 { font-size: clamp(26px, 4vw, 38px); }
.location-text p { color: var(--muted); font-size: 17px; }
.location-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #e5e7eb;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-white); }
.contact-grid { grid-template-columns: repeat(3, 1fr); }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(212,168,83,.5);
}
.contact-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-dark);
  color: var(--accent);
  margin-bottom: 16px;
}
.contact-icon-wa { background: var(--whatsapp); color: #fff; }
.contact-icon svg { width: 30px; height: 30px; }
.contact-card h3 { font-size: 18px; margin-bottom: 4px; }
.contact-value {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-dark);
}
.contact-hint { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--muted-light);
  padding: 50px 0 30px;
  border-top: 1px solid var(--border-light);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.4; text-align: right; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand span { font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #d5dbe3; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 13.5px; margin: 0; }
.footer-copy a { color: var(--accent); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-dark);
}
.lightbox-close {
  position: absolute;
  top: 16px; left: 16px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    right: 0; left: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 18px;
    background: rgba(15,18,22,.98);
    border-bottom: 1px solid var(--border-light);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 17px; }
}

@media (max-width: 860px) {
  .location-inner { grid-template-columns: 1fr; gap: 30px; }
  .location-text { text-align: center; }
  .location-actions { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 18px; }
  .header-call span { display: none; }
  .header-call { padding: 9px 12px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 70px 20px 60px; }
  .section { padding: 64px 0; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .map-wrap iframe { height: 300px; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
