/* Pulvex site — shared tokens and components (EN + HE).
   Colours mirror src/constants/theme.ts. Use logical properties only
   (inline/block, start/end) so the same rules work in LTR and RTL. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0A0A0A;  /* Colors.background (brand black) */
  --panel:      #141414;  /* Colors.surface */
  --raised:     #1F1F1F;  /* Colors.surfaceAlt */
  --line:       #2A2A2A;  /* Colors.border */
  --text:       #FFFFFF;
  --text-2:     #A8A8A8;  /* Colors.textSecondary — 8.3:1 on ink, 7.7:1 on panel */
  --orange:     #F1823A;  /* Colors.primary */
  --orange-hi:  #F5A16B;  /* Colors.primaryLight */
  --orange-dim: rgba(241, 130, 58, 0.12);
  --on-orange:  #0A0A0A;  /* 7.5:1 on orange; white text fails (2.6:1) */
  --bronze:     #CD7F32;
  --silver:     #C0C0C0;
  --gold:       #FFD700;
  --platinum:   #E5E4E2;
  --ok:         #F1823A;  /* success uses the brand orange: one accent only */
  --error:      #F44336;

  --radius:     12px;
  --wrap:       1080px;
  --gutter:     24px;
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--ink); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-inline-size: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Numbers and Latin fragments inside Hebrew text keep their own order */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-block-size: 44px; padding: 12px 24px; border-radius: 10px;
  font: 700 15px/1.2 var(--font); cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover:not(:disabled) { background: var(--orange-hi); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--text-2); }
.btn-sm { min-block-size: 40px; padding: 8px 16px; font-size: 14px; }

/* ── Nav ──────────────────────────────────────────────── */
.site-nav {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: rgba(10, 10, 10, .92); backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-block-size: 64px;
}
.site-nav .logo img { display: block; block-size: 30px; inline-size: auto; }
.nav-end { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav-link:hover { color: var(--text); }
/* Language switch: always visible, phones included */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-block-size: 40px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap;
  transition: border-color .15s;
}
.lang-switch:hover { border-color: var(--text-2); }
.lang-switch svg { flex-shrink: 0; color: var(--text-2); }
@media (max-width: 520px) {
  .nav-link.hide-sm { display: none; }
  .nav-end { gap: 14px; }
}

/* ── Notify form (launch email signup) ────────────────── */
.notify { max-inline-size: 520px; }
.notify-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-block-end: 12px; }
.notify-field {
  display: flex; align-items: stretch; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; transition: border-color .15s;
}
.notify-field:focus-within { border-color: var(--orange); }
.notify-field input {
  flex: 1; min-inline-size: 0;
  background: transparent; border: 0; color: var(--text);
  font: 400 16px/1.4 var(--font); padding-inline: 12px;
}
.notify-field input:focus { outline: none; }
.notify-field input::placeholder { color: var(--text-2); opacity: .7; }
.notify-field.invalid { border-color: var(--error); }
.notify-error { color: var(--error); font-size: 14px; margin-block-start: 10px; }
.notify-consent { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-block-start: 12px; }
.notify-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.notify-done {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--ok); border-radius: 14px; padding: 16px 18px;
}
.notify-done strong { display: block; font-size: 16px; }
.notify-done span { color: var(--text-2); font-size: 14px; }
.notify-done svg { flex-shrink: 0; margin-block-start: 2px; }
/* Email addresses are always left-to-right, even on the Hebrew page */
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"] {
  direction: ltr; text-align: end;
}
[dir="rtl"] input[type="email"]:placeholder-shown,
[dir="rtl"] input[type="url"]:placeholder-shown,
[dir="rtl"] input[type="tel"]:placeholder-shown { direction: rtl; }
@media (max-width: 480px) {
  .notify-field { flex-direction: column; padding: 8px; }
  .notify-field input { padding-block: 10px; }
  .notify-field .btn { inline-size: 100%; }
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 40px; margin-block-start: 40px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.site-footer .logo img { display: block; block-size: 24px; inline-size: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a, .footer-copy { font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid; place-items: center; inline-size: 40px; block-size: 40px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text-2);
  transition: color .15s, border-color .15s;
}
.footer-social a:hover { color: var(--text); border-color: var(--text-2); }
@media (max-width: 600px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
