/* ============================================================
   SEOUL MEDICAL CENTER — STYLESHEET
   Clean, minimal hospital landing page
   ============================================================ */

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

:root {
  --navy:       #0A2647;
  --blue:       #1565C0;
  --blue-light: #2979FF;
  --teal:       #0097A7;
  --bg:         #FFFFFF;
  --bg-soft:    #F8FAFD;
  --bg-blue:    #EEF4FF;
  --border:     #E2E8F0;
  --text:       #0F172A;
  --text-mid:   #475569;
  --text-soft:  #94A3B8;
  --red:        #E53935;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(10,38,71,.08);
  --shadow-md:  0 8px 40px rgba(10,38,71,.12);
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 17.5px; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
em { font-style: normal; color: var(--blue); }
ul { list-style: none; }


/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; background: var(--navy); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.loader-cross {
  position: relative; width: 48px; height: 48px;
  animation: crossPulse 1s ease infinite;
}
.loader-cross-h {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 100%; height: 6px; background: #fff; border-radius: 3px;
}
.loader-cross-v {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 6px; height: 100%; background: #fff; border-radius: 3px;
}
@keyframes crossPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.loader-name {
  color: #fff; font-size: .75rem; letter-spacing: .3em; font-weight: 300;
  animation: fadeInUp .8s ease .2s both;
}


/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(10,38,71,.5);
  z-index: 800; opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: min(260px, 68vw); height: 100vh;
  background: var(--bg); z-index: 900; padding: 32px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: right .4s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(10,38,71,.15);
}
.mobile-menu.open { right: 0; }

.mobile-close {
  align-self: flex-end; background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text-mid); padding: 4px; line-height: 1;
  margin-bottom: 8px;
}
.mobile-menu-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  color: var(--navy); padding-bottom: 20px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu ul li a {
  display: block; padding: 12px 0; color: var(--text-mid);
  font-size: .95rem; border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu ul li a:hover { color: var(--blue); }
.mobile-cta {
  display: block; text-align: center; background: var(--blue); color: #fff;
  padding: 14px; border-radius: var(--radius); font-weight: 600;
  font-size: .9rem; letter-spacing: .05em; margin-top: 8px;
}


/* ============================================================
   LOGO CROSS
   ============================================================ */
.logo-cross {
  position: relative; width: 20px; height: 20px; flex-shrink: 0;
}
.logo-cross::before, .logo-cross::after {
  content: ''; position: absolute; background: var(--blue); border-radius: 2px;
}
.logo-cross::before { width: 100%; height: 5px; top: 50%; transform: translateY(-50%); }
.logo-cross::after  { height: 100%; width: 5px; left: 50%; transform: translateX(-50%); }

.logo-cross-sm {
  position: relative; width: 16px; height: 16px; flex-shrink: 0;
}
.logo-cross-sm::before, .logo-cross-sm::after {
  content: ''; position: absolute; border-radius: 2px;
}
.logo-cross-sm::before { width: 100%; height: 4px; top: 50%; transform: translateY(-50%); background: var(--blue); }
.logo-cross-sm::after  { height: 100%; width: 4px; left: 50%; transform: translateX(-50%); background: var(--blue); }

.mobile-menu-logo .logo-cross-sm::before,
.mobile-menu-logo .logo-cross-sm::after { background: var(--blue); }

.footer-logo .logo-cross-sm::before,
.footer-logo .logo-cross-sm::after { background: #60A5FA; }


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  display: flex; align-items: center; gap: 32px;
  padding: 0 48px; height: 72px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  color: var(--navy); flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 28px; margin-left: auto;
}
.nav-links a {
  font-size: .85rem; color: var(--text-mid); font-weight: 400;
  position: relative; padding-bottom: 2px; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--blue); transition: width .3s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  margin-left: 8px; background: var(--blue); color: #fff;
  padding: 9px 22px; border-radius: 50px; font-size: .82rem;
  font-weight: 600; letter-spacing: .04em;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--navy); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}


/* ============================================================
   IMAGE PLACEHOLDER (universal)
   ============================================================ */
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: var(--bg-soft); border: 2px dashed var(--border);
  border-radius: var(--radius); color: var(--text-soft); width: 100%;
}
.img-placeholder p { font-size: .85rem; font-weight: 500; }
.img-placeholder span { font-size: .75rem; color: var(--text-soft); opacity: .7; }
.img-placeholder.tall { height: 480px; }
.strip-ph { height: 240px; border-radius: 0; }
.doctor-ph { height: 280px; border-radius: var(--radius) var(--radius) 0 0; }
.placeholder-icon svg path, .placeholder-icon svg rect {
  fill: var(--border);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; padding-top: 72px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; background: var(--bg);
}

