/* ======================================================
   صيانة وخدمات منزلية — المدينة المنورة
   DESIGN SYSTEM — Charcoal + Emerald Accent
   نمط: داكن محايد بلمسة زمردية تعكس الثقة والشمولية
====================================================== */
:root {
  --dark-900:   #0c1310;
  --dark-800:   #121b17;
  --dark-700:   #17241f;
  --dark-600:   #1c2d26;
  --emerald:      #10b981;
  --emerald-light: #34d399;
  --emerald-dim:  rgba(16,185,129,.13);
  --emerald-glow: rgba(16,185,129,.28);
  --green-wa:   #25d366;
  --green-dark: #128c3e;
  --white:      #ffffff;
  --gray-300:   #9db3aa;
  --gray-400:   #6f8579;
  --text-main:  #e7f2ee;
  --text-muted: #8ca79c;
  --border:     rgba(255,255,255,.08);
  --radius:     14px;
  --shadow:     0 4px 24px rgba(0,0,0,.45);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.65);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--dark-900);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; color: var(--white); margin-bottom: .4rem; }
.section-title span { color: var(--emerald); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.8rem; max-width: 680px; }
.text-center { text-align: center; }

.amber-line { display: block; width: 56px; height: 3px; background: var(--emerald); border-radius: 2px; margin: 10px 0 20px; }
.text-center .amber-line { margin: 10px auto 20px; }

/* ---- TOP BAR ---- */
#topbar { background: var(--emerald); color: var(--dark-900); padding: 9px 0; font-size: .9rem; font-weight: 700; }
.tb-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#topbar a { color: var(--dark-900); display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s; }
#topbar a:hover { opacity: .75; }
.tb-wa { background: var(--dark-900); color: var(--green-wa) !important; border-radius: 20px; padding: 4px 14px; }

/* ---- HEADER ---- */
#site-header { background: rgba(10,16,13,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 900; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.logo { font-size: 1.15rem; font-weight: 900; color: var(--white); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--emerald); }
nav ul { display: flex; gap: 22px; align-items: center; }
nav ul li a { color: var(--text-muted); font-weight: 600; font-size: .92rem; transition: color .2s; }
nav ul li a:hover, nav ul li a.active { color: var(--emerald); }
.nav-cta { background: var(--emerald) !important; color: var(--dark-900) !important; border-radius: 8px; padding: 8px 20px !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--emerald-light) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
#mobile-nav { display: none; padding: 12px 0 16px; border-top: 1px solid var(--border); }
#mobile-nav.open { display: block; }
#mobile-nav ul { flex-direction: column; gap: 0; }
#mobile-nav ul li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; }
#mobile-nav ul li a:hover, #mobile-nav ul li a.active { color: var(--emerald); }

/* ---- NAV DROPDOWN ---- */
.has-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 5px; cursor: pointer; background: none; border: none; font-family: inherit; color: var(--text-muted); font-weight: 600; font-size: .92rem; padding: 4px 0; }
.dropdown-toggle:hover { color: var(--emerald); }
.has-dropdown:hover .dropdown-toggle, .has-dropdown:focus-within .dropdown-toggle { color: var(--emerald); }
.dropdown-toggle .chev { transition: transform .2s; flex-shrink: 0; }
.has-dropdown:hover .dropdown-toggle .chev, .has-dropdown:focus-within .dropdown-toggle .chev { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 16px); right: -14px;
  background: var(--dark-700); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; width: 260px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 950;
}
.has-dropdown:hover .dropdown-panel, .has-dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-muted); font-weight: 600; font-size: .87rem; transition: background .15s, color .15s; }
.dropdown-panel a:hover, .dropdown-panel a.active { background: var(--emerald-dim); color: var(--emerald); }
.dropdown-panel .dd-ico { font-size: 1.1rem; flex-shrink: 0; }

