/* =========================================================
   Alameddine Foods
   Palette: roasted sesame + halawa gold + sesame paper
   Bilingual: EN (LTR) / AR (RTL) — layout uses logical properties
   ========================================================= */

:root {
  --cedar:        #5A3A1E;   /* toasted sesame (primary dark) */
  --cedar-deep:   #2A1A0E;   /* roasted cocoa (deepest) */
  --cedar-soft:   #8A5A2B;   /* caramel */
  --green:        #2F6B4F;   /* cedar accent */
  --red:          #C8242B;   /* logo red */
  --gold:         #DBA743;
  --gold-deep:    #B07F2A;
  --paper:        #FBF5EA;
  --sesame:       #F3E8D2;
  --ink:          #231A10;
  --ink-soft:     #6B5A47;
  --line:         rgba(42, 26, 14, .12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Manrope", system-ui, sans-serif;

  --max:          1180px;
  --gutter:       clamp(1.25rem, 5vw, 4rem);
  --radius:       14px;
  --ease:         cubic-bezier(.22, 1, .36, 1);

  /* direction helpers for transforms (transforms are not logical) */
  --start: left;
  --end:   right;
  --dir:   1;
}

[dir="rtl"] { --start: right; --end: left; --dir: -1; }

:root[lang="ar"] {
  --font-display: "Amiri", "Fraunces", Georgia, serif;
  --font-body:    "Tajawal", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition: opacity .25s;
}
body.is-switching-lang { opacity: .25; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }

/* Arabic typography: no negative tracking, no synthetic italics, roomier leading */
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
[lang="ar"] body { line-height: 1.8; }
[lang="ar"] em, [lang="ar"] .hero-since, [lang="ar"] .pure-line, [lang="ar"] .brand-text em { font-style: normal; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-variation-settings: "opsz" 144;
  color: var(--cedar-deep);
  margin-bottom: 1.25rem;
}
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--cedar-deep); position: relative; overflow: hidden; }
.btn-gold:hover { background: #E2B65C; }
.btn-gold::after { content: ""; position: absolute; top: 0; inset-inline-start: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: inset-inline-start .6s var(--ease); }
.btn-gold:hover::after { inset-inline-start: 120%; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* =========================================================
   Header
   ========================================================= */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; transform-origin: var(--start); transform: scaleX(0); background: linear-gradient(90deg, var(--gold), #F0C66A); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem var(--gutter);
  padding-top: calc(.8rem + env(safe-area-inset-top, 0px));
  color: #fff;
  transition: background .35s, padding .35s, box-shadow .35s, color .35s;
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile menu and trap it inside the bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(252, 248, 240, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled {
  color: var(--cedar-deep);
  padding-block: .45rem;
  padding-top: calc(.45rem + env(safe-area-inset-top, 0px));
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 62px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); transition: height .35s var(--ease), filter .35s; animation: logoIn .9s var(--ease) both; }
.site-header.is-scrolled .brand-logo { height: 48px; filter: none; }
@keyframes logoIn { from { opacity: 0; transform: scale(.8) rotate(-4deg); } }

.site-nav { display: flex; gap: 1.75rem; margin-inline-start: auto; font-weight: 600; font-size: .95rem; }
.site-nav a { position: relative; padding: .25rem 0; opacity: .85; white-space: nowrap; }
.site-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: var(--start); transition: transform .3s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent;
  font-weight: 700; font-size: .9rem; line-height: 1;
  opacity: .9; transition: background .25s, color .25s, opacity .25s, transform .25s var(--ease);
}
.lang-toggle span[lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 1rem; }
.lang-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .6s var(--ease); }
.lang-toggle:hover { opacity: 1; background: rgba(255,255,255,.12); }
.site-header.is-scrolled .lang-toggle:hover { background: var(--sesame); }
.lang-toggle:hover svg { transform: rotate(180deg); }

.header-cta {
  padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap;
  background: var(--gold); color: var(--cedar-deep);
  transition: background .25s;
}
.header-cta:hover { background: #E2B65C; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
  gap: 2rem;
  padding: calc(7rem + env(safe-area-inset-top, 0px)) var(--gutter) 5rem;
  background: var(--cedar-deep);
  color: #fff; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; }
.hero-slides img.is-active { opacity: 1; animation: kenBurns 9s linear forwards; }
.hero-slides img.was-active { transform: scale(1.14); }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.14); } }
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 65% at 78% 42%, rgba(219,167,67,.3), transparent 70%),
    linear-gradient(90deg, rgba(42,26,14,.95) 0%, rgba(42,26,14,.84) 42%, rgba(58,36,18,.62) 100%);
}
[dir="rtl"] .hero-overlay {
  background:
    radial-gradient(55% 65% at 22% 42%, rgba(219,167,67,.3), transparent 70%),
    linear-gradient(-90deg, rgba(42,26,14,.95) 0%, rgba(42,26,14,.84) 42%, rgba(58,36,18,.62) 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-seeds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-origin { color: var(--gold); font-weight: 600; font-size: .95rem; margin-bottom: 1.25rem; }
.hero-title {
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}
[lang="ar"] .hero-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.3; font-weight: 700; }
.hero-since { display: inline-block; font-style: italic; font-weight: 300; color: var(--gold); margin-top: .3rem; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 54ch; color: rgba(255,255,255,.82); margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Hero photo stack */
.hero-visual { position: relative; z-index: 2; justify-self: center; width: min(100%, 400px); aspect-ratio: 4 / 5; perspective: 1000px; }
.hero-photo { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -10px rgba(0,0,0,.5); border: 6px solid rgba(255,255,255,.92); background: #fff; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-front { inset: 0; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .4s var(--ease); will-change: transform; }
.hero-photo-back { width: 62%; aspect-ratio: 4 / 5; inset-inline-start: -26%; bottom: -6%; transform: rotate(calc(-8deg * var(--dir))); z-index: -1; opacity: .95; }
.hero-badge {
  position: absolute; inset-inline-end: -10%; top: 10%;
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.1rem; border-radius: 999px;
  background: var(--gold); color: var(--cedar-deep);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  line-height: 1.05; z-index: 2;
}
.hero-badge strong { font-family: "Fraunces", Georgia, serif; font-size: 2rem; font-weight: 500; }
.hero-badge small { font-size: .75rem; font-weight: 600; }
[lang="ar"] .hero-badge small { font-size: .85rem; line-height: 1.3; }

.hero-scroll {
  position: absolute; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px;
  transform: translateX(-50%);
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: var(--gold);
  transform: translateX(-50%); animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0% { transform: translate(-50%, 0); opacity: 1 } 70% { transform: translate(-50%, 14px); opacity: 0 } 100% { opacity: 0 } }

/* Hero entrance */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: riseIn 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
.hero-origin, .hero-lead, .hero-actions { opacity: 0; transform: translateY(14px); animation: fadeUp .9s var(--ease) forwards; }
.hero-origin { animation-delay: .05s; }
.hero-lead { animation-delay: .5s; }
.hero-actions { animation-delay: .65s; }
.hero-visual { opacity: 0; transform: translateY(30px) scale(.96); animation: jarIn 1.2s var(--ease) .35s forwards; }
.hero-badge { opacity: 0; transform: scale(.6); animation: popIn .6s var(--ease) 1.2s forwards; }
.hero-photo-float { animation: float 7s ease-in-out infinite; }

@keyframes riseIn { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes jarIn  { to { opacity: 1; transform: none; } }
@keyframes popIn  { to { opacity: 1; transform: scale(1); } }
@keyframes float  { 0%,100% { translate: 0 0 } 50% { translate: 0 -12px } }

/* =========================================================
   Marquee
   ========================================================= */
.marquee { background: var(--gold); color: var(--cedar-deep); overflow: hidden; padding: .9rem 0; font-family: var(--font-display); font-size: 1.15rem; }
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { white-space: nowrap; font-weight: 500; }
[lang="ar"] .marquee-track span { font-weight: 700; }
.marquee-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--cedar-deep); opacity: .6; flex-shrink: 0; }
@keyframes marquee    { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }
[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =========================================================
   Stats
   ========================================================= */
.stats { padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; }
.stat { display: grid; gap: .25rem; padding-inline-start: 1.1rem; border-inline-start: 3px solid var(--gold); }
.stat strong { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; color: var(--cedar-deep); line-height: 1; direction: ltr; justify-self: start; }
.stat > span:last-child { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }

/* =========================================================
   Story
   ========================================================= */
.story { padding: clamp(5rem, 9vw, 8rem) 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.story-lede { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; color: var(--cedar); line-height: 1.35; margin-bottom: 1.5rem; }
[lang="ar"] .story-lede { line-height: 1.6; }
.story-copy p { color: var(--ink-soft); max-width: 58ch; }
.story-copy .story-lede { color: var(--cedar); }
.story-note { margin-top: 1.5rem; padding-inline-start: 1.1rem; border-inline-start: 3px solid var(--gold); color: var(--ink) !important; }
.story-note em { font-style: italic; font-family: var(--font-display); font-size: 1.05em; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease) .2s; }
.timeline.is-visible::before { transform: scaleY(1); }
.timeline li { position: relative; padding-block-end: 2.25rem; padding-inline-start: 3rem; }
.timeline li:last-child { padding-block-end: 0; }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--gold);
}
.timeline li:last-child::before { background: var(--gold); }
.tl-year { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--gold-deep); line-height: 1.1; margin-bottom: .4rem; }
.timeline h3 { font-size: 1.2rem; margin-bottom: .35rem; color: var(--cedar-deep); }
.timeline p { color: var(--ink-soft); font-size: .98rem; }

