/* 헤더 · 푸터 · 버튼 */

/* 헤더 — 스크롤을 따라 화면 위에 남는다.
   맨 위에서는 배경 없이 시안 그대로 두고, 내려가면 흰 배경을 깔아
   아래 내용과 겹쳐도 읽히게 한다 */
.header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 100%;
  height: 85px;
  padding: 0 var(--gutter, 4%);
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

.header.is-stuck {
  background-color: #fff;
  box-shadow: 0 2px 16px rgba(28, 28, 28, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  flex: none;
}

.header-logo {
  width: 139px;
  height: 45px;
}

.header-chip {
  flex: none;
  margin-left: 10px;
  padding: 8px 10px;
  border-radius: 50px;
  background-color: #fdd000;
  font-family: var(--font-nanum, "NanumSquareRound", sans-serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 13px;
  color: #37373d;
}

.header.mid .header-chip,
.t-mid .header-chip {
  background-color: #4de5a5;
}

.header.hi .header-chip,
.t-high .header-chip {
  background-color: #c0a9ff;
}

.header-gnb {
  display: contents;
}

.header-nav,
.header-util {
  display: flex;
  align-items: center;
}

.header-nav a,
.header-util a {
  display: block;
  font-family: var(--font-paperlogy, "Paperlogy", sans-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 85px;
  white-space: nowrap;
  color: var(--c-ink, #171719);
  transition: color 0.18s;
}

.header-nav li,
.header-util li {
  margin-right: 50px;
}

.header-nav li:last-child,
.header-util li:last-child {
  margin-right: 0;
}

.header-nav a:hover,
.header-util a:hover,
.header-nav a.is-active {
  color: #009dff;
}

.header-util a.hd-event {
  display: flex;
  align-items: center;
}

.header-util a.hd-event > span {
  display: block;
  font-size: 10px;
  font-family: 'pretendard';
  letter-spacing: -.5px;
  font-weight: 600;
  line-height: 19px;
  padding: 0 6px;
  margin-left: 5px;
  background-color: #FFCF00;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  transition: all 0.2s ease-in-out;
}

.header-util li:hover > a.hd-event > span {
  background-color: #111;
  color: #FFCF00;
}

/* 햄버거 버튼은 넓은 화면에서 숨긴다 */
.header-menu {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(30, 34, 40, 0.12);
}

.header-menu span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: #1c1c1e;
  transition:
    transform 0.22s,
    opacity 0.18s;
}

.header-menu span:nth-child(1) {
  top: 16px;
}

.header-menu span:nth-child(2) {
  top: 21px;
}

.header-menu span:nth-child(3) {
  top: 26px;
}

.header-menu.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.header-menu.is-open span:nth-child(2) {
  opacity: 0;
}

.header-menu.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1619px) {
  .header-nav li,
  .header-util li {
    margin-right: 32px;
  }
}

/* 태블릿부터는 시안대로 햄버거 메뉴를 쓴다 (헤더 64px) */
@media (max-width: 1279px) {
  .header {
    height: 64px;
    padding: 0 24px;
  }

  .header-inner {
    gap: 12px;
  }

  /* 시안 태블릿·모바일 로고는 배지를 뺀 100 × 32.5 */
  .header-logo {
    width: 100px;
    height: 32.5px;
  }

  .header-chip {
    margin-left: 8px;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 10px;
  }

  .header-menu {
    display: block;
  }

  .header-gnb {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 6px 24px 18px;
    background-color: #fff;
    box-shadow: 0 12px 24px rgba(30, 34, 40, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }

  .header-gnb.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .header-nav,
  .header-util {
    display: block;
  }

  .header-util {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }

  .header-nav li,
  .header-util li {
    margin-right: 0;
  }

  .header-nav a,
  .header-util a {
    font-size: 17px;
    line-height: 46px;
  }
}

@media (max-width: 767px) {
  .header-nav a,
  .header-util a {
    font-size: 16px;
    line-height: 44px;
  }
}

/* 푸터 */
.footer {
  background-color: #0d0b09;
}

.footer .stage {
  padding: 60px var(--pad-detail) 50px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 50px;
}

.footer-logo {
  width: 176px;
  height: 56.9px;
  flex: none;
}

.footer-info li {
  display: flex;
  flex-wrap: wrap;
}

.footer-info span {
  margin-right: 30px;
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 14px;
  line-height: 26px;
  color: #fff;
}

.footer-contact {
  flex: none;
  text-align: right;
}

.footer-contact p {
  font-family: var(--font-jakarta);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #fff;
}

.footer-bottom {
  padding-top: 25px;
}

.footer-copy {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 14px;
  line-height: 30px;
  color: #fff;
}

.footer-note {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #777;
}

@media (max-width: 1279px) {
  .footer .stage {
    padding: 44px var(--pad-detail) 40px;
  }

  .footer-brand {
    gap: 0 28px;
  }

  .footer-logo {
    width: 140px;
    height: 45px;
  }

  .footer-info span {
    margin-right: 18px;
    font-size: 13px;
    line-height: 24px;
  }
}

@media (max-width: 767px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 24px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-contact p {
    font-size: 14px;
    line-height: 24px;
  }

  .footer-copy,
  .footer-note {
    font-size: 12px;
    line-height: 20px;
  }

  .footer-note {
    margin-top: 6px;
  }
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  font-family: var(--font-paperlogy);
  font-weight: 600;
  color: #fff;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    filter 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-hero {
  padding: 20px 52px;
  background-color: #009dff;
  font-size: 20px;
  line-height: 23.6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.btn-dark {
  padding: 18px 48px;
  background-color: #333;
  font-size: 20px;
  line-height: 23.6px;
}

@media (max-width: 1279px) {
  .btn-hero {
    padding: 16px 38px;
    font-size: 17px;
  }

  .btn-dark {
    padding: 14px 36px;
    font-size: 16px;
    line-height: 18.8px;
  }
}

@media (max-width: 767px) {
  .btn-hero {
    padding: 13px 28px;
    font-size: 15px;
    line-height: 20px;
  }

  .btn-dark {
    padding: 14px 36px;
    font-size: 15px;
    line-height: 17.7px;
  }
}
