/* =========================================================
   NewPlace (ניו פלייס) — Design tokens, Brand Kit v1.1
   Ready to paste. RTL-first (html lang="he" dir="rtl").
   Fonts: Rubik + Assistant (Google Fonts, OFL). Embed:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700&family=Rubik:wght@300;400;500;600&display=swap" rel="stylesheet">
   ========================================================= */

:root {
  /* ---------- Color: brand ---------- */
  --np-sun: #F9C33C;          /* signature fill: primary CTA, highlights. Text on it = ink only */
  --np-sun-hover: #F0B520;    /* hover/pressed fill for sun buttons (ink on it 8.6:1) */
  --np-ochre: #8A5B00;        /* signature-as-text: links, eyebrows (5.9:1 on paper, 5.2:1 on sand) */
  --np-ochre-hover: #6E4800;
  --np-ink: #222222;          /* main text (15.9:1 on paper) */
  --np-stone: #55524C;        /* secondary text (7.8:1 on paper, 6.9:1 on sand) */
  --np-paper: #FFFFFF;
  --np-sand: #F6F1E9;         /* alternate section / card surface */
  --np-line: #E5DED2;         /* borders, dividers, empty tracker bars (decorative only) */
  --np-line-strong: #8C857A;  /* form-field borders: 3.6:1 on paper (non-text UI >= 3:1) */
  --np-oak: #D9B98F;          /* wood accent: tags, illustration */
  --np-night: #1C1B18;        /* dark surfaces, footer, photo overlays */
  --np-done: #2F7A4D;         /* functional: completed step, check badges (white on it 5.2:1) */
  --np-error: #B3261E;        /* functional: form errors only (6.5:1 on paper) */
  --np-focus: #1C1B18;        /* focus ring color (paired with sun halo) */

  /* ---------- Semantic aliases ---------- */
  --color-bg: var(--np-paper);
  --color-bg-alt: var(--np-sand);
  --color-bg-inverse: var(--np-night);
  --color-text: var(--np-ink);
  --color-text-muted: var(--np-stone);
  --color-text-inverse: #FFFFFF;
  --color-link: var(--np-ochre);
  --color-link-hover: var(--np-ochre-hover);
  --color-accent: var(--np-sun);
  --color-on-accent: var(--np-ink);
  --color-border: var(--np-line);
  --color-border-field: var(--np-line-strong);
  --overlay-photo: linear-gradient(270deg, rgba(28,27,24,.82) 0%, rgba(28,27,24,.55) 45%, rgba(28,27,24,0) 78%); /* RTL: dark on the right, where text sits */

  /* ---------- Typography ---------- */
  --font-head: "Rubik", "Assistant", system-ui, sans-serif;   /* headings, numbers, buttons, labels */
  --font-body: "Assistant", "Rubik", system-ui, sans-serif;   /* reading text */
  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  /* Fluid scale: mobile (360px) -> desktop (1280px). Desktop px in comments. */
  --fs-display: clamp(2.5rem, 1.6rem + 3.9vw, 4rem);      /* 40 -> 64, Rubik 300, lh 1.05 */
  --fs-h1:      clamp(2rem, 1.4rem + 2.6vw, 3rem);        /* 32 -> 48, Rubik 400, lh 1.1 */
  --fs-h2:      clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);/* 26 -> 34, Rubik 500, lh 1.2 */
  --fs-h3:      clamp(1.25rem, 1.1rem + .65vw, 1.5rem);   /* 20 -> 24, Rubik 500, lh 1.3 */
  --fs-body-l:  clamp(1.125rem, 1.05rem + .3vw, 1.25rem); /* 18 -> 20, Assistant 400, lh 1.6 */
  --fs-body:    1.0625rem;                                 /* 17, Assistant 400, lh 1.6 (min 16 on mobile ok) */
  --fs-spec:    1.0625rem;                                 /* 17, Rubik 500 tabular, lh 1.4 */
  --fs-small:   0.9375rem;                                 /* 15, Assistant 600 */
  --fs-eyebrow: 0.875rem;                                  /* 14, Rubik 500; Hebrew: no caps/tracking */
  --lh-tight: 1.05; --lh-heading: 1.15; --lh-snug: 1.3; --lh-body: 1.6;
  --ls-display: -0.01em;   /* Latin & Hebrew display only; never positive on Hebrew */
  --ls-eyebrow-latin: 0.12em;

  /* ---------- Spacing: 4px grid ---------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --section-pad: clamp(56px, 4rem + 3vw, 96px);
  --gutter: clamp(20px, 3vw, 48px);

  /* ---------- Layout ---------- */
  --container: 1280px;        /* content max width; full-bleed max 1400px */
  --container-wide: 1400px;
  --container-text: 720px;    /* long-form / FAQ / form */
  --grid-cols: 12;
  --header-h: 72px;
  --mobile-bar-h: 64px;       /* sticky WhatsApp/call bar */

  /* ---------- Radii ---------- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* ---------- Shadows (soft, warm, sparing) ---------- */
  --sh-1: 0 1px 2px rgba(28,27,24,.06), 0 1px 1px rgba(28,27,24,.04);
  --sh-2: 0 6px 20px rgba(28,27,24,.08), 0 2px 6px rgba(28,27,24,.05);
  --sh-3: 0 16px 40px rgba(28,27,24,.12);
  --focus-ring: 0 0 0 2px var(--np-paper), 0 0 0 4px var(--np-focus), 0 0 0 7px rgba(249,195,60,.55);

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }
}

