:root {
    /* Color Palette */
    --deep-navy: #1A2B4C;
    --warm-white: #F8F9FA;
    --metallic-silver: #A8B1C2;
    --text-dark: #333333;
    --point-blue: #2A5B9E; /* 포인트 컬러 추가 */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--warm-white);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth; /* 부드러운 스크롤 이동 */
}

/* 공통 스타일 */
.section {
    position: relative;
    width: 100%;
    padding: 120px 0;
    /* display: flex; align-items: center; justify-content: center; */ /* 필요에 따라 활성화 */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: #F4F6F9; }
.text-center { text-align: center; width: 100%; }

.section-header { margin-bottom: 60px; }
.section-subtitle { color: var(--point-blue); font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; font-weight: 600; }
.section-title { font-size: 2.5rem; font-weight: 700; line-height: 1.4; color: var(--text-dark); }

/* --- NEW: Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background-color: transparent; /* 초기엔 투명 */
    color: #fff; /* 초기엔 흰색 텍스트 */
}

/* 스크롤 시 헤더 스타일 변경 (JS로 클래스 추가) */
.site-header.header-scrolled {
    background-color: rgba(26, 43, 76, 0.95); /* 딥 네이비 반투명 배경 */
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--metallic-silver);
}

.header-cta {
    background-color: var(--point-blue);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.header-cta:hover {
    background-color: #1e447a;
}


/* --- Section 1: Hero --- */
#hero {
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    margin-top: 0; /* 헤더가 fixed이므로 마진 상쇄 방지 */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%; /* 패럴랙스 높이 */
    background-size: cover; background-position: center; z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 43, 76, 0.6); /* 딥 네이비 오버레이 */
    z-index: -1;
}

.hero-content { text-align: center; z-index: 1; margin-top: 60px;}
.sub-title { font-size: 1.2rem; font-weight: 400; color: var(--metallic-silver); margin-bottom: 1rem; opacity: 0; transform: translateY(30px); }
.main-title { font-size: 3.5rem; font-weight: 700; line-height: 1.4; opacity: 0; transform: translateY(50px); }


/* --- Section 2: About Doctor (이미지 스타일 추가) --- */
#about { padding: 150px 0; }
.about-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 80px; }
.about-image { flex: 1; opacity: 0; transform: translateX(-50px); }

/* 이미지 태그 스타일 */
.about-image img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover; /* 비율 유지하며 꽉 채우기 */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(26, 43, 76, 0.15);
}

.about-text { flex: 1; }
.about-text .section-title { margin-bottom: 50px; }
.doctor-name { font-size: 1.5rem; margin-bottom: 24px; color: var(--deep-navy); border-bottom: 2px solid var(--deep-navy); padding-bottom: 12px; display: inline-block; }
.doctor-name strong { font-size: 2.2rem; }
.doctor-history { list-style: none; }
.history-item { font-size: 1.1rem; color: #444; margin-bottom: 16px; position: relative; padding-left: 18px; opacity: 0; transform: translateY(20px); }
.history-item::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background-color: var(--deep-navy); border-radius: 50%; }


