@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&display=swap");

/* =========================================================
   Basil Al-Jubari Personal Website
   File: assets/css/style.css
   Build mode: File by file
   Identity: White + Royal Blue + Sky + Gold Accent
========================================================= */

:root {
  --bg: #f5f9ff;
  --bg-soft: #eef6ff;
  --white: #ffffff;

  --ink: #071b4a;
  --ink-2: #0f2f76;
  --text: #172033;
  --muted: #64748b;

  --blue: #0b5cff;
  --blue-dark: #0846c7;
  --sky: #00b8ff;
  --gold: #f5a400;

  --line: #dbeafe;
  --line-2: #bfdbfe;

  --shadow-soft: 0 18px 45px rgba(7, 27, 74, 0.08);
  --shadow: 0 28px 80px rgba(7, 27, 74, 0.14);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 42px;

  --container: 1180px;
}

/* Reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 184, 255, 0.16), transparent 32%),
    radial-gradient(circle at 94% 9%, rgba(11, 92, 255, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  line-height: 1.9;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(11, 92, 255, 0.18);
  color: var(--ink);
}

/* Layout */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 62px 0;
}

.section.compact {
  padding: 42px 0;
}

.section-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf4ff;
  color: var(--blue);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.kicker.gold {
  color: #8a5a00;
  background: #fff7e6;
  border-color: #fde68a;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.18;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.section h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  margin: 14px 0 14px;
  letter-spacing: -0.8px;
}

.section-head p {
  font-size: 18px;
  color: #475569;
  max-width: 820px;
}

.lead {
  font-size: 20px;
  color: #334155;
}

.muted {
  color: var(--muted);
}

.highlight {
  color: var(--blue);
}

.gold-text {
  color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 234, 254, 0.9);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 1000;
  min-width: max-content;
}

.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 1000;
  letter-spacing: -1px;
  background:
    radial-gradient(circle at 75% 18%, var(--gold) 0 10%, transparent 11%),
    linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 14px 34px rgba(11, 92, 255, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
  background: #eff6ff;
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 15px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 21px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.22s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 16px 38px rgba(11, 92, 255, 0.24);
}

.btn.primary:hover {
  box-shadow: 0 20px 50px rgba(11, 92, 255, 0.32);
}

.btn.ghost {
  color: var(--blue);
  background: #fff;
  border-color: var(--line-2);
}

.btn.soft {
  color: #8a5a00;
  background: #fff7e6;
  border-color: #fde68a;
}

.btn.dark {
  background: var(--ink);
  color: #fff;
}

.hero-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Hero */
.hero {
  padding: 82px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -2px;
  margin: 15px 0 10px;
}

.hero h2 {
  color: var(--ink-2);
  font-size: clamp(23px, 3vw, 36px);
  margin-bottom: 16px;
}

.hero p {
  font-size: 19px;
  color: #334155;
  max-width: 760px;
}

.hero-card {
  position: relative;
  min-height: 470px;
  border-radius: var(--radius-xl);
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, #ffffff 0%, #eaf5ff 56%, #dff4ff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "B+";
  position: absolute;
  left: 18px;
  top: -8px;
  font-size: 165px;
  line-height: 1;
  font-weight: 1000;
  color: rgba(11, 92, 255, 0.07);
  letter-spacing: -12px;
}

.hero-portrait {
  position: absolute;
  inset: 84px 34px 30px;
  border-radius: 34px;
  border: 1px solid rgba(11, 92, 255, 0.13);
  background:
    radial-gradient(circle at 50% 22%, rgba(245, 164, 0, 0.22), transparent 15%),
    radial-gradient(circle at 50% 35%, rgba(7, 27, 74, 0.72), transparent 17%),
    linear-gradient(180deg, rgba(11, 92, 255, 0.16), rgba(0, 184, 255, 0.12));
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--ink);
  font-weight: 1000;
}

