﻿/* Hero Slider */
.hero-slider {
    width: 100%;
    max-width: 1240px;
    height: 550px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 80%;
}

.slide-05 img {
    object-position: center 63%;
}

/* Slide Overlay - 하단 그라데이션 */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* Slide Text */
.slide-text {
    position: absolute;
    bottom: 60px;
    left: 55px;
    z-index: 5;
}

.slide-text .slide-sub {
    color: #e8b4b8;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 10px 3px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide-text p {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    text-shadow:
        1px 1px 3px rgba(0,0,0,0.6),
        0 0 15px rgba(0,0,0,0.3);
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.3;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-btn:hover {
    background: rgba(255,255,255,1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #e8b4b8;
}

/* Intro Section */
.intro-section {
    padding: 60px 20px;
    background: #fff;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 10px;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-text {
    flex: 1;
    min-width: 0;
    word-break: keep-all;
}

.intro-text h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.intro-name {
    font-size: 20px;
    color: #c9979b;
    margin-bottom: 25px;
}

.intro-name strong {
    font-size: 24px;
    color: #b88589;
}

.intro-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
}

.intro-highlight {
    color: #c9979b;
    font-size: 17px;
}

.intro-image {
    flex-shrink: 0;
    width: 420px;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #f5dfe1, #e8b4b8);
    padding: 8px;
    box-shadow:
        0 20px 50px rgba(201, 151, 155, 0.3),
        0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-15px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
    outline: none;
    position: relative;
}

.intro-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #e8b4b8, #f5dfe1, #c9979b, #e8b4b8);
    border-radius: 18px;
    z-index: -1;
}

.intro-image:hover {
    transform: translateY(-22px);
    box-shadow:
        0 30px 60px rgba(201, 151, 155, 0.4),
        0 15px 30px rgba(0,0,0,0.12);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Services Section */
.services-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    text-align: center;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(201, 151, 155, 0.25);
}

