/* F.E. Ashkanani · feashkanani.com
   ملف واحد للستايل. بدون framework. الألوان والخط من هوية البراند المعتمدة (6 نوفمبر 2026). */

/* ---------- الخط: Markazi Text محمّل من الموقع نفسه (variable 400–700) ---------- */
@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/markazi-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/markazi-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- الألوان ---------- */
:root {
  --navy: #081226;        /* Ink Navy */
  --navy-2: #0d1a33;      /* كروت */
  --navy-3: #132341;      /* حدود */
  --gold: #D4B26A;        /* Champagne Gold */
  --gold-soft: rgba(212, 178, 106, .16);
  --gold-line: rgba(212, 178, 106, .07);
  --ink: #EEE8DA;         /* النص الأساسي */
  --muted: #A8B0C3;       /* النص الثانوي */
  --danger: #E8A39A;
  --radius: 14px;
  --wrap: 1080px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "Markazi Text", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
  font-size: 1.25rem;       /* Markazi صغير بطبيعته، فنكبّر الأساس */
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #e6c98a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.lat { font-family: "Markazi Text", Georgia, serif; direction: ltr; unicode-bidi: isolate; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* خطوط ذهبية خفيفة مثل سلم الأسعار */
.ladder {
  background-image: repeating-linear-gradient(to bottom, transparent 0 47px, var(--gold-line) 47px 48px);
}

/* ---------- الهيدر ---------- */
.site-header { border-bottom: 1px solid var(--navy-3); background: var(--navy); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 1.05rem; direction: ltr; white-space: nowrap; }
.brand:hover { color: var(--gold); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); background: var(--gold-soft); }

/* قائمة الجوال بدون JS: details/summary */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--navy-3); border-radius: 10px; padding: 0 14px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--gold); color: var(--gold); }
.menu .panel { position: absolute; inset-inline: 0; top: 100%; background: var(--navy-2); border-bottom: 1px solid var(--navy-3); padding: 8px var(--gutter) 16px; }
.menu .panel a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--navy-3); }
.menu .panel a[aria-current="page"] { color: var(--gold); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- الأقسام ---------- */
main { display: block; }
.section { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--navy-3); }
.eyebrow { color: var(--gold); font-size: .95rem; letter-spacing: .18em; font-weight: 600; margin: 0 0 8px; direction: ltr; text-align: right; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); color: var(--ink); }
h1 .g, h2 .g { color: var(--gold); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); }
h3 { font-size: 1.35rem; color: var(--gold); }
p { margin: 0 0 1em; }
.lead { font-size: 1.4rem; color: var(--ink); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 1.05rem; }

.hero { padding-block: 48px 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 12px 0; border-bottom: 1px solid var(--navy-3); }
.list-clean li strong { color: var(--gold); font-weight: 600; }

