/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* --- 상단 바 전체 --- */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* --- 윗줄: 언어 선택 --- */
.language-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.language-switcher a {
    color: #555;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 0.7rem;
    padding: 0.2rem;
}

.language-switcher a.active {
    color: #FF6347;
    font-weight: bold;
}

/* --- 아랫줄: 로고와 메인 메뉴 --- */
nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    height: 80px;
}

.contact-info-left {
    grid-column: 1 / 2;
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.phone-number a {
    font-size: 1.56rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.chat-info a {
    font-size: 1.2rem;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}

.logo {
    grid-column: 2 / 3;
    justify-self: center;

    font-size: 2.7rem;
    font-weight: bold;
    color: #FF6347;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    grid-column: 3 / 4;
    justify-self: end;

    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 1.2rem;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #FF6347;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
}

/* --- 메인 콘텐츠 --- */
main {
    padding-top: 125px;
}

.content-section {
    min-height: 80vh;
    padding: 4rem 2rem;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 125px;
}

.content-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.content-section p {
    font-size: 1.33rem;
    margin-bottom: 1.5rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: -1.5rem auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.photo-grid img:hover {
    transform: scale(1.03);
}

.intro-text strong {
    color: #FF6347;
    font-weight: 600;
}

/* 장점 섹션 카드 스타일 */
.advantages-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex-basis: 45%;
    min-width: 280px;
    text-align: center;
}

.advantage-card img {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    color: #FF6347;
    margin-bottom: 0.5rem;
}

.advantage-card p {
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: left;
}

/* 위치 섹션 스타일 */
#location .address {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-caption {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* [추가] 연락하기 섹션 컨테이너 스타일 */
.contact-container {
    max-width: 800px; /* 최대 너비 설정 */
    margin: 0 auto; /* 좌우 마진을 auto로 주어 가운데 정렬 */
    text-align: center; /* 내부 텍스트 가운데 정렬 */
}


/* --- 반응형 디자인 (태블릿 & 모바일) --- */
@media (max-width: 992px) {
    nav {
        display: flex;
        justify-content: space-between;
    }
    
    .contact-info-left {
        display: none;
    }

    .logo {
        grid-column: auto;
        justify-self: auto;
        font-size: 2.25rem;
    }
    
    .nav-menu {
        display: none;
        grid-column: auto;
        justify-self: auto;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 10;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-container {
        flex-direction: column;
    }
}

/* --- 이미지 모달 스타일 --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: pointer;
}