/* assets/css/style.css - 완전 재작성 */

/* ========================================
   1. 기본 설정
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-color: #2c3e50;
    --white: #ffffff;
    --gray: #95a5a6;
    --light-gray: #f8f9fa;
    --call-button-color: #25d366;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', Arial, sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========================================
   2. 컨테이너
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   3. 헤더
   ======================================== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo h1:hover {
    transform: scale(1.05);
}

.language-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.lang-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.current-lang {
    font-size: 0.9rem;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.lang-toggle:hover .arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.language-switcher:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    padding: 0.75rem 1.5rem;
}

.lang-menu li:hover {
    background-color: var(--light-gray);
}

.lang-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   4. 히어로 섹션
   ======================================== */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   5. 배너 갤러리
   PC: 1열 3개 (2행), 모바일: 1열 2개 (3행)
   ======================================== */
.banner-gallery {
    padding: 3rem 0;
    width: 100%;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 이미지 그리드 */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 이미지 셀 */
.image-cell {
    flex-shrink: 0;
}

/* 배너 링크 */
.banner-link {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.banner-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.banner-link.active {
    box-shadow: 0 0 0 4px var(--primary-color);
}

.banner-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.2);
    z-index: 1;
    pointer-events: none;
}

/* 배너 이미지 - 4:1 비율 */
.banner-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.banner-link:hover .banner-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 선택 뱃지 */
.banner-active-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

/* ========================================
   6. 반응형 - 배너 레이아웃
   ======================================== */

/* PC - 1열에 3개씩, 2행 (900px 이상) */
@media (min-width: 900px) {
    .image-grid {
        justify-content: center;
    }
    
    .image-cell {
        width: calc(33.333% - 4px);
        max-width: 400px;
    }
}

/* 모바일/태블릿 - 1열에 2개씩, 3행 (899px 이하) */
@media (max-width: 899px) {
    .image-grid {
        justify-content: center;
    }
    
    .image-cell {
        width: calc(50% - 3px);
    }
}

/* 초소형 화면 - 1열에 2개 유지 */
@media (max-width: 400px) {
    .image-grid {
        padding: 0 5px;
    }
    
    .image-cell {
        width: calc(50% - 3px);
    }
}

/* ========================================
   7. SEO 콘텐츠
   ======================================== */
.intro-section {
    padding: 3rem 0;
    background-color: var(--light-gray);
    margin-top: 3rem;
}

.intro-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-align: center;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.intro-section--seo {
    text-align: left;
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--white);
}

.intro-section--seo h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    text-align: left;
}

.intro-section--seo h2:first-of-type {
    margin-top: 0;
}

.intro-section--seo p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: justify;
    max-width: 100%;
}

.intro-section--seo strong {
    color: var(--primary-color);
    font-weight: 700;
}

.faq-section {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 12px;
}

.faq-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.faq-item {
    background-color: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-color);
    text-align: left;
}

/* ========================================
   8. 영업진 상세 페이지
   ======================================== */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--dark-color);
    font-weight: 600;
}

.staff-detail {
    padding: 3rem 0;
}

.staff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: var(--white);
    gap: 2rem;
}

.staff-title-area h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.staff-position {
    font-size: 1.4rem;
    font-weight: 600;
}

.call-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--call-button-color);
    color: var(--white);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    transition: var(--transition);
}

.call-button:hover {
    background-color: #20ba5a;
    transform: scale(1.05);
}

.phone-icon {
    font-size: 1.5rem;
}

.staff-content {
    max-width: 900px;
    margin: 0 auto;
}

.staff-intro {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.staff-description {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
}

.staff-description h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.staff-description p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark-color);
    white-space: pre-line;
}

.staff-images {
    margin: 4rem 0;
}

.staff-images h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.staff-image-item {
    margin-bottom: 2rem;
    text-align: center;
}

.staff-image-item img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.staff-info-box {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    min-width: 120px;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-link {
    color: var(--call-button-color);
    font-weight: 700;
    text-decoration: underline;
}

.contact-link:hover {
    color: #20ba5a;
}

.staff-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.floating-call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--call-button-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-call-button:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

.floating-call-button .phone-icon {
    font-size: 2rem;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8); }
}

/* ========================================
   9. 푸터
   ======================================== */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact a {
    color: var(--call-button-color);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

/* ========================================
   10. 팝업
   ======================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 400px;
    max-width: 90vw;
}

.popup-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.popup-image-link {
    display: block;
}

.popup-image-link:hover .popup-image {
    opacity: 0.95;
}

.popup-buttons {
    display: flex;
}

.popup-btn {
    flex: 1;
    padding: 1rem;
    background-color: #000000;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.popup-btn:hover {
    background-color: #333333;
}

.popup-btn-24h {
    border-right: 1px solid #333333;
}

/* ========================================
   11. 모바일 반응형
   ======================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .staff-header {
        flex-direction: column;
        text-align: center;
    }
    
    .staff-title-area h1 {
        font-size: 2rem;
    }
    
    .call-button {
        justify-content: center;
        width: 100%;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-row strong {
        min-width: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .intro-section--seo {
        padding: 1rem;
    }
    
    .intro-section--seo h2 {
        font-size: 1.5rem;
    }
    
    .faq-section {
        padding: 1rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .floating-call-button {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .staff-title-area h1 {
        font-size: 1.5rem;
    }
    
    .call-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .floating-call-button {
        width: 50px;
        height: 50px;
    }
    
    .popup-content {
        width: 95vw;
    }
    
    .popup-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

@media print {
    .site-header,
    .site-footer,
    .banner-gallery,
    .floating-call-button,
    .popup-overlay,
    .popup-container {
        display: none;
    }
}



