@charset "utf-8";

/* ============================================================
   head_tail.css  —  속초피크 헤더 + 푸터 전용 스타일
   sp- prefix (Sokcho Peak)

   SECTIONS
   ── [A] CSS 변수
   ── [B] 구 테마 간섭 강제 리셋
   ── [C] 헤더 래퍼 & Sticky
   ── [D] 상단 유틸리티 바
   ── [E] 로고 + GNB 행
   ── [F] 로고
   ── [G] PC GNB
   ── [H] 햄버거 버튼
   ── [I] 모바일 메뉴 모달
   ── [J] 언어 선택 위젯
   ── [K] 푸터 래퍼
   ── [L] 푸터 3단 그리드 & 컬럼
   ── [M] 푸터 카피라이트 바
   ── [N] 반응형 (푸터)
============================================================ */


/* ============================================================
   [A] CSS 변수
============================================================ */
:root {
  --sp-main:       #e8392a;
  --sp-main-dark:  #c0302a;
  --sp-upper-bg:   #0f172a;
  --sp-hd-bg:      #ffffff;
  --sp-hd-height:  80px;
  --sp-upper-h:    46px;
  --sp-ft-bg:      #0f172a;   /* 헤더 상단바와 동일한 딥 네이비 */
  --sp-ft-border:  #1e3050;  /* 네이비 계열 구분선 */
  --sp-radius:     10px;
}


/* ============================================================
   [B] 구 테마 간섭 강제 리셋
   noble.css / default.css 잔재 클래스를 무력화
============================================================ */

/* 구 GNB / 멤버메뉴 잔재 */
#hd_qnb,
.hd_qnb,
#gnb,
.gnb,
.sp-mem-menu,
.mem_menu                          { display: none !important; }

/* 언어 드롭다운 기본 닫힘 강제 */
.sp-lang__dropdown                 { display: none !important; }
.sp-lang__dropdown.sp-lang__dropdown--open { display: block !important; }

/* 구글 번역 툴바 */
body                               { top: 0 !important; }
.goog-te-banner-frame              { display: none !important; }
iframe.skiptranslate               { display: none !important; }


/* ============================================================
   [C] 헤더 래퍼 & Sticky
============================================================ */
.sp-header {
  position: relative;
  z-index: 1000;
  background-color: var(--sp-hd-bg);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.sp-header.is-sticky {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}
.sp-header.is-sticky .sp-header__upper { display: none; }
.sp-header.is-sticky .sp-header__inner { border-bottom: none; }

#sp-header-placeholder                        { display: none; }
body.sp-sticky-active #sp-header-placeholder  { display: block; }


/* ============================================================
   [D] 상단 유틸리티 바 (딥 네이비)
============================================================ */
.sp-header__upper {
  height: var(--sp-upper-h);
  background-color: var(--sp-upper-bg);
  color: #fff;
}
.sp-header__upper-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  gap: 0;
}
.sp-header__util-link {
  display: block;
  padding: 0 12px;
  line-height: var(--sp-upper-h);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
  transition: color 0.2s;
}
.sp-header__util-link:last-of-type { border-right: none; }
.sp-header__util-link:hover        { color: #fff !important; }


/* ============================================================
   [E] 로고 + GNB 행
============================================================ */
.sp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sp-hd-height);
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 28px;
  border-bottom: 1px solid #f1f5f9;
}


/* ============================================================
   [F] 로고
============================================================ */
.sp-logo {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.sp-logo__img {
  width: 120px;
  height: auto;
  vertical-align: middle;
}
@media (max-width: 800px) { .sp-logo__img { width: 110px; } }
@media (max-width: 620px) { .sp-logo__img { width: 100px; } }
@media (max-width: 450px) { .sp-logo__img { width:  90px; } }


/* ============================================================
   [G] PC GNB
============================================================ */
.sp-gnb {
  display: flex;
  align-items: center;
}
.sp-gnb__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-gnb__item { position: relative; }

.sp-gnb__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--sp-hd-height);
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b !important;
  white-space: nowrap;
  text-decoration: none !important;
  letter-spacing: -0.2px;
  transition: color 0.2s;
}
.sp-gnb__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--sp-main);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  border-radius: 3px 3px 0 0;
}
.sp-gnb__item:hover .sp-gnb__link::after,
.sp-gnb__item--active .sp-gnb__link::after { transform: scaleX(1); }
.sp-gnb__item:hover .sp-gnb__link          { color: var(--sp-main) !important; }

