/* ==================================================
   공통 레이아웃
   모든 페이지에서 사용하는 헤더, 메뉴, 푸터
   ================================================== */

/* 헤더와 메뉴 */
.site-header {
  height: 82px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-header-background);
  border-bottom: 1px solid var(--color-header-border);
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* .brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: 50%;
  letter-spacing: 0;
} */

.site-header nav {
  display: flex;
  gap: 2.4rem;
  font-weight: 600;
}

.site-header nav a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 99px;
  padding: 0.5rem 0.9rem;
}

/* 공통 소제목 */
.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--color-hero-label);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

/* 공통 문의·공유 버튼 */
.page-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-button {
  min-height: 54px;
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-secondary);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-rest);
}

.action-button:focus-visible {
  outline: 3px solid var(--color-share-focus);
  outline-offset: 3px;
}

.action-button svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-email {
  display: inline-flex;
}

.contact-phone {
  display: none;
}

/* 푸터 */
footer {
  padding: 65px 24px;
  text-align: center;
  background: var(--color-footer-background);
  color: var(--color-footer-text);
}

.brand--footer {
  justify-content: center;
  color: var(--color-text-inverse);
  margin-bottom: 1.4rem;
}

.brand--footer span {
  background: var(--color-surface);
  color: var(--color-primary);
}

footer p {
  margin: 0.25rem;
}

.legal {
  font-size: 0.82rem;
  color: var(--color-footer-muted);
}

/* 기타 공통 화면 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 50px 24px;
}

.not-found h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

/* 모바일 공통 레이아웃 */
@media (max-width: 800px) {
  .site-header {
    height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 10px;
  }

  .site-header nav.is-open {
    display: flex;
  }

  .contact-email {
    display: none;
  }

  .contact-phone {
    display: inline-flex;
  }
}
