/* ============================================
   CYL CLINIC - Global Stylesheet
   Warm Beige & Nude Tone Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Colors - Warm Beige/Nude */
  --color-bg: #FBF7F2;
  --color-bg-warm: #F5EDE3;
  --color-bg-cream: #FDF9F5;
  --color-bg-card: #FFFFFF;
  --color-bg-dark: #2D2A26;
  --color-bg-dark-soft: #3A3632;

  /* Accent Colors */
  --color-gold: #C9A96E;
  --color-gold-light: #D4BA88;
  --color-gold-dark: #B8944F;
  --color-rose: #D4A0A0;
  --color-rose-light: #E8C4C4;

  /* Text Colors */
  --color-text: #2D2A26;
  --color-text-medium: #6B6560;
  --color-text-light: #9B9490;
  --color-text-white: #FDFCFB;
  --color-text-gold: #C9A96E;

  /* Border */
  --color-border: #E8DFD5;
  --color-border-light: #F0EAE3;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45,42,38,0.06);
  --shadow-md: 0 4px 20px rgba(45,42,38,0.08);
  --shadow-lg: 0 8px 40px rgba(45,42,38,0.12);
  --shadow-card: 0 2px 16px rgba(45,42,38,0.05);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Noto Sans', 'Noto Sans KR', 'Noto Sans SC', sans-serif;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1200px;
  --header-h: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

ul, ol { list-style: none; }


/* --- Accessibility: Focus Visible Styles --- */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #C9A96E;
  outline-offset: 2px;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 20px;
}

.section-title--white {
  color: var(--color-text-white);
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-medium);
  max-width: 560px;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  gap: 8px;
}

.btn-gold {
  background: var(--color-gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline--white {
  color: var(--color-text-white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline--white:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}
.btn-dark:hover {
  background: var(--color-bg-dark-soft);
  transform: translateY(-1px);
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: all var(--duration) var(--ease);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(251,247,242,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border-light);
}

.site-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.site-header.hero-visible .logo-text {
  color: var(--color-text-white);
}
.site-header.scrolled .logo-text {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: transparent;
  color: var(--color-text-medium);
  transition: all var(--duration) var(--ease);
}
.lang-switch:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration) var(--ease);
  z-index: 100;
  overflow: hidden;
}

.lang-switch.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.82rem;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-medium);
  transition: all var(--duration) var(--ease);
}
.lang-option:hover {
  background: var(--color-bg-warm);
  color: var(--color-gold);
}
.lang-option.active {
  color: var(--color-gold);
  font-weight: 600;
}

.header-cta {
  padding: 10px 24px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 24px;
  background: var(--color-gold);
  color: #fff;
  transition: all var(--duration) var(--ease);
}
.header-cta:hover {
  background: var(--color-gold-dark);
}

.site-header.hero-visible .header-cta {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
}
.site-header.scrolled .header-cta {
  background: var(--color-gold);
  border: none;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--duration) var(--ease);
}
.site-header.hero-visible .menu-btn span {
  background: var(--color-text-white);
}
.site-header.scrolled .menu-btn span {
  background: var(--color-text);
}

/* --- Menu Overlay --- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(45,42,38,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 90vw);
  height: 100%;
  background: var(--color-bg-cream);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
  padding: 32px;
}
.menu-overlay.open .menu-panel {
  transform: translateX(0);
}

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--color-bg-warm);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-text);
  transition: all var(--duration) var(--ease);
}
.menu-close:hover {
  background: var(--color-gold);
  color: #fff;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--duration) var(--ease);
}
.menu-link:hover {
  color: var(--color-gold);
  padding-left: 8px;
}
.menu-link .arrow {
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--duration) var(--ease);
}
.menu-link:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.menu-contact {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.menu-contact p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
}
.menu-contact a {
  color: var(--color-gold);
  font-weight: 500;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero Background Video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(45,42,38,0.65) 0%, rgba(45,42,38,0.35) 60%, rgba(201,169,110,0.1) 100%);
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  z-index: 2;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  padding: 40px 0;
}

.hero-content .section-tag {
  color: var(--color-gold-light);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-copy {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 36px;
}

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

/* Hero Stats */
.hero-stat-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* --- MOBILE STATS BAR (히어로 하단, 모바일 전용) --- */
.mobile-stats-bar {
  display: none;
}

