/*
  App4everyone's footer, on every page of app4everyone.com: the business pages, the apps' sites under
  /viyomi/, /sikumit/ and /vitrina/, the payment page and the legal pages. One layout everywhere (Ariel,
  5.11.2026: "אחיד בין כל הדפים", with no holes), and since 6.11.2026 each section's own words: the
  business's, ViYomi's, Sikumit's or, since 23.11.2026, Vitrina's (a4e-footer--business, --viyomi,
  --sikumit, --vitrina). Like /header.css, each of those pages has its own stylesheet, so everything here
  has class names of its own, sizes in rem, and its own font, box sizing and colours, and the page links
  this file after its own stylesheet. The HTML is written into every page by tools/chrome.mjs.

  Dark, with a line of colour on top: the business's three colours (ViYomi's green, App4everyone's blue
  and Sikumit's purple) on its own pages, and each app's colour on its pages. Five columns where there is
  room, and below that a grid that always fills its rows.
*/

.a4e-footer {
  box-sizing: border-box;
  position: relative;
  margin: 0;
  border: 0;
  background: #0f1733;
  color: #c3c9e6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Heebo", system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.a4e-footer::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #1b6b3a 0%, #0f5e7a 50%, #5a4bc2 100%);
}

.a4e-footer--viyomi::before {
  background: linear-gradient(90deg, #1b6b3a 0%, #2f9157 100%);
}

.a4e-footer--sikumit::before {
  background: linear-gradient(90deg, #5a4bc2 0%, #8a7ce0 100%);
}

.a4e-footer--vitrina::before {
  background: linear-gradient(90deg, #a63f1a 0%, #e08a4f 100%);
}

/* Download links: a computer opens the QR page, a phone goes straight to Google Play, as in the menu.
   Sikumit's stylesheet has no such rule, so the footer brings its own. */
@media (hover: hover) and (pointer: fine) {
  .a4e-footer .on-phone {
    display: none;
  }
}

@media not all and (hover: hover) and (pointer: fine) {
  .a4e-footer .on-computer {
    display: none;
  }
}

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

.a4e-footer .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.a4e-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 22px 28px;
}

.a4e-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}

/* Sikumit's footer has no payment methods (it is free for now, 7.11.2026), nor Vitrina's (in a pilot,
   23.11.2026): one column less. */
.a4e-footer--sikumit .a4e-footer-grid,
.a4e-footer--vitrina .a4e-footer-grid {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
}

.a4e-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.a4e-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.a4e-footer a {
  color: #e6e9f8;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.a4e-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.a4e-footer a:focus-visible {
  outline: 3px solid #8fd8f0;
  outline-offset: 3px;
  border-radius: 6px;
}

.a4e-footer a[aria-current] {
  color: #ffffff;
  font-weight: 700;
}

/* The business: its logo instead of a heading with its name (Ariel, 5.11.2026), a line, and its pages. */
.a4e-footer-logo {
  margin: 0 0 12px;
}

.a4e-footer-logo a {
  display: inline-flex;
}

.a4e-footer-logo img {
  display: block;
  width: auto;
  height: 38px;
}

.a4e-footer-tagline {
  max-width: 280px;
  margin: 0 0 18px;
  color: #c3c9e6;
}

/* An app's own footer: its mark and name instead of the business's logo, and "מבית App4everyone" under the line. */
.a4e-footer-app {
  margin: 0 0 12px;
}

.a4e-footer .a4e-footer-app a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.a4e-footer-app img {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
}

.a4e-footer-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #c3c9e6;
}

.a4e-footer-by a {
  display: inline-flex;
}

.a4e-footer-by img {
  display: block;
  width: auto;
  height: 24px;
}

/* ViYomi is no emergency service: said on every one of its pages, under the columns. */
.a4e-footer-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 32px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #e6e9f8;
  font-size: 0.9375rem;
}

.a4e-footer-alert svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #ffc861;
}

/* "ביטול עסקה" stands out, as consumer protection law asks of the link (section 14ט(ב)). */
.a4e-footer a.a4e-footer-strong {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #8fd8f0;
  text-decoration-thickness: 2px;
}

/* Phone, WhatsApp, mail, the form, the address and the hours, each with its icon. */
.a4e-footer-contact li,
.a4e-footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.a4e-footer-contact svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: #8fd8f0;
}

.a4e-footer-contact .a4e-wa {
  color: #25d366;
}

/* The card brands the payment pages take (Ariel, 5.11.2026: Visa, Mastercard and Isracard). */
.a4e-pay-marks {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

.a4e-pay-marks li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.6);
}

.a4e-pay-marks svg {
  display: block;
  width: 50px;
  height: 30px;
}

.a4e-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: #c3c9e6;
  font-size: 0.875rem;
}

.a4e-footer-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #8fd8f0;
}

.a4e-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aab1d6;
  font-size: 0.875rem;
}

.a4e-footer-bottom p {
  margin: 0;
}

.a4e-footer .nobr {
  white-space: nowrap;
}

.a4e-footer-lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 1080px) {
  .a4e-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .a4e-footer--sikumit .a4e-footer-grid,
  .a4e-footer--vitrina .a4e-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .a4e-footer-col--brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 24px;
  }

  .a4e-footer-col--brand .a4e-footer-tagline {
    max-width: none;
    margin: 0;
  }

  .a4e-footer-col--brand ul {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 10px;
  }

  .a4e-footer-col--brand .a4e-footer-app {
    margin: 0;
  }

  .a4e-footer-col--brand .a4e-footer-by {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
}

@media (max-width: 760px) {
  .a4e-footer-inner {
    padding: 40px 16px 24px;
  }

  .a4e-footer-grid,
  .a4e-footer--sikumit .a4e-footer-grid,
  .a4e-footer--vitrina .a4e-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .a4e-footer-col--brand {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Contact details are long: a whole row, so that nothing wraps oddly or leaves a hole. */
  .a4e-footer-col--contact,
  .a4e-footer-col--pay {
    grid-column: 1 / -1;
  }

  .a4e-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .a4e-footer {
    display: none;
  }
}
