/* =========================================================
   سكينة كير – style.css
   لتغيير الألوان عدّل المتغيرات في :root فقط
   ========================================================= */
:root {
  --ink: #1d2b2a;
  --ink-soft: #566664;
  --teal: #1f5c57;
  --teal-dark: #164541;
  --sage: #3e8a82;
  --mint: #eaf4f1;
  --mint-2: #f4faf8;
  --gold: #b8935a;
  --bg: #fbfdfc;
  --line: #d9e6e2;
  --white: #ffffff;

  --font-head: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--teal); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }

.ico { width: 20px; height: 20px; flex: none; }
.ico-lg { width: 34px; height: 34px; color: var(--teal); }

h1, h2, h3 { font-family: var(--font-head); color: var(--teal-dark); line-height: 1.5; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

.section { padding: clamp(64px, 9vw, 112px) 0; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.4;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn:active { transform: translateY(1px); }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(251, 253, 252, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--teal-dark); }
.brand-text small { font-size: .75rem; color: var(--gold); letter-spacing: .12em; }

.nav { display: flex; gap: 26px; }
.nav a { font-weight: 500; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--teal); border-color: var(--gold); }
.header-cta { padding: 10px 22px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: var(--teal); place-items: center; }
.menu-btn svg { width: 24px; height: 24px; }

/* ---------- الواجهة الرئيسية ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--mint-2), var(--bg));
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/pattern.svg") repeat; background-size: 120px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-kicker { color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 700; line-height: 1.55; margin-bottom: 20px; text-wrap: balance; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 26px; color: var(--teal); font-weight: 500; font-size: .98rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(31, 92, 87, .16)); }

/* حركة واحدة عند تحميل الصفحة فقط */
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ---------- نبذة ---------- */
.about-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-art img { width: 100%; height: auto; border-radius: 200px 200px 24px 24px; }
.about-text h2 { margin-bottom: 20px; }
.about-text > p { color: var(--ink-soft); margin-bottom: 14px; max-width: 38em; }
.vmv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.vmv > div { padding: 22px 0 0; padding-inline-end: 22px; }
.vmv > div + div { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.vmv h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: 6px; }
.vmv p { font-size: .95rem; color: var(--ink-soft); line-height: 1.8; }

/* ---------- الخدمات ---------- */
.services { background: var(--mint-2); }
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: 40px; }
.services-head p { color: var(--ink-soft); }

.svc-list { border-top: 1.5px solid var(--teal); }
.svc-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 12px 36px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.svc-row h3 { padding-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 7px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: .97rem; color: var(--ink);
}
.svc-note { grid-column: 2; font-size: .9rem; color: var(--ink-soft); }
.svc-note::before { content: "* "; color: var(--gold); }

