/* ============================================================
   예봉산장 — 페이지 컴포넌트 스타일
   디자인 토큰(색/타이포/간격)은 style.css 참조. 이 파일은
   레이아웃과 컴포넌트만 담당한다. 모바일 우선으로 작성.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font: var(--text-body-weight) var(--text-body-size) / var(--text-body-leading) var(--text-body-family);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 한국어 단어 중간 줄바꿈 방지 */
  word-break: keep-all;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--green-200);
  color: var(--green-900);
}

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* ---- 공통 섹션 리듬 ---- */
.section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.overline {
  font: var(--text-overline-weight) var(--text-overline-size) / var(--text-overline-leading) var(--text-overline-family);
  letter-spacing: var(--overline-tracking);
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.section-title {
  margin: 0 0 var(--space-4);
  font: var(--text-h1-weight) var(--text-h1-size) / var(--text-h1-leading) var(--text-h1-family);
  color: var(--text-primary);
}

/* 제목 아래 골드 헤어라인 — 전통과 품격의 포인트 */
.section-head .section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--color-accent);
  margin: 22px auto 0;
}

.section-desc {
  margin: 0 auto;
  max-width: var(--content-max-width-narrow);
  font: var(--text-body-lg-weight) var(--text-body-lg-size) / var(--text-body-lg-leading) var(--text-body-lg-family);
  color: var(--text-secondary);
}

/* ---- 스크롤 리빌 (--reveal-delay 로 순차 등장) ---- */
.reveal {
  opacity: 0.01;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease-out-soft),
    transform 700ms var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 버튼 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: 600 var(--text-body-size) / 1 var(--font-kr-sans);
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* 히어로 전용 버튼 — 사진 위에서도 또렷하게 */
.btn-hero-solid {
  background: var(--beige-50);
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
}

.btn-hero-solid:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   내비게이션
   ============================================================ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition:
    background var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.nav-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 14px clamp(20px, 4vw, 40px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 1.125rem / 1 var(--font-kr-serif);
  color: #fff;
  transition: color var(--duration-base) var(--ease-standard);
}

.nav-logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  font: 500 0.9375rem / 1 var(--font-kr-sans);
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--duration-base) var(--ease-standard);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transition: right var(--duration-base) var(--ease-standard);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

/* .nav-links a 보다 특이도를 높여 링크 기본 스타일을 확실히 덮어쓴다 */
.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font: 600 0.9375rem / 1 var(--font-kr-sans);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-standard);
}

.nav-links .nav-cta::after {
  content: none;
}

.nav-links .nav-cta .icon {
  width: 16px;
  height: 16px;
}

.nav-links .nav-cta:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-standard);
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

/* 스크롤 시 밝은 배경으로 전환 */
.nav-bar.scrolled {
  background: rgba(252, 250, 246, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xs);
}

.nav-bar.scrolled .nav-logo {
  color: var(--color-primary);
}

.nav-bar.scrolled .nav-links a {
  color: var(--text-primary);
}

.nav-bar.scrolled .nav-links .nav-cta {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.nav-bar.scrolled .nav-links .nav-cta:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-sm);
}

.nav-bar.scrolled .nav-toggle {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ---- 모바일 전체화면 메뉴 ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  background: var(--green-900);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-base) var(--ease-standard),
    visibility var(--duration-base) var(--ease-standard);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font: 600 clamp(2rem, 6vw, 2.5rem) / 1.2 var(--font-kr-serif);
  color: #ffffff;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-standard);
}

.mobile-menu a.active {
  color: var(--color-primary-hover);
}

.mobile-menu .btn {
  margin-top: var(--space-3);
  background: #fff;
  color: var(--color-primary);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close .icon {
  width: 20px;
  height: 20px;
}

/* ============================================================
   히어로
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh; /* svh 미지원 구형 브라우저 폴백 */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  animation: hero-zoom 24s ease-in-out infinite alternate;
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 간판(예봉산장)이 사진의 오른쪽 중앙에 있어 초점을 그쪽으로 */
  object-position: 60% 50%;
  display: block;
  will-change: transform;
  backface-visibility: hidden;
}

