/* ============================================================
   OptiClinic — نظام التصميم
   عيادة الدكتور بودوشة لطب وجراحة العيون
   RTL • عربي/فرنسي • Responsive
   ============================================================ */

/* ---------- متغيرات التصميم ---------- */
:root {
  --bg: #f4f9fb;
  --surface: #ffffff;
  --surface-2: #eaf3f7;
  --ink: #0e2135;
  --ink-2: #16324a;
  --muted: #5c7285;
  --muted-2: #8aa0b2;

  --primary: #0e7490;
  --primary-600: #0b5d76;
  --primary-700: #0a4a5f;
  --primary-dark: #083344;
  --primary-light: #cffafe;
  --primary-soft: #e0f7fa;

  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --accent-soft: #ccfbf1;

  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;

  --grad-main: linear-gradient(135deg, #0b5d76 0%, #0e7490 45%, #14b8a6 100%);
  --grad-soft: linear-gradient(135deg, #e0f7fa 0%, #ccfbf1 100%);

  --shadow-sm: 0 1px 3px rgba(8, 51, 68, .08);
  --shadow-md: 0 6px 18px rgba(8, 51, 68, .1);
  --shadow-lg: 0 18px 45px rgba(8, 51, 68, .16);
  --shadow-accent: 0 10px 30px rgba(20, 184, 166, .35);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --font-head: "Cairo", "Tajawal", "Segoe UI", sans-serif;
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;

  --nav-h: 76px;
  --container: 1200px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- إعادة الضبط ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

html[dir="ltr"] {
  --font-head: "Cairo", "Segoe UI", sans-serif;
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; color: var(--ink-2); font-weight: 800; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }
::selection { background: var(--primary); color: #fff; }

:focus-visible { outline: 3px solid rgba(20, 184, 166, .55); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 99px; border: 2px solid var(--surface-2); }

/* ---------- حاويات ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

section { padding-block: 5rem; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.25rem; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary-soft); color: var(--primary-600);
  font-weight: 700; font-size: .86rem; padding: .42rem 1rem;
  border-radius: var(--radius-full); letter-spacing: .02em; margin-bottom: 1rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head.is-start { text-align: start; margin-inline: 0; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-full);
  border: 2px solid transparent; transition: all var(--transition);
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(20, 184, 166, .45); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-md); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary-600); }
.btn-white { background: #fff; color: var(--primary-700); box-shadow: var(--shadow-lg); }
.btn-white:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- شارات ---------- */
p.panel-sub span svg{
  max-width: 5%;
}
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700; padding: .3rem .8rem;
  border-radius: var(--radius-full);
}
.badge-teal { background: var(--accent-soft); color: var(--accent-dark); }
.badge-blue { background: var(--primary-soft); color: var(--primary-600); }
.badge-warn { background: var(--warn-soft); color: #b45309; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- بطاقات ---------- */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(8, 51, 68, .06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- شبكات ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 51, 68, .08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 900; color: var(--ink-2); font-size: 1.28rem; }
.brand:hover { color: var(--ink-2); }
.brand .logo-mark {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--grad-main); display: grid; place-items: center;
  box-shadow: var(--shadow-accent);
}
.brand .logo-mark svg { width: 30px; height: 30px; color: #fff; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); line-height: 1.2; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a.nav-link {
  padding: .55rem .95rem; border-radius: var(--radius-full);
  font-family: var(--font-head); font-weight: 700; font-size: .97rem; color: var(--ink-2);
}
.nav a.nav-link:hover { background: var(--primary-soft); color: var(--primary-600); }
.nav a.nav-link.active { background: var(--primary); color: #fff; }

.header-actions { display: flex; align-items: center; gap: .65rem; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface-2); border: none; border-radius: var(--radius-full);
  padding: .5rem .9rem; font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  color: var(--ink-2); transition: all var(--transition);
}
.lang-toggle:hover { background: var(--primary-soft); color: var(--primary-600); }
.lang-toggle svg { width: 17px; height: 17px; }

.nav-toggle { display: none; background: none; border: 2px solid var(--surface-2); border-radius: 10px; padding: .5rem; line-height: 0; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--ink-2); }

/* الشريط العلوي */
.topbar {
  background: var(--grad-main); color: #fff; font-size: .9rem;
  padding: .45rem 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .tb-group { display: flex; align-items: center; gap: 1.4rem; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .tb-item svg { width: 16px; height: 16px; opacity: .9; }
.topbar .tb-socials { display: flex; gap: .5rem; }
.topbar .tb-socials a {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border-radius: 8px; transition: background var(--transition);
}
.topbar .tb-socials a:hover { background: #fff; color: var(--primary-700); }
.topbar .tb-socials svg { width: 15px; height: 15px; }

/* ---------- هيرو ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(20, 184, 166, .18), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(14, 116, 144, .16), transparent 55%),
    linear-gradient(160deg, #eef9fc 0%, #e3f4f8 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(14, 116, 144, .12) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(1200px 700px at 70% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; padding-block: 4.5rem; }
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--primary-600); font-weight: 700; font-size: .88rem;
  padding: .45rem 1.1rem; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); margin-bottom: 1.3rem;
}
.hero-copy h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); margin-bottom: 1rem; color: var(--ink-2); }
.hero-copy h1 .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p.lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-points { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero-point { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.hero-point svg { width: 21px; height: 21px; color: var(--accent-dark); }

.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 8px solid #fff;
}
.hero-img-wrap img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .75rem;
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .fc-icon svg { width: 23px; height: 23px; color: #fff; }
.float-card .fc-title { font-family: var(--font-head); font-weight: 800; font-size: .98rem; color: var(--ink-2); line-height: 1.2; }
.float-card .fc-sub { font-size: .8rem; color: var(--muted); }
.fc-1 { top: 4%; inset-inline-start: -7%; animation-delay: .2s; }
.fc-2 { bottom: 9%; inset-inline-end: -6%; animation-delay: 1.4s; }
.fc-3 { bottom: 26%; inset-inline-start: -10%; animation-delay: 2.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* موج أسفل الهيرو */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; pointer-events: none; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ---------- شريط الإحصائيات ---------- */
.stats-band { margin-top: -40px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-card { text-align: center; padding: 1.9rem 1rem; border-radius: var(--radius-lg); }
.stat-card .num { font-family: var(--font-head); font-weight: 900; font-size: 2.35rem; color: var(--primary-700); line-height: 1.1; }
.stat-card .num sup { font-size: 1.2rem; color: var(--accent-dark); }
.stat-card .lbl { color: var(--muted); font-weight: 700; font-size: .95rem; margin-top: .2rem; }
.stat-card .stat-icon { width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 15px; background: var(--grad-soft); display: grid; place-items: center; }
.stat-card .stat-icon svg { width: 28px; height: 28px; color: var(--primary-600); }

/* ---------- خطوات الحجز ---------- */
.steps-wrap { position: relative; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step-card {
  position: relative; padding: 2rem 1.4rem 1.7rem; text-align: center;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent; transition: all var(--transition);
}
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; inset-inline-start: 50%; transform: translateX(50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--grad-main); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; box-shadow: var(--shadow-accent);
}
.step-card:hover { border-top-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-card .step-icon { width: 62px; height: 62px; margin: .8rem auto 1rem; border-radius: 18px; background: var(--primary-soft); display: grid; place-items: center; }
.step-card .step-icon svg { width: 32px; height: 32px; color: var(--primary-600); }
.step-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- شبكة الخدمات ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 1.7rem 1.5rem;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(8, 51, 68, .06); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card::after {
  content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--grad-soft); opacity: 0; transition: opacity var(--transition); z-index: 0;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { opacity: 1; }
.service-card .sc-body { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.service-card .sc-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-main); box-shadow: var(--shadow-accent); margin-bottom: 1.1rem;
}
.sc-icon svg { width: 30px; height: 30px; color: #fff; }
.service-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.service-card .sc-desc { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.service-card .sc-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .95rem; color: var(--primary-600); }
.service-card .sc-link svg { width: 18px; height: 18px; transition: transform var(--transition); }
.service-card:hover .sc-link svg { transform: translateX(-4px); }

/* ---------- لماذا نحن ---------- */
.why-section { background: var(--ink-2); position: relative; overflow: hidden; }
.why-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% 10%, rgba(20, 184, 166, .2), transparent 60%),
              radial-gradient(600px 400px at 5% 95%, rgba(14, 116, 144, .3), transparent 55%);
}
.why-section .section-head h2, .why-section .section-head p { color: #e8f4f8; }
.why-section .section-head .eyebrow { background: rgba(255,255,255,.1); color: #7ef3e2; }
.why-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 1.7rem 1.5rem; backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.why-card:hover { background: rgba(255, 255, 255, .1); transform: translateY(-5px); }
.why-card .wc-icon { width: 54px; height: 54px; border-radius: 15px; background: rgba(20, 184, 166, .18); display: grid; place-items: center; margin-bottom: 1.1rem; }
.why-card .wc-icon svg { width: 28px; height: 28px; color: #5eead4; }
.why-card h3 { color: #fff; font-size: 1.14rem; margin-bottom: .4rem; }
.why-card p { color: #b9d3df; font-size: .96rem; margin: 0; }

/* ---------- تقديم / قسم تعريف ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-visual { position: relative; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -22px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--grad-main); color: #fff; border-radius: var(--radius);
  padding: 1rem 1.6rem; display: flex; align-items: center; gap: .9rem; box-shadow: var(--shadow-lg);
  width: max-content;
}
.about-badge svg { width: 30px; height: 30px; }
.about-badge strong { font-family: var(--font-head); font-size: 1.05rem; display: block; line-height: 1.2; }
.about-badge span { font-size: .85rem; opacity: .92; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.4rem 0 1.8rem; }
.about-feat { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink-2); font-size: .98rem; }
.about-feat svg { width: 22px; height: 22px; color: var(--accent-dark); flex: none; }

/* ---------- آراء المرضى ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { padding: 1.8rem 1.6rem; position: relative; }
.testi-card .quote { width: 42px; height: 42px; background: var(--primary-soft); border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; }
.testi-card .quote svg { width: 22px; height: 22px; color: var(--primary-600); }
.testi-card p { color: var(--ink); font-size: 1rem; }
.testi-card .stars { color: #f59e0b; display: flex; gap: 2px; margin-bottom: .8rem; }
.testi-card .stars svg { width: 18px; height: 18px; }
.testi-user { display: flex; align-items: center; gap: .8rem; border-top: 1px dashed rgba(8,51,68,.12); padding-top: 1rem; }
.testi-user .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--primary-700); font-size: 1.05rem; }
.testi-user strong { display: block; color: var(--ink-2); font-size: .98rem; line-height: 1.2; }
.testi-user span { font-size: .82rem; color: var(--muted); }

/* ---------- مدونة ---------- */
.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-card .bc-img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.blog-card .bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .bc-img img { transform: scale(1.06); }
.blog-card .bc-img .bc-date {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(8, 51, 68, .75); color: #fff; backdrop-filter: blur(4px);
  font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: .35rem;
}
.blog-card .bc-img .bc-date svg { width: 14px; height: 14px; }
.blog-card .bc-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.blog-card .bc-tag { align-self: flex-start; margin-bottom: .6rem; }
.blog-card h3 { font-size: 1.13rem; flex: 1; }
.blog-card .bc-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--primary-600); margin-top: .6rem; }
.blog-card .bc-more svg { width: 17px; height: 17px; transition: transform var(--transition); }
.blog-card:hover .bc-more svg { transform: translateX(-4px); }

/* ---------- اتصال ---------- */
.contact-section { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: stretch; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.35rem 1.4rem; }
.contact-card .cc-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--grad-main); display: grid; place-items: center; box-shadow: var(--shadow-accent); }
.contact-card .cc-icon svg { width: 26px; height: 26px; color: #fff; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.contact-card p, .contact-card a { color: var(--muted); margin: 0; font-size: .97rem; }
.contact-card a:hover { color: var(--primary-600); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(8,51,68,.08); min-height: 320px; background: var(--surface-2); position: relative; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--ink-2); color: #b9d3df; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 85% 0%, rgba(20, 184, 166, .14), transparent 60%);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: 4rem 2.5rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; margin-bottom: 1.4rem; }
.footer-socials { display: flex; gap: .6rem; }
.footer-socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border-radius: 11px; color: #e2f0f5; transition: all var(--transition);
}
.footer-socials a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-socials svg { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: 1.08rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { color: #b9d3df; display: inline-flex; align-items: center; gap: .45rem; font-size: .96rem; }
.footer-links a svg { width: 15px; height: 15px; color: var(--accent); }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .7rem; font-size: .95rem; }
.footer-contact svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: .2rem; }
.footer-contact a { color: #b9d3df; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.footer-bottom .fb-links { display: flex; gap: 1.4rem; }
.footer-bottom a { color: #b9d3df; }

/* ---------- زر العائم ---------- */
.float-actions { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 55; display: grid; gap: .8rem; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); border: none; transition: all var(--transition); position: relative;
}
.float-btn svg { width: 26px; height: 26px; color: #fff; }
.float-btn:hover { transform: scale(1.09); }
.float-btn .tip {
  position: absolute; inset-inline-end: 66px; top: 50%; transform: translateY(-50%);
  background: var(--ink-2); color: #fff; font-size: .8rem; font-weight: 700; padding: .4rem .8rem;
  border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.float-btn:hover .tip { opacity: 1; }
.fb-whatsapp { background: #25d366; }
.fb-call { background: var(--grad-main); }
.fb-calendar { background: var(--accent-dark); width: 50px; height: 50px; }

/* ---------- الأنيميشن ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- صفحات داخلية (بانر) ---------- */
.page-hero {
  position: relative; padding-block: 4.2rem 5rem; overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(20, 184, 166, .2), transparent 60%),
    linear-gradient(150deg, #e7f6fa, #dbeef4);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14, 116, 144, .1) 1.5px, transparent 1.5px);
  background-size: 26px 26px; mask-image: radial-gradient(900px 500px at 60% 40%, #000 20%, transparent 80%);
}
.page-hero-inner { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .4rem; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin: 0; }
.breadcrumbs { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary-600); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumbs svg { width: 15px; height: 15px; }
.breadcrumbs .sep { opacity: .5; }

/* ---------- نماذج ---------- */
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .93rem; color: var(--ink-2); margin-bottom: .4rem; }
.form-label .req { color: var(--danger); }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.form-control, .form-select, .form-textarea {
  width: 100%; padding: .8rem 1rem; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid #d7e6ec; border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 184, 166, .15);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field-error { color: var(--danger); font-size: .82rem; margin-top: .3rem; display: none; }
.field-error.show { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.input-icon-wrap { position: relative; }
.input-icon-wrap svg { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 13px; width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; }
.input-icon-wrap .form-control { padding-inline-start: 2.5rem; }

/* ---------- معالج حجز الموعد ---------- */
.wizard-wrap { max-width: 900px; margin: 0 auto; }
.wizard-steps { display: flex; justify-content: space-between; margin-bottom: 2.4rem; position: relative; }
.wizard-steps::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 3px; background: #d7e6ec; border-radius: 3px; z-index: 0; }
.wizard-steps .prog-fill { position: absolute; top: 26px; left: 12%; height: 3px; background: var(--grad-main); border-radius: 3px; z-index: 0; transition: width .45s ease; }
.wiz-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 25%; }
.wiz-step .ws-dot {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid #d7e6ec;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  color: var(--muted-2); transition: all .4s ease;
}
.wiz-step .ws-dot svg { width: 22px; height: 22px; display: none; }
.wiz-step .ws-label { font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--muted); text-align: center; line-height: 1.3; }
.wiz-step.done .ws-dot { background: var(--grad-main); border-color: var(--primary); color: #fff; }
.wiz-step.done .ws-dot svg { display: block; }
.wiz-step.done .ws-dot span { display: none; }
.wiz-step.active .ws-dot { border-color: var(--accent); color: var(--primary-700); box-shadow: 0 0 0 7px rgba(20, 184, 166, .16); }
.wiz-step.active .ws-label { color: var(--primary-700); }

.wizard-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2.2rem; border: 1px solid rgba(8,51,68,.06); }
.wizard-panel { display: none; animation: fadeSlide .4s ease; }
.wizard-panel.active { display: block; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wizard-panel h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.wizard-panel .panel-sub { color: var(--muted); margin-bottom: 1.6rem; }

.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px dashed rgba(8,51,68,.14); }
.wizard-nav .btn svg { width: 18px; height: 18px; }

/* اختيار الخدمة */
.service-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sp-item { position: relative; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 2px solid #d7e6ec; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); background: #fff; }
.sp-item:hover { border-color: var(--accent); }
.sp-item .sp-check { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd9e0; display: grid; place-items: center; transition: all var(--transition); }
.sp-item .sp-check svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.5); transition: all var(--transition); }
.sp-item.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(20, 184, 166, .12); }
.sp-item.selected .sp-check { background: var(--accent); border-color: var(--accent); }
.sp-item.selected .sp-check svg { opacity: 1; transform: scale(1); }
.sp-item .sp-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; }
.sp-item .sp-icon svg { width: 22px; height: 22px; color: var(--primary-600); }
.sp-item strong { font-size: .97rem; color: var(--ink-2); line-height: 1.3; display: block; padding-inline-end: 1.4rem; }

/* ويلايات */
.wilaya-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.wilaya-btn {
  padding: .5rem; border: 2px solid #d7e6ec; border-radius: 9px; background: #fff;
  font-size: .88rem; font-weight: 700; color: var(--ink-2); transition: all var(--transition);
}
.wilaya-btn:hover:not(:disabled) { border-color: var(--accent); }
.wilaya-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.wilaya-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ملخص + تذكرة */
.summary-card { display: grid; gap: .7rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: var(--bg); border-radius: 10px; font-size: .98rem; }
.summary-row .k { color: var(--muted); font-weight: 700; }
.summary-row .v { font-weight: 800; color: var(--ink-2); text-align: end; }
.ticket { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 1.6rem; background: var(--accent-soft); position: relative; overflow: hidden; }
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2px dashed var(--accent);
}
.ticket::before { inset-inline-start: -13px; transform: translateY(-50%); }
.ticket::after { inset-inline-end: -13px; transform: translateY(-50%); }
.ticket .t-head { display: flex; align-items: center; gap: .7rem; border-bottom: 1px dashed rgba(13,148,136,.4); padding-bottom: 1rem; margin-bottom: 1rem; }
.ticket .t-head svg { width: 26px; height: 26px; color: var(--accent-dark); }
.ticket .t-head strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink-2); }
.ticket .t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.ticket .t-item .k { font-size: .8rem; color: var(--muted); font-weight: 700; }
.ticket .t-item .v { font-weight: 800; color: var(--ink-2); font-size: 1.02rem; }
.ticket .t-footer { margin-top: 1.2rem; text-align: center; font-size: .85rem; color: var(--accent-dark); font-weight: 700; }

/* ---------- اختيار الخدمة (حجز) ---------- */
.book-service { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.3rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); animation: fadeSlide .4s ease; }
.book-service .bs-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--grad-main); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-accent); }
.book-service .bs-icon svg { width: 30px; height: 30px; color: #fff; }
.book-service .bs-name { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--ink-2); line-height: 1.3; }
.book-service .bs-meta { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .4rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.book-service .bs-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.book-service .bs-meta svg { width: 16px; height: 16px; color: var(--primary-600); }
.book-svc-change { margin-top: 1.1rem; font-size: .95rem; }
.book-svc-change a { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary-600); font-weight: 700; }
.book-svc-change a svg { width: 16px; height: 16px; }
.bs-state { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.bs-state svg { width: 40px; height: 40px; color: #b6c6ce; margin-bottom: .8rem; }
.bs-state strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink-2); margin-bottom: .3rem; }
.bs-state p { font-size: .93rem; margin: 0 auto 1.1rem; max-width: 420px; }

