/* =====================================================================
   Algaita — Site footer
   All classes are prefixed ft- so they never clash with page styles
===================================================================== */

.ft {
  --ft-bg: #07080c;
  --ft-surface: #141822;
  --ft-line: rgba(255, 255, 255, 0.08);
  --ft-text: #f4f5f7;
  --ft-muted: #8f98aa;
  --ft-accent: #f5b301;

  margin-top: 56px;
  border-top: 1px solid var(--ft-line);
  background: var(--ft-bg);
  color: var(--ft-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.ft-inner {
  max-width: 1240px;
  margin: 0 auto;
  /* extra bottom space so floating buttons (WhatsApp, pay bar) never cover the footer */
  padding: 40px 16px calc(88px + env(safe-area-inset-bottom, 0px));
}

.ft-icon,
.ft-brand {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}

.ft a:focus-visible {
  outline: 2px solid var(--ft-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Top area ---------- */
.ft-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 20px;
}

.ft-about {
  grid-column: 1 / -1;
}

.ft-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ft-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--ft-surface);
}

.ft-about p {
  max-width: 380px;
  margin: 14px 0 18px;
  color: var(--ft-muted);
  font-size: 14px;
  line-height: 1.65;
}

.ft-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ft-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--ft-line);
  border-radius: 12px;
  background: var(--ft-surface);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.ft-app small {
  display: block;
  color: var(--ft-muted);
  font-size: 11px;
  font-weight: 500;
}

.ft-app .ft-icon,
.ft-app .ft-brand {
  width: 24px;
  height: 24px;
  color: var(--ft-accent);
}

.ft-app:hover {
  border-color: rgba(245, 179, 1, 0.45);
  background: #1c2130;
  color: #fff;
}

/* ---------- Link columns ---------- */
.ft-col h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ft-col ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-col a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ft-muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.ft-col a:hover,
.ft-col a[aria-current] {
  color: var(--ft-accent);
}

/* ---------- Bottom bar ---------- */
.ft-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ft-line);
  text-align: center;
}

.ft-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  background: var(--ft-surface);
  color: var(--ft-muted);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.ft-social a:hover {
  transform: translateY(-2px);
  color: #fff;
}

.ft-social .is-facebook:hover  { background: #1877f2; border-color: #1877f2; }
.ft-social .is-tiktok:hover    { background: #000;    border-color: #ff0050; }
.ft-social .is-youtube:hover   { background: #ff0000; border-color: #ff0000; }
.ft-social .is-telegram:hover  { background: #26a5e4; border-color: #26a5e4; }
.ft-social .is-whatsapp:hover  { background: #25d366; border-color: #25d366; }
.ft-social .is-instagram:hover { background: #e4405f; border-color: #e4405f; }
.ft-social .is-x:hover         { background: #000;    border-color: #fff; }

.ft-social .ft-brand {
  width: 19px;
  height: 19px;
}

.ft-copy {
  margin: 0;
  color: var(--ft-muted);
  font-size: 13.5px;
}

.ft-top-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ft-line);
  border-radius: 12px;
  color: var(--ft-muted);
  transition: color 0.2s, border-color 0.2s;
}

.ft-top-btn:hover {
  border-color: rgba(245, 179, 1, 0.45);
  color: var(--ft-accent);
}

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .ft-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .ft-inner {
    padding-top: 56px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .ft-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .ft-about {
    grid-column: auto;
  }

  .ft-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .ft-social {
    order: 2;
  }

  .ft-copy {
    order: 1;
  }

  .ft-top-btn {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft * {
    transition: none !important;
  }
}

/* "Install App" button (shown only when the phone can install the app) */
.ft-install {
  border-color: rgba(245, 179, 1, 0.45);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.ft-install .ft-icon {
  color: var(--hp-accent, #f5b301);
}

.ft-install[hidden] {
  display: none;
}