/* 모바일: 가로 사진이 세로 화면에서 과하게 잘리지 않도록
   히어로를 낮춰 간판과 입구가 온전히 보이게 한다 */
@media (max-width: 720px) {
  .hero {
    min-height: 76vh; /* svh 미지원 구형 브라우저 폴백 */
    min-height: 76svh;
  }

  .hero-content {
    padding-bottom: clamp(84px, 11svh, 130px);
  }
}

/* 밝은 사진 위 글자 가독성을 위한 스크림 + 비네트 */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(15, 31, 22, 0.42), transparent 62%),
    linear-gradient(
      to top,
      rgba(15, 31, 22, 0.86) 0%,
      rgba(15, 31, 22, 0.38) 36%,
      rgba(15, 31, 22, 0.08) 60%,
      rgba(15, 31, 22, 0.22) 100%
    );
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 var(--section-padding-x) clamp(110px, 17svh, 170px);
  max-width: 900px;
}

.hero-eyebrow {
  font: 500 0.8125rem / 1 var(--font-en-serif-body);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--beige-200);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: hero-char-in 900ms ease-out 250ms forwards;
}

.hero-title {
  margin: 0 0 var(--space-5);
  font: var(--text-display-1-weight) var(--text-display-1-size) / var(--text-display-1-leading) var(--text-display-1-family);
  color: var(--green-50);
  text-wrap: balance;
}

.hero-char {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  animation: hero-char-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-sub {
  margin: 0;
  font: 400 clamp(1rem, 1.6vw, 1.185rem) / 1.7 var(--font-kr-sans);
  color: var(--beige-100);
  opacity: 0;
  animation: hero-char-in 900ms ease-out 1.7s forwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  opacity: 0;
  animation: hero-char-in 900ms ease-out 2.05s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font: 500 10px / 1 var(--font-en-serif-body);
  letter-spacing: 0.26em;
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -45%;
  left: 0;
  width: 100%;
  height: 45%;
  background: #fff;
  animation: scroll-drip 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07);
  }
}

@keyframes hero-char-in {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-drip {
  0% {
    top: -45%;
  }

  100% {
    top: 110%;
  }
}

/* ============================================================
   브랜드 스토리
   ============================================================ */
.grid-brand {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.brand-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.brand-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-figure figcaption {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-card);
  font: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-leading) var(--text-caption-family);
  color: var(--text-muted);
}

.brand-copy h2 {
  margin: 0 0 var(--space-6);
  font: var(--text-h1-weight) var(--text-h1-size) / var(--text-h1-leading) var(--text-h1-family);
  color: var(--text-primary);
}

.brand-copy p {
  margin: 0;
  font: var(--text-body-lg-weight) var(--text-body-lg-size) / var(--text-body-lg-leading) var(--text-body-lg-family);
  color: var(--text-secondary);
}

.brand-copy p + p {
  margin-top: var(--space-4);
}

@media (min-width: 860px) {
  .grid-brand {
    grid-template-columns: 1fr 1.15fr;
  }
}

/* ============================================================
   브랜드 철학 (다크 섹션)
   ============================================================ */
.philosophy {
  background: var(--green-800);
  text-align: center;
}

.philosophy .overline {
  color: var(--beige-200);
}

.philosophy-statement {
  max-width: var(--content-max-width-narrow);
  margin: 0 auto clamp(56px, 8vw, 88px);
}

.philosophy-statement h2 {
  margin: 0;
  font: var(--text-display-2-weight) var(--text-display-2-size) / var(--text-display-2-leading) var(--text-display-2-family);
  color: #fff;
}

.philosophy-statement p {
  margin: var(--space-8) 0 0;
  font: var(--text-body-lg-weight) var(--text-body-lg-size) / var(--text-body-lg-leading) var(--text-body-lg-family);
  color: var(--text-on-dark-muted);
}

