@charset "utf-8";
/* ==========================================================================
   BMTECH — 푸터 (a1_hanwhaaerospace_footer_dual-select-mega 클론)
   archive: webdot-blueprints/00_global/footer/_code/a1_hanwhaaerospace_footer_dual-select-mega
   구조·수치 verbatim 이식. 교체는 색·폰트(--bmt-* 토큰 리매핑)뿐.
   ========================================================================== */

/* 레거시 #ft(common.css: 다크 배경 + 1280 고정 + foot_logo) 무력화 */
#ft {
  padding: 0;
  background-color: transparent;
}

/* archive :root 변수 → BMTECH 토큰 리매핑 (푸터 스코프) */
#ft {
  --wd-primary: var(--bmt-accent);
  --wd-text-primary: var(--bmt-ink);
  --wd-text-secondary: #5A5757;
  --wd-text-tertiary: var(--bmt-body);
  --wd-text-muted: var(--bmt-muted);
  --wd-text-inverse: var(--bmt-inverse);
  --wd-surface-white: var(--bmt-surface);
  --wd-surface-light: var(--bmt-surface-alt);
  --wd-surface-subtle: #E0E0E0;
  --wd-border-default: var(--bmt-line);
  --wd-border-light: rgba(0, 0, 0, .1);

  --wd-font-primary: var(--bmt-font);
  --wd-font-secondary: var(--bmt-font-num);
  --wd-font-display: var(--bmt-font-num);

  --wd-footer-pad-x: 5vw;
  --wd-footer-easing: cubic-bezier(0.25, 1, 0.5, 1);
}

/* 환경 shim — 레거시 시트의 ul/li·a 기본값 차단 */
.wd-footer ul { list-style: none; margin: 0; padding: 0; }
.wd-footer a { text-decoration: none; }
.wd-footer p { margin: 0; }

/* --------------------------------------------------------------------------
   FOOTER 본체
   -------------------------------------------------------------------------- */
.wd-footer {
  word-break: keep-all;
  word-wrap: break-word;
  background-color: var(--wd-surface-white);
  color: var(--wd-text-primary);
  overflow: hidden;
  font-family: var(--wd-font-primary);
  /* 본문과의 간격. 예전엔 우상단 scroll-top 버튼 블록(padding 2.5rem/1.625em +
     버튼 높이)이 이 여백 노릇을 하고 있었다. 버튼을 지우자 __inner 의 헤어라인이
     본문 마지막 요소에 그대로 붙었다 — 그래서 푸터가 직접 갖는다 */
  padding-top: clamp(56px, 5rem, 96px);
}

.wd-footer__inner {
  border-top: 1px solid var(--wd-border-light);
  padding-top: clamp(37px, 3rem, 58px);
}

.wd-footer__top {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--wd-footer-pad-x);
}

/* --------------------------------------------------------------------------
   14컬럼 그리드 (좌측 9 / 우측 3 + 오프셋 2 / 하단 풀폭)
   -------------------------------------------------------------------------- */
.wd-footer__row {
  display: flex;
  flex-wrap: wrap;
  margin-left:  calc(clamp(16px, 1.5rem, 28px) * -0.5);
  margin-right: calc(clamp(16px, 1.5rem, 28px) * -0.5);
}
.wd-footer__nav  { flex-basis: calc(100% / 14 * 9); max-width: calc(100% / 14 * 9); }
.wd-footer__side { flex-basis: calc(100% / 14 * 3); max-width: calc(100% / 14 * 3); margin-left: calc(100% / 14 * 2); }

/* --------------------------------------------------------------------------
   좌측: 사이트맵 6컬럼
   -------------------------------------------------------------------------- */
.wd-footer__list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding-top: .5em;
  text-transform: uppercase;
}
.wd-footer__item {
  margin-right: 3.333vw;
}
.wd-footer__item:last-child { margin-right: 0; }

.wd-footer__d1-link {
  display: block;
  padding-bottom: 1.333em;
  font-family: var(--wd-font-secondary);
  font-size: clamp(14px, 1.125rem, 22px);
  font-weight: 700; /* 2026-10-01 고객 수정사항1001: 대메뉴 굵게 */
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--wd-text-primary);
  text-transform: uppercase;
  transition: color .2s;
}
.wd-footer__d1-link:hover,
.wd-footer__d1-link:focus { text-decoration: underline; }

.wd-footer__d2-list {
  display: flex;
  flex-direction: column;
}