/* 2차 드롭다운 */
.sp-gnb__sub {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 18px 16px;
  list-style: none;
  margin: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0 0 var(--sp-radius) var(--sp-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  z-index: 200;
}
.sp-gnb__item:hover .sp-gnb__sub      { display: block; }
.sp-gnb__sub-item                      { text-align: center; }
.sp-gnb__sub-item + .sp-gnb__sub-item { margin-top: 12px; }
.sp-gnb__sub-link {
  font-size: 14px;
  color: #555 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.sp-gnb__sub-link:hover { color: var(--sp-main) !important; }

/* 반응형 */
@media (min-width: 1241px) { .sp-header__menu-btn { display: none !important; } }
@media (max-width: 1240px) { .sp-gnb              { display: none !important; } }
@media (max-width: 800px) {
  .sp-header__inner { height: 68px; }
  .sp-gnb__link     { height: 68px; }
}
@media (max-width: 480px) {
  .sp-header__inner { height: 58px; padding: 0 16px; }
}


/* ============================================================
   [H] 햄버거 버튼 (모바일 전용)
============================================================ */
.sp-header__menu-btn {
  display: block;
  width: 34px;
  height: 34px;
  background: url(/theme/sokchopeak/img/menu_tab.png) center / cover no-repeat;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
@media (max-width: 800px) { .sp-header__menu-btn { width: 30px; height: 30px; } }
@media (max-width: 480px) { .sp-header__menu-btn { width: 28px; height: 28px; } }


/* ============================================================
   [I] 모바일 메뉴 모달
============================================================ */
.sp-m-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow-y: auto;
  padding: 88px 0 50px;
  background-color: var(--sp-main);
}
.sp-m-modal__close {
  position: fixed;
  top: 18px; right: 5%;
  width: 48px; height: 48px;
  background: url(/theme/noble/img/m_menu_close.svg) center / cover no-repeat;
  border: none;
  cursor: pointer;
  padding: 0;
}
.sp-m-modal__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 0 8%;
}
.sp-m-modal__menu-list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 20px 0;
}
.sp-m-modal__menu-list > li + li { margin-top: 48px; }

.sp-m-modal__menu-link {
  display: block;
  font-family: 'Pretendard', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.4;
  text-decoration: none !important;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0s, opacity 0s;
}
.sp-m-modal.sp-m-modal--open .sp-m-modal__menu-link {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.6s ease;
}
.sp-m-modal__menu-list > li:nth-child(1) .sp-m-modal__menu-link { transition-delay: 0.00s; }
.sp-m-modal__menu-list > li:nth-child(2) .sp-m-modal__menu-link { transition-delay: 0.07s; }
.sp-m-modal__menu-list > li:nth-child(3) .sp-m-modal__menu-link { transition-delay: 0.14s; }
.sp-m-modal__menu-list > li:nth-child(4) .sp-m-modal__menu-link { transition-delay: 0.21s; }
.sp-m-modal__menu-list > li:nth-child(5) .sp-m-modal__menu-link { transition-delay: 0.28s; }
.sp-m-modal__menu-list > li:nth-child(6) .sp-m-modal__menu-link { transition-delay: 0.35s; }

