/* ==========================================================================
   Components (reusable on every page)
   ========================================================================== */

/* ---------- Icon ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
}
.icon--move { transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1); }

/* ---------- Buttons ----------
   .btn--primary  plum fill, main action
   .btn--ghost    outline, secondary action
   .btn--light    white fill, on plum backgrounds
   sizes: --sm (40px) / default (48px) / --lg (56px) – all ≥ 40px touch target */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--btn-h);
  padding: 0 1.5em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  /* round 10: soft, unhurried hover: colour eases and the button floats up a touch (no shadow) */
  transition:
    background-color 0.6s var(--ease-out),
    color 0.6s var(--ease-out),
    border-color 0.6s var(--ease-out),
    transform 0.7s cubic-bezier(0.25, 1, 0.3, 1);
}
.btn--sm { --btn-h: 42px; padding: 0 1.15em; font-size: var(--text-xs); }
.btn--lg { --btn-h: 56px; padding: 0 1.9em; font-size: var(--text-base); }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--plum-700);
  color: var(--white);
}
/* Buttons are flat (round 6): no shadow, no lift, no light sweep. Hover changes colour only. */
.btn--ghost {
  background: var(--white);
  color: var(--plum-700);
  border-color: rgba(90, 9, 84, 0.22);
}
.btn--light { background: var(--white); color: var(--plum-700); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); }
  .btn--primary:hover { background: var(--plum-800); }
  .btn--ghost:hover { border-color: var(--plum-700); background: var(--lavender-50); }
  .btn--light:hover { background: var(--lavender-100); }
  .btn:hover .icon--move { transform: translateX(-4px); }
}
.btn:active { transform: translateY(-1px) scale(0.98); transition-duration: 0.15s; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Loading state */
.btn__spinner {
  display: none;
  width: 1.1em; height: 1.1em;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Icon-only button */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--plum-700);
  transition: background-color var(--dur-2) var(--ease-out);
}
.icon-btn .icon { width: 24px; height: 24px; }
@media (hover: hover) { .icon-btn:hover { background: var(--lavender-100); } }

/* Round outline button (slider) */
.round-btn {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.round-btn .icon { width: 22px; height: 22px; }
@media (hover: hover) { .round-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); } }
.round-btn:active { transform: scale(0.94); }
.round-btn[disabled] { opacity: 0.35; pointer-events: none; }

/* ---------- Links ---------- */
.text-link {
  color: var(--plum-700);
  text-decoration: underline;
  text-decoration-color: var(--orchid-300);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .text-link:hover { text-decoration-color: var(--plum-700); } }

/* "המשך קריאה" – arrow link with a circle that fills on hover */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  font-weight: 600;
  color: var(--plum-700);
}
.arrow-link__icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(90, 9, 84, 0.25);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.arrow-link__icon .icon { width: 20px; height: 20px; }
@media (hover: hover) {
  .arrow-link:hover .arrow-link__icon { background: var(--plum-700); border-color: var(--plum-700); color: var(--white); transform: translateX(-4px); }
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55em 1.2em;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
@media (hover: hover) {
  .chip:hover { background: var(--plum-700); border-color: var(--plum-700); color: var(--white); transform: translateY(-2px); }
}

/* ==========================================================================
   Header – floating white capsule; logo | centered nav | actions
   ========================================================================== */
/* Floating capsule: the bar no longer runs edge to edge; it is a solid white pill
   that hovers above the content and condenses a little on scroll. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding-top: 12px;
  pointer-events: none;            /* only the capsule itself catches clicks */
}
.site-header__inner {
  position: relative;
  pointer-events: auto;
  height: 64px;
  max-width: 1160px;
  width: calc(100% - 24px);
  padding-inline: 14px 10px;
  border-radius: var(--radius-pill);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-5);
  /* round 9: floats with no frame or background at the top of the page */
  background: transparent;
  border: 1px solid transparent;
  transition: height var(--dur-2) var(--ease-out), width var(--dur-3) var(--ease-out), max-width var(--dur-3) var(--ease-out),
              background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
