@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

/* ==========================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================== */
:root {
  /* Color Palette - Clinical Soft Premium (light-only) */
  --bg-primary: #F7FAFC;      /* Clean Blue-Gray Light Tint */
  --bg-secondary: #EDF2F6;    /* Slightly deeper clinical gray-blue */
  --bg-dark: #13202A;         /* Dark Slate Blue for header/footer contrast */
  --bg-dark-light: #1A2E3D;   /* Secondary dark slate */
  
  --surface: #FFFFFF;         /* White Card Surface */
  --surface-border: rgba(19, 32, 42, 0.08); /* Muted border */
  --surface-border-dark: rgba(255, 255, 255, 0.08);
  
  --text-primary: #13202A;    /* Deep Slate Blue Primary Text */
  --text-muted: #4A5D6E;      /* Muted Steel Blue */
  --text-light: #F7FAFC;      /* Soft Light Text */
  --text-light-muted: #A0B2C1;/* Muted Light Text */
  
  --primary: #246B8F;         /* Clinical Deep Cyan Blue */
  --primary-hover: #1C5573;   /* Deepened Clinical Blue */
  --primary-light: #EBF3F7;   /* Light Cyan Surface Accent */
  --accent: #8ECADF;          /* Soft Medical Sky Blue */
  --muted: #DCE8EE;           /* Light Steel Blue contrast */
  
  /* Typography */
  --font-heading: 'Pretendard', 'Noto Sans KR', 'Inter', sans-serif;
  --font-body: 'Pretendard', 'Noto Sans KR', sans-serif;
  
  /* Shadows - Clinical flat */
  --shadow-sm: 0 2px 8px rgba(36, 107, 143, 0.04);
  --shadow-md: 0 8px 24px rgba(36, 107, 143, 0.06);
  --shadow-lg: 0 16px 48px rgba(36, 107, 143, 0.08);
  --shadow-premium: 0 10px 30px rgba(36, 107, 143, 0.08); /* clinical-flat */
  
  /* Borders & Radius - Professional medical standard (4px - 12px) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
  
  /* Animation Timing */
  --transition-smooth: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================
   RESET & GLOBAL BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

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

/* Typography Balance & Keep-All for Korean readability */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.65;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Focus Visible Utility (Accessibility) */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ==========================================
   CONTAINER & REPEATABLE COMPONENTS
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  color: inherit;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
}
.section-dark .section-desc {
  color: var(--text-light-muted);
}

/* Buttons with Clean transitions and active states */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 52px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.99) translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.99) translateY(-1px);
}

.btn-secondary-dark {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--surface-border-dark);
}

.btn-secondary-dark:hover {
  background-color: var(--bg-dark-light);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary-dark:active {
  transform: scale(0.99) translateY(-1px);
}

/* ==========================================
   NAVIGATION BAR (HEADER)
   ========================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(247, 250, 252, 0.85); /* Clean light tint translucent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-nav.scrolled {
  height: 70px;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after, .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  height: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  z-index: 1010;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  padding-top: 160px;
  padding-bottom: clamp(60px, 8vw, 100px);
  background: linear-gradient(180deg, #F0F4F8 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(36, 107, 143, 0.12);
}

.hero-title {
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 600px;
}

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

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: var(--surface-border);
  aspect-ratio: 16 / 9; /* Strict Aspect Ratio for CLS Protection */
  background-color: var(--bg-secondary);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.04);
}

/* Floating Info Card (Hero Visual Break) */
.hero-floating-card {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 280px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.floating-card-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.floating-card-text h4 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.floating-card-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================
   PHILOSOPHY & INTRO SECTION (Brand Story)
   ========================================== */
.philosophy {
  background-color: var(--surface);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.philosophy-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.philosophy-img-large {
  grid-row: span 2;
  border-radius: var(--radius-lg);
  height: 380px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--surface-border);
  aspect-ratio: 3 / 4;
}

.philosophy-img-small {
  border-radius: var(--radius-lg);
  height: 180px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--surface-border);
  aspect-ratio: 3 / 2;
  align-self: end;
}

.philosophy-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.philosophy-quote {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.6;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  color: var(--text-primary);
}

.philosophy-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.philosophy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.philosophy-point {
  display: flex;
  gap: 12px;
}

.philosophy-point-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.philosophy-point h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.philosophy-point p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================
   CORE SUBJECTS (진료 과목)
   ========================================== */
.subjects {
  background-color: var(--bg-primary);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.subject-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--surface-border);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.subject-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-premium);
}

.subject-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.subject-card:hover .subject-icon {
  background-color: var(--primary);
  color: var(--surface);
}

.subject-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.subject-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.subject-bullets {
  list-style: none;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subject-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-primary);
  line-height: 1.5;
}

.subject-bullets li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.2;
}

/* ==========================================
   PROCESS SECTION (치료 프로세스)
   ========================================== */