/* =========================================================
   Commitment (field → jar photo trio)
   ========================================================= */
.commit { padding: 0 0 clamp(5rem, 9vw, 8rem); }
.commit-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.commit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.commit-card { position: relative; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(27,23,16,.35); display: flex; flex-direction: column; }
.commit-card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.commit-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.commit-card:hover img { transform: scale(1.06); }
.commit-num {
  position: absolute; top: 1rem; inset-inline-start: 1rem;
  font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; font-weight: 500;
  background: var(--gold); color: var(--cedar-deep); border-radius: 999px; padding: .3rem .8rem;
}
.commit-card h3 { font-size: 1.3rem; color: var(--cedar-deep); margin: 1.4rem 1.5rem .6rem; }
.commit-card p { color: var(--ink-soft); font-size: .96rem; margin: 0 1.5rem 1.6rem; }

/* =========================================================
   Products
   ========================================================= */
.products { padding: clamp(5rem, 9vw, 8rem) 0; background: linear-gradient(180deg, var(--sesame), var(--paper)); position: relative; overflow: hidden; }
.products::before { content: ""; position: absolute; inset-inline-end: -15%; top: -10%; width: 55vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(219,167,67,.22), transparent 65%); pointer-events: none; }
.products .container { position: relative; }

.products-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.products-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; }
.products-range { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 30px 60px -30px rgba(27,23,16,.4); transform: rotate(calc(1.2deg * var(--dir))); }
.products-range img { width: 100%; height: 100%; object-fit: cover; }