/* once the page scrolls: a warm beige capsule, moderately translucent like frosted glass, with a soft shadow */
.site-header.is-scrolled .site-header__inner {
  height: 58px;
  max-width: 1100px;
  background: rgba(245, 239, 231, 0.74);
  border-color: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px -14px rgba(61, 7, 57, 0.22), 0 1px 3px rgba(61, 7, 57, 0.05);
}
.site-header__logo { justify-self: start; display: block; }
.site-header__logo { position: relative; padding-inline-start: 8px; }
.site-header__logo img {
  height: 46px;
  width: auto;
  transition: height var(--dur-2) var(--ease-out);
}
.site-header.is-scrolled .site-header__logo img { height: 42px; }

.site-header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-header__call { display: none; }

/* ---------- Primary nav (desktop ≥ 1180px), centered ---------- */
.primary-nav { display: none; }

@media (min-width: 1180px) {
  .primary-nav { display: block; grid-column: 2; }
  .site-header__call { display: inline-flex; }
  .menu-toggle { display: none; }
}

.primary-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.4rem + 0.6vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav__list > li { position: relative; display: flex; align-items: center; }

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-700);
  transition: color var(--dur-1) var(--ease-out);
}
/* underline that grows from the center */
.primary-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  bottom: 8px;
  height: 1.5px;
  background: var(--plum-700);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--dur-2) var(--ease-out);
}
.primary-nav__link:hover, .primary-nav__link.is-current { color: var(--plum-700); }
.primary-nav__link:hover::after, .primary-nav__link.is-current::after { transform: scaleX(1); }
.has-sub > .primary-nav__link { padding-inline-end: 2px; }

.primary-nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 32px;
  color: var(--ink-500);
  border-radius: 8px;
}
.primary-nav__toggle .icon { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.has-sub.is-open .primary-nav__toggle .icon { transform: rotate(180deg); }

.subnav {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: -8px;
  min-width: 260px;
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(90, 9, 84, 0.12);   /* flat, like the header */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.subnav::before { /* hover bridge */
  content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px;
}
.has-sub.is-open .subnav,
.has-sub:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
@media (hover: hover) and (min-width: 1180px) {
  .has-sub:hover .subnav { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
  .has-sub:hover .primary-nav__toggle .icon { transform: rotate(180deg); }
}
.subnav__list { list-style: none; margin: 0; padding: 0; }
.subnav__list--cols { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); column-gap: 4px; }
.subnav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: 1.35;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), padding var(--dur-2) var(--ease-out);
}
.subnav a:hover { background: var(--lavender-50); color: var(--plum-700); padding-inline-start: 18px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--ivory);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.mobile-menu__top img { height: 52px; width: auto; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link,
.mobile-menu__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink-900);
}
.mobile-menu__group summary { list-style: none; cursor: pointer; }
.mobile-menu__group summary::-webkit-details-marker { display: none; }
.mobile-menu__group summary h3 { font-size: inherit; color: inherit; font-weight: 400; }
.mobile-menu__group summary .icon { width: 22px; height: 22px; color: var(--plum-700); transition: transform var(--dur-2) var(--ease-out); }
.mobile-menu__group[open] summary .icon { transform: rotate(180deg); }
.mobile-menu__group ul { list-style: none; margin: 0; padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
.mobile-menu__group li a { display: block; padding: 10px 4px; color: var(--ink-700); font-size: var(--text-base); }
.mobile-menu__link[aria-current="page"] { color: var(--plum-700); }

/* ==========================================================================
   Form
   ========================================================================== */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-900);
  padding: 0;
}
.field__req { color: var(--orchid-500); margin-inline-start: 2px; }
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--ivory);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink-900);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.field__input[dir="ltr"] { text-align: right; }
.field__input--area { min-height: 128px; resize: vertical; line-height: 1.6; }
.field__input:hover { border-color: var(--orchid-300); }
.field__input:focus { outline: none; background: var(--white); border-color: var(--plum-700); box-shadow: 0 0 0 4px rgba(175, 99, 168, 0.18); }
.field.is-invalid .field__input { border-color: var(--color-error); background: #fff8f7; }
.field.is-valid .field__input { border-color: var(--green-200); }
.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 600;
}

