/* =========================================================================
   GHĀR  غار  : Aleppo laurel-soap workshop store (demo)
   A Wojoodi portfolio demonstration. Fictional brand.
   Design system: warm oatmeal paper + deep laurel green + clay ochre, an
   artisanal slab-serif voice and a circular maker's-stamp seal. Editorial
   commerce: full-bleed material hero, stamped cards, a sliding cart.
   ONE stylesheet drives LTR + RTL via logical properties.
   ========================================================================= */

:root {
  /* palette */
  --paper:     #F1EAD9;   /* oatmeal page */
  --paper-2:   #E7DCC4;   /* tint sections / chips track */
  --card:      #FBF6EA;   /* card surface, a touch lighter than paper */
  --laurel:    #34402A;   /* deep laurel green: primary, dark bands */
  --laurel-2:  #28311F;   /* footer / deepest */
  --laurel-lit:#6E7C53;   /* laurel on dark backgrounds */
  --ochre:     #B07A3C;   /* clay ochre: the cured-bar exterior, accent */
  --ochre-lit: #CFA063;   /* ochre on dark */
  --sage:      #8A9472;   /* soft sage: secondary */
  --ink:       #2A2A22;   /* warm ink: text on paper */
  --ink-soft:  #6A6450;   /* muted warm text */
  --cream:     #F3ECDC;   /* text on laurel */
  --cream-soft:#B9B79D;   /* muted on laurel */
  --line:      rgba(42,42,34,0.16);
  --line-d:    rgba(243,236,220,0.16);
  --ochre-soft:rgba(176,122,60,0.12);
  --sage-soft: rgba(138,148,114,0.18);

  /* type */
  --f-display:    "Zilla Slab", Rockwell, Georgia, serif;
  --f-body:       "Karla", ui-sans-serif, system-ui, sans-serif;
  --f-label:      "Karla", ui-sans-serif, system-ui, sans-serif;
  --f-ar-display: "Changa", "Tajawal", sans-serif;
  --f-ar-body:    "Vazirmatn", "Tajawal", sans-serif;

  --maxw: 1220px;
  --gutter: clamp(20px, 5vw, 60px);
  --r: 6px; --r-sm: 4px; --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
svg { display: block; width: 100%; height: 100%; }

/* ---- type primitives ---- */
/* editorial label in the serif face, no templated dash, used sparingly */
.eyebrow {
  font-family: var(--f-display); font-style: italic; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 500;
  color: var(--ochre); display: inline-block;
}
.display {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.005em;
  line-height: 1.1; font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--ink);
}
.lead {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.5; color: var(--ink-soft);
}
.display, .hero-title, .hero-tag, .lead, .quote-text { text-wrap: balance; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8.5vw, 120px); position: relative; }
.section--tint { background: var(--paper-2); }
.section--deep { background: var(--laurel); color: var(--cream); }
.section--deep .display { color: var(--cream); }
.section--deep .eyebrow { color: var(--ochre-lit); }
.sec-head { max-width: 620px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.sec-head .display { margin-top: 13px; }
.sec-head .lead { margin-top: 14px; }
.sec-head.left { text-align: start; margin-inline: 0; max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; }

/* ---- the seal mark ---- */
.seal { display: inline-block; color: var(--laurel); }
.seal svg { display: block; width: 100%; height: 100%; }

/* image plate, stamped frame */
.plate { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.plate:hover img { transform: scale(1.04); }

/* ---- buttons / chips / links ---- */
.btn {
  font-family: var(--f-label); font-size: 0.8rem; letter-spacing: 0.04em; font-weight: 700; text-transform: uppercase;
  padding: 0.95em 1.7em; display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  border-radius: var(--r-pill); border: 1.5px solid var(--laurel); background: var(--laurel); color: var(--cream); cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(176,122,60,0.8); }
.btn--ghost { background: transparent; color: var(--laurel); }
.btn--ghost:hover { background: var(--laurel); border-color: var(--laurel); color: var(--cream); box-shadow: none; }
.btn--block { width: 100%; }
.section--deep .btn { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.section--deep .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--laurel); }
.ulink { font-family: var(--f-label); font-size: 0.8rem; letter-spacing: 0.02em; font-weight: 700; color: var(--ochre);
  display: inline-flex; align-items: center; gap: 0.4em; position: relative; padding-bottom: 3px; }
.ulink::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 2px; background: var(--ochre);
  transform: scaleX(0.25); transform-origin: left; transition: transform 0.4s var(--ease); }
