/*
  와이어프레임과 같은 상세 화면.
  위는 긴 이미지, 아래는 상담 예약하기 버튼입니다.
  버튼은 아래로 스크롤하면 내려가고, 위로 스크롤하면 다시 나옵니다.
*/

:root {
  --image: #e6e6e6;
  --line: #c8c8c8;
  --bar: #ffffff;
  --button: #767676;
  --button-press: #5f5f5f;
  --ink: #ffffff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  color-scheme: light;
  background: #d0d0d0;
}

body {
  margin: 0;
  background: #d0d0d0;
  color: #1c1c1c;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #1c1c1c;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 30;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #1c1c1c;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app {
  width: 100%;
  margin: 0 auto;
  background: var(--image);
}

/*
  상세 이미지는 창 너비에 맞춰 가로가 늘어나고,
  세로는 원본 비율을 유지한 채 함께 바뀝니다.
  화면보다 길면 아래로 스크롤합니다.
  디자이너 시안으로 src를 바꾸면 그 파일 비율대로 늘어납니다.
*/
.detail-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: var(--image);
}

/*
  하단 푸터.
  배경 gray-100, 본문 12px gray-500, 상호는 조금 진하게,
  저작권은 10px gray-400 입니다.
*/
.site-footer {
  width: 100%;
  margin: 0;
  padding: 1.5rem 1rem;
  background: #f3f4f6;
  color: #6b7280;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.45;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.25rem;
}

.site-footer-name {
  color: #4b5563;
  font-weight: 600;
}

.site-footer p.site-footer-copy {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  color: #9ca3af;
  font-size: 10px;
}

.reserve-bar {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 0.85rem 1rem calc(0.85rem + var(--safe-bottom));
  background: var(--bar);
  transform: translateY(0);
  transition: transform 0.22s ease;
}

.reserve-bar.is-hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: var(--button);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.reserve-btn:active {
  background: var(--button-press);
}

@media (prefers-reduced-motion: reduce) {
  .reserve-bar {
    transition: none;
  }
}