.grid-philosophy {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--beige-100);
  transition:
    transform var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard);
}

.value-card:hover .value-icon {
  transform: translateY(-5px);
  background: rgba(246, 240, 230, 0.12);
  border-color: var(--gold-200);
  color: var(--gold-200);
}

.value-card h3 {
  margin: 0;
  font: 600 var(--text-h4-size) / 1 var(--font-kr-sans);
  color: #fff;
}

.value-card p {
  margin: 0;
  font: var(--text-body-sm-weight) var(--text-body-sm-size) / var(--text-body-sm-leading) var(--text-body-sm-family);
  color: var(--text-on-dark-muted);
  max-width: 220px;
}

@media (min-width: 560px) {
  .grid-philosophy {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-philosophy {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================================
   대표 메뉴 — 에디토리얼 리스트
   ============================================================ */
.menu-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: grid;
  grid-template-columns: clamp(36px, 5vw, 48px) 1fr;
  column-gap: clamp(12px, 3vw, 24px);
  padding: clamp(24px, 4vw, 34px) var(--space-2);
  border-bottom: 1px solid var(--stone-200);
  transition: background var(--duration-base) var(--ease-standard);
}

.menu-item:first-child {
  border-top: 1px solid var(--stone-200);
}

.menu-item:hover {
  background: var(--surface-sunken);
}

.menu-index {
  grid-row: span 2;
  padding-top: 5px;
  font: italic 500 1.05rem / 1.4 var(--font-en-serif-display);
  color: var(--stone-300);
  transition: color var(--duration-base) var(--ease-standard);
}

.menu-item:hover .menu-index {
  color: var(--gold-400);
}

.menu-item-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.menu-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.menu-item:hover .menu-thumb,
.menu-item-has-poster:hover .menu-thumb {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.menu-item-has-poster {
  position: relative;
  cursor: pointer;
  outline: none;
}

.menu-item-has-poster:focus-visible {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
}

.menu-title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
}

.menu-item h3 {
  margin: 0;
  font: 600 clamp(1.15rem, 2.4vw, 1.5rem) / 1.3 var(--font-kr-serif);
  color: var(--green-900);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.menu-item-has-poster:hover h3 {
  color: var(--color-primary-hover);
}

.menu-badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--gold-500);
  font: 600 0.7rem / 1.2 var(--font-kr-sans);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}

.menu-poster-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(217, 174, 92, 0.12);
  border: 1px solid rgba(217, 174, 92, 0.45);
  color: var(--gold-600);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.menu-poster-tag .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
  color: var(--gold-500);
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu-item-has-poster:hover .menu-poster-tag,
.menu-item-has-poster:focus-visible .menu-poster-tag {
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: scale(1.12);
}

.menu-item-has-poster:hover .menu-poster-tag .icon,
.menu-item-has-poster:focus-visible .menu-poster-tag .icon {
  color: #FFFFFF;
  transform: scale(1.08);
}

/* 데스크톱 마우스 호버 시 자연스럽게 떠오르는 포스터 미리보기 */
.menu-hover-preview {
  display: none;
}

@media (hover: hover) and (min-width: 768px) {
  .menu-hover-preview {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateX(10px) scale(0.95);
    width: 148px;
    padding: 6px;
    background: #FFFFFF;
    border: 1.5px solid var(--gold-300);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(15, 31, 22, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 20;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .preview-frame {
    width: 100%;
    border-radius: calc(var(--radius-md) - 4px);
    overflow: hidden;
    aspect-ratio: 1054 / 1492;
    background: var(--surface-sunken);
  }

  .preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 2px;
    font: 600 0.6875rem / 1 var(--font-kr-sans);
    color: var(--gold-600);
  }

  .preview-footer .icon {
    width: 12px;
    height: 12px;
  }

  .menu-item-has-poster:hover .menu-hover-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

.menu-item p {
  margin: 0;
  font: 400 1.02rem / 1.7 var(--font-kr-sans);
  color: var(--stone-600);
}

/* ============================================================
   공간
   ============================================================ */
.grid-space {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.space-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone-200);
  display: block;
  cursor: zoom-in;
}

.space-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 600ms var(--ease-standard);
}

.space-card:hover img {
  transform: scale(1.04);
}

.space-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: var(--space-4);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(252, 250, 246, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--charcoal-500);
  font: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-leading) var(--text-caption-family);
}