.ulink:hover::after { transform: scaleX(1); }

/* ---- nav ---- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter); transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease); }
/* top scrim so nav text never sits on raw photo at the top of the dark hero;
   it fades out once the cream scrolled bar takes over. */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,18,12,0.55), rgba(20,18,12,0) 100%); transition: opacity 0.4s var(--ease); }
.nav.scrolled { background: rgba(241,234,217,0.92); backdrop-filter: blur(10px); padding-block: 10px;
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(42,42,34,0.5); }
.nav.scrolled::before { opacity: 0; }
/* nav is light over the dark hero by default, ink once scrolled onto cream */
.brand { display: flex; align-items: center; gap: 11px; color: var(--cream); transition: color 0.4s var(--ease); }
.nav.scrolled .brand { color: var(--ink); }
.brand .seal { width: 40px; height: 40px; flex: none; color: var(--cream); transition: color 0.4s var(--ease); }
.nav.scrolled .brand .seal { color: var(--laurel); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.02; }
.brand-en { font-family: var(--f-display); font-weight: 700; font-size: 1.42rem; letter-spacing: 0.01em; }
.brand-ar { font-family: var(--f-ar-display); font-size: 1.5rem; font-weight: 700; }
.brand-sub { font-family: var(--f-label); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ochre-lit); margin-top: 3px; font-weight: 700; transition: color 0.4s var(--ease); }
.nav.scrolled .brand-sub { color: var(--ochre); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn):not(.lang) { font-family: var(--f-label); font-size: 0.94rem; letter-spacing: 0.04em; font-weight: 600; text-transform: uppercase;
  color: var(--cream); position: relative; padding: 4px 0; transition: color 0.3s var(--ease); }
.nav.scrolled .nav-links a:not(.btn):not(.lang) { color: var(--ink); }
.nav-links a:not(.btn):not(.lang):hover { color: var(--ochre); }
.nav-links a:not(.btn):not(.lang)::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:not(.btn):not(.lang):hover::after { transform: scaleX(1); }

/* cart button + badge */
.cart-btn { position: relative; background: none; border: 0; cursor: pointer; color: var(--cream); width: 30px; height: 30px; padding: 0; flex: none;
  transition: color 0.3s var(--ease); }
.nav.scrolled .cart-btn { color: var(--ink); }
.cart-btn:hover { color: var(--ochre); }
.cart-btn svg { width: 26px; height: 26px; }
.cart-badge { position: absolute; top: -7px; inset-inline-end: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r-pill);
  background: var(--ochre); color: #fff; font-family: var(--f-label); font-size: 0.64rem; font-weight: 700; display: none; align-items: center; justify-content: center;
  line-height: 1; }
.cart-badge.show { display: flex; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 22px; position: relative; z-index: 1200; }
.nav-toggle span { position: absolute; inset-inline-start: 0; width: 100%; height: 2px; background: var(--cream); transition: 0.4s var(--ease); }
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 2px; } .nav-toggle span:nth-child(2) { top: 10px; } .nav-toggle span:nth-child(3) { top: 18px; }
body.menu-open .nav-toggle span { background: var(--cream); }
body.menu-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* language pill */
.lang { font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: var(--cream); background: rgba(243,236,220,0.14); border: 1.5px solid rgba(243,236,220,0.5); border-radius: var(--r-pill);
  padding: 0.5em 0.95em; display: inline-flex; align-items: center; gap: 0.45em; line-height: 1;
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease); }
.nav.scrolled .lang { color: var(--laurel); background: var(--sage-soft); border-color: rgba(52,64,42,0.35); }
.lang:hover { color: #fff; background: var(--laurel); border-color: var(--laurel); }
.lang .globe { width: 14px; height: 14px; flex: none; }
.lang::after { display: none !important; }

/* ---- hero (full-bleed) ---- */
.hero { position: relative; min-height: min(92vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero .wrap { width: 100%; }   /* fill the flex line so hero-inner anchors to the inline-start, not centered */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
/* darken the inline-start (where the text sits) and a touch of top + bottom,
   leaving the opposite side of the photo clear and attractive. */
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,49,31,0.9) 0%, rgba(40,49,31,0.66) 34%, rgba(40,49,31,0.2) 66%, rgba(40,49,31,0) 100%),
              linear-gradient(0deg, rgba(40,49,31,0.6) 0%, rgba(40,49,31,0) 46%),
              linear-gradient(180deg, rgba(40,49,31,0.5) 0%, rgba(40,49,31,0) 18%); }
