/* ================= كنان للمقاولات والديكور — هوية بصرية رسمية فاخرة ================= */
:root {
  --navy-900: #070b18;
  --navy-800: #0b1020;
  --navy-700: #111a33;
  --navy-600: #1a2544;
  --navy-500: #24325c;
  --ink: #0b1020;
  --gold: #c9a24b;
  --gold-2: #e6c477;
  --gold-soft: rgba(201, 162, 75, 0.14);
  --cream: #f7f4ee;
  --paper: #fbfaf7;
  --line: rgba(11, 16, 32, 0.1);
  --muted: #5c6273;
  --text: #171b26;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(11, 16, 32, 0.08);
  --shadow-md: 0 18px 44px rgba(11, 16, 32, 0.14);
  --shadow-lg: 0 40px 90px rgba(11, 16, 32, 0.28);
  --radius: 18px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Cairo', 'Tajawal', sans-serif; line-height: 1.3; font-weight: 800; color: var(--ink); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------- أدوات مشتركة ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 1px;
  color: var(--gold); text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  background: var(--gold-soft); border: 1px solid rgba(201, 162, 75, 0.28);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin: 18px 0 14px; letter-spacing: -0.5px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 14px 30px; border-radius: 100px; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--navy-900); box-shadow: 0 12px 30px rgba(201, 162, 75, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201, 162, 75, 0.45); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,0.28); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37,211,102,0.4); }
.btn-block { width: 100%; }

/* ================= الهيدر ================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s;
}
.header .container { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.header.scrolled {
  background: rgba(8, 11, 24, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 0 0 auto; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--navy-900); font-family: 'Cairo'; font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.35);
}
.brand .txt { min-width: 0; line-height: 1.2; }
.brand .txt b { display: block; color: var(--white); font-family: 'Cairo'; font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.brand .txt span { display: block; color: var(--gold-2); font-size: 0.7rem; letter-spacing: 2px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  color: rgba(255, 255, 255, 0.82); font-weight: 600; font-size: 0.94rem;
  padding: 9px 14px; border-radius: 10px; transition: color 0.25s, background 0.25s; position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: 4px; inset-inline: 14px; height: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-cta .header-phone {
  color: var(--gold-2); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.5px;
  white-space: nowrap; transition: color 0.25s;
}
.header-cta .header-phone:hover { color: var(--white); }
.header-cta .btn { padding: 11px 22px; font-size: 0.95rem; max-height: 44px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: none; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
}
.menu-toggle { margin-inline-start: auto; }
.icon-btn svg { width: 22px; height: 22px; }

/* قائمة الجوال */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110; visibility: hidden; opacity: 0;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-menu .backdrop { position: absolute; inset: 0; background: rgba(4, 6, 14, 0.6); backdrop-filter: blur(4px); }
.mobile-menu .panel {
  position: absolute; inset: 0 0 0 auto; width: min(86%, 340px);
  background: var(--navy-800); padding: 74px 26px 40px;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  border-inline-start: 1px solid rgba(201, 162, 75, 0.2);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-menu.open .panel { transform: translateX(0); }
.mobile-menu .close-menu {
  position: absolute; top: 18px; inset-inline-start: 20px;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; cursor: pointer;
}
.mobile-menu .close-menu svg { width: 20px; height: 20px; }
.mobile-menu a {
  color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 1.08rem;
  padding: 14px 14px; border-radius: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold-2); }
.mobile-menu .btn { margin-top: 18px; }

/* ================= البطل (Hero) ================= */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  padding: 148px 0 96px; background: var(--navy-900);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 24, 0.9), rgba(7, 11, 24, 0.96)),
    url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(900px 500px at 88% -10%, rgba(201, 162, 75, 0.18), transparent 60%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center;
}
.hero .eyebrow { background: rgba(201, 162, 75, 0.12); }
.hero h1 {
  color: var(--white); font-size: clamp(2.1rem, 5.4vw, 3.75rem);
  margin: 22px 0 20px; letter-spacing: -1px; line-height: 1.16;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: clamp(1rem, 2.2vw, 1.18rem); color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 46px; flex-wrap: wrap; }
