/* ========================
   HERO SECTION (메인 페이지)
   ======================== */
.hero {
    height: 95vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 5% 120px;
    cursor: grab;
    user-select: none;
}

.hero:active {
    cursor: grabbing;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    transition: background 0.8s ease;
}

/* 슬라이드 2·3: 더 불투명한 흰색 오버레이 */
.hero.hero--opaque::before {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.75) 55%, rgba(255, 255, 255, 0.1) 100%);
}


.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, width 0.3s, border-radius 0.3s;
    position: relative;
    overflow: hidden;
}

.hero-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    transform: scaleX(0);
    transform-origin: left;
}

.hero-dot.active {
    background-color: var(--color-point);
    width: 30px;
    border-radius: 10px;
}

.hero-dot.active::after {
    animation: dotProgress 8s linear forwards;
}

@keyframes dotProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Surgery Hero Content (Slide 1) */
.hero-content-surgery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 7% 60px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-content-surgery.hero-content--active {
    opacity: 1;
    pointer-events: auto;
}

.surgery-left {
    flex: 1;
    min-width: 0;
    padding-right: 40px;
}

.surgery-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: var(--color-point);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.surgery-title-1day {
    font-size: 9rem !important;
    font-weight: 900 !important;
    color: #1a56ae !important;
    font-style: italic !important;
    letter-spacing: -4px !important;
    line-height: 0.9 !important;
    margin-bottom: 10px !important;
}

.surgery-sub-copy {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--color-point);
    margin: 8px 0 36px 4px;
}

.surgery-title-system {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.surgery-tag-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.surgery-tag-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.surgery-tag {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-main);
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 16px 28px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.surgery-tag:hover {
    background: var(--color-main);
    color: #fff;
    border-color: var(--color-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}

/* Surgery Steps — Vertical Card Style */
.surgery-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 180px;
    gap: 4px;
}

.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 140px;
    height: 140px;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    box-shadow: none;
}

.step-badge {
    display: none;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c2c2c;
}

.step-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: -0.3px;
}

.step-arrow {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
    opacity: 0.75;
}

/* Surgery Process — scoped to hero only */
.surgery-process {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
}

.surgery-process .process-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    width: 270px;
    border: none;
}

.surgery-process .process-item i {
    font-size: 1.8rem;
    color: var(--color-point);
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.surgery-process .process-item p {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-main);
    margin: 0;
}

.surgery-process .process-number {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--color-point);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.surgery-process .process-connector {
    width: 2px;
    height: 20px;
    background: rgba(197, 164, 126, 0.4);
    margin: 0 auto;
    position: relative;
}

.surgery-process .process-connector::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid rgba(197, 164, 126, 0.4);
}

/* Main Hero Content (Slides 2 & 3) */
.hero-content {
    position: absolute;
    bottom: 120px;
    left: 5%;
    z-index: 2;
    max-width: 650px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-content.hero-content--active {
    opacity: 1;
    pointer-events: auto;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: #333;
}

.hero p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 48px;
    font-weight: 400;
}

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

.btn {
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-main);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-point);
    box-shadow: 0 10px 20px rgba(197, 164, 126, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-main);
    color: var(--color-main);
}

.btn-outline:hover {
    background-color: var(--color-main);
    color: white;
}

/* ========================
   SERVICES & BENTO GRID
   ======================== */
.section-services {
    padding: 120px 5%;
    margin: 0 auto;
    max-width: 1600px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 24px;
}

.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-point);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.card-icon {
    font-size: 2rem;
    color: var(--color-point);
    flex-shrink: 0;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0;
    font-weight: 700;
}

.card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

.card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--color-point);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.card-link:hover {
    text-decoration: underline;
}

.col-span-2 {
    grid-column: span 2;
    background-color: #f2f2f2;
}

.row-span-2 {
    grid-row: span 2;
}

/* ========================
   TRUST BANNER
   ======================== */
.trust-banner {
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 22px 5%;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
}

.trust-item i {
    color: var(--color-point);
    font-size: 1.5rem;
}

/* ========================
   DOCTOR SECTION
   ======================== */
