/* =========================================================
   BEDOON ESM — بدون اسم
   Design tokens
   ========================================================= */
:root {
  --bg: #f6f1e7;
  --surface: #eee4d2;
  --elevated: #e5d8bd;
  --ink: #2b2420;
  --ink-dim: #6b5c4a;
  --ink-faint: #96876f;
  --bronze: #9c6b3d;
  --bronze-light: #cda06a;
  --bronze-dim: rgba(156, 107, 61, 0.3);
  --hairline: rgba(43, 36, 32, 0.12);
  --hairline-strong: rgba(43, 36, 32, 0.2);
  --whatsapp: #3fae5a;

  --font-display-en: 'Fraunces', serif;
  --font-body-en: 'Work Sans', sans-serif;
  --font-display-ar: 'Aref Ruqaa', serif;
  --font-body-ar: 'Tajawal', sans-serif;

  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body-en);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lang-ar { direction: rtl; }
body.lang-en { direction: ltr; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

/* =========================================================
   BILINGUAL TOGGLE SYSTEM
   All [data-en]/[data-ar] elements: hidden by default,
   shown via body.lang-en / body.lang-ar. !important used
   symmetrically on both hide and show rules so neither
   direction can silently lose the fight.
   ========================================================= */
[data-en], [data-ar] { display: none !important; }
body.lang-en [data-en] { display: inline-block !important; }
body.lang-ar [data-ar] { display: inline-block !important; }

body.lang-en [dir-text] { font-family: var(--font-body-en); }
body.lang-ar [dir-text] { font-family: var(--font-body-ar); }
body.lang-en .display-face { font-family: var(--font-display-en); }
body.lang-ar .display-face { font-family: var(--font-display-ar); }

body.lang-en { font-family: var(--font-body-en); }
body.lang-ar { font-family: var(--font-body-ar); }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  font-family: var(--font-body-en);
  display: flex;
  align-items: center;
  gap: 12px;
}
body.lang-ar .eyebrow { letter-spacing: 0.05em; font-family: var(--font-body-ar); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--bronze);
  display: inline-block;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-link img { height: 42px; width: 42px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display-en);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
body.lang-ar .brand-name { font-family: var(--font-display-ar); font-size: 22px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
}
body.lang-ar .nav-link { font-size: 15.5px; }
.nav-link:hover { color: var(--bronze); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 6px 13px;
  font-family: var(--font-body-en);
  transition: all 0.25s ease;
}
.lang-btn.active { background: var(--bronze); color: #16130f; }

.wa-header-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--whatsapp);
  color: #fff;
  padding: 9px 16px;
  border-radius: 22px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease;
}
body.lang-ar .wa-header-btn { font-size: 14px; }
.wa-header-btn:hover { filter: brightness(1.08); }
.wa-header-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
}
.hamburger span {
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile slide-out menu */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(84vw, 360px);
  background: var(--surface);
  border-left: 1px solid var(--hairline);
  z-index: 300;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.65,0,.35,1);
}
.mobile-menu.open { transform: translateX(0); }
body.lang-ar .mobile-menu {
  right: auto; left: 0;
  border-left: none;
  border-right: 1px solid var(--hairline);
  transform: translateX(-100%);
}
body.lang-ar .mobile-menu.open { transform: translateX(0); }