.process {
  background-color: var(--surface);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

/* Connector Line with Clinical Blue Accent */
.process-timeline::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 12%;
  right: 12%;
  height: 2px;
  background-color: var(--muted);
  z-index: 1;
}

.process-step {
  text-align: center;
  z-index: 2;
  position: relative;
}

.process-number {
  width: 50px;
  height: 50px;
  background-color: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.process-step:hover .process-number {
  background-color: var(--primary);
  color: var(--surface);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(36, 107, 143, 0.2);
}

.process-step-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.process-step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0 8px;
  line-height: 1.5;
}

/* ==========================================
   FACILITIES & TEAM (공간 및 의료진)
   ========================================== */
.team {
  background-color: var(--bg-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.doctor-profile-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
}

.doctor-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.doctor-avatar-fallback {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(36, 107, 143, 0.1);
}

.doctor-name h3 {
  font-size: 1.375rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.doctor-name p {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.doctor-careers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.doctor-careers li {
  display: flex;
  gap: 12px;
  line-height: 1.5;
}

.doctor-careers li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.facility-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.facility-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2; /* Facility Aspect Ratio Token (3:2) */
  box-shadow: var(--shadow-md);
  border: 1px solid var(--surface-border);
  background-color: var(--bg-secondary);
}

.facility-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.facility-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.facility-thumb {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  position: relative;
  background-color: var(--bg-secondary);
}

.facility-thumb:hover {
  opacity: 0.9;
}

.facility-thumb.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.facility-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-thumb-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(19, 32, 42, 0.45);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==========================================
   FEE TABLE SECTION (비급여 수가 안내)
   ========================================== */
.fees {
  background-color: var(--bg-primary);
}

.fees-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.fee-tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  background-color: var(--surface);
  border: 1px solid var(--surface-border);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.fee-tab-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--accent);
}

.fee-tab-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.fee-tab-panel {
  display: none;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-premium);
}

.fee-tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.fee-table-wrapper {
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.fee-table th, .fee-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--surface-border);
}

.fee-table th {
  font-weight: 700;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.fee-table tr:hover td {
  background-color: var(--primary-light);
}

.fee-table tr:last-child td {
  border-bottom: none;
}

.fee-table .item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.fee-table .price {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.fee-disclaimer {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ==========================================
   FAQ SECTION (아코디언)
   ========================================== */
.faq {
  background-color: var(--surface);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  background-color: var(--bg-primary);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  transition: var(--transition-fast);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-trigger {
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  background-color: var(--surface);
}

.faq-content-inner {
  padding: 0 24px 24px 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================
   BOOKING & CONTACT SECTION (예약 및 문의)
   ========================================== */
.booking {
  background-color: var(--bg-secondary);
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.booking-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-details h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-details p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hours-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-border);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table td.day {
  font-weight: 600;
  color: var(--text-primary);
}

.hours-table td.time {
  text-align: right;
  color: var(--text-muted);
}

.hours-table td.accent {
  color: var(--primary);
  font-weight: 600;
}

/* Form Styling with High Accessibility & Clean Input States */
.booking-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background-color: var(--bg-primary);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  color: var(--text-primary);
  height: 48px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(36, 107, 143, 0.12);
}

/* Error States */
.form-group.error label {
  color: #EF4444;
}

.form-group.error .form-input {
  border-color: #EF4444;
  background-color: #FFF5F5;
}

.form-group.error .form-input:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-error-msg {
  display: none;
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 4px;
  font-weight: 500;
}

.form-group.error .form-error-msg {
  display: block;
}

.booking-submit-btn {
  width: 100%;
  margin-top: 12px;
}

/* Booking Success Screen Overlay */
.booking-success-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
}

.booking-success-overlay.active {
  display: flex;
  animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(36, 107, 143, 0.1);
}

.success-title {
  font-size: 1.375rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.success-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================
   FOOTER (푸터)
   ========================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 60px 0 35px 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--surface-border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.footer-address {
  line-height: 1.7;
}

.footer-links h4, .footer-contact h4 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  transition: var(--transition-fast);
}

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

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-tel {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.footer-disclaimer {
  border-top: 1px solid var(--surface-border-dark);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8125rem;
}

.medical-warning {
  flex-basis: 100%;
  color: var(--text-light-muted);
  line-height: 1.6;
  opacity: 0.85;
}

/* ==========================================
   RESPONSIVE GRID & INTERFACE (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image-wrapper {
    max-width: 540px;
    margin: 0 auto;
  }
  .hero-floating-card {
    left: -10px;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    height: 70px;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--surface-border);
    height: calc(100vh - 70px);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* Toggle Active State */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-timeline::after {
    display: none;
  }
  .process-step {
    display: flex;
    text-align: left;
    gap: 20px;
    align-items: flex-start;
  }
  .process-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .process-step-desc {
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .booking-card {
    padding: 24px;
  }
  .doctor-profile-card {
    padding: 24px;
  }
  .doctor-meta {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
