/* New footer — scoped to .site-footer (legacy pages keep layout.css footer rules) */

footer.site-footer {
  margin-top: 48px;
  padding: 36px 0 40px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

footer.site-footer .footer-inner {
  text-align: center;
}

footer.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

footer.site-footer .footer-nav li {
  position: relative;
  padding-right: 18px;
  margin-right: 18px;
}

footer.site-footer .footer-nav li::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 14px;
  margin-top: -7px;
  background: var(--color-border-input);
}

footer.site-footer .footer-nav li:last-child::after {
  display: none;
}

footer.site-footer .footer-nav li:last-child {
  padding-right: 0;
  margin-right: 0;
}

footer.site-footer .footer-nav a,
footer.site-footer .footer-nav button {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-body);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

footer.site-footer .footer-nav a:hover,
footer.site-footer .footer-nav button:hover {
  color: var(--color-primary);
}

footer.site-footer .footer-nav a.is-highlight {
  color: var(--color-primary);
}

footer.site-footer .footer-details {
  display: none;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

footer.site-footer .footer-details.is-open {
  display: block;
}

footer.site-footer .footer-details .footer-company {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

footer.site-footer .footer-company ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site-footer .footer-company li {
  margin-bottom: 6px;
}

footer.site-footer .footer-company span + span {
  margin-left: 16px;
}

footer.site-footer .footer-about {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-muted);
  word-break: keep-all;
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}

footer.site-footer .footer-company {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating quick links */
.site-float.floating-side {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.site-float .floating-side__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 92, 255, 0.35);
  font-size: 20px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-float .floating-side__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-float .floating-side__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
  font-weight: 600;
  font-size: 14px;
  min-width: 190px;
  border: 1px solid var(--color-border);
}

.site-float .floating-side__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.site-float .floating-side__item--phone .floating-side__icon {
  background: var(--color-primary);
}

.site-float .floating-side__item--kakao .floating-side__icon {
  background: #fae100;
  color: #3b1e1e;
}

.site-float .floating-side__item--youtube .floating-side__icon {
  background: #ff0000;
}

.site-float .floating-side__item--blog .floating-side__icon {
  background: #03c75a;
}

.site-float .floating-side__label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-float .floating-side__label small {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  footer.site-footer {
    padding: 28px 0 40px;
  }

  footer.site-footer .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
  }

  footer.site-footer .footer-nav li {
    padding-right: 0;
    margin-right: 0;
  }

  footer.site-footer .footer-nav li::after {
    display: none;
  }

  footer.site-footer .footer-details .footer-company span {
    display: block;
    margin-left: 0 !important;
  }

  .site-float.floating-side {
    right: 16px;
    bottom: 20px;
    top: auto;
    transform: none;
  }

  .site-float .floating-side__toggle {
    display: inline-flex;
  }

  .site-float .floating-side__list {
    position: absolute;
    bottom: 58px;
    right: 0;
    opacity: 0;
    transform: translateX(120%);
    pointer-events: none;
  }

  .site-float.floating-side.is-open .floating-side__list {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}
