/* ============================================================
   footer.css — Plotrixx Global Footer
   Include this in every page:
   <link rel="stylesheet" href="../css/footer.css" />
   ============================================================ */

/* ─── BASE ──────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 48px 28px;
  transition: background 0.4s ease;
}

/* ─── DESKTOP GRID ──────────────────────────────────────────── */
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-wrap img { height: 36px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25)); }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.footer-brand .fn {
  font-style: italic;
  background: linear-gradient(135deg, #2fc99a, #1e9e70);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand .fs {
  background: linear-gradient(135deg, #d4a030, #b8892a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: var(--ink3);
  font-weight: 300;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--ink); }

/* ─── BOTTOM BAR ────────────────────────────────────────────── */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink3);
}

/* ─── TABLET (≤ 900px) ──────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── MOBILE (≤ 600px) — compact accordion ──────────────────── */
@media (max-width: 600px) {
  footer {
    padding: 24px 20px 16px;
  }

  /* Hide desktop grid */
  .footer-grid {
    display: none;
  }

  /* Show mobile layout */
  .footer-mobile {
    display: flex !important;
    flex-direction: column;
  }

  /* Logo row */
  .footer-mobile-top {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
  }
  .footer-mobile-top .footer-logo-wrap {
    margin-bottom: 0;
  }

  /* Accordion groups */
  .footer-mobile-group {
    border-top: 1px solid var(--border);
  }
  .footer-mobile-group:last-of-type {
    border-bottom: 1px solid var(--border);
  }
  .footer-mobile-group summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink3);
    cursor: pointer;
    list-style: none;
    user-select: none;
  }
  .footer-mobile-group summary::-webkit-details-marker { display: none; }
  .footer-mobile-group .footer-chevron {
    font-size: 10px;
    color: var(--ink3);
    transition: transform 0.25s ease;
    display: inline-block;
  }
  .footer-mobile-group[open] .footer-chevron {
    transform: rotate(180deg);
  }
  .footer-mobile-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
  }
  .footer-mobile-group ul li a {
    font-size: 13px;
    color: var(--ink3);
    font-weight: 300;
  }

  /* Bottom bar stacks on mobile */
  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
  }
}