.space-card-main {

}

.space-sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 560px) {
  .space-sub {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .grid-space {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   갤러리 (masonry)
   ============================================================ */
.gallery-section {
  background: var(--surface-section);
}

.gallery-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin: 0 calc(var(--space-6) * -1);
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  position: relative;
  display: block;
  flex: 0 0 85%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 0;
  cursor: zoom-in;
  background: var(--stone-200);
  transition:
    transform 380ms var(--ease-standard),
    box-shadow 380ms var(--ease-standard);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (min-width: 560px) {
  .gallery-grid {
    display: block;
    overflow-x: visible;
    column-count: 2;
    column-gap: var(--space-6);
    padding: 0;
    margin: 0 auto;
    max-width: var(--content-max-width);
  }
  .gallery-item {
    width: 100%;
    margin-bottom: var(--space-6);
    aspect-ratio: auto;
  }
  .gallery-item img {
    height: auto;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 3;
  }
}

/* 호버 시 사진 설명 오버레이 */
.gallery-item::after {
  content: attr(data-cap);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(15, 31, 22, 0.72), transparent);
  color: #fff;
  font: 500 0.8125rem / 1.4 var(--font-kr-sans);
  text-align: left;
  opacity: 0;
  transition: opacity 380ms var(--ease-standard);
  pointer-events: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

/* ---- 라이트박스 ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(15, 31, 22, 0.92);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-base) var(--ease-standard),
    visibility var(--duration-base) var(--ease-standard);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 100%;
  max-height: 100%;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox figcaption {
  font: 400 var(--text-body-sm-size) / 1.5 var(--font-kr-sans);
  color: var(--beige-200);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 31, 22, 0.5);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  transform: none;
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(15, 31, 22, 0.8);
}

.lightbox-close .icon,
.lightbox-nav .icon {
  width: 20px;
  height: 20px;
}

/* ============================================================
   메뉴 포스터 전용 모달 (Showcase Modal)
   ============================================================ */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease-out, visibility 0.12s ease-out;
}

.poster-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.poster-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.poster-modal-container {
  position: relative;
  z-index: 10;
  width: min(90vw, 480px);
  max-height: 94dvh;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: none;
  will-change: opacity;
}

.poster-modal.open .poster-modal-container {
  transform: none;
}

.poster-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(217, 174, 92, 0.65);
  background: var(--green-900);
  color: var(--beige-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.poster-modal-close:hover {
  background: var(--gold-500);
  color: #FFFFFF;
  transform: scale(1.06);
}

.poster-modal-close .icon {
  width: 18px;
  height: 18px;
}

.poster-modal-body {
  width: 100%;
  background: var(--beige-50);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-300);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.poster-image-wrap {
  position: relative;
  overflow: hidden;
  background: #F4EFE6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1054 / 1492;
  max-height: calc(82dvh - 54px);
  max-height: calc(82vh - 54px);
}

.poster-skeleton {
  display: none;
}

.poster-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.18s ease-out;
  will-change: opacity;
}

.poster-image-wrap.is-loading img {
  opacity: 0;
}

.poster-info {
  padding: 12px 20px 14px;
  background: var(--beige-50);
  border-top: 1px solid var(--stone-200);
  text-align: center;
}

.poster-info h3 {
  margin: 0;
  font: 600 clamp(1.05rem, 2.2vw, 1.25rem) / 1.3 var(--font-kr-serif);
  color: var(--green-900);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .poster-modal-close {
    top: 10px;
    right: 10px;
    background: rgba(15, 31, 22, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .poster-info {
    padding: 10px 16px 12px;
  }
}

/* ============================================================
   오시는 길
   ============================================================ */
.grid-location {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 56px);
  max-width: var(--content-max-width);
  margin: 0 auto;
  align-items: center;
}

.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(94, 138, 108, 0.35), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(63, 106, 117, 0.4), transparent 50%),
    linear-gradient(150deg, var(--green-700), var(--green-900));
  color: #fff;
  text-align: center;
  padding: var(--space-8);
  transition:
    transform var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.map-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.map-card .icon {
  width: 42px;
  height: 42px;
  color: var(--beige-100);
  stroke-width: 1.5;
}

.map-card strong {
  font: 600 1.25rem / 1.4 var(--font-kr-serif);
}

.map-card span {
  font: 400 var(--text-body-sm-size) / 1.6 var(--font-kr-sans);
  color: var(--beige-200);
}

.map-card-cta {
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  font: 500 var(--text-body-sm-size) / 1 var(--font-kr-sans);
  transition: background var(--duration-base) var(--ease-standard);
}

.map-card:hover .map-card-cta {
  background: rgba(255, 255, 255, 0.24);
}

.map-card-cta .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: 0;
}

.info-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.info-row .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--color-secondary);
  stroke-width: 1.8;
}