.product-filters { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 2rem; }
.product-filters button {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 0; background: transparent; padding: .65rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); transition: background .25s, color .25s;
}
.product-filters button:hover { color: var(--ink); background: var(--sesame); }
.product-filters button.is-active { background: var(--cedar-deep); color: #fff; }
.filter-count { font-size: .75rem; font-weight: 700; min-width: 1.5em; padding: .1rem .45rem; border-radius: 999px; background: rgba(0,0,0,.08); }
.product-filters button.is-active .filter-count { background: var(--gold); color: var(--cedar-deep); }

.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.4rem; }
.product-card { --accent: var(--gold); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.product-card.is-hidden { display: none; }
.product-card.is-entering { opacity: 0; transform: translateY(16px) scale(.98); }
.product-card button {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; text-align: start;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 20px 40px -28px rgba(27,23,16,.45);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .55s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
}
.product-card button:hover { --lift: -6px; box-shadow: 0 40px 70px -30px rgba(27,23,16,.55); }
.product-card button.is-tilting { transition: transform .12s linear, box-shadow .45s var(--ease); }
.pc-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.55), rgba(255,255,255,0) 46%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .35s;
}
.product-card button:hover .pc-media::after { opacity: 1; }
.product-card button:hover .pc-count { animation: badgePop .55s var(--ease); }
@keyframes badgePop { 40% { transform: scale(1.2); } }
.pc-media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sesame); }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.pc-media .pc-alt { opacity: 0; }
.product-card button:hover .pc-media .pc-alt { opacity: 1; }
.product-card button:hover .pc-media img { transform: scale(1.05); }
.pc-count {
  position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.92); color: var(--cedar-deep); backdrop-filter: blur(6px);
}
.pc-count svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.pc-cat {
  position: absolute; top: .8rem; inset-inline-start: .8rem; z-index: 2;
  padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent); color: #fff;
}
[lang="ar"] .pc-cat { letter-spacing: 0; font-size: .82rem; }
.pc-body { padding: 1.1rem 1.25rem 1.3rem; display: grid; align-content: start; gap: .2rem; flex: 1; border-top: 4px solid var(--accent); }
.pc-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.2; color: var(--cedar-deep); }
[lang="ar"] .pc-name { font-weight: 700; line-height: 1.4; }
.pc-sizes { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.pc-view { margin-top: .6rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--gold-deep); }
.pc-view svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); transform: scaleX(var(--dir)); }
.product-card button:hover .pc-view svg { transform: scaleX(var(--dir)) translateX(4px); }
.product-grid .grid-msg { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--ink-soft); background: var(--paper); border-radius: 18px; border: 1px dashed var(--line); }

.product-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.product-tags li { padding: .4rem .85rem; border-radius: 999px; background: var(--sesame); font-size: .85rem; font-weight: 600; color: var(--cedar-deep); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, 100% - 2rem); max-height: calc(100% - 2rem); padding: 0; border: 0; border-radius: 26px;
  background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
}
.lightbox::backdrop { background: rgba(20, 12, 6, .72); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.lb-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); max-height: calc(100vh - 2rem); }
.lb-media { background: #fff; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.lb-stage { position: relative; overflow: hidden; touch-action: pan-y; min-height: 0; }
.lb-stage img { width: 100%; height: 100%; max-height: calc(100vh - 9rem); object-fit: contain; background: #fff; transition: opacity .3s, transform .4s var(--ease); }
.lb-stage img.is-loading { opacity: 0; transform: scale(.98); }
.lb-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--cedar-deep); box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: transform .25s var(--ease), background .25s;
}
.lb-nav:hover { background: var(--gold); }
.lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { inset-inline-start: 1rem; }
.lb-next { inset-inline-end: 1rem; }
.lb-prev svg { transform: scaleX(calc(-1 * var(--dir))); }
.lb-next svg { transform: scaleX(var(--dir)); }
.lb-counter { position: absolute; bottom: 1rem; left: 50%; translate: -50% 0; padding: .3rem .8rem; border-radius: 999px; background: rgba(42,26,14,.75); color: #fff; font-size: .8rem; font-weight: 600; }
.lb-thumbs { display: flex; gap: .5rem; padding: .75rem; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: thin; }
.lb-thumbs button { flex: 0 0 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; opacity: .6; transition: opacity .25s, border-color .25s; background: var(--sesame); }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.lb-info { padding: clamp(1.75rem, 3vw, 2.75rem); overflow-y: auto; display: flex; flex-direction: column; gap: .2rem; }
.lb-info h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--cedar-deep); margin-bottom: .6rem; }
.lb-sizes { color: var(--ink-soft); font-size: .95rem; }
.lb-sizes strong { color: var(--cedar-deep); }
#lbDesc { color: var(--ink-soft); margin-bottom: 1.2rem; }
.lb-ask { margin-top: 1.6rem; align-self: flex-start; }
.lb-close {
  position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--cedar-deep); color: #fff; transition: transform .3s var(--ease), background .25s;
}
.lb-close:hover { transform: rotate(90deg); background: var(--cedar); }
.lb-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lightbox .lb-inner { position: relative; }

/* =========================================================
   Pure statement
   ========================================================= */
