/* ===================================================
   شهباز للصيانة — Styles
   Arabic RTL | White Professional Theme
   Colors: Navy Blue + Orange/Gold accent
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

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

:root {
  /* Professional Blue + Orange Palette */
  --primary:       #1e40af;   /* Deep Navy Blue */
  --primary-dark:  #1e3a8a;
  --primary-light: #3b82f6;
  --accent:        #f97316;   /* Professional Orange */
  --accent-dark:   #ea580c;
  --accent-light:  #fb923c;

  /* White / Light Backgrounds */
  --bg:            #ffffff;
  --bg-alt:        #f8faff;   /* Very light blue-white */
  --bg-card:       #ffffff;
  --bg-section:    #f0f4ff;   /* Light blue section bg */

  /* Text */
  --text:          #0f172a;   /* Near black */
  --text2:         #475569;   /* Medium gray */
  --text3:         #94a3b8;   /* Light gray */
  --text-white:    #ffffff;

  /* Borders & Shadows */
  --border:        #e2e8f0;
  --border-primary:#bfdbfe;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:        0 4px 16px rgba(30,64,175,.10);
  --shadow-lg:     0 10px 40px rgba(30,64,175,.15);
  --shadow-hover:  0 8px 32px rgba(30,64,175,.2);

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  --grad-accent:   linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --grad-hero:     linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  --grad-light:    linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);

  --radius:   16px;
  --radius-s: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ---- HEADER ---- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-size: 1.35rem; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.logo span { color: var(--accent); font-size: 1.7rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text2); padding: 8px 14px; border-radius: var(--radius-s);
  font-weight: 600; font-size: .92rem; transition: all .2s; white-space: nowrap;
}
.nav a:hover { color: var(--primary); background: var(--bg-section); }
.nav a.active { color: var(--primary); background: var(--bg-section); font-weight: 700; }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-accent); color: #fff !important;
  padding: 10px 22px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  transition: transform .2s, box-shadow .2s; white-space: nowrap; direction: ltr;
}
.header-phone:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(249,115,22,.4); color: #fff !important; }

.burger {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  font-size: 1.4rem; cursor: pointer; padding: 8px 12px; border-radius: var(--radius-s); line-height: 1;
}

/* ---- HERO ---- */
.hero {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  background: var(--grad-hero); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(249,115,22,.12), transparent 40%);
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px; background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 6px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 700;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.2;
  margin-bottom: 20px; color: #fff;
}
.hero h1 em {
  font-style: normal; color: #fbbf24; /* warm gold */
}
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  font-family: inherit; cursor: pointer; transition: all .25s; border: none; text-decoration: none;
}
.btn-call {
  background: var(--grad-accent); color: #fff !important;
  box-shadow: 0 4px 20px rgba(249,115,22,.4); direction: ltr;
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(249,115,22,.5); color: #fff !important; }

.btn-outline {
  background: rgba(255,255,255,.12); color: #fff !important;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.22); color: #fff !important; }

.btn-primary { background: var(--grad-primary); color: #fff !important; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff !important; }

/* ---- STATS ---- */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
  padding: 48px 0; border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: .88rem; color: var(--text2); font-weight: 600; }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-alt { background: var(--bg-alt); }
.section-blue { background: var(--bg-section); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; margin-bottom: 10px; color: var(--text); }
.section-head h2 em { font-style: normal; color: var(--primary); }
.section-head p { color: var(--text2); font-size: 1rem; max-width: 580px; margin: 0 auto; }

/* ---- GRID ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ---- CARDS ---- */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); transition: all .3s;
}
.card:hover { border-color: var(--border-primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text2); font-size: .92rem; line-height: 1.7; }
.card a { color: var(--primary); font-weight: 600; }

/* service big card */
.svc-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .3s; display: block;
}
.svc-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.svc-card-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; background: var(--grad-hero);
}
.svc-card-body { padding: 26px; }
.svc-card-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.svc-card-body p { color: var(--text2); margin-bottom: 14px; font-size: .95rem; }
.svc-card-body .arrow { color: var(--primary); font-weight: 700; }

/* brands */
.brand-chip {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px; text-align: center;
  font-weight: 700; font-size: .88rem; color: var(--text2);
  transition: all .25s; cursor: default;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.brand-chip:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--primary); }
.brand-chip img {
  width: 110px; height: 52px; object-fit: contain; display: block;
  filter: grayscale(20%); transition: filter .2s;
}
.brand-chip:hover img { filter: grayscale(0%); }
/* brand section header logo */
.brand-logo-lg {
  width: 160px; height: 72px; object-fit: contain;
  margin: 0 auto 18px; display: block;
}
/* card brand logo */
.card-brand-logo {
  width: 130px; height: 58px; object-fit: contain;
  margin-bottom: 12px; display: block;
}

