/* Ok Merci Services — clean one-page site
   Palette preserved from your current site:
   Primary: #009cfe
   Secondary: #9B9B9B
   Light: #F5F5F5
   Dark: #161616
*/

:root{
  --primary:#009cfe;
  --secondary:#9B9B9B;
  --light:#F5F5F5;
  --dark:#161616;

  --bg:#ffffff;
  --text:#1b1b1b;
  --muted:#5c5c5c;
  --border:rgba(0,0,0,.10);

  --radius:18px;
  --shadow:0 14px 40px rgba(0,0,0,.10);
  --shadow-soft:0 10px 30px rgba(0,0,0,.08);

  --container:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.55;
}
body.is-ar{
  font-family: Cairo, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a{color:inherit}
.link{color:var(--primary); text-decoration:none}
.link:hover{opacity:.85}
.muted{color:var(--muted)}
.container{width:min(var(--container), calc(100% - 32px)); margin-inline:auto}
.sep{opacity:.6; padding-inline:10px}

/* Topbar */
.topbar{
  background:var(--dark);
  color:#fff;
  font-size:14px;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  flex-wrap:wrap;
}
.topbar__left, .topbar__right{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.topbar__link{color:#fff; text-decoration:none; opacity:.95}
.topbar__link:hover{opacity:.8}
.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
}
.dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--primary);
  box-shadow:0 0 0 6px rgba(0,156,254,.18);
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--dark);
}
.brand__mark{
  width:44px;height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--primary), #2b6bff);
  color:#fff;
  font-weight:900;
  letter-spacing:.5px;
  box-shadow:0 12px 24px rgba(0,156,254,.25);
}
.brand__text{display:flex; flex-direction:column; line-height:1.1}
.brand__name{font-weight:900}
.brand__sub{font-size:12px; color:var(--muted)}

.nav{display:flex; align-items:center; gap:18px}
.nav__link{
  text-decoration:none;
  color:var(--dark);
  font-weight:700;
  padding:10px 10px;
  border-radius:12px;
}
.nav__link:hover{background:rgba(0,156,254,.08); color:var(--primary)}

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

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  user-select:none;
}
.btn:active{transform:translateY(1px)}
.btn--primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 14px 30px rgba(0,156,254,.25);
}
.btn--primary:hover{box-shadow:0 18px 36px rgba(0,156,254,.33)}
.btn--ghost{
  background:transparent;
  border-color:rgba(0,0,0,.14);
  color:var(--dark);
}
.btn--ghost:hover{border-color:rgba(0,156,254,.35); background:rgba(0,156,254,.06)}
.btn--full{width:100%}

/* ===== Language switch (NO :has, works everywhere) ===== */
.lang-fr { display: block; }
.lang-ar { display: none; font-family: "Cairo", sans-serif; }

/* Show one language only */
body[data-lang="fr"] .lang-fr { display: block; }
body[data-lang="fr"] .lang-ar { display: none; }

body[data-lang="ar"] .lang-fr { display: none; }
body[data-lang="ar"] .lang-ar { display: block; }

/* RTL when Arabic */
body[data-lang="ar"] { direction: rtl; }
body[data-lang="fr"] { direction: ltr; }

/* Optional: make Arabic form inputs RTL */
body[data-lang="ar"] input[type="tel"],
body[data-lang="ar"] input[type="number"],
body[data-lang="ar"] input[type="email"]{
  direction: ltr;
  text-align: left;
}


/* Hero */
.hero{
  padding:56px 0 24px;
  background:
    radial-gradient(900px 380px at 15% 20%, rgba(0,156,254,.18), transparent 60%),
    radial-gradient(900px 380px at 85% 10%, rgba(43,107,255,.14), transparent 60%),
    linear-gradient(180deg, #fff, #fff);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:stretch;
}
.kicker{
  display:inline-block;
  font-weight:800;
  color:var(--primary);
  background:rgba(0,156,254,.10);
  padding:8px 12px;
  border-radius:999px;
  margin:0 0 14px;
}
.hero__title{
  margin:0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.1;
  color:var(--dark);
  letter-spacing:-.6px;
}
.hero__lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px}
.hero__meta{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.meta{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 12px;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
}
.meta strong{display:block; color:var(--dark)}
.meta span{color:var(--muted); font-size:13px}

/* Hero card */
.hero__card .card{
  height:100%;
  border-radius:var(--radius);
  background:linear-gradient(180deg, #ffffff, #f8fbff);
  border:1px solid rgba(0,156,254,.20);
  box-shadow:var(--shadow);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-80px -80px auto auto;
  width:220px;height:220px;
  background:radial-gradient(circle at 30% 30%, rgba(0,156,254,.35), transparent 60%);
  transform:rotate(20deg);
}
.card__top{display:flex; align-items:center; justify-content:space-between; position:relative}
.badge{
  background:rgba(22,22,22,.92);
  color:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.4px;
}
.pulse{
  width:14px;height:14px;border-radius:50%;
  background:var(--primary);
  box-shadow:0 0 0 0 rgba(0,156,254,.45);
  animation:pulse 1.8s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(0,156,254,.42)}
  70%{box-shadow:0 0 0 16px rgba(0,156,254,0)}
  100%{box-shadow:0 0 0 0 rgba(0,156,254,0)}
}
.card__body{margin-top:18px; display:grid; gap:12px; position:relative}
.stat{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow-soft);
  display:flex;
  gap:10px;
  align-items:center;
}
.stat__num{font-size:22px}
.stat__txt{color:var(--muted); font-weight:700}
.card__foot{margin-top:14px; display:flex; gap:8px; flex-wrap:wrap; position:relative}
.mini{
  font-size:12px;
  font-weight:900;
  color:var(--dark);
  background:rgba(0,156,254,.10);
  padding:8px 10px;
  border-radius:999px;
}

