/* =========================================================
   SE Global Footer
   Figma Footer.tsx → 일반 CSS 변환
========================================================= */

.site-footer {
  width: 100%;
  padding: 40px 0;
  background:
    linear-gradient(
      135deg,
      #1a1a1a 0%,
      #0d0d0d 100%
    );
  color: #ffffff;
}

.site-footer__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* =========================================================
   Footer Top
========================================================= */

.site-footer__top {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(180px, 1fr)
    minmax(180px, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.site-footer__company {
  grid-column: span 2;
  min-width: 0;
}

.site-footer__company h2 {
  display: inline-block;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-footer__description {
  margin: 0 0 24px;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  word-break: keep-all;
}

.site-footer__message {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}

.site-footer__logo {
  max-width: 180px;
  height: auto;
}

/* =========================================================
   Footer Headings
========================================================= */

.site-footer__customer h3,
.site-footer__links h3 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}

/* =========================================================
   Customer Center
========================================================= */

.footer-phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-phone__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #0a56d8;
}

.footer-phone__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-phone__content {
  min-width: 0;
}

.footer-phone__content a {
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
}

.footer-phone__content a:hover {
  color: #ffffff;
}

.footer-phone__content p {
  margin: 2px 0 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
}

.footer-business-hours {
  margin: 16px 0 0;
  padding-left: 32px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.75;
}

/* =========================================================
   Quick Links
========================================================= */

.site-footer__links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 24px;
  row-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer__links a > span {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #023da5;
  transition: background-color 200ms ease;
}

.site-footer__links a:hover {
  color: #ffffff;
}

.site-footer__links a:hover > span {
  background: #ffffff;
}

/* =========================================================
   Footer Bottom
========================================================= */
  .site-footer__bottom {
    position: relative;
    padding-top: 32px;
    border-top: 1px solid #27303d;
  }

  .site-footer__info {
    display: grid;
    gap: 6px;
    width: 100%;
    margin: 0;
    color: #8fa0b8;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
  }

  .site-footer__info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
  }

  .site-footer__info-row span {
    display: inline-block;
    color: inherit;
    word-break: keep-all;
  }

  /*
  * 회사 정보 아래에서 저작권 영역을
  * 푸터 전체 기준 중앙에 배치합니다.
  */
  .site-footer__copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    text-align: center;
  }

  .site-footer__copyright p {
    margin: 0;
    color: #536783;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
  }

  .site-footer__policy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
  }

  .site-footer__policy a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #536783;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition:
      color 200ms ease,
      opacity 200ms ease;
  }

  .site-footer__policy a:hover {
    color: #ffffff;
  }

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .site-footer__company {
    grid-column: span 2;
  }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {
  .site-footer {
    padding: 48px 0 32px;
  }

  .site-footer__container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-bottom: 36px;
  }

  .site-footer__company {
    grid-column: auto;
  }

  .site-footer__company h2 {
    font-size: 24px;
  }

  .site-footer__description {
    font-size: 15px;
  }

  .site-footer__customer h3,
  .site-footer__links h3 {
    margin-bottom: 18px;
  }

  .site-footer__bottom {
    padding-top: 24px;
  }

  .site-footer__info {
    gap: 8px;
    font-size: 13px;
    line-height: 1.7;
  }

  .site-footer__info-row {
    display: grid;
    gap: 6px;
  }

  .site-footer__copyright {
    align-items: center;
    margin-top: 28px;
    text-align: center;
  }

  .site-footer__copyright p {
    font-size: 13px;
  }

  .site-footer__policy {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 14px;
  }

  .site-footer__policy a {
    font-size: 13px;
  }
 
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 479px) {
  .site-footer__info-row span {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .site-footer__copyright {
    margin-top: 24px;
  }

  .site-footer__policy {
    width: 100%;
    justify-content: center;
    gap: 12px 20px;
  }

  .site-footer__policy a {
    font-size: 13px;
    white-space: nowrap;
  }
}
