/* Aada (قعدة) design system — warm café identity.
   Palette: Espresso Ink #2E2014 · Qahwa Orange #E8622C · Cream #F3EBDC · Paper #FBF5E9.
   Type: Baloo Bhaijaan 2 (display, covers Arabic + Latin) + Rubik (UI/body).
   The ع is always the orange accent; Latin letters one single ink color. */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@500;600;700;800&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  /* canvas */
  --bg: #FBF5E9;          /* Paper */
  --bg-2: #F3EBDC;        /* Cream — alt sections */
  --surface: #FFFFFF;
  --ink: #2E2014;         /* Espresso Ink */
  --sub: #6B5B47;         /* warm muted */
  --border: #E7DAC4;

  /* brand — Qahwa Orange is the primary highlight */
  --brand: #E8622C;
  --brand-deep: #C74E1E;
  --brand-ink: #2E2014;   /* Espresso — dark surfaces */
  --brand-soft: #FBE7DA;  /* orange wash */
  --cream: #F3EBDC;       /* text on dark surfaces */

  /* accent */
  --accent: #B4531F;      /* contrast-safe orange for small text / links */
  --accent-2: #E8622C;    /* Qahwa Orange for the ع + large display emphasis */
  --accent-soft: #FBE7DA;

  /* semantic */
  --red: #C0392B;
  --green: #2F8F4E;

  --font-display: 'Baloo Bhaijaan 2', 'system-ui', sans-serif;
  --font-body: 'Rubik', 'Baloo Bhaijaan 2', system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(46, 32, 20, .05), 0 12px 32px -12px rgba(46, 32, 20, .18);
  --shadow-lift: 0 2px 4px rgba(46, 32, 20, .06), 0 22px 48px -16px rgba(46, 32, 20, .26);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }
em { font-style: normal; }
::selection { background: var(--brand); color: #fff; }

/* ---- Aada wordmark (live text: a + orange ع + da) ---- */
.wordmark {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); display: inline-flex; align-items: baseline; line-height: 1;
  user-select: none;
}
.wordmark .ain { color: var(--accent-2); margin: 0 -.01em; }
.wordmark .tail { letter-spacing: -.05em; }
.wordmark.reverse { color: var(--cream); }
.wordmark.reverse .ain { color: var(--accent-2); }

/* Buttons — .btn-gold kept as the primary class name (now Qahwa Orange) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; border: none; letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--brand); color: #fff; }
.btn-gold:hover { background: var(--brand-deep); box-shadow: 0 10px 28px -8px rgba(232, 98, 44, .5); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 13.5px; color: var(--sub); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--ink); padding: 12px 14px; min-height: 50px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232, 98, 44, .16);
}
.err { color: var(--red); font-size: 14px; min-height: 20px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--brand-ink); color: var(--cream); font-weight: 500;
  padding: 13px 24px; border-radius: 999px; box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 1000;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); color: #fff; }

:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
