/* ============================================================
   SCALIX STUDIO — Design System
   Arabic-first (RTL) · Premium white · Royal blue
   ============================================================ */

:root {
  /* Brand */
  --brand:      #245CA4;
  --brand-700:  #143a6b;
  --brand-600:  #1c4a85;
  --brand-400:  #5286cc;
  --brand-200:  #b7cde9;
  --brand-100:  #dbe6f5;
  --brand-50:   #eff4fb;
  --brand-glow: rgba(36, 92, 164, .14);

  --gold:       #b98f3d;
  --gold-soft:  #f6efdf;

  /* Ink */
  --ink:        #0d1526;
  --ink-2:      #4a5a72;
  --ink-3:      #8b9bb3;

  /* Surfaces */
  --bg:         #ffffff;
  --bg-soft:    #f7f9fd;
  --bg-section: #eef2f9;
  --surface:    #ffffff;

  --border:     #e4eaf3;
  --border-2:   #d3dded;

  --ok:         #16a34a;
  --warn:       #d97706;
  --err:        #dc2626;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(13, 21, 38, .04);
  --sh-sm: 0 2px 8px rgba(13, 21, 38, .05);
  --sh-md: 0 8px 28px rgba(13, 21, 38, .07);
  --sh-lg: 0 18px 54px rgba(13, 21, 38, .10);
  --sh-xl: 0 30px 80px rgba(13, 21, 38, .13);
  --sh-brand: 0 14px 34px rgba(36, 92, 164, .24);

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  /* Layout */
  --container: 1240px;
  --pad-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;

  --font: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  --font-num: 'Inter', 'Cairo', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--brand); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 2000;
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { inset-inline-start: 16px; }

/* Numerals stay Latin & tabular in price contexts */
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: padding .35s var(--ease), border-color .35s, box-shadow .35s, background .35s;
  padding-block: 14px;
}
.header.is-scrolled {
  padding-block: 8px;
  border-bottom-color: var(--border);
  box-shadow: var(--sh-xs);
  background: rgba(255, 255, 255, .92);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img, .brand svg { height: 42px; width: auto; flex-shrink: 0; object-fit: contain; transition: transform .35s var(--ease); }
.brand:hover img, .brand:hover svg { transform: scale(1.05); }
.brand-text { line-height: 1.15; display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-num); font-weight: 800; font-size: 17px;
  letter-spacing: .16em; color: var(--brand-700);
}
.brand-sub { font-size: 9.5px; letter-spacing: .32em; color: var(--ink-3); font-family: var(--font-num); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 8px 14px; border-radius: var(--r-pill); transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--brand); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand); }
.nav-link.is-active::after {
  content: ''; position: absolute; bottom: 2px; inset-inline: 14px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--border); align-items: center; justify-content: center;
  color: var(--ink); background: #fff;
}
.burger span {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; inset-inline-start: 0; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 890;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 24px) 22px 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-14px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  font-size: 20px; font-weight: 700; padding: 16px 12px;
  border-bottom: 1px solid var(--border); color: var(--ink);
}
.mobile-nav a.is-active { color: var(--brand); }
.mobile-nav .btn { margin-top: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 24px; border-radius: var(--r-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(36,92,164,.32); }

.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-sm); }

.btn-soft { background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.btn-soft:hover { background: var(--brand-100); }

.btn-wa { background: #25D366; color: #fff; box-shadow: 0 12px 28px rgba(37,211,102,.28); }
.btn-wa:hover { background: #1fb857; transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding-block: var(--pad-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-section); }
.section--dark { background: var(--ink); color: #fff; }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head--start { margin-inline: 0; text-align: start; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 7px 16px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.section-title {
  font-size: clamp(29px, 4.2vw, 46px); font-weight: 800; line-height: 1.25;
  letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--brand); }
.section-desc { margin-top: 16px; font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-2); line-height: 1.85; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(52px, 8vw, 96px));
  padding-bottom: clamp(56px, 7vw, 92px);
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--brand-50) 0%, transparent 62%),
    radial-gradient(760px 420px at 8% 8%, #f2f6fd 0%, transparent 60%),
    var(--bg);
}
.hero-mark {
  position: absolute; inset-inline-end: -16%; top: -30%;
  width: min(720px, 58vw); color: var(--brand);
  opacity: .05; pointer-events: none; z-index: 0;
}
.hero-mark img, .hero-mark svg { width: 100%; height: auto; }

.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border);
  padding: 8px 18px 8px 8px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-xs); margin-bottom: 26px;
}
.pulse { position: relative; width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; }
.pulse i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
}
.pulse i::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: .55; animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

