:root {
  --bg: #0b0a08;
  --bg-2: #14120e;
  --gold: #d9b35b;
  --gold-light: #f3d88f;
  --text: #f2ede3;
  --muted: #a39c8d;
  --line: rgba(217, 179, 91, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

h1, h2, .brand-name {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(11, 10, 8, 0.9), rgba(11, 10, 8, 0));
  backdrop-filter: blur(4px);
}

.brand { display: flex; align-items: center; gap: 0.7rem; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  box-shadow: 0 0 12px rgba(217, 179, 91, 0.4);
}
.brand-mark.small { width: 34px; height: 34px; font-size: 0.8rem; }

.brand-name { font-size: 1.2rem; color: var(--gold-light); }

.nav nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 5%, rgba(11, 10, 8, 0.55) 45%, rgba(11, 10, 8, 0.2)),
    linear-gradient(to right, rgba(11, 10, 8, 0.8), transparent 70%);
}

.hero-content {
  position: relative;
  padding: 0 clamp(1rem, 6vw, 5rem) clamp(3rem, 10vh, 6rem);
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(217, 179, 91, 0.45);
}

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text);
  margin: 1rem 0 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline { border: 1px solid var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: rgba(217, 179, 91, 0.12); }

/* About */
.about {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 6vw, 5rem);
  overflow: hidden;
}

/* Moroccan-inspired pattern echoing the lit door panels */
.pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px 28px);
  pointer-events: none;
}

.about-text, .about-img { position: relative; }

.about-text p { color: var(--muted); max-width: 52ch; }

.features { list-style: none; margin-top: 2rem; }
.features li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.features span {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.85rem;
}

.about-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(217, 179, 91, 0.12);
}

/* Contact */
.contact {
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 6vw, 5rem);
  text-align: center;
}
.contact > p { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(217, 179, 91, 0.08), transparent);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }

.card-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold);
}
.card-value { font-size: 1.1rem; font-weight: 600; }

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about-img { max-width: 420px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .product:last-child { grid-column: span 2; }
  .grid .product:last-child img { aspect-ratio: 4 / 3; }
  .location { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav nav { display: none; }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .grid { grid-template-columns: 1fr; }
  .grid .product:last-child { grid-column: auto; }
  .grid .product:last-child img { aspect-ratio: 3 / 4; }
}

/* Language switch — sliding thumb */
.lang-switch {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.8);
  direction: ltr;
}
.lang-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(217, 179, 91, 0.5);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.35s cubic-bezier(.65, 0, .35, 1);
}
.lang-switch button {
  position: relative;
  z-index: 1;
  height: 32px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 0.8rem 'Inter', 'Tajawal', sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.3s;
}
.lang-switch button[data-lang="ar"] { font-family: 'Tajawal', sans-serif; font-size: 1rem; }
.lang-switch button[aria-checked="true"] { color: #1a1408; }

/* Collection (from Instagram) */
.collection {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem);
  background: var(--bg-2);
  text-align: center;
}
.section-sub { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2.5rem 0;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}
.product:hover { border-color: var(--gold); transform: translateY(-4px); }
.product img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s;
}
.product:hover img { transform: scale(1.04); }
.product-name {
  padding: 1rem 1rem 0.2rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.product-link {
  padding: 0 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--gold);
}

/* Location */
.location {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 6vw, 5rem);
}
.location-text p { color: var(--muted); margin-bottom: 1.5rem; }
.location-text .address {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* Arabic / RTL */
html[dir="rtl"] body { font-family: 'Tajawal', 'Inter', sans-serif; }
html[dir="rtl"] h2,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .nav nav a,
html[dir="rtl"] .card-label { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
html[dir="rtl"] h2 { font-weight: 700; }
html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(to top, var(--bg) 5%, rgba(11, 10, 8, 0.55) 45%, rgba(11, 10, 8, 0.2)),
    linear-gradient(to left, rgba(11, 10, 8, 0.8), transparent 70%);
}
