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

:root {
  --navy:    #1a2332;
  --navy2:   #1e2d3d;
  --white:   #f8f9fb;
  --card:    #ffffff;
  --blue:    #4a6cf7;
  --blue2:   #3a5ce5;
  --text:    #1a2332;
  --muted:   #6b7a8d;
  --border:  #e4e8ef;
  --orange:  #f5a742;
  --green:   #3ecf8e;
  --purple:  #9b5de5;
  --teal:    #38bdf8;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: break-word;
}

[dir="rtl"] body,
[dir="rtl"] * {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

[dir="rtl"] body {
  line-height: 1.85;
}

[dir="rtl"] p,
[dir="rtl"] li,
[dir="rtl"] .why-card p,
[dir="rtl"] .service-card p,
[dir="rtl"] .about-text p {
  font-size: 15px;
  line-height: 1.9;
}

[dir="rtl"] .section-title { font-size: 26px; }
[dir="rtl"] .hero h1 { font-size: 40px; line-height: 1.25; }
[dir="rtl"] .hero p { font-size: 16px; line-height: 1.9; }

/* ─── LANG TOGGLE ─── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: 'Inter', sans-serif;
}
.lang-btn.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 42px; width: 42px; object-fit: cover; border-radius: 8px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .t-en { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .3px; font-family:'Inter',sans-serif; }
.nav-logo-text .t-ar { color: rgba(255,255,255,.55); font-size: 11px; font-weight: 400; font-family:'Noto Kufi Arabic',sans-serif; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 7px !important;
  padding: 7px 18px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue2) !important; }

/* ─── HERO ─── */
.hero {
  background: var(--navy2);
  padding: 80px 40px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(74,108,247,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 60%, rgba(62,207,142,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { max-width: 520px; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,108,247,.15);
  border: 1px solid rgba(74,108,247,.3);
  color: #7b9bfa;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero-badge::before { content: '●'; font-size: 8px; color: var(--green); }
.hero h1 { font-size: 42px; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; text-wrap: balance; }
.hero h1 span { color: var(--blue); }
.hero p { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 32px; text-wrap: pretty; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: var(--blue); color: #fff; padding: 13px 28px; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none; border: none; cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(74,108,247,.35);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74,108,247,.4); }
.btn-secondary {
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); padding: 13px 28px;
  border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.15); cursor: pointer;
  transition: background .15s, transform .1s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

.hero-logo-block { position: relative; flex-shrink: 0; }
.hero-logo-block img {
  width: 240px; height: 240px; object-fit: cover; border-radius: 20px;
  border: 3px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.jafali-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,167,66,.12);
  border: 1px solid rgba(245,167,66,.3);
  color: #f5a742;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  margin-top: 20px;
}
.jafali-badge svg { flex-shrink: 0; }

/* ─── SECTION ─── */
.section { padding: 72px 40px; max-width: 1160px; margin: 0 auto; }
.section-header { margin-bottom: 40px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.section-title { font-size: 28px; font-weight: 800; color: var(--text); text-wrap: balance; }
.section-sub { font-size: 15px; color: var(--muted); margin-top: 8px; text-wrap: pretty; }

/* ─── HOURS ─── */
.hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hours-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  transition: box-shadow .15s, transform .15s;
}
.hours-card:hover { box-shadow: 0 4px 20px rgba(26,35,50,.08); transform: translateY(-2px); }
.hours-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hours-card .day-name { font-weight: 600; font-size: 14px; color: var(--text); }
.hours-card .day-time { font-size: 13px; color: var(--muted); margin-top: 2px; font-family:'Inter',sans-serif !important; }
.hours-card.closed .day-time { color: #e05353; }
.badge-open { margin-inline-start: auto; background: rgba(62,207,142,.12); color: #2eaa73; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge-closed { margin-inline-start: auto; background: rgba(224,83,83,.1); color: #e05353; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0 40px; }

/* ─── ABOUT ─── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-block {
  background: var(--navy);
  border-radius: 20px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.about-img-block img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; border-radius: 12px; }
.about-text p { color: var(--muted); font-size: 15px; margin-bottom: 16px; text-wrap: pretty; }
.about-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 500; color: var(--text); }

/* ─── SERVICES GRID ─── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; transition: box-shadow .15s, transform .15s;
}
.service-card:hover { box-shadow: 0 6px 24px rgba(26,35,50,.09); transform: translateY(-2px); }
.service-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.service-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.service-list { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.service-list li { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.service-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ─── WHY US ─── */
.why-bg { background: var(--navy2); padding: 72px 0; }
.why-bg .section-label { color: #7b9bfa; }
.why-bg .section-title { color: #fff; }
.why-bg .section-sub { color: rgba(255,255,255,.5); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 28px 26px; transition: background .15s, transform .15s;
}
.why-card:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.why-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.why-card h3 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.65; text-wrap: pretty; }

/* ─── CTA STRIP ─── */
.cta-strip {
  background: linear-gradient(135deg, #3a5ce5 0%, #4a6cf7 60%, #6a88ff 100%);
  padding: 60px 40px; text-align: center;
}
.cta-strip h2 { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta-strip p { color: rgba(255,255,255,.7); font-size: 16px; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: #fff; color: var(--blue2); padding: 13px 28px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: box-shadow .15s, transform .1s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-white:hover { box-shadow: 0 6px 24px rgba(0,0,0,.18); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; color: #fff; padding: 13px 28px; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  border: 2px solid rgba(255,255,255,.5); transition: border-color .15s, transform .1s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover { border-color: #fff; transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer { background: var(--navy); padding: 40px 40px 24px; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 44px; width: 44px; object-fit: cover; border-radius: 8px; }
.footer-brand-text .t-en { color: #fff; font-weight: 700; font-size: 14px; font-family:'Inter',sans-serif; }
.footer-brand-text .t-ar { color: rgba(255,255,255,.45); font-size: 12px; font-family:'Noto Kufi Arabic',sans-serif; }
.footer-copy {
  max-width: 1160px; margin: 0 auto; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-copy span { color: rgba(255,255,255,.35); font-size: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.4); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer-col h4 { color: rgba(255,255,255,.8); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.4); font-size: 13px; text-decoration: none; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: rgba(255,255,255,.7); }

/* ─── RTL TWEAKS ─── */
[dir="rtl"] .hero-badge { letter-spacing: 0; }
[dir="rtl"] .section-label { letter-spacing: 0; }
[dir="rtl"] nav { flex-direction: row-reverse; }
[dir="rtl"] .nav-right { flex-direction: row-reverse; }
[dir="rtl"] .hero { flex-direction: row-reverse; }
[dir="rtl"] .about-layout { direction: rtl; }
[dir="rtl"] .footer-inner { flex-direction: row-reverse; }
[dir="rtl"] .footer-copy { flex-direction: row-reverse; }

/* ─── RESPONSIVE — tablet ─── */
@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }

  .hero { flex-direction: column; gap: 32px; padding: 48px 20px 40px; text-align: center; }
  [dir="rtl"] .hero { text-align: center; }
  [dir="rtl"] .hero { flex-direction: column; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-btns { justify-content: center; flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; justify-content: center; }
  .hero-logo-block img { width: 160px; height: 160px; }
  .hero-badge { font-size: 11px; text-align: center; justify-content: center; }

  .section { padding: 48px 20px; }
  .section-title { font-size: 22px; }

  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-img-block { aspect-ratio: 16/9; padding: 0 !important; background: none !important; border: none !important; box-shadow: none !important; border-radius: 14px; }
  .about-img-block img { border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }

  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .hours-grid { grid-template-columns: 1fr 1fr; }

  .cta-strip { padding: 48px 20px; }
  .cta-strip h2 { font-size: 22px; }
  .cta-strip p { font-size: 14px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns a { width: 100%; justify-content: center; }

  footer { padding: 32px 20px 20px; }
  .footer-inner { gap: 28px; }
  .divider { margin: 0 20px; }
}

/* ─── RESPONSIVE — phone ─── */
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  [dir="rtl"] .hero h1 { font-size: 22px; line-height: 1.4; }
  [dir="rtl"] .hero p { font-size: 14px; line-height: 1.85; }

  .hero-badge { font-size: 10px; padding: 4px 10px; white-space: normal; text-align: center; }
  .jafali-badge { font-size: 11px; }

  .hours-grid { grid-template-columns: 1fr; }

  .btn-primary, .btn-secondary, .btn-white, .btn-outline-white {
    padding: 14px 20px;
    font-size: 14px;
    min-height: 48px;
  }

  .why-card { padding: 20px 18px; }
  .service-card { padding: 20px 18px; }
  [dir="rtl"] .why-card p,
  [dir="rtl"] .service-card p,
  [dir="rtl"] .about-text p { font-size: 14px; }

  .footer-inner { flex-direction: column; }
  [dir="rtl"] .footer-inner { flex-direction: column; }
  .footer-copy { flex-direction: column; text-align: center; }
  [dir="rtl"] .footer-copy { flex-direction: column; }
  .footer-links { justify-content: center; }
}

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* hide/show content by lang */
.ar-content { display: none; }
.en-content { display: block; }
[dir="rtl"] .ar-content { display: block; }
[dir="rtl"] .en-content { display: none; }

/* inline bilingual spans */
.ar-text { display: none; }
.en-text { display: inline; }
[dir="rtl"] .ar-text { display: inline; }
[dir="rtl"] .en-text { display: none; }