/* Custom checkbox */
.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--text-sm); line-height: 1.6; }
.checkbox input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.checkbox__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 7px;
  border: 1.5px solid var(--ink-300);
  background: var(--white);
  color: var(--white);
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.checkbox__box .icon { width: 16px; height: 16px; stroke-width: 2.2; transform: scale(0.4); opacity: 0; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1); }
.checkbox input:checked + .checkbox__box { background: var(--plum-700); border-color: var(--plum-700); }
.checkbox input:checked + .checkbox__box .icon { transform: scale(1); opacity: 1; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--plum-700); outline-offset: 3px; }
.field--consent.is-invalid .checkbox__box { border-color: var(--color-error); }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form__status { font-size: var(--text-sm); color: var(--ink-500); }
.form__status.is-success { color: var(--color-success); font-weight: 600; }
.form__status.is-error { color: var(--color-error, #b3261e); font-weight: 600; }
.form__status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer – compact: all links kept, laid out in tight columns
   ========================================================================== */
.site-footer {
  background: var(--lavender-100);
  color: var(--ink-700);
  padding-top: var(--space-6);
  padding-bottom: calc(var(--space-3) + 84px); /* room for mobile action bar */
  font-size: var(--text-xs);
}
@media (min-width: 960px) { .site-footer { padding-bottom: var(--space-3); } }
.site-footer__grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: auto minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-7); }
}
.site-footer__brand img { height: 52px; width: auto; mix-blend-mode: multiply; }
.site-footer__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--plum-700);
  margin-bottom: var(--space-2);
  letter-spacing: 0;
}
.site-footer__cap { width: 22px; height: 22px; color: var(--plum-700); }
.site-footer__col ul { columns: 2; column-gap: var(--space-5); }
@media (min-width: 900px) { #ft-treat + ul { columns: 3; } }
.site-footer__col li { break-inside: avoid; padding-block: 2px; }
.site-footer__col a { color: var(--ink-700); line-height: 1.5; transition: color var(--dur-1) var(--ease-out); }
.site-footer__col a:hover { color: var(--plum-700); text-decoration: underline; text-underline-offset: 0.2em; }

.site-footer__bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(90, 9, 84, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  color: var(--ink-500);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer__legal a { color: var(--ink-700); font-weight: 600; }
.site-footer__legal a:hover, .site-footer__credits a:hover { color: var(--plum-700); }
.site-footer__credits { margin-inline-start: auto; }

/* ==========================================================================
   Floating WhatsApp button (desktop; mobile uses the action bar)
   ========================================================================== */
.wa-fab {
  position: fixed;
  inset-inline-end: 24px;            /* left side in RTL */
  bottom: 24px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 18px;
  border-radius: var(--radius-pill);
  background: var(--green-700);
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), background-color var(--dur-2);
}
.wa-fab .icon { width: 24px; height: 24px; }
.wa-fab::before { /* soft pulse ring, once on appear */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(126, 164, 3, 0.45);
}
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab.is-visible::before { animation: wa-pulse 2.4s var(--ease-out) 0.4s 2; }
@media (hover: hover) { .wa-fab:hover { background: var(--green-600); transform: translateY(-2px); } }
@media (min-width: 960px) { .wa-fab { display: inline-flex; } }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(126, 164, 3, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(126, 164, 3, 0); } }

/* ==========================================================================
   Mobile action bar
   ========================================================================== */
