/* ==========================================================================
   شركة مقاولات — الواجهة الأمامية (Mobile-first، RTL/LTR بالخصائص المنطقية)
   الفكرة: لغة بصرية هندسية — كحلي فولاذي، خرسانة، وأمبر تحذيري. مخطط هندسي واحد مميّز في الواجهة.
   ========================================================================== */
:root {
  --ink: #0f2230;
  --steel: color-mix(in srgb, var(--ink) 86%, #fff);
  --primary: #ffb000;
  --on-primary: #10202c;
  --paper: #eceff1;
  --paper-2: #e1e6e9;
  --card: #fff;
  --line: #d3dade;
  --fg: #13202b;
  --muted: #5d6b75;
  --on-dark: rgba(255, 255, 255, .72);
  --r: 6px;
  --bar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --f-head: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--f-body); background: var(--paper); color: var(--fg); line-height: 1.8; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: calc(var(--bar-h) + var(--safe-b)); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.35; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.c-primary { color: var(--primary); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; border-radius: var(--r); z-index: 200; font-weight: 700; }
.skip:focus { top: .6rem; }
.hide-sm, .hide-mobile { display: none; }
@media (min-width: 720px) { .hide-sm { display: inline-flex; } }
@media (min-width: 900px) { .hide-mobile { display: inline-flex; } }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem 1.3rem; border: 2px solid transparent; border-radius: var(--r); font-family: var(--f-head); font-weight: 800; font-size: .98rem; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 54px; padding-inline: 1.8rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #1faa59; color: #fff; }
.btn-wa:hover { background: #178a47; }

/* ---------- الترويسة ---------- */
.site-header { position: sticky; top: 0; z-index: 60; }
.topbar { background: var(--ink); color: #fff; font-size: .85rem; display: none; }
@media (min-width: 900px) { .topbar { display: block; } }
.topbar-in { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 38px; }
.topbar-phones { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar-phones a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .muted { color: var(--on-dark); }
.topbar .sep { display: inline-block; width: 1px; height: 12px; background: rgba(255, 255, 255, .3); margin-inline: .7rem; vertical-align: middle; }
.mainbar { background: #fff; border-bottom: 1px solid var(--line); }
.mainbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand img { height: 44px; width: auto; }
.brand-mark { width: 44px; height: 44px; background: var(--ink); color: var(--primary); display: grid; place-items: center; border-radius: var(--r); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-family: var(--f-head); font-size: 1.05rem; font-weight: 900; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: .72rem; display: none; }
@media (min-width: 560px) { .brand-text small { display: block; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.nav { display: none; align-items: center; gap: .2rem; }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav > a, .dd > a { display: inline-flex; align-items: center; gap: .25rem; padding: .5rem .85rem; font-weight: 600; font-size: .96rem; color: var(--fg); border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.on { border-bottom-color: var(--primary); color: var(--ink); font-weight: 700; }
.dd { position: relative; }
.dd-menu { position: absolute; inset-inline-start: 0; top: 100%; min-width: 260px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 14px 30px rgba(15, 34, 48, .14); padding: .4rem; display: none; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: .55rem .8rem; border-radius: 4px; font-size: .93rem; }
.dd-menu a:hover { background: var(--paper); }
.actions { display: flex; align-items: center; gap: .6rem; }
.burger { width: 46px; height: 46px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
@media (min-width: 1000px) { .burger { display: none; } }

/* ---------- القائمة الجانبية للجوال ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(8, 16, 24, .6); z-index: 90; opacity: 0; transition: opacity .25s; }
.drawer-bg.open { opacity: 1; }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(86vw, 360px); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .28s ease, visibility 0s linear .28s; display: flex; flex-direction: column; visibility: hidden; }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-family: var(--f-head); }
.drawer-nav { flex: 1; overflow-y: auto; padding: .5rem 0; }
.drawer-nav > a, .acc-row > a { display: block; padding: .85rem 1.2rem; font-weight: 600; }
.drawer-nav a.on { color: var(--ink); box-shadow: inset 4px 0 0 var(--primary); background: var(--paper); }
[dir="rtl"] .drawer-nav a.on { box-shadow: inset -4px 0 0 var(--primary); }
.acc-row { display: flex; align-items: center; }
.acc-row a { flex: 1; }
.acc-btn { width: 52px; height: 48px; background: none; border: 0; display: grid; place-items: center; }
.acc-btn svg { transition: transform .2s; }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-body { display: none; background: var(--paper); padding: .3rem 0; }
.acc-body.open { display: block; }
.acc-body a { display: block; padding: .6rem 2rem; font-size: .94rem; }
.drawer-foot { padding: 1rem; display: grid; gap: .6rem; border-top: 1px solid var(--line); }
body.lock { overflow: hidden; }

/* ---------- الواجهة الرئيسية ---------- */
.hero { color: #fff; padding: 3rem 0 2.2rem; background-color: var(--ink); background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; }
.hero-grid { display: grid; gap: 2rem; align-items: center; padding-bottom: 4.5rem; }
@media (min-width: 900px) { .hero { padding-top: 4.5rem; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; padding-bottom: 6rem; } }
.badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 176, 0, .14); border: 1px solid rgba(255, 176, 0, .5); color: var(--primary); padding: .3rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(1.9rem, 5.2vw, 3.3rem); font-weight: 900; line-height: 1.25; margin-bottom: 1rem; max-width: 20ch; }
.lead { font-size: 1.08rem; color: var(--on-dark); max-width: 56ch; margin-bottom: 1.8rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { color: rgba(255, 255, 255, .85); max-width: 520px; width: 100%; margin-inline: auto; }
.bp { width: 100%; height: auto; }
.bp .bp-crane, .bp .bp-hook { stroke: var(--primary); }
.bp-dim, .bp-ground { stroke: rgba(255, 255, 255, .6); }
.bp-b1, .bp-b2, .bp-b3, .bp-crane, .bp-hook, .bp-ground { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: bp-draw 2.4s ease-out forwards; }
.bp-b2 { animation-delay: .25s; } .bp-b3 { animation-delay: .5s; } .bp-crane { animation-delay: .8s; } .bp-hook { animation-delay: 1.6s; }
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
.hero-photo { border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255, 255, 255, .25); }
.hero-photo-img { width: 100%; object-fit: cover; }

.stats { position: relative; margin-top: -3rem; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--r); display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 18px 40px rgba(15, 34, 48, .12); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); margin-top: -3.6rem; } }
.stat { padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; border-inline-start: 1px dashed var(--line); }
.stat:nth-child(odd) { border-inline-start: 0; }
@media (min-width: 900px) { .stat:nth-child(odd) { border-inline-start: 1px dashed var(--line); } .stat:first-child { border-inline-start: 0; } }
.stat b { font-family: var(--f-head); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; color: var(--ink); line-height: 1.1; text-align: start; }
.stat span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.stats-flat { margin-top: 3rem; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-top: 4px solid var(--primary); box-shadow: none; }
.stats-flat .stat { border-color: rgba(255, 255, 255, .2); }
.stats-flat .stat b { color: #fff; } .stats-flat .stat span { color: var(--on-dark); }

.ticker { margin-top: 0; background: var(--primary); color: var(--on-primary); overflow: hidden; direction: ltr; font-family: var(--f-head); font-weight: 800; }
.ticker-track { display: flex; width: max-content; animation: tick var(--dur, 40s) linear infinite; }
.ticker-group { display: flex; flex: none; }
.ticker-item { display: inline-flex; align-items: center; padding: .7rem 1.4rem; white-space: nowrap; }
.ticker-item::after { content: ""; width: 8px; height: 8px; background: var(--ink); margin-inline-start: 2.8rem; transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- الأقسام ---------- */
.sec { padding: 3.6rem 0; }
@media (min-width: 900px) { .sec { padding: 5rem 0; } }
.sec-soft { background: var(--paper-2); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-head { max-width: 62ch; margin-bottom: 2.2rem; }
.sec-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 900; color: var(--ink); }
.sec-head p { color: var(--muted); margin: .7rem 0 0; }
.eyebrow { display: inline-block; font-family: var(--f-head); font-weight: 800; font-size: .95rem; color: var(--ink); padding-bottom: .3rem; margin-bottom: .55rem; border-bottom: 3px solid var(--primary); }
.sec-head.on-dark h2 { color: #fff; } .sec-head.on-dark p { color: var(--on-dark); } .sec-head.on-dark .eyebrow { color: #fff; }
.sec-foot { margin-top: 2.2rem; text-align: center; }
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.svc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; transition: border-color .15s; }
.svc:hover { border-color: var(--ink); }
.svc-ic { width: 54px; height: 54px; background: var(--ink); color: var(--primary); display: grid; place-items: center; border-radius: var(--r); margin-bottom: 1.1rem; flex: none; }
.svc h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: .5rem; }
.svc p { color: var(--muted); font-size: .96rem; flex: 1; }
.more { font-family: var(--f-head); font-weight: 800; font-size: .92rem; color: var(--ink); border-bottom: 2px solid var(--primary); align-self: flex-start; padding-bottom: 1px; }

.proj { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.proj-img { position: relative; overflow: hidden; background: var(--paper-2); }
.proj-pic { width: 100%; object-fit: cover; transition: transform .5s ease; }
.proj:hover .proj-pic { transform: scale(1.04); }
.proj-body { padding: 1.1rem 1.2rem 1.3rem; }
.tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .25rem; }
.tag::before { content: ""; width: 9px; height: 9px; background: var(--primary); }
.proj h3 { font-size: 1.12rem; color: var(--ink); }
.proj-meta { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.st { position: absolute; inset-block-start: .8rem; inset-inline-start: .8rem; padding: .2rem .75rem; border-radius: 3px; font-size: .8rem; font-weight: 700; font-family: var(--f-head); }
.st-completed { background: var(--ink); color: #fff; }
.st-ongoing { background: var(--primary); color: var(--on-primary); }
.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--paper-2), var(--paper)); color: #9aa7b0; width: 100%; min-height: 160px; }

.steps { display: grid; gap: 1.6rem; counter-reset: s; }
.step { position: relative; padding-inline-start: 64px; }
.step-n { position: absolute; inset-inline-start: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--primary); border-radius: 50%; font-family: var(--f-head); font-weight: 900; font-size: 1.15rem; }
.step::after { content: ""; position: absolute; inset-inline-start: 22px; top: 52px; bottom: -1.4rem; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: .25rem; padding-top: .55rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
  .step { padding-inline-start: 0; padding-top: 62px; }
  .step::after { top: 22px; bottom: auto; height: 2px; width: auto; inset-inline-start: 56px; inset-inline-end: -1.2rem; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
  .step h3 { padding-top: 0; }
}

.feat { padding: 1.4rem 0 0; border-top: 2px solid rgba(255, 255, 255, .18); }
.feat .svc-ic { background: transparent; border: 1.5px solid var(--primary); }
.feat h3 { color: #fff; font-size: 1.12rem; margin-bottom: .4rem; }
.feat p { color: var(--on-dark); font-size: .95rem; margin: 0; }

.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.9; flex: 1; }
.quote figcaption { border-top: 1px solid var(--line); padding-top: .8rem; display: flex; flex-direction: column; }
.quote figcaption span { color: var(--muted); font-size: .88rem; }

.cta-sec { padding: 0 0 3.6rem; background: var(--paper); }
.sec-dark + .cta-sec, .cta-sec { margin-top: 0; }
.cta-box { background: var(--primary); color: var(--on-primary); border-radius: var(--r); padding: 2rem 1.5rem; display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 900px) { .cta-box { grid-template-columns: 1.3fr 1fr; padding: 2.8rem 3rem; } }
.cta-box h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: .4rem; }
.cta-box p { margin: 0; max-width: 52ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (min-width: 900px) { .cta-btns { justify-content: flex-end; } }
.sec + .cta-sec { padding-top: 3.6rem; }

/* ---------- الصفحات الداخلية ---------- */
.page-hero { color: #fff; padding: 2.6rem 0 2.4rem; background-color: var(--ink); background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 4px solid var(--primary); }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; max-width: 28ch; }
.page-hero p { color: var(--on-dark); margin: .7rem 0 0; max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--on-dark); margin-bottom: .9rem; }
.crumbs a:hover { color: var(--primary); }
.layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) { .layout { grid-template-columns: 1fr 360px; gap: 2.6rem; } .layout-rev { grid-template-columns: 380px 1fr; } }
.stack { display: grid; gap: 1.2rem; }
.side-box { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--r); padding: 1.4rem; }
.side-box h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--ink); }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: block; padding: .6rem 0; font-size: .95rem; }
.side-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.cover, .about-img { width: 100%; border-radius: var(--r); object-fit: cover; margin-bottom: 1.4rem; }
.prose { max-width: 70ch; font-size: 1.04rem; }
.prose p { margin-bottom: 1.1em; }
.prose-top { margin-top: 1.6rem; }
.about-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .about-grid.has-img { grid-template-columns: 1.2fr 1fr; } }
.vm { margin-top: 2.4rem; }
.vm-box { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--r); padding: 1.6rem; }
.vm-box h3 { color: var(--ink); margin-bottom: .5rem; } .vm-box p { margin: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filters a { padding: .45rem 1.1rem; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-weight: 600; font-size: .93rem; }
.filters a:hover { border-color: var(--ink); }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.pd-gallery { display: grid; gap: .7rem; }
.pd-main { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.pd-main-img { width: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.pd-thumb { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; aspect-ratio: 4/3; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.on { border-color: var(--primary); }
.pd-h { font-size: 1.3rem; color: var(--ink); margin: 2rem 0 .9rem; }
.ticks { display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks svg { color: var(--on-primary); background: var(--primary); border-radius: 3px; padding: 2px; flex: none; margin-top: 4px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; font-size: .95rem; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; font-weight: 600; }
.post { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post-img { width: 100%; object-fit: cover; }
.post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.post h2 { font-size: 1.12rem; color: var(--ink); }
.post p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.meta { color: var(--muted); font-size: .85rem; }

/* ---------- النماذج والتواصل ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--r); padding: 1.6rem; display: grid; gap: 1rem; }
.form-title { font-size: 1.35rem; color: var(--ink); }
.row-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid #b9c4cb; border-radius: var(--r); background: #fff; color: var(--fg); min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 176, 0, .45); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .85rem 1rem; border-radius: var(--r); font-weight: 600; border: 1px solid; }
.alert-ok { background: #e6f6ec; color: #11602e; border-color: #9ad4ae; }
.alert-err { background: #fdecec; color: #8a1f1f; border-color: #eeb0b0; }
.info-list { display: grid; gap: .8rem; }
.info-it { display: flex; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
a.info-it:hover { border-color: var(--ink); }
.info-it .svc-ic { margin: 0; width: 46px; height: 46px; }
.info-it b { display: block; font-family: var(--f-head); color: var(--ink); } .info-it span:not(.svc-ic) { color: var(--muted); font-size: .92rem; }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--r); background: var(--paper-2); }
.nf { text-align: center; padding: 5rem 0; }
.nf b { display: block; font-family: var(--f-head); font-size: clamp(4rem, 16vw, 8rem); font-weight: 900; color: var(--ink); line-height: 1; }
.nf h1 { margin: .5rem 0; font-size: 1.6rem; } .nf p { margin-bottom: 1.4rem; }

/* ---------- معرض الصور ---------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; grid-auto-flow: dense; }
@media (min-width: 900px) { .gal { grid-template-columns: repeat(4, 1fr); } }
.gal-it { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--steel); aspect-ratio: 4/3; }
.gal-lg { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } .gal-wide { grid-column: span 2; aspect-ratio: 16/9; }
.gal-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.gal-it img, .gal-ph { width: 100%; height: 100%; object-fit: cover; }
.gal-it figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem .8rem .6rem; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(8, 16, 24, .85)); pointer-events: none; }
.lb { position: fixed; inset: 0; z-index: 150; background: rgba(8, 16, 24, .95); display: flex; align-items: center; justify-content: center; }
.lb-fig { margin: 0; max-width: min(92vw, 1100px); text-align: center; color: #fff; }
.lb-fig img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 4px; }
.lb-fig figcaption { margin-top: .7rem; font-size: .95rem; }
.lb-x, .lb-nav { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lb-x { top: 1rem; inset-inline-end: 1rem; } .lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: .8rem; transform: translateY(-50%) rotate(90deg); } .lb-next { inset-inline-end: .8rem; transform: translateY(-50%) rotate(-90deg); }
[dir="rtl"] .lb-prev { transform: translateY(-50%) rotate(-90deg); } [dir="rtl"] .lb-next { transform: translateY(-50%) rotate(90deg); }

/* ---------- التذييل ---------- */
.site-footer { background: var(--ink); color: #fff; }
.hatch { height: 12px; background: repeating-linear-gradient(-45deg, var(--primary) 0 14px, var(--ink) 14px 28px); }
.foot-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.4fr 1fr .8fr 1.2fr; } }
.site-footer .muted { color: var(--on-dark); }
.foot-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; font-family: var(--f-head); font-size: 1.1rem; }
.foot-brand .brand-mark { background: var(--primary); color: var(--ink); }
.site-footer h3 { font-size: 1.05rem; margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); display: inline-block; }
.foot-list li { padding: .22rem 0; } .foot-list a { color: var(--on-dark); } .foot-list a:hover { color: var(--primary); }
.foot-contact { display: grid; gap: .7rem; }
.foot-contact a, .foot-contact .row { display: flex; gap: .7rem; align-items: flex-start; color: var(--on-dark); }
.foot-contact small { display: block; }
.foot-ids p { margin: 0 0 .2rem; font-size: .88rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.socials a { border: 1px solid rgba(255, 255, 255, .3); padding: .25rem .8rem; border-radius: 999px; font-size: .85rem; color: var(--on-dark); }
.socials a:hover { border-color: var(--primary); color: var(--primary); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 1.2rem 0; text-align: center; }
.foot-bottom p { margin: 0 0 .2rem; } .credit { margin-bottom: .6rem; } .credit a { color: var(--primary); }
.mbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 70; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(var(--bar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--ink); border-top: 3px solid var(--primary); }
.mbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--f-head); font-weight: 800; color: #fff; }
.mbar-wa { background: #1faa59; }
@media (min-width: 900px) { .mbar { display: none; } body { padding-bottom: 0; } }
.fab { position: fixed; inset-inline-start: 1rem; bottom: calc(var(--bar-h) + var(--safe-b) + .9rem); z-index: 65; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
@media (min-width: 900px) { .fab { bottom: 1.3rem; } }
.fab-lang { display: inline-flex; align-items: center; gap: .35rem; background: var(--ink); color: #fff; padding: .4rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, .25); }
.fab-btn { width: 52px; height: 52px; border-radius: 50%; display: none; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
@media (min-width: 900px) { .fab-btn { display: grid; } }
.fab-call { background: var(--primary); color: var(--on-primary); } .fab-wa { background: #1faa59; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bp-b1, .bp-b2, .bp-b3, .bp-crane, .bp-hook, .bp-ground { stroke-dashoffset: 0; }
}
