@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --ink: #1b2a30;
  --muted: #738a96;
  --line: #e8edf0;
  --paper: #ffffff;
  --deep: #3a2515;
  --gold: #c9822b;
  --gold-dark: #a7641d;
  --green: #2ba66a;
  --red: #d94848;
  --shadow: 0 22px 50px rgba(28, 33, 36, .12);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: #fbfbfa;
  font-family: "Tajawal", "DIN Next LT Arabic", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}
body, input, select, textarea, button {
  -webkit-text-size-adjust: 100%;
}
p, h1, h2, h3, b, span, a, td, th, label {
  overflow-wrap: anywhere;
}
img, svg, video, canvas, table { max-width: 100%; }
main, section, header, footer, form, .hero-content, .feature, .stat, .complaint-card, .assurance-card, .success-card {
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
.top-line { height: 3px; background: #bfe4e7; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 9vw, 160px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  width: 100%;
  max-width: 100%;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; max-width: 100%; }
.brand strong { display: block; font-size: 22px; line-height: 1.1; font-weight: 800; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--deep);
  box-shadow: inset 0 0 0 1px rgba(216,146,54,.26), 0 10px 24px rgba(58,37,21,.16);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark .shield { fill: none; stroke: #d89236; stroke-width: 2.7; stroke-linejoin: round; }
.brand-mark .paper { fill: rgba(216,146,54,.12); stroke: #d89236; stroke-width: 2; stroke-linejoin: round; }
.brand-mark .fold, .brand-mark .check { fill: none; stroke: #d89236; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffaf3;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 22px rgba(58,37,21,.08);
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--deep);
  transition: transform .2s, opacity .2s;
}
.nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.links { display: flex; gap: clamp(14px, 2vw, 34px); font-size: 15px; font-weight: 800; color: #485960; }
.links a { transition: color .2s, transform .2s; white-space: nowrap; }
.links a:hover { color: var(--gold); transform: translateY(-2px); }
.nav-cta, .primary, .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #d99237);
  box-shadow: 0 12px 24px rgba(169, 100, 29, .22);
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.primary:hover, .submit-btn:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(169, 100, 29, .28); filter: saturate(1.04); }

.section { display: none !important; }
.section.active { display: block !important; }
.section.hero.active, .section.success-wrap.active { display: grid !important; }
.home-extra.hidden { display: none !important; }
.hero { position: relative; min-height: 580px; place-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: drift 18s ease-in-out infinite alternate; }
.hero-layer { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58,37,21,.94), rgba(58,37,21,.72), rgba(58,37,21,.94)); }
.hero-content { position: relative; max-width: 820px; text-align: center; color: white; padding: 48px 20px; }
.pill {
  display: inline-flex;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 30px 0 12px; font-size: clamp(44px, 6vw, 72px); line-height: 1.13; font-weight: 800; letter-spacing: 0; }