.mobile-menu-links { display: flex; flex-direction: column; gap: 26px; }
.mobile-menu-links a {
  font-family: var(--font-display-en);
  font-size: 22px;
  color: var(--ink);
}
body.lang-ar .mobile-menu-links a { font-family: var(--font-display-ar); font-size: 26px; }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.6);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-menu .lang-toggle { align-self: flex-start; }
.mobile-menu .wa-header-btn { align-self: flex-start; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .header-actions .lang-toggle,
  .header-actions .wa-header-btn { display: none; }
  .hamburger { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 162px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero-ghost-word {
  position: absolute;
  top: 4%;
  font-family: var(--font-display-ar);
  font-size: clamp(180px, 32vw, 480px);
  color: transparent;
  -webkit-text-stroke: 1px var(--hairline-strong);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}
body.lang-en .hero-ghost-word { left: -3%; }
body.lang-ar .hero-ghost-word { right: -3%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
body.lang-ar .hero-grid { direction: rtl; }

.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-headline {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.08;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
body.lang-ar .hero-headline { line-height: 1.35; font-weight: 400; }
.hero-headline em {
  font-style: normal;
  color: var(--bronze);
}
.hero-subtext {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 440px;
}
body.lang-ar .hero-subtext { font-size: 17px; line-height: 2; }

.hero-buttons { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 2px;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
body.lang-ar .btn { font-size: 15px; }
.btn-primary { background: var(--bronze); color: #16130f; }
.btn-primary:hover { background: var(--bronze-light); }
.btn-outline { border-color: var(--hairline-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--bronze); color: var(--bronze); }
.btn svg { width: 15px; height: 15px; }

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-image-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(43,36,32,0.28);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { padding: 128px 0 60px; }
  .hero-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .hero-text {
    display: contents;
  }
  .hero-image-wrap {
    order: 1;
    aspect-ratio: 3/3.4;
  }
  .eyebrow {
    order: 2;
  }
  .hero-headline {
    order: 3;
  }
  .hero-subtext {
    order: 4;
    max-width: none;
  }
  .hero-buttons {
    order: 5;
  }
}

/* =========================================================
   SECTION HEADINGS (shared)
   ========================================================= */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 58px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--ink);
}
body.lang-ar .section-title { font-weight: 400; }

section { position: relative; }
.section-pad { padding: 112px 0; }

.divider {
  height: 1px;
  background: var(--hairline);
  border: none;
  margin: 0;
}

/* =========================================================
   COLLECTION / PRODUCT GRID
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.product-card:hover { border-color: var(--bronze-dim); transform: translateY(-3px); }
.product-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }

.mockup-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(37, 28, 20, 0.8);
  border: 1px solid var(--hairline-strong);
  color: var(--bronze-light);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  font-family: var(--font-body-en);
}
body.lang-ar .mockup-badge { font-size: 11.5px; }

.product-info { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-name {
  font-family: var(--font-display-en);
  font-size: 17px;
  color: var(--ink);
}
body.lang-ar .product-name { font-family: var(--font-display-ar); font-size: 19px; }
.product-price { color: var(--bronze); font-size: 14px; letter-spacing: 0.03em; }
.product-order-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 2px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}
body.lang-ar .product-order-btn { font-size: 14px; }
.product-order-btn:hover { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.product-order-btn svg { width: 13px; height: 13px; }

@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile carousel — ONLY the product/collection grid */
@media (max-width: 620px) {
  .product-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 6px;
    scroll-padding-inline: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-card {
    flex: 0 0 auto;
    width: 45%;
    scroll-snap-align: start;
  }
  .product-info { padding: 12px 12px 14px; gap: 7px; }
  .product-name { font-size: 13.5px; }
  body.lang-ar .product-name { font-size: 15px; }
  .product-price { font-size: 11.5px; }
  .mockup-badge { font-size: 8.5px; padding: 4px 8px; top: 8px; }
  body.lang-ar .mockup-badge { font-size: 9.5px; }
  .product-order-btn { padding: 8px 10px; font-size: 10.5px; }
  body.lang-ar .product-order-btn { font-size: 11.5px; }
}

/* =========================================================
   CLOSING WHATSAPP CTA
   ========================================================= */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 100px 0;
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-title {
  font-size: clamp(26px, 3.6vw, 40px);
  max-width: 640px;
  font-weight: 500;
}
body.lang-ar .cta-title { font-weight: 400; }
.cta-sub { color: var(--ink-dim); max-width: 480px; font-size: 15.5px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding: 68px 0 48px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 34px; width: 34px; border-radius: 50%; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--ink-dim); font-size: 13.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--bronze); }
.footer-note {
  color: var(--ink-faint);
  font-size: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}
body.lang-ar .footer-note { font-size: 13px; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-hero {
  padding: 150px 0 70px;
  text-align: center;
}
.about-hero-quote {
  font-family: var(--font-display-en);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.4;
  max-width: 780px;
  margin: 0 auto;
  font-weight: 500;
  color: var(--ink);
}
body.lang-ar .about-hero-quote { font-family: var(--font-display-ar); font-weight: 400; line-height: 1.7; font-size: clamp(26px, 4vw, 42px); }

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}
.story-section:nth-child(even) .story-image { order: 2; }
body.lang-ar .story-section:nth-child(even) .story-image { order: 1; }
.story-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
}
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-text {
  font-family: var(--font-display-en);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.55;
  color: var(--ink);
}
body.lang-ar .story-text { font-family: var(--font-display-ar); font-size: clamp(22px, 2.8vw, 30px); line-height: 1.8; }

@media (max-width: 820px) {
  .story-section { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .story-section:nth-child(even) .story-image { order: 0; }
  body.lang-ar .story-section:nth-child(even) .story-image { order: 0; }
}

/* Promise pillars */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.promise-card {
  padding: 34px 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}
.promise-num {
  font-family: var(--font-display-en);
  color: var(--bronze);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}
.promise-title {
  font-family: var(--font-display-en);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ink);
}
body.lang-ar .promise-title { font-family: var(--font-display-ar); font-size: 22px; }
.promise-text { color: var(--ink-dim); font-size: 14.5px; line-height: 1.7; }
body.lang-ar .promise-text { font-size: 15.5px; }

@media (max-width: 820px) {
  .promise-grid { grid-template-columns: 1fr; }
}

/* Features / details grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-item {
  background: var(--bg);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}
body.lang-ar .feature-label { letter-spacing: 0.02em; }
.feature-detail { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }
body.lang-ar .feature-detail { font-size: 15.5px; }

@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MISC
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