.hero-title {
  font-size: clamp(38px, 6.6vw, 78px); font-weight: 900; line-height: 1.16;
  letter-spacing: -.02em; color: var(--ink);
}
.hero-title span { display: block; }
.hero-accent {
  color: var(--brand); position: relative; display: inline-block !important;
  min-height: 1.16em;
}
.rotator { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rotator.is-out { opacity: 0; transform: translateY(-14px); }

.hero-sub {
  margin-top: 24px; max-width: 660px;
  font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); line-height: 1.9;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 52px);
  margin-top: clamp(44px, 6vw, 72px); padding-top: 34px; border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-num); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  color: var(--brand); line-height: 1; letter-spacing: -.02em;
  direction: ltr; text-align: start;
}
[dir="rtl"] .stat-num { text-align: right; }
.stat-label { font-size: 13.5px; color: var(--ink-3); font-weight: 600; margin-top: 8px; }

/* Marquee strip */
.marquee {
  margin-top: clamp(40px, 6vw, 68px); overflow: hidden;
  border-block: 1px solid var(--border); padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 15px; font-weight: 700; color: var(--ink-3); white-space: nowrap;
}
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-200); flex-shrink: 0; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: slide-rtl; }
@keyframes slide-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.svc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 26px 28px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.svc-card::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-400));
  transition: width .5s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--brand-100); }
.svc-card:hover::before { width: 100%; }

.svc-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 20px;
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.svc-card:hover .svc-icon { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.05); }

.svc-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.005em; }
.svc-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.svc-tags span {
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 4px 11px; border-radius: var(--r-pill);
}

/* ============================================================
   PACKAGE — spec sheet
   ============================================================ */
.pkg {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md);
  max-width: 980px; margin-inline: auto;
}
.pkg-head {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; padding: clamp(26px, 3.4vw, 38px) clamp(24px, 3.4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; position: relative; overflow: hidden;
}
.pkg-head::after {
  content: ''; position: absolute; inset-inline-end: -40px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.pkg-head-text { position: relative; z-index: 1; }
.pkg-name { font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
.pkg-sub { font-size: clamp(13px, 1.4vw, 15.5px); opacity: .84; font-weight: 600; margin-top: 6px; }

.pkg-price { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; }
.pkg-price b {
  font-family: var(--font-num); font-size: clamp(44px, 6.6vw, 72px); font-weight: 800;
  line-height: 1; letter-spacing: -.03em;
}
.pkg-price small { font-size: clamp(15px, 1.8vw, 20px); font-weight: 700; opacity: .9; }
.pkg-price .per { font-size: 13px; opacity: .75; font-weight: 600; }

.pkg-badge {
  position: absolute; inset-inline-start: clamp(24px, 3.4vw, 44px); top: 0;
  background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 6px 16px; border-radius: 0 0 10px 10px; letter-spacing: .04em; z-index: 2;
}

.pkg-rows { padding: clamp(12px, 2vw, 22px) clamp(16px, 3vw, 32px); }
.pkg-row {
  display: grid; grid-template-columns: minmax(190px, 0.9fr) 1.6fr;
  gap: clamp(14px, 3vw, 40px); align-items: center;
  padding: 17px 8px; border-bottom: 1px dashed var(--border-2);
  transition: background .25s;
}
.pkg-row:last-child { border-bottom: 0; }
.pkg-row:hover { background: var(--brand-50); border-radius: var(--r-sm); }
.pkg-row dt {
  font-weight: 800; color: var(--brand); font-size: clamp(14px, 1.5vw, 16px);
  display: flex; align-items: center; gap: 10px; line-height: 1.5;
}
.pkg-row dt svg { color: var(--brand-400); flex-shrink: 0; }
.pkg-row dd { color: var(--ink-2); font-size: clamp(13.5px, 1.4vw, 15px); line-height: 1.8; }

.pkg-free {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  background: var(--gold-soft); border-top: 1px solid #ecdfc4;
  padding: 20px clamp(20px, 3vw, 40px); text-align: center;
}
.pkg-free-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: clamp(18px, 2.4vw, 26px); font-weight: 900; color: #c0392b;
  letter-spacing: .02em;
}
.pkg-free p { font-size: clamp(13.5px, 1.5vw, 16px); font-weight: 700; color: #6b5424; }

.pkg-foot {
  padding: 22px clamp(20px, 3vw, 40px) 28px; background: var(--bg-soft);
  border-top: 1px solid var(--border); text-align: center;
}
.pkg-note { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 18px; }
.pkg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ============================================================
   PRICE TABLES
   ============================================================ */
.price-stack { display: grid; gap: clamp(26px, 3.4vw, 40px); }

.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm);
}
.price-head {
  background: var(--brand); color: #fff;
  padding: 22px clamp(20px, 3vw, 34px);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px;
}
.price-head h3 { font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.005em; }
.price-head p { font-size: 13.5px; opacity: .82; font-weight: 600; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--border); transition: background .22s; }
.price-table tr:last-child { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--brand-50); }
.price-table td { padding: 16px clamp(14px, 2.4vw, 26px); vertical-align: middle; }

