/* Pink October with Zahra — shared styles for /zahra (AR) and /en/zahra (EN).
   The page markup keeps the design export's inline styles; this file holds the
   foundations, responsive tokens, hover states, and the interactive pieces
   (gift form, sticky bar, final CTA) that both languages share. */

:root {
  --atheal-forest: rgb(4, 76, 64);
  --atheal-forest-deep: rgb(2, 60, 50);
  --color-fg: rgb(25, 25, 16);
  --color-muted: rgb(101, 101, 93);
  --color-cream: rgb(247, 247, 242);
  --color-stroke-accent: rgb(21, 154, 132);
  --zahra-pink-light: #f2e6e9;
  --zahra-pink-medium: #ea9cc2;
  --zahra-pink-primary: #dc58a0;
  --zahra-pink-deep: #b8377d;
  --zh-sans: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --zh-latin: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
html[lang="en"] { --zh-sans: 'IBM Plex Sans', system-ui, sans-serif; }

html, body { margin: 0; padding: 0; background: var(--color-cream); color: var(--color-fg); font: 400 15px/1.4 var(--zh-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 96px; }
h1 { font: 500 36px/1.1 var(--zh-sans); margin: 0; color: var(--color-fg); }
h2 { font: 700 28px/1.2 var(--zh-sans); margin: 0; color: var(--color-fg); }
h3 { font: 700 24px/1.25 var(--zh-sans); margin: 0; color: var(--color-fg); }
p { margin: 0; color: var(--color-muted); }
* { box-sizing: border-box; }
a { color: var(--atheal-forest); text-decoration: none; }
a:hover { color: var(--color-stroke-accent); }
*, *::before, *::after, button, input, textarea, select { font-family: var(--zh-sans) !important; }
[style*="IBM Plex Sans',sans-serif"], [style*='"IBM Plex Sans", sans-serif'] { font-family: var(--zh-latin) !important; }
[hidden] { display: none !important; }

/* Responsive values from the export (mobile layout below 760px, menu button below 1000px). */
:root {
  --zh-hero-img: url(/images/zahra/hero-hq.webp);
  --zh-za-img: url(/images/zahra/assessment-bg-hq.webp);
  --zh-hero-min-h: max(85vh, 640px);
  --zh-hero-align: center;
  --zh-hero-bg-size: cover;
  --zh-hero-bg-pos: center 45%;
  --zh-hero-overlay: linear-gradient(to left, rgba(16,11,8,0.82) 0%, rgba(16,11,8,0.62) 26%, rgba(16,11,8,0.2) 46%, rgba(16,11,8,0) 60%), linear-gradient(to top, rgba(16,11,8,0.3) 0%, rgba(16,11,8,0) 28%);
  --zh-hero-pad: 72px clamp(24px,4vw,48px);
  --zh-za-min-h: clamp(720px, 60vw, 960px);
  --zh-za-bg-size: cover;
  --zh-za-bg-pos: center 8%;
  --zh-za-pad: 0 clamp(24px,4vw,48px) clamp(48px,5vw,72px);
  --zh-za-overlay: linear-gradient(to top, rgba(22,12,9,0.94) 0%, rgba(22,12,9,0.78) 22%, rgba(22,12,9,0.3) 42%, rgba(22,12,9,0) 58%), linear-gradient(to bottom, rgba(22,12,9,0.35) 0%, rgba(22,12,9,0) 18%);
}
@media (min-width: 760px) {
  /* LTR: the copy sits on the left, so the legibility gradient starts there. */
  html[dir="ltr"] {
    --zh-hero-overlay: linear-gradient(to right, rgba(16,11,8,0.82) 0%, rgba(16,11,8,0.62) 26%, rgba(16,11,8,0.2) 46%, rgba(16,11,8,0) 60%), linear-gradient(to top, rgba(16,11,8,0.3) 0%, rgba(16,11,8,0) 28%);
  }
}
@media (max-width: 759.98px) {
  :root {
    --zh-hero-img: url(/images/zahra/hero-hq.webp);
    --zh-za-img: url(/images/zahra/assessment-bg-hq.webp);
    /* National-day pattern: full-bleed photo with the copy laid over it, so
       the offer and the CTA land in the first screen. */
    --zh-hero-min-h: calc(100svh - 76px);
    --zh-hero-align: flex-start;
    --zh-hero-bg-size: cover;
    --zh-hero-bg-pos: 56% 40%;
    --zh-hero-overlay: linear-gradient(to bottom, rgba(16,11,8,0.5) 0%, rgba(16,11,8,0.28) 30%, rgba(16,11,8,0.45) 52%, rgba(16,11,8,0.86) 78%, rgba(16,11,8,0.94) 100%);
    --zh-hero-pad: 28px 20px 36px;
    --zh-za-min-h: auto;
    --zh-za-bg-size: 150% auto;
    --zh-za-bg-pos: 55% top;
    --zh-za-pad: calc(150vw * 0.9834 * 0.62) 20px 56px;
    --zh-za-overlay: linear-gradient(to bottom, rgba(22,12,9,0.1) 0%, rgba(22,12,9,0) 30%, rgba(22,12,9,0.75) 56%, rgb(22,12,9) 70%);
  }
}
@media (max-width: 999.98px) { .zh-only-wide { display: none !important; } }
@media (min-width: 1000px) { .zh-only-narrow { display: none !important; } }

/* Directional icons point "forward" in both reading directions. */
html[dir="ltr"] .zh-arrow { transform: scaleX(-1); }

/* Hover and focus states from the export. */
.zh-h1:hover { color: var(--atheal-forest) !important; }
.zh-h2:hover { background: var(--atheal-forest-deep) !important; color: var(--color-cream) !important; }
.zh-h3:hover { background: rgb(255,255,255) !important; color: var(--atheal-forest-deep) !important; }
.zh-h4:hover { background: var(--zahra-pink-primary) !important; color: rgb(255,255,255) !important; box-shadow: 0 14px 36px color-mix(in srgb, var(--zahra-pink-primary) 40%, transparent) !important; }
.zh-h5:hover { opacity: 1 !important; }
.zh-f6:focus { border-bottom-color: var(--color-stroke-accent) !important; }
.zh-h7:hover { background: var(--color-cream) !important; }
.zh-h8:hover { color: var(--color-cream) !important; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--zahra-pink-primary); outline-offset: 3px; }

/* Gift card form ---------------------------------------------------------- */
.zh-gift-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--color-muted); }
.zh-gift-input {
  width: 100%;
  padding: 4px 0 6px;
  border: none;
  border-bottom: 1px dashed rgb(191,191,176);
  border-radius: 0;
  background: transparent;
  color: var(--atheal-forest);
  font-size: 17px;
  font-weight: 600;
  outline: none;
  transition: border-color 160ms ease;
}
.zh-gift-input::placeholder { color: rgb(164,164,150); font-weight: 500; }
.zh-gift-input:focus { border-bottom-color: var(--color-stroke-accent); border-bottom-style: solid; }
.zh-gift-input[aria-invalid="true"] { border-bottom-color: var(--zahra-pink-primary); border-bottom-style: solid; }
.zh-gift-note {
  width: 100%;
  min-height: 3.6em;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--color-fg);
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 500;
  line-height: 1.75;
  resize: none;
  outline: none;
  field-sizing: content;
  transition: opacity 200ms ease-out;
}
.zh-gift-note:focus { box-shadow: 0 1px 0 var(--color-stroke-accent); }
.zh-gift-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zh-gift-hint { margin: 0; font-size: 12px; line-height: 1.6; color: var(--color-muted); }
.zh-gift-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(220,88,160,0.1); color: var(--zahra-pink-deep); font-size: 14px; font-weight: 600; }
.zh-gift-submit { border: none; cursor: pointer; }
.zh-gift-submit[disabled] { cursor: progress; opacity: .7; }