.doctor-section {
    background-color: var(--color-white);
    padding: 120px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.doctor-img {
    width: 450px;
    height: 600px;
    border-radius: 200px 200px 24px 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

.doctor-info {
    max-width: 600px;
}

.doctor-label {
    color: var(--color-point);
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.doctor-info h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    line-height: 1.1;
}

.history-list li {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.history-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-point);
    border-radius: 50%;
}

/* ========================
   CONTACT SECTION
   ======================== */
.contact-section {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.map-area {
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 300px;
}

.info-area h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.info-label {
    font-weight: 700;
    color: var(--color-main);
}

.info-value {
    color: #555;
}

/* ========================
   RESPONSIVE - INDEX
   ======================== */

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctor-section {
        flex-direction: column;
        text-align: center;
    }

    .doctor-img {
        width: 100%;
        max-width: 400px;
        height: 500px;
    }

    .history-list {
        text-align: left;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .doctor-section {
        flex-direction: column;
    }

    /* Hero gradient: vertical on mobile */
    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.7) 40%,
            rgba(255, 255, 255, 0.2) 100%
        );
    }

    .hero.hero--opaque::before {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.88) 50%,
            rgba(255, 255, 255, 0.4) 100%
        );
    }

    .hero {
        padding: 0 5% 70px;
    }

    /* Surgery slide: vertical + horizontal center */
    .hero-content-surgery {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 160px;
        padding-bottom: 60px;
        padding-left: 6%;
        padding-right: 6%;
        gap: 16px;
        text-align: center;
    }

    .surgery-left {
        padding-right: 0;
        width: 100%;
        text-align: center;
    }

    .surgery-title-1day {
        font-size: 4.5rem !important;
        letter-spacing: -2px !important;
        margin-bottom: 4px !important;
    }

    .surgery-title-system {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .surgery-sub-copy {
        font-size: 0.55rem;
        letter-spacing: 2.5px;
        margin: 4px 0 14px 0;
    }

    .surgery-tag-list {
        gap: 8px;
    }

    .surgery-tag-row {
        padding-left: 0 !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .surgery-tag {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .surgery-steps {
        display: none;
    }

    /* 슬라이드 2·3 콘텐츠: 슬라이드 1과 동일하게 전체 영역 채우고 중앙 정렬 */
    .hero-content {
        top: 0;
        left: 0;
        bottom: auto;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 100px 8% 60px;
        max-width: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 28px;
    }

    .hero-btns {
        justify-content: center;
    }

    .map-area iframe {
        width: 100% !important;
        height: 280px !important;
    }

    .map-area {
        min-height: 280px;
    }

    .trust-banner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
        padding: 20px 5%;
        justify-items: start;
    }

    .trust-item {
        font-size: 0.88rem;
        gap: 8px;
        word-break: keep-all;
    }

    .trust-item i {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .doctor-section {
        padding: 80px 5%;
        gap: 40px;
    }

    .doctor-img {
        max-width: 300px;
        height: 400px;
    }

    .section-services {
        padding: 80px 5%;
    }

    .section-services .section-header h2 {
        font-size: 1.8rem;
    }

    .section-services .section-header p {
        font-size: 0.95rem;
    }

    .card h3 {
        font-size: 1.15rem;
    }

    .card p {
        font-size: 0.88rem;
    }

    .doctor-info h2 {
        font-size: 2.2rem;
        margin-bottom: 24px;
    }

    .doctor-img {
        max-width: 260px;
        height: 340px;
    }

    .contact-section {
        padding: 60px 5%;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .col-span-2,
    .row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .card {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .surgery-title-1day {
        font-size: 3.5rem !important;
    }

    .surgery-title-system {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .trust-banner {
        gap: 12px 8px;
        padding: 18px 5%;
    }

    .section-services {
        padding: 60px 5%;
    }

    .doctor-section {
        padding: 60px 5%;
    }

    .contact-section {
        padding: 50px 5%;
    }
}

/* ========================
   SCROLL REVEAL
   ======================== */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.28s; }
.delay-4 { transition-delay: 0.38s; }

/* Trust banner 아이템 스태거 (nth-child) */
.trust-banner .trust-item:nth-child(1) { transition-delay: 0s; }
.trust-banner .trust-item:nth-child(2) { transition-delay: 0.12s; }
.trust-banner .trust-item:nth-child(3) { transition-delay: 0.24s; }
.trust-banner .trust-item:nth-child(4) { transition-delay: 0.36s; }

/* ========================
   HERO SLIDE 1 ENTRANCE ANIMATION
   ======================== */
@keyframes heroItemFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content-surgery .surgery-title-1day,
.hero-content-surgery .surgery-title-system,
.hero-content-surgery .surgery-sub-copy,
.hero-content-surgery .surgery-tag-list,
.hero-content-surgery .surgery-steps {
    opacity: 0;
}

.hero-content-surgery.hero-anim-ready .surgery-title-1day {
    animation: heroItemFadeUp 0.7s ease both 0.2s;
}

.hero-content-surgery.hero-anim-ready .surgery-title-system {
    animation: heroItemFadeUp 0.65s ease both 0.42s;
}

.hero-content-surgery.hero-anim-ready .surgery-sub-copy {
    animation: heroItemFadeUp 0.6s ease both 0.62s;
}

.hero-content-surgery.hero-anim-ready .surgery-tag-list {
    animation: heroItemFadeUp 0.65s ease both 0.78s;
}

.hero-content-surgery.hero-anim-ready .surgery-steps {
    animation: heroItemFadeUp 0.65s ease both 0.55s;
}
