/* Shared styles for the Zakham service pages: stores/, automation/, clinic-system/, content-studio/
   Same tokens and glass treatment as home.html. Page-specific mock-ups live at the bottom. */
:root {
  --gold: #C9A055;
  --gold-light: #E8C07A;
  --blue: #2D5CAE;
  --bg: #05060A;
  --ink: #F4F1EA;
  --line: rgba(244,241,234,.12);
  --muted: rgba(244,241,234,.66);
  --glass: rgba(244,241,234,.05);
  --ok: #7FB08A;
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-ar-display: 'Reem Kufi', sans-serif;
  --font-en: 'Space Grotesk', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ar); overflow-x: hidden; }
html[lang="en"] body { font-family: var(--font-en); }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--font-ar-display); font-weight: 500; margin: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--font-en); letter-spacing: -.03em; }
.eyebrow { font-family: var(--font-en); font-size: 12px; letter-spacing: .26em; color: var(--gold); }
.wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.mono { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; }

/* ambient layers */
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; }
.orb-1 { top: -18%; inset-inline-end: -10%; width: 60vw; height: 60vw; min-width: 420px; min-height: 420px; filter: blur(90px); background: radial-gradient(circle, rgba(201,160,85,.42), rgba(201,160,85,0) 65%); animation: aurora 26s ease-in-out infinite; }
.orb-2 { top: 12%; inset-inline-start: -14%; width: 54vw; height: 54vw; min-width: 380px; min-height: 380px; filter: blur(100px); background: radial-gradient(circle, rgba(45,92,174,.44), rgba(45,92,174,0) 65%); animation: aurora 32s ease-in-out infinite reverse; }
.orb-3 { top: 56%; inset-inline-start: 26%; width: 48vw; height: 48vw; min-width: 340px; min-height: 340px; filter: blur(110px); background: radial-gradient(circle, rgba(120,80,200,.26), rgba(120,80,200,0) 65%); animation: aurora 38s ease-in-out infinite; }
.grain {
  position: fixed; inset: -40px; pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNDAnIGhlaWdodD0nMTQwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxNDAnIGhlaWdodD0nMTQwJyBmaWx0ZXI9J3VybCgjbiknIG9wYWNpdHk9JzAuNCcvPjwvc3ZnPg==");
  animation: grain 1.2s steps(2) infinite;
}
.spotlight { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(232,192,122,.10), transparent 62%); }
main, header { position: relative; z-index: 2; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 22px; padding: 14px clamp(14px, 2vw, 22px); border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.5);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 34px; width: auto; object-fit: contain; }
.nav-links { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 30px); font-size: 15px; color: var(--muted); }
.nav-links a { color: inherit; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(244,241,234,.2);
  background: transparent; color: rgba(244,241,234,.8); font-family: var(--font-en);
  font-size: 13px; letter-spacing: .1em; cursor: pointer;
}
.lang-btn:hover { border-color: var(--gold-light); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; font-size: 16px; transition: transform .18s ease; }
.btn-gold { padding: 18px 32px; background: linear-gradient(140deg, var(--gold-light), var(--gold)); color: #0B0A07; font-weight: 600; box-shadow: 0 20px 50px rgba(201,160,85,.35); }
.btn-gold:hover { color: #0B0A07; }
.btn-ghost { padding: 18px 32px; border: 1px solid rgba(244,241,234,.2); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* hero */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 84px); animation: rise 1s ease both; }
.hero-halo { position: absolute; top: -4%; inset-inline-start: 50%; width: min(920px, 116%); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; border-radius: 50%; opacity: .4; filter: blur(70px); background: conic-gradient(from 0deg, rgba(232,192,122,0), rgba(232,192,122,.4), rgba(45,92,174,.28), rgba(232,192,122,0)); animation: sweep 30s linear infinite; }
html[dir="rtl"] .hero-halo { transform: translateX(50%); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(90deg, rgba(244,241,234,.06) 0 1px, transparent 1px 110px); -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 26%, transparent 70%); mask-image: radial-gradient(circle at 50% 42%, #000 26%, transparent 70%); }
.tag { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(232,192,122,.32); background: rgba(232,192,122,.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; color: var(--gold-light); }
.hero h1 { font-size: clamp(40px, 7vw, 92px); line-height: 1.08; letter-spacing: -.02em; max-width: 900px; text-shadow: 0 0 46px rgba(244,241,234,.22); }
.hero h1 .shine { background: linear-gradient(90deg, var(--gold), #F3DCA8, var(--gold)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
.hero-bar { width: min(440px, 62%); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(232,192,122,.95), transparent); animation: bar 5s ease-in-out infinite; }
.hero p { margin: 0; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.85; color: rgba(244,241,234,.7); max-width: 660px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: clamp(14px, 3vw, 38px); margin-top: 14px; padding: 18px clamp(20px, 3vw, 34px); border-radius: 20px; border: 1px solid var(--line); background: rgba(244,241,234,.045); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 60px rgba(0,0,0,.4); }
.proof div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proof strong { font-size: 20px; font-weight: 600; }
.proof span { font-size: 13px; letter-spacing: .04em; color: rgba(244,241,234,.55); }
.proof i { width: 1px; align-self: stretch; background: linear-gradient(180deg, transparent, rgba(244,241,234,.22), transparent); }

/* marquee */
.marquee { display: flex; overflow: hidden; padding: 0 0 clamp(50px, 7vw, 70px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee div { display: flex; gap: 18px; flex: none; animation: marquee 28s linear infinite; }
.marquee p { margin: 0; font-family: var(--font-en); font-size: 14px; letter-spacing: .28em; color: rgba(244,241,234,.34); white-space: nowrap; direction: ltr; }

/* sections */
.section { padding-bottom: clamp(70px, 9vw, 110px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 30px; }
.sec-head > div { display: flex; flex-direction: column; gap: 12px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
.sec-head p { margin: 0; font-size: 16px; line-height: 1.8; color: rgba(244,241,234,.6); max-width: 340px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card {
  min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 30px);
  border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(244,241,234,.08), rgba(244,241,234,.025));
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(232,192,122,.45); }
.card h3 { font-size: 22px; line-height: 1.3; }
.card p { margin: 0; font-size: 15px; line-height: 1.8; color: rgba(244,241,234,.66); }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; color: var(--gold-light); background: rgba(232,192,122,.1); border: 1px solid rgba(232,192,122,.28); }
.card-link { margin-top: auto; font-size: 15px; }

/* split block: copy beside a mock-up */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.split-copy h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.22; }
.split-copy p { margin: 0; font-size: 17px; line-height: 1.9; color: rgba(244,241,234,.68); text-wrap: pretty; }
.ticks { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; line-height: 1.7; color: rgba(244,241,234,.82); }
.ticks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--gold-light); padding-top: 5px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 16px; border-radius: 999px; background: rgba(232,192,122,.12); border: 1px solid rgba(232,192,122,.28); font-size: 13px; color: var(--gold-light); }

/* process */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 4vw, 40px); align-items: start; }
.process-head { display: flex; flex-direction: column; gap: 12px; }
.process-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.22; }
.steps { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(244,241,234,.14); }
.step:last-child { border-bottom: 1px solid rgba(244,241,234,.14); }
.step em { font-family: var(--font-en); font-style: normal; font-size: 32px; color: rgba(232,192,122,.55); }
.step div { display: flex; flex-direction: column; gap: 8px; }
.step strong { font-size: 20px; font-weight: 600; }
.step span { font-size: 16px; line-height: 1.8; color: rgba(244,241,234,.62); }