.pure { color: #fff; padding: clamp(5rem, 10vw, 8rem) 0; position: relative; overflow: hidden; background: var(--cedar-deep) url("assets/img/site/sesame.jpg") center / cover no-repeat; }
.pure::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,26,14,.94) 0%, rgba(42,26,14,.82) 55%, rgba(42,26,14,.45) 100%); }
[dir="rtl"] .pure::before { background: linear-gradient(-90deg, rgba(42,26,14,.94) 0%, rgba(42,26,14,.82) 55%, rgba(42,26,14,.45) 100%); }
.pure-inner { position: relative; }
.pure .kicker { color: var(--gold); }
.pure-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 400; color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }
.pure-text { max-width: 900px; }
.pure-sub { max-width: 62ch; margin-top: 2rem; color: rgba(255,255,255,.75); font-size: 1.05rem; }
.pure-points { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pure-points li { padding: 1.5rem; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, transform .4s var(--ease); }
.pure-points li:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.pp-num { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: var(--gold); margin-bottom: .6rem; }
.pure-points h3 { font-size: 1.1rem; color: #fff; margin-bottom: .4rem; }
.pure-points p { font-size: .92rem; color: rgba(255,255,255,.7); }
.contact-badges { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-badges li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: var(--paper); color: var(--cedar-deep); font-size: .88rem; font-weight: 700; }
.contact-badges li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pure-text {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 300; line-height: 1.25;
  font-variation-settings: "opsz" 144;
}
[lang="ar"] .pure-text { font-weight: 400; line-height: 1.6; }
.pure-line {
  font-style: italic; font-weight: 400; color: var(--gold);
  background: linear-gradient(var(--gold), var(--gold)) no-repeat var(--start) 100% / 0 2px;
  transition: background-size 1s var(--ease) .2s;
}
.pure.is-visible .pure-line { background-size: 100% 2px; }
.pure-text .w { display: inline-block; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.pure.is-visible .pure-text .w { opacity: 1; transform: none; }

/* =========================================================
   Craft process
   ========================================================= */
.craft { padding-top: clamp(5rem, 9vw, 8rem); }
.craft-head { max-width: 66ch; margin-bottom: 0; }
.craft-head p { color: var(--ink-soft); font-size: 1.05rem; }

.craft-scroller { position: relative; height: 460vh; }
.craft-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 64px; overflow: hidden; }
.craft-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.craft-list { position: relative; padding-inline-start: 1.5rem; }
.craft-bar { position: absolute; inset-inline-start: 0; top: .6rem; bottom: .6rem; width: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.craft-bar span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.craft-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.craft-step { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; padding: .85rem 1rem; border-radius: 16px; cursor: pointer; opacity: .42; transition: opacity .45s var(--ease), background .45s, box-shadow .45s, transform .45s var(--ease); }
.craft-step:hover { opacity: .75; }
.craft-step.is-active { opacity: 1; background: #fff; box-shadow: 0 18px 40px -28px rgba(27,23,16,.45); }
.craft-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--gold); color: var(--cedar-deep); font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
.craft-step.is-done .craft-num { background: var(--gold); }
.craft-step.is-active .craft-num { background: var(--cedar-deep); border-color: var(--cedar-deep); color: #fff; transform: scale(1.08); }
.craft-step h3 { font-size: 1.15rem; color: var(--cedar-deep); margin: .55rem 0 .2rem; }
.craft-step p { font-size: .93rem; color: var(--ink-soft); max-height: 0; overflow: hidden; opacity: 0; margin: 0; transition: max-height .5s var(--ease), opacity .4s; }
.craft-step.is-active p { max-height: 9em; opacity: 1; }

.craft-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; justify-self: center; }
.craft-stage svg { width: 100%; height: 100%; overflow: visible; }
.craft-counter { position: absolute; bottom: 3%; inset-inline-end: 3%; padding: .35rem .85rem; border-radius: 999px; background: var(--cedar-deep); color: #fff; font-size: .85rem; font-weight: 600; }
.craft-counter b { color: var(--gold); font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; }
.cs-ring { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 9; opacity: .7; transform-origin: 200px 200px; animation: spinSlow 60s linear infinite; }
.cs-scene { opacity: 0; transform: scale(.88); transform-origin: 200px 200px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.cs-scene.is-active { opacity: 1; transform: none; }

.cs-bowl { fill: #8A5A2B; }
.cs-bowl-rim { fill: #6E4522; }
#csSeeds ellipse, #csRoast ellipse, .cs-drop ellipse { fill: #F6E9CC; stroke: rgba(90,58,30,.3); stroke-width: .6; }
.cs-pan { fill: #2A1A0E; }
.cs-pan-in { fill: #4A3020; }
.cs-pan-handle { fill: #3A2414; }
.cs-flames path { fill: #E9A23B; transform-origin: 200px 332px; animation: flicker .45s ease-in-out infinite alternate; }
.cs-flames path:nth-child(2) { fill: #F2C14E; animation-delay: .15s; }
.cs-heat path { fill: none; stroke: rgba(176,127,42,.65); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 8; animation: heat 1.1s linear infinite; }
.cs-stone { fill: #A39888; stroke: #6F655A; stroke-width: 4; }
#csGrooves line { stroke: #7E7468; stroke-width: 3; stroke-linecap: round; }
.cs-stone-hole { fill: #3A2E24; }
.cs-paste { fill: none; stroke: #D9B77F; stroke-width: 14; stroke-linecap: round; }
.cs-pot { fill: #8A5A2B; }
.cs-drop ellipse { animation: seedDrop 1s linear infinite; }
.cs-drop ellipse:nth-child(2) { animation-delay: .33s; }
.cs-drop ellipse:nth-child(3) { animation-delay: .66s; }
.cs-shield { fill: rgba(219,167,67,.14); stroke: var(--gold-deep); stroke-width: 6; stroke-linejoin: round; }
.cs-check { fill: none; stroke: var(--green); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.cs-lens { fill: rgba(255,255,255,.4); stroke: var(--cedar-deep); stroke-width: 6; }
.cs-lens-handle { stroke: var(--cedar-deep); stroke-width: 10; stroke-linecap: round; }
.cs-jar { fill: rgba(255,255,255,.6); stroke: rgba(90,58,30,.3); stroke-width: 3; }
.cs-lid { fill: var(--cedar-deep); }
.cs-lid-rim { fill: var(--gold); }
.cs-label { fill: var(--paper); }
.cs-label-text { font-family: "Fraunces", Georgia, serif; font-size: 15px; font-weight: 600; fill: var(--cedar-deep); }
@keyframes flicker { from { transform: scaleY(.85); } to { transform: scaleY(1.12); } }
@keyframes heat { to { stroke-dashoffset: -36; } }
@keyframes seedDrop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(140px); opacity: 0; } }

/* ---- Tahini pour (pure section) ---- */
.pure-top { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: clamp(2rem, 4vw, 4rem); align-items: end; }
.pour { position: relative; width: 200px; height: 360px; justify-self: center; }
.pour-stream {
  position: absolute; left: 50%; width: 12px; margin-left: -6px; z-index: 0;
  top: calc(-1 * clamp(5rem, 10vw, 8rem) - 1rem); bottom: 22px; border-radius: 6px;
  background: repeating-linear-gradient(180deg, #EAD2A2 0 18px, #D2AA6E 18px 30px);
  clip-path: inset(0 0 100% 0);
}
.pour-jar { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; z-index: 1; filter: drop-shadow(0 22px 30px rgba(0,0,0,.45)); }
.pj-body { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.6); stroke-width: 2.5; }
.pj-rim { fill: rgba(255,255,255,.22); stroke: rgba(255,255,255,.65); stroke-width: 1.5; }
.pj-fill { transform: translateY(196px); }
.pj-wave { animation: wave 1.6s linear infinite; }
.pj-label { opacity: 0; transition: opacity .9s ease 4.3s; }
.pj-label rect { fill: var(--paper); }
.pj-label text { font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: .08em; fill: var(--cedar-deep); }
.pure.is-visible .pour-stream { animation: pourStream 4.6s cubic-bezier(.5,0,.3,1) .3s forwards, flow .45s linear infinite; }
.pure.is-visible .pj-fill { animation: fillUp 3.8s cubic-bezier(.45,0,.2,1) .9s forwards; }
.pure.is-visible .pj-label { opacity: 1; }
@keyframes pourStream {
  0%   { clip-path: inset(0 0 100% 0); }
  18%  { clip-path: inset(0 0 0 0); }
  78%  { clip-path: inset(0 0 0 0); width: 12px; margin-left: -6px; }
  100% { clip-path: inset(100% 0 0 0); width: 5px; margin-left: -2.5px; }
}
@keyframes flow { to { background-position: 0 30px; } }
@keyframes fillUp { to { transform: translateY(66px); } }
@keyframes wave { to { transform: translateX(40px); } }

/* =========================================================
   Heritage
   ========================================================= */
.heritage { padding: clamp(5rem, 9vw, 8rem) 0; background: var(--cedar-deep); color: #fff; position: relative; overflow: hidden; }
.heritage::after { content: ""; position: absolute; inset-inline-end: -10%; bottom: -40%; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(214,166,75,.14), transparent 65%); pointer-events: none; }
.heritage .section-title { color: #fff; }
.heritage-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }
.heritage-head p { color: rgba(255,255,255,.75); font-size: 1.1rem; }
.heritage-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; position: relative; }
.heritage-card { --tint: var(--gold); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--tint); border-radius: 20px; padding: 1.75rem; transition: background .3s, transform .4s var(--ease); }
.heritage-card:hover { background: rgba(255,255,255,.09); transform: translateY(-6px); }
.heritage-card:nth-child(2) { --tint: #6FA07E; }
.heritage-card:nth-child(3) { --tint: #E0B25B; }
.heritage-card:nth-child(4) { --tint: #F0D9A6; }
.heritage-art { width: 96px; height: 96px; margin-bottom: 1.25rem; transition: transform .5s var(--ease); }
.heritage-art svg { width: 100%; height: 100%; }
.heritage-card:hover .heritage-art { transform: scale(1.06); }
.heritage-card h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--gold); }
.heritage-card p { color: rgba(255,255,255,.72); font-size: .95rem; }
.ha-ring { fill: none; stroke: var(--gold); stroke-width: 10; }
.ha-hole { fill: var(--cedar-deep); }
.ha-seeds { fill: var(--sesame); transform-origin: 60px 60px; animation: spinSlow 18s linear infinite; }
.ha-stem { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.ha-leaves { fill: var(--green); stroke: var(--gold); stroke-width: 1.2; transform-origin: 60px 100px; animation: sway 4s ease-in-out infinite; }
.ha-bar { fill: var(--gold); }
.ha-dots { fill: var(--cedar-deep); }
.ha-cookie { fill: #E8C98A; stroke: var(--gold); stroke-width: 3; }
.ha-pist { fill: var(--green); transform-origin: 60px 60px; animation: spinSlow 24s linear infinite reverse; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes sway { 0%,100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }

/* =========================================================
   Recipe
   ========================================================= */
.recipe { padding: clamp(5rem, 9vw, 8rem) 0; background: var(--sesame); }
.recipe-card {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  background: var(--paper); border-radius: 32px; overflow: hidden;
  box-shadow: 0 40px 80px -45px rgba(27,23,16,.45);
}
.recipe-photo { position: relative; min-height: 100%; overflow: hidden; }
.recipe-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; transition: transform 1.4s var(--ease); }
.recipe-card:hover .recipe-photo img { transform: scale(1.04); }
.recipe-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(42,26,14,.55)); pointer-events: none; }
.recipe-photo figcaption {
  position: absolute; inset-inline: 1.25rem; bottom: 1.25rem; z-index: 1;
  display: flex; align-items: center; gap: .6rem;
  color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.35;
}
.recipe-photo figcaption svg { width: 34px; height: 34px; flex-shrink: 0; padding: 7px; border-radius: 50%; background: var(--gold); fill: none; stroke: var(--cedar-deep); stroke-width: 2; stroke-linecap: round; }

.recipe-body { padding: clamp(2rem, 4.5vw, 3.75rem); }
.recipe-title { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--cedar-deep); margin-bottom: .75rem; font-variation-settings: "opsz" 144; }
.recipe-intro { color: var(--ink-soft); font-size: 1.05rem; max-width: 52ch; margin-bottom: 1.1rem; }
.recipe-meta { list-style: none; margin: 0 0 2rem; padding: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.recipe-meta li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; color: var(--cedar-deep); }
.recipe-meta svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-deep); stroke-width: 2; stroke-linecap: round; }

.recipe-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 3.5vw, 3rem); }
.recipe h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
[lang="ar"] .recipe h3 { letter-spacing: 0; font-size: .95rem; }

/* ingredients: tap to tick off */
.recipe-ingredients { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.recipe-ingredients li {
  position: relative; padding: .5rem .5rem .5rem 0; padding-inline-start: 2rem;
  color: var(--ink); font-size: .96rem; cursor: pointer; border-radius: 8px;
  transition: color .25s;
}
.recipe-ingredients li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62rem; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(176,127,42,.6); background: #fff; transition: background .25s, border-color .25s;
}
.recipe-ingredients li::after {
  content: ""; position: absolute; inset-inline-start: 5px; top: calc(.62rem + 5px); width: 8px; height: 4px;
  border: solid var(--cedar-deep); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease);
}
.recipe-ingredients li:hover::before { border-color: var(--gold-deep); }
.recipe-ingredients li.is-checked { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(176,127,42,.6); }
.recipe-ingredients li.is-checked::before { background: var(--gold); border-color: var(--gold); }
.recipe-ingredients li.is-checked::after { transform: rotate(-45deg) scale(1); }

/* steps: numbered, joined by a thin line */
.recipe-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.recipe-steps li { counter-increment: step; position: relative; padding-inline-start: 2.6rem; padding-bottom: 1.1rem; color: var(--ink); font-size: .96rem; }
.recipe-steps li:last-child { padding-bottom: 0; }
.recipe-steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: .1rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--gold); color: var(--cedar-deep);
  font-family: "Fraunces", Georgia, serif; font-size: .85rem; z-index: 1;
}
.recipe-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: calc(.875rem - .5px); top: 2rem; bottom: .1rem; width: 1px; background: var(--line); }

.recipe-serve { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.recipe-serve strong { color: var(--cedar-deep); margin-inline-end: .35rem; }

/* =========================================================
   Why
   ========================================================= */
.why { padding: clamp(5rem, 9vw, 8rem) 0; }
.why-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.why-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.1rem; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.why-item { background: var(--paper); padding: 2.25rem 2rem; transition: background .3s; }
.why-item:hover { background: var(--sesame); }
.why-item svg { width: 44px; height: 44px; fill: none; stroke: var(--cedar); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.25rem; }
.why-item svg * { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.2s var(--ease) .2s; }
.why-grid.is-visible .why-item svg * { stroke-dashoffset: 0; }
.why-item h3 { font-size: 1.25rem; color: var(--cedar-deep); margin-bottom: .5rem; }
.why-item p { color: var(--ink-soft); font-size: .98rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { position: relative; padding: clamp(5rem, 9vw, 8rem) 0; color: #fff; text-align: center; background: var(--cedar-deep) url("assets/img/site/range.jpg") center / cover no-repeat; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 120%, rgba(138,90,43,.85), rgba(90,58,30,.9) 50%, rgba(42,26,14,.95)); }
.cta-inner { position: relative; max-width: 720px; }
.cta-logo { width: 130px; height: auto; margin: 0 auto 1.5rem; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 2rem; }

/* =========================================================
   Location / Map
   ========================================================= */
.location { position: relative; background: var(--cedar-deep); }
.map-wrap { position: relative; min-height: clamp(560px, 80vh, 720px); display: flex; align-items: center; }
.map { position: absolute; inset: 0; z-index: 0; background: #E9DFCB; }
.map .leaflet-tile-pane { filter: sepia(.35) saturate(.85) hue-rotate(-6deg) brightness(1.02) contrast(.95); }
.map-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(90deg, rgba(42,26,14,.55), rgba(42,26,14,0) 55%); }
[dir="rtl"] .map-wrap::after { background: linear-gradient(-90deg, rgba(42,26,14,.55), rgba(42,26,14,0) 55%); }
.map-card-wrap { position: relative; z-index: 2; pointer-events: none; padding-block: 3rem; }
.map-card {
  pointer-events: auto; width: min(100%, 420px);
  background: rgba(251,245,234,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 26px; padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.6);
}
.map-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--cedar-deep); margin-bottom: .7rem; }
.map-card-text { color: var(--ink-soft); font-size: .98rem; }
.map-facts { list-style: none; margin: 1.3rem 0 1.6rem; padding: 0; display: grid; gap: .75rem; }
.map-facts li { display: flex; align-items: flex-start; gap: .7rem; color: var(--cedar-deep); font-weight: 600; font-size: .95rem; }
.map-facts svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .15rem; fill: none; stroke: var(--gold-deep); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.map-facts .coords { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.map-apps { display: flex; gap: 1rem; font-weight: 700; font-size: .9rem; }
.map-apps a { color: var(--cedar); border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.map-apps a:hover { color: var(--gold-deep); }

.map-controls { position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: 2rem; display: grid; gap: .5rem; }
.map-controls button {
  width: 46px; height: 46px; border-radius: 14px; border: 0; display: grid; place-items: center;
  background: var(--paper); color: var(--cedar-deep); box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: background .25s, transform .25s var(--ease);
}
.map-controls button:hover { background: var(--gold); transform: translateY(-2px); }
.map-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.map-hint {
  position: absolute; z-index: 2; top: 1.5rem; left: 50%; transform: translate(-50%, -8px);
  padding: .5rem 1rem; border-radius: 999px; background: rgba(42,26,14,.82); color: #fff; font-size: .85rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.map-hint.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* Custom cedar marker */
.cedar-marker { position: relative; width: 74px; height: 74px; }
.cedar-marker .pin {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--gold); box-shadow: 0 14px 30px rgba(0,0,0,.4);
  animation: pinDrop .9s var(--ease) both;
}
.cedar-marker .pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.cedar-marker img { position: absolute; inset: 12px; width: 50px; height: 50px; object-fit: contain; z-index: 1; animation: pinDrop .9s var(--ease) both; }
.cedar-marker .pulse { position: absolute; left: 50%; top: calc(50% + 52px); width: 22px; height: 10px; margin: -5px 0 0 -11px; border-radius: 50%; background: rgba(42,26,14,.35); }
.cedar-marker .pulse::before, .cedar-marker .pulse::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 40px; margin: -20px 0 0 -45px; border-radius: 50%;
  border: 2px solid var(--gold); opacity: 0; animation: ripple 2.4s ease-out infinite;
}
.cedar-marker .pulse::after { animation-delay: 1.2s; }
@keyframes pinDrop { from { opacity: 0; translate: 0 -40px; } }
@keyframes ripple { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: 16px; background: var(--paper); color: var(--cedar-deep); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.leaflet-popup-content { margin: .9rem 1.1rem; font-size: .92rem; line-height: 1.5; }
.leaflet-popup-content strong { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.leaflet-popup-tip { background: var(--paper); }
.leaflet-control-attribution { font-size: 10px; background: rgba(251,245,234,.8) !important; }
.map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.3) saturate(.9); }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--sesame); padding: clamp(5rem, 9vw, 8rem) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-copy > p { color: var(--ink-soft); font-size: 1.1rem; max-width: 40ch; }
.contact-details { font-style: normal; margin-top: 2.25rem; display: grid; gap: 1.25rem; }
.cd-item { display: flex; gap: 1rem; align-items: flex-start; }
.cd-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--gold-deep); }
.cd-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-k { display: block; font-size: .85rem; font-weight: 700; color: var(--gold-deep); margin-bottom: .1rem; }
.cd-item a, .cd-value { font-family: var(--font-display); font-size: 1.25rem; color: var(--cedar-deep); line-height: 1.35; overflow-wrap: anywhere; }
[dir="rtl"] .cd-item a[dir="ltr"] { display: inline-block; }
.cd-item a:hover { color: var(--cedar-soft); }

.social { margin-top: 2rem; }
.social-links { display: flex; gap: .6rem; margin-top: .5rem; }
.social-links a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cedar-deep); color: #fff; transition: background .25s, transform .25s var(--ease); }
.social-links a:hover { background: var(--gold); color: var(--cedar-deep); transform: translateY(-3px); }
.social-links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { background: var(--paper); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; box-shadow: 0 30px 60px -30px rgba(27,23,16,.25); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--cedar-deep); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cedar); box-shadow: 0 0 0 4px rgba(219,167,67,.25); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B8452F; }
.contact-form .btn { justify-self: start; margin-top: .4rem; }
.form-status { min-height: 1.4em; font-size: .92rem; color: var(--cedar); font-weight: 600; margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--cedar-deep); color: rgba(255,255,255,.75); padding: 4rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { width: 120px; height: auto; margin-bottom: 1rem; }
.footer-tag { font-size: .95rem; max-width: 30ch; }
.footer-brand .social-links a { background: rgba(255,255,255,.08); }
.footer-col { display: flex; flex-direction: column; gap: .55rem; font-size: .93rem; }
.footer-col h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
[lang="ar"] .footer-col h3 { letter-spacing: 0; font-size: .95rem; }
.footer-col a { align-self: flex-start; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-copy { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.5); }

/* WhatsApp floating button */
.wa-float {
  position: fixed; z-index: 45; inset-inline-end: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.28);
  transition: transform .3s var(--ease), opacity .3s;
  opacity: 0; transform: scale(.6); pointer-events: none;
}
.wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* =========================================================
   Reveal & stagger
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: .05s }
.stagger.is-visible > *:nth-child(2) { transition-delay: .15s }
.stagger.is-visible > *:nth-child(3) { transition-delay: .25s }
.stagger.is-visible > *:nth-child(4) { transition-delay: .35s }
.stagger.is-visible > *:nth-child(5) { transition-delay: .45s }
.stagger.is-visible > *:nth-child(6) { transition-delay: .55s }

