/* =====================================================
   NAMIREMBE GUESTHOUSE -- FOOTER
   ===================================================== */

.site-footer {
  background: var(--color-earth);
  color: var(--color-ivory-dark);
  padding-top: var(--space-20);
  position: relative;
  overflow: hidden;
}

/* Decorative background pattern */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--texture-grain);
  background-size: 256px 256px;
  opacity: 0.6;
  pointer-events: none;
}

/* Decorative top border */
.site-footer__border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
}

/* "-"- FOOTER BODY "-"- */
.footer-body {
  position: relative;
  z-index: 1;
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-bottom: var(--space-16);
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-12);
}

/* "-"- BRAND COLUMN "-"- */
.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.footer-logo__mark {
  width: 44px;
  height: 44px;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.footer-logo__text {}

.footer-logo__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-ivory);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  display: block;
}

.footer-logo__sub {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-ochre-light);
  display: block;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: rgba(251, 246, 250, 0.60);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 30ch;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(251, 246, 250, 0.08);
  border: 1px solid rgba(251, 246, 250, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ivory-dark);
  transition: var(--transition-base);
}

.footer-social-link:hover {
  background: var(--color-ochre);
  border-color: var(--color-ochre);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

/* Contact info */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: rgba(251, 246, 250, 0.70);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

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

.footer-contact-item a {
  color: rgba(251, 246, 250, 0.70);
  transition: var(--transition-color);
}

.footer-contact-item a:hover {
  color: var(--color-ochre-light);
}

/* "-"- NAV COLUMNS "-"- */
.footer-col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-ochre-light);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(193, 127, 36, 0.25);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-link {
  font-size: var(--text-sm);
  color: rgba(251, 246, 250, 0.65);
  transition: var(--transition-color);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-nav-link::before {
  content: '';
  display: block;
  width: 6px;
  height: 1px;
  background: var(--color-ochre);
  opacity: 0;
  transition: opacity var(--duration-fast), transform var(--duration-base);
  transform: scaleX(0);
}

.footer-nav-link:hover {
  color: var(--color-ochre-light);
}

.footer-nav-link:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* "-"- NEWSLETTER "-"- */
.footer-newsletter {
  margin-top: var(--space-6);
}

.footer-newsletter p {
  font-size: var(--text-sm);
  color: rgba(251, 246, 250, 0.65);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.625rem 1rem;
  background: rgba(251, 246, 250, 0.08);
  border: 1px solid rgba(251, 246, 250, 0.15);
  border-radius: var(--radius-md);
  color: var(--color-ivory);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: border-color var(--duration-fast);
  min-height: 44px;
}

.footer-newsletter-input::placeholder {
  color: rgba(251, 246, 250, 0.35);
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--color-ochre);
  background: rgba(251, 246, 250, 0.12);
}

.footer-newsletter-btn {
  padding: 0.625rem 1.25rem;
  background: var(--gradient-gold);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: var(--transition-base);
}

.footer-newsletter-btn:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* "-"- FOOTER BOTTOM "-"- */
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(251, 246, 250, 0.10);
  padding-block: var(--space-5);
}

.footer-bottom-inner {
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(251, 246, 250, 0.40);
}

.footer-copy a {
  color: rgba(251, 246, 250, 0.40);
  transition: var(--transition-color);
}

.footer-copy a:hover {
  color: var(--color-ochre-light);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-4);
}

.footer-legal-link {
  font-size: var(--text-xs);
  color: rgba(251, 246, 250, 0.40);
  transition: var(--transition-color);
}

.footer-legal-link:hover {
  color: var(--color-ochre-light);
}

/* "-"- RESPONSIVE FOOTER "-"- */
@media (max-width: 1023px) {
  .footer-body {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 767px) {
  .footer-body {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-inline: var(--space-4);
  }

  .footer-brand {
    grid-column: auto;
    max-width: 100%;
  }

  .footer-tagline { max-width: 100%; }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────
   DARK MODE: Keep footer colours identical to light mode
   The footer is always dark (deep plum). In dark mode the
   theme-wide tokens flip (--color-earth → white) so we
   pin background AND text explicitly.
   ───────────────────────────────────────────────────────── */
.theme-dark .site-footer,
:root.dark-mode .site-footer {
  background: #1E0D1A !important;
  color: #E8D5E4 !important;
}

@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) .site-footer {
    background: #1E0D1A !important;
    color: #E8D5E4 !important;
  }
}

/* Pin footer brand name to light text in dark mode */
.theme-dark .site-footer .footer-logo__name,
:root.dark-mode .site-footer .footer-logo__name,
.theme-dark .site-footer .footer-brand-text strong,
:root.dark-mode .site-footer .footer-brand-text strong {
  color: #FDF8FC !important;
}

.theme-dark .site-footer .footer-logo__sub,
:root.dark-mode .site-footer .footer-logo__sub,
.theme-dark .site-footer .footer-brand-text span,
:root.dark-mode .site-footer .footer-brand-text span {
  color: var(--color-ochre-light) !important;
}




