/*
  public/ms.css — نظام تصميم موحد لموقع MS Woodworks
  نسخة مُعاد بناؤها من الصفر: كل الكلاسات الموجودة في index.html مدعومة هنا
  بدون تكرار أو تعارض. التصميم داكن دافئ بلمسات ذهبية، RTL، ومتجاوب.
*/

/* ════ 1. المتغيرات ════ */
:root {
  --bg: #f6f1ea;
  --bg-2: #efe7dd;
  --panel: #fffdfb;
  --panel-strong: #171512;
  --ink: #1a1917;
  --ink-soft: #544d48;
  --muted: #7d7267;
  --gold: #bf8d42;
  --gold-2: #d7ae69;
  --gold-3: #8b6630;
  --line: rgba(26, 25, 23, 0.14);
  --font-ui: "Tajawal", "Inter", sans-serif;
  --font-editorial: "Playfair Display", serif;
  --font-display: "Cormorant Garamond", serif;
  --radius-field: 12px;
  --radius-card: 18px;
  --radius-media: 26px;
  --radius-pill: 999px;
  --shadow-md: 0 18px 50px rgba(55, 40, 25, 0.08);
  --shadow-lg: 0 30px 70px rgba(18, 12, 8, 0.12);
  --transition: 260ms ease;
  --gold-cta: linear-gradient(135deg, var(--gold-2), var(--gold));
  --container: min(1180px, calc(100vw - 48px));
}

/* ════ 2. الأساسيات ════ */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
  position: relative;
}

main > section.section + section.section::before {
  position: absolute;
  top: 0;
  inset-inline: max(7vw, calc((100% - 1180px) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 102, 48, 0.2), transparent);
  content: "";
}

.services { background: var(--panel); }
.values, .workshop, .social { background: var(--bg-2); }
.gallery { background: #fbf8f3; }
.gallery > .container { width: min(1240px, calc(100vw - 48px)); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-tag {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-3);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-tag::before {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 141, 66, 0.7));
}

.section-title {
  margin: 0;
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-title em {
  color: var(--gold-3);
  font-style: normal;
}

.section-sub {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 640px;
}

/* ════ 3. الأزرار ════ */
.btn {
  --btn-bg: var(--gold-cta);
  --btn-txt: #221d18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-txt);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  box-shadow: 0 14px 28px rgba(191, 141, 66, 0.2);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: wait; opacity: 0.7; }

.btn--dark {
  --btn-bg: #1a1714;
  --btn-txt: #f8f3ee;
  box-shadow: 0 16px 28px rgba(26, 23, 20, 0.2);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: none;
}

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

.btn--fb {
  --btn-bg: #1877f2;
  --btn-txt: #fff;
  gap: 8px;
  box-shadow: none;
}

.btn--social {
  --btn-bg: rgba(191, 141, 66, 0.12);
  --btn-txt: #513b22;
  border-color: rgba(139, 102, 48, 0.2);
  box-shadow: none;
}

.btn--lg { min-height: 56px; padding-inline: 30px; }
.btn--block { width: 100%; }

/* ════ 4. الهيدر والتنقل ════ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
  background: rgba(246, 241, 234, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(100, 70, 42, 0.12);
}

.header.is-scrolled {
  background: rgba(246, 241, 234, 0.86);
  box-shadow: 0 12px 28px rgba(20, 15, 11, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  /* حاوية أعرض من جسم الصفحة: القائمة الكاملة ما تضغطش على بعضها */
  width: min(1400px, calc(100vw - 40px));
  flex-wrap: nowrap;
  min-height: 68px;
}
.header__inner > * { flex: 0 0 auto; }
.nav { flex: 0 1 auto; min-width: 0; }

.logo--header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.logo__image {
  width: 46px;
  height: 46px;
  padding: 1px;
  border: 2px solid #75502f;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  background: #e8d8bb;
  box-shadow: inset 0 0 0 1px #c59a57, 0 4px 10px rgba(20, 15, 11, 0.22);
}

.logo__text { display: flex; flex-direction: column; gap: 4px; }
.logo__name { font-size: 0.88rem; letter-spacing: 0.1em; font-weight: 800; }
.logo__sub { color: var(--ink-soft); font-size: 0.55rem; letter-spacing: 0.16em; }

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.15;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.is-active { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__login {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav__cta { margin-inline-start: 8px; }
/* الزر الذهبي في الهيدر: سطر واحد مهما ضاق المقام */
.nav__cta {
  white-space: nowrap;
  font-size: 0.9rem;
  padding-inline: 20px;
  min-height: 50px;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(26, 25, 23, 0.12);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), opacity var(--transition);
}

/* ════ 5. الهيرو ════ */
.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 68px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--panel-strong);
}

.hero__bg { position: absolute; inset: 0; }

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08) brightness(0.52);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 70%, rgba(190, 144, 76, 0.22), transparent 44%),
    linear-gradient(90deg, rgba(18, 14, 11, 0.82), rgba(18, 14, 11, 0.32));
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(76px, 10vw, 124px);
}

.hero__content { max-width: 640px; color: #fff; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__eyebrow-line {
  width: 52px;
  height: 1px;
  background: rgba(215, 174, 105, 0.8);
}

.hero__title { margin: 0; line-height: 1.05; }

.hero__title-en {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  line-height: 0.95;
}

