/* Raseel Store — palette taken from the brand logo (chocolate ink on warm sand) */
:root {
  --cocoa: #473021;
  --cocoa-deep: #2c1b13;
  --cocoa-soft: #6b4a35;
  --caramel: #a0754f;
  --sand: #d5be9e;
  --sand-light: #e8d9c0;
  --cream: #f5ede0;
  --paper: #faf6ef;
  --line: rgba(71, 48, 33, 0.16);
  --shadow: 0 18px 40px -18px rgba(44, 27, 19, 0.45);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Jost", system-ui, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --icon-msg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.36 2 2 6.13 2 11.7c0 2.91 1.19 5.44 3.14 7.17.16.14.26.35.27.57l.05 1.78a.8.8 0 0 0 1.12.71l1.98-.87a.8.8 0 0 1 .53-.04c.91.25 1.87.38 2.91.38 5.64 0 10-4.13 10-9.7S17.64 2 12 2zm6 7.46-2.94 4.66a1.5 1.5 0 0 1-2.17.4l-2.34-1.75a.6.6 0 0 0-.72 0l-3.16 2.4c-.42.32-.97-.18-.69-.63l2.94-4.66a1.5 1.5 0 0 1 2.17-.4l2.34 1.75a.6.6 0 0 0 .72 0l3.16-2.4c.42-.32.97.18.69.63z'/%3E%3C/svg%3E");
}
html[lang="ar"] {
  --f-display: "Amiri", "Cormorant Garamond", serif;
  --f-body: "Tajawal", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cocoa);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; color: var(--cocoa-deep); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--cocoa); color: var(--cream); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }

.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--caramel);
  margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; text-transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--f-body); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--cocoa); color: var(--cream); }
.btn-dark:hover { background: var(--cocoa-deep); }
.btn-ghost { border-color: var(--cocoa); color: var(--cocoa); }
.btn-ghost:hover { background: var(--cocoa); color: var(--cream); }
.btn-light { background: var(--sand-light); color: var(--cocoa-deep); }
.btn-light:hover { background: var(--cream); }
.btn-outline-light { border-color: rgba(232, 217, 192, .55); color: var(--sand-light); }
.btn-outline-light:hover { background: rgba(232, 217, 192, .12); }
.js-messenger::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-msg) center / contain no-repeat;
          mask: var(--icon-msg) center / contain no-repeat;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 246, 239, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand-word { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 24px; letter-spacing: .2em; color: var(--cocoa); white-space: nowrap; }
