/* ============================================================
   일산퍼스트정형외과 — 공통 스타일 (디자인 토큰 · 리셋 · 헤더 · 푸터)
   ============================================================ */

/* ---------- 폰트 ---------- */
@font-face {
  font-family: "Pretendard";
  src: url("/assets/font/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}

/* ---------- 디자인 토큰 ---------- */
:root {
  /* ── 일산퍼스트 브랜드 팔레트 (공식 컬러 변수) ── */
  --first-blue-light: #e8edf5;
  --first-blue: #1b3968;
  --first-blue-deep: #0e2344;
  --first-blue-mid: #8da3c4;
  --first-teal-light: #e4f4f6;
  --first-teal: #1d97a9;
  --first-teal-deep: #08616e;
  --first-teal-mid: #8dcbd4;
  --first-gray-light: #f0f2f5;
  --first-gray: #78828e;
  --first-gray-deep: #2c3138;
  --first-gray-mid: #b8c0c9;

  /* ── 시맨틱 토큰 (팔레트 매핑) ── */
  /* 주컬러: 퍼스트 블루 / 강조·보조: 퍼스트 청록 */
  --ink: var(--first-blue-deep);
  --navy: var(--first-blue);
  --navy-deep: var(--first-blue-deep);
  --blue: var(--first-teal);
  --sky: var(--first-teal);
  --sky-strong: var(--first-teal-deep);
  --sky-soft: var(--first-teal-light);
  --accent: var(--first-teal);
  --accent-strong: var(--first-teal-deep);
  --accent-soft: var(--first-teal-light);
  --paper: var(--first-gray-light);
  --white: #ffffff;
  --line: var(--first-blue-light);
  --text: var(--first-gray-deep);
  --text-sub: var(--first-gray);
  --text-faint: var(--first-gray-mid);

  /* 타이포 — 기본 폰트: Noto Sans KR (본문·제목 통일, 자간 -3%) */
  --font-body: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-display:
    "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  /* 부분 사용: Noto Serif KR (필요한 요소에 var(--font-serif) 지정) */
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", serif;

  /* 반경·그림자 */
  --radius-s: 14px;
  --radius-m: 24px;
  --radius-l: 36px;
  --frame: 24px; /* 인셋 카드(히어로 등) 화면 가장자리 여백 */
  --shadow-s: 0 2px 10px rgba(16, 27, 51, 0.06);
  --shadow-m: 0 12px 40px rgba(16, 27, 51, 0.1);
  --shadow-l: 0 24px 64px rgba(16, 27, 51, 0.16);

  /* 레이아웃 */
  --inner: 1280px;
  --header-h: 84px;
  --topbar-h: 54px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 리셋 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5;
  letter-spacing: -0.03em; /* 기본 자간 -3% */
}
html {
  scroll-behavior: smooth;
}
::selection {
  background: var(--navy);
  color: #fff;
}
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: #c3cddd;
  border-radius: 999px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  letter-spacing: -0.03em; /* 기본 자간 -3% */
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
i,
em {
  font-style: normal;
}
button {
  font-family: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
.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;
}

/* ---------- 공통 레이아웃 ---------- */
.inner {
  width: min(var(--inner), calc(100% - 48px));
  margin: 0 auto;
}
.section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 140px 0;
}

/* 섹션 헤더(공통 타이틀 블록) — 레퍼런스 기준 대형 타입 */
.sec-head {
  margin-bottom: 64px;
}
.sec-head .eyebrow {
  display: inline-block;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 700;
  color: var(--first-gray-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-head .eyebrow.light {
  font-weight: 400;
  color: var(--first-gray);
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 6.25vw, 45px);
  line-height: 1.44;
}
.sec-head h2 .point {
  color: var(--blue);
}
.sec-head .sec-desc {
  margin-top: 20px;
  font-size: clamp(15px, 2.6vw, 20px);
  color: var(--first-gray-deep);
  opacity: 0.7;
  font-weight: 400;
}

/* 센터 정렬 변형 (레퍼런스 섹션 문법) */
.sec-head--center {
  text-align: center;
}
.sec-head--center .eyebrow {
  justify-content: center;
}
.sec-head--center .eyebrow::before {
  display: none;
}
.sec-head--center .sec-desc {
  margin-left: auto;
  margin-right: auto;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: clamp(14px, 4.2vw, 18px);
  font-family: var(--font-display);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s,
    background 0.3s,
    color 0.3s;
}
.btn .arr {
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(71, 175, 223, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn--primary {
  background: linear-gradient(135deg, #123a80 0%, var(--navy) 60%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 41, 97, 0.22);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue) 0%, #123a80 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10, 41, 97, 0.3);
}
.btn--ghost {
  border: 1.5px solid rgba(29, 151, 169, 0.6);
  color: var(--accent);
  background: #fff;
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 41, 97, 0.18);
}
.btn--light {
  border-radius: 50px;
  border: 1px solid rgba(184, 192, 201, 0.6);
  background: rgba(0, 0, 0, 0.1);
  color: #8dcbd4;
  font-size: clamp(13px, 4.2vw, 16px);
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.btn--light:hover {
  border-color: #8dcbd4;
  background: rgba(141, 203, 212, 0.14);
  color: #fff;
}

/* 스크롤 리빌 (main.js IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}
.reveal-d4 {
  transition-delay: 0.4s;
}

/* 캡처 모드(?capture=1): 스크린샷 검수용 — 풀스크린 섹션 높이 고정 */
body.is-capture .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
body.is-capture .popup-item,
body.is-capture .popups-root {
  display: none !important;
}

/* 모션 최소화 환경: 애니메이션 없이 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   헤더
   ============================================================ */
/* 상단 유틸리티 바 */
.topbar {
  position: relative; /* 일반 흐름: 스크롤 시 자연스럽게 위로 사라짐 */
  z-index: 1001;
  height: var(--topbar-h);
  background: var(--first-blue-deep);
  color: #fff;
  overflow: hidden;
}
/* 우측 대형 브랜드 장식(IF 모티브) — 상단바 배경으로 크게 */
.topbar::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 70vw;
  aspect-ratio: 1477 / 54;
  transform: translateY(-50%);
  background: url("/assets/img/topbar-deco.svg") right center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.topbar__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 2.6vw, 48px);
}
.topbar__hours {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.topbar__hours li {
  position: relative;
}
.topbar__hours li + li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  aspect-ratio: 1/1;
  background: var(--first-blue-mid);
  border-radius: 50%;
}
.topbar__hours .topbar__hours-item {
  color: var(--first-blue-mid);
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar__link {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s;
}
.topbar__link:hover {
  color: #fff;
}
.topbar__tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  color: var(--first-blue-deep);
  background: linear-gradient(90deg, #00bdbd 0%, #00a4a4 100%);
  padding: 4px 16px;
  border-radius: 999px;
}

.site-header {
  position: sticky; /* topbar가 흐름에서 사라지면 뷰포트 상단에 고정 */
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  transition:
    background 0.4s,
    box-shadow 0.4s,
    height 0.4s;
}
/* topbar는 일반 흐름이라 스크롤 시 자동으로 사라지고 헤더가 sticky로 상단 고정됨 */
/* 데스크톱: 전화는 상단바에만(중복 방지). 모바일(상단바 숨김)에선 헤더 전화 노출 */
@media (max-width: 960px) {
  .topbar__hours,
  .topbar__tel {
    font-size: 13.5px !important;
  }
}
@media (min-width: 769px) {
  .site-header .h-tel {
    display: none !important;
  }
}
.site-header .header-inner {
  width: 100%;
  padding: 0 clamp(20px, 2.6vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.h-logo {
  flex: 0 0 auto;
}
.h-logo img {
  width: 303px;
  height: auto;
  transition: filter 0.3s;
}

/* 화이트 고정 헤더 */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header.is-scrolled {
  box-shadow:
    0 1px 0 var(--line),
    0 10px 30px rgba(16, 27, 51, 0.06);
}

/* GNB */
.gnb-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.gnb {
  display: flex;
  gap: 8px;
}
.gnb > li {
  position: static;
}
.gnb > li > a {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 22px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.25s;
}
.gnb > li > a::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.gnb > li:hover > a,
.gnb > li.is-open > a {
  color: var(--accent-strong);
}
.gnb > li:hover > a::after,
.gnb > li.is-open > a::after {
  transform: scaleX(1);
}

/* 풀와이드 메가메뉴 (인포 패널 + 서브메뉴) */
.gnb-mega {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(16, 27, 51, 0.12);
  opacity: 0;
  visibility: hidden;
  translate: 0 -8px;
  transition:
    opacity 0.3s var(--ease-out),
    translate 0.3s var(--ease-out),
    visibility 0.3s;
}
.gnb > li.is-open .gnb-mega,
.gnb > li:focus-within .gnb-mega {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
/* 항목 간 이동 시 페이드 없이 즉시 전환 (깜박임 방지, main.js에서 제어) */
.gnb-mega.no-anim {
  transition: none !important;
}
.gnb-mega__inner {
  width: 100%;
  max-width: var(--inner);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: clamp(40px, 4vw, 80px);
  padding: 40px clamp(20px, 3.4vw, 64px) 48px;
  align-items: start;
}

/* 좌측 ABOUT 카드 (라이트 그레이) */
.gnb-mega__info {
  background: var(--first-gray-light);
  border-radius: var(--radius-m);
  padding: 30px;
  color: var(--text);
}
.gnb-mega__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.gnb-mega__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
}
.gnb-mega__divider {
  display: block;
  height: 1px;
  background: var(--first-blue);
  opacity: 0.4;
  margin: 16px 0;
}
.gnb-mega__field .lbl,
.gnb-mega__meta .lbl {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--first-gray);
  margin-bottom: 2px;
}
.gnb-mega__field p {
  font-size: 16px;
  color: var(--first-gray-deep);
}
.gnb-mega__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.gnb-mega__meta-item .val {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--first-gray-deep);
}
.gnb-mega__meta .days {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gnb-mega__meta .days b {
  font-size: 16px;
  font-weight: 400;
  color: var(--first-gray-deep);
}
.gnb-mega__hours-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 20px;
  border-radius: 10px;
  background: #b6b8bd;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s;
}
.gnb-mega__hours-btn:hover {
  background: var(--accent);
}
.gnb-mega__hours-btn i {
  font-style: normal;
}

/* 우측 카테고리 링크 (열 우선 균등 분배, 밑줄 + 화살표) */
.gnb-mega__links {
  padding-top: 6px;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  column-gap: clamp(32px, 3vw, 56px);
  align-content: start;
}
.gnb-mega__links ul {
  display: block;
}
.gnb-mega__links ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-sub);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.gnb-mega__links ul a .arr {
  font-style: normal;
  font-weight: 700;
  color: var(--first-gray-mid);
  transition:
    color 0.2s,
    transform 0.25s var(--ease-out);
}
.gnb-mega__links ul a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.gnb-mega__links ul a:hover .arr {
  color: var(--accent);
  transform: translateX(4px);
}

/* 헤더 우측 */
.h-right {
  flex: 0 0 auto;
  margin-left: auto; /* GNB가 숨는 햄버거 모드에서도 우측 고정 */
  display: flex;
  align-items: center;
  gap: 20px;
}
/* 전화 CTA 버튼 */
.h-tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--navy);
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(10, 41, 97, 0.22);
  transition:
    background 0.3s,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.h-tel:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(71, 175, 223, 0.32);
}
.h-tel svg {
  flex: 0 0 auto;
}
.menu-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.menu-trigger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s,
    background 0.3s;
}