/* ---------- الأزرار ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font: inherit; font-size: 1.25rem; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--gold); transition: background .15s, color .15s; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e0c283; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

/* ---------- مكان الصور (placeholder) ---------- */
.photo-ph {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  border: 1px dashed rgba(212, 178, 106, .55);
  background: linear-gradient(160deg, #0f1d3a, var(--navy));
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 1.05rem; padding: 20px;
}
.photo-ph.wide { aspect-ratio: 16 / 9; }
.photo-ph.reel { aspect-ratio: 9 / 16; }
.photo-ph span { max-width: 16em; }

/* ---------- نص مؤقت (placeholder) ---------- */
.ph { color: var(--gold); opacity: .78; background: rgba(212, 178, 106, .08); border: 1px dashed rgba(212, 178, 106, .45); border-radius: 6px; padding: 0 .35em; font-style: normal; }
.ph-block { display: block; color: var(--muted); border: 1px dashed rgba(212, 178, 106, .4); background: rgba(212, 178, 106, .05); border-radius: 10px; padding: 12px 14px; margin: 0 0 1em; }
.ph-block::before { content: "نص مؤقت · "; color: var(--gold); font-weight: 600; }
.draft-banner { background: rgba(212, 178, 106, .12); border: 1px solid rgba(212, 178, 106, .5); color: var(--ink); border-radius: 10px; padding: 10px 14px; margin-bottom: 24px; font-size: 1.05rem; }

/* ---------- الملاحظة فوق النموذج ---------- */
.note { border-inline-start: 3px solid var(--gold); background: var(--navy-2); padding: 14px 16px; border-radius: 10px; border-start-start-radius: 0; border-end-start-radius: 0; margin-bottom: 24px; }

/* ---------- النموذج ---------- */
.form { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 1rem; }
.field .req { color: var(--gold); }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; min-height: 50px; font: inherit; font-size: 1.2rem; /* 16px+ عشان iOS ما يكبّر الصفحة */
  color: var(--ink); background: var(--navy); border: 1px solid #2a3a5c; border-radius: 10px; padding: 8px 14px;
}
input[type="email"] { direction: ltr; text-align: right; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; border: 1px solid #2a3a5c; border-radius: 10px; cursor: pointer; background: var(--navy); }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(212, 178, 106, .07); }
.choice input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; margin: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; line-height: 1.6; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin-top: 4px; accent-color: var(--gold); flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-error { display: none; color: var(--danger); border: 1px solid rgba(232, 163, 154, .5); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.form-error.show { display: block; }
.ts-slot:empty { display: none; }
.ts-slot { margin-bottom: 16px; }

/* ---------- الأسئلة الشائعة ---------- */
.faq details { border-bottom: 1px solid var(--navy-3); }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding-bottom: 16px; }

/* ---------- المحتوى المجاني ---------- */
.reel-card { display: block; text-decoration: none; color: var(--ink); }
.reel-card .photo-ph { margin-bottom: 10px; }
.reel-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.reel-card .meta b { color: var(--gold); font-weight: 600; }
.reels { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .reels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .reels { grid-template-columns: 1fr; } }

.term { border-bottom: 1px solid var(--navy-3); padding: 16px 0; }
.term dt { color: var(--gold); font-weight: 700; font-size: 1.35rem; direction: ltr; text-align: right; }
.term dd { margin: 4px 0 0; }

/* ---------- الصفحات القانونية ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.5rem; color: var(--gold); margin-top: 1.4em; }
.prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .7em; }
.prose ul { padding-inline-start: 1.3em; }
.updated { color: var(--muted); font-size: 1.05rem; }

/* ---------- الفوتر ---------- */
.site-footer { border-top: 1px solid var(--navy-3); padding-block: 32px 40px; margin-top: 24px; background: #060e1f; }
.site-footer .disc { color: var(--muted); font-size: 1.05rem; max-width: 52em; }
.site-footer nav ul { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--navy-3); padding-top: 16px; }
.site-footer .social a { display: inline-flex; align-items: center; min-height: 44px; margin-inline-end: 18px; }
.site-footer .copy { color: var(--muted); font-size: 1rem; direction: ltr; }

/* صفحة 404 وشكراً */
.center-page { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 520px) {
  body { font-size: 1.2rem; }
  .section { padding-block: 44px; }
  .form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* أدوات صغيرة (بدال inline style عشان الـ CSP) */
.mt { margin-top: 14px; }
.center-y { align-items: center; }

/* زر الهيدر */
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 1.1rem; }
.head-cta { margin-inline-start: auto; }
.site-header .wrap { gap: 12px; }
.menu .panel a.panel-cta { color: var(--gold); font-weight: 700; border-bottom: 0; }
@media (max-width: 860px) { .head-cta { margin-inline-start: auto; } }
@media (max-width: 400px) { .head-cta { display: none; } }
.site-footer .contact { margin: 0; color: var(--muted); font-size: 1.05rem; flex-basis: 100%; }

/* أخطاء الخانات + سطر تحت الزر + شارة */
.field-error { color: var(--danger); font-size: 1.05rem; margin: 6px 0 0; }
.field.has-error input, .field.has-error textarea, .field.has-error .choice { border-color: rgba(232, 163, 154, .7); }
.after-btn { color: var(--muted); font-size: 1.05rem; margin: 12px 0 0; }
.badge { display: inline-block; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 2px 14px; font-size: 1.1rem; margin-bottom: 18px; }
.callout { border: 1px solid rgba(212, 178, 106, .45); background: rgba(212, 178, 106, .06); border-radius: var(--radius); padding: 18px 20px; }
.callout h3 { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-inline-start: 22px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 10px; height: 2px; background: var(--gold); }
.axes { counter-reset: ax; list-style: none; padding: 0; margin: 0; }
.axes li { counter-increment: ax; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--navy-3); }
.axes li::before { content: counter(ax); color: var(--gold); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.hero-title { font-size: clamp(2.1rem, 6.4vw, 3.4rem); }
