/* ================================================
   AURA — main.css (Light Theme — 밝고 세련된 버전)
   ================================================ */

/* ── NAVIGATION ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all var(--ease-normal);
    background: rgba(255, 255, 255, 0.05);
    /* 기본은 투명하지만 미세한 질감 */
    backdrop-filter: blur(5px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--color-border), 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--sp-xl);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    /* 로고 사이즈 업 */
    font-weight: var(--fw-light);
    letter-spacing: 0.3em;
    /* 자간 더 넓게 */
    color: #fff;
    /* 히어로가 다크해짐에 따라 로고 화이트로 */
    text-transform: uppercase;
    transition: color var(--ease-normal);
}

#navbar.scrolled .nav-logo {
    color: var(--color-primary);
}

.nav-logo span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-2xl);
}

.nav-links a {
    font-size: var(--fs-sm);
    letter-spacing: var(--ls-wide);
    color: rgba(255, 255, 255, 0.8);
    /* 텍스트 화이트 계열로 */
    font-weight: var(--fw-medium);
    transition: color var(--ease-normal);
    position: relative;
}

#navbar.scrolled .nav-links a {
    color: var(--color-text-muted);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: width var(--ease-normal);
}

.nav-links a:hover {
    color: var(--color-secondary) !important;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta-btn:hover::after {
    width: 100%;
    /* 내부 광택 애니메이션용 */
}

/* 상담 예약 버튼 마우스 오버 시 일반 메뉴의 언더바 바 상속 방지 */
.nav-links .nav-cta-btn::after {
    display: block;
    /* 광택 효과를 위해 다시 활성화 */
    bottom: unset;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.nav-links .nav-cta-btn:hover::after {
    width: 100%;
    /* 언더바가 아니라 전체가 빛나게 */
}

.nav-cta-btn {
    padding: 0.6em 1.8em;
    background: linear-gradient(135deg, #b08850 0%, #d4a96a 50%, #b08850 100%);
    background-size: 200% 100%;
    border-radius: var(--radius-full);
    color: #fff !important;
    font-weight: var(--fw-bold) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.05em;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(176, 136, 80, 0.3);
}

.nav-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: none !important;
}

.nav-cta-btn:hover {
    background-position: 100% 0 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(176, 136, 80, 0.5);
    color: #fff !important;
}

.nav-cta-btn:hover::after {
    left: 100%;
    transition: left 0.6s ease !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--sp-xs);
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    /* 햄버거 화이트 */
    transition: all var(--ease-normal);
}

#navbar.scrolled .nav-hamburger span {
    background: var(--color-primary);
}


/* ── HERO ── */
#hero {
    position: relative;
    height: 100svh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f1215;
    /* 딥 블랙 배경 */
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% center;
    /* 영상을 살짝 왼쪽으로 배치 */
}

@media (max-width: 1024px) {
    .hero-video {
        object-position: center;
        /* 태블릿에서도 중앙 위주로 */
    }
}

@keyframes heroKenBurns {
    from {
        transform: scale(1);
        background-position: 15% center;
    }

    to {
        transform: scale(1.08);
        background-position: 18% center;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* 블랙 앤 골드 럭셔리 그라디언트 */
    background: linear-gradient(to left,
            rgba(15, 18, 21, 0.95) 0%,
            rgba(15, 18, 21, 0.6) 45%,
            rgba(15, 18, 21, 0) 100%);
}

/* ── HERO GEOMETRY ── */
.hero-geometry {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.geo-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(176, 136, 80, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 136, 80, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center;
    transform: perspective(1000px) rotateX(15deg);
    opacity: 0.8;
    animation: gridScroll 80s linear infinite;
}

@keyframes gridScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 80px;
    }
}

.geo-shape {
    position: absolute;
    border: 1px solid rgba(176, 136, 80, 0.4);
    box-shadow: 0 0 30px rgba(176, 136, 80, 0.1);
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    right: -10%;
    top: -10%;
    animation: floatCircle 25s ease-in-out infinite alternate;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    right: 15%;
    bottom: -10%;
    border-color: rgba(176, 136, 80, 0.1);
    animation: floatCircle 30s ease-in-out infinite alternate-reverse;
}

.geo-line-1 {
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(176, 136, 80, 0.25), transparent);
    top: 65%;
    left: -50%;
    transform: rotate(-12deg);
    animation: lineWave 15s ease-in-out infinite alternate;
}