/* ============================================================
   모바일 전체 메뉴
   ============================================================ */
.mobile-nav-bg {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 10, 40, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}
.mobile-nav-bg.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 88vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
}
.mobile-nav-bg.is-open .mobile-nav {
  transform: none;
}
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__head img {
  height: 26px;
}
.mobile-nav__close {
  position: relative;
  width: 40px;
  height: 40px;
}
.mobile-nav__close::before,
.mobile-nav__close::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 22px;
  height: 2px;
  background: var(--ink);
  translate: -50% -50%;
}
.mobile-nav__close::before {
  rotate: 45deg;
}
.mobile-nav__close::after {
  rotate: -45deg;
}
.mobile-nav__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 40px;
}
.mobile-nav__quick {
  display: flex;
  gap: 8px;
  padding: 16px 0;
}
.mobile-nav__quick a {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--navy);
}
.m-gnb > li {
  border-bottom: 1px solid var(--line);
}
.m-gnb__d1 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.m-gnb__d1 .chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  rotate: 45deg;
  transition: rotate 0.3s;
}
.m-gnb > li.is-open .m-gnb__d1 .chev {
  rotate: 225deg;
}
.m-gnb__d2 {
  display: none;
  padding: 4px 4px 18px;
}
.m-gnb > li.is-open .m-gnb__d2 {
  display: block;
}
.m-gnb__d2 a {
  display: block;
  padding: 10px 12px;
  font-size: 17px;
  color: var(--text-sub);
  border-radius: 10px;
}
.m-gnb__d2 a:hover {
  background: var(--paper);
  color: var(--navy);
}
.mobile-nav__schedule {
  margin-top: 28px;
  background: var(--paper);
  border-radius: var(--radius-m);
  padding: 22px 14px;
}
.mobile-nav__schedule h3,
.mobile-nav__schedule .mobile-nav__schedule-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.mobile-nav__schedule li {
  display: flex;
  justify-content: space-between;
  font-size: clamp(13px, 3.4vw, 16.5px);
  padding: 5px 0;
}
.mobile-nav__schedule li span:first-child {
  color: var(--text-faint);
  font-weight: 600;
}
.mobile-nav__schedule li span:last-child {
  font-weight: 600;
}
.mobile-nav__schedule .note {
  margin-top: 10px;
  font-size: clamp(12px, 3.2vw, 15px);
  color: var(--text-faint);
  line-height: 1.6;
}

