/* =========================================================
   Uxelio Footer
   Full-width footer. Background = the header: white in light mode, #111214 in dark mode.
   Desktop: 4 columns with dividers.  Tablet: 2 columns.  Phone: stacked, sections open and close.
   Dark mode switch (same as Uxelio Home): html[data-uxelio-mode="dark"], body.dark, body.aft-dark-mode
   ========================================================= */

/* the theme's own footer is hidden (only when this footer is on the page) */
body.uxelio-footer-on .site-footer { display: none !important; }

/* ---------- colours (light mode: white, same as the header) ---------- */
.uxelio-footer {
  --uf-bg: #ffffff;
  --uf-fg: #111214;
  --uf-text: #3a3f4a;
  --uf-muted: #6b7280;
  --uf-line: #e5e7eb;
  --uf-accent: #0b86ff;
  --uf-hover: #0a63d6;
  --uf-link: #0a63d6;
  --uf-field: #f4f5f7;
  --uf-fieldline: #d3d8e0;
  --uf-ok: #12804a;
  --uf-err: #c0392b;
  --uf-note-bg: rgba(255, 176, 32, .18);
  --uf-note: #8a5a00;
}
/* ---------- colours (dark mode: the same dark as the header, #111214) ---------- */
:is(html[data-uxelio-mode="dark"], body.dark, body.aft-dark-mode) .uxelio-footer,
.uxelio-footer.uxelio-footer--always-dark {
  --uf-bg: #111214;
  --uf-fg: #ffffff;
  --uf-text: #e5e7eb;
  --uf-muted: #9aa0a6;
  --uf-line: rgba(255, 255, 255, .12);
  --uf-hover: #5db0ff;
  --uf-link: #4aa3ff;
  --uf-field: rgba(255, 255, 255, .06);
  --uf-fieldline: rgba(255, 255, 255, .2);
  --uf-ok: #46d38a;
  --uf-err: #ff8a80;
  --uf-note-bg: rgba(255, 176, 32, .14);
  --uf-note: #ffd27a;
}

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

.uxelio-footer {
  clear: both;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  background: var(--uf-bg);
  color: var(--uf-text);
  border-top: 1px solid var(--uf-line);
  font-size: 15px;
  line-height: 1.5;
}
.uxelio-footer a { text-decoration: none; box-shadow: none; }
.uxelio-footer ul,
.uxelio-footer li { margin: 0; padding: 0; list-style: none; }
.uxelio-footer li::before { content: none; }
.uxelio-footer p { margin: 0; }

/* ---------- the card: full width, plain background like the header ---------- */
.uxelio-footer__card {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--uf-bg);
  color: var(--uf-text);
}

/* the content stays in the same 1172px container as the rest of the site */
.uxelio-footer__inner { position: relative; max-width: 1172px; margin: 0 auto; padding: 24px 16px 20px; }

/* ---------- layout: phone = one column ---------- */
.uxelio-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.uxelio-footer__col { min-width: 0; }

/* brand */
.uxelio-footer__about { padding-bottom: 14px; }
.uxelio-footer__brand { display: inline-block; line-height: 0; }
.uxelio-footer__logo { display: block; width: 150px; max-width: 100%; height: auto; margin: 0; border: 0; }
.uxelio-footer__logo--on-dark { display: none; }
:is(html[data-uxelio-mode="dark"], body.dark, body.aft-dark-mode) .uxelio-footer .uxelio-footer__logo--on-light,
.uxelio-footer--always-dark .uxelio-footer__logo--on-light { display: none; }
:is(html[data-uxelio-mode="dark"], body.dark, body.aft-dark-mode) .uxelio-footer .uxelio-footer__logo--on-dark,
.uxelio-footer--always-dark .uxelio-footer__logo--on-dark { display: block; }

.uxelio-footer__desc { margin-top: 12px; max-width: 460px; color: var(--uf-text); font-size: 15px; line-height: 1.55; }

