/* Hadeya — company site stylesheet.
   Palette mirrors app/src/ui/tokens/colors.ts (the app's single source of color truth):
   ivory #FBF7EF · paper #FFFDF8 · ink #17140F · green #084F43 · green-deep #063A32 ·
   gold #D49A2A · on-gold #402C04 · deep-gold text #8A5F08 · moonlight #EFE3C0 ·
   wrap Signature cream #F3E9D2 × deep-gold ribbon #B98A36.
   Gold appears ONLY on the one primary action per page (gold role rule).
   No pure #FFFFFF surfaces. No external fonts, no scripts, no tracking.
   Logical properties throughout so the same sheet serves LTR and RTL. */

:root {
  --bg: #fbf7ef;          /* ivory  — app `background` (light) */
  --surface: #fffdf8;     /* paper  — app `surface` */
  --sunken: #f3ecdd;
  --ink: #17140f;
  --muted: #6a5f51;
  --line: #eadfcd;
  --line-strong: #dbcbaf;
  --green: #084f43;
  --green-deep: #063a32;
  --green-soft: #d9f2df;
  --gold: #d49a2a;
  --gold-pressed: #b98a36;
  --on-gold: #402c04;
  --gold-text: #8a5f08;   /* small gold-colored text on light fills */
  --moonlight: #efe3c0;   /* reveal-only pale cream-gold — content, never the action gold */
  --wrap-box: #f3e9d2;    /* wrap Signature: cream box */
  --wrap-ribbon: #b98a36; /* wrap Signature: deep-gold ribbon */
  --header-veil: rgba(251, 247, 239, 0.88);
  --stage: var(--green);
  --stage-deep: var(--green-deep);
  --on-stage: #fbf7ef;
  --on-stage-soft: rgba(251, 247, 239, 0.84);
  --on-stage-faint: rgba(251, 247, 239, 0.66);
  --stage-line: rgba(251, 247, 239, 0.16);
  --shadow-soft: 0 1px 2px rgba(23, 20, 15, 0.04), 0 12px 32px rgba(23, 20, 15, 0.06);
  --shadow-stage: 0 24px 60px rgba(6, 58, 50, 0.22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans Arabic", "Segoe UI Arabic", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1e1b16;
    --sunken: #100e0c;
    --ink: #fbf7ef;
    --muted: #b7ac9a;
    --line: #322c22;
    --line-strong: #453d30;
    --green: #5bc2a2;
    --green-deep: #084f43;
    --green-soft: #163229;
    --gold: #e3b24c;
    --gold-pressed: #c99b36;
    --on-gold: #2a1d04;
    --gold-text: #e3b24c;
    --moonlight: #f0e6c8;
    --wrap-box: #efe3c0;
    --wrap-ribbon: #b98a36;
    --header-veil: rgba(20, 18, 16, 0.88);
    --stage: #084f43;        /* the stage keeps the deep brand green in the dark */
    --stage-deep: #063a32;
    --on-stage: #fbf7ef;
    --on-stage-soft: rgba(251, 247, 239, 0.84);
    --on-stage-faint: rgba(251, 247, 239, 0.66);
    --stage-line: rgba(251, 247, 239, 0.16);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25);
    --shadow-stage: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html {
  height: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green-soft); color: var(--ink); }

a { color: var(--green); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-veil);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand .ar-mark {
  color: var(--green);
  font-weight: 600;
}

nav.site-nav {
  display: flex;
  gap: 22px;
  align-items: baseline;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 180ms ease;
}

nav.site-nav a:hover,
nav.site-nav a:focus-visible {
  color: var(--green);
}

nav.site-nav a.lang {
  color: var(--green);
  font-weight: 600;
}

/* ---------- document layout (legal pages) ---------- */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(30px, 4.5vw, 40px); margin: 0 0 14px; }
h2 { font-size: 23px; margin: 46px 0 10px; }
h3 { font-size: 18px; margin: 28px 0 8px; }

p { margin: 0 0 14px; }

.lede {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 60ch;
}

ul, ol { padding-inline-start: 22px; margin: 0 0 14px; }
li { margin-bottom: 8px; }
li::marker { color: var(--gold-text); }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.doc-meta {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  margin: 24px 0;
  box-shadow: var(--shadow-soft);
}

.card h2, .card h3 { margin-top: 0; }