/* ============================================================
   퀵버튼 (우측 하단: 전화 CTA + 글래스 독)
   ============================================================ */
.quick-float {
  position: fixed;
  right: 35px;
  bottom: 26px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* 전화 CTA — 펄스 링 */
.qf-tel {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent; /* SVG가 그라데이션 원형 버튼을 자체 제공 */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(10, 41, 97, 0.32);
  transition: transform 0.3s var(--ease-out);
}
.qf-tel svg {
  width: 100%;
  height: 100%;
  display: block;
}
.qf-tel::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(71, 175, 223, 0.55);
  animation: qf-pulse 2.2s ease-out infinite;
}
@keyframes qf-pulse {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  70%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.qf-tel:hover {
  transform: translateY(-3px);
}
.qf-tel:active {
  transform: translateY(-1px) scale(0.96);
}

/* 글래스 독 */
.qf-dock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 7px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(228, 231, 240, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-m);
}
.qf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 60px;
  padding: 12px 0 10px;
  border-radius: 24px;
  transition:
    background 0.25s,
    transform 0.25s var(--ease-out);
}
.qf-item:hover {
  background: var(--paper);
  transform: translateY(-2px);
}
.qf-item .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--first-blue-mid);
  transition: background 0.25s;
}
.qf-item:hover .ic {
  background: var(--first-blue-deep);
}
.qf-item .ic svg {
  width: 24px;
  height: 24px;
}
.qf-item span {
  font-size: 15px;
  font-weight: 700;
  color: #4b5866; /* 흰 배경 대비 7:1 — 소형 라벨 접근성 (기존 --text-sub는 4.0:1로 미달) */
  letter-spacing: -0.02em;
}

