/* ============================================================
   ΜΠΛΕ ΣΤΑΧΥ — Base / reset / elements (editorial luxury)
   Logical properties throughout for clean RTL (Hebrew).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Prevent iOS Safari horizontal jiggle */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.72;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;            /* guard against any accidental overflow */
  max-width: 100%;
}
:lang(he) body, body:lang(he) { font-family: var(--font-sans-he); }

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent-ink); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* --- Headings: serif, editorial, tight at scale --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--midnight-blue);
  text-wrap: balance;
}
:lang(he) h1, :lang(he) h2, :lang(he) h3, :lang(he) h4 { font-family: var(--font-serif-he); letter-spacing: 0; }

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.006em; }
h4 { font-size: var(--step-1); letter-spacing: 0; }
p  { text-wrap: pretty; }

/* Tabular/serif numerals look richer for prices & figures */
.numeral { font-family: var(--font-serif); font-variant-numeric: lining-nums; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--midnight-blue); color: var(--warm-white); }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--alt { background: var(--bg-alt); }
.section--blue {
  background:
    radial-gradient(120% 140% at 50% -20%, var(--midnight-blue-700) 0%, var(--midnight-blue) 55%, var(--midnight-blue-900) 100%);
  color: var(--ivory);
}
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--ivory); }

/* Hairline divider */
.rule { border: 0; height: 1px; background: var(--line); margin-block: var(--space-l); }

/* Eyebrow / kicker label */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  display: inline-block;
}
:lang(he) .eyebrow { letter-spacing: 0.08em; }

.lede {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Ornament (triple-wave brand motif) */
.ornament { width: 56px; height: auto; color: var(--accent-ink); opacity: 0.9; }
.ornament--center { margin-inline: auto; }

/* Visually hidden */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -100px;
  background: var(--midnight-blue); color: var(--ivory);
  padding: 0.6rem 1.1rem; border-radius: var(--radius); z-index: 1000; transition: top 0.2s;
}
.skip-link:focus { inset-block-start: 1rem; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive 2-column split (collapses cleanly on mobile)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--media-end { /* media column visually second */ }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: var(--space-l); }
  .split > * { min-width: 0; }
}