.hero h1 span { color: #e29b3e; }
.hero p { color: rgba(255,255,255,.78); font-size: 19px; max-width: 760px; margin-inline: auto; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.secondary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-weight: 800;
}
.trust-row { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 44px; color: rgba(255,255,255,.65); font-weight: 700; }

.feature-band, .stats, .content-page, .form-zone, .success-wrap, .admin-page {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 9vw, 160px);
  width: 100%;
  max-width: 100%;
}
.feature-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; background: #fff; padding-top: 78px; }
.feature, .stat, .complaint-card, .success-card, .law-card, .step, .login-card, .company {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.feature { min-height: 268px; padding: 48px 42px; text-align: right; position: relative; }
.feature i { display: block; color: var(--gold); font-style: normal; font-size: 34px; margin-bottom: 14px; }
.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 0 26px auto;
  border-radius: 9px;
  color: var(--gold);
  background: #fff6eb;
  font-size: 26px;
  font-weight: 900;
}
.feature b, .step b, .law-card b { display: block; font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.feature p, .step p, .law-card p, .page-head p { color: var(--muted); }
.feature p { font-size: 18px; line-height: 1.9; margin-bottom: 0; }
.section-title, .page-head { text-align: center; max-width: 860px; margin: 0 auto 48px; }
.section-title h2, .page-head h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.25; margin-bottom: 12px; font-weight: 800; letter-spacing: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { padding: 30px; text-align: center; }
.stat strong { display: block; font-size: 34px; direction: ltr; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-weight: 800; }

.form-zone { background: linear-gradient(var(--deep) 0 260px, #fbfbfa 260px); }
.form-zone .page-head { color: white; }
.form-zone .page-head p { color: rgba(255,255,255,.72); }
.assurance-card {
  position: relative;
  max-width: 860px;
  width: 100%;
  margin: -18px auto 28px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(239, 220, 192, .95);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf3, #ffffff 52%, #fff7ec);
  box-shadow: 0 26px 60px rgba(58, 37, 21, .13);
}
.assurance-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,130,43,.2), transparent 65%);
  animation: glowMove 5s ease-in-out infinite alternate;
}
.assurance-main {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}
.assurance-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #e1a552);
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(201,130,43,.28);
  animation: pulseGold 1.9s ease-in-out infinite;
}
.assurance-main b { display: block; font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.assurance-main p { margin: 0; color: #5f747e; font-size: 17px; line-height: 1.9; }
.assurance-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.assurance-steps span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #efdfc8;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: #6a4a27;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.complaint-card, .login-card { max-width: 860px; width: 100%; margin: 0 auto; padding: clamp(24px, 5vw, 48px); }
.notice {
  margin: -48px -48px 36px;
  padding: 24px 48px;
  background: #fff8ef;
  border-bottom: 1px solid #f0dfc8;
  color: #52666f;
  font-weight: 800;
}
.grid.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 28px; }
label, legend { display: block; color: var(--ink); font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,130,43,.12); }
textarea { min-height: 170px; padding-block: 12px; resize: vertical; }
.radio-row { border: 0; padding: 18px 0 34px; display: flex; gap: 28px; align-items: center; }
.radio-row input { width: 18px; min-height: 18px; margin: 0 0 0 8px; accent-color: var(--gold); }
.captcha-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #efdcc0;
  border-radius: 8px;
  background: #fffbf5;
}
.captcha-box strong {
  display: block;
  margin-top: 8px;
  padding: 12px;
  border-radius: 7px;
  background: #fff;
  color: var(--gold-dark);
  text-align: center;
  font-size: 28px;
  letter-spacing: 8px;
  direction: ltr;
}
.submit-btn { width: 100%; font-size: 19px; }
.fine-print { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.hp { position: absolute; left: -10000px; }
.error { color: var(--red); margin-top: 14px; font-weight: 800; text-align: center; }
.info { color: var(--gold-dark); margin-top: 14px; font-weight: 800; text-align: center; }

.success-wrap { min-height: 760px; place-items: center; }
.success-card { width: min(700px, 100%); padding: 58px; text-align: center; }
.success-icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border-radius: 50%;
  color: var(--green);
  background: #dff9ea;
  font-size: 34px;
  font-weight: 800;
}
.tracking { margin: 30px auto; padding: 22px; border: 1px solid #efdcc0; border-radius: 8px; background: #fffdf9; }
.tracking span { display: block; font-weight: 800; }
.tracking strong { display: block; margin-top: 12px; color: var(--gold-dark); font-size: 26px; letter-spacing: 5px; direction: ltr; overflow-wrap: anywhere; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 980px; margin: auto; }
.dark-head { background: linear-gradient(var(--deep) 0 220px, #fbfbfa 220px); }
.dark-head .page-head { color: #fff; }
.dark-head .page-head p { color: rgba(255,255,255,.72); }
.timeline { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.step { padding: 34px; min-height: 190px; }
.search { max-width: 440px; display: block; margin: 0 auto 38px; }
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1200px; margin: auto; }
.company { padding: 28px; min-height: 150px; }
.company span { float: left; display: grid; place-items: center; min-width: 70px; padding: 8px; color: var(--red); background: #fff0f0; border-radius: 7px; font-weight: 800; }
.company span small { display: block; font-size: 12px; }
.company b { display: block; margin-top: 44px; font-size: 21px; font-weight: 800; }
.company p { color: var(--muted); margin-bottom: 0; }
.law-card { max-width: 920px; margin: 0 auto 46px; padding: 32px; text-align: center; }
details { max-width: 920px; margin: 0 auto; padding: 18px 24px; background: #fff; border: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; font-size: 18px; }
details p { color: var(--muted); }

.hidden { display: none !important; }
.login-card { max-width: 440px; display: grid; gap: 18px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto 28px; }
.dash-stats div { padding: 22px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.dash-stats strong { display: block; font-size: 30px; font-weight: 800; }
.dash-stats span { color: var(--muted); font-weight: 800; }
.table-wrap { width: 100%; max-width: 1180px; margin: auto; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 15px; border-bottom: 1px solid var(--line); text-align: right; }
th { background: #f8fafb; font-weight: 800; }

.footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px clamp(18px, 9vw, 160px); background: var(--deep); color: white; }
.footer p, .footer a { color: rgba(255,255,255,.68); }
.footer a { display: block; margin-top: 8px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes drift { from { transform: scale(1.03) translateX(-10px); } to { transform: scale(1.08) translateX(10px); } }
@keyframes pulseGold {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 30px rgba(201,130,43,.24); }
  50% { transform: scale(1.06); box-shadow: 0 20px 38px rgba(201,130,43,.34); }
}
@keyframes glowMove {
  from { transform: translate3d(0, 0, 0); opacity: .65; }
  to { transform: translate3d(24px, 18px, 0); opacity: 1; }
}

@media (max-width: 980px) {
  * { min-width: 0; }
  .nav {
    min-height: 70px;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand { min-width: 0; flex: 1; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 11px; }
  .brand-mark { width: 40px; height: 40px; flex: 0 0 40px; }
  .menu-toggle { display: inline-flex; order: 2; }
  .links {
    order: 4;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    transition: max-height .28s ease, padding .28s ease, border-color .28s ease;
  }
  .nav.menu-open .links {
    max-height: 430px;
    padding: 14px 0 4px;
    border-top: 1px solid var(--line);
  }
  .links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #eee5d9;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fffaf4);
    color: #38484e;
    box-shadow: 0 10px 22px rgba(31, 35, 37, .06);
    text-align: center;
  }
  .links a:hover { transform: translateY(-1px); }
  .nav-cta {
    order: 3;
    min-height: 42px;
    padding: 0 15px;
    font-size: 14px;
  }
  .feature-band, .stat-grid, .value-grid, .company-grid, .footer { grid-template-columns: 1fr; }
  .timeline, .grid.two, .captcha-box, .dash-stats { grid-template-columns: 1fr; }
  .hero { min-height: 600px; }
  .hero-content { padding: 42px 18px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .hero-actions { gap: 10px; }
  .primary, .secondary { min-height: 44px; padding: 0 18px; }
  .trust-row { gap: 14px; margin-top: 34px; font-size: 14px; }
  .feature-band, .stats, .content-page, .form-zone, .success-wrap, .admin-page {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .assurance-card { margin-top: -22px; padding: 20px; }
  .assurance-steps { grid-template-columns: 1fr; }
  .feature { min-height: auto; padding: 32px 26px; }
  .notice { margin: -24px -24px 28px; padding: 20px 24px; }
  .success-card { padding: 34px 22px; }
  .tracking strong { font-size: 20px; letter-spacing: 3px; }
}

@media (max-width: 520px) {
  .nav { padding-inline: 12px; }
  .nav-cta { order: 4; width: 100%; }
  .links { order: 5; grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .pill { font-size: 13px; }
  .hero-actions a { width: 100%; justify-content: center; }
  .captcha-box strong { font-size: 24px; letter-spacing: 6px; }
  .form-zone { background: linear-gradient(var(--deep) 0 300px, #fbfbfa 300px); }
  .page-head { margin-bottom: 34px; }
  .page-head h2 { font-size: 31px; }
  .assurance-main { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .assurance-main p { font-size: 15px; }
  .assurance-icon { width: 58px; height: 58px; }
  .complaint-card, .login-card { padding: 22px 16px; }
  input, select, textarea { font-size: 16px; }
  .radio-row { flex-wrap: wrap; gap: 14px 24px; }
  .footer { padding-inline: 18px; }
}