.mobile-sub-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; font-family: inherit; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 1rem; cursor: pointer; }
.mobile-sub-toggle:hover, .mobile-sub-toggle.open { color: var(--emerald); }
.mobile-sub-toggle .chev { transition: transform .25s; }
.mobile-sub-toggle.open .chev { transform: rotate(180deg); }
.mobile-submenu { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-submenu.open { max-height: 480px; }
.mobile-submenu a { display: flex; align-items: center; gap: 9px; padding: 10px 0 10px 8px; margin-right: 6px; color: var(--text-muted); font-size: .92rem; border-bottom: 1px solid var(--border); }
.mobile-submenu a:hover, .mobile-submenu a.active { color: var(--emerald); }

/* ---- BREADCRUMB ---- */
.breadcrumb-bar { background: var(--dark-800); border-bottom: 1px solid var(--border); padding: 14px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb .sep { color: var(--gray-400); }
.breadcrumb .current { color: var(--emerald); font-weight: 700; }

/* ---- HERO ---- */
#hero { background: var(--dark-800); position: relative; overflow: hidden; padding: 88px 0 80px; }
#hero::before { content: ''; position: absolute; top: -120px; left: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.20) 0%, transparent 70%); pointer-events: none; }
#hero::after { content: ''; position: absolute; bottom: -80px; right: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--emerald-dim); border: 1px solid var(--emerald-glow); border-radius: 30px; padding: 6px 16px; font-size: .85rem; font-weight: 700; color: var(--emerald); margin-bottom: 20px; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--emerald); border-radius: 50%; animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.4)} }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.22; margin-bottom: 18px; color: var(--white); }
h1 em { font-style: normal; color: var(--emerald); }
.hero-sub { font-size: 1.12rem; color: var(--text-muted); margin-bottom: 36px; max-width: 540px; font-weight: 500; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-amber { display: inline-flex; align-items: center; gap: 10px; background: var(--emerald); color: var(--dark-900); font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1rem; border: none; border-radius: var(--radius); padding: 14px 28px; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 4px 20px var(--emerald-glow); }
.btn-amber:hover { background: var(--emerald-light); transform: translateY(-2px); box-shadow: 0 8px 32px var(--emerald-glow); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.2); box-shadow: none; }
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-dim); }
.btn-wa-hero { background: var(--green-wa); color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,.35); }
.btn-wa-hero:hover { background: var(--green-dark); }

.hero-stats { display: flex; gap: 24px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--emerald); line-height: 1; }
.stat-lbl { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }

.hero-card { background: var(--dark-700); border: 1px solid var(--border); border-radius: 20px; padding: 32px 24px; text-align: center; }
.hero-card-icon { font-size: 4.5rem; margin-bottom: 16px; }
.hero-card-label { font-size: .88rem; color: var(--text-muted); font-weight: 600; margin-bottom: 18px; }
.hero-card-call { display: block; background: var(--emerald); color: var(--dark-900); font-weight: 800; font-size: .97rem; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; transition: background .2s; }
.hero-card-call:hover { background: var(--emerald-light); }
.hero-card-wa { display: block; background: var(--green-wa); color: var(--white); font-weight: 700; font-size: .95rem; border-radius: 10px; padding: 11px 16px; transition: background .2s; }
.hero-card-wa:hover { background: var(--green-dark); }

/* ---- SERVICES GRID ---- */
#services { background: var(--dark-900); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.svc-card { background: var(--dark-800); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s; }
.svc-card::before { content: ''; position: absolute; top: 0; right: 0; width: 3px; height: 100%; background: var(--emerald); opacity: 0; transition: opacity .25s; }
.svc-card:hover { border-color: var(--emerald-glow); transform: translateY(-5px); }
.svc-card:hover::before { opacity: 1; }
.svc-icon { width: 56px; height: 56px; background: var(--emerald-dim); border: 1px solid var(--emerald-glow); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }
.svc-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--white); margin-bottom: 9px; }
.svc-card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald); font-weight: 700; font-size: .9rem; }
.svc-link svg { transition: transform .2s; }
.svc-card:hover .svc-link svg { transform: translateX(-4px); }

/* ---- SYMPTOMS ---- */
#symptoms { background: var(--dark-800); }
.symptom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.symptom-card { display: flex; gap: 14px; align-items: flex-start; background: var(--dark-700); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .2s, transform .2s; }
.symptom-card:hover { border-color: var(--emerald-glow); transform: translateY(-3px); }
.symptom-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--emerald-dim); border: 1px solid var(--emerald-glow); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--emerald); font-weight: 900; }
.symptom-card p { color: var(--text-main); font-size: .96rem; font-weight: 600; margin: 0; padding-top: 8px; }

/* ---- PROCESS STEPS ---- */
#process { background: var(--dark-900); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step-card { background: var(--dark-800); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; position: relative; }
.step-num { font-size: 2.2rem; font-weight: 900; color: var(--emerald); opacity: .35; line-height: 1; margin-bottom: 10px; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: .92rem; }

/* ---- WHY US ---- */
#why { background: var(--dark-800); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; }
.why-item { background: var(--dark-700); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: border-color .2s, transform .2s; }
.why-item:hover { border-color: var(--emerald); transform: translateY(-4px); }
.why-item .w-icon { font-size: 2.2rem; margin-bottom: 10px; }
.why-item h3 { font-size: .98rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.why-item p { font-size: .86rem; color: var(--text-muted); }

/* ---- BRANDS / SUB-SERVICES GRID ---- */
#brands { background: var(--dark-900); }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.brand-card { background: var(--dark-800); border: 1px solid var(--border); border-radius: 12px; padding: 18px 10px; text-align: center; font-weight: 700; font-size: .88rem; color: var(--text-muted); transition: border-color .2s, color .2s, background .2s; }
.brand-card:hover { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-dim); }
.brand-card .b-icon { font-size: 1.7rem; margin-bottom: 6px; }

