/* نظام إدارة مكاتب الترجمة — أنماط واجهة الزوار (RTL) */
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../fonts/Cairo-Arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../fonts/Cairo-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --navy: #14213D; --navy-2: #1B2A4A; --blue: #2B4C8C;
  --green: #1E7B4F; --orange: #C77700; --red: #B3261E; --gray: #6B7280;
  --bg: #F5F7FA; --line: #E3E8EF; --ink: #1F2937;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', Tahoma, Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.8; font-size: 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 16px; }

/* ---------- الرأس والزرين ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 16px; }
.brand { font-size: 21px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.main-nav a:hover { background: var(--bg); text-decoration: none; }
.main-nav a.active { background: var(--navy); color: #fff; }
.header-actions { display: flex; gap: 10px; margin-inline-start: auto; }
.btn { display: inline-block; border: 0; cursor: pointer; border-radius: 9px; padding: 10px 18px; font-family: inherit; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.4; }
.btn:hover { text-decoration: none; opacity: .95; }
.btn-admin { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-demo { background: var(--green); color: #fff; border: 2px solid var(--green); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 7px; }
.menu-toggle { display: none; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font-family: inherit; font-weight: 700; cursor: pointer; }
.brand-row { display: flex; align-items: center; gap: 10px; }

/* ---------- الأقسام ---------- */
.site-main { min-height: 60vh; padding-bottom: 40px; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #24365E 100%); color: #fff; padding: 64px 0 72px; }
.hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 14px; max-width: 760px; }
.hero p { font-size: 17px; max-width: 720px; color: #D9E1F2; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-demo { background: #fff; color: var(--green); }
.section { padding: 46px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { color: var(--navy); font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.section h3 { color: var(--navy); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.section p { color: #3D4757; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { font-size: 17px; }
.card p { font-size: 14.5px; color: var(--gray); margin-top: 6px; }

.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: relative; }
.step .num { display: inline-block; width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px; }

.contact-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 6px; }

/* ---------- النماذج ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .field-full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; color: var(--navy); }
.field .req { color: var(--red); }
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=password], .field input[type=url], .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #CBD5E1; border-radius: 8px; font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #B7C6E4; border-color: var(--blue); }
.help { display: block; font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 18px; height: 18px; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.required-note { font-size: 13px; color: var(--gray); margin-bottom: 12px; }

/* ---------- الرسائل ---------- */
.flash-wrap { margin: 14px 0; }
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 700; margin-bottom: 8px; border: 1px solid; }
.flash-success { background: #EAF6EF; color: #16603C; border-color: #BFE3CD; }
.flash-error { background: #FDECEA; color: #8F231C; border-color: #F3C2BD; }
.flash-info { background: #EDF2FB; color: #274690; border-color: #C9D6EE; }

/* ---------- الجداول ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th { background: var(--navy); color: #fff; padding: 11px 12px; text-align: right; font-size: 14px; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.tbl tr:nth-child(even) td { background: #FAFBFD; }
.tbl .actions { white-space: nowrap; }
.tbl .empty { text-align: center; color: var(--gray); padding: 26px; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st-green { background: #E3F4EA; color: #16603C; }
.st-orange { background: #FCF0DC; color: #8A5A00; }
.st-red { background: #FDECEA; color: #8F231C; }
.st-blue { background: #E8EFFA; color: #274690; }
.st-gray { background: #EEF1F5; color: #4B5563; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--navy); color: #C9D3E6; margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; padding: 36px 16px 20px; }
.footer-cols h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-cols a { display: block; color: #C9D3E6; padding: 3px 0; font-size: 14.5px; }
.footer-cols p { font-size: 14px; }
.copyright { border-top: 1px solid #2A3A5F; padding: 14px 16px; text-align: center; font-size: 13.5px; }

.muted { color: var(--gray); font-size: 14px; }
.page-hero { background: var(--navy); color: #fff; padding: 34px 0; }
.page-hero h1 { font-size: 26px; font-weight: 800; }

.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 14px 18px; }
.faq-item summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq-item p { margin-top: 10px; color: #3D4757; }

/* ---------- التجاوب ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; order: 3; flex-direction: column; }
  .main-nav a { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  body.nav-open .main-nav { display: flex; }
  .header-actions { margin-inline-start: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .header-actions .btn { padding: 8px 13px; font-size: 13.5px; }
}
@media (max-width: 480px) {
  .header-row { gap: 10px; }
  .brand { font-size: 18px; }
  .header-actions { width: 100%; justify-content: flex-start; }
}
@media print {
  .site-header, .site-footer, .hero-actions, .menu-toggle, .flash-wrap { display: none !important; }
  body { background: #fff; }
}