html[lang="ar"] .brand-word { font-family: "Amiri", serif; font-weight: 700; font-size: 26px; letter-spacing: 0; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--cocoa); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  background: none; border: 1px solid var(--line); color: var(--cocoa);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font: 500 14px/1 "Tajawal", "Jost", sans-serif;
}
.lang-btn:hover { border-color: var(--cocoa); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 10%, var(--sand-light) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 64px 0 88px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 92px); letter-spacing: -.01em; margin-bottom: 22px; }
html[lang="ar"] .hero h1 { font-size: clamp(42px, 5.8vw, 80px); }
.lede { font-size: 18.5px; max-width: 34em; color: var(--cocoa-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-stats { display: flex; gap: 44px; margin: 0; }
.hero-stats div { border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.hero-stats dt { font-family: "Cormorant Garamond", serif; font-size: 40px; line-height: 1; color: var(--cocoa-deep); }
.hero-stats dd { margin: 4px 0 0; font-size: 14px; color: var(--cocoa-soft); }

.hero-art { position: relative; height: min(640px, 72vw); }
.arch { position: absolute; overflow: hidden; border-radius: 999px 999px 18px 18px; box-shadow: var(--shadow); background: var(--sand); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-back { width: 52%; height: 76%; inset-inline-start: 0; top: 4%; opacity: .9; transform: rotate(-3deg); }
html[dir="rtl"] .arch-back { transform: rotate(3deg); }
.arch-front { width: 60%; height: 92%; inset-inline-end: 2%; top: 0; border: 8px solid var(--paper); }
.arch-front img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease), transform 7s linear; transform: scale(1.06); }
.arch-front img.is-on { opacity: 1; transform: scale(1); }
.hero-mark { position: absolute; width: 120px; inset-inline-start: 6%; bottom: 0; opacity: .9; filter: drop-shadow(0 6px 10px rgba(44,27,19,.2)); }

/* Ribbon */
.ribbon { background: var(--cocoa); color: var(--sand-light); overflow: hidden; padding: 14px 0; }
.ribbon-track { display: flex; gap: 48px; width: max-content; animation: ribbon 60s linear infinite; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 21px; white-space: nowrap; }
.ribbon-track span::after { content: "✦"; font-style: normal; font-size: 12px; margin-inline-start: 48px; color: var(--caramel); vertical-align: middle; }
html[dir="rtl"] .ribbon-track { animation-name: ribbon-rtl; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@keyframes ribbon-rtl { to { transform: translateX(50%); } }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 58px); }
.section-sub { color: var(--cocoa-soft); }

/* Filters & grid */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--cocoa);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font: 400 15px/1.2 var(--f-body);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--cocoa); }
.chip.is-active { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 22px; }
.card { animation: cardIn .5s var(--ease) both; }
.card[hidden] { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card-btn { all: unset; display: block; width: 100%; cursor: pointer; }
.card-btn:focus-visible { outline: 2px solid var(--caramel); outline-offset: 4px; border-radius: var(--radius); }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--sand-light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-btn:hover .card-media img { transform: scale(1.05); }
.card-code {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(250, 246, 239, .9); color: var(--cocoa); font-size: 12px; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; font-family: "Jost", sans-serif;
}
.card-view {
  position: absolute; inset-inline: 12px; bottom: 12px; text-align: center;
  background: var(--cocoa); color: var(--cream); padding: 10px; border-radius: 999px; font-size: 14px;
  opacity: 0; transform: translateY(8px); transition: all .35s var(--ease);
}
.card-btn:hover .card-view, .card-btn:focus-visible .card-view { opacity: 1; transform: none; }
.card-body { padding: 14px 4px 0; }
.card-name { font-family: var(--f-display); font-size: 22px; font-weight: 500; color: var(--cocoa-deep); line-height: 1.2; margin: 0; }
html[lang="ar"] .card-name { font-weight: 700; font-size: 20px; }
.card-alt { font-size: 14px; color: var(--caramel); margin: 2px 0 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; }
.step-num { display: block; font-family: "Cormorant Garamond", serif; font-size: 52px; line-height: 1; color: var(--sand); margin-bottom: 18px; }
.step h3 { font-size: 26px; }
.step p { color: var(--cocoa-soft); margin: 0; }

/* About */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-art { position: relative; aspect-ratio: 1 / 1.05; }
.about-art img { position: absolute; width: 62%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 16px 16px; box-shadow: var(--shadow); }
.about-art img:first-child { inset-inline-start: 0; top: 0; }
.about-art img:last-child { inset-inline-end: 0; bottom: 0; border: 8px solid var(--paper); }
.about-logo { width: 120px; margin-bottom: 26px; }
.about-copy h2 { font-size: clamp(32px, 3.8vw, 48px); }
.about-copy > p { color: var(--cocoa-soft); }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.features li { display: grid; gap: 2px; padding-inline-start: 22px; position: relative; }
.features li::before { content: "✦"; position: absolute; inset-inline-start: 0; top: 2px; color: var(--caramel); font-size: 12px; }
.features strong { font-weight: 500; color: var(--cocoa-deep); }
.features span { color: var(--cocoa-soft); font-size: 15.5px; }

/* Contact */
.contact { background: radial-gradient(90% 120% at 50% 0%, var(--cocoa-soft) 0%, var(--cocoa-deep) 70%); color: var(--sand-light); text-align: center; }
.contact-inner { max-width: 640px; }
.contact-mark { width: 90px; margin: 0 auto 22px; }
.contact h2 { color: var(--cream); font-size: clamp(36px, 4.6vw, 56px); }
.contact p { color: rgba(232, 217, 192, .82); }
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 36px 0; font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; }
.footer-brand strong { display: block; font-weight: 500; }
.footer-brand span { color: var(--cocoa-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copy { margin: 0; width: 100%; color: var(--cocoa-soft); font-size: 13.5px; }

/* Quick view */
.qv {
  width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--cocoa);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); overflow: auto;
}
.qv::backdrop { background: rgba(44, 27, 19, .62); backdrop-filter: blur(4px); }
.qv[open] { animation: qvIn .35s var(--ease); }
@keyframes qvIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.qv-body { display: grid; grid-template-columns: 1.05fr 1fr; }
.qv-media { position: relative; background: var(--sand-light); }
.qv-media img { width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: cover; aspect-ratio: 3 / 4; }
.qv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(250, 246, 239, .9); color: var(--cocoa); font-size: 28px; line-height: 1;
}
.qv-prev { inset-inline-start: 12px; }
.qv-next { inset-inline-end: 12px; }
html[dir="rtl"] .qv-nav { transform: translateY(-50%) scaleX(-1); }
.qv-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cocoa); color: var(--cream); font-size: 24px; line-height: 1;
}
.qv-info { padding: 52px 40px 40px; display: flex; flex-direction: column; }
.qv-code { font-size: 13px; letter-spacing: .14em; color: var(--caramel); margin-bottom: 8px; font-family: "Jost", sans-serif; }
.qv-name { font-size: 40px; margin-bottom: 4px; }
.qv-alt { color: var(--caramel); font-size: 18px; margin-bottom: 18px; }
.qv-desc { color: var(--cocoa-soft); }
.qv-points { padding: 0; margin: 6px 0 30px; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.qv-points li { padding-inline-start: 20px; position: relative; }
.qv-points li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--caramel); font-size: 11px; top: 4px; }
.qv-info .btn { margin-top: auto; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); }
.legal h2 { font-size: 28px; margin-top: 1.6em; }
.legal p, .legal li { color: var(--cocoa-soft); }
.legal .updated { font-size: 14px; color: var(--caramel); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 20px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0 64px; gap: 36px; }
  .hero-art { height: 112vw; max-height: 560px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .qv-body { grid-template-columns: 1fr; }
  .qv-media img { max-height: 62dvh; }
  .qv-info { padding: 28px 24px 28px; }
  .qv-name { font-size: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card-name { font-size: 18px; }
  .card-view { display: none; }
  .brand-word { font-size: 17px; letter-spacing: .1em; }
  html[lang="ar"] .brand-word { font-size: 21px; letter-spacing: 0; }
  .brand img { width: 36px; }
  .header-actions .btn { display: none; }
  .hero-stats { gap: 28px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .step { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
