/* =================================================================
   نموذج «ركن للتكييف والصيانة»: موقع شركة خدمات بخمس صفحات (يطابق باقة «حضور»)
   تدقيق 15 أكتوبر: نموذج قريب من المشتري الأساسي، بنصوص خدمات وأعمال ومناطق وأسئلة وطلب واضح.
   تصميم فاتح مستقل عن هوية نواة، لأنه موقع عميل لا صفحة من نواة
   ================================================================= */
@font-face { font-family: "Readex Pro"; src: url("../../assets/fonts/readex-arabic.woff2") format("woff2"); font-weight: 200 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "Readex Pro"; src: url("../../assets/fonts/readex-latin.woff2") format("woff2"); font-weight: 200 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../../assets/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "IBM Plex Sans Arabic"; src: url("../../assets/fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "IBM Plex Sans Arabic"; src: url("../../assets/fonts/plex-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #F5F8FA;
  --surface: #FFFFFF;
  --ink: #0F1E2B;
  --ink-2: #44535F;
  --ink-3: #66747F;
  --line: #DFE6EB;
  --brand: #0A6F80;
  --brand-ink: #064C58;
  --brand-soft: #E3F2F4;
  --warm: #94500A;
  --warm-soft: #FDF1E3;
  --navy: #0F1E2B;
  --nawah: #3DDC97;
  --radius: 16px;
  --wrap: 1120px;
  --font-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.02rem; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; margin: 0; font-weight: 600; letter-spacing: 0; text-wrap: balance; }
button, a, .c-chip, select { touch-action: manipulation; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.c-wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- شريط نواة: الصفحة نموذج ---------- */
.nawah-ribbon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; padding: 7px 16px; background: var(--navy); color: #DCE5EA; font-size: 0.84rem; line-height: 1.6; text-align: center; }
.nawah-ribbon strong { color: #fff; font-weight: 600; }
.nawah-ribbon a { color: var(--nawah); font-weight: 600; display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 640px) { .nawah-ribbon { font-size: 0.78rem; gap: 0 14px; } .nawah-ribbon .ribbon-long, .nawah-ribbon .ribbon-all { display: none; } }

/* ---------- الترويسة ---------- */
.c-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.c-header-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.c-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.c-logo svg { width: 34px; height: 34px; color: var(--brand); }
.c-logo small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--ink-3); line-height: 1.2; }
.c-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.c-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 0.96rem; min-height: 44px; display: inline-flex; align-items: center; }
.c-nav a:hover { color: var(--ink); background: var(--bg); }
.c-nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 600; background: var(--brand-soft); }
.c-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.2s, transform 0.12s ease-out; }
.c-cta:hover { background: var(--brand-ink); }
.c-cta:active { transform: scale(0.97); }
.c-cta--ghost { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.c-cta--ghost:hover { background: var(--brand-soft); }
.c-cta--small { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.c-menu { display: none; margin-inline-start: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.c-menu span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; }
@media (max-width: 860px) {
  .c-menu { display: block; }
  .c-header .c-cta--small { display: none; }
  .c-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 2px; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(15, 30, 43, 0.35); }
  .c-nav.is-open { display: flex; }
  .c-nav .c-nav-cta { margin-top: 6px; justify-content: center; background: var(--brand); color: #fff; }
}
@media (min-width: 861px) { .c-nav .c-nav-cta { display: none; } }

/* ---------- البطل ---------- */
.c-hero { padding-block: clamp(40px, 7vw, 88px) clamp(36px, 6vw, 72px); background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.c-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .c-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.c-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 0.88rem; font-weight: 600; margin-bottom: 16px; }
.c-hero .c-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; max-width: 36rem; }
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.c-hero-note { margin-top: 14px; color: var(--ink-3); font-size: 0.9rem; }
.c-hero-art { position: relative; border-radius: 22px; background: linear-gradient(160deg, #0A6F80, #0F3F4C); color: #fff; padding: 26px; min-height: 280px; overflow: hidden; }
.c-hero-art svg.c-unit { width: 100%; height: auto; }
.c-hero-card { position: absolute; inset-inline-end: 18px; bottom: 18px; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.45); font-size: 0.9rem; line-height: 1.6; max-width: 15rem; }
.c-hero-card b { display: block; color: var(--brand-ink); }

/* ---------- الأقسام ---------- */
.c-section { padding-block: clamp(48px, 7vw, 84px); }
.c-section--white { background: var(--surface); border-block: 1px solid var(--line); }
.c-head { max-width: 40rem; margin-bottom: 28px; }
.c-head p { margin-top: 10px; color: var(--ink-2); }
.c-page-hero { padding-block: clamp(36px, 6vw, 64px) 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.c-page-hero p { margin-top: 10px; color: var(--ink-2); max-width: 40rem; }
.c-crumbs { font-size: 0.86rem; color: var(--ink-3); margin-bottom: 10px; }
.c-crumbs a { color: var(--ink-3); }

.c-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.c-fact { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.c-fact svg, .c-ic { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.c-fact b { display: block; font-size: 1rem; }
.c-fact span { color: var(--ink-2); font-size: 0.92rem; line-height: 1.7; }

.c-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.c-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
a.c-card:hover { border-color: var(--brand); box-shadow: 0 14px 30px -22px rgba(10, 111, 128, 0.6); }
.c-card p { color: var(--ink-2); font-size: 0.95rem; }
.c-price { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand-ink); }
.c-price small { color: var(--ink-3); font-weight: 400; }
.c-go { color: var(--brand-ink); font-weight: 600; font-size: 0.94rem; }

.c-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.c-steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 20px; padding-top: 54px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.c-steps li::before { content: counter(s); position: absolute; top: 16px; inset-inline-start: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-family: var(--font-head); }
.c-steps p { color: var(--ink-2); font-size: 0.94rem; margin-top: 4px; }

.c-areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.c-areas li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.94rem; }

.c-faq { display: grid; gap: 10px; max-width: 46rem; }
.c-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.c-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.c-faq details p { padding: 0 18px 16px; color: var(--ink-2); }

.c-band { padding: clamp(28px, 5vw, 44px); border-radius: 22px; background: var(--navy); color: #fff; display: grid; gap: 16px; }
.c-band p { color: #C9D5DD; }
@media (min-width: 800px) { .c-band { grid-template-columns: 1fr auto; align-items: center; } }

.c-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.c-list li { position: relative; padding-inline-start: 26px; color: var(--ink-2); }
.c-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 14px; height: 8px; border-inline-start: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg) translateY(-3px); }
.c-list--x li::before { width: 12px; height: 12px; border: 0; background: linear-gradient(45deg, transparent 44%, var(--warm) 44%, var(--warm) 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--warm) 44%, var(--warm) 56%, transparent 56%); transform: none; top: 0.5em; }

/* الخدمات المفصلة */
.c-svc { display: grid; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 90px; }
@media (min-width: 860px) { .c-svc { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.c-svc + .c-svc { margin-top: 16px; }
.c-meta { display: grid; gap: 8px; margin: 0; }
.c-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.c-meta dt { color: var(--ink-3); }
.c-meta dd { margin: 0; font-weight: 600; text-align: end; }

.c-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.c-table th, .c-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.c-table thead th { background: var(--brand-soft); color: var(--brand-ink); font-size: 0.92rem; }
.c-table tr:last-child td { border-bottom: 0; }
.c-two { display: grid; gap: 24px; }
@media (min-width: 860px) { .c-two { grid-template-columns: 1fr 1fr; } }

/* الأعمال */
.c-work { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.c-work-art { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(150deg, var(--brand-soft), #fff); color: var(--brand); }
.c-work-art svg { width: 58%; height: auto; }
.c-work-body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.c-work-body .c-tag { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--warm-soft); color: var(--warm); font-size: 0.82rem; font-weight: 600; }
.c-work dl { margin: 6px 0 0; display: grid; gap: 4px; font-size: 0.92rem; }
.c-work dl div { display: flex; gap: 8px; }
.c-work dt { color: var(--ink-3); min-width: 4.5em; }
.c-work dd { margin: 0; color: var(--ink-2); }
.c-note { padding: 12px 16px; border-radius: 12px; background: var(--warm-soft); color: #6B3A08; font-size: 0.92rem; }

/* ---------- نموذج الطلب ---------- */
.c-form-wrap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .c-form-wrap { grid-template-columns: 1.4fr 0.8fr; } }
.c-form { padding: clamp(20px, 4vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 20px; }
.c-pill { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 0.86rem; }
.c-step { display: grid; gap: 18px; }
.c-step[hidden] { display: none; }
.c-field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.c-field > label, .c-field legend { font-weight: 600; padding: 0; }
.c-hint { color: var(--ink-3); font-weight: 400; font-size: 0.88rem; }
.c-input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid #C9D3DA; background: #fff; }
.c-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 111, 128, 0.18); }
textarea.c-input { min-height: 96px; resize: vertical; line-height: 1.7; }
.c-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.c-chip { position: relative; }
.c-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.c-chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border-radius: 12px; border: 1px solid #C9D3DA; background: #fff; transition: border-color 0.2s, background-color 0.2s; }
.c-chip input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.c-chip input:focus-visible + span { outline: 3px solid var(--warm); outline-offset: 2px; }
.c-err { color: #B42318; font-size: 0.9rem; }
.c-err:empty { display: none; }
.c-nav-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.c-summary { margin: 0; display: grid; border-top: 1px solid var(--line); }
.c-summary div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.c-summary dt { color: var(--ink-3); }
.c-summary dd { margin: 0; overflow-wrap: anywhere; }
.c-side { display: grid; gap: 14px; }
.c-side .c-card { gap: 6px; }

/* ---------- سياق نواة: هذا النموذج وما يكلفه ---------- */
.nawah-cta { margin-block: 0; padding: 22px 16px; background: #0B0D10; color: #DCE5EA; text-align: center; }
.nawah-cta p { max-width: 46rem; margin: 0 auto; line-height: 1.9; font-size: 0.95rem; }
.nawah-cta strong { color: #fff; }
.nawah-cta a { color: var(--nawah); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- التذييل ---------- */
.c-footer { padding-block: 40px 28px; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.94rem; color: var(--ink-2); }
.c-footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.c-footer h2 { font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.c-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.c-footer a { color: var(--ink-2); display: inline-flex; min-height: 36px; align-items: center; }
.c-footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-3); }

/* ---------- داخل معاينة الرئيسية (iframe) ---------- */
.c-embed .nawah-ribbon, .c-embed .nawah-cta, .c-embed .skip { display: none !important; }
.c-embed .c-header { position: static; }
.c-embed body { overflow: hidden; }
