:root {
  --navy-900: #071c42;
  --navy-800: #0d2f6b;
  --navy-700: #123f8c;
  --blue-600: #1d5bd1;
  --blue-100: #e7efff;
  --blue-50: #f4f7fe;
  --accent: #f08a1c;
  --accent-dark: #d57208;
  --wa: #1fa855;
  --ink: #142037;
  --ink-soft: #55627a;
  --line: #e1e7f2;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(13, 47, 107, .10);
  --shadow-lg: 0 24px 60px rgba(7, 28, 66, .18);
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ── أزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-family: inherit;
  font-size: 15px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(240, 138, 28, .35); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost-dark { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn-ghost-dark:hover { border-color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-800); }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; color: var(--accent-dark);
  background: rgba(240, 138, 28, .12); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.muted { color: var(--ink-soft); font-weight: 600; font-size: .6em; }

/* ── الشريط العلوي ── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(13, 47, 107, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 20px; color: var(--navy-800); font-weight: 900; }
.brand-text small { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .7); }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink);
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--blue-50); color: var(--navy-800); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-inline-start: auto; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── الواجهة ── */
.hero { position: relative; overflow: hidden; color: #fff; padding: 84px 0 110px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(29, 91, 209, .55), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(240, 138, 28, .22), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .eyebrow { background: rgba(255, 255, 255, .12); color: #ffd3a3; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; margin-bottom: 18px; }
.hl { color: var(--accent); }
.lead { font-size: 17.5px; color: rgba(255, 255, 255, .85); max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: 14.5px; }
.hero-points li { position: relative; padding-inline-start: 24px; }
.hero-points li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--accent); font-weight: 900;
}