.wd-footer__d2-link {
  display: block;
  padding-bottom: 1em;
  font-family: var(--wd-font-primary);
  font-size: clamp(13px, 1rem, 20px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--wd-text-tertiary);
  text-transform: capitalize;
  transition: color .2s;
}
.wd-footer__d2-link:hover { color: var(--wd-text-primary); }

/* --------------------------------------------------------------------------
   우측: 셀렉트박스 (관련 기관 / 글로벌 사이트)
   -------------------------------------------------------------------------- */
.wd-footer__select-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.wd-footer__select-wrap .wd-select + .wd-select { margin-top: 1em; }

.wd-select {
  position: relative;
  display: inline-block;
  width: 16.875em;
  font-family: var(--wd-font-primary);
  font-size: clamp(13px, 1rem, 20px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  z-index: 1;
}
.wd-footer__select-wrap .wd-select:first-child { z-index: 10; }

.wd-select__btn {
  position: relative;
  width: 100%;
  height: auto;
  padding: .875em 2em .875em 0;
  border: 0;
  border-bottom: 1px solid var(--wd-border-default);
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--wd-text-primary);
  cursor: pointer;
  word-break: break-all;
  transition: border-bottom .4s;
}
.wd-select__btn::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background-color: var(--wd-surface-light);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 3v10M3 8h10' stroke='%23191919' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: .75em .75em;
  transform: translateY(-50%);
  transition: all .34s ease-in-out;
}
.wd-select__btn.is-open::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10' stroke='%23191919' stroke-width='1.4' stroke-linecap='round'/></svg>");
  transform: translateY(-50%) rotate(90deg);
}
.wd-select__btn.is-open { border-bottom: 1px solid var(--wd-text-primary); }
.wd-select__btn.is-selected { color: var(--wd-text-primary); }

.wd-select__panel {
  position: absolute;
  left: 0; right: 0;
  z-index: 2;
  max-height: 25vh;
  height: 0;
  background-color: var(--wd-surface-white);
  overflow: hidden scroll;
  scrollbar-color: var(--wd-border-default) var(--wd-surface-subtle);
  scrollbar-width: thin;
  opacity: 0;
  transition: height .4s var(--wd-footer-easing), opacity .4s var(--wd-footer-easing);
}
.wd-select__panel::-webkit-scrollbar { width: 3px; }
.wd-select__panel::-webkit-scrollbar-track { background-color: var(--wd-surface-subtle); }
.wd-select__panel::-webkit-scrollbar-thumb { background-color: var(--wd-border-default); }
.wd-select__panel.is-active {
  height: var(--wd-panel-height, 216px);
  opacity: 1;
  border: 1px solid var(--wd-surface-subtle);
  border-right: 0;
}

.wd-select__group {
  display: block;
  padding: 1em 1em 0;
  text-align: left;
  color: var(--wd-text-primary);
  line-height: 22px;
}
.wd-select__group::after {
  content: "";
  display: block;
  margin: .5em 0;
  width: 100%;
  height: 2px;
  background-color: var(--wd-text-primary);
}
.wd-select__group:first-child { margin-top: 8px; }

