/* ===================================================
   Jeddah Repair 0563654202 - Fluid Responsive Layout
   Palette: Royal Blue, Electric Teal, Emerald & Charcoal
=================================================== */
@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;       /* Royal Blue */
  --primary-dark: #0369a1;
  --secondary: #00A896;     /* Electric Teal */
  --accent: #2563eb;
  --bg: #f8fafc;            /* Clean light background */
  --bg-card: #ffffff;
  --bg-section: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-hover: 0 15px 35px rgba(2,132,199,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 80px; /* Space for fixed bottom bar */
}
a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; display: block; height: auto; }

/* FLUID RESPONSIVE CONTAINER (1150px) */
.wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.95rem;
  font-weight: 700;
}
.top-bar a { color: #fff; text-decoration: underline; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1150px; margin: 0 auto; padding: 0 24px; height: 75px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  font-size: 1.4rem; font-weight: 900; color: var(--primary);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.logo-icon {
  width: 42px; height: 42px; background: var(--primary);
  color: #fff; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--text-muted); padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1.02rem; transition: all 0.3s; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(2,132,199,0.08); }

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

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

/* HERO SECTION */
.hero {
  padding: 45px 0 30px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(2,132,199,0.1); color: var(--primary);
  padding: 8px 22px; border-radius: 50px; font-weight: 800; font-size: 0.92rem;
  margin-bottom: 18px; border: 1px solid rgba(2,132,199,0.2);
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; color: var(--text);
  margin-bottom: 16px; line-height: 1.25;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.18rem; color: var(--text-muted); max-width: 720px; margin: 0 auto 28px;
}
.hero-btns {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 34px; border-radius: 50px; font-weight: 800; font-size: 1.1rem;
  cursor: pointer; border: none; transition: all 0.3s;
}
.btn-call {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff !important; box-shadow: 0 6px 20px rgba(2,132,199,0.3); direction: ltr;
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(2,132,199,0.4); }
.btn-wa {
  background: #25d366; color: #fff !important;
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(37,211,102,0.4); }

/* INTRO / IMAGE CARD */
.intro-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center;
  margin-bottom: 40px;
}
.intro-img {
  border-radius: 12px; overflow: hidden; height: 260px;
}
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.intro-text h2 { font-size: 1.7rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.intro-text p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.8; }

/* 6-GRID FEATURES */
.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 900; color: var(--text);
  margin-bottom: 24px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px;
}
.feature-item {
  background: var(--bg-card); border-radius: var(--radius); padding: 24px 20px;
  text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.feature-icon { font-size: 2.3rem; margin-bottom: 12px; }
.feature-item h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.feature-item p { font-size: 0.95rem; color: var(--text-muted); }

/* SERVICES LIST CARD */
.services-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 40px;
}
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px;
}
.service-check-item {
  background: var(--bg-section); padding: 14px 18px; border-radius: var(--radius-sm);
  font-weight: 700; color: var(--text); font-size: 1rem; display: flex; align-items: center; gap: 10px;
}
.service-check-item::before { content: '✅'; font-size: 1.1rem; }

/* BRAND REPAIR CARDS GRID */
.brands-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px;
}
.brand-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.3s;
  display: flex; flex-direction: column;
}
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }

.brand-text-header {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: var(--primary-dark); padding: 16px; text-align: center;
  font-size: 1.3rem; font-weight: 900; border-bottom: 2px solid var(--primary);
  letter-spacing: 0.5px;
}
.brand-card-body { padding: 22px; flex-grow: 1; text-align: right; }
.brand-card-body h3 { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.brand-card-body p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }

/* SEO KEYWORDS CARD (FOR GOOGLE ADS QUALITY SCORE) */
.seo-keywords-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 40px;
}
.seo-keywords-card h3 {
  font-size: 1.4rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 12px; text-align: center;
}
.seo-keywords-card p {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; text-align: center;
}
.kw-grid {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.kw-tag {
  background: #f1f5f9; color: var(--text); padding: 6px 14px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 700; border: 1px solid #e2e8f0; transition: all 0.2s;
}
.kw-tag:hover { background: #e0f2fe; color: var(--primary-dark); border-color: var(--primary); }

/* COVERAGE AREAS PILLS */
.areas-wrap {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: center;
  margin-bottom: 40px;
}
.areas-pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px;
}
.area-pill {
  background: rgba(2,132,199,0.08); color: var(--primary-dark);
  padding: 8px 20px; border-radius: 50px; font-weight: 800; font-size: 0.95rem;
  border: 1px solid rgba(2,132,199,0.2);
}

/* BLUE CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff; border-radius: var(--radius); padding: 40px 30px;
  text-align: center; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(2,132,199,0.3);
}
.cta-banner h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 10px; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }

/* RICH MULTI-COLUMN FOOTER */
.site-footer {
  background: #0f172a; color: #94a3b8; border-radius: var(--radius);
  padding: 45px 32px 24px; margin-bottom: 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 35px; margin-bottom: 35px;
}
.footer-col h4 {
  color: #ffffff; font-size: 1.2rem; font-weight: 800; margin-bottom: 18px;
  position: relative; padding-bottom: 8px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 35px; height: 3px;
  background: var(--primary); border-radius: 2px;
}
.footer-col p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #94a3b8; transition: all 0.3s; font-size: 0.96rem; display: inline-flex; align-items: center; gap: 6px; }
.footer-col ul a:hover { color: #38bdf8; transform: translateX(-4px); }

.footer-call-box {
  background: rgba(255,255,255,0.05); padding: 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1); text-align: center;
}
.footer-call-box .num { font-size: 1.4rem; font-weight: 900; color: #38bdf8; direction: ltr; margin-bottom: 10px; }

/* SHORT FOOTER DISCLAIMER */
.footer-disclaimer {
  background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 10px; padding: 14px 20px; margin-top: 25px;
  color: #94a3b8; font-size: 0.84rem; line-height: 1.6; text-align: center;
}
.footer-bottom-text { text-align: center; color: var(--text-light); font-size: 0.85rem; padding-bottom: 20px; }

/* FIXED BOTTOM BAR */
.fixed-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #ffffff; padding: 12px 24px; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1); display: flex; gap: 14px;
  max-width: 100%;
}
.bottom-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 12px; font-weight: 800; font-size: 1.15rem;
  color: #fff; direction: ltr;
}
.bottom-call { background: var(--primary); }
.bottom-wa { background: #25d366; }

/* 4-SECOND CALL POPUP */
.call-popup-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.75);
  backdrop-filter: blur(5px); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease; padding: 20px;
}
.call-popup-overlay.active { opacity: 1; visibility: visible; }
.call-popup-card {
  background: #fff; border-radius: 20px; padding: 36px 28px;
  max-width: 420px; width: 100%; text-align: center; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3); border-top: 6px solid var(--primary);
  transform: translateY(20px); transition: transform 0.4s ease;
}
.call-popup-overlay.active .call-popup-card { transform: translateY(0); }
.call-popup-close {
  position: absolute; top: 12px; left: 12px; background: #f1f5f9; border: none;
  font-size: 1.2rem; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.call-popup-close:hover { background: var(--primary); color: #fff; }
.call-popup-icon { font-size: 3.2rem; display: block; margin-bottom: 12px; }
.call-popup-title { font-size: 1.5rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.call-popup-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-card { grid-template-columns: 1fr; }
  .nav a { font-size: 0.95rem; padding: 6px 12px; }
}
@media (max-width: 850px) {
  .header-cta { display: none; }
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 75px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .brands-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .btn { width: 100%; }
}
