/* ══════════════════════════════════════════════════════════════════════════
   Overview — the page a QR code on the packaging opens.
   Built phone-first: the reader is standing in a shop holding the jar, on
   mobile data, and everything below is sized for that first. Wider screens
   get more room, never a different page.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-dark:    #0c0b08;
  --bg-section: #111008;
  --bg-card:    #141209;
  --gold:       #c9a84c;
  --gold-light: #e8c56e;
  --gold-dim:   #8a6f2e;
  --cream:      #f0e6cc;
  --cream-dim:  #b8a882;
  --white:      #faf7f0;
  --border:     rgba(201,168,76,0.18);
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-dark);
  color: var(--cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arabic needs a different face and a touch more leading to stay legible. */
html[lang="ar"] body { font-family: 'Tajawal', sans-serif; font-size: 16px; line-height: 1.95; }
html[lang="ar"] .hero-title,
html[lang="ar"] .sect-title { font-family: 'Tajawal', sans-serif; font-weight: 700; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Language picker ─────────────────────────────────────────────────────── */
.lang-float {
  position: fixed; top: 14px; inset-inline-end: 14px; z-index: 50;
  display: flex; gap: 2px; padding: 3px;
  background: rgba(12,11,8,0.78); border: 1px solid var(--border);
  border-radius: 999px; backdrop-filter: blur(10px);
}
.lang-opt {
  min-width: 42px; height: 34px; padding: 0 10px;
  background: transparent; border: none; border-radius: 999px;
  color: var(--cream-dim); font-family: inherit; font-size: 13px;
  letter-spacing: 1px; cursor: pointer; transition: all 0.25s var(--ease);
}
.lang-opt.active { background: var(--gold); color: var(--bg-dark); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 22px 70px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.06); opacity: 0.32;
}
.hero-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(12,11,8,0.55) 0%, rgba(12,11,8,0.93) 72%, var(--bg-dark) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; }

/* Sized by width, not height: the mark is about 3:1, so a height rule leaves
   it reading as a small strip on a phone — and on a page reached by scanning a
   jar, the logo is what confirms the visitor is in the right place. */
.hero-logo {
  width: min(300px, 70vw); height: auto; margin: 0 auto 32px;
  animation: rise 1s var(--ease) both;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.6rem); line-height: 1.2; color: var(--white);
  letter-spacing: 0.5px; animation: rise 1s var(--ease) 0.12s both;
}
.hero-rule {
  width: 54px; height: 1px; margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: rise 1s var(--ease) 0.24s both;
}
.hero-tagline {
  font-size: clamp(0.98rem, 4vw, 1.2rem); color: var(--cream-dim);
  font-weight: 300; letter-spacing: 0.4px;
  animation: rise 1s var(--ease) 0.34s both;
}

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 34px; height: 46px;
  display: flex; align-items: flex-start; justify-content: center;
}
.hero-scroll-line {
  width: 1px; height: 34px; background: linear-gradient(180deg, var(--gold), transparent);
  animation: drift 2.1s ease-in-out infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(9px); } }

/* ── Sections ────────────────────────────────────────────────────────────── */
.sect { padding: 68px 22px; }
.sect-alt { background: var(--bg-section); }
.wrap { max-width: 1040px; margin: 0 auto; }

.eyebrow {
  font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; font-family: 'Cormorant Garamond', serif;
}
html[lang="ar"] .eyebrow { letter-spacing: 2px; font-family: 'Tajawal', sans-serif; }

.sect-title {
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: clamp(1.5rem, 6vw, 2.3rem); color: var(--white); line-height: 1.3;
}
.title-rule { width: 40px; height: 1px; background: var(--gold-dim); margin: 18px 0 26px; }

.body-text {
  font-size: clamp(1rem, 4vw, 1.12rem); color: var(--cream-dim);
  font-weight: 300; max-width: 68ch; white-space: pre-line;
}

/* ── Highlights ──────────────────────────────────────────────────────────── */
.highlights {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(201,168,76,0.05);
  font-size: 13.5px; letter-spacing: 0.6px; color: var(--cream);
}
.chip i { color: var(--gold); font-size: 11px; }

