/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #03c75a;
  --accent-dark: #02b350;
  --dark: #1a1a1a;
  --gray-900: #222;
  --gray-700: #555;
  --gray-400: #999;
  --gray-200: #e8e8e8;
  --gray-100: #f5f5f5;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ===== 네비게이션 ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

.nav.scrolled .logo {
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}

.nav.scrolled .nav-links a {
  color: var(--gray-700);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.nav.scrolled .nav-toggle span {
  background: var(--dark);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== 히어로 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}

.highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--accent);
  color: var(--dark);
}

.tag-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ===== 공통 섹션 ===== */
.section {
  padding: 100px 24px;
}

.section-white { background: var(--white); }
.section-gray { background: var(--gray-100); }

.section-label {
  text-align: center;
  margin-bottom: 16px;
}

.section-label span {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 56px;
}

/* ===== About ===== */
.about-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-text {
  padding: 40px 32px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 2;
}

/* ===== Philosophy ===== */
.philosophy-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.phil-card {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.phil-img {
  width: 200px;
  min-height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.phil-text {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phil-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.phil-text p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ===== Services ===== */
.services-content {
  max-width: 900px;
  margin: 0 auto;
}

.service-hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.service-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.service-hero-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: var(--white);
}

.service-hero-text .highlight {
  font-size: 1.8rem;
  font-weight: 900;
  display: block;
  margin-bottom: 8px;
}

.service-hero-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

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

.service-item {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent-dark);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 0.85rem;
  color: var(--gray-700);
}

/* ===== Slogan ===== */
.slogan-section {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
}

.slogan-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slogan-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
}

.slogan-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.slogan-icon {
  margin-bottom: 24px;
  color: var(--white);
}

.slogan-icon svg {
  width: 40px;
  height: 40px;
}

.slogan-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}

.slogan-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

/* ===== Doctor ===== */
.doctor-card {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 48px;
}

.doctor-img-wrap {
  flex-shrink: 0;
  width: 280px;
}

.doctor-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

.doctor-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.doctor-name {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.doctor-name span {
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gray-700);
}

.doctor-quote {
  font-size: 1rem;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.doctor-career {
  margin-bottom: 24px;
}

.doctor-career li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.doctor-career li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.doctor-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doctor-strengths span {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-700);
  background: var(--white);
}

/* ===== Contact ===== */
.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  text-align: center;
  gap: 12px;
}

.map-placeholder p {
  font-size: 0.9rem;
}

.map-placeholder small {
  font-size: 0.75rem;
}

.contact-info {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.info-item p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.info-item a {
  color: var(--dark);
  font-weight: 500;
}

.hours-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.hours-row.closed span:last-child {
  color: #e74c3c;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.5);
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-info {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.75rem;
}

/* ===== 애니메이션 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.phil-card:nth-child(2).fade-up { transition-delay: 0.1s; }
.phil-card:nth-child(3).fade-up { transition-delay: 0.2s; }

.service-item:nth-child(2).fade-up { transition-delay: 0.08s; }
.service-item:nth-child(3).fade-up { transition-delay: 0.16s; }
.service-item:nth-child(4).fade-up { transition-delay: 0.24s; }
.service-item:nth-child(5).fade-up { transition-delay: 0.32s; }
.service-item:nth-child(6).fade-up { transition-delay: 0.4s; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--dark) !important;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .section {
    padding: 72px 20px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .about-img {
    height: 240px;
  }

  .about-text {
    padding: 28px 20px;
  }

  .about-text br {
    display: none;
  }

  .phil-card {
    flex-direction: column;
  }

  .phil-img {
    width: 100%;
    height: 200px;
  }

  .phil-text {
    padding: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .service-hero-img {
    height: 280px;
  }

  .service-hero-text {
    bottom: 24px;
    left: 24px;
  }

  .service-hero-text .highlight {
    font-size: 1.4rem;
  }

  .doctor-card {
    flex-direction: column;
    padding: 32px 24px;
    gap: 32px;
  }

  .doctor-img-wrap {
    width: 100%;
  }

  .doctor-img {
    height: 300px;
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-placeholder {
    min-height: 240px;
  }

  .slogan-section {
    padding: 80px 20px;
  }

  .hero-desc br,
  .slogan-desc br {
    display: none;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 24px 20px;
  }

  .hero-tags {
    gap: 8px;
  }

  .tag {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}
