@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0f1f5c;
  --navy-dark: #091440;
  --navy-mid: #162666;
  --accent: #3a5bd9;
  --accent-light: #e8ecfa;
  --text: #1a1a2e;
  --text-mid: #444466;
  --text-light: #7777aa;
  --border: #dde3f0;
  --bg: #f7f8fc;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Pretendard', sans-serif; color: var(--text); line-height: 1.6; background: var(--white); word-break: keep-all; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 64px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(15,31,92,0.06);
}
.nav-logo {
  text-decoration: none; display: flex; align-items: center; height: 40px;
}
.nav-logo .logo-default { height: 36px; width: auto; display: block; }
.nav-logo .logo-hover { display: none; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 13.5px; color: #00104A; text-decoration: none;
  font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s;
  padding-bottom: 2px;
}
.nav-links a:hover { color: #00104A; opacity: 0.7; }
.nav-links a.active { color: #00104A; font-weight: 700; border-bottom: 2px solid #00104A; }

/* ── HERO ── */
.hero {
  position: relative; height: 72vh; min-height: 520px;
  display: flex; align-items: flex-end; padding-bottom: 80px; overflow: hidden;
  background: var(--navy-dark);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  z-index: 0;
  filter: contrast(1.08) saturate(1.05) brightness(0.75);
  image-rendering: -webkit-optimize-contrast;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(7,14,46,0.88) 0%,
    rgba(9,20,64,0.72) 45%,
    rgba(9,20,64,0.3) 100%
  );
}


.hero-content {
  position: relative; z-index: 3;
  padding: 0 80px; color: var(--white);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(58,91,217,0.3); border: 1px solid rgba(58,91,217,0.5);
  color: rgba(255,255,255,0.9); font-size: 12px; font-weight: 500;
  padding: 6px 14px; border-radius: 20px; letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.hero-tag .dot { width: 6px; height: 6px; background: #5b7fff; border-radius: 50%; }
.hero-name {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.hero-title {
  font-size: 52px; font-weight: 900; line-height: 1.2;
  letter-spacing: -1.5px; margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-title span { color: #7da0ff; }
.hero-divider {
  width: 40px; height: 2px; background: var(--accent); margin-bottom: 20px;
}
.hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.55); font-weight: 300; letter-spacing: 0.02em;
}

/* ── LOCATION ── */
.location-section {
  padding: 80px 80px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
  background: var(--white);
}
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: 28px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.5px; margin-bottom: 36px;
}
.hours-block { margin-bottom: 36px; }
.hours-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text-light); text-transform: uppercase; margin-bottom: 14px;
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.hours-row:first-of-type { border-top: 1px solid var(--border); }
.hours-row .day { color: var(--text-light); font-weight: 500; min-width: 80px; }
.hours-row .time { color: var(--navy); font-weight: 600; }
.hours-row.closed .time { color: #aab; }

.address-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text-light); text-transform: uppercase; margin-bottom: 14px;
}
.address-main { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 2px; }
.address-sub { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 36px; }

.map-iframe {
  width: 100%; height: 280px;
  border: 1px solid var(--border); border-radius: 12px;
  display: block;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  padding: 48px 80px 40px;
}
.footer-logo {
  display: flex; align-items: center; margin-bottom: 20px;
}
.footer-logo img { height: 36px; width: auto; }
.footer-info { font-size: 12.5px; line-height: 2; color: rgba(255,255,255,0.45); }
.footer-copyright { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11px; color: rgba(255,255,255,0.25); }

/* ── PAGE WRAPPER ── */
.page-content { padding-top: 64px; }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--navy); padding: 72px 80px 60px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -60px; bottom: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,91,217,0.2) 0%, transparent 70%);
}
.page-hero h1 { font-size: 36px; font-weight: 900; color: var(--white); letter-spacing: -1px; margin-bottom: 10px; }
.page-hero p { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ── ABOUT ── */
.about-wrap { max-width: 860px; margin: 0 auto; padding: 80px; }
.about-header {
  display: flex; gap: 48px; align-items: flex-start;
  margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border);
}
.doctor-photo {
  width: 170px; height: 170px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: center 15%;
  border: 4px solid var(--border);
}
.about-headline { padding-top: 10px; }
.about-headline .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.about-headline h1 { font-size: 32px; font-weight: 900; color: var(--navy); letter-spacing: -0.8px; margin-bottom: 14px; }
.about-headline .intro { font-size: 15px; color: var(--text-mid); line-height: 1.8; }

.about-body p { font-size: 14px; color: var(--text-mid); line-height: 2; margin-bottom: 48px; word-break: keep-all; }

