/* ============================================
   컴포넌트 스타일 (GNB, Footer 등)
   ============================================ */

/* GNB (Global Navigation Bar) */
.gnb {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 68px;
  z-index: 1000;
  background-color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  transition: top 0.3s ease, width 0.3s ease, border-radius 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.gnb.is-scrolled {
  top: 24px;
  width: 540px;
  background-color: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 34px;
}

.gnb__inner {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gnb__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gnb__logo {
  display: flex;
  align-items: center;
  height: 14px;
}

.gnb__logo a {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 0;
}

.gnb__logo img {
  display: block;
  height: 100%;
  width: auto;
}

.gnb__menu-wrap {
  display: contents;
}

.gnb__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gnb__menu-item {
  font-size: 16px;
  font-weight: 400;
  color: #222;
  transition: color 0.2s ease;
}

.gnb__menu-item.active {
  color: var(--color-point-dark);
  font-weight: 600;
}

/* PC 전용: 메뉴 호버 시 하이라이트(light) 색 */
@media screen and (min-width: 1025px) {
  .gnb__menu-item:hover {
    color: var(--color-point-light);
  }
}

/* 모바일 메뉴 토글 버튼 */
.gnb__toggle {
  display: none;
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0;
}

.gnb__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #222;
  transition: all 0.3s ease;
}

/* Footer */
.footer {
  width: 100%;
  background-color: #212428;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 56px;
}

.footer__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.footer__nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
}

.footer__nav {
  display: flex;
  gap: 32px;
}

.footer__nav a,
.footer__policy {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer__policy {
  flex-shrink: 0;
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.footer__bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}

.footer__company {
  min-width: 0;
}

.footer__company-line,
.footer__copyright {
  font-size: 14px;
  line-height: 1.8;
  color: #bbbbbb;
  margin: 0 0 4px;
}

.footer__company-line--row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__label {
  color: #ffffff;
}

.footer__copyright {
  margin-top: 8px;
  margin-bottom: 0;
}

.footer__logo {
  display: block;
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  line-height: 0;
  font-size: 0;
}

.footer__logo img {
  display: block;
  height: 20px;
  width: auto;
  margin: 0;
  padding: 0;
  vertical-align: top;
  object-fit: contain;
}

/* 개인정보 처리방침/이용동의 팝업 (footer·contact 공통) */
.privacy-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.privacy-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.privacy-popup.is-open .privacy-popup__box {
  transform: scale(1);
}

.privacy-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.privacy-popup__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.privacy-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.privacy-popup__title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.privacy-popup__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.privacy-popup__close:hover {
  background: #eee;
  color: #222;
}

.privacy-popup__body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.privacy-popup__body::-webkit-scrollbar {
  width: 8px;
}

.privacy-popup__body::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-popup__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.privacy-popup__body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

.privacy-popup__intro {
  margin: 0 0 20px;
}

.privacy-popup__section {
  margin-bottom: 24px;
}

.privacy-popup__section:last-child {
  margin-bottom: 0;
}

.privacy-popup__heading {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin: 0 0 10px;
}

.privacy-popup__section p {
  margin: 0 0 10px;
}

.privacy-popup__section p:last-child {
  margin-bottom: 0;
}

.privacy-popup__section ul {
  margin: 8px 0 10px;
  padding-left: 20px;
}

.privacy-popup__section li {
  margin-bottom: 4px;
}

/* CTA */
.section-cta {
  position: relative;
  padding: 80px 0;
  margin-top: 0;
  min-height: 366px;
  display: flex;
  align-items: center;
}

/* CTA 섹션은 기본 container 여백 사용 */

.section-cta__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.section-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-cta__content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 1280px;
  margin: 0;
}

.section-cta__text {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 40px;
  line-height: 1.6;
}

.section-cta__buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 240px;
  height: 56px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(157deg, #0469DD 51%, #34BAF4 100%);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn__arrow {
  font-size: 0;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* 모달 스타일 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  transition: background-color 0.3s ease;
}