.sp-m-modal__sub { margin-top: 14px; }
.sp-m-modal__sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0; margin: 0;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0s, opacity 0s;
}
.sp-m-modal.sp-m-modal--open .sp-m-modal__sub-list {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.6s ease;
  transition-delay: 0.15s;
}
.sp-m-modal__sub-link {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.sp-m-modal__sub-link:hover { color: #fff !important; }

@media (min-width: 1241px) { .sp-m-modal { display: none !important; } }
@media (max-width: 620px) {
  .sp-m-modal                          { padding-top: 62px; }
  .sp-m-modal__close                   { top: 12px; width: 38px; height: 38px; }
  .sp-m-modal__menu-list > li + li     { margin-top: 36px; }
  .sp-m-modal__menu-link               { font-size: 22px; }
  .sp-m-modal__sub                     { margin-top: 10px; }
  .sp-m-modal__sub-list                { gap: 8px 16px; }
  .sp-m-modal__sub-link                { font-size: 15px; }
}


/* ============================================================
   [J] 언어 선택 위젯
============================================================ */
.sp-lang {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 10001;
}
.sp-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 3px 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.6;
  white-space: nowrap;
  transition: background 0.2s;
}
.sp-lang__btn:hover { background: rgba(255, 255, 255, 0.15); }
.sp-lang__arrow {
  font-size: 8px;
  opacity: 0.7;
  transition: transform 0.2s;
  display: inline-block;
  line-height: 1;
}
.sp-lang__btn.sp-lang__btn--open .sp-lang__arrow { transform: rotate(180deg); }

.sp-lang__dropdown {
  display: none !important;   /* 기본: 항상 닫힘 */
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--sp-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  z-index: 99999;
}
.sp-lang__dropdown::before {
  content: '';
  position: absolute;
  top: -6px; right: 16px;
  width: 11px; height: 11px;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.07);
  border-top:  1px solid rgba(0, 0, 0, 0.07);
  transform: rotate(45deg);
  z-index: 1;
}
.sp-lang__dropdown.sp-lang__dropdown--open {
  display: block !important;  /* JS가 클래스 추가 시 열림 */
  animation: spLangFadeIn 0.15s ease;
}
@keyframes spLangFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sp-lang__option {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #333 !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f2f2f2 !important;
  background: #fff !important;
  transition: background 0.15s !important;
  cursor: pointer !important;
}
.sp-lang__option:last-child { border-bottom: none !important; }
.sp-lang__option:hover      { background: #f7f7f7 !important; }
.sp-lang__option.sp-lang__option--active {
  color: #c0392b !important;
  background: #fff5f5 !important;
  font-weight: 700 !important;
}
.sp-lang__flag {
  display: inline-block;
  width: 22px; height: 16px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.10);
  vertical-align: middle;
  line-height: 1;
}
.sp-lang__flag-cur {
  display: inline-block;
  width: 20px; height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.10);
  vertical-align: middle;
  line-height: 1;
}
.sp-lang__code  { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; width: 24px; flex-shrink: 0; color: #333; }
.sp-lang__name  { flex: 1; font-size: 11px; color: #888; }
.sp-lang__check { font-size: 10px; color: #c0392b; opacity: 0; flex-shrink: 0; }
.sp-lang__option.sp-lang__option--active .sp-lang__code  { color: #c0392b; }
.sp-lang__option.sp-lang__option--active .sp-lang__name  { color: #c0392b; }
.sp-lang__option.sp-lang__option--active .sp-lang__check { opacity: 1; }


/* ============================================================
   [K] 푸터 래퍼  — 딥 네이비 다크 테마
============================================================ */
.sp-footer {
  background-color: var(--sp-ft-bg);
  padding: 64px 0 0;
}


/* ============================================================
   [L] 푸터 3단 그리드 & 각 컬럼
============================================================ */
.sp-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 52px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 36px 56px;
}

.sp-footer__col        { display: flex; flex-direction: column; }
.sp-footer__col-title  {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);  /* 다크 배경 위 서브 타이틀 */
}

/* ① 서비스 정보 */
.sp-footer__logo       { display: inline-block; margin-bottom: 22px; text-decoration: none; }
.sp-footer__logo-img   { width: 110px; height: auto; vertical-align: middle;
                          /* 다크 배경에서 로고가 어두울 경우 밝게 */
                          filter: brightness(0) invert(1); }
.sp-footer__info-list  { list-style: none; margin: 0; padding: 0; }
.sp-footer__info-item  { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 6px; line-height: 1.6; }
.sp-footer__info-label { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.35); white-space: nowrap; }
.sp-footer__info-value { font-size: 11px; color: rgba(255, 255, 255, 0.55); word-break: break-word; }

/* ② 고객센터 */
.sp-footer__cs-txt{color:#fff;}
.sp-footer__cs-tel {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #fff;               /* 다크 배경 위 흰색 전화번호 */
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.sp-footer__cs-hours {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 2;
  margin-bottom: 20px;
}
.sp-footer__cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  background-color: var(--sp-main);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  align-self: flex-start;
  transition: background-color 0.2s, transform 0.15s;
}
.sp-footer__cs-btn:hover { background-color: var(--sp-main-dark); transform: translateY(-1px); }

/* ③ 서비스 메뉴 */
.sp-footer__menu-list { list-style: none; margin: 0; padding: 0; }
.sp-footer__menu-item { margin-bottom: 12px; }
.sp-footer__menu-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.sp-footer__menu-link:hover { color: #fff !important; }

/* 소셜 */
.sp-footer__social      { display: flex; gap: 8px; margin-top: 24px; list-style: none; padding: 0; }
.sp-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.60) !important;
  font-size: 15px;
  text-decoration: none !important;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.sp-footer__social-link:hover {
  background-color: var(--sp-main);
  border-color: var(--sp-main);
  color: #fff !important;
}


/* ============================================================
   [M] 푸터 카피라이트 바
============================================================ */
.sp-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-footer__copy       { font-size: 11px; color: rgba(255, 255, 255, 0.25); }
.sp-footer__bar-links  { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.sp-footer__bar-link   { font-size: 11px; color: rgba(255, 255, 255, 0.30) !important; text-decoration: none; transition: color 0.2s; }
.sp-footer__bar-link:hover { color: rgba(255, 255, 255, 0.75) !important; }
.sp-footer__bar-link--bold { font-weight: 700; color: rgba(255, 255, 255, 0.55) !important; }


/* ============================================================
   [N] 반응형 (푸터)
============================================================ */
@media (max-width: 960px) {
  .sp-footer__inner     { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sp-footer__col--info { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .sp-footer            { padding-top: 40px; }
  .sp-footer__inner     { grid-template-columns: 1fr; gap: 28px; padding: 0 20px 36px; }
  .sp-footer__col--info { grid-column: auto; }
  .sp-footer__cs-tel    { font-size: 20px; }
  .sp-footer__bar       { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 20px; }
  .sp-footer__bar-links { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 450px) {
  .sp-footer__logo-img  { width: 90px; }
}