/* ============================================================
   BS 길 종합병원 — 개원 안내 단독 페이지 (100vh, self-contained)
   intro.html 전용. reset.css / style.css를 쓰지 않고 혼자 완결된다.
   폰트만 pretendard.css를 함께 불러온다.
   ============================================================ */
:root {
  --navy: #0f2054;
  --navy-deep: #0a1738;
  --accent: #2451c9;
  --emergency: #ff4d4d;
  --line-w: rgba(255, 255, 255, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Pretendard', sans-serif;
  background: var(--navy-deep); color: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- 전체 무대 : 한 화면 ----- */
.stage {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.stage__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/intro/intro.jpg") no-repeat center / cover;
  transform: scale(1.04);
  animation: slowZoom 18s ease-out both;
}
.stage__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 23, 56, .82) 0%, rgba(10, 23, 56, .6) 45%, rgba(10, 23, 56, .45) 100%);
}
@keyframes slowZoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }

/* 콘텐츠 폭 — 좌우 여백 포함 1440px 안으로 모음 */
.inner {
  max-width: 1440px; width: 100%; margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* ----- 상단 : 로고 ----- */
.top {
  flex: none; padding-block: 28px;
}
/* 로고 원본이 어두운 색이라 흰색으로 반전 */
.top__logo { height: 30px; width: auto; filter: brightness(0) invert(1); }

/* ----- 본문 : 좌 카피 + 우 패널 ----- */
.main {
  flex: 1; display: flex; align-items: center;
}
.main__inner {
  display: grid; align-items: center;
  grid-template-columns: 1fr minmax(340px, 400px);
  gap: clamp(30px, 5vw, 72px);
}

/* 좌측 카피 */
.copy { animation: fadeUp .8s ease both; }
.copy__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 3.5px; color: #9fbaff;
  margin-bottom: 22px;
}
.copy__eyebrow::before {
  content: ""; width: 28px; height: 1px; background: #9fbaff;
}
.copy__title {
  font-size: clamp(34px, 4.2vw, 60px); font-weight: 300;
  line-height: 1.32; letter-spacing: -1.4px;
}
.copy__title em { font-style: normal; font-weight: 700; color: #9fbaff; }
.copy__open {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-w);
}
.copy__date {
  font-size: clamp(18px, 1.7vw, 26px); font-weight: 700; letter-spacing: 0;
}
.copy__badge {
  padding: 5px 13px; background: #fff; color: var(--navy);
  font-size: 13px; font-weight: 700; letter-spacing: -.3px;
}

/* 우측 패널 */
.panel {
  background: rgba(15, 32, 84, .86);
  border: 1px solid var(--line-w);
  backdrop-filter: blur(6px);
  animation: fadeUp .8s .12s ease both;
}
.panel__tel { padding: 26px 28px 24px; text-align: center; }
.panel__label {
  font-size: 15px; font-weight: 600; color: #9fbaff; letter-spacing: .5px;
  margin-bottom: 10px;
}
.panel__num {
  display: block; font-size: clamp(34px, 2.9vw, 42px); font-weight: 700;
  letter-spacing: 0; line-height: 1.1;
}

.panel__hours {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-w); border-bottom: 1px solid var(--line-w);
}
.panel__hours > div {
  padding: 12px 10px; text-align: center;
  font-size: 17px; line-height: 1.6;
}
.panel__hours > div:nth-child(odd) { border-right: 1px solid var(--line-w); }
.panel__hours > div:nth-child(n + 3) { border-top: 1px solid var(--line-w); }
.panel__hours dt { font-size: 16px; color: #9fbaff; font-weight: 600; margin-bottom: 4px; }
.panel__hours dd { font-size: 18px; font-weight: 600; letter-spacing: 0; }
/* 응급실 안내는 강조 — 어두운 남색 패널 위에서 읽히도록 밝은 레드 */
.panel__emergency {
  padding: 16px 10px; text-align: center;
  border-bottom: 1px solid var(--line-w);
  font-size: 19px; font-weight: 700; color: var(--emergency); letter-spacing: -.2px;
}

/* 진료과 아이콘 그리드 */
.panel__parts { padding: 24px 20px; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 6px; }
.parts li { text-align: center; }
.parts img {
  width: 30px; height: 30px; margin: 0 auto 8px;
  filter: brightness(0) invert(1); opacity: .92;
}
.parts span {
  display: block; font-size: 14px; font-weight: 600;
  letter-spacing: -.4px; word-break: keep-all; line-height: 1.3;
  color: rgba(255, 255, 255, .88);
}

/* ----- 하단 : 주소 + 오시는 길 ----- */
.foot {
  flex: none; padding-block: 20px;
  border-top: 1px solid var(--line-w);
  background: rgba(10, 23, 56, .5);
  font-size: 14px; color: rgba(255, 255, 255, .7);
}
.foot__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.foot__addr { display: flex; align-items: center; gap: 10px; letter-spacing: -.2px; }
.foot__addr img { width: 17px; height: 17px; filter: brightness(0) invert(1); opacity: .6; }
.foot__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; background: #fff; color: var(--navy);
  font-size: 14px; font-weight: 700; letter-spacing: -.3px;
  transition: background .2s ease, color .2s ease;
}
.foot__link:hover { background: var(--accent); color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ----- 화면이 낮을 때 압축 ----- */
@media (max-height: 780px) {
  .top { padding-block: 18px; }
  .copy__eyebrow { margin-bottom: 14px; }
  .copy__open { margin-top: 18px; padding-top: 18px; }
  .panel__tel { padding: 18px 24px 16px; }
  .panel__hours > div { padding: 9px 10px; }
  .panel__emergency { padding: 13px 10px; }
  .panel__parts { padding: 18px; }
  .parts { gap: 12px 6px; }
  .parts img { width: 26px; height: 26px; margin-bottom: 6px; }
  .foot { padding-block: 14px; }
}

/* ----- 태블릿 이하 : 세로 배치 (한 화면 유지 해제) ----- */
@media (max-width: 900px) {
  .stage { min-height: 100vh; min-height: 100dvh; }
  .main { padding-block: 40px; }
  .main__inner { grid-template-columns: 1fr; gap: 32px; }
  .panel { max-width: 460px; width: 100%; }
}
@media (max-width: 560px) {
  .top { padding-block: 20px; }
  .main { padding-block: 32px; }
  .copy__title { line-height: 1.36; }
  .parts { gap: 14px 4px; }
  .foot { padding-block: 16px; font-size: 13px; }
  .foot__link { width: 100%; justify-content: center; }
}
