/* ============================================================
   BMS Client PWA — Askar Group · Wedding Planner design system
   Brand identity: gold leaf on onyx, ivory & soft champagne.
   Romantic serif display + script accent, refined motion.
   Every page shares these tokens, so the whole funnel lifts.
   ============================================================ */

:root {
  /* Core ink */
  --ink:        #221c18;
  --ink-soft:   #6a5f57;

  /* Onyx — the brand's black (gold sits on it) */
  --onyx:       #1c1714;
  --onyx-deep:  #100c0a;
  --onyx-soft:  #3a322b;

  /* Gold leaf — the Askar accent */
  --gold:       #c5a44f;
  --gold-deep:  #a07c33;
  --gold-soft:  #e7d6ab;

  /* Warm neutrals */
  --cream:      #fbf6ef;
  --cream-2:    #f4ece0;
  --blush:      #f6efe5;
  --ivory:      #fffdf9;
  --line:       #ece1d0;
  --line-soft:  #f0e8da;
  --white:      #ffffff;

  --danger:     #b4533f;
  --success:    #5a7d5a;

  --shadow:     0 28px 70px rgba(28, 23, 20, 0.16);
  --shadow-sm:  0 10px 30px rgba(28, 23, 20, 0.09);
  --shadow-gold:0 14px 36px rgba(160, 124, 51, 0.24);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-script:  'Pinyon Script', 'Cormorant Garamond', cursive;
  --font-body:    'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-ar:      'Tajawal', 'Segoe UI', system-ui, sans-serif;

  --radius:   18px;
  --radius-sm:12px;
  --maxw:     1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir='rtl'] body { font-family: var(--font-ar); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.2px;
  margin: 0 0 0.4em;
  color: var(--ink);
}
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3, [dir='rtl'] .display {
  font-family: var(--font-ar);
  font-weight: 700;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Eyebrow + romantic script accent --------------------------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
}
[dir='rtl'] .eyebrow { letter-spacing: 1px; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--onyx-soft);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: .5px;
}
[dir='rtl'] .script { font-family: var(--font-ar); font-weight: 500; font-size: 1.25rem; }

.muted { color: var(--ink-soft); }
.wine  { color: var(--onyx); }

/* Ornaments / dividers -------------------------------------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); font-size: 1rem; margin: 0;
}
.ornament::before, .ornament::after {
  content: ''; height: 1px; width: clamp(40px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent); }
.ornament .glyph { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.5px; padding: 15px 34px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  background: var(--onyx); color: var(--ivory);
}
[dir='rtl'] .btn { font-family: var(--font-ar); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft) -20%, var(--gold) 35%, var(--gold-deep) 120%);
  color: #3a2c12; box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 18px 44px rgba(160,124,51,.32); }
.btn--onyx { background: linear-gradient(135deg, var(--onyx-soft), var(--onyx) 60%, var(--onyx-deep)); color: #fff; }
.btn--ghost { background: transparent; color: var(--onyx); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); background: rgba(196,163,90,.06); }
.btn--lg { padding: 18px 44px; font-size: 1.02rem; }
.btn--sm { padding: 10px 20px; font-size: .88rem; }

/* Cards / fields -------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 4px rgba(196,163,90,.14);
}

/* Choice chips ---------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-weight: 500; color: var(--ink);
  transition: all .2s ease; user-select: none;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip--on {
  background: linear-gradient(135deg, var(--onyx-soft), var(--onyx));
  color: var(--gold-soft); border-color: var(--onyx);
  box-shadow: 0 8px 20px rgba(28,23,20,.28);
}

/* Progress -------------------------------------------------- */
.steps { display: flex; gap: 8px; align-items: center; }
.steps i { width: 28px; height: 3px; border-radius: 3px; background: var(--line); display: inline-block; transition: background .3s; }
.steps i.on { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }

/* Utilities ------------------------------------------------- */
.row { display: flex; gap: 24px; flex-wrap: wrap; }
.grow { flex: 1 1 240px; }
.center { text-align: center; }
.fade-in { animation: fadeIn .6s cubic-bezier(.2,.7,.2,1) both; }
.fade-up { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Scroll reveal (appReveal directive) ----------------------- */
.reveal { opacity: 0; transform: translateY(28px); will-change: opacity, transform;
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal--in { opacity: 1; transform: none; }

/* Hero ken-burns -------------------------------------------- */
.kenburns { animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Gold shimmer for ornament dividers ------------------------ */
.ornament::before, .ornament::after { background-size: 200% 100%; animation: shimmer 6s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Accessibility: respect reduced-motion --------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

::selection { background: var(--gold-soft); color: var(--onyx-deep); }