/* --- Section 3: Departments --- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; perspective: 1000px; }
.dept-card { background: #ffffff; padding: 50px 30px; border-radius: 24px; box-shadow: 0 15px 35px rgba(26, 43, 76, 0.06); transform-style: preserve-3d; opacity: 0; transform: scale(0.8); }
.dept-icon { width: 70px; height: 70px; background-color: var(--warm-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--deep-navy); font-weight: 700; font-size: 0.9rem; border: 1px solid #e2e6ed; transform: translateZ(40px); }
.dept-name { font-size: 1.4rem; color: var(--deep-navy); margin-bottom: 16px; transform: translateZ(30px); }
.dept-desc { color: #666; line-height: 1.6; font-size: 1rem; word-break: keep-all; transform: translateZ(20px); }


/* --- Section 4: Core Competency (가로 스크롤) --- */
#core-competency { background-color: var(--deep-navy); color: var(--warm-white); overflow: hidden; padding: 0; }
.pin-wrap-container { width: 100%; height: 100vh; display: flex; align-items: center; }
.pin-wrap { display: flex; height: 100%; align-items: center; padding: 0 5vw; will-change: transform; }
.horizontal-panel { display: flex; flex-direction: column; justify-content: center; height: 60vh; padding: 0 30px; }
.title-panel { flex: 0 0 40vw; }
.content-panel { flex: 0 0 35vw; }
#core-competency .section-subtitle { color: var(--metallic-silver); }
#core-competency .section-title { color: var(--warm-white); font-size: 3rem; margin-bottom: 20px; }
.section-desc { color: #A8B1C2; font-size: 1.2rem; }
.panel-box { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 50px 40px; height: 100%; display: flex; flex-direction: column; justify-content: center; backdrop-filter: blur(10px); transition: transform 0.4s ease, background 0.4s ease; }
.panel-box:hover { transform: translateY(-15px); background: rgba(255, 255, 255, 0.08); }
.panel-icon { font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, 0.15); margin-bottom: 20px; font-family: 'Arial', sans-serif; }
.panel-box h4 { font-size: 1.8rem; margin-bottom: 20px; color: var(--warm-white); }
.panel-box p { font-size: 1.1rem; color: #D1D5DB; line-height: 1.6; word-break: keep-all; }


/* --- Section 5: Process --- */
.process-container { max-width: 900px; }
.process-timeline { position: relative; margin-top: 60px; padding: 20px 0; }
.timeline-line-bg { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background-color: #E5E7EB; transform: translateX(-50%); }
.timeline-line-progress { position: absolute; left: 50%; top: 0; width: 2px; height: 0; background-color: var(--deep-navy); transform: translateX(-50%); z-index: 1; }
.process-step { position: relative; width: 50%; margin-bottom: 60px; opacity: 0; }
.process-step:last-child { margin-bottom: 0; }
.process-step.left { left: 0; padding-right: 50px; text-align: right; transform: translateX(-30px); }
.process-step.right { left: 50%; padding-left: 50px; text-align: left; transform: translateX(30px); }
.step-node { position: absolute; top: 0; width: 40px; height: 40px; background-color: var(--warm-white); border: 3px solid var(--deep-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--deep-navy); z-index: 2; box-shadow: 0 0 0 5px #ffffff; }
.process-step.left .step-node { right: -20px; }
.process-step.right .step-node { left: -20px; }
.step-content { background: #F8F9FA; padding: 30px; border-radius: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.step-content h4 { color: var(--deep-navy); font-size: 1.4rem; margin-bottom: 12px; }
.step-content p { color: #666; line-height: 1.6; word-break: keep-all; }


/* --- Section 6: Clinic Interior (Card Stacking - 이미지 스타일 추가) --- */
#interior { background-color: #F8F9FA; padding: 120px 0 200px 0; }
.stack-gallery { display: flex; flex-direction: column; gap: 40px; position: relative; }
.stack-card { position: sticky; top: 15vh; height: 70vh; background: #ffffff; border-radius: 40px; box-shadow: 0 -20px 50px rgba(26, 43, 76, 0.08); overflow: hidden; transform-origin: top center; }
#card1 { top: 15vh; z-index: 1; } #card2 { top: 18vh; z-index: 2; } #card3 { top: 21vh; z-index: 3; } #card4 { top: 24vh; z-index: 4; }
.card-content { display: flex; height: 100%; }
.card-text { flex: 1; padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.card-text h3 { font-size: 2.2rem; color: var(--deep-navy); margin-bottom: 24px; font-weight: 700; }
.card-text p { font-size: 1.15rem; color: #555; line-height: 1.7; word-break: keep-all; }

/* 카드 내 이미지 영역 스타일 */
.card-image {
    flex: 1.3;
    height: 100%;
    overflow: hidden; /* 이미지가 둥근 모서리를 넘치지 않게 */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 영역에 꽉 차게 */
    transition: transform 0.6s ease;
}
/* 카드에 마우스 올리면 이미지가 살짝 확대되는 효과 */
.stack-card:hover .card-image img {
    transform: scale(1.05);
}

@media (max-width: 992px) { .card-content { flex-direction: column; } .card-text { padding: 40px; flex: auto; } .card-image { flex: auto; height: 300px; } .stack-card { height: auto; min-height: 600px; top: 10vh !important; } }


/* --- Section 7: Location (Bento Box - 이미지 스타일 추가) --- */
#location { background-color: #F4F6F9; padding: 120px 0; position: relative; z-index: 1; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.bento-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 24px; width: 100%; }
.bento-item { background: #ffffff; border-radius: 30px; padding: 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); opacity: 0; transform: translateY(40px); }

/* 지도 플레이스홀더 스타일 */
.bento-map { grid-column: 1 / 2; grid-row: 1 / 3; padding: 0; overflow: hidden; min-height: 500px; display: flex; }
.map-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--deep-navy); font-size: 1.2rem; font-weight: 600; }

.bento-title { color: var(--deep-navy); font-size: 1.5rem; margin-bottom: 24px; border-bottom: 2px solid #F4F6F9; padding-bottom: 16px; }
.bento-contact { display: flex; flex-direction: column; justify-content: center; }
.bento-address { font-size: 1.1rem; color: #444; line-height: 1.6; margin-bottom: 20px; }
.bento-address strong { font-size: 1.2rem; color: var(--deep-navy); }
.bento-phone p { font-size: 1.3rem; font-weight: 700; color: var(--deep-navy); margin-bottom: 5px; }
.bento-phone span { font-size: 1rem; color: var(--metallic-silver); margin-right: 8px; }
.time-list { list-style: none; margin-bottom: 20px; }
.time-list li { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; color: #333; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #e2e6ed; }
.time-list li:last-child { border-bottom: none; }
.time-list span { color: #666; font-weight: 500; }
.time-list strong { color: var(--deep-navy); font-size: 1.15rem; }
.time-notice { font-size: 0.95rem; color: #e74c3c; font-weight: 600; }


/* --- Section 8: Mega Footer --- */
.site-footer { background-color: var(--deep-navy); color: var(--metallic-silver); padding: 150px 0 60px 0; position: relative; z-index: 0; }
.footer-container { display: flex; flex-direction: column; }
.footer-mega-text { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 100px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-mega-text h2 { color: var(--warm-white); font-size: 4rem; font-weight: 700; line-height: 1.2; letter-spacing: -2px; }
.footer-cta-btn { display: inline-flex; align-items: center; background-color: var(--warm-white); color: var(--deep-navy); padding: 20px 40px; border-radius: 50px; font-size: 1.2rem; font-weight: 700; text-decoration: none; transition: all 0.3s ease; }
.footer-cta-btn .arrow { margin-left: 10px; transition: transform 0.3s ease; }
.footer-cta-btn:hover { background-color: #d1d6e0; transform: translateY(-5px); }
.footer-cta-btn:hover .arrow { transform: translateX(5px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-logo { color: var(--warm-white); font-size: 1.8rem; margin-bottom: 12px; }
.brand-desc { font-size: 1.1rem; color: var(--metallic-silver); }
.col-title { color: var(--warm-white); font-size: 1.2rem; margin-bottom: 24px; font-weight: 600; }
.big-phone { font-size: 2rem; color: var(--warm-white); font-weight: 700; margin-bottom: 12px; letter-spacing: -1px; }
.address-text { font-size: 1rem; line-height: 1.6; }
.links-col { display: flex; flex-direction: column; gap: 16px; }
.links-col a { color: var(--metallic-silver); text-decoration: none; font-size: 1rem; transition: color 0.3s ease; }
.links-col a:hover { color: var(--warm-white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.9rem; }
.biz-info span { display: inline-block; margin-right: 20px; position: relative; color: rgba(168, 177, 194, 0.8); }
.biz-info span:not(:last-child)::after { content: ''; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 1px; height: 12px; background-color: rgba(255, 255, 255, 0.15); }
.copyright p { color: rgba(168, 177, 194, 0.5); }

/* 반응형 미디어 쿼리 (예시) */
@media (max-width: 1024px) {
    .main-title { font-size: 2.5rem; }
    .about-wrapper, .bento-grid, .footer-mega-text, .footer-grid { flex-direction: column; grid-template-columns: 1fr; }
    .footer-mega-text h2 { font-size: 2.5rem; margin-bottom: 30px; }
    .nav-menu { display: none; /* 모바일 메뉴는 별도 구현 필요 */ }
    .bento-map { grid-row: auto; min-height: 300px; }
}