.hero-trust .item b { display: block; font-family: 'Cairo'; font-size: 1.9rem; color: var(--gold-2); line-height: 1; }
.hero-trust .item span { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }
.hero-trust .divider { width: 1px; height: 42px; background: rgba(255,255,255,0.14); }

/* مكوّن الصور في البطل */
.hero-visual { position: relative; height: 480px; }
.hero-visual .hv-main {
  position: absolute; top: 0; inset-inline-end: 0; width: 74%; height: 78%;
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 162, 75, 0.25);
}
.hero-visual .hv-main img, .hero-visual .hv-sub img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hv-sub {
  position: absolute; bottom: 0; inset-inline-start: 0; width: 52%; height: 50%;
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 3px solid var(--navy-900);
}
.hero-visual .hv-card {
  position: absolute; top: 14%; inset-inline-start: -6px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  min-width: 240px; max-width: 300px;
  background: rgba(11, 16, 32, 0.82); backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 75, 0.3); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-md); animation: floaty 4s ease-in-out infinite;
}
.hero-visual .hv-card b { line-height: 1.35; }
.hero-visual .hv-card span { line-height: 1.4; }
.hero-visual .hv-card > div { min-width: 0; }
.hero-visual .hv-card-ic {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-2);
}
.hero-visual .hv-card-ic svg { width: 22px; height: 22px; }
.hero-visual .hv-card b { display: block; font-family: 'Cairo'; font-size: 0.92rem; color: #fff; }
.hero-visual .hv-card span { font-size: 0.76rem; color: rgba(255,255,255,0.65); }
.hero-visual .hv-glow {
  position: absolute; inset: 10% 8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,0.28), transparent 70%); filter: blur(30px);
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-hint .mouse { width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 3px; background: var(--gold-2); animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ================= شريط الخدمات المتحرك ================= */
.marquee { background: var(--navy-900); border-block: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; max-width: 100%; }
.marquee-track {
  display: flex; gap: 48px; align-items: center; padding: 18px 0;
  white-space: nowrap; animation: marquee 34s linear infinite; width: max-content;
}
.marquee-track span { color: rgba(255, 255, 255, 0.55); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 12px; }
.marquee-track span::before { content: '✦'; color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ================= الخدمات ================= */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 75, 0.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .ic {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 18px; transition: transform 0.4s var(--ease);
}
.service-card:hover .ic { transform: scale(1.08) rotate(-4deg); }
.service-card .ic svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.96rem; }

/* ================= آلية العمل ================= */
.process { background: var(--cream); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.proc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 24px 28px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.proc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.proc-card .proc-num {
  position: absolute; top: 12px; inset-inline-start: 18px;
  font-family: 'Cairo'; font-weight: 900; font-size: 3rem; line-height: 1;
  color: rgba(201, 162, 75, 0.14);
}
.proc-card .proc-ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-2); margin-bottom: 18px; position: relative; z-index: 1;
  box-shadow: 0 10px 24px rgba(11,16,32,0.18);
}
.proc-card .proc-ic svg { width: 28px; height: 28px; }
.proc-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.proc-card p { color: var(--muted); font-size: 0.93rem; }

/* ================= من نحن ================= */
.about { background: var(--paper); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-media .badge {
  position: absolute; bottom: 26px; inset-inline-start: -18px;
  background: var(--navy-800); color: var(--white); padding: 20px 26px; border-radius: 16px;
  box-shadow: var(--shadow-md); border: 1px solid rgba(201, 162, 75, 0.3);
}
.about-media .badge b { font-family: 'Cairo'; font-size: 2rem; color: var(--gold-2); display: block; }
.about-media .badge span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.about-text h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 16px 0 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-list { display: grid; gap: 14px; margin-top: 26px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--text); }
.about-list .check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold);
}
.about-list .check svg { width: 15px; height: 15px; }

