/* 사이트 전체 모양 — pearlabyss.com/ko-KR 느낌 (2026-10-28 원장님)
   배치와 움직임만 참고하고 글 · 사진은 쓰지 않는다.
   - 헤더: 가운데 고르게 펼친 메뉴, 올리면 모든 하위 메뉴가 한 판에 펼쳐진다 (메가 메뉴)
   - 하위 페이지 맨 위: 사진 띠 + 가운데 제목 + 아래로 내려오는 세로선
   - 장(sec): 가운데 정렬 제목, 장 사이 세로선, 한 장 걸러 옅은 회색 바탕
   - 푸터: 메뉴 칸 → 지점 정보 → 로고 · 저작권 줄
   components.css 는 Solist 와 같은 공통 파일이라 고치지 않고 여기서 덮어쓴다. */

:root {
  --mega-height: 170px;          /* 메가 메뉴 판 높이 (하위 메뉴 최대 4줄) */
  --band: #f5f5f5;               /* 한 장 걸러 깔리는 회색 */
}

/* ───────── 헤더 ───────── */
.site-header__logo {
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
}

.site-nav {
  margin-inline: auto;
}

.site-nav__list {
  gap: 0;
}

.site-nav__item {
  min-width: 8.5rem;
  text-align: center;
}

.site-nav__link {
  justify-content: center;
  font-size: 1rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0;
}

.site-nav__link .site-nav__caret {
  display: none;
}

.site-nav__link::after {
  /* 글자 폭보다 양쪽으로 조금 더 길게 (2026-10-31 원장님: 글자에 비해 짧다) */
  left: -0.6em;
  right: -0.6em;
  bottom: 18px;
  height: 2px;
  transform-origin: center;
}

/* 메가 메뉴 — 메뉴 줄에 올리거나 키보드로 들어오면 모든 하위 메뉴가 함께 펼쳐진다 */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--mega-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-out), visibility 0s linear var(--duration-fast);
}

.site-nav__menu {
  left: 0;
  right: 0;
  top: var(--header-height);
  min-width: 0;
  padding: var(--space-4) 0 0;
  border: 0;
  background: transparent;
  transform: translateY(-6px);
  text-align: center;
  z-index: 1;
}

.site-nav__menu a {
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  white-space: nowrap;
}

.site-nav__menu a:hover,
.site-nav__menu a[aria-current="page"] {
  background: none;
  color: var(--color-text);
}

@media (min-width: 961px) {
  .site-header:has(.site-nav:hover)::after,
  .site-header:has(.site-nav:focus-within)::after {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav:hover .site-nav__menu,
  .site-nav:focus-within .site-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  /* 사진 위 투명 헤더도 메뉴를 펼치면 흰 바탕으로 */
  .site-header.is-over-photo:has(.site-nav:hover),
  .site-header.is-over-photo:has(.site-nav:focus-within) {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-line);
  }
}

.site-header.is-hidden::after {
  visibility: hidden;
  opacity: 0;
}

@media (max-width: 1200px) {
  .site-nav__item { min-width: 6.5rem; }
}

/* ───────── 하위 페이지 맨 위 사진 띠 ───────── */
.page-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  margin-bottom: var(--space-9);
  padding: var(--space-8) var(--gutter) calc(var(--space-8) + var(--space-6));
  background: #1a1a1a center / cover no-repeat;
  color: var(--color-on-photo);
  text-align: center;
}

.page-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

/* 띠 아래쪽 — 스크롤할 수 있다는 표시 (2026-10-29 원장님: 세로선 대신) */
.page-visual::after {
  content: "SCROLL";
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  padding-bottom: 30px;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(255, 255, 255, 0.85);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7l6 6 6-6'/%3E%3C/svg%3E") center bottom / 20px 20px no-repeat;
  animation: page-visual-scroll 1.8s ease-in-out infinite;
}

@keyframes page-visual-scroll {
  0%, 100% { background-position: center calc(100% - 6px); opacity: 0.85; }
  50% { background-position: center 100%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-visual::after { animation: none; }
}

.page-visual__inner {
  position: relative;
  max-width: 50rem;
}

.page-visual__label {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  opacity: 0.85;
  text-align: center;
}

.page-visual__title {
  margin-top: var(--space-3);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
}

.page-visual__lead {
  margin-top: var(--space-5);
  font-size: var(--text-lead);
  line-height: 1.65;
  opacity: 0.92;
  text-align: center;
  word-break: keep-all;
}

@media (max-width: 760px) {
  .page-visual__lead { font-size: 1rem; }
}

/* ───────── 장 (sec) — 가운데 제목 · 세로선 · 한 장 걸러 회색 ───────── */
.sec {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-7);
  padding-block: var(--space-9);
  border-top: 0;
}

.sec + .sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: var(--space-7);
  background: var(--color-line-strong);
}

.sec:nth-of-type(even) {
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}

.sec__head {
  max-width: 44rem;
  text-align: center;
}

.sec__num,
.sec__title,
.sec__desc {
  text-align: center;
}

.sec__title {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
}

.sec__desc {
  word-break: keep-all;
}

.sec__body {
  width: 100%;
  max-width: 68rem;
}

.sec:nth-of-type(even) .quote,
.sec:nth-of-type(even) .branch-card {
  background: var(--color-bg);
}

@media (max-width: 960px) {
  .sec { padding-block: var(--space-8); }
}

/* ───────── 푸터 ───────── */
.site-footer {
  border-top: 1px solid var(--color-line);
}

.site-footer__bottom {
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.site-footer__bottom-brand {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-footer__brand {
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  color: var(--color-text);
}