/* ---------- Base (optional, minimal) ---------- */
html { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); }
body { font-size: var(--fs-body); line-height: var(--lh-body); }
h1, h2, h3, .np-head { font-family: var(--font-head); line-height: var(--lh-heading); }
.np-display { font: var(--fw-light) var(--fs-display)/var(--lh-tight) var(--font-head); letter-spacing: var(--ls-display); }
.np-tnum { font-variant-numeric: tabular-nums; }
a { color: var(--color-link); text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }

/* ---------- Buttons ---------- */
.np-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 14px 32px; border-radius: var(--r-pill); border: 0;
  font: var(--fw-medium) 1.125rem/1 var(--font-head); text-decoration: none; cursor: pointer;
  background: var(--np-sun); color: var(--np-ink);
  transition: background var(--dur-2) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.np-btn:hover { background: var(--np-sun-hover); color: var(--np-ink); }
.np-btn:active { transform: translateY(1px); }
.np-btn:focus-visible { box-shadow: var(--focus-ring); }
.np-btn[disabled], .np-btn[aria-disabled="true"] { background: var(--np-line); color: var(--np-stone); cursor: not-allowed; transform: none; }
.np-btn--secondary { background: transparent; color: var(--np-ink); box-shadow: inset 0 0 0 1.5px var(--np-ink); }
.np-btn--secondary:hover { background: var(--np-ink); color: var(--np-paper); }
.np-btn--on-dark.np-btn--secondary { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.np-btn--on-dark.np-btn--secondary:hover { background: #fff; color: var(--np-ink); }
.np-btn--sm { min-height: 40px; padding: 8px 20px; font-size: 1rem; }

/* ---------- Form fields ---------- */
.np-field { display: grid; gap: var(--sp-2); }
.np-label { font: var(--fw-semibold) var(--fs-small)/1.3 var(--font-body); color: var(--np-ink); }
.np-input, .np-select, .np-textarea {
  min-height: 52px; padding: 12px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--color-border-field); background: var(--np-paper); color: var(--np-ink);
  font: var(--fw-regular) 1.0625rem/1.4 var(--font-body);
}
.np-input::placeholder, .np-textarea::placeholder { color: #77716A; } /* 4.8:1 */
.np-input:hover, .np-select:hover, .np-textarea:hover { border-color: var(--np-ink); }
.np-input:focus-visible, .np-select:focus-visible, .np-textarea:focus-visible { border-color: var(--np-ink); box-shadow: var(--focus-ring); }
.np-input[aria-invalid="true"], .np-select[aria-invalid="true"], .np-textarea[aria-invalid="true"] { border-color: var(--np-error); }
.np-error { color: var(--np-error); font: var(--fw-semibold) var(--fs-small)/1.4 var(--font-body); }
.np-input:disabled, .np-select:disabled, .np-textarea:disabled { background: var(--np-sand); color: var(--np-stone); }

/* ---------- Cards & components ---------- */
.np-card { background: var(--np-paper); border: 1px solid var(--np-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.np-card--featured { border: 2px solid var(--np-sun); box-shadow: var(--sh-2); }
.np-price { font: var(--fw-light) clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem)/1 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.np-spec-row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px dashed var(--np-line); }
.np-spec-row > b { font: var(--fw-medium) var(--fs-spec)/1.4 var(--font-head); font-variant-numeric: tabular-nums; }
.np-badge { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 8px 14px; border-radius: var(--r-pill); background: var(--np-sand); font: var(--fw-semibold) var(--fs-small)/1 var(--font-body); }
.np-eyebrow { font: var(--fw-medium) var(--fs-eyebrow)/1.4 var(--font-head); color: var(--np-ochre); }
.np-eyebrow:lang(en) { text-transform: uppercase; letter-spacing: var(--ls-eyebrow-latin); }
.np-tracker__bar { height: 6px; border-radius: 3px; background: var(--np-line); }
.np-tracker__step[data-state="done"] .np-tracker__bar { background: var(--np-done); }
.np-tracker__step[data-state="current"] .np-tracker__bar { background: var(--np-sun); }
