:root {
  --bg: #ffffff;
  --bg-alt: #f5f3ef;
  --dark: #16181d;
  --dark-2: #22252c;
  --text: #2a2d34;
  --muted: #6b6f78;
  --line: #e4e0d8;
  --dark-rgb: 22, 24, 29;
  --accent: #d4a24c;
  --accent-dark: #b8862f;
  --accent-rgb: 212, 162, 76;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(var(--dark-rgb), .08);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; color: var(--dark); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--accent); }
.eyebrow {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--dark);
  font: inherit; font-weight: 700;
  padding: 12px 28px; border-radius: 999px; border: 2px solid var(--accent);
  cursor: pointer; transition: .25s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--sm { padding: 6px 18px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.header.scrolled { background: rgba(var(--dark-rgb), .96); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo__img { height: 50px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text em {
  font-style: normal; font-size: 1.15rem; font-weight: 800; letter-spacing: 4px;
  color: var(--accent); direction: ltr; text-align: right;
}
.logo__text small { font-weight: 400; font-size: .75rem; opacity: .85; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #fff; font-weight: 600; font-size: .95rem; opacity: .9; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { color: var(--dark); opacity: 1; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 40px;
  background: var(--dark);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(var(--dark-rgb),.92) 20%, rgba(var(--dark-rgb),.55)),
    url("assets/uploads/arcadia-1.jpg") center/cover;
}
.hero__content { position: relative; }
.hero__content > * { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; margin-bottom: 18px; }
.hero__lead { font-size: 1.1rem; opacity: .85; max-width: 620px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.stats {
  position: relative; margin-top: 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(6px);
}
.stat { background: rgba(var(--dark-rgb),.6); padding: 22px; text-align: center; }
.stat strong { display: block; font-size: 2.2rem; color: var(--accent); font-weight: 800; line-height: 1.2; }
.stat span { opacity: .8; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section__sub { color: var(--muted); margin-top: 8px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--accent); color: var(--dark);
  padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center;
}
.about__badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.about__text p { color: var(--muted); margin: 16px 0 24px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 32px; font-weight: 600; }
.checks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--dark);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); transition: .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.service__icon {
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(var(--accent-rgb),.14); display: grid; place-items: center;
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ---------- Portfolio ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  font: inherit; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 8px 20px; border-radius: 999px; transition: .2s;
}
.filter:hover { border-color: var(--accent); }
.filter.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: var(--dark-2);
  animation: fadeIn .4s ease both;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.07); }
