/* ========== COMPONENTS (Buttons · Nav · Footer…) ========== */

/* ----- Section Header ----- */
section{
  margin-top: 84px;
  margin-bottom: 48px; /* 64 / 48 */
}
.section__header{
  margin-top: 60px;
  margin-bottom: 10px;
  padding-inline: 12px;
  /* border: 1px solid var(--c-gray-300); */
}
.section__title{
  position:relative;
  display:inline-block;
  font-size:26px;
  font-weight:800;
  letter-spacing: -0.01em;
  color:var(--c-gray-800)
}
.section__dec{
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  text-transform: capitalize;
  letter-spacing: -0.02em;
  color:var(--c-gray-600);
  text-align: justify;     /* 양쪽 끝 맞춤 */
  text-align-last: left;   /* 마지막 줄은 왼쪽 정렬(옵션) */
}

@media(max-width:768px){
  .section{
    padding:calc(var(--g-unit)*7) 0
  }
  .section__header{
    padding-inline: 0px;
  }
  .section__title{
    font-size:24px;
  }
}

/* ----- Buttons ----- */
.btn{
  display:inline-flex;        
  justify-content:center;     
  align-items:center;  
  padding-inline: 32px;
  height:48px;                  
  border-radius:8px;
  font-weight:600;
  font-size:1rem;
  line-height:48px;
  text-decoration:none;
  transition:transform .2s,box-shadow .2s;
  border:none;
}
.btn:hover{
  transform:scale(1.04); 
  box-shadow:0 4px 12px rgba(0,0,0,.16);
}
.btn--primary{
  background:var(--c-pink); 
  color:var(--c-white);
  border:0.5px solid var(--c-gray-300);
}
.btn--secondary{
  color:var(--c-black);
  border:2px solid var(--c-gray-800);
}
.btn--secondary:hover{
  background:var(--c-gray-800);
  color:var(--c-white);
}


/* ----- Logo (헤더·푸터 재활용) ----- */
.logo{
  font-family:var(--ff-display); 
  font-size:1.375rem;  /* 22px */
  color:var(--c-black); 
  text-decoration:none;
}
.logo__img{
  height:24px;        /* 헤더 높이(64) 안에서 여유 있게 */
  width:auto;
}

/* 1. Header / GNB --------------------------------------------------*/
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--c-white);
  border-bottom:1px solid var(--c-gray-200);
  height:64px;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:100%;
}
/* 로고 이미지 */
.logo img{
  height:40px;          /* 헤더 높이(56) 안에서 여유 • width 는 auto */
  width:auto;
  object-fit:contain;   /* SVG는 영향 없음 - 래스터 이미지 대비용 */
}
/* GNB */
.gnav{
  display:flex; 
  gap:calc(var(--g-unit)*6);  /* 48px gap */
}
.gnav__link{
  text-transform: uppercase;
  font-size:.95rem; 
  font-weight:600; 
  letter-spacing:.02em;
  color:var(--c-black); 
  text-decoration:none; 
  padding-block:.25rem;
  position:relative; 
  transition:color .2s;
}
.gnav__link:hover{
  color:var(--c-pink); /* hover 시 색상 변경 */
}
.gnav__link:hover::after{
  width:100%;
}
/* Hamburger */
.header__right{
  display: none;
}
.hamburger{
  display:none; 
  flex-direction:column; 
  gap:4px; 
  border:0;
  background:none; 
  cursor:pointer; 
  padding:.5rem;
}
.hamburger span{
  width:20px;
  height:2px;
  background:var(--c-black);
  transition:.3s;
}
@media (max-width:1023px){
  .gnav{
    display:none; /* 데스크톱 전용 */
  }        
  .header__right{
    display:flex; 
  }
  .hamburger{
    display:flex;
  }
  .gnav__link:hover{
    color:var(--c-black); /* 모바일에서는 hover 효과 제거 */
  }
}

@media(max-width:768px){
  .logo img{
    height:36px;
  }
  .ham{
    display:block
  }
  .gnav{
    display:none
  }
  .gnav.is-open{
    display:block
  }
}

/* 모바일 메뉴 열림 상태 */
.gnav.is-open{
  display:flex;
  flex-direction:column;
  gap:var(--g-unit);                   /* 8 px */
  position:absolute;
  top:64px; 
  left:0;                    /* 헤더 바로 아래 */
  width:100%;
  background:var(--c-white);
  padding:calc(var(--g-unit)*4);       /* 32 px */
  border-bottom:1px solid var(--c-gray-200);
}
/* 메뉴 열렸을 때 배경 어둡게 */
.gnav.is-open::before {
  content: '';
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
.hamburger.is-open span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2){
  opacity:0;
}
.hamburger.is-open span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

/* ----- Footer (공통) ----- */
.site-footer {
  background: var(--c-gray-100);
  color: var(--c-gray-500);
  font-weight: 400;
  padding-block: calc(var(--g-unit)*8);
  font-size: 0.9rem;
  margin-top:auto;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: calc(var(--g-unit)*5);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: calc(var(--g-unit)*5);
}
.footer-about .logo__img {
  height: 48px;
  width: auto;
  margin-bottom: 10px;
}
.footer-about p {
  font-family: var(--ff-body);
  line-height: 1.6;
  margin-top: 30px;
}
.footer-about p .hidden {
  display: none;
}
.footer-about em {
  font-style: normal;
  font-weight: 700;
}
.footer-about em.left {
  margin-left: 20px;
}
.footer-about em::after {
  content: "|";
  font-size: 8px;
  margin-left: 10px;
  margin-right: 10px;
  color: var(--c-gray-400);
}
.footer-about a {
  text-decoration: underline;
}
.footer-about a:hover {
  color: var(--c-pink);
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--c-gray-200);
  padding-top: calc(var(--g-unit)*4);
}
.social-links a {
  margin-right: calc(var(--g-unit)*3);
  color: var(--c-gray-800);
  text-decoration: none;
  transition: color .2s;
}
.social-links a:hover {
  color: var(--c-pink);
}
.copyright {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-gray-400);
}

@media (max-width: 768px) {
  .site-footer {
  font-size: 0.9rem;
  }
  .footer-about em.left {
    margin-left: 0px !important;
  }
  .footer-about p .hidden {
    display: inline-block;
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: calc(var(--g-unit)*3);
  }
  .footer-about em.left{
    margin-left: 10px;
  }
  .footer-about em::after {
  margin-left: 8px;
  margin-right: 8px;
  }
  .footer-about a:hover {
  transform:none !important;
  color: var(--c-gray-800);
  }
  .social-links a:hover {
  transform: none !important;
  color: var(--c-gray-800);
  }

}

/* --- 내비게이션 화살표 (선택) --- */
.swiper-button-lock{
  display: block !important;
}
.swiper-button-next,
.swiper-button-prev{
  /* position:absolute !important;  */
  top:40% !important;
  width:50px !important; 
  height:50px !important;
  border-radius:50% !important;
  background:rgba(255,255,255,0.9) !important;
  box-shadow:0 2px 6px rgba(0,0,0,.15) !important;
  z-index:10 !important; 
  cursor:pointer !important;
  color: rgba(0,0,0,.50) !important;
}
.swiper-button-next{
  right: 20px !important;
}
.swiper-button-prev{
  left: 20px !important;
}
.swiper-button-next::after,
.swiper-button-prev::after{
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--c-gray-800) !important;
}

@media (max-width:768px){
  .swiper-button-next,
  .swiper-button-prev{
    display: none !important; /* 모바일에서는 화살표 숨김 */
  }
}