﻿@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700&display=swap');

:root {
  --primary: #6d5638;
  --primary-dark: #4e3d27;
  --accent: #b8956a;
  --accent-soft: #e6d6bc;
  --bg: #fffdf8;
  --paper: #f6efe3;
  --ink: #2f2619;
  --muted: #7a6a56;
  --line: #e2d3bd;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(78, 61, 39, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Amiri', serif;
  font-weight: 700;
  line-height: 1.35;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92vw); margin: 0 auto; }

/* ---------- الترويسة ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-size: 29px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--primary-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.logo img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  background: #fff;
  box-shadow: 0 8px 22px rgba(109, 86, 56, 0.22);
}

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: background .2s, color .2s;
}

.nav a:hover { color: var(--primary); background: var(--paper); }

.nav a.active {
  color: var(--primary-dark);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.nav-toggle {
  display: none;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--primary-dark);
  cursor: pointer;
}

/* ---------- الغلاف ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(35, 26, 16, 0.72) 0%, rgba(35, 26, 16, 0.55) 45%, rgba(35, 26, 16, 0.82) 100%),
    url("../images/pattern-kuffiyeh.svg");
  background-size: auto, 96px 96px;
}

.hero-content { padding: 96px 0; }

.hero-emblem {
  width: 170px;
  height: 170px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.eyebrow {
  display: inline-block;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
  border: 1px solid rgba(230, 214, 188, 0.5);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 86px);
  margin-bottom: 10px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero .hero-sub {
  font-family: 'Amiri', serif;
  font-size: clamp(18px, 3vw, 28px);
  color: #f4e7d3;
  max-width: 720px;
  margin: 0 auto 14px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 34px;
  color: #efe4d3;
  font-size: clamp(15px, 2vw, 18px);
}

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--accent);
  color: #2b2114;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- الأقسام ---------- */
.section { padding: clamp(52px, 9vw, 96px) 0; }
.section-alt { background: var(--paper); }

.section-head { max-width: 720px; margin: 0 auto clamp(30px, 5vw, 52px); text-align: center; }

.kicker,
.section-head .kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); color: var(--primary-dark); }

.section-head p { color: var(--muted); margin-top: 10px; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--accent);
}

.divider::before,
.divider::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--accent-soft);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 5vw, 56px);
  align-items: center;
}

.split h2 { font-size: clamp(26px, 4vw, 40px); color: var(--primary-dark); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split-art {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 3vw, 26px);
  box-shadow: var(--shadow);
}
.split-art img { width: 100%; height: auto; }
.split.flip .split-art { order: -1; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.fact strong { display: block; font-family: 'Amiri', serif; font-size: 24px; color: var(--primary); }
.fact span { font-size: 13px; color: var(--muted); }

.source-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  border-inline-start: 2px solid var(--accent-soft);
  padding-inline-start: 12px;
}
.source-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.source-note a:hover { color: var(--primary-dark); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-grid dt {
  padding: 12px 18px;
  background: var(--paper);
  font-weight: 700;
  color: var(--primary-dark);
  border-top: 1px solid var(--line);
}
.info-grid dt:first-of-type { border-top: none; }
.info-grid dd {
  padding: 12px 18px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.info-grid dd:first-of-type { border-top: none; }
@media (max-width: 780px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid dd { border-top: none; }
}

.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 28px;
}
.doc-card a { display: block; }
.doc-card img {
  width: 100%;
  height: auto;
  display: block;
}
.doc-card figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  border-top: 1px solid var(--line);
}

/* ---------- البطاقات ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 3vw, 26px); }

.card {
  grid-column: span 4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card-media { aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.contain img { object-fit: contain; padding: 18px; }

.card-body { padding: clamp(18px, 3vw, 26px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 23px; color: var(--primary-dark); }
.card-body p { color: var(--muted); font-size: 15px; }
.card-link { margin-top: auto; color: var(--primary); font-weight: 700; font-size: 14px; }
.card-link:hover { color: var(--accent); }

/* ---------- الخط الزمني ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(20px, 4vw, 32px);
  max-width: 880px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  right: 27px;
  width: 2px;
  background: linear-gradient(var(--accent-soft), var(--accent), var(--accent-soft));
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.tl-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: 'Amiri', serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 22px;
  z-index: 1;
}

.tl-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 10px 26px rgba(78, 61, 39, 0.06);
}

.tl-body h3 { font-size: 25px; color: var(--primary-dark); margin-bottom: 4px; }
.tl-body .tl-role { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.tl-body p { color: var(--muted); margin-top: 10px; }

/* ---------- صفحة المشاريع ---------- */
.page-hero {
  background:
    linear-gradient(180deg, rgba(35, 26, 16, 0.78), rgba(35, 26, 16, 0.7)),
    url("../images/pattern-kuffiyeh.svg");
  background-size: auto, 96px 96px;
  color: #fff;
  text-align: center;
  padding: clamp(48px, 9vw, 84px) 0;
}