.service-icon {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-card h3 {
    font-size: 22px;
    color: #c9979b;
    margin: 15px 0 10px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    padding: 0 15px 20px;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 60px 20px;
    background: url('/images/baner01.png') center bottom no-repeat, #f5dfe1;
    background-size: cover;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 20px;
}

.contact-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    color: #555;
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-info p span {
    display: inline-block;
    font-weight: 600;
    color: #c9979b;
    min-width: 80px;
    margin-right: 10px;
}

.contact-info .phone {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.btn-contact {
    display: inline-block;
    padding: 15px 40px;
    background: #c9979b;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    transition: background 0.3s;
    margin-bottom: 15px;
}

.btn-contact:hover {
    background: #b88589;
}

.contact-note {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
    margin-top: 15px;
    background: rgba(255,255,255,0.8);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* Service Card Button */
.btn-more {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid #c9979b;
    color: #c9979b;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-more:hover {
    background: #c9979b;
    color: #fff;
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.service-modal.active {
    display: flex;
}

.service-modal .modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.service-modal .modal-close:hover {
    color: #333;
}

.service-modal h2 {
    color: #c9979b;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    padding-right: 30px;
}

.service-modal p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-modal ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-modal ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    border-bottom: 1px solid #eee;
}

.service-modal ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #e8b4b8;
    border-radius: 50%;
}

.service-modal .modal-note {
    color: #999;
    font-size: 14px;
    text-align: center;
    margin-bottom: 0;
}

/* Inquiry Banner */
.inquiry-banner {
    background: linear-gradient(135deg, #c9979b 0%, #e8b4b8 100%);
    padding: 30px 20px;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(201, 151, 155, 0.3);
}

.inquiry-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.inquiry-banner-text {
    color: #fff;
    font-size: 18px;
    margin: 0;
    text-align: center;
}

.inquiry-banner-text strong {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.inquiry-banner-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.inquiry-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #fff;
    color: #c9979b;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.inquiry-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background: #fdf8f8;
}

.inquiry-banner-btn.kakao-btn {
    background: #FEE500;
    color: #3C1E1E;
}

.inquiry-banner-btn.kakao-btn:hover {
    background: #F5DC00;
}

/* ================================
   모바일 반응형 스타일
================================ */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    /* Hero Slider */
    .hero-slider {
        height: 300px;
        margin: 20px auto;
        border-radius: 15px;
    }

    .slide-text {
        bottom: 35px;
        left: 25px;
    }

    .slide-text .slide-sub {
        font-size: 11px;
        letter-spacing: 3px;
        margin-bottom: 6px;
    }

    .slide-text p {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Intro Section */
    .intro-section {
        padding: 40px 20px;
        margin: 20px auto;
    }

    .intro-content {
        flex-direction: column;
        gap: 30px;
    }

    .intro-text {
        width: 100%;
        max-width: 100%;
    }

    .intro-text h2 {
        font-size: 22px;
        text-align: center;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .intro-name {
        font-size: 16px;
        text-align: center;
    }

    .intro-name strong {
        font-size: 20px;
    }

    .intro-desc {
        font-size: 15px;
        text-align: center;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 태블릿에서 br 태그 무시 - 자연스러운 줄바꿈 */
    .intro-desc br {
        display: none;
    }

    .intro-image {
        width: 280px;
        height: 370px;
        margin: 0 auto;
        order: -1;
        padding: 6px;
        border-radius: 14px;
    }
    .intro-image img {
        border-radius: 10px;
    }

    /* Services Section */
    .services-section {
        padding: 30px 15px;
        gap: 20px;
    }

    .service-card {
        width: 100%;
        max-width: 350px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    /* Contact Section */
    .contact-section {
        padding: 40px 20px;
        margin: 20px auto;
        border-radius: 15px;
    }

    .contact-section h2 {
        font-size: 22px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .contact-info .phone {
        font-size: 18px;
    }

    /* Service Modal */
    .service-modal .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .service-modal .modal-close {
        top: 12px;
        right: 12px;
        font-size: 28px;
    }

    .service-modal h2 {
        font-size: 22px;
        padding-right: 25px;
    }

    /* Inquiry Banner */
    .inquiry-banner {
        padding: 25px 15px;
        margin: 20px auto;
    }

    .inquiry-banner-content {
        flex-direction: column;
        gap: 20px;
    }

    .inquiry-banner-text {
        font-size: 16px;
    }

    .inquiry-banner-buttons {
        justify-content: center;
    }

    .inquiry-banner-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    /* Hero Slider */
    .hero-slider {
        height: 220px;
        margin: 15px auto;
        border-radius: 12px;
    }

    .slide-text {
        bottom: 25px;
        left: 15px;
    }

    .slide-text .slide-sub {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 4px;
    }

    .slide-text p {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* Intro Section */
    .intro-section {
        padding: 30px 15px;
        margin: 15px auto;
        border-radius: 10px;
    }

    .intro-text {
        width: 100%;
        max-width: 100%;
    }

    .intro-text h2 {
        font-size: 18px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .intro-name {
        font-size: 14px;
    }

    .intro-name strong {
        font-size: 18px;
    }

    .intro-desc {
        font-size: 14px;
        line-height: 1.7;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 모바일에서 br 태그 무시 - 자연스러운 줄바꿈 */
    .intro-desc br {
        display: none;
    }

    .intro-image {
        width: 250px;
        height: 330px;
        padding: 5px;
        border-radius: 12px;
    }
    .intro-image img {
        border-radius: 9px;
    }

    /* Services Section */
    .services-section {
        padding: 20px 10px;
    }

    .service-card {
        width: 100%;
    }

    .service-icon {
        height: 120px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 13px;
    }

    /* Contact Section */
    .contact-section {
        padding: 30px 15px;
    }

    .contact-section h2 {
        font-size: 20px;
    }

    .btn-contact {
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Service Modal */
    .service-modal .modal-content {
        padding: 25px 15px;
    }

    .service-modal h2 {
        font-size: 20px;
    }

    .service-modal p {
        font-size: 14px;
    }

    .service-modal ul li {
        font-size: 14px;
    }

    /* Inquiry Banner */
    .inquiry-banner {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .inquiry-banner-text {
        font-size: 14px;
    }

    .inquiry-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .inquiry-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   스크롤 애니메이션
================================ */

/* 초기 상태 - 숨김 */
.anim-hidden {
    opacity: 0;
    visibility: hidden;
}

/* 텍스트 아래에서 올라오기 */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 왼쪽에서 슬라이드 */
.anim-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 오른쪽에서 슬라이드 (사진용) */
.anim-slide-right {
    opacity: 0;
    transform: translateX(60px) rotate(3deg);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-slide-right.animated {
    opacity: 1;
    transform: translateX(0) rotate(0deg) translateY(-15px);
}

/* 스케일 업 (서비스카드용) */
.anim-scale-up {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-scale-up.animated {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 아래에서 페이드 (배너용) */
.anim-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 텍스트 줄별 reveal */
.anim-text-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-text-reveal.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 딜레이 유틸리티 */
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }
.anim-delay-6 { transition-delay: 0.6s; }
.anim-delay-7 { transition-delay: 0.7s; }
.anim-delay-8 { transition-delay: 0.8s; }

/* 히어로 슬라이더 등장 */
.hero-slider.anim-fade-up {
    transform: translateY(30px) scale(0.98);
}
.hero-slider.anim-fade-up.animated {
    transform: translateY(0) scale(1);
}

/* 사진 hover - animated 상태에서만 hover 적용 */
.intro-image.anim-slide-right.animated {
    transform: translateX(0) rotate(0deg) translateY(-15px);
}
.intro-image.anim-slide-right.animated:hover {
    transform: translateX(0) rotate(0deg) translateY(-22px);
    box-shadow:
        0 30px 60px rgba(201, 151, 155, 0.4),
        0 15px 30px rgba(0,0,0,0.12);
}

/* 연락처 섹션 */
.contact-section.anim-fade-up {
    transform: translateY(40px) scale(0.97);
}
.contact-section.anim-fade-up.animated {
    transform: translateY(0) scale(1);
}

/* 모바일에서 사진 애니메이션 조정 */
@media (max-width: 768px) {
    .anim-slide-right {
        transform: translateY(40px) rotate(0deg);
    }
    .anim-slide-right.animated {
        transform: translateY(0) rotate(0deg);
    }
    .intro-image.anim-slide-right.animated {
        transform: translateY(0) rotate(0deg);
    }
    .intro-image.anim-slide-right.animated:hover {
        transform: translateY(-5px) rotate(0deg);
    }
}