@media (max-width: 480px) {
  .mobile-stats-bar {
    display: flex;
    justify-content: space-around;
    background: var(--color-bg-dark, #2D2A26);
    padding: 16px;
    text-align: center;
    color: #fff;
  }

  .mobile-stats-bar .stat-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold, #C9A96E);
    line-height: 1;
    margin-bottom: 4px;
  }

  .mobile-stats-bar .stat-label {
    font-size: 0.65rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* --- SERVICES SECTION --- */
.services-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header .section-desc {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.service-card-img {
  width: 100%;
  height: 240px;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.service-card-img .placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.service-card-body {
  padding: 28px;
}

.service-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.service-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gold);
  transition: all var(--duration) var(--ease);
}
.card-link:hover {
  gap: 10px;
  color: var(--color-gold-dark);
}

/* --- WHY CHOOSE US / FEATURES --- */
.features-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg-warm);
}

.features-layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.features-left {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.features-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border-light);
  transition: all var(--duration) var(--ease);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-light);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-warm);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-medium);
  line-height: 1.7;
}

.feature-card--wide {
  grid-column: span 2;
}

/* --- GALLERY / BEFORE-AFTER --- */
.gallery-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.gallery-header {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-warm);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--color-border-light);
}

.gallery-item .placeholder-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* --- REVIEWS --- */
.reviews-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg-warm);
}

.reviews-header {
  text-align: center;
  margin-bottom: 48px;
}

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

.review-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border-light);
}

.review-stars {
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.review-origin {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* --- CTA SECTION --- */
.cta-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.cta-panel {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 48px;
  background: var(--color-bg-dark);
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-text-white);
  margin-bottom: 32px;
  line-height: 1.4;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 80px 0 0;
}

.footer-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  color: var(--color-text-white);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.footer-cta-buttons .btn {
  width: 100%;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 48px 0;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
  transition: all var(--duration) var(--ease);
}
.footer-col a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a, .footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal a:hover {
  color: var(--color-gold);
}

/* --- FLOATING MESSENGER --- */
.floating-messenger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.msg-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}
.msg-btn:hover {
  transform: scale(1.1);
}