[dir="rtl"] .hero-bg::after { background: linear-gradient(270deg, rgba(40,49,31,0.9) 0%, rgba(40,49,31,0.66) 34%, rgba(40,49,31,0.2) 66%, rgba(40,49,31,0) 100%),
              linear-gradient(0deg, rgba(40,49,31,0.6) 0%, rgba(40,49,31,0) 46%),
              linear-gradient(180deg, rgba(40,49,31,0.5) 0%, rgba(40,49,31,0) 18%); }
.hero-inner { position: relative; z-index: 1; max-width: 560px; padding: clamp(34px, 7vw, 92px) 0 clamp(46px, 7vw, 86px);
  margin-inline-end: auto; }
.hero-inner .seal { width: 54px; height: 54px; color: var(--ochre-lit); margin-bottom: 20px; }
.hero-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.03; color: var(--cream); margin: 16px 0 0; text-shadow: 0 2px 18px rgba(20,24,15,0.55); }
.hero-tag { font-family: var(--f-body); font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--cream);
  margin-top: 18px; line-height: 1.6; max-width: 46ch; text-shadow: 0 1px 12px rgba(20,24,15,0.5); }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn { font-size: 0.95rem; padding: 1.05em 2em; }
[dir="rtl"] .hero-cta .btn { font-size: 0.95rem; }
.hero-cta .btn:not(.btn--ghost) { background: var(--ochre); border-color: var(--ochre); color: #fff; box-shadow: 0 14px 30px -16px rgba(176,122,60,0.85); }
.hero-cta .btn:not(.btn--ghost):hover { background: var(--cream); border-color: var(--cream); color: var(--laurel); }
.hero-cta .btn--ghost { background: rgba(243,236,220,0.06); color: var(--cream); border-color: rgba(243,236,220,0.7); }
.hero-cta .btn--ghost:hover { background: var(--cream); color: var(--laurel); border-color: var(--cream); }

.reveal-load { opacity: 1; transform: none; }                     /* default: visible (fail-open) */
html.js .reveal-load { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.2s; } .d3 { animation-delay: 0.32s; } .d4 { animation-delay: 0.44s; }

/* ---- craft / two oils ---- */
.craft-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.craft-copy .display { margin: 12px 0 14px; }
.craft-copy p { color: var(--ink-soft); margin: 0 0 16px; max-width: 46ch; }
.tiers { display: flex; flex-direction: column; gap: 12px; }
.tier { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.tier-pct { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--ochre); flex: none; min-width: 64px; }
.tier-txt h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }
.tier-txt p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
/* provenance: a quiet left-aligned line, not a dashboard stat strip */
.provenance { margin-top: clamp(34px, 4.5vw, 52px); padding-top: clamp(24px, 3.5vw, 34px); border-top: 1px solid var(--line);
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft); line-height: 1.75; max-width: 56ch; }
.provenance .pf { font-style: normal; font-weight: 700; color: var(--laurel); }

/* ---- shop ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(30px, 4vw, 44px); }
.chip { font-family: var(--f-label); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-soft); background: transparent; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 0.6em 1.2em; cursor: pointer;
  transition: 0.3s var(--ease); }
.chip:hover { border-color: var(--laurel); color: var(--laurel); }
.chip.active { background: var(--laurel); border-color: var(--laurel); color: var(--cream); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--ochre); }   /* one treatment: defined hairline edge, no soft shadow */
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-tag { position: absolute; top: 12px; inset-inline-start: 12px; font-family: var(--f-label); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 700; color: var(--cream); background: var(--laurel); padding: 0.4em 0.7em; border-radius: var(--r-pill); }
.card-qv { position: absolute; inset-inline-end: 12px; bottom: 12px; font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 700; color: var(--laurel); background: rgba(251,246,234,0.92); border: 0; border-radius: var(--r-pill);
  padding: 0.55em 0.95em; cursor: pointer; opacity: 0; transform: translateY(6px); transition: 0.35s var(--ease); }