.hero__title-ar {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.hero__title-ar em {
  color: var(--gold-2);
  font-style: normal;
}

.hero__lead {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__stats { display: none; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  list-style: none;
}

.hero__proof li::before {
  margin-inline-end: 8px;
  color: var(--gold-2);
  content: "•";
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 36px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

/* ════ 6. الشريط ════ */
.strip {
  background: var(--panel-strong);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.strip__viewport { width: 100%; overflow: hidden; }

.strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  direction: ltr;
  animation: serviceStripMove 28s linear infinite;
  will-change: transform;
}

.strip__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(18px, 4vw, 36px);
  padding: 12px clamp(18px, 4vw, 36px);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  direction: rtl;
}

.strip__group > span:not(.strip__dot) { white-space: nowrap; }
.strip__dot { flex: 0 0 auto; color: var(--gold-2); }
.strip:hover .strip__track, .strip:focus-within .strip__track { animation-play-state: paused; }
@keyframes serviceStripMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════ 7. الخدمات ════ */
.services__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.services__list li {
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: baseline;
  padding: 22px 16px;
  border-bottom: 1px solid var(--line);
}

.services__list li:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.services__list span { font-size: 1.1rem; font-weight: 800; }
.services__list p { margin: 0; color: var(--ink-soft); }

/* ════ 8. المعرض ════ */
.gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 32px;
}

.gallery__header .section-sub { max-width: 450px; margin: 0; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(240px, 24vw, 310px);
  grid-auto-flow: dense;
  gap: clamp(14px, 1.8vw, 22px);
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

.gallery__grid--curated { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gallery__grid--curated .tile--feature,
.gallery__grid--curated .tile--side {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 0;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: #201d1b;
  box-shadow: 0 18px 32px rgba(18, 12, 8, 0.1);
}

.tile__details {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: start;
}

.tile__details img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.tile__details:hover img { transform: scale(1.04); }

.tile__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(15, 14, 13, 0.82) 40%, rgba(15, 14, 13, 0.92));
  color: #fff;
  pointer-events: none;
}

.tile__cat {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(215, 174, 105, 0.95);
  font-weight: 700;
}

.tile__title {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 700;
  font-family: var(--font-editorial);
}

.tile__more {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.tile__comment {
  position: absolute;
  z-index: 2;
  inset-inline-end: 16px;
  bottom: 16px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid rgba(215, 174, 105, 0.72);
  border-radius: var(--radius-pill);
  background: rgba(20, 17, 14, 0.55);
  backdrop-filter: blur(6px);
  color: #fff7e9;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}

.tile__comment:hover { background: var(--gold-2); color: #211a15; }

.gallery__cta {
  margin-top: 34px;
  text-align: center;
}

/* تصفية المعرض */
.gallery__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-filter {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.gallery-filter:hover {
  border-color: rgba(191, 141, 66, 0.6);
  color: var(--ink);
}

.gallery-filter[aria-pressed="true"] {
  background: var(--panel-strong);
  border-color: var(--panel-strong);
  color: #fdf6ea;
}

.gallery__count {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ════ 9. تفاصيل النموذج (dialog) ════ */
.gallery-details {
  width: min(980px, calc(100% - 28px));
  max-height: min(90vh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(215, 174, 105, 0.65);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--ink);
}

.gallery-details::backdrop { background: rgba(18, 14, 11, 0.78); }

.gallery-details__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  min-height: 420px;
}

.gallery-details__image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: var(--bg-2);
}

.gallery-details__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 48px);
}

.gallery-details__copy h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.gallery-details__copy > p:not(.section-tag) { margin: 0; color: var(--ink-soft); line-height: 1.8; }

.gallery-details__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-details__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}

.gallery-details__arrow:hover:not(:disabled) {
  background: var(--panel-strong);
  color: #fdf6ea;
}

.gallery-details__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-details__counter {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.gallery-comments {
  width: min(680px, calc(100% - 32px));
  max-height: min(88vh, 760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(191, 141, 66, 0.55);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.gallery-comments::backdrop {
  background: rgba(18, 14, 11, 0.72);
  backdrop-filter: blur(4px);
}

.gallery-comments__inner {
  position: relative;
  max-height: min(88vh, 760px);
  padding: clamp(22px, 5vw, 36px);
  overflow-y: auto;
}

.gallery-comments__close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.gallery-comments__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline-end: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.gallery-comments__head img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 3px solid #75502f;
  border-radius: 12px;
  object-fit: cover;
}

.gallery-comments__head .section-tag { margin: 0 0 4px; }
.gallery-comments__head h2 { margin: 0; font-size: 1.35rem; }
.gallery-comments__list { display: grid; gap: 10px; max-height: 240px; padding-block: 18px; overflow-y: auto; }
.gallery-comments__empty { margin: 0; color: var(--muted); }

.gallery-comment {
  padding: 12px 14px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 4px 10px 10px 4px;
  background: var(--bg);
}

.gallery-comment strong { display: block; margin-bottom: 3px; }
.gallery-comment p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery-comment time { color: var(--muted); font-size: 0.78rem; }

.gallery-comments__form {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.gallery-comments__form h3 { margin: 0 0 2px; font-size: 1.08rem; }
.gallery-comments__form label { color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; }

.gallery-comments__form input,
.gallery-comments__form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: #fff;
  color: var(--ink);
}

.gallery-comments__form textarea { resize: vertical; }
.gallery-comments__form .btn { justify-self: start; margin-top: 5px; }
.gallery-comments__note { min-height: 1.5em; margin: 0; color: var(--gold-3); }

/* ════ 10. آراء العملاء ════ */
.customer-reviews {
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: clamp(32px, 5vw, 54px);
  border-top: 1px solid var(--line);
}

.customer-reviews__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.customer-reviews__head h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.25;
}

.customer-reviews__head h3 em {
  color: var(--gold-3);
  font-style: normal;
}

.customer-reviews__head > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--ink-soft);
}

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

.customer-review {
  min-height: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.customer-review__mark { display: none; }
.customer-review__body { margin: 0 0 14px; color: var(--ink-soft); }
.customer-review__author, .customer-review__project { display: block; }
.customer-review__author { color: var(--ink); font-weight: 700; }
.customer-review__project { margin-top: 3px; color: var(--muted); font-size: 0.85rem; }

.customer-reviews__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed rgba(139, 102, 48, 0.3);
  border-radius: var(--radius-card);
  color: var(--ink-soft);
  text-align: center;
}

.customer-reviews__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.customer-reviews__form-copy { grid-column: 1 / -1; margin-bottom: 4px; }
.customer-reviews__form-copy h4 { margin: 0; font-size: 1.3rem; }
.customer-reviews__form-copy p { margin: 3px 0 0; color: var(--ink-soft); }

.customer-reviews__form label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.customer-reviews__form input,
.customer-reviews__form select,
.customer-reviews__form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: #fff;
  color: var(--ink);
}

.customer-reviews__form textarea { resize: vertical; }

.customer-reviews__form input:focus,
.customer-reviews__form select:focus,
.customer-reviews__form textarea:focus {
  outline: 2px solid rgba(191, 141, 66, 0.4);
  border-color: var(--gold);
}

.review-field { display: grid; gap: 7px; }
.review-field--wide { grid-column: 1 / -1; }

.customer-reviews__form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.customer-reviews__note {
  grid-column: 1 / -1;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--gold-3);
}

/* ════ 11. فلسفة الصنعة ════ */
.craft {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}

.craft__header {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  margin-bottom: 42px;
}

.craft__heading .section-tag,
.craft__journey-head .section-tag { margin-top: 0; }

.craft__intro {
  margin: 0 0 6px;
  padding-inline-start: 24px;
  border-inline-start: 1px solid rgba(139, 102, 48, 0.38);
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.craft__feature {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(20px, 3vw, 38px);
  align-items: stretch;
}

.craft__image {
  position: relative;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--panel-strong);
  box-shadow: var(--shadow-lg);
}

.craft__image::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(15, 11, 8, 0.72));
  content: "";
}

.craft__image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.craft__image-caption {
  position: absolute;
  z-index: 1;
  inset-inline: 26px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.craft__image-caption span:last-child {
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0;
}

.craft__story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(30px, 5vw, 62px);
  border-radius: var(--radius-media);
  background: var(--panel-strong);
  color: #f7f4f0;
  box-shadow: var(--shadow-lg);
}

.craft__story-tag {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.craft__quote {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.45;
}

.craft__author {
  margin-top: 16px;
  color: var(--gold-2);
  font-style: normal;
  font-weight: 700;
}

.craft__author span { color: rgba(255, 255, 255, 0.62); font-weight: 400; }

.craft__story-copy {
  margin: 28px 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

.craft__link { gap: 14px; }

.craft__journey { margin-top: clamp(56px, 8vw, 90px); }

.craft__journey-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.craft__journey-head h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.craft__journey-head h3 em { color: var(--gold-3); font-style: normal; }

.craft__journey-head > p {
  max-width: 390px;
  margin: 0 0 5px;
  color: var(--ink-soft);
}

.craft__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.craft-step {
  min-height: 200px;
  padding: 24px 22px;
  border: 1px solid rgba(26, 25, 23, 0.08);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 251, 0.76);
  box-shadow: 0 16px 32px rgba(23, 17, 13, 0.04);
}

.craft-step__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-3);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.craft-step h4 { margin: 0 0 8px; font-size: 1.15rem; }
.craft-step p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ════ 12. القيم ════ */
.values__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  align-items: center;
}

.values__content p { color: var(--ink-soft); }
.values__list { display: grid; gap: 18px; }

.value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(26, 25, 23, 0.08);
  border-radius: var(--radius-card);
}

.value-item span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(191, 141, 66, 0.12);
  color: var(--gold-3);
  font-weight: 800;
}

.value-item h3 { margin: 0 0 6px; font-size: 1.25rem; }
.value-item p { margin: 0; color: var(--ink-soft); }

/* ════ 13. الورشة / من نحن ════ */
.workshop__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.workshop__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  min-height: clamp(320px, 46vw, 600px);
  box-shadow: var(--shadow-lg);
}