/* ================= الأعمال / المعرض ================= */
.portfolio { background: var(--navy-800); color: var(--white); }
.portfolio .section-head h2 { color: var(--white); }
.portfolio .section-head p { color: rgba(255, 255, 255, 0.7); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; justify-content: center; }
.filter-btn {
  font-family: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  padding: 9px 20px; border-radius: 100px; color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--white); border-color: rgba(201, 162, 75, 0.5); }
.filter-btn.active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy-900); border-color: transparent; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; box-shadow: var(--shadow-md);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.09); }
.gallery-item .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(0deg, rgba(7, 11, 24, 0.9) 8%, rgba(7, 11, 24, 0.1) 60%, transparent);
  opacity: 0; transform: translateY(12px); transition: all 0.45s var(--ease);
}
.gallery-item:hover .overlay { opacity: 1; transform: translateY(0); }
.gallery-item .overlay small { color: var(--gold-2); font-weight: 700; letter-spacing: 1px; font-size: 0.78rem; }
.gallery-item .overlay h4 { color: var(--white); font-size: 1.15rem; }
.gallery-item .tag {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  background: rgba(7, 11, 24, 0.72); color: var(--gold-2); font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 100px; border: 1px solid rgba(201, 162, 75, 0.35); backdrop-filter: blur(6px);
}

/* ================= الإحصائيات ================= */
.stats { background: var(--navy-900); color: var(--white); border-block: 1px solid rgba(255, 255, 255, 0.05); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-family: 'Cairo'; font-size: clamp(2rem, 5vw, 3.1rem); color: var(--gold-2); display: block; line-height: 1; }
.stat span { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; margin-top: 8px; display: block; }

/* ================= لماذا كنان ================= */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card .num { font-family: 'Cairo'; font-size: 1.1rem; color: var(--gold); font-weight: 800; }
.why-card h3 { font-size: 1.12rem; margin: 12px 0 8px; }
.why-card p { color: var(--muted); font-size: 0.93rem; }

/* ================= آراء العملاء ================= */
.testimonials { background: var(--cream); }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 30px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.tst-card .quote-ic {
  position: absolute; top: 6px; inset-inline-start: 22px;
  font-family: 'Cairo'; font-size: 5rem; line-height: 1; color: rgba(201,162,75,0.16);
}
.tst-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; position: relative; }
.tst-card p { color: var(--text); font-size: 0.98rem; margin-bottom: 20px; position: relative; }
.tst-card .who { display: flex; align-items: center; gap: 12px; }
.tst-card .who .av {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy-700); color: var(--gold-2);
  display: grid; place-items: center; font-family: 'Cairo'; font-weight: 800; flex: 0 0 auto;
}
.tst-card .who b { display: block; font-size: 0.98rem; }
.tst-card .who span { color: var(--muted); font-size: 0.85rem; }

/* ================= الأسئلة الشائعة ================= */
.faq { background: var(--navy-800); color: var(--white); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.faq-intro { position: sticky; top: 100px; }
.faq-intro h2 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 16px 0 14px; }
.faq-intro p { color: rgba(255,255,255,0.72); margin-bottom: 26px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09); border-radius: 14px;
  overflow: hidden; transition: border-color 0.3s, background 0.3s;
}
.faq-item.open { border-color: rgba(201,162,75,0.4); background: rgba(255,255,255,0.05); }
.faq-q {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 18px 20px; font-family: 'Cairo'; font-weight: 700; font-size: 1.02rem; color: #fff;
}
.faq-q .qi {
  margin-inline-start: auto; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2);
  transition: transform 0.35s var(--ease);
}
.faq-q .qi svg { width: 16px; height: 16px; }
.faq-item.open .qi { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 20px 20px; color: rgba(255,255,255,0.72); font-size: 0.96rem; }

