:root {
  --bg: #F2E3CA;
  --bg-alt: #E9D7B7;
  --card: #FBF5EA;
  --ink: #2E1B10;
  --ink-soft: #6B503A;
  --gold: #B8863B;
  --gold-deep: #8C6423;
  --gold-light: #D9B978;
  --line: rgba(46, 27, 16, 0.14);
  --cream: #FBF5EA;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: 'Markazi Text', serif; font-weight: 700; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--ink); }

.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--gold-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 48px;
  font-size: 13px;
}
.topbar__text { color: var(--cream); opacity: .85; }
.topbar__link {
  color: var(--gold-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar__link:hover { color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 48px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 24px -20px rgba(46,27,16,.4); }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 56px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__link { position: relative; color: var(--ink); font-weight: 500; font-size: 15px; padding-bottom: 5px; }
.nav__link::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__cta-mobile { display: none; }

.header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(184,134,59,.65); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { color: var(--cream); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(46,27,16,.5); }
.btn--ghost { background: transparent; color: var(--gold-deep); border: 1px solid var(--gold); padding: 7px 14px; font-size: 12.5px; }
.btn--ghost:hover { background: var(--gold); color: var(--ink); }
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--sm { padding: 7px 14px; font-size: 12.5px; }

.btn-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.center { display: flex; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 48px; background: var(--bg); overflow: hidden; }
.hero__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(46,27,16,.045) 0px, rgba(46,27,16,.045) 1px, transparent 1px, transparent 15px);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.hero__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 64px;
  max-width: 1280px; margin: 0 auto; position: relative; z-index: 1;
}
.hero__copy { flex: 1 1 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-deep);
  font-size: 13px; font-weight: 700;
}

.hero h1 { font-size: 54px; line-height: 1.28; color: var(--ink); max-width: 560px; }
.lead { font-size: 17.5px; line-height: 1.9; color: var(--ink-soft); max-width: 480px; }

.trust-list {
  display: flex; gap: 30px; margin-top: 6px; padding-top: 26px;
  border-top: 1px solid var(--line); flex-wrap: wrap; width: 100%;
}
.trust-list li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13.5px; font-weight: 500; }
.trust-list li svg { color: var(--gold-deep); flex-shrink: 0; }

.hero__visual { flex: 1 1 340px; display: flex; justify-content: center; }
.hero__logo {
  width: 320px; max-width: 100%; height: auto;
  box-shadow: 0 30px 60px -28px rgba(46,27,16,.45);
}

/* ---------- Sections ---------- */
.section { padding: 96px 48px; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section__head {
  max-width: 680px; margin: 0 auto 56px; text-align: center;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.eyebrow { color: var(--gold-deep); font-weight: 700; font-size: 13.5px; letter-spacing: 1px; }
.section__head h2 { font-size: 38px; color: var(--ink); }
.section__head p { font-size: 16px; color: var(--ink-soft); line-height: 1.9; }

/* ---------- Categories ---------- */
.categories-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 560px; margin: 0 auto; }
.cat-card {
  background: var(--card); border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 40px -30px rgba(46,27,16,.35);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(46,27,16,.45); }
.cat-card__visual {
  height: 220px; background: var(--ink); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; color: var(--gold-light);
}
.cat-card__visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(217,185,120,.08) 0px, rgba(217,185,120,.08) 1px, transparent 1px, transparent 15px);
}
.cat-card__visual svg { position: relative; }
.cat-card__body { padding: 34px; }
.cat-card__body h3 { font-size: 27px; color: var(--ink); margin-bottom: 12px; }
.cat-card__body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; margin-bottom: 22px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-deep); font-weight: 700; font-size: 14.5px; transition: gap .2s ease; }
.text-link:hover { gap: 10px; }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 720px; margin: 0 auto 48px; }
.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -24px rgba(46,27,16,.3); }
.prod-card__visual { height: 180px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.prod-card__body { padding: 20px; }
.prod-card__tag { color: var(--gold-deep); font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.prod-card__body h4 { font-size: 17.5px; color: var(--ink); margin: 8px 0 6px; }
.prod-card__body p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 16px; }
.prod-card__row { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 13.5px; color: var(--ink); font-weight: 700; }

/* ---------- Story ---------- */
.story { display: flex; align-items: center; gap: 64px; max-width: 1200px; margin: 0 auto; }
.story__visual { flex: 1 1 380px; display: flex; justify-content: center; }
.story__plate {
  position: relative; width: 340px; height: 340px; max-width: 100%;
  display: flex; align-items: center; justify-content: center; border-radius: 32px;
  background: var(--card); box-shadow: 0 30px 60px -34px rgba(46,27,16,.4); color: var(--ink);
}
.story__plate svg { transform: scale(2.1); }
.story__copy { flex: 1 1 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.story__copy h2 { font-size: 36px; color: var(--ink); line-height: 1.3; }
.story__copy > p { font-size: 16px; color: var(--ink-soft); line-height: 1.95; max-width: 480px; }

.feature-list { display: flex; flex-direction: column; gap: 16px; width: 100%; margin-top: 8px; }
.feature-list li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 15px; font-weight: 500; }
.feature-list__icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--card);
  display: flex; align-items: center; justify-content: center; color: var(--gold-deep); flex-shrink: 0;
}

/* ---------- CTA banner ---------- */
.cta { position: relative; padding: 88px 48px; background: var(--ink); overflow: hidden; }
.cta__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(217,185,120,.07) 0px, rgba(217,185,120,.07) 1px, transparent 1px, transparent 16px);
}
.cta__inner {
  position: relative; max-width: 640px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cta__spark { color: var(--gold); }
.cta__inner h2 { font-size: 38px; color: var(--cream); }
.cta__inner p { font-size: 16px; color: var(--gold-light); line-height: 1.9; max-width: 460px; }
.cta__inner .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); padding: 68px 48px 26px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto 44px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo { height: 100px; width: auto; }
.footer-tagline { font-size: 14px; color: var(--ink-soft); line-height: 1.8; max-width: 260px; }

.social-links { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.social-ic {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-ic:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { font-family: 'Tajawal', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.footer-col a, .footer-col .muted { color: var(--ink-soft); font-size: 14px; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--ink-soft);
}
.footer-bottom a { font-weight: 700; color: var(--gold-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: 100%; right: 0; left: 0; background: var(--bg);
    padding: 24px 48px 32px; border-bottom: 1px solid var(--line);
  }
  .nav__cta-mobile { display: inline-flex; }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }

  .hero__inner { flex-direction: column; text-align: center; }
  .hero__copy { align-items: center; }
  .btn-row, .trust-list { justify-content: center; }

  .story { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .topbar { display: none; }
  .site-header, .section, .footer-bottom, .footer-grid, .hero, .cta { padding-left: 22px; padding-right: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .trust-list { gap: 16px; }
  .hero h1 { font-size: 32px; }
  .section__head h2, .cta__inner h2 { font-size: 26px; }
  .hero__logo { width: 220px; }
}