/* Sticky bar (national-day pattern: floating pill after the hero) ---------- */
.zh-sticky {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(620px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .65rem .65rem 1.15rem;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 45px rgba(4,76,64,.18);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  transform: translate(-50%, calc(100% + 40px));
  pointer-events: none;
  transition: opacity 250ms ease, transform 300ms cubic-bezier(.22,1,.36,1);
}
html[dir="rtl"] .zh-sticky { padding: .65rem 1.15rem .65rem .65rem; }
.zh-sticky.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.zh-sticky-price { display: grid; line-height: 1.25; }
.zh-sticky-price-line { display: flex; align-items: baseline; gap: .35rem; white-space: nowrap; }
.zh-sticky-price-line strong { color: var(--atheal-forest); font-family: var(--zh-latin) !important; font-size: 1.05rem; font-weight: 600; }
.zh-sticky-was { color: var(--color-muted); font-size: .8rem; font-weight: 500; }
.zh-sticky-was span { font-family: var(--zh-latin) !important; }
.zh-sticky-unit { color: var(--color-muted); font-size: .75rem; }
.zh-sticky-meta { margin-top: .18rem; color: var(--zahra-pink-deep); font-size: .72rem; font-weight: 600; }
.zh-sticky-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.2rem;
  border-radius: 999px;
  background: var(--atheal-forest);
  color: var(--color-cream);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 160ms ease;
}
.zh-sticky-button:hover { background: var(--atheal-forest-deep); color: var(--color-cream); }
@media (max-width: 620px) {
  .zh-sticky { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .zh-sticky-meta { display: none; }
  .zh-sticky-button { min-width: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .zh-sticky { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--color-fg); }
}

/* Header labels and CTA stay on one line in both languages. */
header nav a, header a.zh-h2 { white-space: nowrap; }
/* English headings run longer than the Arabic the export was sized for. */
html[lang="en"] #top h1 span { font-size: clamp(36px, 4.2vw, 54px) !important; line-height: 1.12 !important; }
html[lang="en"] #top h1 { gap: 10px !important; }
@media (max-width: 1180px) { header nav.zh-only-wide { gap: 24px !important; } }

@media (max-width: 759.98px) {
  /* Mobile hero: compact lock-up and type so offer + CTA fit above the fold. */
  #top > div > div { gap: 18px !important; }
  #top img[src*="darbik-pink"] { width: 150px !important; }
  #top h1 span { font-size: clamp(32px, 9.4vw, 42px) !important; line-height: 1.25 !important; }
  #top h1 { gap: 0 !important; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
  #top [data-price-campaign] { font-size: 44px; }
  #top > div > div > div:nth-of-type(2) { padding-top: 14px !important; gap: 8px !important; }
  #top a.zh-h3 { width: 100%; height: 56px !important; }
}
@media (max-width: 420px) {
  html[lang="en"] .zh-sticky-unit { display: none; }
  .zh-sticky { gap: .6rem; }
  .zh-sticky-button { min-width: 0; padding: .6rem .95rem; font-size: 14px; }
}

/* Footer registration line (CR · VAT) wraps on very narrow phones (320px). */
footer span:has(> img[src*="business-sa"]) { flex-wrap: wrap; row-gap: 2px; }

/* Hero hierarchy per design.md §16 (2026-10-08): logo → headline → one line
   (the Zahra contribution) → price → CTA → one small line. The redundant
   "exclusive discount" line leaves the hero (the struck-through price says
   it). Phones: copy bottom-aligned on the photo, CTA near the bottom of the
   first screen. */
@media (max-width: 759.98px) {
  :root {
    --zh-hero-align: flex-end;
    --zh-hero-pad: 24px 20px 28px;
    --zh-hero-overlay: linear-gradient(to bottom, rgba(16,11,8,0.30) 0%, rgba(16,11,8,0.05) 24%, rgba(16,11,8,0.35) 44%, rgba(16,11,8,0.86) 64%, rgba(16,11,8,0.95) 100%);
  }
  #top > div > div { gap: 14px !important; }
  #top img[src*="darbik-pink"] { width: 120px !important; }
  #top h1 + div > span { display: none !important; }
  #top h1 + div { border-top: 0 !important; padding-top: 0 !important; gap: 10px !important; }
  #top h1 + div > p { order: -1; font-size: 15px !important; }
  #top h1 + div > p br { display: none; }
  #top > div > div > p:last-child { font-size: 11px !important; }
}
@media (min-width: 760px) {
  #top h1 + div > span { display: none !important; }
  #top h1 + div { border-top: 0 !important; padding-top: 0 !important; gap: 14px !important; }
  #top h1 + div > p { order: -1; font-size: 18px !important; max-width: 46ch; }
  #top h1 + div > p br { display: none; }
}
/* Each headline line is its own block so wrapped EN lines don't inherit the
   h1's larger line box. */
#top h1 > div > span { display: block; }
@media (max-width: 759.98px) { html[dir] #top { align-items: flex-end !important; } }

/* Language picker (header link on wide screens, last item in the mobile menu). */
.zh-lang { font-size: 15px; font-weight: 600; color: rgb(78,80,79); white-space: nowrap; transition: color 200ms; }
.zh-lang:hover { color: rgb(4,76,64); }