/* ---------- شبكة التواريخ (حجز) ---------- */
.week-block { margin-bottom: 1.7rem; }
.week-block:last-child { margin-bottom: 0; }
.week-title { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--ink-2); margin-bottom: .95rem; }
.week-title svg { width: 18px; height: 18px; color: var(--primary-600); }
.date-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7rem; }
.date-chip { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .8rem .5rem; border: 2px solid #d7e6ec; border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: all var(--transition); font-family: var(--font-head); }
.date-chip:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.date-chip .dc-wd { font-size: .82rem; font-weight: 700; color: var(--muted); }
.date-chip .dc-day { font-size: 1.28rem; font-weight: 800; color: var(--ink-2); line-height: 1.1; }
.date-chip .dc-mon { font-size: .78rem; font-weight: 600; color: var(--muted); }
.date-chip.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(20, 184, 166, .12); }
.date-chip.selected .dc-day { color: var(--accent-dark); }
.week-empty { padding: 1.1rem; border: 1px dashed #d7e6ec; border-radius: var(--radius-sm); text-align: center; color: var(--muted); font-weight: 600; font-size: .92rem; }
.week-blocks.is-invalid { box-shadow: 0 0 0 3px rgba(220, 38, 38, .14); border-radius: var(--radius); }

/* ---------- صفحة مقال ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 2rem; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta svg { width: 16px; height: 16px; color: var(--accent-dark); }
.article-body { color: var(--ink); font-size: 1.06rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.article-body ul { margin-bottom: 1em; }
.article-body li { margin-bottom: .35em; }
.article-body blockquote { border-inline-start: 4px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; }
.article-body blockquote p { margin: 0; font-weight: 700; color: var(--ink-2); }
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.toc { background: var(--surface-2); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2rem; }
.toc strong { display: block; margin-bottom: .6rem; color: var(--ink-2); }
.toc ol { margin: 0; padding-inline-start: 1.2em; }
.toc li { margin-bottom: .25rem; }
.toc a { color: var(--primary-600); font-weight: 700; font-size: .97rem; }

/* ---------- CTA أسفل الصفحات ---------- */
.cta-band { background: var(--grad-main); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px);
  background-size: 24px 24px; opacity: .5;
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; text-align: start; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.cta-inner p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.05rem; }