.hero-badge {
  position: absolute;
  right: 22px;
  bottom: 24px;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: 0 20px 44px rgba(7, 27, 74, 0.12);
  color: var(--ink);
  font-weight: 950;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
  min-height: 215px;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--sky));
  opacity: 0;
  transition: 0.24s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card:hover::after {
  opacity: 1;
}

.card .mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 950;
}

.card h3 {
  font-size: 22px;
  margin: 13px 0 9px;
}

.card p {
  color: #475569;
  margin-bottom: 16px;
}

.card-link {
  color: var(--blue);
  font-weight: 950;
}

.card-link::after {
  content: " ←";
}

/* Feature / split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.panel.blue {
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 184, 255, 0.28), transparent 38%),
    linear-gradient(135deg, var(--ink), #0b3a8f 58%, var(--blue));
}

.panel.blue h2,
.panel.blue h3,
.panel.blue p {
  color: #fff;
}

.panel.blue p {
  color: #dbeafe;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat span {
  display: block;
  color: #475569;
  font-weight: 800;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--blue), var(--sky));
}

/* CTA */
.cta {
  margin: 58px auto;
  padding: 36px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 184, 255, 0.32), transparent 36%),
    linear-gradient(135deg, var(--ink), #0b3a8f 60%, var(--blue));
  box-shadow: 0 30px 86px rgba(7, 27, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  margin: 12px 0;
}

.cta p {
  color: #dbeafe;
  font-size: 18px;
  max-width: 750px;
}

.cta .kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta .btn.ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Forms */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 14px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd5e1;
  border-radius: 17px;
  padding: 13px 14px;
  background: #f8fbff;
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.1);
}

/* Footer */
.site-footer {
  margin-top: 70px;
  padding: 46px 0 24px;
  background: #041333;
  color: #dbeafe;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 28px;
}