.pt-service { font-weight: 800; color: var(--brand); font-size: clamp(14px, 1.5vw, 16px); width: 30%; line-height: 1.55; }
.pt-desc { color: var(--ink-2); font-size: clamp(13px, 1.35vw, 14.5px); line-height: 1.75; }
.pt-price { width: 1%; white-space: nowrap; text-align: start; }

.price-chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-sm); padding: 8px 16px; min-width: 92px;
}
.price-chip b {
  font-family: var(--font-num); font-size: clamp(18px, 2.2vw, 23px); font-weight: 800;
  color: var(--brand); line-height: 1.1; letter-spacing: -.02em;
}
.price-chip b .cur { font-size: .62em; font-weight: 700; margin-inline-start: 3px; }
.price-chip span { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }

.price-foot {
  padding: 16px clamp(20px, 3vw, 34px); background: var(--bg-soft);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 600;
}
.price-foot svg { color: var(--brand); flex-shrink: 0; }

/* Mobile: turn rows into cards */
@media (max-width: 720px) {
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: auto; }
  .price-table tr { padding: 16px clamp(14px, 4vw, 20px); position: relative; }
  .price-table td { padding: 0; }
  .pt-service { width: auto; padding-inline-end: 104px !important; margin-bottom: 6px; }
  .pt-desc:empty { display: none; }
  .pt-price { position: absolute; inset-inline-end: 16px; top: 14px; }
  .price-chip { min-width: 84px; padding: 6px 12px; }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.pf-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.pf-filter {
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--border);
  padding: 10px 20px; border-radius: var(--r-pill);
  transition: all .25s var(--ease);
}
.pf-filter:hover { border-color: var(--brand-200); color: var(--brand); }
.pf-filter.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--sh-brand); }

/* Masonry: CSS grid with JS-measured row spans — fills in reading order and
   handles 1:1, 4:5, 9:16 and 3:4 side by side without leaving gaps. */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  column-gap: var(--pf-gap, 18px);
  row-gap: 0;
  grid-auto-rows: 1px;
}
@media (max-width: 620px) { .pf-grid { grid-template-columns: 1fr; } }

.pf-card {
  grid-row-end: span 400;      /* replaced by JS once measured */
  align-self: start;
  margin-bottom: var(--pf-gap, 18px);
  position: relative;
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg-section);
  border: 1px solid var(--border); cursor: zoom-in; display: block; width: 100%;
  box-shadow: var(--sh-xs);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  animation: pf-in .5s var(--ease) both;
}
.pf-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.pf-card.is-hidden { display: none; }
@keyframes pf-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.pf-card img {
  width: 100%; height: auto; display: block;
  transition: transform .7s var(--ease), filter .4s;
}
.pf-card:hover img { transform: scale(1.045); }