/* social icons: round, brand colours */
.uxelio-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.uxelio-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  transition: transform .2s ease, filter .2s ease;
}
.uxelio-footer__social a:hover,
.uxelio-footer__social a:focus-visible { transform: translateY(-2px); filter: brightness(1.12); }
.uxelio-footer__social a.is-youtube   { background: #ff0000; }
.uxelio-footer__social a.is-facebook  { background: #1877f2; }
.uxelio-footer__social a.is-x         { background: #000000; }
:is(html[data-uxelio-mode="dark"], body.dark, body.aft-dark-mode) .uxelio-footer__social a.is-x,
.uxelio-footer--always-dark .uxelio-footer__social a.is-x { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.uxelio-footer__social a.is-telegram  { background: #2aabee; }
.uxelio-footer__social a.is-whatsapp  { background: #25d366; }
.uxelio-footer__social a.is-instagram { background: linear-gradient(45deg, #f9a24a, #e1306c 55%, #7b3fe4); }
.uxelio-footer__social a.is-linkedin  { background: #0a66c2; }
.uxelio-footer__social a.is-pinterest { background: #e60023; }

/* section titles (a button, so the sections can open and close on phones) */
.uxelio-footer .uxelio-footer__title { margin: 0; padding: 0; font: inherit; letter-spacing: 0; text-transform: none; }
.uxelio-footer .uxelio-footer__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 11px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--uf-fg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}
.uxelio-footer .uxelio-footer__toggle:focus-visible { outline: 2px solid var(--uf-accent); outline-offset: 2px; }
.uxelio-footer__ico { display: inline-flex; flex: 0 0 auto; color: var(--uf-fg); }
.uxelio-footer__label { flex: 1 1 auto; min-width: 0; }
.uxelio-footer__chev { display: inline-flex; flex: 0 0 auto; color: var(--uf-fg); transition: transform .2s ease; }
.uxelio-footer__col.is-open .uxelio-footer__chev { transform: rotate(180deg); }

/* phone: each section is a row with a line above it */
.uxelio-footer__quick,
.uxelio-footer__cats,
.uxelio-footer__news { border-top: 1px solid var(--uf-line); }
.uxelio-footer__panel { padding: 2px 0 12px; }
/* phone + JavaScript: closed sections are hidden (without JavaScript everything stays open) */
.uxelio-footer.is-ready .uxelio-footer__col[data-uxf-sec]:not(.is-open) .uxelio-footer__panel { display: none; }

/* link lists */
.uxelio-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--uf-text);
  font-size: 15px;
  line-height: 1.35;
  transition: color .2s ease;
}
.uxelio-footer__links a svg { flex: 0 0 auto; }
.uxelio-footer__links--icons a svg { color: var(--uf-fg); }
.uxelio-footer__links a:hover,
.uxelio-footer__links a:focus-visible { color: var(--uf-hover); }

/* newsletter */
.uxelio-footer__newstext { margin: 0 0 12px; color: var(--uf-text); font-size: 15px; line-height: 1.5; }
.uxelio-footer__form { margin: 0; padding: 0; }
.uxelio-footer__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.uxelio-footer__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.uxelio-footer__field { position: relative; }
.uxelio-footer__field svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--uf-fg); pointer-events: none; }
.uxelio-footer .uxelio-footer__field input[type="email"] {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px 0 46px;
  border: 1px solid var(--uf-fieldline);
  border-radius: 14px;
  background: var(--uf-field);
  box-shadow: none;
  color: var(--uf-fg);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
}
.uxelio-footer .uxelio-footer__field input[type="email"]::placeholder { color: var(--uf-muted); opacity: 1; }
.uxelio-footer .uxelio-footer__field input[type="email"]:focus { outline: 2px solid var(--uf-accent); outline-offset: 1px; border-color: var(--uf-accent); }
.uxelio-footer .uxelio-footer__btn {
  display: block;
  width: 100%;
  height: 46px;
  margin: 10px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a98ff 0%, #0a72ff 100%);
  box-shadow: 0 6px 18px rgba(10, 114, 255, .35);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.uxelio-footer .uxelio-footer__btn:hover:not(:disabled),
.uxelio-footer .uxelio-footer__btn:focus-visible { filter: brightness(1.1); }
.uxelio-footer .uxelio-footer__btn:disabled,
.uxelio-footer .uxelio-footer__field input:disabled { opacity: .55; cursor: not-allowed; }
.uxelio-footer__msg { margin-top: 10px; font-size: 13px; line-height: 1.45; }
.uxelio-footer__msg.is-ok { color: var(--uf-ok); }
.uxelio-footer__msg.is-error { color: var(--uf-err); }
/* a form given by a shortcode: keep it tidy */
.uxelio-footer__sc input[type="email"],
.uxelio-footer__sc input[type="text"] { width: 100%; max-width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--uf-fieldline); border-radius: 14px; background: var(--uf-field); color: var(--uf-fg); }
.uxelio-footer__sc button,
.uxelio-footer__sc input[type="submit"] { width: 100%; height: 46px; margin-top: 10px; border: 0; border-radius: 14px; background: #0a72ff; color: #fff; font-weight: 700; cursor: pointer; }

/* notes for the admin and the optional affiliate disclosure */
.uxelio-footer__note {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--uf-note-bg);
  color: var(--uf-note);
  font-size: 12px;
  line-height: 1.5;
}
.uxelio-footer__note a { color: inherit; text-decoration: underline; }
.uxelio-footer__disclosure { margin-top: 16px; color: var(--uf-muted); font-size: 12px; line-height: 1.6; }

/* ---------- bottom bar ---------- */
.uxelio-footer__bar {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--uf-line);
  text-align: center;
}
.uxelio-footer__copy { color: var(--uf-text); font-size: 13px; line-height: 1.5; }
.uxelio-footer__copy a {
  color: var(--uf-link);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color .2s ease, text-decoration-color .2s ease, opacity .15s ease;
}
.uxelio-footer__copy a:hover,
.uxelio-footer__copy a:focus-visible { color: var(--uf-hover); text-decoration-color: currentColor; }
.uxelio-footer__copy a:active { opacity: .65; }
.uxelio-footer__mini { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.uxelio-footer__mini li { padding: 0 9px; border-left: 1px solid var(--uf-line); line-height: 1.2; }
.uxelio-footer__mini li:first-child { border-left: 0; }
.uxelio-footer__mini a { color: var(--uf-text); font-size: 12px; transition: color .2s ease; }
.uxelio-footer__mini a:hover,
.uxelio-footer__mini a:focus-visible { color: var(--uf-hover); }

/* ---------- tablet: two columns ---------- */
@media (min-width: 768px) {
  .uxelio-footer__inner { padding: 34px 24px 22px; }
  .uxelio-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
  .uxelio-footer__about { order: 1; padding: 0; }
  .uxelio-footer__news { order: 2; border-top: 0; }
  .uxelio-footer__quick { order: 3; }
  .uxelio-footer__cats { order: 4; }
  .uxelio-footer__quick,
  .uxelio-footer__cats { border-top: 1px solid var(--uf-line); padding-top: 24px; }

  /* titles are plain headings here, with a blue bar */
  .uxelio-footer .uxelio-footer__toggle { padding: 0 0 14px; font-size: 20px; cursor: default; pointer-events: none; }
  .uxelio-footer .uxelio-footer__toggle::before { content: ""; flex: 0 0 4px; height: 24px; border-radius: 2px; background: var(--uf-accent); }
  .uxelio-footer__ico,
  .uxelio-footer__chev { display: none; }
  /* everything is open */
  .uxelio-footer.is-ready .uxelio-footer__col[data-uxf-sec]:not(.is-open) .uxelio-footer__panel { display: block; }
  .uxelio-footer__panel { padding: 0; }

  .uxelio-footer__logo { width: 170px; }
  .uxelio-footer__desc { margin-top: 14px; font-size: 16px; }
  .uxelio-footer__social { margin-top: 18px; gap: 12px; }
  .uxelio-footer__social a { width: 38px; height: 38px; }
  .uxelio-footer__links a { padding: 5px 0; font-size: 16px; }
  .uxelio-footer__newstext { font-size: 16px; }
  .uxelio-footer .uxelio-footer__field input[type="email"],
  .uxelio-footer .uxelio-footer__btn { height: 50px; }
  .uxelio-footer .uxelio-footer__btn { font-size: 17px; }

  .uxelio-footer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 28px;
    padding-top: 18px;
    text-align: left;
  }
  .uxelio-footer__copy { font-size: 14px; }
  .uxelio-footer__mini { justify-content: flex-end; margin-top: 0; }
  .uxelio-footer__mini li { padding: 0 12px; }
  .uxelio-footer__mini li:last-child { padding-right: 0; }
  .uxelio-footer__mini a { font-size: 14px; }
}

/* ---------- desktop: four columns with dividers ---------- */
@media (min-width: 992px) {
  .uxelio-footer__inner { padding: 44px 16px 24px; }
  .uxelio-footer__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; }
  .uxelio-footer__about,
  .uxelio-footer__quick,
  .uxelio-footer__cats,
  .uxelio-footer__news { order: 0; }
  .uxelio-footer__quick,
  .uxelio-footer__cats,
  .uxelio-footer__news { border-top: 0; border-left: 1px solid var(--uf-line); padding: 0 0 0 36px; }
  .uxelio-footer__about { padding-right: 36px; }
  .uxelio-footer__cats { padding-right: 12px; }
  .uxelio-footer__quick { padding-right: 12px; }
  .uxelio-footer .uxelio-footer__toggle { font-size: 22px; }
  .uxelio-footer__logo { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .uxelio-footer *,
  .uxelio-footer *::before { transition: none !important; }
}
