/* ══════════════════════════════════════════
   YOURDIS — SHARED STYLESHEET
   Used by all pages. Page-specific rules live
   in each page's own <style> block.
══════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --crimson: #79002F;
  --crimson-deep: #4C0025;
  --gold: #EAA005;
  --gold-pale: #fdf3da;
  --cream: #FDF6EE;
  --parchment: #F5EDE0;
  --cashback-bg: #F7EFE5;
  --ink: #1a0a0f;
  --muted: #7a5f68;
  --border: rgba(121,0,47,0.11);
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Spacing scale (4/8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Elevation scale */
  --shadow-sm: 0 2px 12px rgba(121,0,47,0.07);
  --shadow-md: 0 8px 28px rgba(121,0,47,0.09);
  --shadow-lg: 0 18px 52px rgba(121,0,47,0.12);
  --shadow-xl: 0 28px 80px rgba(121,0,47,0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); overflow-x: hidden; }
body.ar { font-family: 'Cairo', sans-serif; direction: rtl; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Focus & Motion ─── */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fade-up, .fade-left, .fade-right, .fade-scale, .draw-in { opacity: 1 !important; transform: none !important; }
}

/* ─── Shared Sections ─── */
section { padding: 100px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 48px); font-weight: 900;
  line-height: 1.15; color: var(--ink); margin-bottom: 18px;
}
body.ar .section-title { font-family: 'Cairo', sans-serif; line-height: 1.4; }
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 520px; }

/* ─── Animations ─── */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.fade-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.fade-scale.visible { opacity: 1; transform: scale(1); }
.fade-up-d1 { transition-delay: 0.10s; }
.fade-up-d2 { transition-delay: 0.20s; }
.fade-up-d3 { transition-delay: 0.30s; }
.fade-up-d4 { transition-delay: 0.40s; }

/* ══════════════════════════════════════════
   LEGAL PAGES (privacy, terms)
   Shared by privacy-policy.html and terms-of-service.html
══════════════════════════════════════════ */
.doc-hero { background: var(--cream); padding: 136px 24px 48px; text-align: center; }
.doc-hero-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.doc-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 5vw, 44px); font-weight: 900; color: var(--crimson); margin-bottom: 12px; }
body.ar .doc-hero-title { font-family: 'El Messiri', sans-serif; }
.doc-hero-date { font-size: 13px; color: var(--muted); }
.doc-content { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.doc-intro { background: var(--white); border-radius: 16px; padding: 28px 32px; border: 1.5px solid var(--border); margin-bottom: 48px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.doc-section { margin-bottom: 44px; }
.doc-section:has(+ .doc-section) { padding-bottom: 28px; border-bottom: 1.5px solid var(--border); }
.doc-section-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.doc-section-number { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.doc-section h2 { font-family: 'Playfair Display', serif; font-size: clamp(17px, 3vw, 22px); font-weight: 900; color: var(--crimson); margin: 0; padding: 0; border: none; }
body.ar .doc-section h2 { font-family: 'El Messiri', sans-serif; }
.doc-section p { font-size: 15px; color: var(--ink); margin-bottom: 14px; line-height: 1.8; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-list { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); line-height: 1.75; }
.doc-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 9px; }
.doc-highlight { background: var(--gold-pale); border-radius: 12px; padding: 18px 22px; margin: 18px 0; font-size: 14px; color: var(--ink); line-height: 1.75; border-inline-start: 3px solid var(--gold); }
.doc-warning { background: rgba(121,0,47,0.05); border-radius: 12px; padding: 18px 22px; margin: 18px 0; font-size: 14px; color: var(--ink); line-height: 1.75; border-inline-start: 3px solid var(--crimson); }
.doc-link { color: var(--crimson); }
.doc-link:hover { text-decoration: underline; }
.doc-contact-box { background: var(--white); border-radius: 16px; padding: 28px 32px; border: 1.5px solid var(--border); margin-top: 48px; text-align: center; }
.doc-contact-box p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.doc-contact-box a { font-size: 16px; font-weight: 700; color: var(--crimson); }

/* ══════════════════════════════════════════
   CONTACT PAGE
   Used by contact-us.html
══════════════════════════════════════════ */
.contact-hero { background: var(--cream); padding: 136px 24px 48px; text-align: center; }
.contact-hero-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.contact-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 5vw, 44px); font-weight: 900; color: var(--crimson); margin-bottom: 12px; }
body.ar .contact-hero-title { font-family: 'El Messiri', sans-serif; }
.contact-hero-sub { font-size: 15px; color: var(--muted); max-width: 460px; margin: 0 auto; line-height: 1.7; }
.contact-content { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.contact-intro { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 44px; text-align: center; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1.5px solid var(--border); display: flex; flex-direction: column; gap: 10px; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; }
.contact-card:hover { box-shadow: 0 12px 40px rgba(121,0,47,0.10); transform: translateY(-3px); }
.contact-card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.contact-card-icon svg { width: 22px; height: 22px; color: var(--crimson); }
.contact-card-title { font-size: 16px; font-weight: 700; color: var(--ink); }
body.ar .contact-card-title { font-family: 'Cairo', sans-serif; }
.contact-card-desc { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }
.contact-card-action { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--crimson); margin-top: 4px; }
.contact-card-action svg { width: 14px; height: 14px; }

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

/* ══════════════════════════════════════════
   BLOG PAGE (prototype)
   Used by blog.html
══════════════════════════════════════════ */
.blog-hero { background: var(--cream); padding: 136px 24px 48px; text-align: center; }
.blog-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 5vw, 44px); font-weight: 900; color: var(--crimson); margin-bottom: 12px; }
body.ar .blog-hero-title { font-family: 'El Messiri', sans-serif; }
.blog-hero-sub { font-size: 15px; color: var(--muted); max-width: 460px; margin: 0 auto; line-height: 1.7; }
.blog-content { max-width: 1080px; margin: 0 auto; padding: 56px 24px 80px; }
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: 0 12px 40px rgba(121,0,47,0.10); transform: translateY(-3px); }
.blog-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--gold-pale); display: block; }
.blog-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-category { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.blog-card-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }
body.ar .blog-card-title { font-family: 'Cairo', sans-serif; }
.blog-card-desc { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }
.blog-card-date { font-size: 12px; color: var(--muted); opacity: 0.7; }
.blog-state-msg { text-align: center; color: var(--muted); font-size: 14px; padding: 48px 24px; }
.blog-load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; }
.blog-load-more-wrap[hidden] { display: none; }
.blog-load-more-btn {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 50px;
  padding: 13px 32px; font-size: 14px; font-weight: 700; color: var(--crimson);
  cursor: pointer; transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.blog-load-more-btn:hover:not(:disabled) { background: var(--crimson); color: #fff; }
.blog-load-more-btn:disabled { opacity: 0.6; cursor: default; }
.blog-load-more-error { color: var(--crimson); font-size: 13px; }

@media (max-width: 900px) {
  .blog-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .blog-cards { grid-template-columns: 1fr; }
}