@keyframes floatCircle {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-40px, 50px) scale(1.05);
    }
}

@keyframes lineWave {
    0% {
        opacity: 0.2;
        transform: rotate(-12deg) translateY(0);
    }

    100% {
        opacity: 0.6;
        transform: rotate(-10deg) translateY(30px);
    }
}

/* 히어로 아래 페이드 효과 */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin-left: auto;
    /* 우측 정렬 유지 */
    margin-right: 5%;
    /* 너무 끝에 붙지 않게 여유 공간 */
    padding: var(--sp-xl);
    text-align: right;
}

.hero-label {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--sp-lg);
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* 사이즈 축소 */
    font-weight: var(--fw-light);
    line-height: 1.2;
    color: #fff;
    margin-bottom: var(--sp-lg);
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-brand {
    display: block;
    font-size: 1.2em;
    /* 1.4em -> 1.2em 비율 축소 */
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    background: linear-gradient(to right,
            #fff 20%,
            #b08850 40%,
            #d4a96a 50%,
            #b08850 60%,
            #fff 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    margin-top: var(--sp-xs);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-title em {
    font-style: italic;
    color: var(--color-secondary);
}

.hero-subtitle {
    font-size: var(--fs-base);
    /* fs-lg -> fs-base 축소 */
    color: rgba(255, 255, 255, 0.7);
    /* 서브타이틀 밝게 */
    line-height: var(--lh-loose);
    max-width: 460px;
    /* 가독성 및 줄맞춤 최적화 */
    margin-left: auto;
    /* 우측 정렬 유지 */
    margin-bottom: var(--sp-3xl);
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
    text-align: right;
}

.hero-actions {
    display: flex;
    gap: var(--sp-lg);
    justify-content: flex-end;
    /* 버튼 오른쪽 정렬 */
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: var(--sp-4xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-xs);
    color: rgba(44, 62, 80, 0.5);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-secondary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── ABOUT ── */
#about {
    background: var(--color-bg-warm);
    padding: var(--section-pad) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5xl);
    align-items: center;
}

.about-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

.about-image-wrap:hover img {
    transform: scale(1.04);
}

.about-badge {
    position: absolute;
    bottom: var(--sp-xl);
    right: var(--sp-xl);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(176, 136, 80, 0.3);
    border-radius: var(--radius-md);
    padding: var(--sp-lg) var(--sp-xl);
    color: var(--color-text);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-badge .number {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-light);
    color: var(--color-secondary);
    display: block;
    line-height: 1;
}

.about-badge .label {
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wide);
    color: var(--color-text-muted);
    margin-top: var(--sp-2xs);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
    margin-top: var(--sp-3xl);
}

.stat-item {
    border-left: 2px solid var(--color-border);
    padding-left: var(--sp-lg);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-light);
    color: var(--color-secondary);
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: var(--sp-2xs);
}


/* ── SERVICES ── */
#services {
    background: var(--color-bg-section);
    padding: var(--section-pad) 0;
}

.services-header {
    text-align: center;
    margin-bottom: var(--sp-5xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
}

.service-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    background: var(--color-bg-warm);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-slow);
}

.service-card:hover .service-card-img {
    transform: scale(1.08);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(44, 40, 36, 0.88) 0%,
            rgba(44, 40, 36, 0.1) 50%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--sp-xl);
}

.service-card-number {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    color: rgba(255, 255, 255, 0.12);
    font-weight: var(--fw-light);
    line-height: 1;
    margin-bottom: var(--sp-xs);
}

.service-card-title {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: var(--fw-light);
    color: #fff;
    margin-bottom: var(--sp-xs);
}

.service-card-en {
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wider);
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: var(--sp-lg);
}

.service-card-desc {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--lh-normal);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-normal), opacity 0.3s ease;
    opacity: 0;
}

.service-card:hover .service-card-desc {
    max-height: 100px;
    opacity: 1;
}


/* ── GALLERY ── */
#gallery {
    background: var(--color-bg);
    padding: var(--section-pad) 0;
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--sp-4xl);
    flex-wrap: wrap;
    gap: var(--sp-xl);
}

.gallery-tabs {
    display: flex;
    gap: var(--sp-md);
}

.gallery-tab {
    padding: 0.5em 1.4em;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    transition: all var(--ease-normal);
    cursor: pointer;
    background: transparent;
}