.card:hover .card-qv, .card:focus-within .card-qv { opacity: 1; transform: none; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.card-line { font-size: 0.86rem; color: var(--ink-soft); margin-top: 5px; line-height: 1.5; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.price { font-family: var(--f-display); font-weight: 700; font-size: 1.18rem; color: var(--laurel); }
.add-btn { font-family: var(--f-label); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  color: var(--cream); background: var(--laurel); border: 0; border-radius: var(--r-pill); padding: 0.65em 1.1em; cursor: pointer; transition: 0.3s var(--ease); }
.add-btn:hover { background: var(--ochre); }

/* ---- story / heritage ---- */
.story-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(34px, 5vw, 78px); align-items: center; }
.story-photo { aspect-ratio: 16 / 11; }
.story-copy .display { margin: 12px 0 8px; }
.story-copy p { color: var(--ink-soft); margin: 1em 0; }
.story-copy p:first-of-type { font-family: var(--f-display); font-size: 1.24rem; line-height: 1.5; color: var(--ink); }
/* quote styled by type, not a colored side bar: oversized opening mark + italic */
.story-quote { margin-top: 28px; position: relative; }
.story-quote .quote-text { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.65rem); color: var(--ink); line-height: 1.5; }
.story-quote .quote-text::before { content: "\201C"; font-family: var(--f-display); font-style: normal; font-size: 2.6em; line-height: 0; color: var(--ochre); margin-inline-end: 0.06em; vertical-align: -0.42em; }

/* ---- gifts ---- */
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 36px); }
.gift { display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gift-media { aspect-ratio: 1 / 1; background: var(--paper-2); cursor: pointer; overflow: hidden; }
.gift-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gift:hover .gift-media img { transform: scale(1.05); }
.gift-body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; justify-content: center; }
.gift-body .eyebrow { margin-bottom: 10px; }
.gift-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); }
.gift-desc { color: var(--ink-soft); font-size: 0.95rem; margin: 10px 0 18px; }
.gift-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gift-foot .price { font-size: 1.5rem; }

/* ---- ship / workshop ---- */
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.ship-copy .display { margin: 12px 0 14px; }
.ship-copy p { color: var(--ink-soft); max-width: 44ch; }
.ship-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 13px; }
.ship-points li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); }
.ship-points svg { width: 20px; height: 20px; color: var(--ochre); flex: none; margin-top: 3px; }
.workshop { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.workshop-info { padding: clamp(20px, 2.4vw, 28px); }
.workshop-info h4 { font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); margin-bottom: 7px; font-weight: 700; }
.workshop-info p { margin: 0 0 16px; color: var(--ink-soft); }
.workshop-map { min-height: 240px; flex: 1; border-top: 1px solid var(--line); }
.workshop-map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }

/* ---- newsletter ---- */
.newsletter { text-align: center; }
.newsletter .display { margin: 12px auto 10px; }
.newsletter p { color: var(--cream-soft); max-width: 44ch; margin: 0 auto 26px; }
.news-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.news-form input { flex: 1; min-width: 200px; font-family: var(--f-body); font-size: 1rem; color: var(--cream); background: rgba(243,236,220,0.08);
  border: 1px solid var(--line-d); border-radius: var(--r-pill); padding: 0.9em 1.2em; }
.news-form input::placeholder { color: var(--cream-soft); }
.news-form input:focus { outline: none; border-color: var(--ochre-lit); box-shadow: 0 0 0 3px rgba(207,160,99,0.2); }

/* ---- footer ---- */
.footer { background: var(--laurel-2); color: var(--cream-soft); padding: clamp(54px, 7vw, 84px) 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--cream); margin-bottom: 15px; }
.footer .brand .seal { color: var(--ochre-lit); }
.footer .brand-sub { color: var(--ochre-lit); }
.footer-blurb { max-width: 34ch; font-size: 0.94rem; line-height: 1.7; }
.footer h5 { font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-lit); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; font-size: 0.94rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.socials { display: flex; gap: 11px; margin-top: 8px; }
.socials a { width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--line-d); display: grid; place-items: center; color: var(--ochre-lit); transition: 0.35s var(--ease); }
.socials a:hover { background: var(--ochre); color: #fff; border-color: var(--ochre); }
.socials svg { width: 17px; height: 17px; }
.footer-base { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-d);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--cream-soft); }
.credit { display: inline-flex; align-items: center; gap: 11px; }
.credit-label { font-family: var(--f-label); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-soft); font-weight: 700; }
.wlogo { display: inline-flex; align-items: center; gap: 11px; opacity: 0.9; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.wlogo-mark { height: 36px; width: auto; }
.wlogo-word { height: 25px; width: auto; }
.wlogo:hover { opacity: 1; transform: translateY(-1px); }   /* restrained, no glow */

/* ---- generic modal (notice + quick-view) ---- */
.modal { position: fixed; inset: 0; z-index: 5000; display: none; place-items: center; padding: 24px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(40,49,31,0.7); backdrop-filter: blur(4px); animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.modal-card { position: relative; background: var(--card); max-width: 440px; width: 100%; padding: 42px 36px 34px; text-align: center;
  border-radius: var(--r); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.5); animation: pop 0.5s var(--ease); }
.modal-card .seal { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--ochre); }
.modal-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; color: var(--ink); margin-bottom: 12px; }
.modal-card p { color: var(--ink-soft); font-size: 1rem; margin: 0 auto 22px; max-width: 38ch; }
.modal-close { font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--ochre); background: none; border: 0; cursor: pointer; padding: 8px; }

