/* JAZZ — site styles.
   Tokens first: change a colour here and the whole page follows.
   The palette is "Autumn, with a touch of dark wine" — direction C, chosen by
   Rafat on 22 October 2026. Retuned the same day after Yasmin's look at the
   site: the burgundy leaned to fuchsia, and she wanted it a dark wine
   (نبيتي قاتم) with every other colour set around it — strong colours, and
   warm autumn ones. docs/brand.md lists every colour with its job and which
   text may sit on which ground. The token names are older than the palette
   (brass, sage, berry…): each now holds the colour noted beside it. */
:root {
  --cream: #F4E9D8;      /* warm parchment — the page */
  --cream-2: #EADCC6;    /* a shade deeper — footer, photo wells */
  --paper: #FBF5EC;      /* the lightest — cards and panels */
  --ink: #2A1D17;        /* dark chocolate — text, dark details */
  --ink-2: #6B5547;      /* warm brown-grey — small and secondary text */
  --brass: #A9741C;      /* deep ochre — dashed borders, underlines */
  --brass-2: #D99A2B;    /* ochre-mustard — highlights, step numbers, draft badges */
  --terracotta: #B0441F; /* burnt rust — every order button, the accent word */
  --sage: #5F6B2A;       /* deep olive — "ready" badge, outline buttons */
  --berry: #5A1C1F;      /* dark wine — the touch: "out" badge, story, hover */
  --logo-brown: #8C5F35; /* the lettering of the logo, measured off the picture — the name beside it */
  --line: rgba(42, 29, 23, .14);
  --shadow: 0 10px 30px rgba(42, 29, 23, .12);
  --radius: 18px;
  --wrap: 1120px;
  --font-body: 'Almarai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'El Messiri', 'Almarai', sans-serif;
  --font-mark: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.is-empty { display: none !important; }

/* ---- header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 233, 216,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; }
/* The logo Rafat chose (22 October 2026), cut out of its background by
   `npm run brand` — not rounded here: the lettering pokes out of the ring at
   its corners, and a round mask would clip it. */
.brand-logo { width: 52px; height: 52px; }
/* The name beside it in the logo's own brown and an upright serif, so the
   two read as one — the lettering inside the emblem is too small up here. */
.brand-word {
  font-family: var(--font-mark); font-style: normal; font-weight: 600;
  font-size: 28px; letter-spacing: .04em; direction: ltr; line-height: 1;
  color: var(--logo-brown);
}
.nav { display: flex; gap: 22px; font-weight: 700; }
.nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s; }
.nav a:hover { border-color: var(--brass); }
.nav { margin-inline-end: 8px; }
.nav-toggle { display: none; }

/* The language button: names the language it switches TO ("EN" / "عربي"). */
.lang-toggle {
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 12px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  font: 800 14px/1 var(--font-body); cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-toggle:hover { background: var(--ink); color: var(--cream); }

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font: 800 16px/1.2 var(--font-body);
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
/* Rust for every "order / ask" action, dark wine under the finger or the
   mouse — one of the places the wine touch lives. White on rust is 5.7:1,
   on wine 13:1. */
.btn-primary { background: var(--terracotta); color: #FFFFFF; box-shadow: 0 8px 20px rgba(176, 68, 31, .25); }
.btn-primary:hover { background: var(--berry); }
.btn-ghost { border-color: var(--sage); color: var(--ink); background: transparent; }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* ---- hero ------------------------------------------------------------ */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 7vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 700; color: var(--terracotta); margin-bottom: 12px; }
.hero h1 { font-size: clamp(42px, 7vw, 78px); font-weight: 700; letter-spacing: -.01em; }
.hero h1 em {
  font-style: normal; color: var(--terracotta);
  background: linear-gradient(to top, var(--brass-2) 0 .28em, transparent .28em);
  padding-inline: .08em; border-radius: 6px;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 50ch; margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  color: var(--ink-2); font-size: 15px;
}
.hero-facts strong { color: var(--ink); font-size: 18px; margin-inline-end: 4px; }

/* The face of the page: the logo on a knitted blanket (Rafat, 22 October 2026). */
.hero-art { width: 100%; max-width: 520px; margin-inline: auto; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }

/* ---- sections -------------------------------------------------------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
/* The header is sticky, so a nav link that jumps to a section must land
   below it, not under it — otherwise the heading is the first thing hidden. */
section, footer { scroll-margin-top: 76px; }
.section-head { max-width: 60ch; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--ink-2); margin-top: 8px; font-size: 17px; }