.gallery-tab.active,
.gallery-tab:hover {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    color: #fff;
}

.compare-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-section);
}

.compare-after,
.compare-before {
    position: absolute;
    inset: 0;
}

.compare-after img,
.compare-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.compare-before {
    clip-path: inset(0 50% 0 0);
}

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: white;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: col-resize;
}

.compare-handle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: var(--fs-lg);
    color: var(--color-primary);
    flex-shrink: 0;
}

.compare-label {
    position: absolute;
    bottom: var(--sp-lg);
    padding: 0.35em 1em;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wide);
    color: var(--color-text);
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.label-before {
    left: var(--sp-lg);
}

.label-after {
    right: var(--sp-lg);
}


/* ── REVIEWS (SNS SLIDER) ── */
#reviews {
    background: var(--color-bg);
    padding: var(--section-pad) 0;
    overflow: hidden;
}

.reviews-header {
    text-align: center;
    margin-bottom: var(--sp-4xl);
}

.reviews-slider-container {
    position: relative;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 60px;
    /* 화살표 버튼 공간 */
}

.reviews-slider {
    overflow: hidden;
    padding: 20px 0;
}

.reviews-track {
    display: flex;
    gap: var(--sp-xl);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reviews-track .review-card {
    flex: 0 0 calc(33.333% - (var(--sp-xl) * 2 / 3));
    /* 기본 3개 노출 */
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-img-wrap {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.review-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-body {
    padding: var(--sp-lg);
}

.review-user {
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    color: var(--color-text);
    margin-bottom: var(--sp-xs);
}

.review-text {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--sp-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.5em;
    /* 텍스트 높이 고정으로 균형 유지 */
}

.review-tags {
    font-size: 0.7rem;
    color: var(--color-secondary);
    font-weight: var(--fw-medium);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.slider-arrow:hover {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

@media (max-width: 1024px) {
    .reviews-track .review-card {
        flex: 0 0 calc(50% - (var(--sp-xl) / 2));
        /* 2개 노출 */
    }
}

@media (max-width: 640px) {
    .reviews-track .review-card {
        flex: 0 0 100%;
        /* 1개 노출 */
    }

    .reviews-slider-container {
        padding: 0 40px;
    }
}


/* ── DOCTORS ── */
#doctors {
    background: var(--color-bg-blush);
    padding: var(--section-pad) 0;
}

.doctors-header {
    text-align: center;
    margin-bottom: var(--sp-5xl);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2xl);
}

.doctor-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease-normal), box-shadow var(--ease-normal);
    border: 1px solid var(--color-border);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.doctor-photo {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s var(--ease-slow);
}

.doctor-card:hover .doctor-photo img {
    transform: scale(1.05);
}

.doctor-info {
    padding: var(--sp-xl);
}

.doctor-name {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-light);
    color: var(--color-text);
    margin-bottom: var(--sp-xs);
}

.doctor-title {
    font-size: var(--fs-sm);
    color: var(--color-secondary);
    letter-spacing: var(--ls-wide);
    margin-bottom: var(--sp-lg);
}

.doctor-specs {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

.doctor-spec {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    padding-left: var(--sp-md);
    border-left: 2px solid var(--color-accent);
    line-height: var(--lh-normal);
}


/* ── CTA SECTION ── */
#cta {
    padding: var(--section-pad) 0;
    text-align: center;
    background-image: url('../assets/images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 18, 21, 0.9) 0%, rgba(44, 50, 56, 0.7) 100%);
    z-index: 1;
}

#cta .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: var(--fw-light);
    color: #fff;
    /* 다크 배경에 맞춰 화이트로 */
    margin-bottom: var(--sp-lg);
    line-height: var(--lh-tight);
}

.cta-subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--sp-3xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--sp-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--sp-4xl);
}

.contact-row {
    display: flex;
    gap: var(--sp-4xl);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-xs);
}

.contact-label {
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wider);
    color: var(--color-secondary);
    text-transform: uppercase;
}

.contact-value {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: #fff;
    font-weight: var(--fw-light);
}


/* ── FLOATING CTA ── */
#floating-cta {
    position: fixed;
    bottom: var(--sp-xl);
    right: var(--sp-xl);
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--ease-normal);
    pointer-events: none;
}

#floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 0.85em 1.8em;
    background: linear-gradient(135deg, #b08850 0%, #d4a96a 50%, #b08850 100%);
    background-size: 200% 100%;
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wide);
    box-shadow: var(--shadow-gold);
    transition: all var(--ease-normal);
    position: relative;
    overflow: hidden;
}