.action-bar {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid rgba(90, 9, 84, 0.12);   /* flat, like the header */
  transform: translateY(calc(100% + 24px));
  transition: transform var(--dur-3) var(--ease-out);
}
.action-bar.is-visible { transform: none; }
@media (min-width: 960px) { .action-bar { display: none; } }
.action-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 24px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--plum-700);
  background: var(--lavender-50);
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1);
}
.action-bar__btn:active { transform: scale(0.96); }
.action-bar__btn--primary { background: var(--plum-700); color: var(--white); }
/* round 16: WhatsApp in the palette's green; the dial button is narrower so WhatsApp has room */
.action-bar { grid-template-columns: 0.85fr 1.3fr 1fr; }
.action-bar__btn--primary { padding-inline: 10px; gap: 6px; }
.action-bar__btn--wa { background: var(--green-700); color: var(--white); }

/* ==========================================================================
   Cookie notice
   ========================================================================== */
.cookie {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: 420px;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  animation: cookie-in var(--dur-3) var(--ease-out) both;
}
.cookie .btn { justify-self: start; }
.cookie__text { margin: 0; color: var(--ink-700); }
.cookie { inset-inline-start: 16px; inset-inline-end: auto; }
@media (max-width: 959px) { .cookie { bottom: calc(92px + env(safe-area-inset-bottom)); } }
@media (max-width: 599px) { .cookie { inset-inline: 12px; max-width: none; } }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }

/* Scrolled header (desktop): the logo leaves, the phone collapses to its icon,
   and the capsule tightens around the menu. */
.site-header__logo { transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear 0s; }
.site-header__call { transition: padding var(--dur-3) var(--ease-out), width var(--dur-3) var(--ease-out); }
.site-header__call-num { display: inline-block; max-width: 8em; overflow: hidden; transition: max-width var(--dur-3) var(--ease-out), opacity var(--dur-2); }
@media (min-width: 1180px) {
  .site-header.is-scrolled .site-header__inner { max-width: 940px; }
  .site-header.is-scrolled .site-header__logo { opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2); }
  .site-header.is-scrolled .site-header__call { padding: 0; width: 42px; gap: 0; }
  .site-header.is-scrolled .site-header__call-num { max-width: 0; opacity: 0; }
}
/* link to the treatments index at the foot of the "טיפולים" submenu (2026-11-21) */
.subnav .subnav__all { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-weight: 600; color: var(--plum-700); }
.subnav .subnav__all .icon { width: 16px; height: 16px; }

/* "מרכז מידע": the label is the toggle itself (no hub page) */
.primary-nav__toggle.primary-nav__toggle--label {
  display: inline-flex; align-items: center; gap: 4px;
  width: auto; height: 44px; padding: 0 10px; border-radius: 0;
  font: inherit; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink-700); background: none; border: 0; cursor: pointer;
}
.primary-nav__toggle--label .icon { color: var(--ink-500); }
.primary-nav__toggle--label:hover, .primary-nav__toggle--label.is-current, .has-sub.is-open > .primary-nav__toggle--label { color: var(--plum-700); }

/* Logo, round 2 (Aviv, 2026-11-21): much larger (about 4x the area) and pinned to the right corner.
   The header row keeps its height (fixed structure): the logo hangs from the top inside the header's own space. */
.site-header__logo img { height: 56px; }                       /* phones and tablets: as large as fits beside the menu button */
.site-header.is-scrolled .site-header__logo img { height: 46px; }
@media (max-width: 380px) { .site-header__logo img { height: 50px; } }
@media (min-width: 1180px) {
  .site-header__inner { max-width: none; grid-template-columns: auto minmax(0, 1fr) auto; }
  .primary-nav { justify-self: center; }
  .site-header__logo { align-self: start; margin-top: -6px; padding-inline-start: 4px; }
  .site-header__logo img { height: clamp(66px, 6.2vw, 92px); }
  .site-header.is-scrolled .site-header__logo { position: absolute; }   /* leaves the row while hidden, so the capsule tightens around the menu */
}
@media (max-width: 1179px) {
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header__actions { grid-column: 2; }
  .site-header__logo img { max-width: none; }
}