.msg-zalo { background: #0068FF; color: #fff; }
.msg-kakao { background: #FEE500; color: #3C1E1E; }
.msg-whatsapp { background: #25D366; color: #fff; }
.msg-phone { background: var(--color-gold); color: #fff; }

/* --- RESPONSIVE --- */

/* Tablet: 768px - 1199px */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .hero-stat-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    min-width: 140px;
    padding: 20px 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .features-left {
    position: static;
  }

  .features-right {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .container {
    padding: 0 20px;
  }

  .site-header-inner {
    padding: 0 20px;
  }

  .menu-panel {
    width: min(400px, 90vw);
    padding: 28px;
  }

  .menu-link {
    padding: 12px 0;
    font-size: 1.4rem;
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
    --header-h: 64px;
  }

  /* Better padding for mobile screens */
  .container {
    padding: 0 16px;
  }

  .site-header-inner {
    padding: 0 16px;
  }

  /* Navigation adjustments */
  .header-actions {
    gap: 12px;
  }

  .lang-switch {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-btn {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }

  .menu-btn span {
    width: 22px;
    height: 2px;
  }

  .menu-panel {
    width: min(85vw, 340px);
    padding: 24px;
  }

  .menu-top {
    margin-bottom: 32px;
  }

  .menu-close {
    width: 36px;
    height: 36px;
    min-height: 44px;
    min-width: 44px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-link {
    padding: 12px 0;
    font-size: 1.2rem;
  }

  .menu-contact {
    margin-top: 32px;
    padding-top: 24px;
  }

  /* Hero adjustments */
  .hero-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 16px;
  }

  .hero-copy {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-stat-stack {
    flex-direction: column;
    gap: 12px;
  }

  .stat-card {
    padding: 16px 20px;
    min-width: auto;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .service-card {
    border-radius: var(--radius-md);
  }

  .service-card-img {
    height: 200px;
  }

  .service-card-body {
    padding: 20px;
  }

  /* Features section */
  .features-layout {
    padding: 0 16px;
    gap: 32px;
  }

  .features-right {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: span 1;
  }

  .feature-card {
    padding: 20px;
  }

  /* Gallery */
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 32px;
  }

  .gallery-scroll {
    padding: 0 16px 16px;
    gap: 16px;
  }

  .gallery-item {
    flex: 0 0 200px;
    border-radius: var(--radius-md);
  }

  /* Reviews grid */
  .reviews-header {
    margin-bottom: 32px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .review-card {
    padding: 20px;
  }

  /* CTA section */
  .cta-section {
    padding: 40px 0;
  }

  .cta-panel {
    margin: 0 16px;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  .cta-text {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
    min-height: 44px;
  }

  /* Footer */
  .footer-top {
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 0;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
  }

  /* Floating messenger */
  .floating-messenger {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .msg-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 40px;
  }

  .container {
    padding: 0 16px;
  }

  .site-header-inner {
    padding: 0 12px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .header-actions {
    gap: 8px;
  }

  /* Mobile menu optimizations */
  .menu-panel {
    width: min(90vw, 300px);
    padding: 20px;
  }

  .menu-top {
    margin-bottom: 24px;
  }

  .menu-close {
    width: 40px;
    height: 40px;
    min-width: 44px;
    min-height: 44px;
  }

  .menu-link {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-border-light);
  }

  .menu-link .arrow {
    font-size: 0.9rem;
  }

  /* Hero section - 모바일 영상 가시성 확보 (FE-WI-2026-004 + FE-WI-2026-005)
     텍스트/버튼을 하단으로 밀어 상단 ~52%는 영상만 노출 */
  .hero {
    min-height: calc(100vh - var(--header-h));
    padding-top: var(--header-h);
    display: flex;
    align-items: flex-end;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px 24px;
    padding-top: 0;
    align-items: end;
    align-self: end;
    width: 100%;
  }

  .hero-content {
    padding: 52vh 0 0;
  }

  /* [4.4] 섹션 태그 축소 */
  .hero-content .section-tag {
    font-size: 0.65rem;
    margin-bottom: 8px;
  }

  /* [4.2] h1 폰트 사이즈 축소 */
  .hero-content h1 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    margin-bottom: 8px;
    line-height: 1.15;
  }

  /* [4.4] 설명 텍스트 최적화 - 최대 2줄 제한 */
  .hero-copy {
    font-size: 0.85rem;
    margin-bottom: 12px;
    max-width: 100%;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* [4.1] 통계 카드 히어로 밖으로 이동 (숨김) */
  .hero-stat-stack {
    display: none;
  }

  /* [4.3] CTA 버튼 컴팩트화 */
  .hero-btns {
    flex-direction: column;
    gap: 8px;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
    font-size: 0.8rem;
    padding: 10px 20px;
  }

  /* [4.5] 오버레이 투명도 재조정 - 상단 영상 노출 극대화, 하단 텍스트 가독성 확보 */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(45, 42, 38, 0.20) 0%,
      rgba(45, 42, 38, 0.12) 35%,
      rgba(45, 42, 38, 0.45) 60%,
      rgba(45, 42, 38, 0.82) 100%
    );
  }

  /* Section padding */
  .section-tag {
    font-size: 0.65rem;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: clamp(1.4rem, 2vw, 2rem);
    margin-bottom: 12px;
  }

  .section-desc {
    font-size: 0.9rem;
  }

  /* Services */
  .services-section {
    padding: 40px 0;
  }

  .services-header {
    margin-bottom: 32px;
    padding: 0 16px;
  }

  .services-grid {
    gap: 16px;
    padding: 0 16px;
  }

  .service-card-img {
    height: 160px;
  }

  .service-card-body {
    padding: 16px;
  }

  .service-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .service-card-body p {
    font-size: 0.8rem;
  }

  .card-link {
    font-size: 0.8rem;
  }

  /* Features */
  .features-section {
    padding: 40px 0;
  }

  .features-layout {
    padding: 0 16px;
    gap: 24px;
  }

  .features-right {
    gap: 12px;
  }

  .feature-card {
    padding: 16px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .feature-card h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .feature-card p {
    font-size: 0.78rem;
  }

  /* Gallery */
  .gallery-section {
    padding: 40px 0;
  }

  .gallery-header {
    margin-bottom: 20px;
    padding: 0 16px;
    gap: 8px;
  }

  .gallery-scroll {
    padding: 0 16px 12px;
    gap: 12px;
  }

  .gallery-item {
    flex: 0 0 160px;
    aspect-ratio: 3/4;
  }

  /* Reviews */
  .reviews-section {
    padding: 40px 0;
  }

  .reviews-header {
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .reviews-grid {
    gap: 12px;
    padding: 0 16px;
  }

  .review-card {
    padding: 16px;
  }

  .review-text {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .review-author {
    font-size: 0.8rem;
  }

  /* CTA */
  .cta-section {
    padding: 32px 0;
  }

  .cta-panel {
    padding: 24px 16px;
    margin: 0 16px;
    border-radius: var(--radius-lg);
  }

  .cta-text {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .cta-buttons .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.75rem;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 0;
  }

  .footer-top {
    gap: 24px;
    padding-bottom: 24px;
  }

  .footer-brand {
    padding: 0 16px;
  }

  .footer-brand .logo-text {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .footer-brand p {
    font-size: 0.8rem;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .footer-cta-buttons {
    padding: 0 16px;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
    text-align: center;
  }

  .footer-col h4 {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }

  .footer-col a {
    font-size: 0.8rem;
    padding: 2px 0;
  }

  .footer-bottom {
    padding: 16px 0;
    font-size: 0.7rem;
  }

  .footer-legal {
    font-size: 0.7rem;
  }

  /* Buttons - ensure touch targets */
  .btn {
    padding: 12px 20px;
    font-size: 0.75rem;
    min-height: 44px;
    min-width: 44px;
  }

  /* Floating messenger */
  .floating-messenger {
    bottom: 12px;
    right: 12px;
    gap: 6px;
  }

  .msg-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* --- Page Load Fade-in --- */
html {
  opacity: 0;
  animation: fadeInPageLoad 0.8s ease-out forwards;
}

@keyframes fadeInPageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Scroll-triggered Animation Classes --- */
.anim-up, .anim-left, .anim-right, .anim-scale {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-up {
  transform: translateY(30px);
}
.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-left {
  transform: translateX(-30px);
}
.anim-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-right {
  transform: translateX(30px);
}
.anim-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-scale {
  transform: scale(0.95);
}
.anim-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Stagger delays for grid items (100ms increments) --- */
.anim-up:nth-child(1),
.anim-left:nth-child(1),
.anim-right:nth-child(1),
.anim-scale:nth-child(1) {
  transition-delay: 0s;
}

.anim-up:nth-child(2),
.anim-left:nth-child(2),
.anim-right:nth-child(2),
.anim-scale:nth-child(2) {
  transition-delay: 0.1s;
}

.anim-up:nth-child(3),
.anim-left:nth-child(3),
.anim-right:nth-child(3),
.anim-scale:nth-child(3) {
  transition-delay: 0.2s;
}

.anim-up:nth-child(4),
.anim-left:nth-child(4),
.anim-right:nth-child(4),
.anim-scale:nth-child(4) {
  transition-delay: 0.3s;
}

.anim-up:nth-child(5),
.anim-left:nth-child(5),
.anim-right:nth-child(5),
.anim-scale:nth-child(5) {
  transition-delay: 0.4s;
}

.anim-up:nth-child(6),
.anim-left:nth-child(6),
.anim-right:nth-child(6),
.anim-scale:nth-child(6) {
  transition-delay: 0.5s;
}

/* --- Button Hover Enhancements --- */
.btn {
  position: relative;
  overflow: hidden;
}

/* Gold button shimmer effect */
.btn-gold {
  position: relative;
  transition: all var(--duration) var(--ease);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 169, 110, 0.25);
}

.btn-gold:active {
  transform: scale(0.98);
}

/* Outline button enhancements */
.btn-outline,
.btn-outline--white {
  position: relative;
  transition: all var(--duration) var(--ease);
}

.btn-outline::after,
.btn-outline--white::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover::after,
.btn-outline--white:hover::after {
  width: 100%;
}

.btn-outline:hover,
.btn-outline--white:hover {
  transform: scale(1.01);
}

.btn-dark:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Text link underline slide animation */
a:not(.btn):not(.menu-link):not([class*="card"]):not([class*="footer"]) {
  position: relative;
  overflow: hidden;
}

a:not(.btn):not(.menu-link):not([class*="card"]):not([class*="footer"])::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not(.btn):not(.menu-link):not([class*="card"]):not([class*="footer"]):hover::after {
  left: 0;
}

/* --- Card Hover Enhancements --- */

/* Service cards - lift effect */
.service-card {
  transition: all var(--duration) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(45, 42, 38, 0.15);
}

/* Feature cards */
.feature-card {
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(45, 42, 38, 0.12);
}

/* Gallery items - scale and overlay */
.gallery-item,
.gallery-page-item {
  position: relative;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.gallery-item::after,
.gallery-page-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(201, 169, 110, 0.1);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover,
.gallery-page-item:hover {
  transform: scale(1.03);
}

.gallery-item:hover::after,
.gallery-page-item:hover::after {
  opacity: 1;
}

/* Blog cards - border color transition */
.blog-card {
  transition: all var(--duration) var(--ease);
  border: 1px solid transparent;
}

.blog-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Doctor and treatment cards */
.doctor-card,
.treatment-card {
  transition: all var(--duration) var(--ease);
}

.doctor-card:hover,
.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Review cards */
.review-card-lg {
  transition: all var(--duration) var(--ease);
}

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

.google-review-card {
  transition: all var(--duration) var(--ease);
}

.google-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Navigation Enhancements --- */

/* Smooth header background transition */
.site-header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  transition-duration: 0.3s;
}

/* Active nav link indicator */
.menu-link {
  position: relative;
  transition: color var(--duration) var(--ease);
}

.menu-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-link:hover::before,
.menu-link.active::before {
  width: 100%;
}

.menu-link.active {
  color: var(--color-gold);
}

/* Language switcher smooth animation */
.lang-switch {
  transition: all var(--duration) var(--ease);
}

.lang-option {
  transition: all var(--duration) var(--ease);
}

.lang-option:hover {
  background: rgba(201, 169, 110, 0.08);
  transform: translateX(4px);
}

/* --- Filter button animations --- */
.filter-btn {
  transition: all var(--duration) var(--ease);
  position: relative;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--duration) var(--ease);
}

.filter-btn.active::after,
.filter-btn:hover::after {
  width: 100%;
}

.filter-btn.active {
  color: var(--color-gold);
}

.filter-btn:hover {
  color: var(--color-gold);
}

/* --- FAQ Animations --- */
.faq-question {
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.faq-question.active + .faq-answer {
  max-height: 500px;
  opacity: 1;
}

/* --- Floating Messenger Button --- */
.msg-btn {
  transition: all var(--duration) var(--ease);
}

.msg-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.msg-btn:active {
  transform: scale(0.95);
}

/* --- Loading skeleton styles --- */
.skeleton {
  background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-bg-warm) 50%, var(--color-border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
}

/* --- Reduced motion preference --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