.site-footer h3 {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer p {
  color: #cbdaf5;
}

.site-footer a {
  display: block;
  color: #dbeafe;
  margin: 7px 0;
  transition: 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
  transform: translateX(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 18px;
  color: #9fb2d3;
  font-size: 14px;
}

/* Utilities */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.58s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.hide {
  display: none !important;
}

.center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1050px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    min-height: 380px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .site-header .btn.primary {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    right: 16px;
    left: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 48px 0 38px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .hero p,
  .lead {
    font-size: 17px;
  }

  .section {
    padding: 42px 0;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .stats,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    display: block;
    padding: 28px;
  }

  .hero-card {
    min-height: 330px;
    border-radius: 32px;
  }

  .hero-portrait {
    inset: 74px 18px 22px;
  }

  .hero-badge {
    right: 18px;
    bottom: 18px;
    max-width: 220px;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text small {
    display: none;
  }

  .logo-mark {
    width: 46px;
    height: 46px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .actions {
    width: 100%;
  }

  .section h2 {
    font-size: 29px;
  }

  .card,
  .panel,
  .contact-form {
    padding: 20px;
  }

  .hero-card::before {
    font-size: 120px;
  }
}

/* =========================================================
   GLOBAL POLISH BASIL
   Floating buttons + header scroll + small refinements
========================================================= */

.site-header.scrolled {
  box-shadow: 0 12px 34px rgba(7, 27, 74, 0.08);
}

.whatsapp-float,
.top-float {
  position: fixed;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 1000;
  box-shadow: 0 18px 45px rgba(7, 27, 74, 0.18);
  transition: 0.22s ease;
}

.whatsapp-float {
  left: 18px;
  bottom: 22px;
  min-width: 112px;
  height: 52px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.top-float {
  left: 18px;
  bottom: 86px;
  width: 46px;
  height: 46px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
}

.whatsapp-float:hover,
.top-float:hover {
  transform: translateY(-3px);
}

.card h3,
.step h3 {
  letter-spacing: -0.2px;
}

@media (max-width: 820px) {
  .whatsapp-float {
    left: 12px;
    right: 12px;
    bottom: 14px;
    width: auto;
    height: 52px;
  }

  .top-float {
    left: 14px;
    bottom: 76px;
  }

  body {
    padding-bottom: 78px;
  }
}

/* =========================================================
   HOME PREMIUM HERO POLISH
========================================================= */

.hero-card-premium {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-card-premium::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 34px;
  border: 1px solid rgba(11, 92, 255, 0.12);
  background:
    radial-gradient(circle at 50% 38%, rgba(11, 92, 255, 0.13), transparent 28%),
    radial-gradient(circle at 40% 62%, rgba(0, 184, 255, 0.13), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.08));
  z-index: -1;
}

.identity-orbit {
  position: absolute;
  inset: 36px;
  pointer-events: none;
}

.identity-orbit span {
  position: absolute;
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(191, 219, 254, 0.9);
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 0 12px 28px rgba(7, 27, 74, 0.08);
}

.identity-orbit span:nth-child(1) {
  top: 12px;
  right: 18px;
}

.identity-orbit span:nth-child(2) {
  top: 42px;
  left: 10px;
}

.identity-orbit span:nth-child(3) {
  bottom: 54px;
  right: 4px;
  color: #8a5a00;
  background: #fff7e6;
  border-color: #fde68a;
}

.identity-orbit span:nth-child(4) {
  bottom: 86px;
  left: 22px;
}

.signature-card {
  width: min(355px, calc(100% - 34px));
  padding: 30px 24px;
  border-radius: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 234, 254, 0.95);
  box-shadow: 0 28px 80px rgba(7, 27, 74, 0.16);
  backdrop-filter: blur(16px);
}

.signature-mark {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  font-weight: 1000;
  letter-spacing: -2px;
  background:
    radial-gradient(circle at 76% 18%, var(--gold) 0 11%, transparent 12%),
    linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 20px 52px rgba(11, 92, 255, 0.28);
}

.signature-card h3 {
  font-size: 30px;
  margin: 0 0 8px;
}

.signature-card p {
  color: #475569;
  margin: 0 auto 16px;
  max-width: 280px;
  font-weight: 800;
}

.signature-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.signature-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid #dbeafe;
}

.hero-badge.premium {
  right: 28px;
  left: 28px;
  max-width: none;
  text-align: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.ecosystem-strip-section {
  padding-top: 8px;
}

.ecosystem-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.ecosystem-strip span {
  padding: 9px 14px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 1000;
}

@media (max-width: 820px) {
  .hero-card-premium {
    min-height: 410px;
  }

  .signature-card {
    padding: 24px 18px;
  }

  .signature-mark {
    width: 88px;
    height: 88px;
    font-size: 32px;
  }

  .signature-card h3 {
    font-size: 25px;
  }

  .identity-orbit span {
    font-size: 11px;
    min-width: auto;
  }
}

/* =========================================================
   PAGE VISUAL CARDS BASIL
   Premium symbolic visuals for inner pages
========================================================= */

.page-visual-card {
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.page-visual-card::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 30%, rgba(11, 92, 255, 0.16), transparent 28%),
    radial-gradient(circle at 28% 72%, rgba(0, 184, 255, 0.14), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(245, 164, 0, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.10));
  border: 1px solid rgba(191, 219, 254, 0.72);
  z-index: -1;
}

.page-visual-inner {
  width: min(370px, calc(100% - 34px));
  text-align: center;
  padding: 30px 22px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 234, 254, 0.95);
  box-shadow: 0 28px 80px rgba(7, 27, 74, 0.16);
  backdrop-filter: blur(16px);
}

.page-visual-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #8a5a00;
  background: #fff7e6;
  border: 1px solid #fde68a;
  font-size: 12px;
  font-weight: 1000;
  margin-bottom: 16px;
}

.page-visual-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  font-weight: 1000;
  letter-spacing: -2px;
  background:
    radial-gradient(circle at 76% 18%, var(--gold) 0 11%, transparent 12%),
    linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 20px 52px rgba(11, 92, 255, 0.28);
}