/* Logo, round 3 (Aviv, 2026-11-21): the logo is no longer part of the menu. It sits on the page in the top right corner
   (10% smaller than round 2) and scrolls away with it; the menu turns into the floating capsule without any jump. */
.site-logo {
  --logo-h: 50px;                                   /* phones and tablets */
  position: absolute; z-index: 49;
  top: calc(12px + 32px - var(--logo-h) / 2);       /* centred on the header row */
  inset-inline-start: 26px;
  display: block; line-height: 0;
}
.site-logo img { display: block; height: var(--logo-h); width: auto; max-width: none; }
@media (max-width: 380px) { .site-logo { --logo-h: 45px; inset-inline-start: 20px; } }
@media (min-width: 1180px) {
  .site-logo { --logo-h: clamp(59px, 5.6vw, 83px); top: 7px; inset-inline-start: 30px; }
  /* at the top the menu keeps clear of the logo; once scrolled it glides into the centred capsule */
  .site-header__inner { padding-inline-start: calc(clamp(59px, 5.6vw, 83px) * 4.66 + 40px); transition: height var(--dur-2) var(--ease-out), width var(--dur-3) var(--ease-out), max-width var(--dur-3) var(--ease-out), padding var(--dur-3) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
  .site-header.is-scrolled .site-header__inner { padding-inline-start: 14px; }
}
/* phones and tablets: once scrolled, the capsule closes around the menu button alone */
@media (max-width: 1179px) {
  .site-header__inner { transition: width var(--dur-3) var(--ease-out), max-width var(--dur-3) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), margin var(--dur-3) var(--ease-out); }
  .site-header.is-scrolled .site-header__inner { max-width: 58px; padding-inline: 6px; margin-inline-start: auto; margin-inline-end: 12px; grid-template-columns: 0 auto; gap: 0; }
}
@media (min-width: 1180px) {
  :root { --logo-h-desk: clamp(50px, calc(9vw - 50px), 83px); }   /* 1180px → 56px, 1440px → 80px */
  .site-logo { --logo-h: var(--logo-h-desk); }
  .site-header__inner { padding-inline-start: calc(var(--logo-h-desk) * 4.66 + 32px); }
  .primary-nav__link, .primary-nav__toggle--label { white-space: nowrap; }
}
@media (min-width: 1180px) and (max-width: 1319px) {
  .primary-nav__list { gap: 2px; }
  .primary-nav__link, .primary-nav__toggle.primary-nav__toggle--label { padding-inline: 8px; }
}

/* the corner logo is the way home (Aviv): at the top of the page the header's transparent capsule lies over it,
   so only the header's own items catch clicks there */
.site-header:not(.is-scrolled) .site-header__inner { pointer-events: none; }
.site-header:not(.is-scrolled) .site-header__inner > * { pointer-events: auto; }

/* ---------- Language switch (2026-11-22): a small round chip beside the phone button; on phones it lives in the menu ---------- */
.lang-switch {
  display: none; place-items: center; width: 40px; height: 40px; margin-inline-end: 6px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--plum-700); background: var(--white);
  transition: background-color 0.9s var(--ease-out), color 0.9s var(--ease-out), border-color 0.9s var(--ease-out);
}
@media (hover: hover) { .lang-switch:hover { background: var(--plum-700); border-color: var(--plum-700); color: var(--white); } }
@media (min-width: 1180px) { .lang-switch { display: inline-grid; } }
.mobile-menu__lang {
  display: inline-flex; align-self: flex-start; align-items: center; min-height: 44px; margin-block: 18px 6px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-sm); font-weight: 600; color: var(--plum-700);
}
