/* ============================================================
   IDF Kenya — Footer Component
   Watermark layout — no logo, CTA button.
   All rules scoped to .site-footer and its children.
   ============================================================ */

/* Outer shell — position:relative anchors the watermark */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg, var(--idf-navy-dark));
  font-family: var(--font-sans);
  color: var(--idf-white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Typographic watermark ── */
.footer-watermark {
  position: absolute;
  bottom: 0;
  height: 0.85em;            /* crops the glyph base at the footer edge */
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 14rem);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

/* ── Grid ── */
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.5fr 1fr;
  gap: 4rem 3rem;
  padding: 5rem 0 4rem;
}

/* ── Brand column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 320px;
}

.footer-brand-name {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-link {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.footer-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-brand-link:hover .footer-brand-logo,
.footer-brand-link:focus-visible .footer-brand-logo {
  opacity: 1;
}

.footer-brand-primary {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--idf-white);
  letter-spacing: -0.01em;
  line-height: 1;
}

.footer-brand-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-weight: 300;
}

/* ── CTA button — base in global.css (.cta-btn-green) ── */
.footer-brand .cta-btn-green { margin-top: 0.25rem; }

/* ── Column headings ── */
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--idf-white);
  margin: 0 0 1.5rem 0;
}

/* ── Social links with text labels ── */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 400;
}
.social-link:hover {
  color: var(--idf-white);
  transform: translateX(4px);
}
.social-link svg { flex-shrink: 0; }
.social-link-label { line-height: 1; }

/* ── Back to top ── */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: fit-content;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--idf-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top__icon { transition: transform var(--transition-fast); }
.back-to-top:hover .back-to-top__icon { transform: translateY(-2px); }

/* ── Bottom bar ── */
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover { color: var(--idf-white); }

.footer-separator { color: rgba(255, 255, 255, 0.15); }
.footer-copyright  { color: rgba(255, 255, 255, 0.35); }
.footer-bottom-right { margin: 0; font-weight: 300; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0 2.5rem;
  }
  .footer-watermark {
    font-size: clamp(5rem, 20vw, 10rem);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand { max-width: 100%; }
  .footer-watermark {
    font-size: clamp(3.5rem, 22vw, 6rem);
  }
}
/* ---- Nav links ---- */
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  font-style: normal;
}
.footer-link:hover {
  color: var(--idf-white);
  transform: translateX(4px);
}

/* ---- Contact ---- */
.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-link--contact {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
}
.footer-link--contact:hover { color: var(--idf-white); transform: none; }
.footer-link__text { line-height: 1.4; font-style: normal; }
.footer-address-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
}
