/* شركة القصعة — الأنماط المشتركة للموقع */
@font-face { font-family: 'Thmanyah Sans'; src: url('fonts/thmanyahsans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('fonts/thmanyahsans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('fonts/thmanyahsans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Thmanyah Serif'; src: url('fonts/thmanyahserifdisplay-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1f2228;
  --ink-2: #2E3138;
  --ink-soft: #4a4f59;
  --muted: #6c717b;
  --line: #e7e3dc;
  --line-strong: #d6d0c5;
  --paper: #fbfaf7;
  --paper-2: #f4f1ea;
  --white: #ffffff;
  --gold: #C98F4B;
  --gold-deep: #8A5A2B;
  --gold-wash: rgba(201, 143, 75, .10);
  --ok: #0f7b55;
  --ok-wash: #e8f5ef;
  --bad: #b42318;
  --bad-wash: #fdeceb;
  --radius: 14px;
  --max: 1160px;
  --sans: 'Thmanyah Sans', 'Segoe UI', Tahoma, sans-serif;
  --serif: 'Thmanyah Serif', 'Thmanyah Sans', serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- الهيدر ---------- */
.topline { height: 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold) 45%, var(--ink-2)); }
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; flex-shrink: 0; }
.brand b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.1; color: var(--ink-2); font-weight: 700; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .22em; color: var(--gold-deep); font-weight: 700; margin-top: 3px; direction: ltr; text-align: start; }
html[dir="rtl"] .brand small { text-align: right; }

.nav { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav a { font-size: 15px; color: var(--ink-soft); font-weight: 500; padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-dark:hover { background: var(--ink); }
.btn-gold { background: var(--gold); color: #1c1307; }
.btn-gold:hover { background: #d59c58; }
.btn-line { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-line:hover { border-color: var(--ink-2); background: var(--white); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.lang { min-width: 52px; font-weight: 700; font-size: 13.5px; }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink-2); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; inset-inline-start: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- عام ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--gold-deep); letter-spacing: .02em; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.h-sec { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; color: var(--ink-2); margin: 10px 0 14px; font-weight: 700; }
.lead { font-size: 17.5px; color: var(--ink-soft); max-width: 640px; }
.section { padding: 96px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: 48px; }

/* ---------- الفوتر ---------- */
.foot { background: #17191e; color: #a9adb6; padding: 64px 0 28px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot .brand b { color: #fff; }
.foot p { margin-top: 16px; max-width: 380px; line-height: 1.85; }
.foot h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: #7d828c; }

@media (max-width: 960px) {
  .nav, .head-actions .btn-verify { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; inset-inline: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.25);
  }
  .menu-open .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu-open .nav a::after { display: none; }
  .menu-open .nav .nav-verify { display: block; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}
@media (min-width: 961px) { .nav .nav-verify { display: none; } }
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .head-row { height: 68px; }
  .brand svg { width: 38px; height: 38px; }
  .brand b { font-size: 19px; }
  .brand small { font-size: 9px; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