/* Pending-detail placeholder — template voice, visibly unfinished on purpose. */
.placeholder {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--sunken);
  color: var(--muted);
  font-size: 15px;
  padding: 16px 20px;
  margin: 16px 0;
}

.contact-line {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

[dir="rtl"] .contact-line { text-align: right; }

/* The single gold action per page. */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  margin: 6px 0 10px;
  box-shadow: 0 1px 2px rgba(64, 44, 4, 0.18), 0 8px 24px rgba(212, 154, 42, 0.28);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-pressed);
  box-shadow: 0 1px 2px rgba(64, 44, 4, 0.18), 0 4px 14px rgba(212, 154, 42, 0.24);
}

/* ---------- home page ---------- */

main.home {
  max-width: none;
  padding: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* hero */

.hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 16px;
}

[dir="rtl"] .eyebrow { letter-spacing: 0.04em; }

.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.hero .lede {
  font-size: clamp(18px, 2vw, 20px);
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-cta .btn-gold { margin: 0; }

.soon-note {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.cities-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  margin: 18px 0 0;
}

.city-chip {
  display: inline-block;
  background: var(--sunken);
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 14px;
}

/* the gift stage — deep-green panel, wrapped-gift mark as the subject */

.hero-stage {
  background: radial-gradient(120% 100% at 50% 0%, var(--stage) 0%, var(--stage-deep) 100%);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 52px) 32px;
  text-align: center;
  box-shadow: var(--shadow-stage);
}

.hero-stage svg {
  display: block;
  width: min(240px, 60%);
  height: auto;
  margin: 0 auto 22px;
}

.stage-caption {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--moonlight);
  margin: 0 0 6px;
}

.stage-sub {
  font-size: 14.5px;
  color: var(--on-stage-faint);
  margin: 0;
}

/* sections */

.section { padding-block: clamp(36px, 5vw, 56px); }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3vw, 32px); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--sunken);
  color: var(--green);
  font-family: var(--serif);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 { margin: 0 0 8px; font-size: 18.5px; }
.step-card p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* promises — deep-green panel */

.promises {
  background: radial-gradient(140% 120% at 50% -20%, var(--stage) 0%, var(--stage-deep) 100%);
  border-radius: 28px;
  padding: clamp(32px, 4.5vw, 56px);
  color: var(--on-stage);
  box-shadow: var(--shadow-stage);
}

.promises .section-head { margin-bottom: 28px; }
.promises .section-head h2 { color: var(--moonlight); }
.promises .section-head p { color: var(--on-stage-soft); }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.promise h3 {
  color: var(--moonlight);
  font-size: 19px;
  margin: 0 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--stage-line);
}

.promise p { margin: 0; font-size: 15.5px; color: var(--on-stage-soft); }

/* the app */

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.app-card h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 30px); }
.app-card p { color: var(--muted); margin: 0 0 12px; }
.app-card p:last-child { margin-bottom: 0; }

.app-facts { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(24px, 3vw, 40px); }

.app-facts dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 4px;
}

[dir="rtl"] .app-facts dt { letter-spacing: 0.03em; }

.app-facts dd {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--ink);
}

.app-facts dd:last-child { margin-bottom: 0; }

/* contact close */

.contact-close {
  text-align: center;
  padding-block: clamp(40px, 6vw, 72px);
}

.contact-close h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 30px); }
.contact-close p { color: var(--muted); margin: 0 0 6px; }

.contact-close .mail-link {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- 404 ---------- */

main.notfound {
  text-align: center;
  padding-block: clamp(72px, 12vw, 140px);
}

main.notfound .lede { margin-inline: auto; }

/* ---------- footer ---------- */

footer {
  background: var(--stage-deep);
  color: var(--on-stage-faint);
  margin-top: auto; /* short pages: footer sits at the viewport bottom */
}

.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 44px;
  font-size: 14.5px;
}

.foot-inner nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--stage-line);
}

.foot-inner a {
  color: var(--on-stage);
  text-decoration: none;
  transition: color 180ms ease;
}

.foot-inner a:hover,
.foot-inner a:focus-visible { color: var(--moonlight); outline-color: var(--moonlight); }

.legal-pending { max-width: 640px; margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .hero-stage svg { width: min(180px, 48%); margin-bottom: 16px; }
  .app-card { grid-template-columns: 1fr; }
  .app-facts {
    border-inline-start: none;
    border-top: 1px solid var(--line);
    padding-inline-start: 0;
    padding-top: 22px;
  }
}