/* 맨 위로 */
.qf-top {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(228, 231, 240, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-s);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s var(--ease-out),
    background 0.3s;
}
.qf-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.qf-top:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

/* ============================================================
   푸터
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: #2a2e33;
  color: #fff;
  padding: clamp(48px, 5vw, 72px) 0 34px;
  font-size: 18px;
}
/* 좌측 브랜드 장식 (IF 모티브 워터마크) */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: 704 / 294;
  transform: translateY(-50%);
  background: url("/assets/img/footer-deco.svg") left center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}
.site-footer .inner {
  position: relative;
  z-index: 2;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.footer-brand .f-logo img {
  width: 320px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.footer-brand .f-slogan {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}



/* 우측 병원 정보 블록 */
.footer-info {
  max-width: 730px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.footer-info__name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-info dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 32px;
}
.footer-info dl > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.footer-info dl .footer-info__addr {
  grid-column: 1 / -1;
}
.footer-info dt {
  flex: 0 0 auto;
  font-weight: 700;
}
.footer-info dd {
  font-weight: 400;
}
.footer-info dd a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-copy {
  letter-spacing: 0.01em;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-links .strong {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-info dl {
    gap: 6px 24px;
    justify-content: center;
  }
  .footer-info {
    align-items: center;
    text-align: center;
  }
  .site-footer,
  .footer-bottom {
    font-size: clamp(13px, 3.2vw, 16px);
  }
  .footer-copy {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .btn {
    padding: 6px 12px;
  }
}
