/* ============================================================
   البريكة لتفصيل الستائر والمجالس — التصميم (RTL)
   لوحة ألوان: بني داكن، قهوة، بيج، ذهبي شامبانيا، أبيض دافئ
   ============================================================ */

:root {
  --brown-950: #241a10;
  --brown-900: #2a1f14;
  --brown-800: #3e2c1e;
  --brown-700: #5b4030;
  --coffee:    #6b4a2f;
  --caramel:   #a07d56;
  --beige:     #e9dcc8;
  --sand:      #d8c8ad;
  --gold:      #b98b3f;
  --gold-soft: #d9c494;
  --bg:        #faf6ef;
  --bg-alt:    #f1e9db;
  --card:      #fffdf8;
  --line:      #e6dcc9;
  --text:      #2a1f14;
  --muted:     #8a6b4f;
  --white:     #fffdfa;

  --font-head: "Amiri", serif;
  --font-body: "Tajawal", system-ui, sans-serif;

  --shadow-sm: 0 4px 14px rgba(42, 31, 20, .07);
  --shadow-md: 0 14px 34px rgba(42, 31, 20, .12);
  --radius:    14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92%); margin-inline: auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ==================== الترويسة ==================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
  color: var(--white);
}
.header.scrolled {
  background: var(--bg);
  color: var(--text);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-mark {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 28px;
  background: var(--gold);
  color: var(--brown-900);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo-text b { font-family: var(--font-head); font-size: 23px; white-space: nowrap; }
.logo-text small { font-size: 12px; opacity: .75; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 99px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: rgba(185, 139, 63, .18); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease;
}
.nav-toggle span { inset-block-start: 20px; }
.nav-toggle span::before { inset-block-start: -7px; }
.nav-toggle span::after  { inset-block-start: 7px; }

/* ==================== الواجهة الرئيسية ==================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image .4s ease;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(36, 26, 16, .34) 0%, rgba(36, 26, 16, .66) 100%),
    linear-gradient(180deg, rgba(36, 26, 16, .55), rgba(36, 26, 16, .4));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 90px;
}
.hero-kicker {
  font-size: clamp(15px, 2.2vw, 19px);
  letter-spacing: .14em;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.35;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: clamp(15px, 2.2vw, 19px);
  color: rgba(255, 253, 250, .88);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 26px; inset-inline-start: 50%;
  transform: translateX(50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 253, 250, .6);
  border-radius: 99px;
  z-index: 2;
}
.scroll-hint::after {
  content: "";
  position: absolute; inset-inline-start: 50%; inset-block-start: 8px;
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--gold-soft);
  transform: translateX(50%);
  animation: hintMove 1.8s ease-in-out infinite;
}
@keyframes hintMove {
  0%, 100% { opacity: 1; transform: translateX(50%) translateY(0); }
  60%      { opacity: .3; transform: translateX(50%) translateY(10px); }
}

/* ==================== أزرار ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--brown-900);
  box-shadow: 0 10px 26px rgba(185, 139, 63, .38);
}
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline {
  border-color: rgba(255, 253, 250, .7);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--brown-900); }

/* ==================== الأقسام ==================== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 3px;
  margin: 22px auto 0;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.4;
  color: var(--brown-800);
}

/* ==================== من نحن ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
}
.about-text > p { color: var(--brown-700); font-size: 17px; margin-bottom: 28px; }
.about-points { list-style: none; display: grid; gap: 16px; }
.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: baseline;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  border-inline-start: 3px solid var(--gold);
}
.about-points b { color: var(--brown-800); font-size: 16px; }
.about-points span { grid-column: 2; color: var(--muted); font-size: 14px; }

.about-visual { position: relative; }
.about-frame {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--coffee) 0%, var(--brown-800) 100%);
  box-shadow: var(--shadow-md);
}
.about-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1.5px solid rgba(217, 196, 148, .5);
  border-radius: 10px;
}
.about-badge {
  position: absolute;
  bottom: 46px; inset-inline-start: -18px;
  background: var(--gold);
  color: var(--brown-900);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.about-badge b { font-family: var(--font-head); font-size: 22px; }
.about-badge span { font-size: 13px; opacity: .85; }

/* ==================== الخدمات ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: #f3ead9;
  color: var(--brown-700);
  margin-bottom: 20px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--brown-800);
  margin-bottom: 8px;
}
.service-card p { color: var(--muted); font-size: 15px; }

/* ==================== المعرض ==================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.chip {
  padding: 9px 22px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--brown-700);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.active {
  background: var(--brown-800);
  color: var(--gold-soft);
  border-color: var(--brown-800);
}

.gallery-empty {
  text-align: center;
  color: var(--muted);
  padding: 30px 0 10px;
}

.masonry {
  column-count: 3;
  column-gap: 18px;
}
.g-item {
  break-inside: avoid;
  position: relative;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--beige);
  box-shadow: var(--shadow-sm);
}
.g-item img {
  width: 100%;
  transition: transform .45s ease;
}
.g-item:hover img { transform: scale(1.045); }
.g-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(36, 26, 16, .8));
  opacity: 0;
  transition: opacity .3s ease;
}
.g-item:hover figcaption { opacity: 1; }

/* ==================== تواصل معنا ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.contact-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #f3ead9;
  color: var(--brown-700);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card b { font-size: 17px; color: var(--brown-800); }
.contact-card small { color: var(--muted); font-size: 14px; word-break: break-word; }

.social { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.social a {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  background: #f3ead9;
  color: var(--brown-700);
  transition: background .2s ease, color .2s ease;
}
.social a:hover { background: var(--brown-800); color: var(--gold-soft); }

/* ==================== التذييل ==================== */
.footer {
  background: var(--brown-950);
  color: #d8cbb4;
  padding: 44px 0 30px;
}
.footer-inner {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand b { font-family: var(--font-head); font-size: 26px; color: var(--gold-soft); }
.footer-brand span { font-size: 13px; opacity: .7; }
.footer-nav { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 14px; opacity: .85; transition: color .2s ease; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-copy { font-size: 13px; opacity: .6; }

/* ==================== نافذة المعاينة ==================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 14, 7, .92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(1000px, 100%); text-align: center; }
.lightbox img {
  max-height: 82vh;
  width: auto;
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox figcaption { color: var(--gold-soft); margin-top: 16px; font-size: 16px; }
.lightbox-close {
  position: absolute;
  top: 18px; inset-inline-end: 22px;
  background: none; border: 0;
  color: var(--white);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.lightbox-close:hover { opacity: 1; }

/* ==================== تنبيه انقطاع الخادم ==================== */
.fallback-banner {
  position: fixed;
  bottom: 16px; inset-inline-start: 50%;
  transform: translateX(50%) translateY(150%);
  background: var(--brown-800);
  color: var(--gold-soft);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  z-index: 150;
  max-width: min(520px, 90vw);
  text-align: center;
  transition: transform .4s ease;
}
.fallback-banner.show { transform: translateX(50%) translateY(0); }

/* ==================== حركة الظهور ==================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==================== الاستجابة ==================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 82vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--brown-900);
    color: var(--white);
    padding: 90px 22px 30px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-md);
  }
  .menu-open .nav { transform: none; }
  .nav a { padding: 14px; font-size: 17px; border-radius: 10px; }
  .nav a:hover { background: rgba(185, 139, 63, .22); }

  .nav-toggle { display: block; }
  .menu-open .nav-toggle span { background: transparent; }
  .menu-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .about-frame { min-height: 300px; }
  .about-badge { inset-inline-start: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}