.info-row dt {
  width: 64px;
  flex-shrink: 0;
  font: 500 var(--text-body-sm-size) / 1.7 var(--font-kr-sans);
  color: var(--text-muted);
}

.info-row dd {
  margin: 0;
  font: 400 var(--text-body-size) / 1.7 var(--font-kr-sans);
  color: var(--text-primary);
}

.info-row dd small {
  display: block;
  font-size: var(--text-body-sm-size);
  color: var(--text-muted);
}

.location-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

@media (min-width: 780px) {
  .grid-location {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   푸터
   ============================================================ */
.site-footer {
  background: var(--green-900);
  padding: 56px var(--section-padding-x) 40px;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.footer-inner img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.footer-name {
  font: 600 1.25rem / 1 var(--font-kr-serif);
  color: #fff;
}

.footer-slogan {
  font: italic 400 1rem / 1.6 var(--font-en-serif-body);
  color: var(--text-on-dark-muted);
}

.footer-contact {
  font: 400 var(--text-body-sm-size) / 1.8 var(--font-kr-sans);
  color: var(--text-on-dark-muted);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-copy {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-on-dark);
  width: 100%;
  font: 400 var(--text-caption-size) / 1.6 var(--font-kr-sans);
  color: var(--text-on-dark-muted);
}

/* ============================================================
   플로팅 요소 (CTA 및 맨 위로)
   ============================================================ */
.sticky-call-btn,
.sticky-call-btn:visited,
.sticky-call-btn:active {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  z-index: var(--z-sticky);
  background: var(--color-primary);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(31, 61, 44, 0.4);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(31, 61, 44, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(31, 61, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 61, 44, 0); }
}

.sticky-call-btn .icon {
  width: 24px;
  height: 24px;
}

.sticky-call-btn:active {
  transform: scale(0.96);
}

@media (min-width: 768px) {
  .sticky-call-btn {
    display: none; /* PC에서는 숨김 */
  }
}

/* ============================================================
   맨 위로 버튼
   ============================================================ */
.to-top {
  position: fixed;
  right: 27px;
  bottom: 90px;
  z-index: 150;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--duration-base) var(--ease-standard),
    visibility var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--color-primary-hover);
}

.to-top .icon {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}

/* ============================================================
   접근성 · 모션 최소화
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg {
    animation: none;
  }

  .scroll-line::after {
    animation: none;
  }

  .hero-char,
  .hero-sub,
  .hero-eyebrow,
  .hero-actions {
    animation-duration: 1ms;
    animation-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0.01;
  transform: translateY(30px);
  transition: opacity 0.8s ease var(--reveal-delay, 0ms), transform 0.8s ease var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