/* ── Products ────────────────────────────────────────────────────────────── */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.card-img {
  aspect-ratio: 1; width: 100%; object-fit: contain;
  background: #0a0906; padding: 16px;
}
.card-body { padding: 14px 15px 17px; border-top: 1px solid var(--border); }
.card-name {
  font-family: 'Playfair Display', serif; font-size: 15px;
  color: var(--white); line-height: 1.35; margin-bottom: 5px;
}
html[lang="ar"] .card-name { font-family: 'Tajawal', sans-serif; font-weight: 500; }
.card-desc {
  font-size: 13px; color: var(--cream-dim); font-weight: 300; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
.contact-row {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 18px; background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
a.contact-row:active { background: rgba(201,168,76,0.07); }
a.contact-row:hover { border-color: var(--gold-dim); }
.contact-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 15px;
}
.contact-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 2px;
}
html[lang="ar"] .contact-label { letter-spacing: 1px; }
.contact-value { font-size: 15px; color: var(--cream); word-break: break-word; }
/* Phone numbers and e-mail stay left-to-right even on the Arabic page. */
.contact-value.ltr { direction: ltr; unicode-bidi: isolate; text-align: start; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot {
  text-align: center; padding: 46px 22px 54px;
  border-top: 1px solid var(--border); background: var(--bg-section);
}
.foot-logo { width: min(170px, 46vw); height: auto; margin: 0 auto 16px; opacity: 0.8; }
.foot-line { font-size: 13px; color: var(--cream-dim); letter-spacing: 1px; }
.foot-link {
  display: inline-block; margin-top: 16px; padding: 10px 26px;
  border: 1px solid var(--gold-dim); color: var(--gold-light);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.foot-link:hover { background: var(--gold); color: var(--bg-dark); }
html[lang="ar"] .foot-link { letter-spacing: 0.5px; }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Unpublished curtain ─────────────────────────────────────────────────── */
.curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--bg-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 22px;
}
/* An author `display` beats the UA rule behind the `hidden` attribute, so
   without this the curtain covers the page even when it is marked hidden. */
.curtain[hidden] { display: none; }
.curtain img { width: min(230px, 62vw); height: auto; opacity: 0.9; }
.curtain p { color: var(--cream-dim); font-size: 17px; letter-spacing: 1px; }
.curtain a { color: var(--gold); font-size: 13px; letter-spacing: 2px; }

/* ── Larger screens ──────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  .sect { padding: 92px 32px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
  .contact-list { grid-template-columns: repeat(2, 1fr); }
  .hero-logo { width: 360px; }
}

@media (min-width: 1040px) {
  .sect { padding: 108px 40px; }
}

/* Respect a reader who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo, .hero-title, .hero-rule, .hero-tagline { animation: none; }
  .hero-scroll-line { animation: none; }
}

/* ── Vision & Mission ────────────────────────────────────────────────────── */
.vm-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.vm-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 30px 26px; position: relative;
}
.vm-icon { color: var(--gold); font-size: 20px; margin-bottom: 16px; display: block; }
.vm-title {
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: 1.25rem; color: var(--white); margin-bottom: 6px;
}
html[lang="ar"] .vm-title { font-family: 'Tajawal', sans-serif; font-weight: 700; }
.vm-title::after {
  content: ''; display: block; width: 32px; height: 1px;
  background: var(--gold-dim); margin-top: 13px; margin-bottom: 15px;
}
.vm-body { font-size: 15.5px; color: var(--cream-dim); font-weight: 300; line-height: 1.85; }

/* ── Message ─────────────────────────────────────────────────────────────── */
/* A closing word from the company, set apart from the factual sections. */
.sect-quote { padding-block: 64px; }
.quote { position: relative; max-width: 780px; margin: 0 auto; text-align: center; }
.quote-mark { color: var(--gold); font-size: 22px; opacity: 0.55; display: block; margin-bottom: 20px; }
.quote-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 4.6vw, 1.55rem); line-height: 1.75;
  color: var(--cream); font-weight: 300; font-style: italic;
}
html[lang="ar"] .quote-body { font-family: 'Tajawal', sans-serif; font-style: normal; line-height: 1.95; }
.quote::after {
  content: ''; display: block; width: 56px; height: 1px; margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@media (min-width: 700px) {
  .vm-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .vm-card { padding: 36px 32px; }
}

/* ── Hero with a background image ────────────────────────────────────────────
   Only applies when an image is set (overview.js adds .has-image); without
   one the hero stays as it was, text centred on plain dark.
   The text moves up over the image's dark upper part and the veil fades
   from near-opaque at the top to almost clear at the bottom, so the title
   stays readable and the products show underneath it instead of being
   dimmed across the whole frame. */
.hero.has-image { justify-content: flex-start; padding-top: 10vh; }
.hero.has-image .hero-bg { opacity: 0.7; background-position: center bottom; }
.hero.has-image .hero-veil {
  background: linear-gradient(180deg,
    rgba(12,11,8,0.97) 0%, rgba(12,11,8,0.9) 40%, rgba(12,11,8,0.5) 60%,
    rgba(12,11,8,0.15) 82%, var(--bg-dark) 100%);
}

/* On a wide screen a tall image stretched to the full width is cropped down
   to its floor. Show it at full height in the centre instead, and fade its
   side edges into the page. */
@media (min-width: 700px) {
  .hero.has-image { padding-top: 7vh; }
  .hero.has-image .hero-bg {
    background-size: auto 100%; background-repeat: no-repeat; transform: none;
  }
  .hero.has-image .hero-veil {
    background:
      linear-gradient(90deg, var(--bg-dark) 0%, rgba(12,11,8,0) 32%, rgba(12,11,8,0) 68%, var(--bg-dark) 100%),
      linear-gradient(180deg,
        rgba(12,11,8,0.97) 0%, rgba(12,11,8,0.9) 40%, rgba(12,11,8,0.5) 60%,
        rgba(12,11,8,0.15) 82%, var(--bg-dark) 100%);
  }
}

/* ── Location card ───────────────────────────────────────────────────────── */
.loc-card {
  margin-top: 22px; background: var(--bg-card); border: 1px solid var(--border);
  padding: 26px 22px; text-align: center;
}
/* An author display rule would beat the `hidden` attribute; keep it honoured. */
.loc-card[hidden], .follow[hidden], .loc-btn[hidden] { display: none; }
.loc-pin {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%;
  border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 18px;
}
.loc-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--white); margin-bottom: 6px; }
html[lang="ar"] .loc-title { font-family: 'Tajawal', sans-serif; font-weight: 700; }
.loc-addr { font-size: 14.5px; color: var(--cream-dim); margin-bottom: 18px; }
.loc-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 26px;
  background: var(--gold); color: var(--bg-dark); font-size: 12.5px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  transition: background 0.3s var(--ease);
}
.loc-btn:hover { background: var(--gold-light); }
html[lang="ar"] .loc-btn { letter-spacing: 0.5px; }

/* ── Follow us ───────────────────────────────────────────────────────────── */
.follow { margin-top: 34px; text-align: center; }
.follow-label {
  font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
html[lang="ar"] .follow-label { letter-spacing: 2px; }
.follow-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.soc {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 20px; background: rgba(201,168,76,0.05);
  transition: all 0.3s var(--ease);
}
.soc:hover { background: var(--gold); color: var(--bg-dark); border-color: var(--gold); }