.career-box {
  background: var(--bg); border-radius: 14px;
  border: 1px solid var(--border); padding: 36px 40px;
}
.career-box h3 {
  font-size: 16px; font-weight: 700; color: var(--navy);
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 2px solid var(--navy); display: flex; align-items: center; gap: 8px;
}
.career-list { list-style: none; }
.career-list li {
  font-size: 13.5px; color: var(--text-mid);
  padding: 10px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
}
.career-list li::before { content: '·'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.career-year { min-width: 110px; flex-shrink: 0; color: #00104A; font-weight: 600; font-size: 13px; }
.career-list li:last-child { border-bottom: none; }

/* ── FEES ── */
.fees-wrap { max-width: 860px; margin: 0 auto; padding: 72px 80px; }
.fees-title { font-size: 24px; font-weight: 700; color: #00104A; letter-spacing: -0.5px; margin-bottom: 16px; }
.fees-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.fees-note { font-size: 14px; font-weight: 500; color: #00104A; }
.fees-star { color: #FF5900; }
.fees-date { font-size: 14px; font-weight: 500; color: #00104A; }

.fees-table-wrap {
  border-radius: 12px; overflow: hidden;
  border: 1px solid #B6BEDD;
}
.fees-table { width: 100%; border-collapse: collapse; }
.fees-table thead th {
  background: #00104A; color: white;
  padding: 14px 20px; font-size: 13px; font-weight: 600;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.fees-table thead th:first-child { text-align: left; }
.fees-table thead th:last-child { border-right: none; }
.fees-table tbody td {
  padding: 13px 20px; font-size: 13.5px; color: #00104A;
  border-bottom: 1px solid #B6BEDD;
  border-right: 1px solid #B6BEDD;
  text-align: center;
}
.fees-table tbody td:first-child { text-align: left; }
.fees-table tbody td:last-child { font-weight: 700; border-right: none; }
.fees-table tbody tr:last-child td { border-bottom: none; }
.fees-table tbody tr:nth-child(even) { background: #e8eef8; }
.fees-table tbody tr:hover { background: #d4dff5; transition: background 0.15s; }

/* ── SUBJECT GRID (진료/수술 과목) ── */
.subject-wrap { padding: 72px 80px; }

.subject-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid #B6BEDD;
  border-radius: 12px;
  overflow: hidden;
}

.subject-grid--surgery {
  grid-template-columns: repeat(1, 260px);
}

.subject-col {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid #B6BEDD;
}
.subject-col:last-child { border-right: none; }

.subject-category {
  font-size: 18px; font-weight: 700; color: #00104A;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid #B6BEDD;
}

.subject-list {
  list-style: none; display: flex; flex-direction: column; gap: 18px;
}
.subject-list li {
  font-size: 14px; font-weight: 500; color: #00104A;
  line-height: 1.5;
}

/* ── 상세 설명 ── */
.subject-detail-wrap {
  margin-top: 64px;
  display: flex; flex-direction: column; gap: 0;
}

.subject-detail-section {
  padding: 48px 0;
  border-bottom: 1px solid #B6BEDD;
}
.subject-detail-section:last-child { border-bottom: none; }

.subject-detail-title {
  font-size: 20px; font-weight: 700; color: #00104A;
  margin-bottom: 28px;
}

.subject-detail-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  align-items: baseline;
  padding: 20px 0; border-top: 1px solid #e8edf5;
}
.subject-detail-item:first-of-type { border-top: none; }

.subject-detail-name {
  font-size: 15px; font-weight: 700; color: #00104A;
}
.subject-detail-desc {
  font-size: 14px; font-weight: 400; color: #445;
  line-height: 1.85;
}

/* ── TREATMENT WRAP ── */
.treatment-wrap {
  display: flex; flex-direction: column; gap: 48px;
}
.treatment-group { display: flex; flex-direction: column; gap: 16px; }
.treatment-group-title {
  font-size: 20px; font-weight: 700; color: #00104A; margin-left: 10px;
}

/* ── SURGERY LIST ── */
.surgery-list-wrap {
  border: 1px solid #B6BEDD;
  border-radius: 12px;
  overflow: hidden;
}
.surgery-list-header {
  background: #00104A; color: white;
  padding: 14px 24px; font-size: 13px; font-weight: 700;
}
.surgery-list-item {
  display: grid; grid-template-columns: 220px 1fr;
  padding: 22px 24px; gap: 24px; align-items: center;
  border-bottom: 1px solid #B6BEDD;
}
.surgery-list-item:last-child { border-bottom: none; }
.surgery-list-item:hover { background: #d4dff5; transition: background 0.15s; }
.surgery-list-name {
  font-size: 14px; font-weight: 700; color: #00104A;
}
.surgery-list-desc {
  font-size: 13.5px; font-weight: 400; color: #445; line-height: 1.8;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 0 20px;
  }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15,31,92,0.10);
    z-index: 199;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 14px 24px;
    font-size: 15px; border-bottom: none;
  }
  .nav-links a.active { border-bottom: none; border-left: 3px solid #00104A; padding-left: 21px; }

  /* Hero */
  .hero {
    height: 80vh; min-height: 480px;
    padding-bottom: 48px;
    align-items: flex-end;
  }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 34px; letter-spacing: -0.5px; }

  /* Location */
  .location-section {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    gap: 40px;
  }
  .location-section > div[style] { padding-top: 0 !important; }
  .map-iframe { height: 220px; }

  /* Page hero */
  .page-hero { padding: 48px 24px 40px; }
  .page-hero h1 { font-size: 28px; }

  /* About */
  .about-wrap { padding: 40px 24px; }
  .about-header {
    flex-direction: column; gap: 24px;
    margin-bottom: 36px; padding-bottom: 36px;
  }
  .doctor-photo { width: 120px; height: 120px; }
  .about-headline h1 { font-size: 24px; }
  .career-box { padding: 24px 20px; }
  .career-list li { flex-wrap: wrap; }
  .career-year { min-width: 100%; margin-bottom: 2px; }

  /* Subject / Treatment / Surgery */
  .subject-wrap { padding: 40px 24px; }
  .surgery-list-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 20px;
  }
  .surgery-list-name { font-size: 14px; }
  .surgery-list-desc { font-size: 13px; }

  /* Fees */
  .fees-wrap { padding: 40px 24px; }
  .fees-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fees-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fees-table { min-width: 300px; }

  /* Footer */
  footer { padding: 36px 24px 28px; }
  .footer-info { font-size: 11.5px; line-height: 1.8; }
  .footer-info p { word-break: keep-all; }
}