/* ================= التواصل ================= */
.contact { background: var(--navy-900); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; }
.contact-info h2 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 14px 0 16px; }
.contact-info > p { color: rgba(255, 255, 255, 0.72); margin-bottom: 30px; }
.contact-line { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.3s; }
.contact-line:hover { transform: translateX(-4px); }
.contact-line .ic {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-2);
}
.contact-line .ic svg { width: 22px; height: 22px; }
.contact-line b { display: block; font-size: 1.02rem; direction: ltr; text-align: right; }
.contact-line span { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

.form-card {
  background: var(--white); color: var(--text); border-radius: 22px; padding: 36px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(201, 162, 75, 0.2);
}
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.98rem; color: var(--text);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color 0.25s, box-shadow 0.25s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; display: none; }
.form-msg.ok { display: block; background: rgba(34, 160, 94, 0.12); color: #1c7a48; border: 1px solid rgba(34, 160, 94, 0.3); }
.form-msg.err { display: block; background: rgba(200, 50, 50, 0.1); color: #b02a2a; border: 1px solid rgba(200, 50, 50, 0.3); }

/* ================= الفوتر ================= */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.7); padding: 66px 0 26px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
.footer .brand .txt b { font-size: 1.1rem; }
.footer-col h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.footer-col a, .footer-col p { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; display: block; margin-bottom: 11px; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-brand p { margin: 18px 0; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--white);
  transition: all 0.3s;
}
.socials a:hover { background: var(--gold); color: var(--navy-900); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem;
}
.footer-bottom .admin-link { color: rgba(255,255,255,0.4); }
.footer-bottom .admin-link:hover { color: var(--gold-2); }

/* ================= زر واتساب العائم ================= */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease); animation: wapulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wapulse { 0% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); } 70% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); } }

/* شريط دعوة سفلي ثابت للجوال */
.mobile-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 88; display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 11, 24, 0.96); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 162, 75, 0.25); gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 13px; font-size: 0.95rem; }

/* ================= أنيميشن الظهور ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================= الاستجابة ================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 380px; max-width: 520px; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-intro { position: static; }
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media .badge { inset-inline-start: 18px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .services-grid, .gallery, .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .icon-btn { display: grid; }
  .header .container { min-height: 66px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 116px 0 80px; }

  /* البطل: تحويل الصور المتراكبة إلى تدفّق رأسي، وبطاقة الضمان بعرض كامل أسفل الصورة */
  .hero-visual { height: auto; margin: 0 auto; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
  .hero-visual .hv-main {
    position: relative; inset: auto; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 10;
  }
  .hero-visual .hv-sub {
    position: relative; inset: auto; top: auto; bottom: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; border-width: 1px;
  }
  .hero-visual .hv-card {
    position: relative; inset: auto; top: auto; width: 100%; max-width: none; min-width: 0;
    margin: 0; animation: none;
  }
  .hero-visual .hv-glow { display: none; }

  .hero-trust { gap: 16px; margin-top: 36px; }
  .hero-trust .item b { font-size: 1.55rem; }
  .hero-trust .divider { height: 34px; }
  .services-grid, .gallery, .tst-grid, .why-grid, .process-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mobile-bar { display: flex; }
  .wa-float { bottom: 84px; }
  /* حشوة سفلية تكفي لعدم تغطية شريط الدعوة السفلي الثابت للمحتوى */
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .brand .mark { width: 38px; height: 38px; font-size: 1.1rem; }
  .brand .txt b { font-size: 0.92rem; }
  .brand .txt span { font-size: 0.62rem; letter-spacing: 1.5px; }
  .scroll-hint { display: none; }

  /* مساحات لمس مريحة: 44 بكسل على الأقل لكل زر/رابط */
  .filter-btn { min-height: 44px; }
  .socials a { width: 44px; height: 44px; }
  .mobile-menu .close-menu { width: 44px; height: 44px; }
  .footer-col a { padding: 9px 0; margin-bottom: 2px; }
  .footer-bottom .admin-link { display: inline-block; padding: 10px 0; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.95rem; }
}
