/* ============================================================
   FOOTER.CSS — REQ-085 새 레이아웃
   ============================================================ */

.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  margin-top: auto;
  font-size: 13px;
  line-height: 1.6;
}
.site-footer .container {
  max-width: var(--ft-maxw);
  margin: 0 auto;
  padding: var(--ft-pad-y) 24px 32px;
}

/* ---------- 브랜드 로고 + 사업자 토글 ---------- */
.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.footer-brand-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.15s;
}
.footer-brand-toggle-btn:hover {
  color: #ffffff;
}
.footer-brand-toggle-btn svg {
  transition: transform 0.2s ease;
}
.footer-brand-toggle-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ---------- 사업자 정보 (기본값: 접힘) ---------- */
.footer-company-info {
  display: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 2;
}
.footer-company-info.is-open {
  display: block;
}
.footer-company-info span {
  display: block;
}

/* ---------- 링크 그리드 + 연락처 ---------- */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  align-content: start;
  order: 2;
}
.footer-links-grid a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.footer-links-grid a:hover {
  color: #ffffff;
}

.footer-contact-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  order: 1;
}
.footer-contact-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.footer-contact-phone-num {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
}
.footer-contact-row svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-contact-row a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-contact-row a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* ---------- SNS ---------- */
.footer-sns-instagram {
  margin-top: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.15s ease;
}
.footer-sns-instagram svg {
  width: 16px;
  height: 16px;
  color: inherit;
}
.footer-sns-instagram:hover,
.footer-sns-instagram:focus-visible {
  color: var(--color-primary-dark);
  background: #ffffff;
  border-color: #ffffff;
  outline: none;
}
.footer-sns-instagram:hover svg,
.footer-sns-instagram:focus-visible svg {
  color: var(--color-primary-dark);
}

/* ---------- 카피라이트 + 법적 링크 ---------- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
.footer-copyright {
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.footer-legal a:hover {
  color: #ffffff;
}
.footer-legal a:last-child {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-contact-phone-num {
    font-size: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
