/*
 * 감람나무 상담센터 — 공통 푸터 보완 V2
 *
 * 기존 site-footer 구조 유지
 * 상단 로고 이미지 재사용
 * 소개 문구 변경 및 블로그 메뉴 추가
 * JavaScript / 인라인 스타일 사용 없음
 */

/* =========================================================
   1. 푸터 내부 기본 배치
   ========================================================= */

#center-site-footer,
#center-site-footer * {
  box-sizing: border-box;
}

#center-site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
}

#center-site-footer .footer-brand {
  flex: 0 1 340px;
  width: 100%;
  min-width: 0;
}

/* =========================================================
   2. 로고 및 소개 문구
   ========================================================= */

#center-site-footer .footer-brand-link {
  display: inline-block;
  width: 300px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
  text-decoration: none;
}

#center-site-footer .footer-brand-image {
  position: static;
  display: block;

  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;

  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;

  object-fit: contain;
  transform: none;
  box-shadow: none;
}

#center-site-footer .footer-tagline {
  margin: 12px 0 0;
  padding: 0;

  color: #656b57;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.02em;

  word-break: keep-all;
  overflow-wrap: break-word;
}

/* =========================================================
   3. 하단 메뉴
   ========================================================= */

#center-site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;

  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

#center-site-footer .footer-links a {
  display: inline-block;
  margin: 0;
  padding: 6px 0;

  color: #656b57;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
}

#center-site-footer .footer-links a:hover {
  color: #454800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#center-site-footer a:focus-visible {
  outline: 2px solid #626a3d;
  outline-offset: 4px;
}

/* =========================================================
   4. 센터 정보
   ========================================================= */

#center-site-footer .footer-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 36px;
  margin-top: 24px;
}

#center-site-footer .footer-details > p {
  min-width: 0;
  margin: 0;
  padding: 0;

  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

#center-site-footer .footer-safety {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 새 창 안내: 화면에서는 숨기고 스크린리더에 제공 */

#center-site-footer .footer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   5. 태블릿
   ========================================================= */

@media (max-width: 900px) {
  #center-site-footer .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  #center-site-footer .footer-brand {
    flex: none;
  }

  #center-site-footer .footer-links {
    justify-content: flex-start;
  }
}

/* =========================================================
   6. 모바일
   ========================================================= */

@media (max-width: 600px) {
  #center-site-footer .footer-brand-link {
    width: 260px;
  }

  #center-site-footer .footer-tagline {
    margin-top: 10px;
    font-size: 13px;
  }

  #center-site-footer .footer-links {
    gap: 6px 16px;
  }

  #center-site-footer .footer-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 20px;
  }
}