/* quick-view: a wider card */
.qv .qv-card { position: relative; background: var(--card); max-width: 760px; width: 100%; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.55); animation: pop 0.5s var(--ease); display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { aspect-ratio: 1 / 1; background: var(--paper-2); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; }
.qv-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: rgba(251,246,234,0.92); color: var(--ink); font-size: 1.1rem; line-height: 1; display: grid; place-items: center; z-index: 2; }
.qv-x:hover { background: var(--ochre); color: #fff; }
.qv-tag { font-family: var(--f-label); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ochre); }
.qv-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--ink); margin: 8px 0 4px; }
.qv-pct { font-family: var(--f-label); font-size: 0.8rem; font-weight: 700; color: var(--sage); margin-bottom: 12px; }
.qv-desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; margin: 0 0 18px; }
.qv-price { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; color: var(--laurel); margin-bottom: 18px; }
.qv-buy { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.stepper button { width: 36px; height: 38px; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.stepper button:hover { background: var(--paper-2); }
.stepper .qty { min-width: 32px; text-align: center; font-family: var(--f-label); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- cart drawer ---- */
.drawer { position: fixed; inset: 0; z-index: 6000; visibility: hidden; overflow: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(40,49,31,0.55); opacity: 0; transition: opacity 0.4s var(--ease); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw); background: var(--paper);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px -30px rgba(0,0,0,0.5);
  transform: translateX(var(--tx, 110%)); transition: transform 0.42s var(--ease); }
[dir="rtl"] .drawer-panel { --tx: -110%; box-shadow: 20px 0 60px -30px rgba(0,0,0,0.5); }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.drawer-x { background: none; border: 0; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); padding: 4px; }
.drawer-x:hover { color: var(--ochre); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 40px 10px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-name { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.cart-item .ci-price { font-family: var(--f-display); font-weight: 700; color: var(--laurel); }
.cart-item .ci-controls { display: flex; align-items: center; gap: 14px; }
.cart-item .ci-remove { background: none; border: 0; cursor: pointer; font-family: var(--f-label); font-size: 0.68rem; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.cart-item .ci-remove:hover { color: var(--ochre); }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.subtotal .st-l { font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.subtotal .st-v { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--laurel); }

/* grid children can shrink (prevents overflow both directions) */
.craft-top > *, .shop-grid > *, .story-grid > *, .gift-grid > *, .gift > *,
.ship-grid > *, .footer-top > *, .qv-card > *, .cart-item > * { min-width: 0; }

/* ---- reveal ---- */
.reveal { opacity: 1; transform: none; }                          /* default: visible (fail-open if JS/observer never fires) */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d2 { transition-delay: 0.1s; } html.js .reveal.d3 { transition-delay: 0.2s; } html.js .reveal.d4 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { html.js .reveal, html.js .reveal-load { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* ---- LTR islands ---- */
.lat { direction: ltr; unicode-bidi: isolate; font-family: var(--f-label); letter-spacing: 0; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ---- responsive ---- */
@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--laurel); opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s var(--ease); }
  body.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn):not(.lang) { color: var(--cream); font-size: 1rem; }
  .nav-links a:not(.btn):not(.lang):hover { color: var(--ochre-lit); }
  .nav-links .lang { color: var(--cream); background: rgba(243,236,220,0.14); }
  .nav-toggle { display: block; }
  .nav .cart-btn { margin-inline-start: auto; margin-inline-end: 14px; }
  .craft-top, .story-grid, .ship-grid, .gift { grid-template-columns: 1fr; }
  .gift-grid { grid-template-columns: 1fr; }
  .story-photo { order: -1; aspect-ratio: 16 / 10; }
  .gift-media { aspect-ratio: 16 / 10; }
  .qv .qv-card { grid-template-columns: 1fr; max-width: 440px; }
  .qv-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .provenance { font-size: 1.08rem; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { justify-content: center; text-align: center; }
  .hero-inner { padding-bottom: 40px; }
}

/* =========================================================================
   RTL + Arabic typography (Changa display, Vazirmatn body), one stylesheet.
   ========================================================================= */
[dir="rtl"] body { font-family: var(--f-ar-body); font-size: 18px; line-height: 1.9; }
[dir="rtl"] p { line-height: 1.9; }
[dir="rtl"] .news-form input, [dir="rtl"] .stepper .qty { font-family: var(--f-ar-body); }
[dir="rtl"] .lat, [dir="rtl"] .num { font-family: var(--f-label); }
[dir="rtl"] .brand-ar { font-family: var(--f-ar-display); }
[dir="rtl"] .credit, [dir="rtl"] .credit a { font-family: var(--f-label); }

/* Arabic display in Changa */
[dir="rtl"] .display, [dir="rtl"] .hero-title, [dir="rtl"] .quote-text, [dir="rtl"] .card-name, [dir="rtl"] .gift-name,
[dir="rtl"] .qv-name, [dir="rtl"] .modal-card h3, [dir="rtl"] .drawer-head h3, [dir="rtl"] .tier-txt h4,
[dir="rtl"] .brand-en, [dir="rtl"] .stat .n, [dir="rtl"] .tier-pct, [dir="rtl"] .price, [dir="rtl"] .qv-price,
[dir="rtl"] .subtotal .st-v, [dir="rtl"] .ci-name, [dir="rtl"] .ci-price, [dir="rtl"] .story-copy p:first-of-type {
  font-family: var(--f-ar-display); letter-spacing: 0; font-weight: 700;
}
[dir="rtl"] .display { line-height: 1.4; }
[dir="rtl"] .hero-title { line-height: 1.25; }
[dir="rtl"] .quote-text { line-height: 1.55; }

/* Arabic running text in Vazirmatn */
[dir="rtl"] .hero-tag, [dir="rtl"] .lead, [dir="rtl"] .craft-copy p, [dir="rtl"] .story-copy p, [dir="rtl"] .ship-copy p,
[dir="rtl"] .card-line, [dir="rtl"] .gift-desc, [dir="rtl"] .qv-desc, [dir="rtl"] .footer-blurb, [dir="rtl"] .modal-card p,
[dir="rtl"] .newsletter p, [dir="rtl"] .tier-txt p, [dir="rtl"] .workshop-info p, [dir="rtl"] .cart-empty {
  font-family: var(--f-ar-body); letter-spacing: 0; font-weight: 400;
}

/* small Arabic labels: no uppercase, no tracking, sized up a touch */
[dir="rtl"] .eyebrow, [dir="rtl"] .btn, [dir="rtl"] .ulink, [dir="rtl"] .nav-links a:not(.btn):not(.lang),
[dir="rtl"] .chip, [dir="rtl"] .add-btn, [dir="rtl"] .card-qv, [dir="rtl"] .card-tag, [dir="rtl"] .qv-tag,
[dir="rtl"] .stat .l, [dir="rtl"] .brand-sub, [dir="rtl"] .footer h5, [dir="rtl"] .footer-col a,
[dir="rtl"] .workshop-info h4, [dir="rtl"] .modal-close, [dir="rtl"] .ci-remove, [dir="rtl"] .subtotal .st-l, [dir="rtl"] .lang {
  font-family: var(--f-ar-body); letter-spacing: 0; text-transform: none; font-weight: 700;
}
[dir="rtl"] .eyebrow { font-size: 0.94rem; }
[dir="rtl"] .eyebrow { font-family: var(--f-ar-display); font-style: normal; font-weight: 600; }
[dir="rtl"] .provenance { font-family: var(--f-ar-body); font-style: normal; }
[dir="rtl"] .provenance .pf { font-family: var(--f-ar-display); }
[dir="rtl"] .nav-links a:not(.btn):not(.lang) { font-size: 1rem; font-weight: 600; }
[dir="rtl"] .btn, [dir="rtl"] .chip { font-size: 0.92rem; }
[dir="rtl"] .footer-col a { font-size: 1rem; }
[dir="rtl"] .footer h5, [dir="rtl"] .workshop-info h4 { font-size: 0.92rem; }
[dir="rtl"] .stat .l { font-size: 0.8rem; }
[dir="rtl"] .lang { font-size: 0.72rem; }
[dir="rtl"] .brand-sub { font-size: 0.62rem; }
[dir="rtl"] .card-line { line-height: 1.8; }

/* directional flourishes flip */
[dir="rtl"] .ulink::after, [dir="rtl"] .nav-links a:not(.btn):not(.lang)::after { transform-origin: right; }