.page-hero h1 { font-size: clamp(32px, 6vw, 52px); }
.page-hero p { color: #efe4d3; max-width: 640px; margin: 10px auto 0; }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 3vw, 26px); }

.project-card {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.project-media { background: var(--paper); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media.contain img { object-fit: contain; padding: 22px; }

.project-body { padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.project-body h2 { font-size: 24px; color: var(--primary-dark); }
.project-body p { color: var(--muted); font-size: 15px; }

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 2px 12px;
}

/* ---------- صفحة بئر السبع ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: start;
  box-shadow: 0 10px 26px rgba(78, 61, 39, 0.06);
}

.stat-card strong {
  display: block;
  font-family: 'Amiri', serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  color: var(--primary);
}

.stat-card span { font-size: 13px; color: var(--muted); }

.prose { max-width: 840px; margin-inline: auto; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { color: var(--primary-dark); font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }

.landmark-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 3vw, 20px); }

.landmark {
  grid-column: span 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: 0 10px 26px rgba(78, 61, 39, 0.06);
}

.landmark .lm-icon { font-size: 26px; line-height: 1; }
.landmark h3 { font-size: 20px; color: var(--primary-dark); margin: 10px 0 6px; }
.landmark p { color: var(--muted); font-size: 14.5px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 10px 26px rgba(78, 61, 39, 0.06);
}

.note-card h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 8px; }
.note-card p { color: var(--muted); font-size: 15px; }
.note-card p + p { margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--accent-soft);
  font-size: 13.5px;
  color: var(--primary);
}

.phase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.phase-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 26px);
  box-shadow: 0 10px 26px rgba(78, 61, 39, 0.06);
}

.phase-date {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.phase-card h3 { color: var(--primary-dark); font-size: 20px; margin-bottom: 6px; }
.phase-card ul { display: grid; gap: 10px; margin-top: 10px; }

.phase-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.phase-card li::before {
  content: "◆";
  flex: 0 0 auto;
  font-size: 8px;
  line-height: 1.9;
  margin-block-start: 5px;
  color: var(--accent);
}

.pull-quote {
  border-inline-start: 3px solid var(--accent);
  background: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 22px;
  color: var(--primary-dark);
  font-family: 'Amiri', serif;
  font-size: 19px;
}

@media (max-width: 900px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .landmark { grid-column: span 6; }
  .trio { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .landmark { grid-column: span 12; }
}

.town-band { background: var(--primary-dark); color: #f6efe3; }

.town-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.town-band .kicker { color: var(--accent-soft); }
.town-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.town-band p { color: #d8c9b2; margin-top: 8px; max-width: 620px; }
.town-band .btn { background: var(--accent); color: #2f2619; flex: 0 0 auto; }

/* ---------- التواصل ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 34px); align-items: stretch; }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.contact-title { font-size: clamp(26px, 4vw, 32px); color: var(--primary-dark); margin-bottom: 22px; }

.contact-form { display: grid; gap: 16px; }

.field { display: grid; gap: 6px; }

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder,
.field textarea::placeholder { color: #b3a48f; }

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.18);
}

.field textarea { resize: vertical; min-height: 120px; }

.contact-form .btn { justify-self: start; cursor: pointer; }
.contact-actions { margin-top: 26px; }
.contact-item + .contact-item { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.contact-label { display: block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 1px; margin-bottom: 4px; }
.contact-value { color: var(--primary-dark); font-weight: 600; }

.contact-art {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}
.contact-art img { width: min(420px, 100%); height: auto; }

.narrow { max-width: 760px; margin-inline: auto; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--accent);
}

.btn-outline:hover { background: var(--paper); }

/* ---------- التذييل ---------- */
footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer .footer-logo { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%; }

/* ---------- المعرض ---------- */
.gallery-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4.5vw, 44px);
}

.gallery-index a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.gallery-index a em {
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.8;
  min-width: 26px;
  text-align: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--accent-soft);
  color: var(--primary);
}

.gallery-index a:hover,
.gallery-index a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(78, 61, 39, 0.10);
  transform: translateY(-2px);
}

.gallery-group { scroll-margin-top: 150px; }
.gallery-group + .gallery-group { margin-top: clamp(44px, 7vw, 76px); }

.gallery-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.gallery-num {
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--accent-soft);
  border-radius: 7px;
  padding: 1px 8px;
  direction: ltr;
}

.gallery-head h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  color: var(--primary-dark);
  white-space: nowrap;
}

.gallery-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.gallery-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.gallery .shot { flex: 0 0 auto; margin: 0; }
.gallery:not(.is-justified) .shot { flex: 1 1 250px; }

.shot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.shot img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform .45s ease;
}

.shot:hover img { transform: scale(1.03); }

.gallery.is-justified .shot img {
  height: 100%;
  object-fit: cover;
}

.gallery.is-justified .shot:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
  .gallery { gap: 10px; }
  .gallery-group { scroll-margin-top: 130px; }
}

/* شريط من الذاكرة */
.memory-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.memory-strip .shot { margin: 0; }
.memory-strip .shot img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; height: auto; }

/* عارض الصور */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 15, 9, 0.92);
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-next { left: 18px; }
.lightbox-prev { right: 18px; }

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox-next { left: 8px; }
  .lightbox-prev { right: 8px; }
  .lightbox img { max-height: 76vh; }
}

/* ---------- الحركة ---------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.armed { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.armed { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- الاستجابة ---------- */
@media (max-width: 1024px) {
  .card { grid-column: span 6; }
  .split { grid-template-columns: 1fr; }
  .split-art { order: -1; }
  .project-card { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .nav-toggle { display: inline-flex; }
  .card { grid-column: 1 / -1; }
  .project-card { grid-template-columns: 1fr; }
  .project-media img { aspect-ratio: 16 / 10; height: auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-art { order: -1; }
  .facts { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .logo img { width: 86px; height: 86px; }
  .logo { font-size: 25px; }
  .shot { margin-bottom: 12px; }
  .memory-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
  .memory-strip { grid-template-columns: repeat(2, 1fr); }
}