.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: .5;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, black 40%, transparent 100%);
}

.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 80px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  width: 100%;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em;
  color: var(--blue); text-transform: uppercase;
  background: var(--bg-blue); padding: 6px 14px; border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; line-height: 1.25; color: var(--navy);
  margin-bottom: 24px;
}
.hero-title em { display: block; }

.hero-desc {
  font-size: clamp(.9rem, 1.5vw, 1.05rem); color: var(--text-mid);
  margin-bottom: 36px; line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  padding: 14px 28px; border-radius: 50px;
  font-size: .9rem; font-weight: 600; letter-spacing: .03em;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(21,101,192,.3);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,38,71,.2); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--navy);
  padding: 14px 28px; border-radius: 50px;
  font-size: .9rem; font-weight: 500;
  border: 1.5px solid var(--border);
  transition: border-color .2s, color .2s, transform .2s;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.hero-trust {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid var(--border);
  width: fit-content;
}
.trust-item { text-align: center; }
.trust-num { display: block; font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.trust-label { font-size: .72rem; color: var(--text-mid); font-weight: 400; }
.trust-div { width: 1px; height: 32px; background: var(--border); }

.hero-visual { position: relative; }
.hero-img-placeholder {
  height: 420px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-img-wrap {
  height: 420px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.hero-img-wrap img { transition: transform .6s cubic-bezier(.4,0,.2,1); }
.hero-img-wrap:hover img { transform: scale(1.04); }

.hero-badge-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.hero-badge-card { top: 20px; left: -24px; }
.hero-badge-card.badge-bottom { bottom: 20px; right: -16px; top: auto; left: auto; }
.badge-icon { font-size: 1.2rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-blue); border-radius: 8px; }
.badge-text strong { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); }
.badge-text span { font-size: .72rem; color: var(--text-mid); }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-soft); font-size: .65rem; letter-spacing: .2em;
}
.scroll-line {
  width: 1px; height: 48px; background: linear-gradient(to bottom, var(--border), transparent);
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ============================================================
   NOTICE BAR
   ============================================================ */
.notice-bar {
  background: var(--bg-blue); border-top: 1px solid rgba(37,121,255,.15);
  border-bottom: 1px solid rgba(37,121,255,.15); padding: 10px 48px;
}
.notice-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  font-size: .82rem; color: var(--blue);
}
.notice-badge {
  background: var(--blue); color: #fff;
  padding: 2px 8px; border-radius: 4px;
  font-size: .72rem; font-weight: 600; flex-shrink: 0;
}


/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  background: var(--navy); padding: 48px;
}
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.stat-item {
  flex: 1; text-align: center; padding: 16px;
}
.stat-num-wrap {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.stat-num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: #fff; }
.stat-unit { font-size: 1rem; color: rgba(255,255,255,.6); font-weight: 400; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,.15); flex-shrink: 0; }


/* ============================================================
   ABOUT
   ============================================================ */
.about {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.about-img-col { position: relative; }
.about-img-wrap {
  height: 480px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.about-img-wrap img { transition: transform .6s cubic-bezier(.4,0,.2,1); }
.about-img-wrap:hover img { transform: scale(1.04); }
.about-accent-card {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--blue); color: #fff;
  padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.accent-num { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.accent-label { font-size: .78rem; line-height: 1.5; opacity: .85; margin-top: 6px; }

.section-eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
  display: block;
}

.about-text-col h2, .section-header h2, .faq-header-col h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.3; margin-bottom: 20px; color: var(--navy);
}
.about-text-col > p { color: var(--text-mid); margin-bottom: 16px; }

.about-list {
  display: flex; flex-direction: column; gap: 16px; margin-top: 32px;
}
.about-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.list-icon {
  width: 24px; height: 24px; background: var(--blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.about-list li strong { display: block; font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: 2px; }
.about-list li p { font-size: .82rem; color: var(--text-mid); margin: 0; }


/* ============================================================
   DEPARTMENTS
   ============================================================ */
.departments {
  background: var(--bg-soft); padding: 100px 48px;
}
.section-header {
  text-align: center; max-width: 600px; margin: 0 auto 56px;
}
.section-header.left { text-align: left; margin: 0; }
.section-sub { color: var(--text-mid); font-size: .9rem; margin-top: 12px; }

.dept-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.dept-card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.dept-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(21,101,192,.2); }
.dept-card:hover::before { transform: scaleX(1); }

.dept-icon {
  width: 56px; height: 56px; background: var(--bg-blue); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 20px;
}
.dept-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.dept-card p { font-size: .85rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; }
.dept-link { font-size: .82rem; color: var(--blue); font-weight: 600; transition: gap .2s; }
.dept-link:hover { text-decoration: underline; }


/* ============================================================
   IMAGE STRIP
   ============================================================ */
.img-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  overflow: hidden;
}
.strip-item {
  position: relative; overflow: hidden;
  transition: transform .5s; height: 280px;
}
.strip-item:hover { z-index: 1; }
.strip-item img { transition: transform .5s; }
.strip-item:hover img { transform: scale(1.05); }
.strip-item .img-placeholder { border-radius: 0; border: none; border-right: 1px solid var(--border); }
.strip-item:last-child .img-placeholder { border-right: none; }


/* ============================================================
   DOCTORS
   ============================================================ */
.doctors {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 48px;
}

.doctors-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}

