/* ===========================================
   Livo — Footer Styles v1.1.3
=========================================== */

.livo-footer {
  background: #0F0F11;
  color: #fff;
  margin-top: 0;
}

/* ═══════════════════════════════════════════
   Support Strip
═══════════════════════════════════════════ */
.livo-footer-strip {
  background: #161618;          /* slightly lighter than page but same dark family */
  border-bottom: 1px solid #222;
  border-top: 1px solid #222;   /* subtle separator from compat-sec */
}

.livo-footer-strip-inner {
  max-width: var(--livo-max-w, 1440px);
  margin: 0 auto;
  padding: 16px var(--livo-px, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.livo-footer-contacts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.livo-support-btn {
  display: flex;
  align-items: center;  /* fix: icons vertically centered */
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.livo-support-btn:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  color: #fff;
}

/* Icon circle wrapper */
.livo-support-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,74,0,.15);
  color: var(--acc, #FF4A00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.livo-support-label { font-weight: 600; font-size: 12px; color: #fff; line-height: 1.3; }
.livo-support-sub   { font-size: 10px; color: #999; margin-top: 1px; line-height: 1.2; }

/* App download widget — fixed flex alignment */
.livo-footer-app {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.livo-app-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  flex-shrink: 0;
}
.livo-app-label {
  font-size: 10px;
  color: #999;
  margin-bottom: 5px;
  font-weight: 500;
}


/* ═══════════════════════════════════════════
   Main Footer Grid
═══════════════════════════════════════════ */
.livo-footer-top {
  padding: 52px var(--livo-px, 24px) 40px;
  max-width: var(--livo-max-w, 1440px);
  margin: 0 auto;
}

.livo-footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Col 1: Brand ── */
.livo-footer-logo {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
  position: relative;
}
.livo-footer-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Social icons */
.livo-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.livo-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #2e2e32;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.livo-social-link:hover {
  border-color: var(--acc, #FF4A00);
  color: var(--acc, #FF4A00);
  background: rgba(255,74,0,.08);
}

/* Payment badges — proper flex row */
.livo-footer-payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.livo-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1e;
  border: 1px solid #2e2e32;
  border-radius: 7px;
  padding: 5px 10px;
  min-height: 34px;
  transition: border-color .2s;
}
.livo-pay-badge:hover { border-color: #444; }
.livo-pay-badge svg { display: block; }

/* Brand-specific overrides */
.livo-pay-visa  { background: #1A1F71; border-color: #1A1F71; padding: 6px 12px; }
.livo-pay-mc    { background: #1a1a1e; padding: 5px 10px; }
.livo-pay-apple { background: #111; border-color: #333; padding: 4px 12px; }
.livo-pay-gpay  { background: #fff; border-color: #ddd; padding: 4px 10px; }
.livo-pay-nova  { background: #CC0000; border-color: #AA0000; padding: 0; overflow: hidden; border-radius: 5px; }

/* ── Cols 2–4: Navigation ── */
.livo-footer-heading {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .8px;
  margin-bottom: 18px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Arrow — hidden on desktop */
.livo-acc-arrow { display: none; transition: transform .2s; }

.livo-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.livo-footer-list a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color .12s;
  line-height: 1.4;
}
.livo-footer-list a:hover { color: #fff; }
.livo-footer-all-link { color: var(--acc, #FF4A00) !important; font-weight: 600; }
.livo-footer-all-link:hover { color: #fff !important; }

.livo-footer-contacts li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 13px;
}
.livo-footer-contacts svg { flex-shrink: 0; color: #666; }
.livo-footer-contacts a { color: #aaa; text-decoration: none; transition: color .12s; }
.livo-footer-contacts a:hover { color: #fff; }

/* ── Bottom bar ── */
.livo-footer-bottom { border-top: 1px solid #1a1a1e; }
.livo-footer-bottom-inner {
  max-width: var(--livo-max-w, 1440px);
  margin: 0 auto;
  padding: 18px var(--livo-px, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.livo-footer-copy { font-size: 12px; color: #555; }
.livo-footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.livo-footer-legal a { color: #555; text-decoration: none; transition: color .12s; }
.livo-footer-legal a:hover { color: #fff; }
.livo-footer-legal span { color: #333; }

/* ═══════════════════════════════════════════
   Responsive — Tablet (≤ 1024px)
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .livo-footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .livo-footer-brand { grid-column: 1 / -1; } /* brand spans full width on tablet */
  .livo-footer-inner > .livo-footer-brand ~ .livo-footer-col {
    /* cols 2-4 become 3-col after brand */
  }
}

/* ═══════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   4 columns → vertical stacked accordion
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  .livo-footer { margin-top: 0; }

  /* ── Support strip: vertical stack ── */
  .livo-footer-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .livo-footer-contacts-row { gap: 6px; }
  .livo-support-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .livo-footer-app { display: none; } /* hide app download on mobile */

  /* ── Main footer: 1 column ── */
  .livo-footer-top { padding: 28px 16px 20px; }
  .livo-footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Brand col: compact */
  .livo-footer-brand {
    padding-bottom: 20px;
    border-bottom: 1px solid #1e1e22;
    margin-bottom: 4px;
    grid-column: auto;
  }
  .livo-footer-logo  { font-size: 28px; margin-bottom: 10px; }
  .livo-footer-desc  { font-size: 12px; margin-bottom: 14px; }

  /* ── Accordion: show toggle arrows ── */
  .livo-acc-arrow { display: block; flex-shrink: 0; }

  .livo-footer-heading.livo-acc-hd {
    cursor: pointer;
    padding: 14px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #1e1e22;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .livo-acc-hd.open .livo-acc-arrow {
    transform: rotate(180deg);
  }

  /* Accordion body — collapsed by default */
  .livo-acc-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
    margin: 0;
  }
  .livo-acc-body.open {
    max-height: 600px; /* large enough for any list */
  }
  /* Content padding when open */
  ul.livo-acc-body.open,
  div.livo-acc-body.open {
    padding: 14px 0 10px;
    border-bottom: 1px solid #1e1e22;
  }

  /* Bottom bar: stack */
  .livo-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 8px;
  }
  .livo-footer-legal { gap: 8px; }
}
