/* Abyar marketing site — built on the Madinah Wells design-system tokens */
@import url('tokens/fonts.css');
@import url('tokens/colors.css');
@import url('tokens/typography.css');
@import url('tokens/spacing.css');
@import url('tokens/base.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sand-50); color: var(--ink-900);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased;
}
img { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* Bilingual visibility */
html[dir="rtl"] [data-en] { display: none; }
html[dir="ltr"] [data-ar] { display: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 245, 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; }
.brand .word { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--blue-900); }
.brand .word-en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--stone-500); margin-top: 6px; }
.nav-links { display: none; gap: 26px; }
@media (min-width: 820px) { .nav-links { display: flex; } }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-700); text-decoration: none; }
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: flex; border: 1.5px solid var(--sand-300); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: none; background: none; padding: 7px 13px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--stone-500);
}
.lang-toggle button.is-active { background: var(--blue-600); color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  transition: all 140ms var(--ease-water); border: 1.5px solid transparent;
}
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-primary { background: var(--color-primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(0.94); }
.btn-accent { background: var(--clay-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(0.94); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn:active { transform: scale(0.97); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--gradient-water);
  padding: 84px 0 140px;
}
.hero .arabesque, .section-dark .arabesque {
  position: absolute; inset: 0; opacity: 0.13;
  background: url('assets/pattern-arabesque.svg') repeat; background-size: 130px;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.24em;
  color: var(--blue-200); margin: 0 0 14px;
}
html[lang="ar"] .eyebrow { font-family: var(--font-body); letter-spacing: 0.08em; font-weight: 600; }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -0.02em;
}
.lede { margin: 18px 0 26px; font-size: 17px; color: rgba(255,255,255,0.82); max-width: 46ch; line-height: 1.65; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.facts div, .story-facts div { display: flex; flex-direction: column; gap: 3px; }
.facts b, .story-facts b { font-family: var(--font-mono); font-weight: 600; font-size: 22px; }
.facts span, .story-facts span { font-size: 11.5px; color: rgba(255,255,255,0.65); }
.hero .wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: auto; pointer-events: none; }

/* Bottle visual */
.hero-bottle { display: flex; justify-content: center; }
.bottle {
  width: 150px; height: 320px; border-radius: 16px 16px 10px 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08) 55%, rgba(255,255,255,0.16));
  border: 1px solid rgba(255,255,255,0.35);
  position: relative; display: flex; justify-content: center;
  backdrop-filter: blur(2px); box-shadow: var(--shadow-lg);
}
.bottle .cap { position: absolute; top: -16px; width: 46px; height: 22px; background: var(--blue-900); border-radius: 6px 6px 3px 3px; }
.bottle .label {
  margin-top: 92px; width: 104px; height: fit-content; background: rgba(255,255,255,0.96);
  border-radius: 8px; padding: 14px 8px; text-align: center; color: var(--blue-900);
}
.bottle .label img { height: 34px; margin: 0 auto 6px; }
.label-word { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; }
.label-sub { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.14em; color: var(--stone-500); margin-top: 6px; }

/* ── Sections ── */
.section { padding: 84px 0; }
.section h2 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px); color: var(--blue-900); letter-spacing: -0.02em;
}
.section-lede { margin: 12px 0 36px; color: var(--stone-500); font-size: 16px; max-width: 52ch; }

/* Products grid (rendered by script.js) */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.p-card {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 12px;
  transition: all 240ms var(--ease-water);
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.p-visual { display: flex; justify-content: center; padding: 10px 0 4px; }
.p-bottle {
  width: 54px; height: 96px; border-radius: 7px 7px 4px 4px; position: relative;
  display: flex; justify-content: center; box-shadow: var(--shadow-sm);
}
.p-bottle::before { content: ""; position: absolute; top: 0; width: 21px; height: 7px; background: rgba(0,0,0,0.18); border-radius: 0 0 4px 4px; }
.p-label { margin-top: 25px; width: 42px; height: fit-content; background: rgba(255,255,255,0.96); border-radius: 4px; padding: 5px 3px; text-align: center; }
.p-label img { height: 22px; margin: 0 auto; }
.p-label div { font-family: var(--font-display); font-weight: 600; font-size: 8px; color: var(--blue-900); line-height: 1; }
.p-label.dark { background: var(--ink-900); }
.p-label.dark div { color: var(--clay-500); }
.p-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--blue-900); }
.p-pack { font-size: 13px; color: var(--stone-500); margin-top: 2px; }
.p-spec { font-family: var(--font-mono); font-size: 11.5px; color: var(--stone-500); margin-top: 8px; }
.p-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.p-price { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--blue-800); }
.products-note { margin: 26px 0 0; font-size: 13px; color: var(--stone-500); }

/* Source story */
.section-dark { position: relative; overflow: hidden; background: var(--blue-900); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); max-width: 52ch; line-height: 1.7; }
.story-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 860px) { .story-grid { grid-template-columns: 1.3fr 0.7fr; } }
.story-facts { display: flex; flex-direction: column; gap: 22px; }
.story-facts b { color: var(--blue-200); }

/* Subscribe */
.subscribe-card {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-xl, 26px);
  box-shadow: var(--shadow-md); padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.subscribe-card h2 { font-size: clamp(24px, 3vw, 34px); }
.subscribe-card p { margin: 10px 0 0; color: var(--stone-500); max-width: 52ch; }

/* Footer */
.footer { background: var(--blue-950); color: rgba(255,255,255,0.75); padding: 44px 0; }
.footer-grid { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer .brand img { height: 30px; }
.footer .brand .word { color: var(--white); font-size: 20px; }
.footer p { margin: 0; font-size: 14px; }
.footer .fine { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ── App store badges ── */
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 12px; padding: 9px 16px; text-decoration: none; color: var(--white);
  transition: background 160ms var(--ease-water);
}
.app-badge:hover { background: rgba(255,255,255,0.2); }
.badge-sub { font-size: 10px; opacity: 0.75; letter-spacing: 0.03em; }
.badge-store { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: all 420ms var(--ease-water); }
.reveal.visible { opacity: 1; transform: none; }