/* Sections */
.section{padding:56px 0}
.section--alt{
  background:linear-gradient(180deg, var(--light), #fff);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.section__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:22px;
}
.section__head h2{margin:0 0 8px; font-size: clamp(22px, 2.8vw, 30px); color:var(--dark)}
.section__head p{margin:0; color:var(--muted)}

/* Grid / cards */
.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, minmax(0, 1fr))}
.service{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service:hover{
  transform:translateY(-2px);
  border-color:rgba(0,156,254,.25);
  box-shadow:0 18px 36px rgba(0,0,0,.10);
}
.service__icon{
  width:44px;height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(0,156,254,.12);
  color:var(--primary);
  font-size:18px;
  margin-bottom:12px;
}
.service h3{margin:0 0 8px; color:var(--dark)}
.service p{margin:0; color:var(--muted)}
.service--wide{grid-column: 1 / -1}

/* About */
.about__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}
.list{
  margin:14px 0 0;
  padding:0 0 0 18px;
  color:var(--muted);
}
body.is-ar .list{padding:0 18px 0 0}

/* Panel */
.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow-soft);
}
.panel__row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px dashed rgba(0,0,0,.10);
}
.panel__row:last-child{border-bottom:none}
.panel__label{color:var(--muted); font-weight:800}
.panel__value{color:var(--dark); font-weight:900}
.panel__cta{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr .85fr;
  gap:14px;
  align-items:start;
}
/* Map fix (mobile friendly) */
.map { overflow: hidden; }

.map__frame{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 10;   /* كيحكم فالحجم */
  min-height: 240px;       /* fallback */
}

.map__frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile: خليه أصغر شوية */
@media (max-width: 980px){
  .map__frame{
    aspect-ratio: 16 / 12;
    min-height: 220px;
  }
}

.form{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow-soft);
}
.form label{display:block; margin:10px 0 8px; font-weight:900; color:var(--dark)}
.form input, .form textarea, .form select{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.14);
  padding:12px 12px;
  font:inherit;
  outline:none;
  background:#fff;
}
.form input:focus, .form textarea:focus, .form select:focus{
  border-color:rgba(0,156,254,.45);
  box-shadow:0 0 0 4px rgba(0,156,254,.12);
}
.hint{margin:12px 0 0; font-size:13px; color:var(--muted)}
.mini-actions{margin-top:10px}

.contact__side{display:grid; gap:14px}
.box, .map{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow-soft);
}
.box h3{margin:0 0 10px; color:var(--dark)}
.info{list-style:none; padding:0; margin:12px 0 0; display:grid; gap:10px}
.info li{display:flex; gap:10px; align-items:flex-start; color:var(--muted)}
.i{width:22px; display:inline-flex; justify-content:center}
.map__inner{
  min-height:160px;
  display:grid;
  place-items:center;
  text-align:center;
  background:
    radial-gradient(700px 240px at 30% 30%, rgba(0,156,254,.12), transparent 60%),
    linear-gradient(180deg, #fff, #fafcff);
  border-radius:14px;
}

/* Footer */
.footer{
  background:var(--dark);
  color:#fff;
  padding:28px 0;
  margin-top:40px;
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap:14px;
  align-items:center;
}
.footer__brand{display:flex; gap:12px; align-items:center}
.footer__links{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}
.footer__copy{display:flex; align-items:flex-end; justify-content:flex-end}
.footer .muted{color:rgba(255,255,255,.65)}

/* RTL */
body.is-ar{direction:rtl}
body.is-ar .nav{direction:rtl}
body.is-ar .hero__cta{justify-content:flex-start}
body.is-ar .panel__row{flex-direction:row-reverse}
body.is-ar .footer__copy{justify-content:flex-start}
body.is-ar .info li{flex-direction:row-reverse}
/* ===== RTL Numbers Fix (final) ===== */
body[data-lang="ar"] a[href^="tel:"],
body[data-lang="ar"] a[href^="mailto:"],
body[data-lang="ar"] .topbar__num,
body[data-lang="ar"] .panel__value,
body[data-lang="ar"] [data-i18n="hours_text"],
body[data-lang="ar"] .num,
body[data-lang="ar"] .phone,
body[data-lang="ar"] .ltr {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext; /* أقوى من isolate مع النص المختلط */
}

/* Inputs: خليهوم LTR فالعربية */
body[data-lang="ar"] input[type="tel"],
body[data-lang="ar"] input[type="email"],
body[data-lang="ar"] input[type="number"]{
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .hero__meta{grid-template-columns:1fr}
  .grid--3{grid-template-columns:1fr}
  .about__grid{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .footer__inner{grid-template-columns:1fr; text-align:center}
  .footer__links{justify-content:center}
  .footer__copy{justify-content:center; align-items:center}
  .nav{display:none}
}


