/* ==========================================================================
   مركز النخبة لصيانة الغسالات والثلاجات — حي المنار، جدة
   Elite Appliance Repair — Al Manar, Jeddah (0561644297)
   Fully Responsive, High Performance, Google Ads Compliant
   ========================================================================== */

@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 {
  --primary: #0284c7;        /* Trust Blue */
  --primary-dark: #0369a1;   /* Deep Blue */
  --primary-light: #e0f2fe;  /* Ice Blue tint */
  --secondary: #0d9488;      /* Clean Teal */
  --secondary-dark: #0f766e;
  --accent: #f59e0b;         /* Warm amber for ratings / badges */
  --success: #16a34a;        /* WhatsApp / Success Green */
  --success-dark: #15803d;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-section: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 18px 35px rgba(2, 132, 199, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  overflow-x: hidden;
  padding-bottom: 75px; /* for mobile fixed bar */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ltr-num {
  direction: ltr;
  display: inline-block;
  unicode-bidi: embed;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP EMERGENCY BANNER */
.top-bar {
  background: linear-gradient(90deg, #0369a1, #0284c7);
  color: #ffffff;
  text-align: center;
  padding: 9px 15px;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.top-bar a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  margin-right: 6px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--primary-dark);
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  flex-shrink: 0;
}
.logo span.sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.2s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

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

.header-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  white-space: nowrap;
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
  padding: 5px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  padding: 55px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.hero h1 {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 16px;
}
.hero h1 span.highlight {
  color: var(--primary);
  position: relative;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-call {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

.btn-wa {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.42);
}

.btn-outline {
  background: #fff;
  color: var(--primary-dark) !important;
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}

/* POLICY NOTICE PILL */
.policy-pill {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.86rem;
  color: #1e40af;
  margin: 15px auto 0;
  max-width: 780px;
  line-height: 1.6;
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: -25px auto 45px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
}
.stat-box {
  text-align: center;
  border-left: 1px solid var(--border);
}
.stat-box:last-child {
  border-left: none;
}
.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary-dark);
}
.stat-text {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

/* SECTION COMMON */
.section {
  padding: 60px 0;
}
.section-alt {
  background-color: var(--bg-section);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}
.section-head h2 em {
  font-style: normal;
  color: var(--primary);
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* SERVICE CARDS */
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.svc-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  display: inline-block;
}
.svc-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.svc-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 18px;
  flex-grow: 1;
}
.svc-card ul {
  list-style: none;
  margin-bottom: 22px;
}
.svc-card ul li {
  position: relative;
  padding-right: 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.svc-card ul li::before {
  content: "✔";
  position: absolute;
  right: 0;
  color: var(--secondary);
  font-weight: bold;
}
.svc-link {
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
}

/* WHY US / FEATURE CARDS */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 15px;
}
.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* PROCESS STEPS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}
.step-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.step-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* BRANDS BADGES */
.brand-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.brand-disclaimer-box {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.86rem;
  color: var(--text-light);
  margin-top: 22px;
  text-align: center;
}

/* DISTRICTS TAGS */
.districts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.district-tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.district-tag.main-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* FAQ ACCORDION */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  padding: 18px 22px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q:hover {
  color: var(--primary);
}
.faq-chevron {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a {
  display: block;
}

/* CONTACT PAGE SPECIFIC */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-text h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.info-text p, .info-text a {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
  background: #fff;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 45px 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
  margin: 40px 0;
}
.cta-banner h2 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 25px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* POLICY CONTENT PAGES */
.policy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  line-height: 1.9;
  margin-bottom: 30px;
}
.policy-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 25px 0 12px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
}
.policy-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
}
.policy-card p, .policy-card ul {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 15px;
}
.policy-card ul {
  padding-right: 25px;
}
.policy-card ul li {
  margin-bottom: 8px;
}

/* FOOTER */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 55px 0 25px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 30px;
  margin-bottom: 35px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.footer-col p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.94rem;
}
.footer-col ul li a:hover {
  color: #fff;
  padding-right: 4px;
}

.footer-nap {
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 25px;
  border: 1px solid rgba(255,255,255,0.06);
}

.footer-disclaimer {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-sm);
  padding: 15px;
  text-align: center;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 25px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}

/* FIXED BOTTOM CALL BAR FOR MOBILE */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  padding: 8px 12px;
  gap: 10px;
}
.bottom-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
}
.bottom-call {
  background: var(--primary);
  color: #fff !important;
}
.bottom-wa {
  background: #16a34a;
  color: #fff !important;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--primary);
  }
  .nav.open {
    display: flex;
  }
  .burger {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-box:nth-child(2) {
    border-left: none;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 16px 10px;
  }
  .stat-num {
    font-size: 1.6rem;
  }
}