.section-title { position: relative; padding-bottom: .9rem; }
.section-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: var(--start); transition: transform .8s var(--ease) .3s; }
.is-visible .section-title::after, .section-title.is-visible::after { transform: scaleX(1); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .site-nav { gap: 1.3rem; }
}

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-grid, .heritage-grid, .pure-points { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .commit-grid { grid-template-columns: 1fr; max-width: 560px; }
  .products-top { grid-template-columns: 1fr; }
  .recipe-card { grid-template-columns: 1fr; }
  .recipe-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .pure-top { grid-template-columns: 1fr; }
  .pour { width: 150px; height: 290px; }

  .lb-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-stage img { max-height: 58vh; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: 0; z-index: 40; height: 100vh; height: 100dvh; overflow-y: auto;
    flex-direction: column; justify-content: center; align-items: center; gap: .4rem;
    padding: calc(90px + env(safe-area-inset-top, 0px)) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: radial-gradient(120% 70% at 50% 0%, var(--cedar), var(--cedar-deep) 70%);
    color: #fff; font-size: clamp(1.5rem, 6vw, 1.9rem); font-family: var(--font-display); font-weight: 400;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
    margin: 0;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
  .site-nav a { opacity: 1; padding: .55rem 1.5rem; transform: translateY(14px); transition: transform .5s var(--ease), color .25s; }
  .site-nav a::after { display: none; }
  .site-nav.is-open a { transform: none; }
  .site-nav.is-open a:nth-child(2) { transition-delay: .04s; }
  .site-nav.is-open a:nth-child(3) { transition-delay: .08s; }
  .site-nav.is-open a:nth-child(4) { transition-delay: .12s; }
  .site-nav.is-open a:nth-child(5) { transition-delay: .16s; }
  .site-nav.is-open a:nth-child(6) { transition-delay: .2s; }
  .site-nav a.is-current, .site-nav a:hover { color: var(--gold); }
  .site-header.menu-open::before { opacity: 0; }
  .lang-toggle { margin-inline-start: auto; position: relative; z-index: 60; }
  .nav-toggle { display: flex; position: relative; z-index: 60; }
  .site-header.menu-open { color: #fff; }
  .site-header.menu-open .brand { position: relative; z-index: 60; }

  .hero { grid-template-columns: 1fr; padding-bottom: 7rem; }
  .hero-visual { width: min(70%, 300px); margin-top: 1.5rem; }
  .hero-badge { inset-inline-end: -14%; }

  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-overlay, [dir="rtl"] .hero-overlay { background: linear-gradient(180deg, rgba(42,26,14,.9) 0%, rgba(42,26,14,.82) 60%, rgba(42,26,14,.7) 100%); }

  .craft-scroller { height: 520vh; }
  .craft-sticky { padding-top: 70px; }
  .craft-layout { grid-template-columns: 1fr; gap: .75rem; }
  .craft-stage { order: -1; width: min(80vw, 44svh); }
  .craft-list { padding-inline-start: 0; }
  .craft-bar { display: none; }
  .craft-steps { grid-template-areas: "s"; }
  .craft-step { grid-area: s; opacity: 0; transform: translateY(12px); pointer-events: none; }
  .craft-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .craft-step:hover { opacity: 0; }
  .craft-step.is-active:hover { opacity: 1; }
  .recipe-cols { grid-template-columns: 1fr; gap: 2rem; }

  .map-wrap { flex-direction: column; align-items: stretch; min-height: 0; }
  .map { position: relative; height: 380px; inset: auto; }
  .map-wrap::after { display: none; }
  .map-card-wrap { padding-block: 0 2rem; margin-top: -3rem; }
  .map-card { width: 100%; }
  .map-controls { top: 1rem; bottom: auto; }
}

@media (max-width: 560px) {
  .brand-logo { height: 52px; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid, .heritage-grid, .pure-points { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .marquee { font-size: 1rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .pc-body { padding: .8rem .9rem 1rem; }
  .pc-name { font-size: 1.05rem; }
  .pc-cat { display: none; }
  .product-filters { display: flex; border-radius: 18px; }
  .product-filters button { flex: 1; justify-content: center; padding-inline: .6rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .lightbox { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .lb-inner { max-height: 100vh; }
  .wa-float { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .stagger > *, .pure-text .w { opacity: 1; transform: none; }
  .hero-title .line > span, .hero-origin, .hero-lead, .hero-actions, .hero-visual, .hero-badge { opacity: 1; transform: none; animation: none; }
  .why-item svg * { stroke-dashoffset: 0; }
  .craft-scroller { height: auto; }
  .craft-sticky { position: static; height: auto; padding-block: 2.5rem 5rem; }
  .craft-step, .craft-step:hover { opacity: 1; transform: none; pointer-events: auto; grid-area: auto; }
  .craft-step p { max-height: none; opacity: 1; }
  .hero-slides img:not(:first-child) { display: none; }
  .marquee-track { animation: none; }
  .hero-seeds { display: none; }
}

/* =========================================================
   Responsive refinements — tablets & phones
   ========================================================= */
@media (max-width: 1180px) {
  /* keep the hero photo stack inside its own column */
  .hero-visual { width: min(100%, 340px); }
  .hero-photo-back { inset-inline-start: -14%; }
  .hero-badge { inset-inline-end: -6%; }
}

@media (max-width: 1000px) {
  /* pour sits beside the statement, and the stream starts at the jar's column, not over the text */
  .pure-top { grid-template-columns: minmax(0, 1fr) 150px; align-items: center; }
  .pour { width: 140px; height: 300px; }
  .pour-stream { top: -2rem; }
  /* gallery: give the photo real height in the stacked layout */
  .lb-stage { height: min(62vh, 560px); }
  .lb-stage img { height: 100%; max-height: none; }
}

@media (max-width: 600px) {
  .pure-top { grid-template-columns: 1fr; }
  .pour { width: 120px; height: 240px; }
  .pour-stream { top: 0; }
  .lb-stage { height: 50vh; }
}

/* touch screens: comfortable tap targets (~44px) */
@media (pointer: coarse) {
  .footer-col { gap: 0; }
  .footer-col a, .map-apps a { padding-block: .65rem; }
  .map-apps a { min-width: 44px; text-align: center; }
  .map-facts a { display: inline-block; padding-block: .5rem; margin-block: -.5rem; }
  .cd-item a { display: inline-block; padding-block: .45rem; }
  .recipe-ingredients li { padding-block: .7rem; }
  .hero-scroll { display: none; }
}
