/* 로고 */
.site-logo {
  display: inline-flex;
  align-items: center;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  height: 44px;
  width: auto;
  max-width: 260px;
}

.site-branding__text {
  font-size: 32px;
  font-weight: 800;
  color: #1565c0;
  line-height: 1;
}

/* 상단 링크 */
.sub-header-tagline {
  margin: 0;
  color: #8b8b8b;
}

.sub-header-link {
  color: #777;
  text-decoration: none;
  white-space: nowrap;
}

.sub-header-link:hover {
  color: var(--color-primary);
}

/* 검색 */
.header-search-form {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 4px 6px 4px 18px;
  background: #fafafa;
}

.header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 6px 4px;
}

.header-search-input:focus {
  outline: none;
}

.header-search-btn {
  border: none;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}

/* HOT */
.header-hot {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  max-width: 240px;
  height: 24px;
}

.hot-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.hot-item {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
}

/* 상담 버튼 */
.consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.consult-live {
  background: #ffe600;
  color: #222;
  border: 1px solid #e5c800;
}

.consult-live:hover {
  filter: brightness(0.95);
}

.consult-mice {
  background: #111827;
  color: #fff;
  border: 1px solid #020617;
}

.consult-mice:hover {
  background: #020617;
}

/* GNB */
.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item,
.nav-list > li {
  position: relative;
}

.nav-link,
.nav-list > li > a {
  position: relative;
  display: inline-block;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: #333;
  white-space: nowrap;
}

.nav-link::after,
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background-color: #0077cc;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

.nav-item:hover > .nav-link::after,
.nav-list > li:hover > a::after {
  transform: scaleX(1);
}

.nav-item:hover > .nav-link,
.nav-list > li:hover > a {
  color: #000;
}

/* 워드프레스 submenu */
.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  margin: 0;
  padding: 0 0 5px 0;
  list-style: none;
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s;
  z-index: 20;
}

.nav-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-list .sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #333;
  white-space: nowrap;
}

.nav-list .sub-menu li a:hover {
  background-color: #f2f6fb;
  color: #0077cc;
}

/* 햄버거 */
.menu-toggle {
  display: none;
  padding: 6px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #333;
  margin: 3px 0;
  border-radius: 999px;
}

/* 공통 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn--dark {
  background: #111827;
  color: #fff;
}

.btn--dark:hover {
  background: #000;
}

.btn--kakao {
  background: #f8df00;
  color: #111827;
}

.btn--kakao:hover {
  filter: brightness(0.97);
}

.btn--outline {
  border-color: #d1d5db;
  background: #fff;
  color: #111827;
}

.btn--outline:hover {
  background: #f9fafb;
}

/* 푸터 */
.site-footer__menu a {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #1f2937;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

.site-footer__title,
.site-footer__phone {
  margin: 0;
}

.site-footer__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.site-footer__phone {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 20px;
}

.site-footer__col h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.site-footer__col p {
  margin: 0 0 8px;
  color: #4b5563;
}

.site-footer__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* 모바일 */
@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    width: 100%;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-link,
  .nav-list > li > a {
    padding: 10px 10px;
    font-size: 14px;
  }

  .consult-btn {
    width: 100%;
  }
}