/* ==================== RESET & BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2f6f6b;
  --primary-dark: #1f4e4b;
  --accent: #e8b04b;
  --mint: #eaf5f2;
  --text-dark: #223333;
  --text-gray: #6b7a78;
  --white: #ffffff;
  --header-h: 80px;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-weight: 700; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.section { padding: 120px 24px; position: relative; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-tag {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 12px;
}
.section-tag.center { text-align: center; }
.section-tag.light { color: var(--accent); }
h2.center { text-align: center; margin-bottom: 60px; font-size: 34px; }
h2.light { color: var(--white); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s ease;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline-light {
  border: 1px solid rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,.15); }

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 900;
  font-size: 18px;
  color: var(--white);
  transition: color .3s ease;
}
.logo-text em { font-style: normal; font-weight: 500; margin-left: 4px; }
.site-header.scrolled .logo-text { color: var(--text-dark); }

.gnb ul { display: flex; gap: 36px; }
.gnb-link {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .3s ease;
}
.site-header.scrolled .gnb-link { color: var(--text-dark); }
.gnb-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.gnb-link.active::after,
.gnb-link:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .tel {
  color: var(--white);
  font-weight: 700;
  transition: color .3s ease;
}
.site-header.scrolled .header-cta .tel { color: var(--primary-dark); }
.header-cta .btn-primary { padding: 10px 22px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all .3s ease;
}
.site-header.scrolled .hamburger span { background: var(--text-dark); }

.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 78%; max-width: 320px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,.1);
  padding: 100px 32px 40px;
  transition: right .3s ease;
  z-index: 1050;
}
.mobile-nav.open { right: 0; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 28px; }
.mobile-link { font-size: 17px; font-weight: 500; color: var(--text-dark); }
.mobile-tel {
  display: block;
  margin-top: 48px;
  font-weight: 700;
  color: var(--primary);
}

/* ==================== QUICK BAR ==================== */
.quick-bar {
  position: fixed;
  right: 24px; bottom: 30px;
  display: flex; flex-direction: column;
  gap: 8px;
  z-index: 900;
}
.quick-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e3e9e8;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.quick-btn:hover { transform: translateY(-3px); background: var(--mint); }
.quick-icon { font-size: 18px; line-height: 1; }
.quick-text { font-size: 10px; margin-top: 3px; color: var(--text-gray); font-weight: 700; }

/* ==================== VISUAL / HERO ==================== */
.visual-section {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
}
.visual-bg {
  position: absolute; inset: 0;
  background-color: #2c5d59;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Crect width='240' height='240' fill='%232c5d59'/%3E%3Crect x='30' y='170' width='26' height='40' fill='%23366f67'/%3E%3Crect x='66' y='140' width='26' height='70' fill='%23366f67'/%3E%3Crect x='102' y='100' width='26' height='110' fill='%23366f67'/%3E%3Cpath d='M32 168 L68 138 L104 98 L140 62' stroke='%23e8b04b' stroke-width='3' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Ccircle cx='140' cy='62' r='6' fill='%23e8b04b' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  z-index: -3;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(31,78,75,.9), rgba(47,111,107,.8));
  z-index: -1;
}
.visual-content { max-width: 760px; color: var(--white); }
.eyebrow {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.visual-content h1 {
  font-size: 42px;
  line-height: 1.4;
  margin-bottom: 20px;
}
.visual-sub {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
}
.scroll-down {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-down span {
  width: 1px; height: 30px;
  background: rgba(255,255,255,.6);
  animation: scrollMove 1.6s infinite;
}
@keyframes scrollMove {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==================== TWO COL LAYOUT ==================== */
.two-col {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 1fr 460px; }

/* ==================== DOCTOR ==================== */
.doctor-section { background: var(--white); }
.photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--mint), #d7e8e3);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-weight: 700;
  position: relative;
}
.doctor-illust { width: 55%; max-width: 220px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info h2 { font-size: 30px; margin-bottom: 24px; }
.doctor-info h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.career-list { margin-bottom: 28px; }
.career-list li {
  padding-left: 18px;
  position: relative;
  color: var(--text-gray);
  margin-bottom: 10px;
  font-size: 15px;
}
.career-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.doctor-desc { font-size: 16px; color: var(--text-dark); }

/* ==================== POINT ==================== */
.point-section { background: var(--mint); }
.point-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.point-card {
  background: var(--white);
  border-radius: 12px;
  padding: 44px 30px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(31,78,75,.06);
  transition: transform .25s ease;
}
.point-card:hover { transform: translateY(-8px); }
.point-num {
  display: inline-block;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 36px; height: 36px;
  line-height: 34px;
  margin-bottom: 20px;
}
.point-card h3 { font-size: 19px; margin-bottom: 14px; color: var(--primary-dark); }
.point-card p { color: var(--text-gray); font-size: 14px; }

/* ==================== SUBJECT ==================== */
.subject-section { background: var(--white); }
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.subject-card {
  border: 1px solid #e3e9e8;
  border-radius: 12px;
  padding: 48px 28px;
  text-align: center;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.subject-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 26px rgba(31,78,75,.1);
}
.subject-icon { font-size: 36px; margin-bottom: 18px; }
.subject-card h3 { font-size: 20px; margin-bottom: 14px; color: var(--primary-dark); }
.subject-card p { color: var(--text-gray); font-size: 14px; }

/* ==================== VIDEO ==================== */
.video-section {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
}
.video-wrap { max-width: 860px; margin: 0 auto; }
.video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.08);
  border: 1px dashed rgba(255,255,255,.4);
  border-radius: 12px;
  overflow: hidden;
  color: rgba(255,255,255,.8);
}
.video-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
}
.video-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

/* ==================== LOCATION ==================== */
.location-section { background: var(--mint); }
.map-placeholder {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-gray);
  font-weight: 700;
}
.map-illust { width: 100%; height: 100%; display: block; }
.location-info h2 { font-size: 30px; margin-bottom: 28px; }
.info-list div {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #dbe6e2;
}
.info-list dt {
  width: 90px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--primary-dark);
}
.info-list dd { color: var(--text-dark); }
.location-info .btn { margin-top: 32px; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: #1a2e2c;
  color: rgba(255,255,255,.65);
  padding: 44px 24px;
  text-align: center;
  font-size: 13px;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-name { color: var(--white); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.footer-copy { margin-top: 10px; opacity: .6; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .gnb, .header-cta { display: none; }
  .hamburger { display: flex; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 40px; }
  .point-cards, .subject-grid { grid-template-columns: 1fr; }
  .visual-content h1 { font-size: 30px; }
  .section { padding: 80px 20px; }
  .quick-bar { right: 14px; bottom: 20px; }
  .quick-btn { width: 52px; height: 52px; }
}