.card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--dark-rgb),.9), rgba(var(--dark-rgb),0) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff;
}
.card__tag {
  align-self: flex-start; background: var(--accent); color: var(--dark);
  font-size: .75rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; margin-bottom: 8px;
}
.card h3 { color: #fff; }
.card__meta { font-size: .85rem; opacity: .8; display: flex; gap: 14px; }
.card__count {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .8rem;
  padding: 2px 10px; border-radius: 999px;
}
.img-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #22252c 0 14px, #262a31 14px 28px);
  color: rgba(255,255,255,.5); font-weight: 700;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Before / After ---------- */
.ba {
  position: relative; max-width: 1000px; margin-inline: auto;
  aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); user-select: none; --pos: 50%;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
/* لو صورة "قبل" هي نفس "بعد" (مثال تجريبي) نعرضها رمادي وباهتة */
.ba--demo .ba__before { filter: grayscale(1) contrast(.75) brightness(.8) sepia(.3); }
.ba-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ba-tab {
  font: inherit; font-weight: 600; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  padding: 6px 18px; border-radius: 999px; transition: .2s;
}
.ba-tab.active, .ba-tab:hover { border-color: var(--accent); background: var(--accent); color: var(--dark); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff;
  transform: translateX(-50%); pointer-events: none;
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.ba__handle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--dark); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; direction: ltr; }
.ba__label {
  position: absolute; top: 16px; background: rgba(0,0,0,.6); color: #fff;
  padding: 4px 16px; border-radius: 999px; font-weight: 700; pointer-events: none;
}
.ba__label--before { right: 16px; }
.ba__label--after { left: 16px; }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video {
  cursor: pointer; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); transition: .3s;
}
.video:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.video__thumb { position: relative; aspect-ratio: 16/9; background: var(--dark-2); }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(var(--accent-rgb),.3);
  transition: .3s;
}
.video:hover .video__play { box-shadow: 0 0 0 16px rgba(var(--accent-rgb),.25); }
.video__play::after {
  content: ""; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--dark); margin-left: 5px;
}
.video__dur {
  position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.7); color: #fff;
  font-size: .8rem; padding: 0 8px; border-radius: 6px; direction: ltr;
}
.video__body { padding: 16px 20px 20px; }
.video__body p { color: var(--muted); font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.steps span { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; display: block; margin-bottom: 14px; }
.steps p { opacity: .7; margin-top: 6px; font-size: .95rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonials blockquote {
  background: #fff; padding: 30px; border-radius: var(--radius);
  border-top: 4px solid var(--accent); box-shadow: var(--shadow);
}
.testimonials p { font-size: 1.02rem; margin-bottom: 16px; }
.testimonials cite { color: var(--muted); font-style: normal; font-weight: 600; font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact__info > p { color: var(--muted); margin: 14px 0 24px; }
.contact__list { list-style: none; display: grid; gap: 12px; }
.contact__list a { color: var(--accent-dark); font-weight: 600; }
.form { background: var(--bg-alt); padding: 32px; border-radius: var(--radius); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 28px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__logo { height: 90px; width: auto; }
.footer__social { display: flex; gap: 20px; }
.footer__social a { display: inline-flex; align-items: center; gap: 6px; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__social a:hover { color: var(--accent); }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,11,14,.95);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 60px 70px 30px;
}
.lightbox.open { display: flex; }
.lightbox__stage { width: 100%; max-width: 1200px; flex: 1; display: grid; place-items: center; min-height: 0; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 78vh; border-radius: 8px; }
.lightbox__stage img { animation: lbIn .25s ease; user-select: none; -webkit-user-drag: none; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__stage iframe { width: min(1100px, 100%); aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.lightbox__stage iframe.is-vertical { width: auto; height: min(80vh, 760px); max-width: 100%; aspect-ratio: 9/16; }
.lightbox__msg { color: #fff; text-align: center; max-width: 480px; opacity: .85; }
.lightbox__caption { color: #fff; text-align: center; margin-top: 16px; }
.lightbox__caption small { display: block; opacity: .6; }
.lightbox__watch { color: var(--accent); font-weight: 700; margin-inline-start: 8px; opacity: 1; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center; transition: .2s; font-family: inherit;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--dark); }
.lightbox__close { top: 16px; left: 16px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 2rem; line-height: 1; }
.lightbox__nav--prev { right: 14px; }
.lightbox__nav--next { left: 14px; }
.lightbox.single .lightbox__nav { display: none; }
/* على الموبايل التقليب بالسحب، فالأزرار مش محتاجينها */
@media (hover: none) and (pointer: coarse) { .lightbox__nav { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services, .grid, .videos, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0;
    background: var(--dark); flex-direction: column; gap: 0; padding: 10px 16px 20px;
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .header.menu-open { background: var(--dark); }
  .about, .contact { grid-template-columns: 1fr; gap: 50px; }
  .about__badge { left: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
}
@media (max-width: 560px) {
  .services, .grid, .videos, .testimonials, .steps, .form__row { grid-template-columns: 1fr; }
  .lightbox { padding: 70px 10px 24px; background: rgba(10,11,14,.98); }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__caption { font-size: .95rem; line-height: 1.6; padding: 0 8px; }
  .stat strong { font-size: 1.7rem; }
}
