/* ============================================
   FOOTER
   Brain & Mind Foundation WordPress Theme
   ============================================
   Navy background footer with 4-column grid,
   brand column, link columns, contact column,
   bottom bar, and responsive breakpoints.
   ============================================ */

.footer {
  background: var(--navy);
  padding: 80px 0 40px;
  position: relative;
}

/* Gradient line at top */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ============================================
   FOOTER GRID (4 columns)
   ============================================ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   FOOTER BRAND COLUMN
   ============================================ */
.footer-brand img {
  height: 42px;
  margin-bottom: 20px;
}

.footer-brand-text {
  font-size: 0.92rem;
  color: var(--text-light-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-verify {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-badge {
  display: inline-block;
  transition: opacity 0.3s ease;
}
.footer-badge:hover {
  opacity: 0.85;
}
.footer-badge img {
  width: 150px;
  height: auto;
  opacity: 0.9;
  filter: invert(100%);
}

/* Outranks `.footer-brand img` so the 42px logo height can't leak in;
   fixed 84×84 + object-fit keeps the QR square and scannable. */
.footer-brand img.footer-qr,
img.footer-qr {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--white);
  padding: 4px;
  margin-bottom: 0;
}

/* ============================================
   FOOTER COLUMN TITLES
   ============================================ */
.footer-col-title {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

/* ============================================
   FOOTER LINKS
   ============================================ */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--coral);
}

/* ============================================
   FOOTER CONTACT ITEMS
   ============================================ */
.footer-contact-text {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--coral);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ============================================
   FOOTER BOTTOM BAR
   ============================================ */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-light-muted);
  transition: color 0.3s ease;
}
.footer-legal a:hover {
  color: var(--coral);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer {
    padding: 60px 0 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  /* Identity and Contact are the tall, content-heavy blocks — give each a
     full-width row; the two short link lists pair up between them. */
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .footer-brand-text,
  .footer-contact-text {
    max-width: 560px;
  }
}

@media (max-width: 550px) {
  .footer {
    padding: 48px 0 28px;
  }
  /* Single column: hairlines turn the stack into scannable sections. */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-grid > div {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-grid > .footer-brand {
    border-top: none;
    padding-top: 0;
  }
  .footer-col-title {
    margin-bottom: 16px;
  }
  /* Bigger type + padding = comfortable tap targets. */
  .footer-links {
    gap: 4px;
  }
  .footer-links a {
    display: inline-block;
    font-size: 0.95rem;
    padding: 6px 0;
  }
  .footer-contact-item {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }
  /* Center-aligned on phones — a left-ragged stack looked lopsided. */
  .footer-grid > div {
    text-align: center;
  }
  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-brand-text,
  .footer-contact-text {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-verify {
    justify-content: center;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-links a {
    padding: 6px 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-top: 24px;
  }
}