.pf-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; text-align: start;
  background: linear-gradient(to top, rgba(8, 16, 34, .9) 0%, rgba(8, 16, 34, .45) 42%, transparent 72%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.pf-card:hover .pf-overlay, .pf-card:focus-visible .pf-overlay { opacity: 1; }
.pf-cat {
  align-self: flex-start; font-size: 11px; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 10px;
}
.pf-overlay h3 { color: #fff; font-size: 16.5px; font-weight: 800; line-height: 1.45; }
.pf-overlay p { color: rgba(255, 255, 255, .75); font-size: 12.5px; font-weight: 600; margin-top: 3px; }

.pf-empty { text-align: center; padding: 60px 20px; color: var(--ink-3); font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1200; display: none;
  background: rgba(8, 14, 28, .94); backdrop-filter: blur(8px);
  padding: clamp(16px, 4vw, 48px);
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; animation: fade .28s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lb-figure { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 16px; }
.lb-figure img {
  max-height: calc(100vh - 190px); width: auto; margin-inline: auto;
  border-radius: var(--r-md); box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.lb-cap { text-align: center; color: #fff; }
.lb-cap h3 { font-size: 19px; font-weight: 800; }
.lb-cap p { font-size: 13.5px; color: rgba(255, 255, 255, .68); margin-top: 5px; line-height: 1.75; }

.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; transition: background .25s, transform .25s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-prev { inset-inline-start: clamp(10px, 2.4vw, 28px); }
.lb-next { inset-inline-end: clamp(10px, 2.4vw, 28px); }
.lb-close {
  position: absolute; top: clamp(14px, 2.4vw, 26px); inset-inline-end: clamp(14px, 2.4vw, 26px);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
}
.lb-close:hover { background: rgba(255, 255, 255, .24); }
@media (max-width: 640px) { .lb-btn { display: none; } }

/* ============================================================
   TERMS
   ============================================================ */
.terms {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm);
  max-width: 980px; margin-inline: auto;
}
.terms-row {
  display: grid; grid-template-columns: minmax(160px, .75fr) 1.8fr;
  gap: clamp(12px, 3vw, 36px); align-items: start;
  padding: 20px clamp(20px, 3vw, 34px); border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.terms-row:last-child { border-bottom: 0; }
.terms-row:hover { background: var(--brand-50); }
.terms-row dt {
  font-weight: 800; color: var(--brand); font-size: clamp(14px, 1.5vw, 16px);
  display: flex; align-items: center; gap: 10px;
}
.terms-row dt i {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
  font-family: var(--font-num); font-size: 12px; font-weight: 800; font-style: normal;
}
.terms-row dd { color: var(--ink-2); font-size: clamp(13.5px, 1.4vw, 15px); line-height: 1.85; }

@media (max-width: 640px) {
  .terms-row, .pkg-row { grid-template-columns: 1fr; gap: 7px; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--brand-700), var(--brand) 55%, var(--brand-400));
  color: #fff; border-radius: var(--r-xl); padding: clamp(38px, 5.5vw, 68px) clamp(24px, 4vw, 60px);
  text-align: center; position: relative; overflow: hidden;
}
.cta::before, .cta::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.cta::before { width: 340px; height: 340px; inset-inline-end: -90px; top: -140px; }
.cta::after  { width: 240px; height: 240px; inset-inline-start: -70px; bottom: -120px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; }
.cta p { font-size: clamp(14.5px, 1.6vw, 17px); opacity: .88; margin-top: 14px; max-width: 560px; margin-inline: auto; line-height: 1.85; }
.cta .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  /* minmax(0,…) stops a long Latin name from forcing the column wider */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3.5vw, 48px); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-cards { display: grid; gap: 14px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 24px; display: flex; align-items: center; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-100); }
.contact-ico {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
}
.contact-card > span:last-child { min-width: 0; flex: 1; }
.contact-card .label {
  display: block; font-size: 12px; color: var(--ink-3); font-weight: 700;
  line-height: 1.55; overflow-wrap: anywhere;
}
.contact-card .value {
  display: block; font-weight: 800; font-size: 15.5px; letter-spacing: .01em;
  direction: ltr; text-align: right; overflow-wrap: anywhere;
}
[dir="ltr"] .contact-card .value { text-align: left; }
.contact-card .value.ar { direction: rtl; }

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--sh-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field label span { color: var(--err); }
.field input, .field textarea, .field select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 16px; font-size: 15px; transition: border-color .25s, background .25s, box-shadow .25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.75; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.hp { position: absolute !important; inset-inline-start: -9999px; opacity: 0; height: 0; }

.form-msg {
  margin-top: 16px; padding: 14px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; display: none; align-items: center; gap: 10px;
}
.form-msg.is-on { display: flex; }
.form-msg.ok  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.form-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding-block: clamp(52px, 6vw, 76px) 0; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(26px, 3.5vw, 52px);
  padding-bottom: 44px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer .brand-name { color: #fff; }
.footer .brand-sub  { color: rgba(255, 255, 255, .45); }
.footer-about { font-size: 14px; color: rgba(255, 255, 255, .6); line-height: 1.9; margin-top: 18px; max-width: 320px; }

.footer h4 { font-size: 14px; font-weight: 800; margin-bottom: 18px; letter-spacing: .02em; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, .6); transition: color .25s, transform .25s; display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateX(-3px); }
[dir="ltr"] .footer-links a:hover { transform: translateX(3px); }

.footer-contact { display: grid; gap: 13px; }
.footer-contact a, .footer-contact div {
  display: flex; align-items: center; gap: 11px; font-size: 14px;
  color: rgba(255, 255, 255, .6); transition: color .25s;
}
.footer-contact a:hover { color: #fff; }
.footer-contact svg { color: var(--brand-400); flex-shrink: 0; }
.footer-contact .ltr { direction: ltr; }

.socials { display: flex; gap: 9px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7); transition: all .28s var(--ease);
}
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: rgba(255, 255, 255, .42);
}
.footer-bottom a:hover { color: #fff; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: ping 2.4s var(--ease) infinite;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: flex; }
  .header-cta { gap: 8px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .brand img, .brand svg { height: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .pkg-head { flex-direction: column; align-items: flex-start; }
  .pkg-price { align-self: flex-start; }
  .pkg-free { flex-direction: column; gap: 8px; }
  .lb-figure img { max-height: calc(100vh - 220px); }
}

/* Print */
@media print {
  .header, .footer, .wa-float, .hero-actions, .pf-filters, .cta { display: none !important; }
  body { background: #fff; }
  .pkg, .price-card, .terms { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