.page-visual-inner h3 {
  font-size: 27px;
  line-height: 1.35;
  margin: 0 auto 18px;
  max-width: 310px;
}

.page-visual-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-visual-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid #dbeafe;
}

@media (max-width: 820px) {
  .page-visual-card {
    min-height: 390px;
  }

  .page-visual-inner {
    padding: 24px 18px;
  }

  .page-visual-mark {
    width: 82px;
    height: 82px;
    font-size: 30px;
  }

  .page-visual-inner h3 {
    font-size: 23px;
  }
}


/* =========================================================
   BEST FONT SYSTEM
   Headings: Cairo
   Body: IBM Plex Sans Arabic
========================================================= */

body {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-weight: 500;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
.brand,
.btn,
.nav a,
.kicker,
.card .mini,
.stat strong,
.step-number,
.logo-mark {
  font-family: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif !important;
}

h1 {
  font-weight: 900;
  letter-spacing: -1px;
}

h2 {
  font-weight: 850;
  letter-spacing: -0.4px;
}

h3 {
  font-weight: 800;
}

p,
.card p,
.panel p,
.step p,
.section-head p,
.lead {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif !important;
  font-weight: 500;
  line-height: 2;
}

.btn,
.nav a {
  font-weight: 800;
}

.kicker,
.card .mini {
  font-weight: 800;
}

@media (max-width: 820px) {
  h1 {
    letter-spacing: -0.3px;
  }

  p,
  .card p,
  .panel p,
  .step p,
  .section-head p,
  .lead {
    line-height: 1.95;
  }
}


/* =========================================================
   HERO FINAL POLISH
   إخراج نهائي لصورة الهيرو
========================================================= */

.hero-card-photo {
  position: relative !important;
  min-height: 600px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 38px !important;
  background: #eef6ff !important;
  border: 1px solid rgba(191, 219, 254, 0.95) !important;
  box-shadow: 0 34px 90px rgba(7, 27, 74, 0.16) !important;
}

.hero-card-photo::before,
.hero-card-photo::after {
  display: none !important;
}

.hero-photo-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 44% center !important;
  display: block !important;
  z-index: 1 !important;
}

.hero-photo-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background:
    linear-gradient(180deg, rgba(2, 8, 20, 0.00), rgba(2, 8, 20, 0.18)),
    linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  pointer-events: none !important;
}

.hero-card-photo .hero-badge.premium {
  position: absolute !important;
  z-index: 3 !important;
  right: 24px !important;
  left: auto !important;
  bottom: 24px !important;
  width: auto !important;
  max-width: 360px !important;
  padding: 13px 20px !important;
  border-radius: 999px !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  font-weight: 900 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #061a3d !important;
  border: 1px solid rgba(191, 219, 254, 0.95) !important;
  box-shadow: 0 18px 42px rgba(7, 27, 74, 0.16) !important;
  backdrop-filter: blur(12px) !important;
}

@media (max-width: 820px) {
  .hero-card-photo {
    min-height: 440px !important;
  }

  .hero-photo-img {
    object-position: 43% top !important;
  }

  .hero-card-photo .hero-badge.premium {
    right: 16px !important;
    left: 16px !important;
    bottom: 16px !important;
    max-width: none !important;
    font-size: 14px !important;
  }
}

/* END HERO FINAL POLISH */



/* =========================================================
   PAGE PHOTO CARD SYSTEM
========================================================= */

.page-photo-card {
  position: relative !important;
  min-height: 520px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 38px !important;
  background: #eef6ff !important;
  border: 1px solid rgba(191, 219, 254, 0.95) !important;
  box-shadow: 0 30px 80px rgba(7, 27, 74, 0.14) !important;
}

.page-photo-card::before,
.page-photo-card::after {
  display: none !important;
}

.page-photo-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  z-index: 1 !important;
}

.page-photo-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(180deg, rgba(2, 8, 20, 0.00), rgba(2, 8, 20, 0.22));
  pointer-events: none !important;
}