.companion {
  margin-top: 48px; background: var(--teal); color: #fff; border-radius: 22px;
  padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px 40px; align-items: center;
  position: relative; overflow: hidden;
}
.companion::after { content: ""; position: absolute; inset: 0; background: url("images/pattern.svg") repeat; background-size: 120px; filter: invert(1); opacity: .5; pointer-events: none; }
.companion > * { position: relative; z-index: 1; }
.companion h3 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.companion p { color: #d6ebe7; }
.companion-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.companion-list li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.companion-list .ico { color: #e8cf9f; }

/* ---------- لماذا سكينة كير ---------- */
.why h2 { margin-bottom: 44px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.why-grid li { padding: 30px 28px 34px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.why-grid .ico-lg { margin-bottom: 14px; }
.why-grid h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why-grid p { color: var(--ink-soft); font-size: .97rem; line-height: 1.8; }

/* ---------- الترخيص ---------- */
.license { background: var(--mint); }
.license-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: center; }
.license-text h2 { margin-bottom: 14px; }
.license-text p { color: var(--ink-soft); }
.license-cards { display: grid; gap: 16px; }
.license-cards > div { background: #fff; border-radius: 16px; padding: 22px 28px; border-inline-start: 4px solid var(--gold); }
.license-cards dt { color: var(--ink-soft); font-size: .95rem; margin-bottom: 2px; }
.license-cards dd { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--teal-dark); letter-spacing: .06em; text-align: right; }

/* ---------- المدير ---------- */
.manager { padding: clamp(48px, 7vw, 80px) 0; }
.manager-in { display: flex; align-items: center; gap: 28px; justify-content: center; }
.manager-mark { width: 92px; height: 92px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; font-family: var(--font-head); font-size: 2.6rem; color: var(--teal); background: #fff; flex: none; }
.manager-label { color: var(--gold); font-weight: 600; }
.manager-name { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.manager-loc { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); margin-top: 6px; font-size: .97rem; }

/* ---------- التواصل ---------- */
.contact { background: linear-gradient(180deg, var(--bg), var(--mint-2)); }
.contact-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.contact-head h2 { margin-bottom: 12px; }
.contact-head p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.c-item:hover { border-color: var(--teal); box-shadow: 0 10px 28px rgba(31, 92, 87, .1); }
.c-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal); flex: none; transition: background .2s, color .2s; }
.c-ico svg { width: 26px; height: 26px; }
.c-txt { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.c-txt strong { font-weight: 600; }
.c-txt span { color: var(--ink-soft); font-size: .95rem; text-align: right; overflow-wrap: anywhere; }
.c-wa:hover .c-ico { background: #25d366; color: #fff; }
.c-call:hover .c-ico { background: var(--teal); color: #fff; }
.c-snap:hover .c-ico { background: #fffc00; color: #111; }
.c-tt:hover .c-ico { background: #111; color: #fff; }
.c-mail:hover .c-ico { background: var(--gold); color: #fff; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--teal-dark); color: #d6ebe7; padding-top: 56px; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.f-brand strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #fff; }
.f-brand span { color: #e8cf9f; }
.f-brand p { margin-top: 10px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.f-official p { font-size: .97rem; }
.f-official bdi { color: #fff; font-weight: 600; letter-spacing: .04em; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.s-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; color: #fff; transition: background .2s, color .2s, border-color .2s; }
.s-btn svg { width: 22px; height: 22px; }
.s-btn:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .9rem; }
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: #d6ebe7; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: #fff; }

/* ---------- زر التواصل العائم ---------- */
.fab { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fab-main { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.fab-main svg { width: 30px; height: 30px; grid-area: 1/1; }
.fab-main .f-close { display: none; }
.fab-main[aria-expanded="true"] { background: var(--teal-dark); }
.fab-main[aria-expanded="true"] .f-open { display: none; }
.fab-main[aria-expanded="true"] .f-close { display: block; }
.fab-menu { display: flex; flex-direction: column; gap: 10px; }
.fab-menu[hidden] { display: none; }
.fab-opt { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0,0,0,.14); font-weight: 600; font-size: .95rem; }
.fab-opt svg { width: 22px; height: 22px; }
.fab-wa svg { color: #1aa84f; }
.fab-call svg { color: var(--teal); }
.fab-snap svg { color: #d9b600; }

/* ---------- نوافذ السياسات ---------- */
.legal { border: 0; padding: 0; border-radius: 20px; width: min(720px, 100% - 28px); max-height: 86vh; background: #fff; color: var(--ink); }
.legal::backdrop { background: rgba(15, 40, 38, .55); }
.legal-box { position: relative; padding: 36px clamp(22px, 5vw, 44px) 40px; }
.legal-box h2 { font-size: 1.8rem; margin-bottom: 4px; padding-inline-end: 44px; }
.legal-box h3 { font-size: 1.1rem; margin: 22px 0 4px; color: var(--teal); }
.legal-box p { color: var(--ink-soft); font-size: .98rem; }
.legal-box .upd { font-size: .85rem; color: var(--gold); }
.legal-close { position: sticky; top: 0; float: inline-end; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal); display: grid; place-items: center; margin-top: -14px; margin-inline-end: -10px; }
.legal-close svg { width: 20px; height: 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav { gap: 18px; font-size: .95rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 200px 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-btn { display: grid; }
  .header-cta { display: none; }
  .brand { margin-inline-end: 0; }
  .header-in { justify-content: space-between; }

  .nav {
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: 0 20px 30px rgba(0,0,0,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }

  .hero-in, .about-in, .license-in, .services-head, .companion { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; }
  .hero { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .about-art { max-width: 420px; margin-inline: auto; }
  .vmv { grid-template-columns: 1fr; }
  .vmv > div, .vmv > div + div { padding: 18px 0; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .svc-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .svc-note { grid-column: 1; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero-actions .btn { width: 100%; }
  .why-grid, .contact-grid, .companion-list { grid-template-columns: 1fr; }
  .why-grid li { padding: 24px 20px; }
  .manager-in { flex-direction: column; text-align: center; }
  .manager-loc { justify-content: center; }
  .footer-bottom { flex-direction: column; }
  .fab { inset-inline-start: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
