/* Footer Styles
 * Uses BEM methodology for maintainable, modular CSS architecture
 * Designed to be responsive across mobile, tablet, and desktop viewports
 */

.site-footer {
  background-color: #0f172a;
  color: #ffffff;
}

.site-footer__container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  justify-items: start;
}

/* Tablet layout: 2-column grid for better content distribution */
@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop layout: 3-column grid for balanced content distribution */
@media (min-width: 934px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / 2;
  }

  .site-footer__links {
    grid-column: 2 / 3;
  }

  .site-footer__contact {
    grid-column: 3 / 4;
  }
}

.site-footer__brand {
  align-self: start;
  margin-left: 0;
}

.site-footer__brand-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
  position: relative;
}

/* Logo positioned absolutely to maintain consistent alignment
 * regardless of text wrapping or font loading delays
 */
.site-footer__brand-logo {
  height: 1.5rem;
  width: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Title padded to accommodate absolutely positioned logo */
.site-footer__brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding-left: 2rem;
}

/* Brand description with relaxed line-height for readability
 * Max-width prevents excessively long lines on wide screens
 */
.site-footer__brand-text {
  color: #e2e8f0;
  line-height: 1.625;
  max-width: 28rem;
  margin: 0;
}

.site-footer__section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
}

.site-footer__links {
  align-self: start;
  width: 100%;
}

/* Links arranged in grid for better organization
 * Single column on mobile, dual columns on larger screens
 */
.site-footer__links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Links stay in a single column on tablets */
@media (min-width: 768px) and (max-width: 933px) {
  .site-footer__links-list {
    grid-template-columns: 1fr;
  }
}

/* Two-column layout for links on desktop */
@media (min-width: 934px) {
  .site-footer__links-list {
    grid-template-columns: repeat(2, 1fr);
  }
} 

.site-footer__links-item {
  margin: 0;
}

/* Link styling with smooth transitions for better UX
 * Inline-block ensures consistent clickable areas
 */
.site-footer__link {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  display: inline-block;
}

/* Hover state uses brand accent color for consistency */
.site-footer__link:hover {
  color: #fb7185;
}

.site-footer__contact {
  align-self: start;
}

/* Contact info styled smaller to establish visual hierarchy
 * while maintaining readability
 */
.site-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.site-footer__contact-item {
  margin: 0 0 0.5rem 0;
}

/* Icons use brand accent color to draw attention
 * and create visual connection with interactive elements
 */
.site-footer__icon {
  color: #fb7185;
  margin-right: 0.5rem;
}

/* Bottom section visually separated with subtle border
 * Centered text creates formal, professional appearance
 */
.site-footer__bottom {
  border-top: 1px solid #1f2937;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

/* Copyright text muted to de-emphasize legal boilerplate
 * while maintaining necessary visibility
 */
.site-footer__copyright {
  color: #94a3b8;
  margin: 0;
}
