/* Shared styles for the service pages. Tokens match index.html. */
:root {
  --paper: #F4F5F1; --sheet: #FFFFFF; --ink: #121A17; --muted: #5B6662; --rule: #D9DDD6;
  --accent: #2343D6; --accent-soft: #E3E8FC; --ok: #157A4B;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1513; --sheet: #182220; --ink: #E7ECE9; --muted: #9AA6A1; --rule: #2A3633;
    --accent: #8EA2FF; --accent-soft: #1E2648; --ok: #4FCB8E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1513; --sheet: #182220; --ink: #E7ECE9; --muted: #9AA6A1; --rule: #2A3633;
  --accent: #8EA2FF; --accent-soft: #1E2648; --ok: #4FCB8E; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65;
  padding-inline: clamp(16px, 4vw, 48px);
}
.wrap { max-width: 1000px; margin-inline: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.mark { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.mark-badge { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover, .links a[aria-current] { color: var(--ink); }

.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }

.hero { display: grid; gap: 20px; padding-block: clamp(36px, 7vw, 80px); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--body); padding: 13px 20px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.status { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }

section { padding-block: clamp(44px, 7vw, 80px); border-top: 1px solid var(--rule); }
section > h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 14px; }
section > p { color: var(--muted); max-width: 66ch; }
section > p + p { margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 16px; }
.card .ico { font-size: 26px; }
.card .work-shot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 24px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-weight: 600; color: var(--accent); padding-top: 2px; }
.steps b { display: block; font-family: var(--display); font-size: 19px; }
.steps span { color: var(--muted); }

.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--muted); }

.note { border-inline-start: 3px solid var(--rule); padding-inline-start: 14px; color: var(--muted); font-size: 15px; margin-top: 20px; max-width: 66ch; }

.contact { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(28px, 5vw, 52px); display: grid; gap: 18px; }
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); }
.contact p { color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 60ch; }
.contact .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 50%, transparent); }
.contact-sec { border-top: 0; }

footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
footer .more { display: flex; flex-wrap: wrap; gap: 16px; }

.wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); z-index: 10; }
.wa svg { width: 28px; height: 28px; }

@media (max-width: 640px) { .links { gap: 14px; font-size: 14px; } }

/* Arabic pages: Arabic font, no letter-spacing (it breaks letter joining), mirrored step numbers */
html[lang="ar"] { --display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; letter-spacing: 0 !important; }
html[lang="ar"] .eyebrow, html[lang="ar"] .status, html[lang="ar"] .crumbs { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: 14px; }
html[lang="ar"] .wa { right: auto; left: 18px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.lang-switch { font-weight: 600; }

.mark-logo { display: block; height: 44px; width: auto; border-radius: 10px; }
.brand-banner { display: block; width: 100%; height: auto; border-radius: 18px; margin-top: 28px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }

/* ---- AEL logo glow v3: transparent logo, glow follows the letters ---- */
.logo-glow { position: relative; display: inline-block; line-height: 0; }
.logo-glow .mark-logo {
  display: block; height: 48px; width: auto; border-radius: 0;
  animation: logo-glow 2.6s ease-in-out infinite alternate; transition: transform .35s;
}
.logo-glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.95) 47%, rgba(255,226,140,.8) 53%, transparent 70%) no-repeat;
  background-size: 250% 100%; background-position: 170% 0;
  -webkit-mask: url(/assets/logo-mark-glow.png) center / contain no-repeat;
          mask: url(/assets/logo-mark-glow.png) center / contain no-repeat;
  animation: logo-shine 3.4s ease-in-out infinite;
}
.mark:hover .logo-glow .mark-logo, .mark:focus-visible .logo-glow .mark-logo { transform: scale(1.07); animation-duration: 1.2s; }
@keyframes logo-glow {
  from { filter: drop-shadow(0 0 1px rgba(0,0,0,.35)) drop-shadow(0 0 3px rgba(79,179,255,.95)) drop-shadow(0 0 10px rgba(28,140,240,.85)) drop-shadow(0 0 22px rgba(28,140,240,.55)); }
  to   { filter: drop-shadow(0 0 1px rgba(0,0,0,.35)) drop-shadow(0 0 3px rgba(255,212,92,.95)) drop-shadow(0 0 12px rgba(232,168,4,.9)) drop-shadow(0 0 26px rgba(232,168,4,.6)) brightness(1.1); }
}
@keyframes logo-shine { 0%, 45% { background-position: 170% 0; } 80%, 100% { background-position: -70% 0; } }
.brand-banner { animation: banner-glow 4s ease-in-out infinite alternate; }
@keyframes banner-glow {
  from { box-shadow: 0 18px 40px -22px rgba(0,0,0,.45), 0 0 0 1px rgba(28,140,240,.45), 0 0 36px -2px rgba(28,140,240,.55); }
  to   { box-shadow: 0 18px 40px -22px rgba(0,0,0,.45), 0 0 0 1px rgba(232,168,4,.5), 0 0 44px -2px rgba(232,168,4,.6); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-glow .mark-logo, .logo-glow::after, .brand-banner { animation: none !important; }
  .logo-glow .mark-logo { filter: drop-shadow(0 0 1px rgba(0,0,0,.35)) drop-shadow(0 0 8px rgba(28,140,240,.7)); }
  .logo-glow::after { display: none; }
}
.card .price { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 26px; color: var(--accent); line-height: 1.1; }
.card .meta { color: var(--muted); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px 24px; }
.checks li { position: relative; padding-inline-start: 28px; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--ok); font-weight: 700; }