.page-photo-card .hero-badge.premium {
  position: absolute !important;
  z-index: 3 !important;
  right: 22px !important;
  left: 22px !important;
  bottom: 22px !important;
  max-width: none !important;
  padding: 14px 18px !important;
  border-radius: 22px !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #061a3d !important;
  border: 1px solid rgba(191, 219, 254, 0.95) !important;
  backdrop-filter: blur(12px) !important;
}

@media (max-width: 820px) {
  .page-photo-card {
    min-height: 430px !important;
  }
}

/* END PAGE PHOTO CARD SYSTEM */


/* =========================================================
   LIVE HOME UPGRADE - 2026-05-25
========================================================= */

.home-upgrade-section {
  padding-top: 76px;
}

.home-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.home-path-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 430px;
  background: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.95);
  box-shadow: 0 24px 70px rgba(7, 27, 74, 0.10);
}

.home-path-card img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: #eef6ff;
}

.home-path-card > div {
  padding: 22px 20px 24px;
}

.home-path-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
}

.home-path-card p {
  margin: 0 0 16px;
  line-height: 1.9;
  color: #4b6385;
  font-size: 15px;
}

.home-trust-section {
  padding-top: 18px;
}

.home-trust-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(6, 26, 61, 0.96), rgba(15, 62, 134, 0.92));
  border: 1px solid rgba(191, 219, 254, 0.25);
  box-shadow: 0 26px 80px rgba(7, 27, 74, 0.20);
}

.home-trust-box > div {
  padding: 26px 24px;
  border-inline-start: 1px solid rgba(255,255,255,0.12);
}

.home-trust-box > div:first-child {
  border-inline-start: 0;
}

.home-trust-box strong {
  display: block;
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 8px;
}

