/* Light theme (default): ivory body under a photo hero. Dark overrides live in :root[data-theme="dark"]. */
:root {
  --bg: #f6f0e2;
  --bg-alt: #efe6d2;
  --ink: #ece3cf;
  --ink-2: #fffdf8;
  --gold: #8a6a22;
  --gold-light: #6b4f12;
  --text: #241a0e;
  --muted: #5d5242;
  --line: rgba(138, 106, 34, .35);
  --gold-line: #c9a24a;
  --gold-text-grad: linear-gradient(135deg, #241a0e 0%, #3a2f1f 100%);
  --btn-bg: #241a0e;
  --btn-fg: #f6f0e2;
  --btn-shadow: 0 8px 24px rgba(36, 26, 14, .18);
  --outline: #241a0e;
  --panel-bg: rgba(255, 253, 248, .6);
  --card-shadow: 0 14px 34px rgba(60, 45, 20, .12), 0 0 0 1px rgba(138, 106, 34, .25);
  --glow: transparent;

  --font-display: "Cinzel", "Amiri", serif;
  --font-serif: "Cormorant Garamond", "Amiri", serif;
  --font-body: "Tajawal", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
  --gold-grad: linear-gradient(135deg, #f7e2a0 0%, #d4a63a 45%, #9a6f24 100%);
}

:root[data-theme="dark"] {
  --bg: #0a0806;
  --bg-alt: #120d08;
  --ink: #120d08;
  --ink-2: #1a130b;
  --gold: #d4a63a;
  --gold-light: #f3d98a;
  --text: #ece1c8;
  --muted: #a99a79;
  --line: rgba(212, 166, 58, .28);
  --gold-line: rgba(212, 166, 58, .55);
  --gold-text-grad: linear-gradient(135deg, #f7e2a0 0%, #d4a63a 45%, #9a6f24 100%);
  --btn-bg: var(--gold-grad);
  --btn-fg: #1a1006;
  --btn-shadow: 0 6px 24px rgba(212, 166, 58, .22);
  --outline: var(--gold);
  --panel-bg: rgba(18, 13, 8, .6);
  --card-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(212, 166, 58, .2);
  --glow: rgba(212, 166, 58, .15);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: #1a1006; padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

.gold-text {
  background: var(--gold-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header: always dark glass, sits over the hero photo ---------- */
.site-header {
  --gold: #d4a63a; --gold-light: #f3d98a; --text: #ece1c8; --line: rgba(212, 166, 58, .35);
  --btn-bg: var(--gold-grad); --btn-fg: #1a1006; --btn-shadow: 0 6px 24px rgba(212, 166, 58, .22); --outline: #d4a63a;
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(8, 6, 3, .78), rgba(8, 6, 3, 0));
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(10, 8, 6, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .28em; font-size: 22px; color: var(--gold-light); }
.wordmark .icon { width: 54px; height: 14px; color: var(--gold); }
.wordmark.small { font-size: 16px; color: var(--text); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); font-size: 15px; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { background: none; border: 1px solid var(--line); color: var(--gold-light); font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.lang:hover { border-color: var(--gold); }
.theme-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-light); cursor: pointer; }
.theme-btn:hover { border-color: var(--gold); }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px 8px; }
.burger span { display: block; height: 2px; background: var(--gold-light); margin: 6px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer;
  border: 1px solid var(--outline); transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-gold { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; box-shadow: var(--btn-shadow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow), 0 10px 28px rgba(0, 0, 0, .12); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: rgba(138, 106, 34, .1); transform: translateY(-2px); }
:root[data-theme="dark"] .btn-outline, .site-header .btn-outline, .hero .btn-outline { color: var(--gold-light); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- shared bits ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); letter-spacing: .22em; font-size: 13px; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow .icon { width: 1.4em; height: 1.6em; }
.eyebrow.center { justify-content: center; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
h2 { font-size: clamp(30px, 4vw, 46px); }
.lead { font-size: 19px; color: var(--text); max-width: 52ch; }
.zigzag { height: 1px; background: var(--line); }

/* ---------- hero: full-bleed photo ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  --gold: #d4a63a; --gold-light: #f3d98a; --text: #f6ecd2;
  --btn-bg: var(--gold-grad); --btn-fg: #1a1006; --btn-shadow: 0 6px 24px rgba(212, 166, 58, .25); --outline: #d4a63a;
  color: var(--text);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 6, 3, .94) 6%, rgba(8, 6, 3, .5) 52%, rgba(8, 6, 3, .62));
}
.hero-copy { position: relative; z-index: 1; padding-top: 140px; padding-bottom: clamp(48px, 10vh, 110px); }
.hero-copy > * { max-width: 680px; }
.hero-title { font-size: clamp(46px, 7.2vw, 96px); line-height: 1.1; margin-bottom: .35em; letter-spacing: -.01em; color: #f6ecd2; }
.hero-title span { font-weight: 300; }
.hero-title b {
  display: block; font-weight: 700;
  background: linear-gradient(135deg, #f7e2a0 0%, #e0b24a 55%, #c58f2c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="en"] .hero-title span { font-weight: 400; }
html[lang="en"] .hero-title b { font-weight: 600; font-style: italic; }
.hero .lead { color: #e7dcc2; }

/* feature strip under the hero */
.strip { background: var(--bg); border-top: 3px solid #d4a63a; }
.strip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 0; text-align: center; font-size: 15px; }
.strip b { display: block; color: var(--gold); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.strip span { color: var(--muted); }

/* ---------- collection ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line); position: relative; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--card-shadow); }
.card-media { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; background: var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media > .icon { width: 64px; height: 76px; color: var(--gold); opacity: .55; }
.card.is-empty { border-style: dashed; }
.card.is-empty .card-media { aspect-ratio: 1 / 1; }
.badge { position: absolute; top: 14px; inset-inline-end: 14px; background: var(--gold-grad); color: #1a1006; font-size: 12px; font-weight: 700; padding: 3px 12px; letter-spacing: .08em; text-transform: uppercase; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 22px; color: var(--gold-light); margin: 0; }
.card-body p { margin: 0; font-size: 15px; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.family { color: var(--gold); letter-spacing: .08em; font-size: 13px !important; text-transform: uppercase; }
.notes { margin: 8px 0 0; display: grid; gap: 4px; font-size: 14px; }
.note { display: flex; gap: 8px; }
.note dt { color: var(--gold); min-width: 5.5em; }
.note dd { margin: 0; color: var(--text); }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 14px; color: var(--muted); }
.card-meta strong { color: var(--gold-light); font-size: 18px; font-weight: 500; }

/* ---------- story ---------- */
.story { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.story-art { margin: 0; }
.plate { position: relative; isolation: isolate; max-width: 460px; margin-inline: auto; }
.plate::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--gold-line); z-index: -1; }
.plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-copy p { color: var(--text); }
.tag { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--gold); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); letter-spacing: .06em; }

/* ---------- contact ---------- */
.contact { background: radial-gradient(700px 420px at 50% 0%, var(--glow), transparent 70%), var(--bg); }
.contact-box { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); background: var(--panel-bg); }
.contact-logo { width: 100%; border: 1px solid var(--line); }
img.for-dark, :root[data-theme="dark"] img.for-light { display: none; }
:root[data-theme="dark"] img.for-dark { display: block; }
:root:not([data-theme="dark"]) .contact-logo { border-color: transparent; }
.phone { margin-top: 22px; color: var(--muted); font-size: 16px; }
.phone bdi { color: var(--gold-light); font-size: 20px; letter-spacing: .06em; }

/* ---------- footer ---------- */
.site-footer { padding-bottom: 28px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.5);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .split, .contact-box { grid-template-columns: 1fr; }
  .contact-logo { max-width: 280px; margin-inline: auto; }
  .contact-copy { text-align: center; }
  .contact-copy .eyebrow { justify-content: center; }
  .contact-copy .lead { margin-inline: auto; }

  .burger { display: block; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    background: rgba(10, 8, 6, .97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 260px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .hero-bg { object-position: 50% 6%; }
  .hero::after { background: linear-gradient(to top, rgba(8, 6, 3, .96) 8%, rgba(8, 6, 3, .86) 44%, rgba(8, 6, 3, .35) 74%, rgba(8, 6, 3, .55)); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .card.is-empty .card-media { aspect-ratio: 16 / 9; }
  .strip-row { gap: 8px; font-size: 13px; padding: 18px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wordmark { font-size: 19px; letter-spacing: .2em; }
  .wordmark .icon { width: 40px; }
  .btn-row .btn { width: 100%; }
}