.doctor-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.doctor-photo-wrap { position: relative; }

.doctor-info { padding: 24px; background: var(--bg); }
.doctor-dept-tag {
  display: inline-block; background: var(--bg-blue); color: var(--blue);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 50px; margin-bottom: 10px;
}
.doctor-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.doctor-info h3 span { font-size: .82rem; font-weight: 400; color: var(--text-mid); margin-left: 4px; }
.doctor-spec { font-size: .82rem; color: var(--text-mid); margin-bottom: 14px; }
.doctor-career {
  padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.doctor-career p { font-size: .78rem; color: var(--text-soft); }
.doctor-career p::before { content: '·  '; }


/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--navy); padding: 100px 48px; }

.process-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start;
}

.process .section-eyebrow { color: rgba(255,255,255,.5); }
.process .section-header.left h2 { color: #fff; }
.process .section-sub { color: rgba(255,255,255,.6); }

.process-steps { display: flex; flex-direction: column; gap: 0; }

.process-step {
  display: flex; gap: 24px; align-items: flex-start; padding: 24px 0;
}
.step-num {
  font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,.08);
  line-height: 1; min-width: 64px; text-align: center; padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.step-content h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-content p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.75; }

.process-connector {
  width: 1px; height: 1px; margin-left: 32px;
  border-left: 1px dashed rgba(255,255,255,.15);
  padding-top: 0; min-height: 24px;
}


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(21,101,192,.92) 0%, rgba(10,38,71,.95) 100%), url('hospital6.jpg') center/cover no-repeat;
  padding: 80px 48px; text-align: center;
}
.cta-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-content { position: relative; max-width: 600px; margin: 0 auto; }
.cta-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.cta-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-content h2 em { color: rgba(255,255,255,.85); font-style: italic; }
.cta-content p { color: rgba(255,255,255,.7); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary-sm {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 11px 22px; border-radius: 50px; font-size: .85rem; font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn-primary-sm:hover { background: var(--navy); transform: translateY(-1px); }

.btn-ghost-white {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: #fff;
  padding: 14px 28px; border-radius: 50px;
  font-size: .9rem; font-weight: 500; border: 1.5px solid rgba(255,255,255,.3);
  transition: background .2s, transform .2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }


/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--bg-soft); padding: 100px 48px; }

.reviews-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.review-card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.review-stars { color: #F59E0B; font-size: .9rem; letter-spacing: 1px; }
.review-dept {
  font-size: .72rem; background: var(--bg-soft); color: var(--blue);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 50px;
  font-weight: 600;
}

.review-text {
  font-size: .88rem; color: var(--text-mid); line-height: 1.8;
  margin-bottom: 20px; font-style: italic;
}
.review-text::before { content: '\201C'; font-size: 1.5rem; color: var(--blue); line-height: 0; vertical-align: -6px; margin-right: 2px; }

.review-author {
  display: flex; align-items: center; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.author-avatar {
  width: 36px; height: 36px; background: var(--navy); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.review-author strong { display: block; font-size: .85rem; color: var(--navy); }
.review-author span { font-size: .75rem; color: var(--text-soft); }
.review-date { margin-left: auto; font-size: .75rem; color: var(--text-soft); }


/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 100px 48px; }
.faq-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start;
}

.faq-sub { color: var(--text-mid); font-size: .88rem; margin-bottom: 24px; }

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; text-align: left;
  font-family: 'Noto Sans KR', sans-serif; font-size: .92rem;
  color: var(--text); font-weight: 500; gap: 16px;
  transition: color .2s;
}
.faq-q:hover { color: var(--blue); }