/* ---------- حقل التاريخ ---------- */
input[type="date"] { min-height: 52px; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }

/* ---------- طباعة ---------- */
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0 auto auto 0; width: 100%; margin: 0; }
  .print-area .ticket { border: 2px solid #000; box-shadow: none; }
  .no-print { display: none !important; }
}

/* ---------- استجابة ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem; }
  .hero-copy { max-width: none; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .fc-1 { inset-inline-start: -2%; }
  .fc-2 { inset-inline-end: -2%; }
  .fc-3 { inset-inline-start: -4%; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .wilaya-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset-inline-start: 0; top: var(--nav-h); bottom: 0;
    width: min(320px, 82vw); background: #fff; flex-direction: column; align-items: stretch;
    padding: 1.5rem 1.2rem; gap: .3rem; box-shadow: var(--shadow-lg);
    transform: translateX(110%); transition: transform .35s cubic-bezier(.4,0,.2,1); z-index: 70;
    border-top: 1px solid rgba(8,51,68,.08);
  }
  html[dir="ltr"] .nav { transform: translateX(-110%); }
  .nav.open { transform: translateX(0); }
  .nav a.nav-link { padding: .85rem 1rem; border-radius: 12px; font-size: 1.02rem; }
  .nav .nav-cta { margin-top: .8rem; }
  .nav-overlay {
    position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(8,51,68,.4);
    backdrop-filter: blur(2px); z-index: 65; opacity: 0; pointer-events: none; transition: opacity var(--transition);
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: min(100% - 1.6rem, var(--container)); }
  section { padding-block: 3.5rem; }
  .topbar { display: none; }
  .topbar .tb-group:last-child { display: none; }
  .header-actions .btn { display: none; }
  .brand small { display: none; }
  .steps-grid, .grid-2, .grid-3, .grid-4, .why-grid, .testi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .service-pick, .form-grid { grid-template-columns: 1fr; }
  .wizard-card { padding: 1.4rem; }
  .wilaya-grid { grid-template-columns: repeat(2, 1fr); }
  .wiz-step .ws-label { font-size: .76rem; }
  .wiz-step .ws-dot { width: 44px; height: 44px; }
  .wizard-steps::before, .wizard-steps .prog-fill { top: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-feats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .float-card { display: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { width: 100%; }
  .stats-band { margin-top: -20px; }
}
