/* قالب أتيليه — تخصيص الثيم (داكن + ذهبي). غيِر الألوان عبر المتغيرات. */
:root {
  --bg: #070708;
  --bg-elevated: #101014;
  --surface: rgba(18, 18, 24, 0.78);
  --gold: #d4b56c;
  --gold-light: #f0e6c8;
  --gold-dark: #8f7438;
  --text: #f7f5f0;
  --text-muted: rgba(247, 245, 240, 0.62);
  --border-glass: rgba(212, 181, 108, 0.18);
  --shadow-soft: 0 28px 72px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 16px 48px rgba(212, 181, 108, 0.12);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font-display: "El Messiri", "Tajawal", system-ui, sans-serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(212, 181, 108, 0.28);
  color: var(--text);
}

body {
  font-family: var(--font-display);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 100% -20%, rgba(212, 181, 108, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 80% 60% at -10% 110%, rgba(80, 60, 30, 0.12) 0%, transparent 48%),
    linear-gradient(180deg, #070708 0%, #0c0c10 50%, #070708 100%);
  min-height: 100vh;
}

/* نسيج خفيف جدًا يمنح العمق دون صورة */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > main,
body > footer {
  position: relative;
  z-index: 1;
}

/* Glass navigation */
.glass-nav {
  background: linear-gradient(180deg, rgba(7, 7, 8, 0.82) 0%, rgba(7, 7, 8, 0.55) 100%);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: background 0.35s var(--transition-smooth), box-shadow 0.35s var(--transition-smooth),
    border-color 0.35s;
}

.glass-nav.is-scrolled {
  background: rgba(7, 7, 8, 0.92);
  border-bottom-color: rgba(212, 181, 108, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.nav-link-luxury {
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s var(--transition-smooth);
}

.nav-link-luxury::after {
  content: "";
  position: absolute;
  inset-inline: 0.15rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.4s var(--transition-smooth), opacity 0.3s;
}

.nav-link-luxury:hover,
.nav-link-luxury:focus-visible {
  color: var(--gold-light);
}

.nav-link-luxury:hover::after,
.nav-link-luxury:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-link-luxury:focus-visible {
  outline: none;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 2px rgba(212, 181, 108, 0.35);
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(212, 181, 108, 0.09) 0%, transparent 55%),
    linear-gradient(
      165deg,
      rgba(7, 7, 8, 0.82) 0%,
      rgba(7, 7, 8, 0.38) 38%,
      rgba(7, 7, 8, 0.88) 100%
    );
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow:
    inset 0 0 140px rgba(0, 0, 0, 0.55),
    inset 0 -80px 100px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  background: rgba(212, 181, 108, 0.1);
  border: 1px solid rgba(212, 181, 108, 0.28);
  box-shadow: 0 0 24px rgba(212, 181, 108, 0.08);
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero-content {
  position: relative;
  z-index: 3;
}

.gold-line {
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint__mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-glass);
  border-radius: 12px;
  position: relative;
}

.scroll-hint__wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-inline-start: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-wheel 2s var(--transition-smooth) infinite;
}

@keyframes scroll-wheel {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.35;
    transform: translateY(10px);
  }
}

/* Category cards */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--transition-smooth);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(7, 7, 8, 0.15) 45%, rgba(7, 7, 8, 0.94) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.35rem;
  transition: background 0.5s var(--transition-smooth);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(7, 7, 8, 0.25) 40%, rgba(7, 7, 8, 0.96) 100%);
}

.category-card__overlay h3 {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
  letter-spacing: 0.02em;
}

.category-card::after {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--transition-smooth);
  pointer-events: none;
  z-index: 2;
}

.category-card:hover::after {
  opacity: 1;
}

/* Product cards */
.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(165deg, var(--bg-elevated) 0%, #0a0a0f 100%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--transition-spring), box-shadow 0.45s var(--transition-smooth),
    border-color 0.35s;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(212, 181, 108, 0.35);
  box-shadow: var(--shadow-gold), var(--shadow-soft), 0 0 0 1px rgba(212, 181, 108, 0.08);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.09) 49%, transparent 58%);
  opacity: 0;
  transition: opacity 0.65s var(--transition-smooth);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover .product-card__media::after {
  opacity: 1;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--transition-smooth);
}

.product-card:hover .product-card__media img {
  transform: scale(1.07);
}

.product-card__hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 7, 8, 0.2) 55%, rgba(7, 7, 8, 0.9) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  transition: opacity 0.45s var(--transition-smooth);
}

.product-card:hover .product-card__hover {
  opacity: 1;
}