/* ---- AREAS ---- */
#areas { background: var(--dark-800); }
.areas-flex { display: flex; flex-wrap: wrap; gap: 12px; }
.area-tag { background: var(--dark-700); color: var(--text-muted); border: 1px solid var(--border); border-radius: 30px; padding: 8px 20px; font-weight: 600; font-size: .93rem; transition: background .2s, color .2s, border-color .2s; }
.area-tag:hover { background: var(--emerald-dim); color: var(--emerald); border-color: var(--emerald-glow); }

/* ---- RELATED SERVICES ---- */
#related { background: var(--dark-900); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.related-card { display: flex; align-items: center; gap: 12px; background: var(--dark-800); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; transition: border-color .2s, background .2s, transform .2s; }
.related-card:hover { border-color: var(--emerald); background: var(--emerald-dim); transform: translateY(-3px); }
.related-ico { font-size: 1.4rem; width: 44px; height: 44px; flex-shrink: 0; background: var(--dark-700); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.related-card span { font-weight: 700; color: var(--white); font-size: .92rem; }

/* ---- FAQ ---- */
#faq { background: var(--dark-800); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--dark-900); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--emerald-glow); }
.faq-q { width: 100%; background: none; border: none; font-family: 'Cairo', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--white); text-align: right; padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q:focus-visible { outline: 2px solid var(--emerald); outline-offset: -2px; }
.faq-arrow { flex-shrink: 0; width: 24px; height: 24px; background: var(--dark-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s, background .2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--emerald); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; padding: 0 24px; color: var(--text-muted); font-size: .97rem; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }
#faq.on-dark { background: var(--dark-900); }
#faq.on-dark .faq-item { background: var(--dark-800); }

/* ---- CTA ---- */
#cta-section { background: var(--dark-800); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; text-align: center; padding: 88px 0; }
#cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 65%); pointer-events: none; }
#cta-section > .container { position: relative; z-index: 1; }
#cta-section h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 900; color: var(--white); margin-bottom: 14px; }
#cta-section p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.05rem; border: none; border-radius: 12px; padding: 16px 32px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.cta-btn:hover { transform: translateY(-3px); }
.cta-btn-amber { background: var(--emerald); color: var(--dark-900); box-shadow: 0 4px 24px var(--emerald-glow); }
.cta-btn-amber:hover { background: var(--emerald-light); box-shadow: 0 8px 36px rgba(16,185,129,.4); }
.cta-btn-wa { background: var(--green-wa); color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,.35); }
.cta-btn-wa:hover { background: var(--green-dark); }

/* ---- FOOTER ---- */
footer { background: var(--dark-800); border-top: 1px solid var(--border); color: var(--text-muted); padding: 60px 20px 0; font-size: .93rem; }
footer strong { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.footer-about .logo { margin-bottom: 14px; }
.footer-about p { max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: .89rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--emerald); }
.footer-col .wa-link { color: var(--green-wa); }
.footer-col .wa-link:hover { color: var(--green-wa); opacity: .8; }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; }
.footer-bottom p { opacity: .6; font-size: .85rem; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-about p { margin: 0 auto; } }

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.contact-info-card h3 { margin-bottom: 4px; }
.contact-info-card p { margin-bottom: 0; }
.contact-form-card { padding: 32px; }
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-form-card > p { color: var(--text-muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--dark-600); color: var(--text-main); font-family: 'Cairo', sans-serif; font-size: .95rem; }
.form-control:focus-visible { outline: 2px solid var(--emerald); outline-offset: 1px; }
.form-error { color: #f87171; font-size: .85rem; margin-top: 10px; display: none; }
.map-frame-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-frame-wrap iframe { border: 0; filter: grayscale(.2) invert(.92) contrast(.85); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---- FLOAT BUTTONS ---- */
.float-btns { position: fixed; bottom: 24px; left: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 999; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,.5); transition: transform .2s; border: none; cursor: pointer; }
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: var(--green-wa); }
.float-phone { background: var(--emerald); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa svg { fill: var(--white); }
.float-phone svg { fill: var(--dark-900); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.7rem; }
  #topbar .tb-inner { justify-content: center; gap: 14px; }
}
@media (max-width: 480px) {
  .section-pad { padding: 52px 0; }
  h1 { font-size: 1.9rem; }
  .hero-btns { flex-direction: column; }
  .btn-amber { justify-content: center; }
  .cta-btns { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
