/*
  Footer + bottom bar tuned to the Wix site, measured 25.10.2026 at 1440 px and 375 px.
  Wix (1440): dark card 1404 x 552, radius 18; columns' right edges at 82 / 261 / 506 px from the card's right edge;
  newsletter box 556 x 242 at 72 px from the left, 2 px border; icons 45 px; "יוצאות לאור" 157.5 px / 126 px.
  Wix (375): full-width card, newsletter on top, one column of links (24 / 20 px), no big line.
  Since 25.10.2026 the menu column follows the header menu (6 links), so the gap above the icons is smaller.
  Loaded after layout-fit.css in layouts/base.html.
*/

/* ---------- Dark card ---------- */
.site-footer {
  border-radius: 18px;
  padding-block: 37px clamp(24px, 6.67vw, 96px);
  padding-inline: clamp(16px, 5.7vw, 82px) clamp(16px, 5vw, 72px);
  color: var(--paper);
}
.site-footer__top { align-items: flex-start; gap: 32px; }

/* Link columns */
.site-footer__cols { padding-inline-start: 0; column-gap: clamp(40px, 8.55vw, 123px); row-gap: 0; }
.site-footer__col h3 { font-size: 20px; line-height: 24px; margin-block-end: 13px; color: var(--paper-2); letter-spacing: 0; }
.site-footer__col ul { gap: 16px; font-size: 16px; line-height: 22.4px; }
.site-footer__col:first-child ul { gap: 17px; font-size: 15px; line-height: 21px; }
.site-footer__col a, .site-footer .ib-whatsapp { color: var(--paper); }
.site-footer__col a[aria-current="page"] { color: #c2c2c2; text-decoration: none; }
.site-footer__col a[aria-current="page"]:hover { text-decoration: underline; }

/* Social icons */
.site-footer__social { gap: 36px; margin-block-start: clamp(28px, 2.8vw, 40px); margin-inline-start: -10px; }
.site-footer__social a { color: var(--paper); }
.site-footer__social .svg { inline-size: clamp(38px, 3.125vw, 45px); block-size: clamp(38px, 3.125vw, 45px); }

/* Newsletter box */
.newsletter { flex: 0 1 556px; padding: 24px; border: 2px solid var(--paper); border-radius: 16px; }
.newsletter__title { font-size: 24px; line-height: 36px; letter-spacing: normal; color: var(--paper); margin-block-end: 16px; }
.newsletter > p { font-weight: 500; font-size: 18px; line-height: 27px; max-inline-size: 440px; color: var(--paper); }

/* Form: "מייל *" above, input + button on one row (button on the left), consent on the label row */
.newsletter form[data-ib-form] { grid-template-columns: minmax(0, 1fr) 108px; column-gap: 24px; row-gap: 7px; align-items: center; margin-block-start: 16px; }
.newsletter .ib-field-email { display: contents; }
.newsletter .ib-field-email label {
  grid-column: 1; grid-row: 1; justify-self: start;
  font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 19.6px; color: var(--paper);
}
.newsletter .ib-field-email input {
  grid-column: 1; grid-row: 2; block-size: 40px; min-block-size: 40px; padding: 0 12px;
  border: 0; border-radius: 6px; background: var(--white);
  font-family: var(--font-text); font-weight: 300; font-size: 16px; color: var(--ink-3);
}
.newsletter .ib-submit {
  grid-column: 2; grid-row: 2; justify-self: stretch;
  inline-size: 108px; min-inline-size: 0; block-size: 41px; min-block-size: 41px; padding: 0; margin: 0;
  background: var(--ink-2); color: var(--white); border: 1px solid var(--white); border-radius: 100px;
  font-family: var(--font-text); font-weight: 700; font-size: 14px; line-height: 1.2;
}
.newsletter .ib-submit:hover { background: var(--ink); }
.newsletter .ib-consent {
  grid-column: 1 / -1; grid-row: 1; justify-self: end;
  display: flex; align-items: center; gap: 6px;
}
.newsletter .ib-consent label { font-weight: 300; font-size: 13px; line-height: 18px; color: var(--paper); }
.newsletter .ib-consent input {
  flex: none; inline-size: 15px; block-size: 15px; min-block-size: 0; margin: 0; padding: 0;
  background: none; accent-color: var(--paper);
}
.newsletter .cf-turnstile { grid-column: 1 / -1; }
.newsletter .cf-turnstile:empty, .newsletter .ib-form-status:empty { display: none; }
.newsletter .ib-form-status { grid-column: 1 / -1; font-size: 14px; }

/* Big line */
.site-footer__big {
  margin-block-start: clamp(24px, 2.1vw, 30px);
  margin-inline: calc(4px - clamp(16px, 5.7vw, 82px)) calc(-1 * clamp(16px, 5vw, 72px)); /* full card width, as on Wix */
  font-size: clamp(40px, 10.94vw, 157.5px); line-height: 0.8; letter-spacing: normal; color: var(--paper-2);
}

/* ---------- Bottom bar: 3 columns inside 1170 px ---------- */
.bottom-bar {
  grid-template-columns: 1fr auto 1fr; gap: 8px 24px;
  padding-block: 18px; padding-inline: max(16px, calc((100% - 1170px) / 2));
  font-weight: 300; font-size: 15.75px; line-height: 18.9px;
}
.bottom-bar__copy { justify-self: start; }
.bottom-bar__year { font-family: var(--font-display); font-weight: 400; font-size: 14px; }
.bottom-bar__credit { font-weight: 400; font-size: 14px; }
.bottom-bar__end { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bottom-bar__end .bottom-bar__links { justify-self: auto; }
.bottom-bar .ib-legal { justify-self: auto; }
.bottom-bar .ib-legal ul { gap: 6px 12px; }
.bottom-bar__links a, .bottom-bar .ib-legal a { text-decoration: none; }
.bottom-bar__links a:hover, .bottom-bar .ib-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile (Wix mobile layout) ---------- */
@media (max-width: 860px) {
  .site-footer { margin-inline: 0; border-radius: 5px 5px 0 0; padding-block: 24px 31px; padding-inline: 20px; }
  .site-footer__top { gap: 38px; }
  .newsletter { flex: none; }
  .site-footer__cols { padding-inline-start: 7px; row-gap: 42px; }
  .site-footer__col h3 { font-size: 24px; line-height: 28.8px; margin-block-end: 18px; }
  .site-footer__col ul, .site-footer__col:first-child ul { gap: 17px; font-size: 20px; line-height: 28px; }
  .site-footer__social { gap: 24px; margin-block-start: 41px; margin-inline-start: 0; }
  .site-footer__social .svg { inline-size: 38px; block-size: 38px; }
  .site-footer__big { display: none; }

  .newsletter__title { font-size: 22px; line-height: 33px; }
  .newsletter form[data-ib-form] { grid-template-columns: 1fr; }
  .newsletter .ib-field-email label { grid-row: 1; }
  .newsletter .ib-field-email input { grid-row: 2; }
  .newsletter .ib-consent { grid-column: 1; grid-row: 3; justify-self: start; margin-block-start: 4px; }
  .newsletter .ib-submit { grid-column: 1; grid-row: 4; inline-size: 100%; margin-block-start: 9px; }

  .bottom-bar { grid-template-columns: 1fr; justify-items: center; row-gap: 4px; padding-block: 20px 44px; padding-inline: 16px; font-size: 14px; line-height: 16.8px; text-align: center; }
  .bottom-bar__copy { justify-self: center; }
  .bottom-bar__end { order: -1; justify-self: center; justify-content: center; font-weight: 500; margin-block-end: 6px; }
  .bottom-bar .ib-legal ul { justify-content: center; }
}