.workshop__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop__stamp {
  position: absolute;
  inset-inline-start: 22px;
  bottom: 22px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: rgba(26, 23, 20, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.workshop__stamp-num {
  font-family: var(--font-editorial);
  font-size: 2.1rem;
  color: var(--gold-2);
  line-height: 1;
}

.workshop__stamp-txt {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.workshop__body p { color: var(--ink-soft); font-size: 1.05rem; }

.workshop__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  gap: 14px;
}

.workshop__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.tick {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(191, 141, 66, 0.14);
  color: var(--gold-3);
  font-weight: 800;
  flex: 0 0 auto;
}

/* ════ 14. السوشيال ════ */
.fb {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(26, 25, 23, 0.08);
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(18, 12, 8, 0.06);
}

.fb__idbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.48);
}

.fb__avatar { width: 72px; height: 72px; flex-shrink: 0; }
.fb__hex { display: block; width: 100%; height: 100%; }
.fb__hex svg { width: 100%; height: 100%; }

.fb__hex polygon {
  fill: rgba(191, 141, 66, 0.12);
  stroke: rgba(191, 141, 66, 0.9);
  stroke-width: 2;
}

.fb__hex text {
  font-family: var(--font-editorial);
  font-size: 22px;
  fill: var(--ink);
  font-weight: 700;
}

.fb__meta { flex: 1; }
.fb__meta h3 { margin: 0; font-size: 1.8rem; line-height: 1.1; }
.fb__handle, .fb__bio { margin: 4px 0 0; color: var(--ink-soft); }

.fb__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
  flex-wrap: wrap;
}

/* ════ 15. التواصل ════ */
.contact-section { background: var(--bg-2); }

.contact-section__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.contact-section__intro { position: sticky; top: 110px; }
.contact-section__intro .section-sub { max-width: 38ch; }

.contact-card {
  background: var(--panel);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-media);
  box-shadow: 0 24px 50px rgba(18, 12, 8, 0.06);
  padding: clamp(26px, 4vw, 40px);
}

.contact-card__title {
  margin: 0;
  font-size: 1.9rem;
  font-family: var(--font-editorial);
}

.contact-card__sub {
  margin: 10px 0 22px;
  max-width: 52ch;
  color: var(--ink-soft);
}

.contact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.contact-list li:first-child { border-top: none; }

.contact-list__ic {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(191, 141, 66, 0.12);
  color: var(--gold-3);
  font-weight: 700;
}

.contact-list strong { display: block; margin-bottom: 3px; }
.contact-list a:hover { color: var(--gold-3); }

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

.field { position: relative; }

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(26, 25, 23, 0.12);
  border-radius: var(--radius-field);
  background: var(--panel);
  padding: 20px 16px 10px;
  color: var(--ink);
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea { min-height: 128px; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a34a38;
  box-shadow: 0 0 0 3px rgba(163, 74, 56, 0.15);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--gold-3);
  box-shadow: 0 0 0 3px rgba(191, 141, 66, 0.2);
}

.field label {
  position: absolute;
  inset-inline: 16px;
  top: 16px;
  color: var(--ink-soft);
  transition: transform var(--transition), font-size var(--transition), color var(--transition);
  pointer-events: none;
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: 8px;
  font-size: 0.72rem;
  color: var(--gold-3);
}

.field__help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form__note {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  font-weight: 600;
  color: var(--gold-3);
}

/* ════ 15.ب أفكار المشاريع ════ */
.ideas { background: var(--bg); }

.ideas__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.idea-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.idea-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191, 141, 66, 0.45);
  box-shadow: var(--shadow-lg);
}

.idea-card__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--gold-3);
}

.idea-card h3 { margin: 0; font-size: 1.22rem; }
.idea-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.idea-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.idea-card__tags li {
  padding: 4px 10px;
  border: 1px solid rgba(191, 141, 66, 0.32);
  border-radius: var(--radius-pill);
  color: var(--gold-3);
  font-size: 0.76rem;
  font-weight: 700;
}

.idea-card__cta {
  margin-top: auto;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: start;
  transition: color var(--transition);
}

.idea-card__cta:hover { color: var(--gold-3); }

.ideas__note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ════ 15.ج الخامات والتشطيبات ════ */
.materials { background: var(--panel); }

.materials__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.materials__head .section-sub { max-width: 440px; margin: 0; }

.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.material-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
}

