:root {
  --cs-color-primary: #FB3E25;
  --cs-color-beige:   #F2C1A5;
  --cs-color-cream:   #FCF1EB;
  --cs-color-white:   #FFFFFF;
  --cs-color-text:    #000000;
  --cs-color-line:    #000000;
  --cs-color-cta-hover: #2589CC;   /* "למידע נוסף" button hover (Figma "Variant2") */

  /* Text links: brand blue by default, menu-red on hover, never underlined. */
  --cs-color-link:       #2589CC;
  --cs-color-link-hover: #E84F36;   /* the menu hover red (= --cs-orange) */

  --cs-font-heading: "GLDVina", "Miriam Libre", system-ui, sans-serif;
  --cs-font-body:    "Miriam Libre", system-ui, sans-serif;
  --cs-ls-heading:   0.07em;

  /* GLD Vina is a variable font (wght 100–900, wdth 100–800).
     Per-level axis settings, taken from the Figma design: */
  --cs-vina-h1:   "wght" 500, "wdth" 700;   /* hero / page H1 */
  --cs-vina-h2:   "wght" 500, "wdth" 460;   /* section headings */
  --cs-vina-h3:   "wght" 665, "wdth" 460;   /* sub-headings */
  --cs-vina-lead: "wght" 500, "wdth" 450;   /* lead / intro paragraphs */

  --cs-fs-h1:    clamp(2.5rem, 6vw, 5rem);
  --cs-fs-h2:    30px;
  --cs-fs-h3:    clamp(1.25rem, 2.2vw, 1.625rem);
  --cs-fs-body:  1rem;
  --cs-fs-small: 18px;

  --cs-lh-heading: 1.1;
  --cs-lh-body:    1.6;

  --cs-space-xs: 0.5rem;
  --cs-space-sm: 0.75rem;
  --cs-space-md: 1.25rem;
  --cs-space-lg: 2rem;
  --cs-space-xl: 3rem;

  --cs-container: 1200px;
  --cs-container-pad: clamp(1rem, 4vw, 2.5rem);

  --cs-radius-sm: 4px;
  --cs-radius-md: 8px;

  --cs-transition: 200ms ease;
}

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

html {
  /* Direction is set per-language on the <html dir> attribute in header.php
     (RTL for Hebrew, LTR for German) — do not hardcode it here. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--cs-font-body);
  font-size: var(--cs-fs-body);
  line-height: var(--cs-lh-body);
  color: var(--cs-color-text);
  background: var(--cs-color-white);
  /* Kerning ON for every language. Hebrew kerning was off while the GLD Vina
     kern table over-tightened yud→nun (ינ overlapped in וינאי). Fixed 2026-11-26:
     font owner's build adds nun→yud (ני, e.g. ניואנסים / גרמנית); the stray
     yud→nun record was removed from the woff2 (dev-only/font-patched-20261126). */
  font-kerning: normal;
}

/* ── German + English (Latin) ────────────────────────────────
   GLD Vina covers Latin glyphs (confirmed by font owner), so the
   same font stack applies to Hebrew and the Latin languages. */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--cs-font-heading);
  font-weight: 500;
  font-variation-settings: var(--cs-vina-h2);
  line-height: 1;
  letter-spacing: 0;
  text-align: start;
}

h1 {
  font-size: 50px;
  line-height: 55px;
  font-variation-settings: var(--cs-vina-h1);   /* GLD Vina · weight 500 · width 700 */
}
h2 {
  font-size: 30px;                               /* line-height 1 · letter-spacing 0 · width 460 from the shared rule */
}
h3 {
  font-size: 22px;
  font-weight: 665;
  letter-spacing: 0.04em;                        /* 4% */
  font-variation-settings: var(--cs-vina-h3);   /* GLD Vina · weight 665 · width 460 */
}
h4 {
  font-size: 22px;
  letter-spacing: 0.04em;                        /* 4% — GLD Vina · weight 500 · width 460 (from the shared rule) */
}

p { margin: 0 0 var(--cs-space-md); }

/* Global link style — enforced site-wide: brand blue, no underline, menu-red
   on hover/focus. Components that need their own colour (nav, CTA button,
   cards) pin it themselves and win on specificity / load order. */
a {
  color: var(--cs-color-link);
  text-decoration: none;
  transition: color 200ms ease;
}
a:hover,
a:focus-visible {
  color: var(--cs-color-link-hover);
}

img, svg, video, iframe {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.cs-container {
  width: 100%;
  max-width: var(--cs-container);
  margin-inline: auto;
  padding-inline: var(--cs-container-pad);
}

/* ─── Reusable CTA button ("למידע נוסף") ──────────────────
   The single source of truth for this button. Markup pattern:
   <a class="cs-cta" href="…">
     <span>למידע נוסף</span>
     <svg class="cs-cta__icon" …>…</svg>   (uses currentColor)
   </a>                                                       */
.cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  font-family: var(--cs-font-body);          /* Miriam Libre */
  font-size: 20px;
  font-weight: 500;                          /* Bold */
  line-height: 28px;
  color: var(--cs-color-text);
  background: var(--cs-color-white);
  border: 0;
  border-radius: 0;
  transition: background var(--cs-transition), color var(--cs-transition);
  cursor: pointer;
}

.cs-cta:hover,
.cs-cta:focus-visible {
  background: var(--cs-color-cta-hover);
  color: var(--cs-color-white);
}

.cs-cta__icon {
  width: 21px;
  height: auto;
  flex: 0 0 auto;
}

/* Long compound words (German: "Verwaltungshilfe", "Österreichische") in the
   large uppercase display font are wider than a phone screen. Unbreakable,
   they stretch their card and push the fixed header (and its menu button)
   off-screen. Let headings hyphenate (uses <html lang>) and break as a last resort. */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* The arrow is drawn pointing left (forward in RTL); mirror it for LTR languages. */
html[dir="ltr"] .cs-cta__icon { transform: scaleX(-1); }

.cs-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
