@charset "utf-8";
/**
 * 테마: hospital — 병원·의료기관용.
 * 참고: https://hchome05.dothome.co.kr/?theme_demo=hchome_p17 (굿헬스병원 데모)
 *   브랜드 블루 #0b57d0 · 짙은 블루 #0b3aa8(예약 배너) · 남색 푸터 #1a2634 ·
 *   카드 radius 16px · 버튼은 알약(pill) 모양 · 본문은 은은한 그림자의 흰 카드.
 *
 * basic 의 style.css 를 다 불러온 뒤 이 파일이 얹힌다.
 * 그래서 여기에는 "바꾸고 싶은 값"만 적는다. 적지 않은 것은 basic 그대로다.
 * 색은 라이트/다크 두 벌을 모두 적어야 한다 — 한쪽만 적으면 다른 쪽에서 어긋난다.
 */

:root {
  /* 브랜드 — 병원 블루 */
  --brand:            #0b57d0;
  --brand-foreground: #ffffff;
  --brand-hover:      #1a63e0;
  --brand-active:     #094aa8;

  /* 예약 배너 등에 쓰는 짙은 블루 (참고 사이트의 .reservation-section) */
  --brand-deep: #0b3aa8;

  /* 카드는 넉넉하게 둥글고, 입력칸 등은 basic 그대로 둔다 (전부 알약이면 오히려 어수선하다) */
  --radius-lg: 1rem;      /* 16px — 카드 */
  --radius-xl: 1.25rem;

  --background:    #ffffff;
  --card:          #ffffff;
  --muted:         #f3f6fb;
  --secondary:     #eef3fb;
  --accent:        #eef3fb;
  --border:        #e3e9f2;
  --border-subtle: #edf1f7;
  --input:         #e3e9f2;
  --ring:          #0b57d0;

  --header-height: 76px;
}

/* 다크 — 같은 블루를 조금 밝게 쓰고 바탕은 짙은 남색 계열로 */
:root[data-theme="dark"] {
  --brand:        #4c8dff;
  --brand-hover:  #6ea0ff;
  --brand-active: #3a78e8;
  --brand-foreground: #06152e;
  --brand-deep:   #123a8a;

  --background:    #0d1526;
  --card:          #131d33;
  --muted:         #182440;
  --secondary:     #182440;
  --accent:        #182440;
  --border:        #223154;
  --border-subtle: #182440;
  --input:         #223154;
  --ring:          #4c8dff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --brand:        #4c8dff;
    --brand-hover:  #6ea0ff;
    --brand-active: #3a78e8;
    --brand-foreground: #06152e;
    --brand-deep:   #123a8a;

    --background:    #0d1526;
    --card:          #131d33;
    --muted:         #182440;
    --secondary:     #182440;
    --accent:        #182440;
    --border:        #223154;
    --border-subtle: #182440;
    --input:         #223154;
    --ring:          #4c8dff;
  }
}

/* 로고 마크 — 참고 사이트의 2×2 점 아이콘 느낌으로 살짝 둥글게 */
.brand .mark { border-radius: 8px; }

/* 헤더 CTA(예: 로그인·회원가입 버튼)만 알약으로 — 전역 --radius-md 는 손대지 않는다 */
.hd-user .btn { border-radius: 999px; padding-inline: 1.1rem; }

/* card 컴포넌트 그림자를 참고 사이트처럼 아주 은은하게 */
.card { box-shadow: 0 4px 15px rgba(11, 30, 70, .04); }

/* -----------------------------------------------------------------------------
   홈 구성 — hospital: 병원 소개 사이트답게 히어로(진료과 3특징+예약 버튼) →
   숫자로 보는 병원 → 진료과목 아이콘 그리드 → 게시판(공지/새소식) → 예약 밴드 순.
-------------------------------------------------------------------------------- */

/* 히어로 */
.hero-hospital {
  background: linear-gradient(135deg, var(--muted) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.2rem;
  margin-bottom: 1.6rem;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center;
}
.hero-hospital .eyebrow {
  display: inline-block; margin-bottom: .8rem;
  padding: .3rem .8rem; border-radius: 999px;
  background: rgba(11, 87, 208, .1); color: var(--brand);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em;
}
.hero-hospital h1 {
  margin: 0 0 .8rem; font-size: 2.4rem; line-height: 1.25; font-weight: 800;
  color: var(--foreground);
}
.hero-hospital h1 .highlight { color: var(--brand); }
.hero-hospital .lead { margin: 0 0 1.4rem; color: var(--muted-foreground); font-size: var(--text-base); }

.hero-features { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.6rem; }
.hero-features li { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: var(--text-sm); }
.hero-features .ico {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--brand);
  box-shadow: 0 2px 8px rgba(11, 30, 70, .08);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-ctas .btn-deep {
  background: var(--brand-deep); color: #fff; border-radius: 999px;
  padding: .8rem 1.5rem; font-weight: 700;
}
.hero-ctas .btn-deep:hover { opacity: .92; color: #fff; }
.hero-ctas .btn-line {
  background: var(--card); color: var(--foreground); border: 1px solid var(--border);
  border-radius: 999px; padding: .8rem 1.5rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
}
.hero-ctas .btn-line:hover { border-color: var(--brand); color: var(--brand); }

.hero-visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  aspect-ratio: 4/3;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .92);
}
.hero-visual .mark-lg {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: grid; place-items: center;
}