/* process */
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.process-step { text-align: center; counter-increment: step; }
.process-step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--grad-primary);
  font-size: 1.25rem; font-weight: 900; color: #fff; margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(30,64,175,.3);
}
.process-step h4 { font-weight: 700; margin-bottom: 8px; color: var(--text); }
.process-step p { color: var(--text2); font-size: .88rem; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-s); margin-bottom: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-q {
  padding: 18px 22px; font-weight: 700; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.faq-q:hover { background: var(--bg-section); }
.faq-q .chevron { transition: transform .3s; font-size: 1rem; color: var(--primary); }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-item.open .faq-q { background: var(--bg-section); color: var(--primary); }
.faq-a { display: none; padding: 0 22px 18px; color: var(--text2); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* CTA banner */
.cta-banner {
  background: var(--grad-primary); border-radius: var(--radius);
  padding: 52px 36px; text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -40px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -60px; right: -30px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(249,115,22,.1);
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 10px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-banner .cta-num {
  display: inline-block; font-size: 2rem; font-weight: 900;
  color: #fbbf24; letter-spacing: 1px; direction: ltr; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.cta-banner .btn { position: relative; z-index: 1; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-g { margin-bottom: 18px; }
.form-g label { display: block; font-weight: 700; color: var(--text); font-size: .9rem; margin-bottom: 7px; }
.form-g input, .form-g textarea, .form-g select {
  width: 100%; padding: 13px 16px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); font-family: inherit; font-size: .98rem;
  transition: border-color .2s, box-shadow .2s; direction: rtl;
}
.form-g input:focus, .form-g textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,.1);
}
.form-g textarea { resize: vertical; min-height: 110px; }

.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); transition: all .25s;
}
.info-card:hover { border-color: var(--border-primary); box-shadow: var(--shadow); }
.info-card .ico {
  font-size: 1.6rem; width: 52px; height: 52px; display: flex;
  align-items: center; justify-content: center;
  background: var(--bg-section); border-radius: 12px; flex-shrink: 0;
}
.info-card h4 { font-weight: 700; margin-bottom: 4px; font-size: .95rem; color: var(--text); }
.info-card p, .info-card a { color: var(--text2); font-size: .9rem; }
.info-card a:hover { color: var(--primary); }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 20px; color: var(--text); }
.about-text h2 em { font-style: normal; color: var(--primary); }
.about-text p { color: var(--text2); line-height: 1.9; margin-bottom: 14px; }
.about-img {
  background: var(--grad-hero);
  border-radius: var(--radius); height: 380px;
  display: flex; align-items: center; justify-content: center; font-size: 7rem;
}

/* hero-page (internal pages) */
.hero-page {
  background: var(--grad-hero); padding: 120px 24px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.hero-page::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 60px; background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-page .hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.hero-page h1 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.hero-page h1 em { font-style: normal; color: #fbbf24; }
.hero-page p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 28px; }

/* ---- FOOTER ---- */
.footer { background: #0f172a; padding: 60px 24px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; color: #fff; }
.footer p, .footer li { color: #94a3b8; font-size: .88rem; line-height: 2; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #f97316; }
.footer ul { list-style: none; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid #1e293b; text-align: center;
  color: #64748b; font-size: .82rem;
}

/* ---- FLOATING CALL ---- */
.float-call {
  position: fixed; bottom: 28px; left: 28px; z-index: 800;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 24px rgba(249,115,22,.5);
  text-decoration: none; animation: pulse-ring 2.2s infinite; transition: transform .2s;
}
.float-call:hover { transform: scale(1.12); color: #fff; }
@keyframes pulse-ring {
  0%,100%{ box-shadow: 0 0 0 0 rgba(249,115,22,.6); }
  50%     { box-shadow: 0 0 0 14px rgba(249,115,22,0); }
}

/* ---- POPUP ---- */
.popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.popup-overlay.show { display: flex; animation: fade-in .4s ease; }
@keyframes fade-in { from{opacity:0} to{opacity:1} }

.popup-box {
  background: #fff; border-radius: 22px;
  padding: 44px 36px; max-width: 460px; width: 100%;
  text-align: center; position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,.18);
  animation: slide-up .4s ease;
  border-top: 5px solid var(--accent);
}
@keyframes slide-up { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }

.popup-close {
  position: absolute; top: 16px; left: 16px; background: #f1f5f9;
  border: none; color: var(--text2); border-radius: 50%;
  width: 36px; height: 36px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.popup-close:hover { background: #e2e8f0; }

.popup-icon { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.popup-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.popup-box p { color: var(--text2); margin-bottom: 26px; line-height: 1.8; }
.popup-phone {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad-accent); color: #fff; padding: 16px 36px;
  border-radius: 999px; font-size: 1.25rem; font-weight: 900;
  text-decoration: none; direction: ltr;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(249,115,22,.4);
}
.popup-phone:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(249,115,22,.5); color: #fff; }

/* ---- ABOUT FEATURE ITEM ---- */
.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; border-radius: var(--radius-s);
  border: 1px solid var(--border); background: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 14px; transition: all .25s;
}
.feature-item:hover { border-color: var(--border-primary); box-shadow: var(--shadow); }
.feature-item .ico { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.feature-item h4 { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.feature-item p { color: var(--text2); font-size: .9rem; }

/* ---- RESPONSIVE ---- */
@media(max-width:1024px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .footer-inner{grid-template-columns:1fr 1fr;}
  .stats{grid-template-columns:repeat(2,1fr);}
  .process{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:768px){
  .nav{
    display:none; flex-direction:column; position:absolute; top:70px; inset-inline:0;
    background:#fff; padding:16px; border-bottom:1px solid var(--border); gap:4px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
  }
  .nav.open{display:flex;}
  .burger{display:block;}
  .header-phone{font-size:.85rem;padding:8px 16px;}
  .hero p{font-size:1rem;}
  .grid-3,.grid-2{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .about-grid{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr;}
  .cta-banner{padding:36px 20px;}
  .cta-banner h2{font-size:1.5rem;}
}
@media(max-width:540px){
  .hero{min-height:75vh;padding:100px 16px 60px;}
  .hero-btns{flex-direction:column;align-items:center;}
  .header-phone{display:none;}
  .stats{grid-template-columns:repeat(2,1fr);gap:16px;}
  .process{grid-template-columns:1fr;}
  .float-call{width:54px;height:54px;font-size:1.4rem;bottom:20px;left:20px;}
}
