/* =============================================================================
   footer.css — Shared site footer
   ============================================================================= */

.site-footer {
  background: var(--brand-black);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

/* Transparent on desktop/tablet: its three columns act as direct grid items
   of .footer-grid, exactly as before this wrapper existed. Mobile turns it
   into its own 3-column row so Explore / Care / Visit Us sit side by side
   under the full-width brand block instead of stacking one under another. */
.footer-links {
  display: contents;
}

.footer-brand .footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--brand-yellow);
  margin-bottom: 0.9rem;
}

.footer-about {
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-white);
  margin-bottom: 1.1rem;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-list a,
.footer-list span {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-list a:hover {
  color: var(--brand-yellow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Center everything in the mobile footer: brand block, the three link
     columns, and the copyright line. */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-about {
    max-width: 30ch;
  }

  /* Columns size to their content so Visit Us (longest lines, the unbreakable
     email) gets the extra width instead of three equal thirds. */
  .footer-links {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-links .footer-list {
    justify-items: center;
  }

  .footer-links .footer-heading {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
  }

  /* Tight line-height on the item itself keeps a wrapped item's lines together;
     the larger gap keeps the spacing between items as it was. */
  .footer-links .footer-list {
    gap: 1.15rem;
  }

  .footer-links .footer-list li {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .footer-links .footer-list a,
  .footer-links .footer-list span {
    font-size: 0.76rem;
    line-height: 1.35;
    overflow-wrap: break-word;
  }

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