/* faq */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid rgba(244,241,234,.14); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(244,241,234,.14); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-en); font-size: 22px; line-height: 1; color: var(--gold-light); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 14px 0 0; font-size: 16px; line-height: 1.9; color: rgba(244,241,234,.64); }

/* cta + footer */
.cta { position: relative; overflow: hidden; margin-bottom: 64px; padding: clamp(44px, 6vw, 76px) clamp(22px, 4vw, 48px); border-radius: 32px; border: 1px solid rgba(232,192,122,.28); background: linear-gradient(150deg, rgba(232,192,122,.16), rgba(45,92,174,.14)); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 40px 90px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.2; max-width: 660px; }
.cta p { margin: 0; font-size: 18px; line-height: 1.8; color: rgba(244,241,234,.72); max-width: 540px; }
.cta small { font-family: var(--font-en); font-size: 14px; color: rgba(244,241,234,.5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #0B0A07; animation: blink 1.6s ease-in-out infinite; }
footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 26px 0 40px; border-top: 1px solid rgba(244,241,234,.1); font-size: 14px; color: rgba(244,241,234,.45); }
.footer-mark img { height: 32px; width: auto; display: block; }
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 20; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: linear-gradient(140deg, var(--gold-light), var(--gold)); color: #0B0A07; font-size: 15px; font-weight: 600; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.wa-float:hover { color: #0B0A07; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mock-ups (illustrative UI, built in CSS) ---------- */
.mock { border-radius: 26px; border: 1px solid var(--line); background: rgba(10,11,18,.72); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.5); overflow: hidden; min-width: 0; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(244,241,234,.18); }
.mock-bar span { margin-inline-start: 10px; font-family: var(--font-en); font-size: 12px; letter-spacing: .08em; color: rgba(244,241,234,.45); direction: ltr; }
.mock-body { padding: clamp(16px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.mock-note { font-size: 12px; color: rgba(244,241,234,.4); text-align: center; margin: 12px 0 0; }

/* chat (WhatsApp review message) */
.bubble { max-width: 88%; padding: 13px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.8; }
.bubble.out { align-self: flex-start; background: rgba(127,176,138,.14); border: 1px solid rgba(127,176,138,.3); }
.bubble.sys { align-self: center; max-width: 100%; padding: 6px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.bubble .stars { color: var(--gold-light); letter-spacing: .12em; }
.bubble .fake-btn { display: block; margin-top: 10px; padding: 9px 14px; border-radius: 12px; text-align: center; background: rgba(244,241,234,.08); border: 1px solid var(--line); font-size: 13.5px; color: var(--gold-light); }

/* table rows (appointments, orders) */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.row:first-child { border-top: 0; }
.row .t { font-family: var(--font-en); font-size: 13px; color: rgba(244,241,234,.5); direction: ltr; }
.row small { display: block; font-size: 12.5px; color: rgba(244,241,234,.5); margin-top: 2px; }
.badge { padding: 5px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid var(--line); background: var(--glass); }
.badge.ok { color: var(--ok); border-color: rgba(127,176,138,.4); background: rgba(127,176,138,.1); }
.badge.gold { color: var(--gold-light); border-color: rgba(232,192,122,.4); background: rgba(232,192,122,.1); }

/* odontogram */
.teeth { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; direction: ltr; }
.tooth { aspect-ratio: 1 / 1.15; border-radius: 12px 12px 16px 16px; border: 1px solid var(--line); background: rgba(244,241,234,.06); display: grid; place-items: end center; padding-bottom: 5px; font-family: var(--font-en); font-size: 10px; color: rgba(244,241,234,.4); }
.tooth.done { background: rgba(127,176,138,.3); border-color: rgba(127,176,138,.5); color: rgba(244,241,234,.8); }
.tooth.plan { background: rgba(232,192,122,.28); border-color: rgba(232,192,122,.55); color: rgba(244,241,234,.8); }
.tooth.alert { background: rgba(207,115,99,.28); border-color: rgba(207,115,99,.55); color: rgba(244,241,234,.8); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: rgba(244,241,234,.6); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* store product grid */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prod { border-radius: 18px; border: 1px solid var(--line); background: rgba(244,241,234,.04); padding: 10px; display: flex; flex-direction: column; gap: 9px; }
.prod .img { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(150deg, rgba(232,192,122,.3), rgba(45,92,174,.28)); }
.prod:nth-child(2) .img { background: linear-gradient(150deg, rgba(45,92,174,.34), rgba(120,80,200,.26)); }
.prod:nth-child(3) .img { background: linear-gradient(150deg, rgba(120,80,200,.26), rgba(232,192,122,.3)); }
.prod b { font-weight: 500; font-size: 13.5px; }
.prod .price { font-family: var(--font-en); font-size: 13px; color: var(--gold-light); direction: ltr; text-align: start; }
.order-toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(127,176,138,.35); background: rgba(127,176,138,.1); font-size: 14px; line-height: 1.6; }
.order-toast i { color: var(--ok); font-size: 18px; }

/* script + carousel */
.script { display: flex; flex-direction: column; gap: 12px; }
.script .line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.8; }
.script .line b { font-family: var(--font-en); font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--gold); padding-top: 3px; direction: ltr; }
.script .line span { color: rgba(244,241,234,.82); }
.slides { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.slide { flex: 0 0 min(190px, 58%); aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(232,192,122,.28); background: linear-gradient(160deg, rgba(232,192,122,.2), rgba(45,92,174,.16)); }
.slide small { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; color: var(--gold-light); direction: ltr; }
.slide strong { font-family: var(--font-ar-display); font-weight: 500; font-size: 19px; line-height: 1.35; }
html[lang="en"] .slide strong { font-family: var(--font-en); letter-spacing: -.02em; }
.slide span { font-family: var(--font-en); font-size: 11px; color: rgba(244,241,234,.5); direction: ltr; }
.slide.cover { background: linear-gradient(160deg, var(--gold-light), var(--gold)); border-color: transparent; color: #0B0A07; }
.slide.cover small, .slide.cover span { color: rgba(11,10,7,.62); }

@keyframes aurora { 0%,100% { transform: translate(0,0) scale(1) } 33% { transform: translate(7%,-5%) scale(1.18) } 66% { transform: translate(-6%,4%) scale(.92) } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) } to { opacity: 1; transform: none } }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
@keyframes bar { 0%,100% { opacity: .3; transform: scaleX(.55) } 50% { opacity: 1; transform: scaleX(1) } }
@keyframes sweep { to { transform: translateX(-50%) rotate(360deg) } }
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-2%) } 80% { transform: translate(3%,1%) } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .15 } }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .steps { grid-column: auto; }
  .split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