.home-trust-box span {
  display: block;
  color: rgba(255,255,255,0.78);
  line-height: 1.9;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .home-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-upgrade-section {
    padding-top: 48px;
  }

  .home-path-grid,
  .home-trust-box {
    grid-template-columns: 1fr;
  }

  .home-path-card {
    min-height: auto;
  }

  .home-path-card img {
    height: 260px;
  }

  .home-trust-box > div {
    border-inline-start: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .home-trust-box > div:first-child {
    border-top: 0;
  }
}

/* END LIVE HOME UPGRADE */









/* =========================================================
   FINAL GLOBAL HEADER NAV FIX
========================================================= */

:root {
  --font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-head: "Cairo", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

html {
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.final-menu-open {
  overflow: hidden;
}

h1, h2, h3, h4,
.brand,
.btn,
.nav a,
.nav-more-toggle,
.kicker,
.mini,
.logo-mark {
  font-family: var(--font-head);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(191, 219, 254, .7);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  position: relative;
}

.brand {
  flex: 0 0 auto;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  line-height: 1.1;
  font-weight: 900;
  color: #071b4a;
  white-space: nowrap;
}

.brand-text small {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  margin-top: 3px;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav a,
.nav-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.nav a:hover,
.nav a.active,
.nav a[aria-current="page"],
.nav-more.open .nav-more-toggle,
.nav-more-toggle:hover {
  color: var(--blue);
  background: #eff6ff;
  border-color: rgba(191, 219, 254, .95);
}

.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 50%;
  transform: translateX(50%);
  min-width: 235px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(191, 219, 254, .95);
  box-shadow: 0 28px 80px rgba(7, 27, 74, .16);
  gap: 7px;
  z-index: 100000;
}

.nav-more.open .nav-more-menu {
  display: grid;
}

.nav-more-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 16px;
  background: #f8fbff;
}

.nav-cta {
  flex: 0 0 auto;
  min-height: 48px;
  padding-inline: 20px;
  white-space: nowrap;
}

.menu-btn {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

@media (max-width: 1250px) {
  .site-header .nav-cta {
    display: none;
  }

  .brand {
    min-width: 190px;
  }

  .nav a,
  .nav-more-toggle {
    font-size: 13px;
    padding-inline: 9px;
  }
}

@media (max-width: 1050px) {
  .header-inner {
    min-height: 76px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 12px;
    left: 12px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 14px 14px 22px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(191, 219, 254, .95);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(7, 27, 74, .16);
    backdrop-filter: blur(16px);
    z-index: 100000;
  }

  .nav.open {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav.open > a,
  .nav.open .nav-more-toggle,
  .nav.open .nav-more-menu a {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    font-size: 15px;
    padding: 12px 10px;
    background: #f8fbff;
    border: 1px solid rgba(191, 219, 254, .75);
    border-radius: 999px;
  }

  .nav-more {
    width: 100%;
    display: grid;
    gap: 8px;
  }

  .nav-more-toggle {
    color: #64748b;
    background: #eef6ff !important;
    cursor: default;
  }

  .nav-more-toggle::after {
    content: " المتبقية";
  }

  .nav-more-menu {
    display: grid !important;
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .header-inner {
    min-height: 74px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    font-size: 15px;
  }

  .brand-text small {
    display: none;
  }

  .logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .nav {
    top: 74px;
    max-height: calc(100vh - 88px);
  }
}

/* END FINAL GLOBAL HEADER NAV FIX */


/* =========================================================
   HOME CARDS FINAL LAYOUT FIX
========================================================= */

.home-path-grid,
.home-final-routes {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.home-path-card,
.home-final-route {
  height: 100%;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 30px;
  overflow: hidden;
}

.home-path-card {
  background: #ffffff;
}

.home-path-card img {
  width: 100%;
  height: 235px !important;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex: 0 0 auto;
}

.home-path-card > div,
.home-final-route {
  text-align: right;
}

.home-path-card > div {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px !important;
}

.home-path-card .mini,
.home-final-route .mini {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0f62fe;
  border: 1px solid rgba(191, 219, 254, .95);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.home-path-card h3,
.home-final-route h3 {
  margin: 0 0 12px !important;
  color: #071b4a;
  font-size: clamp(23px, 2vw, 31px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
}

.home-path-card p,
.home-final-route p {
  margin: 0 0 20px !important;
  color: #415a7a !important;
  line-height: 1.95 !important;
  font-size: 16px !important;
}

.home-path-card .card-link,
.home-final-route a {
  margin-top: auto;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #0f62fe;
  background: rgba(15, 98, 254, .08);
  border: 1px solid rgba(15, 98, 254, .16);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
}

.home-path-card .card-link:hover,
.home-final-route a:hover {
  background: #0f62fe;
  color: #ffffff;
  transform: translateY(-2px);
}

.home-path-card,
.home-final-route {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-path-card:hover,
.home-final-route:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 90px rgba(7, 27, 74, .16);
  border-color: rgba(15, 98, 254, .28);
}

/* ترتيب كروت المسارات الجديدة */
.home-final-route {
  padding: 28px !important;
  justify-content: flex-start;
}

.home-final-route::before {
  opacity: .95;
}

/* تحسين المسافات بين الأقسام في الرئيسية */
.home-upgrade-section,
.home-final-section {
  overflow: hidden;
}

.home-path-grid {
  gap: 22px !important;
}

.home-final-routes {
  gap: 20px !important;
}

/* منع تداخل الصور مع النص في أحجام اللابتوب */
@media (max-width: 1280px) {
  .home-path-card img {
    height: 220px !important;
  }

  .home-path-card h3,
  .home-final-route h3 {
    font-size: 25px !important;
  }

  .home-path-card p,
  .home-final-route p {
    font-size: 15.5px !important;
  }
}

@media (max-width: 1100px) {
  .home-path-grid,
  .home-final-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-path-card img {
    height: 260px !important;
  }
}

@media (max-width: 720px) {
  .home-path-grid,
  .home-final-routes {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .home-path-card img {
    height: 280px !important;
  }

  .home-path-card > div,
  .home-final-route {
    padding: 22px 20px 24px !important;
  }

  .home-path-card h3,
  .home-final-route h3 {
    font-size: 26px !important;
  }

  .home-path-card p,
  .home-final-route p {
    font-size: 15.5px !important;
  }
}

@media (max-width: 430px) {
  .home-path-card img {
    height: 240px !important;
  }

  .home-path-card h3,
  .home-final-route h3 {
    font-size: 23px !important;
  }
}

/* END HOME CARDS FINAL LAYOUT FIX */


/* =========================================================
   FOOTER AND MOBILE MENU FINAL POLISH
========================================================= */

/* إزالة الفراغ الزائد أسفل الموقع */
html,
body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

.site-footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.site-footer .container {
  padding-bottom: 0 !important;
}

.footer-bottom {
  margin-bottom: 0 !important;
  padding-bottom: 14px !important;
}

main {
  margin-bottom: 0 !important;
}

main > section:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 40px !important;
}

/* تصغير قائمة الهاتف وجعلها قابلة للتمرير */
@media (max-width: 1050px) {
  body.final-menu-open {
    overflow: hidden;
  }

  .nav {
    top: 74px !important;
    right: 14px !important;
    left: 14px !important;
    max-height: min(72vh, 520px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 10px 10px 14px !important;
    border-radius: 22px !important;
    gap: 6px !important;
  }

  .nav.open {
    gap: 6px !important;
  }

  .nav.open > a,
  .nav.open .nav-more-toggle,
  .nav.open .nav-more-menu a {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 16px !important;
    line-height: 1.25 !important;
  }

  .nav-more,
  .nav-more-menu {
    gap: 6px !important;
  }

  .nav-more-toggle {
    min-height: 36px !important;
    opacity: .82;
  }

  .nav-more-toggle::after {
    content: "" !important;
  }
}

@media (max-width: 620px) {
  .site-header,
  .header-inner {
    min-height: 70px !important;
  }

  .nav {
    top: 70px !important;
    right: 10px !important;
    left: 10px !important;
    max-height: min(70vh, 480px) !important;
    padding: 9px 9px 12px !important;
  }

  .nav.open > a,
  .nav.open .nav-more-toggle,
  .nav.open .nav-more-menu a {
    min-height: 36px !important;
    padding: 7px 9px !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 430px) {
  .nav {
    max-height: min(68vh, 450px) !important;
  }

  .nav.open > a,
  .nav.open .nav-more-toggle,
  .nav.open .nav-more-menu a {
    min-height: 35px !important;
    font-size: 12px !important;
  }
}

/* END FOOTER AND MOBILE MENU FINAL POLISH */


/* =========================================================
   MOBILE HIDE MORE BUTTON FINAL
========================================================= */

/* في الكمبيوتر يظهر زر المزيد كقائمة منسدلة */
@media (min-width: 1051px) {
  .nav-more-toggle {
    display: inline-flex !important;
  }
}

/* في الهاتف لا نعرض "المزيد"؛ نعرض روابطه مباشرة */
@media (max-width: 1050px) {
  .nav.open .nav-more-toggle {
    display: none !important;
  }

  .nav.open .nav-more {
    width: 100% !important;
    display: grid !important;
    gap: 6px !important;
  }

  .nav.open .nav-more-menu {
    display: grid !important;
    position: static !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    gap: 6px !important;
  }

  .nav.open .nav-more-menu a {
    width: 100% !important;
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 12.5px !important;
    border-radius: 16px !important;
    justify-content: center !important;
  }

  .nav.open > a {
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 12.5px !important;
    border-radius: 16px !important;
  }

  .nav {
    max-height: min(70vh, 470px) !important;
    padding: 9px 9px 12px !important;
  }
}

@media (max-width: 430px) {
  .nav.open > a,
  .nav.open .nav-more-menu a {
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: 12px !important;
  }

  .nav {
    max-height: min(68vh, 440px) !important;
  }
}

/* END MOBILE HIDE MORE BUTTON FINAL */