.hero-visual { position: relative; }
.mock-window {
  background: #fff; color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform: perspective(1200px) rotateY(8deg) rotateX(3deg);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: linear-gradient(90deg, var(--navy-800), var(--blue-600)); color: #fff; font-size: 13px; font-weight: 700;
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.mock-bar span { margin-inline-start: auto; }
.mock-body { padding: 16px; }
.mock-row {
  display: grid; grid-template-columns: 2fr .7fr 1fr; gap: 8px; padding: 9px 12px; font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.mock-row span:not(:first-child) { text-align: center; }
.mock-row.head { background: var(--blue-100); border-radius: 10px; font-weight: 800; color: var(--navy-800); border: 0; }
.mock-total {
  margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--blue-50); border-radius: 14px; font-weight: 700;
}
.mock-total strong { font-size: 24px; color: var(--navy-800); }
.mock-total small { font-size: 13px; color: var(--ink-soft); }
.mock-pay { margin-inline-start: auto; background: #e3f7ea; color: #137a3c; padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 16px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; line-height: 1.4;
  animation: floaty 5s ease-in-out infinite;
}
.float-card b { color: var(--accent-dark); font-size: 17px; }
.float-card span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.fc-1 { top: -22px; inset-inline-start: -18px; }
.fc-2 { bottom: -26px; inset-inline-end: -10px; animation-delay: -2.5s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ── أرقام ── */
.stats { margin-top: -54px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 26px 10px;
}
.stat { text-align: center; padding: 6px 12px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-size: 36px; font-weight: 900; color: var(--navy-800); line-height: 1.3; }
.stat span { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }

/* ── أقسام ── */
.section { padding: 96px 0; }
.section-tint { background: linear-gradient(180deg, var(--blue-50), #fff); }
.section-dark { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.section-head.light p { color: rgba(255, 255, 255, .75); }
.section-head.light .eyebrow { background: rgba(255, 255, 255, .12); color: #ffd3a3; }

.ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--blue-100), #fff); border: 1px solid var(--line);
}
.ic svg, .hw svg, .duo-top svg {
  width: 26px; height: 26px; fill: none; stroke: var(--navy-700); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* من نحن */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(26px, 3.2vw, 36px); }
.about-grid p { color: var(--ink-soft); font-size: 16.5px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mini-card h3 { font-size: 17px; margin-bottom: 4px; }
.mini-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ميرة */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.sector::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy-800), var(--accent));
}
.sector:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.sector h3 { font-size: 18px; }
.sector p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.feature-band {
  margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 34px; box-shadow: var(--shadow);
}
.feature-band h3 { font-size: 22px; text-align: center; margin-bottom: 22px; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.feature-list li {
  position: relative; padding-inline-start: 32px; font-weight: 600; font-size: 15.5px;
}
.feature-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { background: var(--blue-50); color: var(--navy-800); border: 1px solid var(--blue-100); font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 999px; }

/* أنظمة */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.duo-top { height: 140px; display: grid; place-items: center; }
.duo-top svg { width: 64px; height: 64px; stroke: #fff; stroke-width: 1.6; }
.duo-top.gym { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); }
.duo-top.park { background: linear-gradient(135deg, var(--accent-dark), #f6b14d); }
.duo-body { padding: 26px 28px 30px; }
.duo-body h3 { font-size: 21px; margin-bottom: 14px; }
.ticks li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; color: var(--ink-soft); font-weight: 600; }
.ticks li::before { content: "◆"; position: absolute; inset-inline-start: 0; top: 0; color: var(--accent); font-size: 12px; }

/* أجهزة */
.hw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hw {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  padding: 26px; transition: background .25s, transform .25s;
}
.hw:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.hw svg { width: 40px; height: 40px; stroke: var(--accent); margin-bottom: 14px; }
.hw h3 { font-size: 18px; }
.hw p { color: rgba(255, 255, 255, .72); font-size: 14.5px; margin: 0; }

/* لماذا */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why { padding: 26px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-100); }
.why b { font-size: 34px; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px var(--navy-700); display: block; line-height: 1.2; margin-bottom: 8px; }
.why h3 { font-size: 17.5px; }
.why p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 24px; inset-inline: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}
.step { text-align: center; position: relative; }
.step span {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px;
  background: var(--accent); color: #fff; font-weight: 900; font-size: 18px; box-shadow: 0 8px 20px rgba(240, 138, 28, .35);
  position: relative;
}
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* دعوة */
.cta-band { padding: 0 0 20px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy-800), var(--blue-600)); color: #fff;
  border-radius: 28px; padding: 40px 44px; box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 6px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .8); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* اتصل */
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.branch { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.branch-head { padding: 26px 26px 20px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--navy-800); padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; }
.branch-head h3 { font-size: 24px; margin-bottom: 4px; }
.addr { color: var(--ink-soft); font-weight: 600; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.branch-actions .btn-primary { direction: ltr; }
.map-wrap { flex: 1; min-height: 260px; border-top: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

.contact-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1.2fr 1.6fr; gap: 24px; align-items: start; }
.contact-card, .contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow);
}
.contact-card h3, .contact-form h3 { font-size: 19px; margin-bottom: 14px; }
.contact-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.contact-list a { font-weight: 800; color: var(--navy-800); font-size: 16px; text-align: right; word-break: break-all; }
.contact-list a:hover { color: var(--accent-dark); }

.contact-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-50);
  transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue-600); background: #fff;
}
.contact-form input[dir="ltr"] { text-align: right; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-msg { min-height: 1.4em; font-size: 14px; font-weight: 700; margin: 0 0 10px; color: #c2410c; }
.form-msg.ok { color: #137a3c; }

/* تذييل */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .8); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 60px 0 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-about { font-size: 14.5px; margin: 14px 0 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14.5px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-links a[dir="ltr"] { display: inline-block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13.5px; text-align: center; color: rgba(255, 255, 255, .6); }

.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(31, 168, 85, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ── استجابة ── */
@media (max-width: 1080px) {
  .sector-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { padding: 56px 0 100px; }
  .hero-inner, .about-grid, .duo-grid, .branch-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .mock-window { transform: none; }
  .hw-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .section { padding: 70px 0; }
  .sector-grid, .why-grid, .hw-grid, .about-cards, .feature-list, .contact-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .feature-band { padding: 24px 20px; }
  .cta-inner { padding: 30px 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .fc-1 { inset-inline-start: 0; }
  .fc-2 { inset-inline-end: 0; }
  .brand-text small { display: none; }
}