.wd-select__option {
  display: block;
  width: 100%;
  height: auto;
  padding: .875em 1em;
  background-color: transparent;
  border: 0;
  font-family: var(--wd-font-primary);
  font-size: clamp(13px, 1rem, 20px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--wd-text-tertiary);
  word-break: break-all;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.wd-select__option:first-child { margin-top: 8px; }
.wd-select__option:last-child  { margin-bottom: 8px; }
.wd-select__option:hover       { background-color: var(--wd-surface-light); color: var(--wd-text-primary); }
.wd-select__option.is-active   { color: var(--wd-text-primary); }

/* --------------------------------------------------------------------------
   하단: 유틸리티 링크 + 카피라이트 + 소셜
   -------------------------------------------------------------------------- */
.wd-footer__bot {
  flex-basis: 100%;
  max-width: 100%;
  margin-top: 6.666vw;
  padding: 1.78em 0;
  border-top: 1px solid var(--wd-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}
.wd-footer__util { flex: 1 1 auto; }

.wd-footer__util-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.wd-footer__util-list > li { margin-right: 0; }

.wd-footer__util-link {
  display: block;
  padding-right: 1.25em;
  font-family: var(--wd-font-primary);
  font-size: clamp(13px, 1rem, 20px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--wd-text-tertiary);
  transition: color .2s;
}
.wd-footer__util-link:hover,
.wd-footer__util-link:focus { color: var(--wd-text-primary); }
.wd-footer__util-link--strong { color: var(--wd-primary) !important; font-weight: 600; }
.wd-footer__util-link--bold   { color: var(--wd-text-primary) !important; font-weight: 600; }

.wd-footer__copy {
  padding-top: 1.1em;
  font-size: clamp(12px, .875rem, 18px);
  color: var(--wd-text-muted);
}

/* --------------------------------------------------------------------------
   반응형
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .wd-footer__nav  { flex-basis: 100%; max-width: 100%; }
  .wd-footer__side { flex-basis: 100%; max-width: 100%; margin-left: 0; margin-top: 3rem; }
  .wd-footer__select-wrap { align-items: stretch; }
  .wd-select { width: 100%; }
  .wd-footer__list { flex-wrap: wrap; gap: 2rem; }
  .wd-footer__item { flex: 0 0 calc(50% - 1rem); margin-right: 0; }
  .wd-footer__bot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .wd-footer__item { flex: 0 0 100%; }
  .wd-footer__util-list { flex-direction: column; gap: .75rem; }
  .wd-footer__util-link { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   2026-09-18 그룹 락업 행 — 고객 PPT(ver1.3.2) 푸터 목업의 로고 2종 + 자회사 문구.
   푸터 골격(메뉴 컬럼·셀렉트·하단 유틸)은 그대로 두고 맨 위에 한 줄만 얹는다.
   -------------------------------------------------------------------------- */
.wd-footer__brand {
  flex-basis: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--wd-border-light);
}
/* 2026-10-01 고객 수정사항1001: 헤더와 같은 규칙 — BMTECH(+HS) 블록 = BPL 높이, 상단 정렬, 태그라인은 아래로.
   크기는 기존 그대로(BPL 26px). 마크 img = BPL × 278/191 (logo-group-color.svg viewBox) */
.wd-footer__brand-logos { display: flex; align-items: flex-start; gap: 18px; --wd-logo-h: 26px; }
.wd-footer__brand-logos a { display: block; }
.wd-footer__brand-mark { display: block; height: calc(var(--wd-logo-h) * 278 / 191); width: auto; }
.wd-footer__brand-bpl  { display: block; height: var(--wd-logo-h); width: auto; }
.wd-footer__brand-divider { display: block; width: 1px; height: var(--wd-logo-h); background: var(--bmt-line); }
.wd-footer__brand-txt {
  font-size: clamp(13px, .9375rem, 16px);
  color: var(--wd-text-tertiary);
  letter-spacing: -0.01em;
}
@media (max-width: 480px) {
  .wd-footer__brand-logos { --wd-logo-h: 20px; }
}

/* --------------------------------------------------------------------------
   2026-10-19 다크모드 휴대폰 — 헤더와 같은 원인(흰 배경을 브라우저가 검게 칠하고 컬러 로고는 그대로).
   다크모드면 푸터를 어두운 톤으로 직접 그리고 흰 로고로 바꾼다. 색은 푸터 스코프 변수만 갈아끼운다.
   흰 로고 img 는 평소 숨김(alt 비움 — 컬러 img 의 alt 가 대표).
   -------------------------------------------------------------------------- */
.wd-footer__brand-img--white { display: none; }
@media (prefers-color-scheme: dark) and (max-width: 1080px) {
  #ft {
    --wd-primary: var(--bmt-accent-soft);
    --wd-text-primary: var(--bmt-on-dark);
    --wd-text-secondary: var(--bmt-on-dark-muted);
    --wd-text-tertiary: var(--bmt-on-dark-muted);
    --wd-text-muted: var(--bmt-on-dark-muted);
    --wd-surface-white: var(--bmt-surface-dark);
    --wd-surface-light: rgba(255, 255, 255, .08);
    --wd-surface-subtle: rgba(255, 255, 255, .15);
    --wd-border-default: rgba(255, 255, 255, .2);
    --wd-border-light: rgba(255, 255, 255, .12);
  }
  .wd-footer__brand-mark,
  .wd-footer__brand-bpl { display: none; }
  .wd-footer__brand-mark.wd-footer__brand-img--white,
  .wd-footer__brand-bpl.wd-footer__brand-img--white { display: block; }
  .wd-footer__brand-divider { background: var(--bmt-on-dark-muted); }
}