.floating-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: btnShine 4s infinite;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.floating-btn:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(176, 136, 80, 0.45);
}

.floating-btn:hover {
    background: var(--color-secondary-lt);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(176, 136, 80, 0.45);
}


/* ── MODAL ── */
#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 50, 56, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease-normal);
}

#modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-4xl);
    max-width: 520px;
    max-height: 90vh;
    /* 화면 높이의 90% 제한 */
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: translateY(30px) scale(0.97);
    transition: transform var(--ease-spring);
    position: relative;
    overflow-y: auto;
    /* 내용이 길면 스크롤 생성 */
}

/* 모바일 전용 모달 스타일 보강 */
@media (max-width: 768px) {
    #modal-overlay {
        padding: var(--sp-md);
    }

    .modal-box {
        padding: var(--sp-2xl) var(--sp-xl);
        max-height: 95vh;
    }

    .modal-title {
        font-size: var(--fs-xl);
    }
}

#modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-light);
    color: var(--color-text);
    margin-bottom: var(--sp-xs);
}

.modal-subtitle {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-3xl);
}

.form-group {
    margin-bottom: var(--sp-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85em var(--sp-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    color: var(--color-text);
    background: var(--color-bg-warm);
    transition: border-color var(--ease-normal), box-shadow var(--ease-normal);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(176, 136, 80, 0.15);
    background: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-close {
    position: absolute;
    top: var(--sp-xl);
    right: var(--sp-xl);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--fs-xl);
    transition: all var(--ease-normal);
    border: 1px solid var(--color-border);
}

.modal-close:hover {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}


/* ── FOOTER ── */
#footer {
    background: linear-gradient(135deg,
            #a67c37 0%,
            #e2c08d 25%,
            #f9e8ba 50%,
            #e2c08d 75%,
            #a67c37 100%);
    background-size: 400% auto;
    position: relative;
    padding: var(--sp-2xl) 0 var(--sp-lg);
    overflow: hidden;
    animation: goldShimmer 15s ease infinite;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes goldShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
    background-size: 200% 100%;
    animation: lightSweep 10s infinite ease-in-out;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

@keyframes lightSweep {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

#footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.3;
}

.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: var(--sp-2xl);
    margin-bottom: var(--sp-xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--color-primary);
    /* 다크 포인트 */
    letter-spacing: var(--ls-wider);
    margin-bottom: var(--sp-lg);
}

.footer-logo span {
    color: #fff;
}

.footer-desc {
    font-size: var(--fs-xs);
    color: rgba(68, 51, 17, 0.9);
    line-height: 1.6;
    max-width: 260px;
}

.footer-heading {
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: #443311;
    font-weight: var(--fw-bold);
    margin-bottom: var(--sp-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.footer-links a {
    font-size: var(--fs-sm);
    color: rgba(68, 51, 17, 0.8);
    transition: all var(--ease-normal);
}

.footer-links a:hover {
    color: #000;
    transform: translateX(5px);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(68, 51, 17, 0.15);
    padding-top: var(--sp-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.footer-copy {
    font-size: 10px;
    color: rgba(68, 51, 17, 0.6);
}


/* ── BUTTONS (재정의: 라이트 테마) ── */
.btn-primary {
    background: linear-gradient(135deg, #b08850 0%, #d4a96a 50%, #b08850 100%);
    background-size: 200% 100%;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all var(--ease-normal);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    background-position: 100% 0;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-ghost {
    border: 1px solid rgba(44, 62, 80, 0.4);
    color: var(--color-text);
}

.btn-ghost:hover {
    background: rgba(44, 62, 80, 0.08);
    border-color: rgba(44, 62, 80, 0.7);
}

/* 히어로 및 CTA 등 다크 섹션 내의 고스트 버튼 시인성 보강 */
.hero-actions .btn-ghost,
.cta-actions .btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.05);
}

.hero-actions .btn-ghost:hover,
.cta-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-md);
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-content {
        text-align: center;
        margin-right: auto;
        margin-left: auto;
    }

    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-video {
        object-position: center;
        /* 얼굴이 보이도록 중앙 배치 */
    }

    .hero-title {
        word-break: keep-all;
    }


    .compare-wrap {
        aspect-ratio: 1/1;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
}