/* =====================================================================
   Premium v2 — واجهة احترافية: هيرو سينمائي داكن، تدرجات، زجاج، حركات
   طبقة فوق css/site.css (بتتحمّل بعده وبتعيد تعريف القيم) — شيل الملف ده يرجّع التصميم القديم كما هو.
   ===================================================================== */
:root {
  --navy: #0f3553;
  --navy-700: #0a2740;
  --navy-900: #061a2c;
  --teal: #16b3a3;
  --teal-dark: #0e978a;
  --cyan: #3fd0e0;
  --grad-brand: linear-gradient(135deg, #16b3a3 0%, #1aa0c8 55%, #3fd0e0 100%);
  --grad-navy: linear-gradient(135deg, #0a2740 0%, #0f3553 55%, #145177 100%);
  --glow-teal: 0 18px 40px -10px rgba(22, 179, 163, .55);
  --shadow-lg: 0 30px 70px -20px rgba(6, 26, 44, .35);
}
body { background: #f5f9fb; }
::selection { background: rgba(22, 179, 163, .22); color: var(--navy-900); }

/* شريط تقدم التمرير */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--grad-brand); box-shadow: 0 0 12px rgba(63, 208, 224, .7); }

.topbar { background: #04121f; position: relative; z-index: 60; }

/* ---------- الهيدر: عائم زجاجي فوق الهيرو (بدون الفراغ الأبيض) ---------- */
.has-hero .header { margin-bottom: -102px; }
.has-hero .header .wrap { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .35); backdrop-filter: blur(18px) saturate(170%); }
.has-hero .header .nav a { color: rgba(255, 255, 255, .88); }
.has-hero .header .nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.has-hero .header .nav a.active { color: #fff; }
.header .nav a.active::after { background: var(--grad-brand); height: 3px; }
.has-hero .header .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.has-hero .header .btn-outline:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); }
.has-hero .header .logo img { filter: brightness(0) invert(1); transition: filter .3s; }
.has-hero .header .user-menu .hello { color: #fff; }
.has-hero .header .menu-toggle { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.has-hero .header.scrolled .wrap { background: rgba(255, 255, 255, .97); border-color: transparent; box-shadow: 0 8px 30px rgba(6, 26, 44, .12); }
.has-hero .header.scrolled .nav a { color: var(--text); }
.has-hero .header.scrolled .nav a:hover { color: var(--navy); background: var(--navy-50); }
.has-hero .header.scrolled .nav a.active { color: var(--navy); }
.has-hero .header.scrolled .btn-outline { color: var(--navy); border-color: var(--line); background: transparent; }
.has-hero .header.scrolled .logo img { filter: none; }
.has-hero .header.scrolled .user-menu .hello { color: var(--ink); }
.has-hero .header.scrolled .menu-toggle { background: #fff; border-color: var(--line); color: var(--navy); }

/* ---------- Hero سينمائي ---------- */
.hero { background: var(--navy-900); min-height: 740px; padding-top: 102px; padding-bottom: 130px; isolation: isolate; }
.hero-media .frame img { animation: kenBurns 22s ease-in-out infinite alternate; transform-origin: 30% 30%; }
.hero-media .frame::after {
  background:
    linear-gradient(270deg, rgba(6, 26, 44, .97) 0%, rgba(6, 26, 44, .88) 36%, rgba(10, 39, 64, .45) 62%, rgba(10, 39, 64, .1) 100%),
    linear-gradient(0deg, rgba(6, 26, 44, .75) 0%, transparent 38%);
}
.hero::before { width: 620px; height: 620px; background: radial-gradient(circle, rgba(22, 179, 163, .32), transparent 65%); top: -200px; inset-inline-end: -160px; z-index: 1; animation: blob 14s ease-in-out infinite alternate; }
.hero::after { width: 520px; height: 520px; background: radial-gradient(circle, rgba(63, 208, 224, .2), transparent 65%); bottom: -220px; inset-inline-start: 30%; z-index: 1; animation: blob 18s ease-in-out infinite alternate-reverse; }
.hero .wrap { z-index: 2; }
.hero-copy { padding-top: 104px; }
.hero-eyebrow {
  position: relative; color: var(--cyan); background: rgba(63, 208, 224, .1); border: 1px solid rgba(63, 208, 224, .3);
  padding: 6px 16px 6px 16px; padding-inline-start: 32px; border-radius: 999px; font-size: 13px; letter-spacing: 0;
}
.hero-eyebrow::after { display: none; }
.hero-eyebrow::before {
  content: ""; position: absolute; inset-inline-start: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--cyan); animation: pulseDot 2s infinite;
}
.hero h1 { color: #fff; font-size: 60px; line-height: 1.16; text-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.hero h1 em {
  background: linear-gradient(90deg, #3fd0e0, #16b3a3, #8ef3dc, #3fd0e0); background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; padding-bottom: 8px;
}
.hero p { color: rgba(226, 238, 245, .86); font-size: 18px; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.hero-trust span { color: rgba(226, 238, 245, .75); }
.hero-trust strong { color: #fff; }
.hero-trust .avatars img { border-color: var(--navy-900); }

.hero-chip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .45); }
.hero-chip strong { color: #fff; font-size: 22px; }
.hero-chip span { color: rgba(226, 238, 245, .78); }
.hero-chip.c1 { top: 160px; }
.hero-chip.c2 { bottom: 150px; }
.hero-chip.c1 .ic { background: var(--grad-navy); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.hero-chip.c2 .ic { background: var(--grad-brand); box-shadow: var(--glow-teal); }
.hero-ribbon { background: var(--grad-brand); box-shadow: var(--glow-teal); z-index: 3; }

.scroll-cue { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }

/* ---------- الأزرار ---------- */
.btn { position: relative; overflow: hidden; background: var(--grad-navy); isolation: isolate; }
.btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s cubic-bezier(.16, .84, .44, 1); pointer-events: none; z-index: -1; }
.btn:hover::before { left: 140%; }
.btn:hover { background: var(--grad-navy); }
.btn-coral, .btn-coral:hover { background: var(--grad-brand); box-shadow: var(--glow-teal); }
.btn-coral:hover { box-shadow: 0 22px 44px -10px rgba(22, 179, 163, .7); }
.btn-outline, .btn-ghost, .btn-white { background-image: none; }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--navy-50); }
.btn-white, .btn-white:hover { background: #fff; }
.btn-ghost, .btn-ghost:hover { background: transparent; }
.btn-danger, .btn-danger:hover { background: var(--danger); }
.btn-google { background: var(--grad-navy); color: #fff; border-color: transparent; }
.btn-google:hover { background: var(--grad-navy); box-shadow: 0 14px 28px -8px rgba(10, 39, 64, .5); }
.btn-google svg path { fill: #fff !important; }

/* ---------- شريط الثقة: بطاقة زجاجية فوق الهيرو ---------- */
.trustbar { margin-top: -84px; }
.trustbar .card { background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); border: 1px solid #fff; box-shadow: 0 30px 70px -25px rgba(6, 26, 44, .4); }
.trust-item { position: relative; }
.trust-item + .trust-item::before { content: ""; position: absolute; inset-inline-start: 0; top: 10%; height: 80%; width: 1px; background: linear-gradient(transparent, var(--line), transparent); }
.trust-item .ic { background: var(--grad-brand); color: #fff; box-shadow: var(--glow-teal); transition: transform .4s cubic-bezier(.16, .84, .44, 1); }
.trust-item:hover .ic { transform: translateY(-4px) rotate(-6deg); }
.trust-item strong { background: var(--grad-navy); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 30px; font-weight: 800; }

/* ---------- عناوين الأقسام ---------- */
.eyebrow { color: var(--teal-dark); }
.eyebrow::before { background: var(--grad-brand); }
.section-head h2, .about h2 { font-size: 40px; color: var(--navy-900); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin: 16px auto 0; background: var(--grad-brand); }
.section.blush { background: linear-gradient(180deg, #eaf6f7 0%, #f5f9fb 100%); }

/* ---------- بطاقات الخدمات ---------- */
.service { position: relative; background: #fff; transition: transform .45s cubic-bezier(.16, .84, .44, 1), box-shadow .45s, border-color .3s; }
.service::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.service:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -22px rgba(6, 26, 44, .3); border-color: transparent; }
.service:hover::after { opacity: 1; }
.service .badge-ic { transition: all .4s cubic-bezier(.16, .84, .44, 1); }
.service:hover .badge-ic { background: var(--grad-brand); color: #fff; box-shadow: var(--glow-teal); }

/* ---------- الدعوة للحجز ---------- */
.cta-box { background: var(--grad-navy); box-shadow: var(--shadow-lg); isolation: isolate; }
.cta-box::before { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; top: -220px; inset-inline-end: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(22, 179, 163, .38), transparent 65%); animation: blob 16s ease-in-out infinite alternate; }

#gallery img, #team img, #blog img { transition: transform .8s cubic-bezier(.16, .84, .44, 1); }
#gallery figure:hover img, #gallery a:hover img, #team article:hover img, #blog article:hover img { transform: scale(1.06); }

/* زر الرجوع لأعلى (فوق أزرار واتساب/اتصال في الناحية التانية) */
.to-top { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 70; width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer; background: var(--grad-brand); color: #fff; box-shadow: var(--glow-teal); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(16px) scale(.9); transition: opacity .3s, transform .3s cubic-bezier(.16, .84, .44, 1); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top .i { width: 20px; height: 20px; transform: rotate(90deg); }

@keyframes kenBurns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-40px, 30px) scale(1.15); } }
@keyframes shine { to { background-position: 250% center; } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(63, 208, 224, .7); } 70% { box-shadow: 0 0 0 10px rgba(63, 208, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 208, 224, 0); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 120px; }
  .hero-copy { padding-top: 24px; }
  .hero-media .frame::after { background: linear-gradient(0deg, rgba(6, 26, 44, .97) 0%, rgba(6, 26, 44, .84) 55%, rgba(6, 26, 44, .6) 100%); }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .section-head h2, .about h2 { font-size: 30px; }
  .trustbar { margin-top: -70px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media .frame img, .hero::before, .hero::after, .hero h1 em, .cta-box::before, .scroll-cue::after, .hero-eyebrow::before { animation: none; }
}