.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 300; flex-shrink: 0;
  transition: background .2s, transform .3s, color .2s;
  color: var(--text-mid);
}
.faq-item.open .faq-icon {
  background: var(--blue); color: #fff; border-color: var(--blue);
  transform: rotate(45deg);
}
.faq-item.open .faq-q { color: var(--blue); }

.faq-a { display: none; padding: 0 0 20px 0; }
.faq-a.open { display: block; }
.faq-a p { font-size: .88rem; color: var(--text-mid); line-height: 1.8; }


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg-soft); padding: 100px 48px;
  max-width: 100%;
}
.contact > * { max-width: 1200px; margin: 0 auto; }

.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 80px; row-gap: 0; align-items: start;
}
.contact > .contact-info, .contact > .contact-form-col {
  max-width: none; margin: 0;
}

/* Override the > * rule for grid items */
.contact { display: grid; }

.contact-info h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--navy); margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ci-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.ci-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--text-soft); text-transform: uppercase; margin-bottom: 4px; }
.contact-item p { font-size: .85rem; color: var(--text-mid); line-height: 1.7; margin: 0; }
.contact-item a { font-size: .9rem; color: var(--blue); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.map-placeholder {
  height: 200px; margin-top: 20px; border-radius: var(--radius);
}

/* FORM */
.form-header { margin-bottom: 28px; }
.form-header h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-header p { font-size: .85rem; color: var(--text-mid); }

.contact-form-col form {
  background: var(--bg); border-radius: var(--radius-lg); padding: 36px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text); }
.optional { font-weight: 400; color: var(--text-soft); }

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg-soft);
  font-family: 'Noto Sans KR', sans-serif; font-size: .88rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.08);
  background: var(--bg);
}
.form-group textarea { resize: none; height: 100px; }

.form-check {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--text-mid); cursor: pointer;
}
.form-check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue); }
.form-check a { color: var(--blue); text-decoration: underline; }

.form-submit {
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  padding: 15px; border-radius: 50px; font-family: 'Noto Sans KR', sans-serif;
  font-size: .9rem; font-weight: 700; letter-spacing: .04em;
  transition: background .2s, transform .2s; margin-top: 4px;
}
.form-submit:hover { background: var(--navy); transform: translateY(-1px); }

.form-success {
  display: none; text-align: center; padding: 14px;
  background: #E8F5E9; color: #2E7D32; border-radius: var(--radius);
  font-size: .85rem; font-weight: 500; border: 1px solid #A5D6A7;
}
.form-success.show { display: block; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 64px 48px 32px; }

.footer-top {
  max-width: 1200px; margin: 0 auto 48px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  color: #fff; margin-bottom: 16px;
}
.footer-brand p { font-size: .82rem; line-height: 1.75; margin-bottom: 20px; }
.footer-sns { display: flex; gap: 12px; }
.footer-sns a {
  width: 36px; height: 36px; background: rgba(255,255,255,.08);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.6);
  transition: background .2s, color .2s;
}
.footer-sns a:hover { background: var(--blue); color: #fff; }

.footer-links-group {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .82rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }


/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  width: 44px; height: 44px; background: var(--blue); color: #fff;
  border: none; border-radius: 50%; font-size: 1rem; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--navy); transform: translateY(-2px); }


/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about-img-col { display: none; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .process-inner { grid-template-columns: 1fr; gap: 40px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .faq-container { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; row-gap: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-container, .about, .departments, .doctors, .reviews, .faq, .contact {
    padding-left: 24px; padding-right: 24px;
  }

  .hero-text { text-align: center; }
  .hero-label { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-trust { margin: 0 auto; }
  .notice-bar { padding: 10px 24px; }
  .stats-section { padding: 40px 24px; }
  .stats-grid { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { min-width: 50%; }

  .dept-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .img-strip { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 48px 24px 24px; }
  .footer-links-group { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust { gap: 16px; padding: 16px; }
  .cta-banner { padding: 60px 24px; }
  .process { padding: 80px 24px; }
  .br-only { display: none; }
}

@media (max-width: 480px) {
  .footer-links-group { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
