/* assets/css/footer.css */
.footer {
  background-color: #efefef;
  padding: 3rem 0;
  font-size: 0.9rem;
  color: #000;
}

.footerContainer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
}

.footerTopSection {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.footerNav {
  display: flex;
  gap: 3rem;
}

.footerNavLink {
  font-weight: 800;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footerNavLink:hover {
  color: #000;
}

.footerSeparator {
  width: 100%;
  height: 2px;
  background-color: #333;
  margin-bottom: 1.5rem;
}

.footerBottomSection {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footerInfoRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footerCompanyName {
  font-weight: 800;
  font-size: 1rem;
}

.footerAddress {
  font-weight: 600;
}

.footerLabel {
  font-weight: 800;
}

.footerValue {
  font-weight: 600;
}

.footerDivider {
  margin: 0 0.5rem;
  font-weight: 400;
}

.footerEmailLink {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 600;
}

.footerCopyright {
  font-weight: 700;
  margin-top: 0.2rem;
}

.footerSeoText {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer: 낮은 높이에서 Contact와 함께 한 화면에 보이도록 */
@media (max-height: 900px) {
  .footer {
    padding: 2rem 0;
  }
  .footerTopSection {
    margin-bottom: 0.75rem;
  }
  .footerSeparator {
    margin-bottom: 1rem;
  }
  .footerBottomSection {
    gap: 0.35rem;
  }
}

@media (max-height: 750px) {
  .footer {
    padding: 1.25rem 0;
  }
  .footerTopSection {
    margin-bottom: 0.5rem;
  }
  .footerNav {
    gap: 2rem;
  }
  .footerNavLink {
    font-size: 0.9rem;
  }
  .footerSeparator {
    margin-bottom: 0.75rem;
  }
  .footerBottomSection {
    gap: 0.25rem;
  }
  .footerCompanyName,
  .footerAddress,
  .footerLabel,
  .footerValue,
  .footerCopyright {
    font-size: 0.85rem;
  }
  .footerEmailLink {
    font-size: 0.85rem;
  }
}

@media (max-height: 600px) {
  .footer {
    padding: 0.75rem 0;
  }
  .footerTopSection {
    margin-bottom: 0.35rem;
  }
  .footerNav {
    gap: 1.25rem;
  }
  .footerNavLink {
    font-size: 0.75rem;
  }
  .footerSeparator {
    height: 1px;
    margin-bottom: 0.5rem;
  }
  .footerBottomSection {
    gap: 0.2rem;
  }
  .footerCompanyName,
  .footerAddress,
  .footerLabel,
  .footerValue,
  .footerCopyright {
    font-size: 0.7rem;
  }
  .footerEmailLink {
    font-size: 0.7rem;
  }
  .footerCopyright {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 1rem 0 1.5rem;
    margin-top: 1rem;
  }

  .footerTopSection {
    justify-content: flex-start;
    margin-bottom: 0.5rem;
  }

  .footerNav {
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .footerNav::-webkit-scrollbar {
    display: none;
  }

  .footerNavLink {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .footerSeparator {
    margin-bottom: 0.75rem;
  }

  .footerBottomSection {
    gap: 0.25rem;
  }

  .footerInfoRow {
    gap: 0.25rem;
    flex-wrap: wrap;
    line-height: 1.5;
  }

  .footerCompanyName,
  .footerAddress,
  .footerLabel,
  .footerValue,
  .footerCopyright {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .footerEmailLink {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  /* Hide divider visually but use it to force line break */
  .footerDivider {
    display: block;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
  }
}