/* About */
.about-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201, 169, 98, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Testimonials */
.testimonial-slide {
  display: none;
  animation: testimonial-in 0.55s var(--transition-smooth) both;
}

.testimonial-slide.is-active {
  display: block;
}

@keyframes testimonial-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-quote {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.75;
  color: var(--text);
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-glass);
  border: none;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

.testimonial-dots button.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* Contact glass panel */
.glass-panel {
  background: linear-gradient(155deg, rgba(22, 22, 30, 0.88) 0%, rgba(14, 14, 18, 0.75) 100%);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.glass-panel--quote {
  position: relative;
  overflow: hidden;
}

.glass-panel--quote::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(212, 181, 108, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.input-luxury {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 0.75rem;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.input-luxury:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.input-luxury::placeholder {
  color: var(--text-muted);
}

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(145deg, #e4cf8a 0%, var(--gold) 42%, var(--gold-dark) 100%);
  color: #0a0908;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.28s var(--transition-spring), box-shadow 0.28s;
  box-shadow: 0 10px 28px rgba(212, 181, 108, 0.28), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(212, 181, 108, 0.38), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn-gold:active {
  transform: translateY(-1px);
}

.btn-gold:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 181, 108, 0.45), 0 10px 28px rgba(212, 181, 108, 0.28);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(212, 181, 108, 0.04);
  color: var(--gold-light);
  border: 1px solid rgba(212, 181, 108, 0.35);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.28s, color 0.28s, border-color 0.28s, box-shadow 0.28s;
}

.btn-outline:hover {
  background: rgba(212, 181, 108, 0.12);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 181, 108, 0.4);
}

/* أزرار تحكم (سلايدر) */
.btn-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(212, 181, 108, 0.06);
  border: 1px solid rgba(212, 181, 108, 0.28);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-control:hover {
  background: rgba(212, 181, 108, 0.14);
  border-color: rgba(212, 181, 108, 0.5);
}

.btn-control:active {
  transform: scale(0.98);
}

.btn-control:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 181, 108, 0.45);
}

/* واتساب CTA */
.whatsapp-cta {
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.14) 0%, rgba(18, 90, 50, 0.2) 100%);
  border: 1px solid rgba(37, 211, 102, 0.38) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--transition-smooth), box-shadow 0.25s, background 0.25s;
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.12);
}

.whatsapp-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.35);
}

/* Mobile menu */
@media (max-width: 767px) {
  .nav-drawer {
    position: fixed;
    inset: 0;
    top: 4rem;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--transition-smooth), opacity 0.35s, visibility 0.35s;
    z-index: 40;
    border-bottom: 1px solid var(--border-glass);
  }

  body.menu-open .nav-drawer {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Section titles */
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.95;
}

.section-heading-line {
  width: 3rem;
  height: 1px;
  margin-inline: auto;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.65;
}

/* شرائط أقسام */
.section-strip {
  position: relative;
}

.section-strip::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 181, 108, 0.2), transparent);
  opacity: 0.8;
}

.section-strip--soft {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 181, 108, 0.02) 50%, transparent 100%);
}

/* إطار صورة من نحن */
.about-frame {
  position: relative;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(212, 181, 108, 0.45) 0%,
    rgba(212, 181, 108, 0.08) 45%,
    rgba(212, 181, 108, 0.2) 100%
  );
  box-shadow: var(--shadow-soft), 0 0 60px rgba(212, 181, 108, 0.06);
}

.about-frame__inner {
  border-radius: calc(1.25rem - 1px);
  overflow: hidden;
}

.footer-link {
  position: relative;
  transition: color 0.25s;
}

.footer-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}

.footer-link:hover {
  color: var(--gold-light);
}

.footer-link:hover::after {
  transform: scaleX(1);
}

/* صفحات داخلية — ترويسة مدمجة */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
  padding-top: 7rem;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
}

.page-hero__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 8, 0.45) 0%,
    rgba(7, 7, 8, 0.75) 55%,
    rgba(7, 7, 8, 0.94) 100%
  );
}

.page-hero__tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(212, 181, 108, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

/* تصفية الكتالوج */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(22, 22, 28, 0.85);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: color 0.25s var(--transition-smooth), border-color 0.25s,
    background 0.25s, box-shadow 0.25s;
}

.filter-chip:hover {
  color: var(--text);
  border-color: rgba(201, 169, 98, 0.45);
}

.filter-chip--active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

/* معرض صور المنتج */
.gallery-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 5.5rem;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
  padding: 0;
  background: var(--bg-elevated);
  cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

#testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-glass);
  border: none;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

#testimonial-dots button.is-active {
  background: var(--gold);
  transform: scale(1.25);
}