/* ============================================
   NOMADCOMPASS - FOOTER STYLES
   Four-column footer with newsletter signup
   ============================================ */

/* --------------------------------------------
   FOOTER CONTAINER
   Dark slate background
   -------------------------------------------- */
.footer {
  background-color: var(--color-forest);
  color: var(--color-white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

/* --------------------------------------------
   FOOTER GRID
   Four columns on desktop, stacked on mobile
   -------------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

/* Two columns on tablet */
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Four columns on desktop */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-8);
  }
}

/* --------------------------------------------
   FOOTER COLUMN STYLES
   Headings and link lists
   -------------------------------------------- */
.footer-column {
  /* Base styling for each column */
}

/* Column headings */
.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

/* About column - logo and description */
.footer-about {
  /* First column has more content */
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-white);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  transition: transform var(--transition-fast);
}

.footer-logo * {
  text-decoration: none !important;
}

.footer-logo:hover {
  transform: scale(1.02);
}

/* Logo icon */
.footer-logo-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-fast);
}

.footer-logo:hover .footer-logo-icon {
  transform: rotate(-8deg) scale(1.05);
}

/* "Nomad" text styling - white on dark footer */
.footer-logo-nomad {
  font-weight: 700;
  color: var(--color-white, #ffffff);
  letter-spacing: -0.5px;
}

/* "Compass" accent styling */
.footer-logo-accent {
  font-weight: 700;
  color: #e74c3c;
  letter-spacing: -0.5px;
  transition: color var(--transition-fast);
}

.footer-logo:hover .footer-logo-accent {
  color: #ff6b6b;
}

.footer-description {
  font-size: var(--text-base);
  color: var(--color-forest-muted);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* --------------------------------------------
   FOOTER LINK LISTS
   Navigation links in each column
   -------------------------------------------- */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-link {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* --------------------------------------------
   NEWSLETTER SIGNUP
   Email input with subscribe button
   -------------------------------------------- */
.footer-newsletter {
  /* Newsletter column */
}

.footer-newsletter-text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

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

/* Stack on mobile, row on larger screens */
@media (min-width: 480px) {
  .footer-newsletter-form {
    flex-direction: row;
  }
}

.footer-newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  min-width: 0; /* Prevent flex overflow */
}

.footer-newsletter-input::placeholder {
  color: var(--color-stone);
}

.footer-newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.4);
}

.footer-newsletter-btn {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  background-color: var(--color-terracotta);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}

.footer-newsletter-btn:hover {
  background-color: var(--color-terracotta-dark);
}

/* --------------------------------------------
   SOCIAL MEDIA LINKS
   Icon links in a row
   -------------------------------------------- */
.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--text-lg);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

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

/* Social icon SVGs */
.footer-social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------
   FOOTER BOTTOM
   Affiliate disclosure and copyright
   -------------------------------------------- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
}

/* Affiliate disclosure */
.footer-disclosure {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* Copyright line */
.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 0;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-copyright a:hover {
  color: var(--color-terracotta-light);
}