.material-card__swatch {
  height: 104px;
  border-radius: calc(var(--radius-card) - 8px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.material-card__swatch--walnut {
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, #6b4a33, #4a3121 55%, #39251a);
}

.material-card__swatch--oak {
  background:
    repeating-linear-gradient(88deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #c9a06a, #b08350 55%, #96693c);
}

.material-card__swatch--veneer {
  background:
    repeating-linear-gradient(96deg, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 6px),
    linear-gradient(120deg, #9a6f4a, #7a5335 50%, #a97d55);
}

.material-card__swatch--finish {
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, #d8c8a8, #b39a72 60%, #8d7554);
}

.material-card h3 { margin: 0; font-size: 1.15rem; }
.material-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

.material-card__meta {
  color: var(--gold-3);
  font-size: 0.78rem;
  font-weight: 700;
}

.materials__note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ════ 15.د الأسئلة الشائعة ════ */
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.faq__head .section-sub { margin: 14px 0 0; color: var(--ink-soft); }

.faq__list { display: grid; gap: 10px; }

.faq-item {
  padding: 4px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--panel);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(191, 141, 66, 0.5);
  border-radius: 50%;
  color: var(--gold-3);
  font-weight: 700;
  transition: transform var(--transition);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ════ 16. الفوتر ════ */
.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) 0 20px;
  background:
    radial-gradient(ellipse at 88% 0, rgba(191, 141, 66, 0.16), transparent 38%),
    linear-gradient(145deg, #211b16, #12110f 68%);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(215, 174, 105, 0.34);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.7fr) minmax(220px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(34px, 5vw, 58px);
}

.footer__brand { max-width: 460px; }

.logo--footer {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  line-height: normal;
}

.logo--footer .logo__image { width: 54px; height: 54px; }
.logo--footer .logo__name, .logo--footer .logo__sub { color: #fff; }

.footer__statement {
  max-width: 400px;
  margin: 22px 0 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e2bd7e;
  font-weight: 700;
  transition: color var(--transition), gap var(--transition);
}

.footer__cta:hover, .footer__cta:focus-visible { color: #fff; gap: 16px; }

.footer__col h3 {
  margin: 4px 0 20px;
  color: #fff;
  font-size: 1.12rem;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__col a { transition: color var(--transition); }

.footer__col a:hover,
.footer__col a:focus-visible,
.footer__bar a:hover,
.footer__bar a:focus-visible { color: #e2bd7e; }

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__hours { margin: 0; color: rgba(255, 255, 255, 0.62); }

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.footer__social a {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.footer__bar p { margin: 0; }

/* ════ 17. عناصر عائمة ════ */
.social-dock {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 92px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 80;
}

.social-dock__item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(17, 14, 12, 0.18);
  transition: transform var(--transition);
}

.social-dock__item:hover { transform: translateY(-2px); }
.social-dock__item--wa { background: linear-gradient(135deg, #25d366, #1d9d4b); }
.social-dock__item--ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.social-dock__item--fb { background: linear-gradient(135deg, #1877f2, #0b5ad5); }

.to-top {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--gold-cta);
  color: #171512;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(191, 141, 66, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 60;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(191, 141, 66, 0.4), rgba(215, 174, 105, 1), rgba(191, 141, 66, 0.6));
  z-index: 100;
}

/* ════ 18. حساب العميل (dialog) ════ */
.customer-auth-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.customer-auth-dialog::backdrop {
  background: rgba(23, 21, 18, 0.68);
  backdrop-filter: blur(4px);
}

.customer-auth-panel { position: relative; padding: clamp(24px, 6vw, 38px); }
.customer-auth-panel > section[hidden] { display: none; }
.customer-auth-panel > section:not([hidden]) { display: block; }
.customer-auth-panel > section > .section-tag { margin: 0 0 8px; }
.customer-auth-panel > section > h2 { margin: 0; font-size: 1.7rem; }
.customer-auth-panel .customer-auth-form { padding: 16px 0 0; }
.customer-auth-dialog__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1;
}

.customer-auth-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(24px, 6vw, 38px);
}

.customer-auth-form .section-tag { margin-bottom: 0; }
.customer-auth-form h2 { margin: 0; font-size: 1.7rem; }
.customer-auth-form__description { margin: 0 0 4px; color: var(--muted); }
.customer-auth-form label { font-weight: 700; }

.customer-auth-form input {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: #fff;
  color: var(--ink);
}

.customer-auth-form input:focus-visible {
  outline: 2px solid rgba(191, 141, 66, 0.55);
  border-color: var(--gold-3);
}

.customer-auth-form .btn { margin-top: 8px; }
.customer-auth-form__note { min-height: 1.5em; margin: 0; color: var(--gold-3); }

.customer-auth-switch {
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--gold-3);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.customer-orders-list {
  display: grid;
  max-height: 42vh;
  gap: 10px;
  overflow-y: auto;
  margin: 16px 0;
}

.customer-order {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.customer-order__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-order__status { color: var(--gold-3); font-size: 0.9rem; font-weight: 700; }
.customer-order p { margin: 10px 0 6px; color: var(--ink-soft); overflow-wrap: anywhere; }
.customer-order time, .customer-orders__empty { color: var(--muted); font-size: 0.9rem; }
.customer-orders__empty { padding: 16px 0; line-height: 1.7; }

/* ════ 19. التركيز وإتاحة الوصول ════ */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-3);
  outline-offset: 3px;
}

.tile__details:focus-visible,
.tile__comment:focus-visible { outline: 3px solid var(--gold-2); outline-offset: -4px; }

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ════ 20. التجاوب ════ */
@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 18px 20px;
    background: rgba(246, 241, 234, 0.97);
    border: 1px solid rgba(26, 25, 23, 0.08);
    border-radius: var(--radius-card);
    box-shadow: 0 18px 30px rgba(18, 12, 8, 0.12);
  }

  .nav.is-open { display: flex; }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav__cta { width: 100%; margin-inline-start: 0; }
  .burger { display: grid; }

  .craft__header,
  .craft__feature,
  .values__inner,
  .workshop__inner,
  .craft__feature { grid-template-columns: 1fr; }

  .craft__header { gap: 20px; }
  .craft__intro { max-width: 680px; }
  .craft__image { min-height: clamp(320px, 56vw, 480px); }
  .craft__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gallery__grid,
  .gallery__grid--curated {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(230px, 30vw, 300px);
    max-width: 780px;
  }

  .gallery__grid--curated .tile--feature,
  .gallery__grid--curated .tile--side {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .fb__idbar { flex-wrap: wrap; }
  .fb__actions { width: 100%; margin-inline-start: 0; }

  .ideas__grid,
  .materials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .materials__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .faq__inner { grid-template-columns: 1fr; gap: 26px; }

  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .header__inner { min-height: 62px; }
  .logo__image { width: 40px; height: 40px; }
  .logo__name { font-size: 0.76rem; }
  .logo__sub { font-size: 0.48rem; }

  .hero { min-height: calc(100svh - 62px); }
  .hero__inner { padding-block: 52px; }
  .hero__proof { gap: 8px 14px; padding-top: 14px; font-size: 0.92rem; }

  .section { padding-block: 56px; }

  .strip__track { justify-content: flex-start; gap: 12px; font-size: 0.82rem; }

  .services__list { grid-template-columns: 1fr; }
  .services__list li { grid-template-columns: 1fr; gap: 3px; padding: 16px 0; }
  .services__list li:nth-child(odd) { border-inline-end: 0; }

  .gallery__header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .gallery__grid, .gallery__grid--curated {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    max-width: 520px;
  }
  .gallery__grid--curated .tile--feature,
  .gallery__grid--curated .tile--side { grid-column: auto; min-height: clamp(250px, 68vw, 330px); }

  .gallery__toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }
  .gallery-filter { flex: none; }

  .ideas__grid,
  .materials__grid { grid-template-columns: 1fr; }

  .customer-reviews__head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .customer-reviews__grid, .customer-reviews__form { grid-template-columns: 1fr; }
  .review-field--wide, .customer-reviews__form button, .customer-reviews__note { grid-column: auto; }

  .craft__journey-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .craft__steps { grid-template-columns: 1fr; }
  .craft-step { min-height: 0; }

  .fb__idbar { align-items: flex-start; padding: 22px 18px; }
  .fb__avatar { width: 56px; height: 56px; }
  .fb__meta h3 { font-size: 1.5rem; }
  .fb__actions { display: grid; grid-template-columns: 1fr; }
  .fb__actions .btn { width: 100%; }

  .contact-section__inner { grid-template-columns: 1fr; gap: 20px; }
  .contact-section__intro { position: static; }

  .gallery-details__inner { grid-template-columns: 1fr; }
  .gallery-details__image { min-height: 0; max-height: 48svh; }
  .gallery-details__copy { padding: 24px; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer__brand { grid-column: auto; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

@media (max-height: 420px) {
  .social-dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__track { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* ════════════════════════════════════════════════════════════════
   21. إضافات التحديث الأخير
   آراء العملاء · لوحة الدرجات · قبل/بعد · ورقة المواصفات ·
   شبكة اللمحات · زرار السمة · الوضع الداكن · تحريك الظهور
   كل الأنماط هنا تُكمل النظام أعلاه بنفس المتغيرات والهوية.
   ════════════════════════════════════════════════════════════════ */

/* ---------- أدوات عامة ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- زرار السمة ---------- */
.header__tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
/* الشاشات المتوسطة: شدّ متدرّج قبل التبديل لقائمة الـ burger عند ٩٨٠ */
@media (max-width: 1320px) {
  .header__inner { gap: 14px; }
  .nav { gap: 12px; }
  .nav__list { gap: 10px; }
  .nav__link { font-size: 0.85rem; }
  .nav__cta { font-size: 0.83rem; padding-inline: 16px; min-height: 46px; }
  .logo__sub { display: none; }
  .theme-toggle__label { display: none; }
  .theme-toggle { min-height: 38px; padding: 0 11px; }
}
@media (max-width: 1120px) {
  .logo__name { font-size: 0.76rem; letter-spacing: 0.08em; }
  .logo--header .logo__image { width: 42px; height: 42px; }
  /* التسليم لقائمة burger بدل ضغط ٨ روابط في سطر واحد */
  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 18px 20px;
    background: rgba(246, 241, 234, 0.97);
    border: 1px solid rgba(26, 25, 23, 0.08);
    border-radius: var(--radius-card);
    box-shadow: 0 18px 30px rgba(18, 12, 8, 0.12);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav__link { font-size: 1rem; }
  .nav__cta { width: 100%; margin-inline-start: 0; font-size: 0.92rem; padding-inline: 20px; min-height: 50px; }
  .burger { display: grid; }
  .header__tools { gap: 8px; }
  .header__inner { gap: 12px; }
}
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(191, 141, 66, 0.08);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.theme-toggle:hover { background: rgba(191, 141, 66, 0.18); color: var(--ink); }
.theme-toggle__icon { font-size: 1rem; line-height: 1; color: var(--gold-3); }
.theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: inline; }
[data-theme="dark"] .theme-toggle__label::after { content: ""; }
@media (max-width: 980px) {
  .theme-toggle__label { display: none; }
  .theme-toggle { min-height: 38px; padding: 0 11px; }
}

/* ---------- الهيرو: حبيبة الخشب + تنفّس الصورة + شريط التقييم ---------- */
@keyframes heroBreathe {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.10) translate3d(-1.4%, -1%, 0); }
}
.hero__bg img { animation: heroBreathe 26s ease-in-out infinite alternate; will-change: transform; }
.hero__grain {
  position: absolute; inset: 0;
  background: url("img/ms-walnut-texture.jpg") repeat;
  background-size: 520px auto;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero__rating {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 26px;
  padding: 10px 16px;
  border: 1px solid rgba(215, 174, 105, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(20, 16, 12, 0.42);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.hero__rating:hover { border-color: var(--gold-2); background: rgba(20, 16, 12, 0.6); transform: translateY(-2px); }
.hero__rating-stars { color: var(--gold-2); letter-spacing: 0.12em; }
.hero__rating strong { color: #fff; font-family: var(--font-ui); font-weight: 800; font-size: 1.05rem; }
.hero__rating-arrow { color: var(--gold-2); }
.hero__proof { margin-top: 22px; }

/* ---------- شريط الأرقام ---------- */
.stats {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 62px) 0;
  background: #171310;
  color: #fff;
}
.stats::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(191, 141, 66, 0.28), transparent 55%);
  pointer-events: none;
}
.stats__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}
.stat { text-align: center; padding: 10px 6px; border-inline-start: 1px solid rgba(255, 255, 255, 0.1); }
.stat:first-child { border-inline-start: 0; }
.stat__num {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--gold-2);
  letter-spacing: -0.02em;
}
.stat__label { display: block; margin-top: 10px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); }
.stats__note {
  position: relative; z-index: 1;
  margin: clamp(18px, 3vw, 26px) auto 0;
  width: var(--container);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}
.stats__note code { font-size: 0.72rem; color: rgba(215, 174, 105, 0.75); }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border: 0; }
}

/* ════════ قسم آراء العملاء ════════ */
.testimonials {
  position: relative;
  overflow: hidden;
  background: #16120F;
  color: rgba(255, 255, 255, 0.9);
}
.testimonials__glow {
  position: absolute; inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(45% 55% at 20% 0%, rgba(191, 141, 66, 0.3), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, rgba(215, 174, 105, 0.16), transparent 70%);
  pointer-events: none;
}
.testimonials > .container {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 48px));
}
.testimonials .section-tag { color: var(--gold-2); }
.testimonials .section-tag::before { background: linear-gradient(90deg, transparent, rgba(215, 174, 105, 0.8)); }
.testimonials .section-title { color: #fff; }
.testimonials .section-title em { color: var(--gold-2); }
.testimonials .section-sub { color: rgba(255, 255, 255, 0.66); }
.testimonials__demo {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px auto 0;
  padding: 8px 14px;
  border: 1px dashed rgba(215, 174, 105, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(215, 174, 105, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}
.testimonials__demo code { color: var(--gold-2); font-size: 0.74rem; }

.testimonials__layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 2fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

/* لوحة الدرجات */
.scoreboard {
  position: sticky;
  top: 104px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(215, 174, 105, 0.24);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgba(45, 36, 27, 0.9), rgba(24, 20, 17, 0.92));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}
.scoreboard__score { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.scoreboard__score strong {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(2.7rem, 5.4vw, 3.8rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.scoreboard__score span { color: rgba(255, 255, 255, 0.5); font-size: 1.05rem; }
.scoreboard__stars { position: relative; margin: 12px 0 4px; font-size: 1.28rem; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.2); }
.scoreboard__stars i {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  overflow: hidden; width: var(--pct, 100%);
  color: var(--gold-2);
  white-space: nowrap;
}
.scoreboard__stars span { position: relative; }
.scoreboard__stars i::before { content: "★★★★★"; }
.scoreboard__meta { margin: 0 0 18px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); }
.scoreboard__meta b { color: var(--gold-2); }
.scoreboard__bars { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.scorebar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); }
.scorebar__track { height: 7px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.scorebar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold-cta); transition: width 900ms cubic-bezier(.2,.7,.2,1); }
.scorebar__stars { letter-spacing: 0.06em; color: var(--gold-2); }
.scorebar__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.5); }
.scoreboard__chips { list-style: none; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 9px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.74); }
.scoreboard__chips span { color: var(--gold-2); margin-inline-end: 6px; }
.scoreboard .btn--ghost { border-color: rgba(215, 174, 105, 0.5); color: var(--gold-2); }
.scoreboard .btn--ghost:hover { background: rgba(215, 174, 105, 0.14); color: #fff; }

/* جدار الآراء */
.testimonials__wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  align-content: start;
}
.testimonials__loading, .testimonials__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.review-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(215, 174, 105, 0.4); background: rgba(255, 255, 255, 0.055); }
.review-card--wide {
  grid-column: auto;
  border-color: rgba(215, 174, 105, 0.3);
  background: linear-gradient(145deg, rgba(215, 174, 105, 0.08), rgba(255, 255, 255, 0.035) 62%);
}
.review-card::before {
  content: "”";
  position: absolute; top: 6px; inset-inline-end: 18px;
  font-family: var(--font-editorial);
  font-size: 4.2rem; line-height: 1;
  color: rgba(215, 174, 105, 0.18);
  pointer-events: none;
}
.review-card__stars { font-size: 0.94rem; letter-spacing: 0.14em; color: var(--gold-2); }
.review-card__stars .is-off { color: rgba(255, 255, 255, 0.18); }
.review-card__quote { margin: 0; font-size: 1.02rem; line-height: 1.85; color: rgba(255, 255, 255, 0.86); }
.review-card--wide .review-card__quote { font-family: var(--font-ui); font-size: 1.02rem; line-height: 1.85; }
.review-card__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.review-card__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(215, 174, 105, 0.9), rgba(139, 102, 48, 0.9));
  color: #1b1510;
  font-weight: 800; font-size: 0.84rem; letter-spacing: 0.02em;
}
.review-card__who { display: grid; gap: 2px; min-width: 0; }
.review-card__name { font-weight: 700; font-size: 0.94rem; color: #fff; }
.review-card__meta { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
.review-card__badge {
  margin-inline-start: auto;
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700;
  background: rgba(215, 174, 105, 0.14);
  border: 1px solid rgba(215, 174, 105, 0.34);
  color: var(--gold-2);
}
.review-card__badge--live { background: rgba(120, 190, 140, 0.12); border-color: rgba(140, 210, 160, 0.32); color: #a7dfb8; }
.review-card__date { font-size: 0.72rem; color: rgba(255, 255, 255, 0.38); }

/* شريط الآراء المختصر المتحرك */
.testimonials__ticker {
  overflow: hidden;
  margin-top: clamp(22px, 3vw, 34px);
  padding-block: 12px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.testimonials__ticker-track { display: flex; gap: 14px; width: max-content; animation: tickerMove 42s linear infinite; }
.testimonials__ticker:hover .testimonials__ticker-track { animation-play-state: paused; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.84rem; color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.ticker-item b { color: var(--gold-2); font-weight: 700; }

/* نموذج إرسال الرأي */
.review-form {
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(215, 174, 105, 0.22);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  display: grid; gap: 22px;
}
.review-form__copy h3 { margin: 0 0 6px; font-family: var(--font-editorial); font-size: 1.5rem; color: #fff; }
.review-form__copy p { margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 0.94rem; }
.review-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review-form .review-field { display: grid; gap: 7px; }
.review-form label, .review-form span[id] { color: rgba(255, 255, 255, 0.78); font-size: 0.86rem; font-weight: 700; }
.review-form__optional, .review-field__optional { font-weight: 400; font-size: 0.74rem; color: rgba(255, 255, 255, 0.42); }
.review-form input[type="text"], .review-form select, .review-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-field);
  background: rgba(12, 10, 8, 0.5);
  color: #fff;
  transition: border-color var(--transition), background var(--transition);
}
.review-form input::placeholder, .review-form textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
.review-form input:focus, .review-form select:focus, .review-form textarea:focus {
  outline: none; border-color: var(--gold-2); background: rgba(12, 10, 8, 0.72);
}
.review-field--wide { grid-column: 1 / -1; }
.review-field--rating { grid-column: 1 / -1; }
.field__help { display: block; font-size: 0.76rem; color: rgba(255, 255, 255, 0.44); }
.review-form__note { margin: 0; min-height: 22px; font-size: 0.88rem; color: var(--gold-2); }
.review-form__note[data-tone="error"] { color: #e7a3a3; }
.review-form__note[data-tone="success"] { color: #a7dfb8; }
.review-form > button { justify-self: start; }

/* منتقي النجوم */
.star-picker { display: inline-flex; align-items: center; gap: 2px; padding: 6px 0; }
.star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-picker label {
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  transition: color 160ms ease, transform 160ms ease;
}
.star-picker label:hover, .star-picker label.is-on { color: var(--gold-2); transform: translateY(-2px) scale(1.06); }
.star-picker input:checked + label { color: var(--gold-2); }
.star-picker input:focus-visible + label { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 4px; }
.star-picker__text { margin-inline-start: 12px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); font-weight: 600; }

@media (max-width: 860px) {
  .testimonials__layout { grid-template-columns: 1fr; max-width: 760px; }
  .scoreboard { position: static; }
}
@media (max-width: 720px) {
  .testimonials__layout { max-width: 560px; }
  .testimonials__wall { grid-template-columns: 1fr; }
  .review-form__grid { grid-template-columns: 1fr; }
}

/* ════════ التجديد: قبل / بعد ════════ */
.restore { background: var(--panel); }
.restore__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(22px, 3.4vw, 46px); align-items: center; }
.ba {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
  box-shadow: var(--shadow-lg);
  background: #171310;
  --pos: 50%;
}
.ba__img { display: block; width: 100%; height: clamp(300px, 44vw, 520px); object-fit: cover; }
.ba__clip {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;
}
.ba__clip .ba__img { width: 100%; height: 100%; filter: saturate(0.72) brightness(0.92); }
.ba__tag {
  position: absolute; top: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}
.ba__tag--before { left: 14px; background: rgba(24, 20, 17, 0.72); color: #fff; }
.ba__tag--after { right: 14px; background: rgba(215, 174, 105, 0.92); color: #241b10; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), #d7ae69, rgba(255,255,255,0.2));
  pointer-events: none;
}
.ba__handle::after {
  content: "⇔";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fffdfb;
  color: var(--gold-3);
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.restore__body { display: grid; gap: 22px; }
.restore__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: restore; }
.restore__steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
}
.restore__step-num { font-family: var(--font-editorial); font-size: 1.3rem; color: var(--gold-3); }
.restore__steps h3 { margin: 0 0 4px; font-size: 1.02rem; }
.restore__steps p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.restore__note { margin: 0; font-size: 0.84rem; color: var(--muted); }
@media (max-width: 980px) {
  .restore__grid { grid-template-columns: 1fr; }
}

/* ════════ ورقة مواصفات المشروع ════════ */
.estimator { background: var(--bg-2); }
.estimator__inner { display: grid; gap: clamp(22px, 3vw, 40px); }
.estimator__intro { max-width: 760px; }
.estimator__disclaimer {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(191, 141, 66, 0.09);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.estimator__card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2.6vw, 28px);
  align-items: start;
}
.estimator__form, .estimator__result {
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-md);
}
.estimator__form { display: grid; gap: 16px; }
.estimator__field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.estimator__field label, .estimator__field legend { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.estimator__field select, .estimator__field input[type="number"] {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--bg);
  color: var(--ink);
}
.estimator__field select:focus, .estimator__field input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.estimator__field .field__help { color: var(--muted); }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-set input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-set label {
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  transition: all var(--transition);
}
.chip-set label:hover { border-color: var(--gold); color: var(--ink); }
.chip-set input:checked + label { background: var(--gold-cta); border-color: transparent; color: #221d18; }
.chip-set input:focus-visible + label { outline: 2px solid var(--gold-3); outline-offset: 2px; }
.estimator__toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; }
.estimator__toggle input { width: 18px; height: 18px; accent-color: var(--gold); }

.estimator__result { position: relative; overflow: hidden; }
.estimator__result::before {
  content: "";
  position: absolute; inset: 0;
  background: url("img/ms-walnut-texture.jpg") center/cover;
  opacity: 0.05;
  pointer-events: none;
}
.estimator__result > * { position: relative; }
.estimator__result-empty { margin: 0; color: var(--muted); font-size: 0.92rem; }
.spec-sheet { display: grid; gap: 16px; }
.spec-sheet__title { margin: 0; font-family: var(--font-editorial); font-size: 1.5rem; }
.spec-sheet__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spec-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.spec-row dt { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-row dd { margin: 4px 0 0; font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.spec-sheet__brief { margin: 0; }
.spec-sheet__brief textarea {
  width: 100%; min-height: 128px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.8;
  resize: vertical;
}
.spec-sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-sheet__note { margin: 0; font-size: 0.78rem; color: var(--muted); }
@media (max-width: 980px) {
  .estimator__card { grid-template-columns: 1fr; }
  .spec-sheet__rows { grid-template-columns: 1fr; }
}

/* ════════ شبكة اللمحات الاجتماعية ════════ */
.social-grid {
  list-style: none;
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
}
.social-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1;
  background: #171310;
}
.social-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.social-grid a:hover img { transform: scale(1.08); }
.social-grid span {
  position: absolute; inset: auto 0 0;
  padding: 22px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(15, 12, 9, 0.86));
  color: #fff;
  font-size: 0.76rem; font-weight: 700;
}
@media (max-width: 780px) {
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ════════ مواصفات النموذج داخل النافذة ════════ */
.gallery-details__specs {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.gallery-details__specs dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gallery-details__specs dd { margin: 2px 0 0; font-size: 0.92rem; font-weight: 700; color: var(--ink); }

/* ════════ تحريك الظهور عند التمرير ════════ */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 720ms ease, transform 720ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__bg img { animation: none; }
  .testimonials__ticker-track { animation: none; }
}

/* ════════ السمة الداكنة ════════ */
[data-theme="dark"] {
  --bg: #131110;
  --bg-2: #171513;
  --panel: #1C1917;
  --panel-strong: #0F0D0B;
  --ink: #F2ECE3;
  --ink-soft: #CFC5B8;
  --muted: #9C9083;
  --gold: #c9964c;
  --gold-2: #e0be80;
  --gold-3: #d7ae69;
  --line: rgba(226, 214, 199, 0.14);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] body { background: #131110; }
[data-theme="dark"] .services, [data-theme="dark"] .gallery, [data-theme="dark"] .materials, [data-theme="dark"] .restore { background: #1A1715; }
[data-theme="dark"] .ideas, [data-theme="dark"] .values, [data-theme="dark"] .workshop, [data-theme="dark"] .social, [data-theme="dark"] .contact-section, [data-theme="dark"] .estimator { background: #161412; }
[data-theme="dark"] .stat, [data-theme="dark"] .value-item, [data-theme="dark"] .idea-card, [data-theme="dark"] .material-card,
[data-theme="dark"] .faq-item, [data-theme="dark"] .craft-step, [data-theme="dark"] .contact-card,
[data-theme="dark"] .estimator__form, [data-theme="dark"] .estimator__result, [data-theme="dark"] .spec-row,
[data-theme="dark"] .restore__steps li { background: #201D1A; border-color: rgba(226, 214, 199, 0.12); }
[data-theme="dark"] .idea-card__tags li, [data-theme="dark"] .material-card__meta { color: var(--gold-2); }
[data-theme="dark"] .nav, [data-theme="dark"] .burger span { color: inherit; }
[data-theme="dark"] .nav { background: rgba(22, 20, 18, 0.97); border-color: rgba(226, 214, 199, 0.12); }
[data-theme="dark"] .btn--ghost { color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .btn--dark { background: #2A2521; color: var(--gold-2); }
[data-theme="dark"] .section-title, [data-theme="dark"] .craft__quote, [data-theme="dark"] .contact-card__title { color: var(--ink); }
[data-theme="dark"] .craft { background: #161412; }
[data-theme="dark"] .craft__story { background: #211D19; }
[data-theme="dark"] .craft__image-caption { color: #fff; }
[data-theme="dark"] .footer { background: #0F0D0B; }
[data-theme="dark"] .customer-auth-panel { background: #1C1917; color: var(--ink); }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select,
[data-theme="dark"] .customer-auth-form input { background: #131110; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .field label { color: var(--ink-soft); }
[data-theme="dark"] .hero__grain { opacity: 0.2; }
[data-theme="dark"] .tile { background: #0F0D0B; }
[data-theme="dark"] .gallery-comment, [data-theme="dark"] .review-card { background: rgba(255, 255, 255, 0.05); }

/* ── تصحيحات نهائية للسمة الداكنة: الهيدر + الحقول البيضاء + النوافذ ── */
[data-theme="dark"] .header,
[data-theme="dark"] .header.is-scrolled {
  background: rgba(19, 17, 16, 0.82);
  border-bottom-color: rgba(226, 214, 199, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .nav__cta { backdrop-filter: blur(6px); }
[data-theme="dark"] .gallery-comments__form textarea,
[data-theme="dark"] .customer-reviews__form textarea,
[data-theme="dark"] .gallery-comments__form input,
[data-theme="dark"] .customer-reviews__form input { background: #131110; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .customer-order { background: #201D1A; border-color: rgba(226, 214, 199, 0.12); }
[data-theme="dark"] dialog { background: #1C1917; color: var(--ink); border-color: rgba(226, 214, 199, 0.14); }
[data-theme="dark"] dialog::backdrop { background: rgba(6, 5, 4, 0.72); }
[data-theme="dark"] .gallery-details p, [data-theme="dark"] .gallery-comments,
[data-theme="dark"] .gallery-details__specs dd { color: var(--ink-soft); }
[data-theme="dark"] .review-form { border-color: rgba(226, 214, 199, 0.12); background: rgba(255, 255, 255, 0.025); }
[data-theme="dark"] .review-form .review-field input,
[data-theme="dark"] .review-form .review-field select,
[data-theme="dark"] .review-form .review-field textarea { background: #131110; color: var(--ink); border-color: rgba(226, 214, 199, 0.14); }
[data-theme="dark"] .estimator__form input,
[data-theme="dark"] .estimator__form select,
[data-theme="dark"] .estimator__form textarea { background: #131110; color: var(--ink); border-color: rgba(226, 214, 199, 0.14); }
[data-theme="dark"] .estimator__result { color: var(--ink-soft); }
[data-theme="dark"] .chip-set label { background: #131110; }
[data-theme="dark"] .chip-set input:checked + label { color: #221d18; }
[data-theme="dark"] .faq-item p { color: var(--ink-soft); }
[data-theme="dark"] .gallery-filter.is-active { background: var(--gold-2); color: #17120c; }
[data-theme="dark"] .footer__bottom,
[data-theme="dark"] .footer__legal { border-color: rgba(226, 214, 199, 0.1); }

/* ═══════════════════════════════════════════════════════════════════════
   ٩) توزيع صور الأعمال الحقيقية: ألبوم متحرك + شارات المصدر + معرض الزوايا
   ═══════════════════════════════════════════════════════════════════════ */

/* شارة «بالصور من تنفيذ الورشة» فوق الهيرو */
.hero__shot-tag {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 20px;
  z-index: 3;
  padding: 7px 14px;
  border: 1px solid rgba(215, 174, 105, 0.5);
  border-radius: var(--radius-pill);
  background: rgba(15, 13, 11, 0.6);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .hero__shot-tag { inset-block-end: 12px; inset-inline-start: 14px; font-size: 0.7rem; padding: 6px 11px; }
}

/* ── ألبوم الورشة: شريط أفقي متحرك من الصور الحقيقية ── */
.album { background: #14110f; color: var(--cream); padding-block: 58px 46px; overflow: hidden; }
.album__head .section-title { color: var(--cream); }
.album__head .section-sub { color: rgba(246, 241, 234, 0.72); max-width: 70ch; }
.album__track {
  position: relative;
  width: min(calc(100% - 44px), 1240px);
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 22px;
  /* الشريط نفسه LTR حتى تبدأ النسخة الأولى من الحافة اليسرى ويتبقى التكرار لملء الفراغ؛
     لو تُرك RTL كانت حاوية max-content تتحاذى مع اليمين وتسيب نصف الشاشة فاضي. */
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.album__move {
  display: flex;
  gap: 16px;
  direction: ltr; /* الشريط يتحرك أفقيًا؛ العنوان الداخلي يرجع RTL */
  width: max-content;
  animation: albumScroll calc(var(--album-count, 14) * 4.6s) linear infinite;
}
@keyframes albumScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.album__track:hover .album__move,
.album__track:focus-within .album__move,
.album__move.is-paused { animation-play-state: paused; }
.album__shot {
  position: relative;
  flex: 0 0 auto;
  width: clamp(228px, 24vw, 310px);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(215, 174, 105, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: #1d1917;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.album__shot:hover,
.album__shot:focus-visible { transform: translateY(-6px); border-color: var(--gold-2); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.album__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.65s ease, transform 1.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* الصورة بتظهر بتلاشٍ + تقريب خفيف بعد التحميل، والهيكل بيملي المكان لحد ما تنزل */
.album__shot.is-loaded img { opacity: 1; transform: none; }
.album__shot:not(.is-loaded)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #241f1b 0%, #3a3129 48%, #241f1b 96%);
  background-size: 230% 100%;
  animation: albumSkeleton 1.5s ease-in-out infinite;
}
@keyframes albumSkeleton {
  from { background-position: 130% 0; }
  to   { background-position: -130% 0; }
}
.album__cap {
  position: absolute;
  inset: auto 0 0;
  direction: rtl;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(12, 10, 9, 0.86));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: start;
}
.album__note {
  margin: 18px auto 0;
  width: var(--container);
  color: rgba(246, 241, 234, 0.55);
  font-size: 0.84rem;
}
[data-theme="dark"] .album { background: #0f0d0b; }
@media (prefers-reduced-motion: reduce) {
  .album__move { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; margin-inline: auto; }
  .album__shot { width: clamp(180px, 27vw, 260px); }
  .album__shot img { transition: opacity 0.3s ease; transform: none; }
  .album__shot:not(.is-loaded)::before { animation: none; }
}
@media (max-width: 640px) {
  .album { padding-block: 44px 34px; }
  .album__track { width: calc(100% - 32px); }
  .album__shot { width: 46vw; }
  .album__note { font-size: 0.78rem; }
}

/* ── رقائق مصدر الصور (منفَّذ / تصوّر) ── */
.gallery-sources { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(191, 141, 66, 0.07);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.gallery-source:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--ink); }
.gallery-source__n {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(191, 141, 66, 0.16);
  color: var(--gold-3);
  font-size: 0.74rem;
  font-weight: 800;
}
.gallery-source[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery-source[aria-pressed="true"] .gallery-source__n { background: rgba(215, 174, 105, 0.28); color: var(--gold-2); }
.gallery-source[data-source="real"][aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1714; }
.gallery-source[data-source="real"][aria-pressed="true"] .gallery-source__n { background: rgba(26, 23, 20, 0.22); color: #1a1714; }
.gallery__toolbar { align-items: flex-start; }
[data-theme="dark"] .gallery-source { background: rgba(215, 174, 105, 0.08); border-color: rgba(226, 214, 199, 0.16); color: var(--ink-soft); }
[data-theme="dark"] .gallery-source[aria-pressed="true"] { background: var(--gold-2); color: #17120c; border-color: var(--gold-2); }
[data-theme="dark"] .gallery-source[aria-pressed="true"] .gallery-source__n { background: rgba(23, 18, 12, 0.25); color: #17120c; }
@media (max-width: 980px) {
  .gallery-sources { width: 100%; }
}

/* ── شارة نوع الصورة داخل كرت المعرض ── */
.tile__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tile__kind {
  order: -1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.tile__kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tile__kind--real { background: var(--gold-2); color: #17120c; }
.tile__kind--concept { border: 1px solid rgba(255, 255, 255, 0.42); color: rgba(255, 255, 255, 0.9); }
.tile__kind--real::before { background: #17120c; }
.tile__cat { order: 0; }
.tile__title { flex: 0 0 100%; order: 1; margin-top: 2px; }
.tile__more { order: 2; }

/* ── نافذة التفاصيل: صورة + شارة + شريط الزوايا ── */
.gallery-details__shot { position: relative; margin: 0; }
.gallery-details__kind {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}
.gallery-details__kind[data-kind="real"] { background: var(--gold-2); color: #17120c; }
.gallery-details__strip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.gallery-details__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 74px;
  height: 92px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #201d1b;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.gallery-details__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-details__thumb span {
  position: absolute;
  inset-block-end: 4px;
  inset-inline-end: 4px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(12, 10, 9, 0.7);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
}
.gallery-details__thumb:hover { transform: translateY(-3px); }
.gallery-details__thumb.is-active { border-color: var(--gold-2); }
.gallery-details__thumb.is-active span { background: var(--gold-2); color: #17120c; }
.gallery-details__strip[hidden] { display: none; }
[data-theme="dark"] .gallery-details__thumb { background: #131110; }

/* ── صفحات مستقلة: MS Woodworks 10 ── */
picture { display: block; }
.hero__bg > picture { width: 100%; height: 100%; }
.hero__bg > picture > img { width: 100%; height: 100%; object-fit: cover; }
.logo > picture { flex: 0 0 auto; }
.logo > picture .logo__image { max-width: none; }
.skip-link { position: fixed; inset-block-start: -100px; inset-inline-start: 20px; z-index: 10000; padding: 12px 22px; border-radius: 10px; background: var(--gold-2); color: #17120c; }
.skip-link:focus { inset-block-start: 12px; }
.page-intro { padding: clamp(122px, 12vw, 170px) 0 38px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 15% 20%, rgba(191, 141, 66, .12), transparent 65%), var(--bg-2); }
.page-intro h1 { margin: 8px 0 12px; font-size: clamp(2rem, 4.2vw, 3.7rem); line-height: 1.35; font-weight: 800; }
.page-intro__description { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.breadcrumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: .9rem; color: var(--muted); }
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--gold-3); }
.page-inner main > .section { padding-top: clamp(44px, 6vw, 76px); }
.page-inner .gallery__header { max-width: none; }
.page-inner .testimonials { overflow: hidden; }
.latest { background: var(--panel); }
.latest > .container { width: min(1240px, calc(100vw - 48px)); }
.latest__head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 12px; }
.latest__head .section-title { margin-bottom: 0; }
.latest > .container > .section-sub { max-width: 760px; margin: 0 0 32px; }
.latest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.latest-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); transition: transform var(--transition), box-shadow var(--transition); }
.latest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.latest-card__image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.latest-card__image > picture, .latest-card__image img { width: 100%; height: 100%; }
.latest-card__image img { object-fit: cover; transition: transform 500ms ease; }
.latest-card:hover .latest-card__image img { transform: scale(1.025); }
.latest-card__badge { position: absolute; inset-inline-start: 14px; inset-block-start: 14px; background: var(--gold-2); color: #17120c; border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 800; }
.latest-card__body { padding: 22px; }
.latest-card__category { margin: 0 0 8px; color: var(--gold-3); font-size: .85rem; font-weight: 700; }
.latest-card h3 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.5; }
.latest-card__body > p:not(.latest-card__category) { font-size: .92rem; color: var(--ink-soft); margin: 0 0 14px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 700; color: var(--gold-3); }
.site-paths__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.site-path { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.site-path__num { direction: ltr; align-self: flex-start; font-family: var(--font-display); font-size: 2rem; line-height: 1.2; color: var(--gold-3); }
.site-path > p { margin: 14px 0 2px; font-size: .85rem; color: var(--muted); }
.site-path h3 { margin: 0 0 10px; font-size: 1.25rem; }
.site-path > span:not(.site-path__num) { color: var(--ink-soft); font-size: .92rem; }
.site-path > b { margin-top: 18px; color: var(--gold-3); font-size: 1.4rem; }
.site-path:hover { border-color: var(--gold); }
.page-cta { background: var(--panel-strong); color: #fff; }
.page-cta__inner { display: flex; gap: 32px; justify-content: space-between; align-items: center; }
.page-cta h2 { margin: 4px 0 12px; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.page-cta p { margin: 0; color: #d4cbc0; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-cta .section-tag { color: var(--gold-2); }
.page-cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.page-inner .stats { margin: 0; }
input, select, textarea { font-size: 16px; }
.nav__link, .burger, .theme-toggle, .gallery-filter, .gallery-source { min-height: 44px; }
body.menu-open { overflow: hidden; }
dialog.dialog-fallback[open] { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%,-50%); z-index: 2000; display: block; max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 0 0 100vmax rgba(0,0,0,.65); }
[data-theme="dark"] .latest-card__category, [data-theme="dark"] .text-link, [data-theme="dark"] .site-path__num, [data-theme="dark"] .site-path > b, [data-theme="dark"] .breadcrumbs a { color: var(--gold-2); }
@media (max-width: 1000px) {
  .site-paths__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest__grid { gap: 16px; }
  .latest-card__body { padding: 18px; }
}
@media (max-width: 900px) {
  .latest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .latest-card:last-child .latest-card__image { aspect-ratio: auto; }
  .page-cta__inner { flex-direction: column; align-items: flex-start; }
  .page-cta__actions { width: 100%; }
}
@media (max-width: 640px) {
  .latest > .container { width: calc(100% - 32px); }
  .latest__head { display: block; }
  .latest__head .btn { margin-top: 20px; }
  .latest__grid, .site-paths__grid { grid-template-columns: minmax(0, 1fr); }
  .latest-card:last-child { display: block; grid-column: auto; }
  .latest-card:last-child .latest-card__image { aspect-ratio: 4 / 3; }
  .site-path { padding: 24px; }
  .page-cta__actions { flex-direction: column; }
  .page-cta__actions .btn { width: 100%; }
}
@media (max-width: 780px) {
  .page-intro { padding-top: 82px; }
  .social-dock { display: none; }
  .hero__actions {
    width: min(100%, 340px);
    margin: 28px auto 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .hero__actions .btn {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    padding-inline: 18px;
    text-align: center;
  }
  .hero__rating {
    display: flex;
    width: min(100%, 340px);
    min-height: 58px;
    margin: 14px auto 0;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero__inner { padding-block: 44px 18px; }
  .hero__proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    width: min(100%, 340px);
    margin: 22px auto 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(15, 13, 11, 0.32);
    font-size: 0.9rem;
  }
  .hero__proof li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
  .hero__proof li::before {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin: 0.55em 0 0;
    border-radius: 50%;
    background: var(--gold-2);
    content: "";
  }
  .hero__proof li:last-child { grid-column: 1 / -1; }
  .hero__scroll {
    position: relative;
    z-index: 1;
    inset: auto;
    align-self: center;
    width: 46px;
    height: 46px;
    margin: 18px auto 0;
    padding: 0;
    border-radius: 50%;
    transform: none;
    align-items: center;
    justify-content: center;
  }
  .hero__scroll span { margin-top: -4px; }
  .hero__shot-tag {
    position: relative;
    z-index: 1;
    inset: auto;
    align-self: center;
    max-width: calc(100% - 36px);
    margin: 14px auto 24px;
    padding: 9px 16px;
    font-size: 0.78rem;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
  }
}
@media (max-width: 360px) {
  .hero__proof { grid-template-columns: minmax(0, 1fr); }
  .hero__proof li:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .latest-card, .latest-card__image img { transition: none; }
  .latest-card:hover, .latest-card:hover .latest-card__image img { transform: none; }
}
