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

/* ----- Section Header ----- */
.section-header{
  text-align:center;
  margin-bottom:60px;
  padding:0 20px;
}
.section-title{
  position:relative;
  display:inline-block;
  font-size:2.8rem;
  text-transform:uppercase;
  letter-spacing:-0.02em;
  margin-bottom:20px;
  color:var(--c-gray-800);
}
.section-title::after{
  content:'';
  position:absolute;
  bottom:-10px;
  left:50%;
  transform:translateX(-50%);
  width:50px;
  height:4px;
  background:var(--c-yellow);
}
.section-subtitle{
  font-size:1.4rem;
  font-weight:300;
  letter-spacing:-0.02em;
  color:var(--c-gray-600);
  max-width:700px;
  margin:0 auto;
}


/* ----- Buttons ----- */
.btn{
  display:inline-block;
  height:48px;                  
  padding-inline:calc(var(--g-unit)*4);
  border-radius:var(--radius-lg);
  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-yellow); 
  color:var(--c-black);
  border:0.5px solid var(--c-gray-800);
}
.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;
}

/* ----- GNB & Hamburger ----- */
/* GNB */
.gnav{
  display:flex; 
  gap:calc(var(--g-unit)*6);  /* 48px gap */
}      
.gnav__link{
  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::after{
  content:\"\"; 
  position:absolute; 
  left:0; bottom:-4px;
  width:0; height:2px; 
  background:var(--c-yellow); 
  transition:width .3s;
}
.gnav__link:hover{
  color:var(--c-yellow);
}
.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 효과 제거 */
  }
}

/* 모바일 메뉴 열림 상태 */
.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-200);
  color: var(--c-gray-800);
  padding-block: calc(var(--g-unit)*8);
  font-size: 1rem;
}
.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 p {
  font-family: var(--ff-body);
  line-height: 1.6;
  font-weight: 500;
  margin-top: 30px;
}
.footer-about em {
  font-style: normal;
  font-weight: 800;
}
.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);
  /* font-weight: 400; */
}
.footer-about a {
  color: var(--c-gray-800);
  text-decoration: underline;
}
.footer-about a:hover {
  color: var(--c-yellow);
}
.footer-download a {
  text-decoration: none;
  position: relative;
}
.footer-download .btn-download {
  display: inline-block;
  margin-top: calc(var(--g-unit)*3);
  padding: calc(var(--g-unit)*1.5) calc(var(--g-unit)*4.5);
  background-color: var(--c-black);
  color: var(--c-white);
  font-weight: 800;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease-in-out;
}
.footer-download .btn-download:hover {
  transform: translateY(-4px);
  background-color: var(--c-yellow);
  color: var(--c-black);
}
.footer-download .fas.fa-file-download {
  margin-left: calc(var(--g-unit));
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--c-white);
  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-yellow);
}
.copyright {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-gray-600);
}

@media (max-width: 768px) {
  .site-footer {
  font-size: 0.9rem;
  }
  .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;
  }
  .btn-download {
  display: inline-block;
  margin-top: calc(var(--g-unit));
  padding: calc(var(--g-unit)*1) calc(var(--g-unit)*3);
  background-color: var(--c-black);
  color: var(--c-white);
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease-in-out;
  }
  .footer-about a:hover {
  transform:none !important;
  color: var(--c-gray-800);
  }
  .footer-download .btn-download:hover {
  transform: none !important;
  background-color: var( --c-black);
  color: var(--c-white);
  }
  .social-links a:hover {
  transform: none !important;
  color: var(--c-gray-800);
  }
}

/* ----- 모달 (공통) ----- */
.modal{
  position:fixed;
  inset:0;
  display:none;
}
.modal.is-open{
  display:block;
  z-index:1000;
  overflow-y:auto;
  background:rgba(0,0,0,.3);
  /* backdrop-filter:blur(8px); */
}
.modal__close{
  position:sticky;
  z-index: 1002;
  left: 90%;
  border:none;
  background:none;
  font-family: var(--ff-display);
  font-weight: 100;   /* 버튼에서 굵기조정하기 위해서는 폰트 패밀리 지정해야함 */
  font-size: 10rem;
  cursor:pointer;
  color:var(--c-gray-100);
}
/* 마우스로 클릭할 땐 포커스 링 안 보이도록 */
.modal__close:focus{
  outline:none;
}
.modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}
.modal__dialog{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:40%;
  background:var(--c-white);
  height:90vh;
  overflow:auto;
}
.modal__inner{
  padding:2rem;
}
.modal__thumb{
  width:100%;
}
.modal__title{
  font:700 1.6rem/1.4 var(--ff-display);
  letter-spacing:-0.02em;
  color: var(--c-gray-800);
  margin:0 0 1rem;
}
.modal__desc{
  font-size:1rem;
  font-weight: 400;
  line-height:1.5;
  color:var(--c-gray-600);
  margin-bottom:1.5rem;
}
.modal__link{             
  border-radius:8px;
  font-weight:700;
}

@media (max-width: 768px) {
  .modal__overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.6);
  }
  .modal__dialog{
    width:90%;
  }
  .modal__close{
    top:4%;      
    left: 82%;
    font-size: 4rem;
    color: var(--c-gray-100);
  }
}