.modal__close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* 이미지 갤러리 모달 */
.modal--gallery .modal__content {
  background-color: transparent;
  max-width: 95vw;
  max-height: 95vh;
}

.modal__image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__image img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.modal__prev,
.modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal__prev:hover,
.modal__next:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.modal__prev {
  left: 20px;
}

.modal__next {
  right: 20px;
}

.modal__prev:disabled,
.modal__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
  .gnb {
    height: 60px;
  }

  .gnb.is-scrolled {
    top: 24px;
    width: 540px;
    background-color: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.08);
    border-radius: 30px;
  }
  
  .gnb__inner {
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  .gnb__menu {
    gap: 30px;
  }


  .footer__nav-row {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .footer__nav {
    gap: 24px;
  }
  
  .section-cta__content {
    margin-left: 0;
  }
  
  .section-cta__text {
    font-size: 26px;
  }
  .section-cta__bg {
    background-image: url('../img/cta-visual-tb.png');
  }
  .modal__prev,
  .modal__next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .modal__prev { left: 10px; }
  .modal__next { right: 10px; }
}


@media screen and (max-width: 768px) {
  .gnb {
    height: 56px;
    border-radius: 0;
  }

  .gnb.is-scrolled {
    width: calc(100% - 24px);
    max-width: 614px;
    top: 12px;
    background-color: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.08);
    border-radius: 28px;
  }

  .gnb__inner {
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  /* GNB 아래에서만 펼쳐지도록 wrapper로 클리핑 - GNB와 동일한 width/position 사용 */
  .gnb__menu-wrap {
    display: block;
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding-top: 12px;
    overflow: hidden;
    z-index: 999;
    pointer-events: none;
  }

  .gnb.is-scrolled .gnb__menu-wrap {
    top: 52px;
    width: calc(100% - 24px);
    max-width: 614px;
  }
  
  .gnb__menu-wrap.has-menu .gnb__menu {
    pointer-events: auto;
  }
  
  .gnb__menu {
    position: relative;
    border-radius: 16px;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px 20px 16px;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0.3s ease;
  }

  .gnb__menu li {
    width: 100%;
  }

  .gnb__menu li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  a.gnb__menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  a.gnb__menu-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #222;
  }

  a.gnb__menu-item.active {
    color: var(--color-point-dark);
    font-weight: 600;
    background-color: rgba(86, 218, 255, 0.08);
  }
  
  .gnb__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .gnb__toggle {
    display: flex;
    right: 20px;
  }

  /* 햄버거 → X 변환 (메뉴 열림 시) */
  .gnb__toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .gnb__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .gnb__toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .footer {
    padding: 60px 0;
  }
  
  
  .footer__nav-row {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
  }
  
  .footer__nav {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer__divider {
    margin-bottom: 24px;
  }
  
  .footer__bottom-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__logo {
    grid-row: auto;
    grid-column: 1;
    margin-top: 24px;
  }
  
  .footer__company-line,
  .footer__copyright {
    font-size: 14px;
  }
  
  .footer__logo img {
    height: 26px;
  }
  
  .section-cta {
    padding: 80px 0;
    margin: 80px 0 0;
  }
  .section-cta__content{
    margin-left: 0;
  }
  .section-cta__bg img {
    display: none;
  }
  
  .section-cta__bg {
    background-image: url('../img/cta-visual-mo.png');
    background-size: cover;
    background-position: center;
  }
  
  .section-cta__text {
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
    font-weight: bold;
  }
  
  .section-cta__text-hide-mobile {
    display: none;
  }
  
  .section-cta__buttons {
    flex-direction: column;
    align-items: stretch;
    gap:16px;
  }
  
  .btn {
    width: 100%;
    max-width: 100%;
    height: 56px;
    padding: 0 24px;
    justify-content: space-between;
    font-size: 18px;
  }
  
  .modal__content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .modal__close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .modal__prev,
  .modal__next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .modal__prev { left: 5px; }
  .modal__next { right: 5px; }
  
  .modal__counter {
    bottom: 10px;
    font-size: 14px;
    padding: 6px 12px;
  }
}