/* ---- products -------------------------------------------------------- */
.products { background: var(--paper); border-block: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* 4:5, the shape of a phone photo held upright — Jasmine's photos are
   portrait or square, and a wide box would crop away the bag. */
.swatch { position: relative; aspect-ratio: 4 / 5; background: var(--cream-2); display: grid; place-items: center; padding: 22px; }
.swatch svg { width: 100%; height: 100%; max-width: 170px; filter: drop-shadow(0 8px 14px rgba(42, 29, 23,.14)); }
.swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  /* White on all three grounds (chocolate, olive, wine): 5.8:1 or more. */
  background: var(--ink); color: #FFFFFF;
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.is-ready .badge { background: var(--sage); }
/* An "out" piece keeps its photo at full colour: these pieces ARE the
   portfolio, and nearly the whole catalogue is "out" — dimming them would
   grey out the shop. The badge alone says it. */
.is-out .badge { background: var(--berry); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 20px; }
.desc { color: var(--ink-2); font-size: 14.5px; flex: 1; }
.card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 800; font-size: 18px; }
.meta { font-size: 13px; color: var(--ink-2); }
.material { font-size: 13px; font-weight: 700; color: var(--ink-2); }
/* The last card, "a piece made your way": wine ground, the logo in a ring of
   dots like its own, and an ochre question mark under it. (On the logo's
   corner, the first try, it hid the J of the lettering.) */
.is-custom .swatch { background: var(--berry); }
.is-custom .badge { background: var(--sage); }
.swatch .custom-ring {
  position: absolute; inset: 8%; width: auto; height: auto; max-width: none;
  margin: auto; fill: var(--cream); opacity: .38; filter: none;
}
.custom-art { position: relative; width: min(64%, 200px); display: flex; flex-direction: column; align-items: center; }
.swatch .custom-art img {
  position: static; display: block; width: 100%; height: auto; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3));
}
.custom-mark {
  margin-top: -2%; width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brass-2); color: var(--ink);
  font: 700 clamp(26px, 2.6vw, 36px)/1 var(--font-head);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.note { margin-top: 22px; color: var(--ink-2); font-size: 14px; text-align: center; }

/* ---- how to order ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brass-2); color: var(--ink);
  font: 700 20px/1 var(--font-head); margin-bottom: 14px;
}
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--ink-2); }

/* ---- story ----------------------------------------------------------- */
/* The one dark section is dark wine — the touch Rafat asked for, in the
   shade Yasmin chose — with the heading in ochre (5.3:1) and the text in
   cream (10.8:1). */
.story { background: var(--berry); color: var(--cream); }
.story .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.story h2 { font-size: clamp(28px, 4vw, 40px); color: var(--brass-2); margin-bottom: 14px; }
.story p { color: rgba(244, 233, 216,.9); font-size: 17px; }
.story p + p { margin-top: 12px; }
.draft {
  display: inline-block; font-size: 12px; font-weight: 800;
  background: var(--brass-2); color: var(--ink);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
}
.story-art { max-width: 340px; margin-inline: auto; width: 100%; transform: rotate(3deg); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.story-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 6px solid var(--cream); }

/* ---- custom orders --------------------------------------------------- */
.custom .panel {
  background: var(--paper); border: 2px dashed var(--brass); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.custom h2 { font-size: clamp(26px, 3.5vw, 34px); }
.custom p { margin-top: 6px; color: var(--ink-2); max-width: 56ch; }

/* ---- got a question? ---------------------------------------------------- */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact .section-head { margin-bottom: 24px; }
.hours { font-weight: 700; color: var(--ink) !important; }
.phones {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.phone {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.phone-label { font-size: 13px; font-weight: 800; color: var(--terracotta); }
/* dir="ltr" keeps "010 1234 5678" in order inside Arabic text; flex-start
   then sits it at the reading start — the right on the Arabic page. */
.phone-number { align-self: flex-start; font: 800 24px/1.2 var(--font-body); letter-spacing: .02em; }
.phone-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- footer ---------------------------------------------------------- */
.site-footer { background: var(--cream-2); padding: 40px 0 28px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink); transition: background .15s, color .15s; }
.social a:hover { background: var(--ink); color: var(--cream); }
.copy { width: 100%; color: var(--ink-2); font-size: 13px; }

/* Phones: one sticky "order" bar at the bottom — the thing a shop page is for. */
.mobile-cta { display: none; }

/* ---- phones ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid, .story .wrap { grid-template-columns: 1fr; }
  /* On a phone the logo comes first — the face, then the words. */
  .hero-art { order: -1; max-width: 320px; margin: 0 auto 8px; }
  .steps { grid-template-columns: 1fr; }
  .site-header .btn { display: none; }
  .nav {
    display: none; position: absolute; top: 68px; inset-inline: 0;
    flex-direction: column; gap: 4px; padding: 14px 16px;
    background: var(--cream); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border-radius: 12px; border: 1.5px solid var(--ink); background: transparent;
    font-size: 20px; cursor: pointer; color: var(--ink);
  }
  body { padding-bottom: 76px; }
  .mobile-cta {
    display: flex; position: fixed; bottom: 12px; inset-inline: 16px; z-index: 9;
    justify-content: center; padding: 14px;
    background: var(--terracotta); color: #FFFFFF; font-weight: 800;
    border-radius: 999px; box-shadow: 0 10px 30px rgba(42, 29, 23,.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