@media (max-width: 860px) {
  .hero-hospital { grid-template-columns: 1fr; padding: 2rem 1.4rem; }
  .hero-visual { aspect-ratio: 16/9; }
}

/* 숫자로 보는 병원 */
.stat-hospital-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: 1.6rem 0;
}
.stat-hospital {
  text-align: center; padding: 1.4rem 1rem;
  background: var(--card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.stat-hospital .ico { color: var(--brand); margin-bottom: .5rem; }
.stat-hospital .v { font-size: 1.7rem; font-weight: 800; color: var(--foreground); }
.stat-hospital .k { font-size: var(--text-xs); color: var(--muted-foreground); margin-top: .2rem; }
@media (max-width: 640px) { .stat-hospital-row { grid-template-columns: repeat(2, 1fr); } }

/* 진료과목 — 원형 아이콘 그리드 */
.dept-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem;
  margin: 1.6rem 0 2rem;
}
.dept-item { text-align: center; text-decoration: none; color: inherit; }
.dept-item .ico {
  width: 64px; height: 64px; margin: 0 auto .7rem; border-radius: 50%;
  background: var(--secondary); color: var(--brand);
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.dept-item:hover .ico { background: var(--brand); color: #fff; transform: translateY(-2px); }
.dept-item .t { font-weight: 700; font-size: var(--text-sm); }
@media (max-width: 860px) { .dept-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }

/* 섹션 공통 표제 */
.sec-head { text-align: center; margin: 2.2rem 0 1.4rem; }
.sec-head .eyebrow {
  display: block; color: var(--brand); font-weight: 700;
  font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem;
}
.sec-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--foreground); }

/* 게시판(공지·새소식) 카드 — feature-tile 재사용 + 파란 강조만 얹는다 */
.feature-tile { border: 1px solid var(--border-subtle); }
.feature-tile:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(11, 87, 208, .08); }
.feature-tile .go { color: var(--brand); font-weight: 700; }

/* 예약 밴드 — 참고 사이트의 짙은 블루 CTA 섹션 */
.rsv-band {
  background: linear-gradient(120deg, var(--brand-deep) 0%, #082a7a 100%);
  border-radius: var(--radius-xl);
  padding: 2.6rem 2.2rem;
  margin: 2rem 0;
  color: #fff;
}
.rsv-band .eyebrow { color: #ffd25e; font-weight: 700; font-size: var(--text-xs); letter-spacing: .04em; }
.rsv-band h2 { margin: .4rem 0 .5rem; font-size: 1.6rem; font-weight: 800; }
.rsv-band p { margin: 0 0 1.4rem; color: rgba(255, 255, 255, .78); }
.rsv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rsv-card {
  background: #fff; color: #0f1b2e; border-radius: var(--radius-lg);
  padding: 1.2rem 1rem; text-align: center; text-decoration: none;
}
.rsv-card .ico { color: var(--brand); margin-bottom: .5rem; }
.rsv-card .t { font-weight: 700; }
.rsv-card .d { font-size: var(--text-xs); color: var(--muted-foreground); margin-top: .2rem; }
@media (max-width: 640px) { .rsv-cards { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   플로팅 퀵 컨택트 바 — 참고 사이트 우측 고정 버튼열. #top-btn(맨위로)은 이미
   layout.php 에 있으니 중복 만들지 않고, 전화/문의만 얹은 뒤 위로가기는 그 버튼을 가리킨다.
-------------------------------------------------------------------------------- */
.quick-contact {
  position: fixed; right: 1.2rem; bottom: 6.5rem; z-index: 60;
  display: flex; flex-direction: column; gap: .5rem;
}
.quick-contact a, .quick-contact button {
  width: 62px; padding: .7rem .4rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(11, 30, 70, .12);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  color: var(--foreground); text-decoration: none; font-size: 11px; font-weight: 600;
  cursor: pointer;
}
.quick-contact .ico { color: var(--brand); }
.quick-contact a:hover, .quick-contact button:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 768px) { .quick-contact { right: .6rem; bottom: 5rem; } }

/* -----------------------------------------------------------------------------
   푸터 — 참고 사이트의 남색 다단 푸터.
-------------------------------------------------------------------------------- */
.hp-footer { background: #1a2634; border-top: 0; color: rgba(255, 255, 255, .7); }
.hp-footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  padding: 2.4rem 0 1.6rem;
}
.hp-footer-brand .wordmark { color: #fff; font-size: var(--text-lg); font-weight: 800; }
.hp-footer-brand p { margin: .6rem 0 0; font-size: var(--text-sm); color: rgba(255, 255, 255, .55); }
.hp-footer-col h3 {
  margin: 0 0 .8rem; font-size: var(--text-sm); font-weight: 700; color: #fff;
}
.hp-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.hp-footer-col a { font-size: var(--text-sm); color: rgba(255, 255, 255, .6); }
.hp-footer-col a:hover { color: #fff; }
.hp-footer-bottom {
  padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; gap: .4rem;
}
.hp-footer-bottom p { color: rgba(255, 255, 255, .55); }
.hp-footer-bottom .ft-stats { color: rgba(255, 255, 255, .4); }
.hp-footer-bottom .lang-switch span { color: rgba(255, 255, 255, .55); }
.hp-footer-bottom .lang-switch a { color: rgba(255, 255, 255, .55); }
.hp-footer-bottom .lang-switch a.on { background: var(--brand); color: #fff; }
@media (max-width: 900px) {
  .hp-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hp-footer-grid { grid-template-columns: 1fr; }
}
