/* =========================================================
   SHARED STYLES — Header, Footer, Buttons, Icons
   ========================================================= */

/* TOKENS */
:root {
  --ink: #0F1B2D;
  --ink-2: #19283f;
  --ink-3: #243756;
  --paper: #F3F5F8;
  --white: #ffffff;
  --orange: #FF5B1F;
  --orange-d: #E24A10;
  --kraft: #EAD7B3;
  --kraft-d: #D9BE8E;
  --muted: #5A6779;
  --line: #D8DEE7;
  --radius: 20px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --display: 'Lalezar', 'IBM Plex Sans Arabic', sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }
main { overflow-x: clip; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 1.05rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ICONS */
.ic {
  width: 1em; height: 1em; flex-shrink: 0; display: inline-block;
  vertical-align: -.14em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* PROGRESS BAR */
.progress {
  position: fixed; top: 0; right: 0; height: 4px; width: 100%;
  background: var(--orange); transform-origin: right; transform: scaleX(0);
  z-index: 2000;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1.05rem; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s, background .3s, border-color .3s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 14px 28px -12px rgba(255, 91, 31, .7); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: translateX(101%); transition: transform .45s var(--ease);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--orange); transform: translateY(-3px); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 14px 28px -12px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: #1eb558; transform: translateY(-3px); }

/* TOP BAR */
.topbar { background: var(--ink); color: #cdd6e3; font-size: .92rem; padding: 9px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; transition: color .25s; }
.topbar a:hover { color: var(--orange); }
.topbar .sep { opacity: .35; margin-inline: 12px; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #2ee66b;
  display: inline-block; margin-inline-end: 8px; position: relative;
}
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2ee66b;
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

/* HEADER */
header.nav {
  position: sticky; top: 0; z-index: 1500;
  background: rgba(243, 245, 248, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
header.nav.scrolled { box-shadow: 0 10px 30px -18px rgba(15, 27, 45, .5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.45rem; line-height: 1.1; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--orange);
  display: grid; place-items: center; font-size: 1.25rem; transform: rotate(-6deg);
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.08); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .98rem; transition: background .25s, color .25s; }
.nav-links a:hover, .nav-links a.active { background: var(--ink); color: #fff; }
.nav-cta { padding: 10px 22px; font-size: .98rem; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  border: 0; background: var(--ink); color: #fff; font-size: 1.15rem; cursor: pointer;
}

/* FOOTER */
footer { background: var(--ink); color: #aebbd0; padding: 70px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-grid h3, .foot-grid h4 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: #fff; margin-bottom: 16px; }
.foot-grid p, .foot-grid li { margin-bottom: 9px; font-size: .96rem; }
.foot-grid a {
  transition: color .25s, padding .3s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.foot-grid a:hover { color: var(--orange); padding-inline-start: 6px; }
.foot-grid .ic { color: var(--orange); flex-shrink: 0; }
.copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; text-align: center; font-size: .94rem; }
.copy a { color: var(--orange); font-weight: 600; }

/* FLOATING WHATSAPP */
.float-wa {
  position: fixed; bottom: 26px; left: 26px; z-index: 1600;
  width: 64px; height: 64px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; font-size: 2rem;
  box-shadow: 0 14px 28px -8px rgba(37, 211, 102, .6); transition: transform .35s var(--ease);
}
.float-wa::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #25D366; animation: ping 2.2s var(--ease) infinite;
}
.float-wa:hover { transform: scale(1.12) rotate(-8deg); }

/* REVEAL ANIMATIONS (shared) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; }
.js .split .wi { transform: translateY(115%) rotate(4deg); transition: transform .9s var(--ease); transition-delay: calc(var(--d) * 70ms); }
.js .split.in .wi { transform: none; }
.js .rise { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
.js .slide-r { opacity: 0; transform: translateX(60px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0ms); }
.js .slide-r.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 72px; right: 0; left: 0; flex-direction: column;
    background: var(--paper); padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
    gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .35s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .burger { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .topbar .container { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .split .wi, .js .rise, .js .slide-r { transform: none !important; opacity: 1 !important; }
}