/* ===============================
   FONT IMPORT
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --main-green: #1b6331;
    --gray-border: #ddd;
    --gray-bg: #f2f2f2;
    --gray-text: #555;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ===============================
   공통
=============================== */
.contact-page {
    font-family: 'Pretendard', 'Jost', sans-serif;
    background: #fff;
    color: #111;
    letter-spacing: -0.02em;
    text-align: center;
    overflow-x: hidden;
}

/* ===============================
   1. 상단 헤더 (notice와 동일한 구조)
=============================== */
.contact-header {
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.contact-header .top-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 400;
    color: #222;
    margin-bottom: 0.6rem;
}

.contact-header .top-sub {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: #777;
    margin-bottom: 1.2rem;
}

.contact-header .main-title {
    font-family: 'Jost', sans-serif;
    color: var(--main-green);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

/* ===============================
   2. 지도 및 주소 영역
=============================== */
.contact-map-section {
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    max-width: 1500px;
    box-sizing: border-box;
}

.contact-info {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5rem;
    flex-wrap: wrap;
}

.contact-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #111;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.6;
}

/* 지도 placeholder */
.map-placeholder {
    width: 100%;
    height: 600px;
    background: var(--gray-bg);
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.map-placeholder p {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    color: #222;
}

/* ===============================
   3. 하단 푸터 문구
=============================== */
.contact-footer {
    border-top: 1px solid #eee;
    padding: 2rem 0;
    font-size: 0.85rem;
    color: #666;
}

/* ===============================
   반응형 (notice.css 기준)
=============================== */

/* --- 1024px 이하 : 폰트, 간격 축소 --- */
@media (max-width: 1024px) {
    .contact-map-section {
        max-width: 95%;
        padding: 2rem 1rem 3rem;
    }

    .contact-info {
        gap: 3rem;
    }

    .contact-info h4 {
        font-size: 1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .map-placeholder {
        height: 500px;
    }
}

/* --- 900px 이하 : 레이아웃 간격 조정 --- */
@media (max-width: 900px) {
    .contact-header .top-title {
        font-size: 1.6rem;
    }

    .contact-header .main-title {
        font-size: clamp(1.3rem, 2vw, 1.6rem);
    }

    .contact-info {
        gap: 2.5rem;
    }

    .map-placeholder {
        height: 400px;
    }
}

/* --- 768px 이하 : 세로정렬 및 지도 높이 축소 --- */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-info h4 {
        font-size: 1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .map-placeholder {
        height: 350px;
    }
    .contact-info h4 {
        margin-bottom: 0;
    }
}

/* --- 600px 이하 : 폰트 및 높이 축소 --- */
@media (max-width: 600px) {
    .contact-header .top-title {
        font-size: 1.3rem;
    }

    .contact-header .main-title {
        font-size: 1.1rem;
    }

    .contact-map-section {
        padding: 1rem 0.8rem 3rem;
    }

    .contact-info h4 {
        font-size: 0.95rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    .map-placeholder {
        height: 280px;
    }
}

/* --- 480px 이하 : 최소 간격 모드 --- */
@media (max-width: 480px) {
    .contact-map-section {
        padding: 0 0.5rem 2rem;
    }

    .map-placeholder {
        height: 250px;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-info h4 {
        font-size: 0.9rem;
    }

    .contact-info p {
        font-size: 0.8rem;
    }
}
