/* css/common.css */
@charset "utf-8";


/* =========================================
   스크린리더 전용 (시각적으로 숨김, SEO/접근성용)
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================
   공통 섹션 타이틀 (모든 서브페이지 적용)
   ========================================= */
.section-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.section-title {
    font-size: 2.8rem;     /* 글자 크기 큼직하게 업그레이드 */
    font-weight: 800;      /* 더 굵고 선명하게 */
    color: var(--dark);
    margin-bottom: 30px;   /* 금색 선과의 간격을 시원하게 띄움 */
    letter-spacing: 1px;   /* 자간을 살짝 넓혀 고급스럽게 */
}


/* =========================================
   1. 공통 변수 및 리셋
   ========================================= */
:root {
    --gold: #d4af37;
    --dark: #1a1a1a;
    --light-gray: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   2. 공통 유틸리티 (버튼, 구분선, 섹션)
   ========================================= */
.btn {
    padding: 10px 30px;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

/* 앵커 이동 시 헤더 가림 방지 */
section { scroll-margin-top: 100px; }

.divider {
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.divider-lg {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 80px 0;
}

/* =========================================
   3. 헤더 (Header)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    display: block;
    height: 60px;
    width: auto;
}

.nav-list { display: flex; gap: 40px; margin: 0; padding: 0; }
.nav-list a {
    color: #333;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.3s ease;
    letter-spacing: -0.5px;
}
.nav-list a:hover { color: var(--gold); }

/* 헤더 반응형 */
@media (max-width: 768px) {
    .header { height: auto; padding: 15px 0; }
    .header-container { flex-direction: column; gap: 15px; }
    .nav-list { gap: 20px; font-size: 0.9rem; }
}
/* =========================================
   4. 푸터 (Footer) - 프랜차이즈 스타일
   ========================================= */
.footer-contact {
    background-color: #3e2b20; /* 진한 적갈색 배경 */
    padding: 60px 0 50px;
    color: rgba(255, 255, 255, 0.7); /* 연한 글자색 */
    font-size: 0.9rem;
    text-align: left;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.footer-logo {
    height: 45px; 
    margin-bottom: 25px;
    display: block;
    /* ▼ 이 속성이 로고를 완전한 흰색으로 바꿔줍니다! ▼ */
    filter: brightness(0) invert(1);
}

.footer-info-text p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-info-text .copyright {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 15px;
}

.footer-right {
    text-align: right;
}

.footer-sns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 30px;
}

/* SNS 둥근 아이콘 스타일 */
.footer-sns .sns-icon {
    width: 38px;
    height: 38px;
    background-color: var(--gold);
    color: #3e2b20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    transition: 0.3s;
}

.footer-sns .sns-icon:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.footer-cs {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 500;
    display: flex;
    gap: 30px;
}

.footer-cs span {
    color: var(--gold);
    margin-right: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.family-site select {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.family-site select option {
    color: #333; /* 드롭다운 열렸을 때 글씨색 */
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links .privacy {
    color: var(--gold);
    font-weight: bold;
}

/* 모바일 반응형 처리 */
@media (max-width: 900px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .footer-right {
        text-align: left;
        width: 100%;
    }
    .footer-sns {
        justify-content: flex-start;
    }
    .footer-cs {
        flex-direction: column;
        gap: 15px;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}



/* =========================================
   팝업창 (Modal) 스타일
   ========================================= */
.popup-overlay {
    display: none; /* 처음에는 숨겨둠 */
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 반투명 검은색 배경 */
    z-index: 2000; /* 헤더보다 높게 설정 */
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    animation: popIn 0.3s ease-out; /* 살짝 튀어나오는 애니메이션 */
}

.popup-content p {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--dark);
}

.btn-close {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-close:hover {
    background: var(--dark);
}

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


/* =========================================
   📱 모바일 반응형 (화면 가로폭 768px 이하일 때 작동)
   ========================================= */
@media (max-width: 768px) {

    /* 1. 공통 여백 및 글자 크기 조정 */
    .container { padding: 0 15px; } /* 좌우 여백을 스마트폰에 맞게 축소 */
    .section-title { font-size: 2rem; margin-bottom: 20px; } /* 제목 크기 축소 */
    .sub-title { font-size: 2.2rem; }
    
    /* 너무 넓은 상하 여백(padding)을 모바일에 맞게 절반으로 축소 */
    section { padding-top: 50px !important; padding-bottom: 50px !important; }
    .franchise-intro, .inquiry-section, .contact-image-section, .menu-banner-section, .brand-banner-section { margin-top: 0 !important; }

    /* 2. 나란히 있던 박스들을 세로 1줄로 쌓기 (그리드 레이아웃) */
    .benefit-grid, 
    .process-list, 
    .menu-grid, 
    .allergy-grid {
        grid-template-columns: 1fr; /* 1단으로 변경 */
        gap: 20px;
    }

    /* 3. 좌우로 나뉘어 있던 영역을 위아래로 쌓기 (플렉스 레이아웃) */
    .overview-content, 
    .ceo-grid, 
    .philosophy-grid {
        flex-direction: column; /* 가로 배열을 세로 배열로 변경 */
        text-align: center;
    }
    
    /* 글자와 이미지 사이의 간격 조정 */
    .overview-text, .ceo-text { padding: 0; margin-bottom: 30px; }
    .ceo-text h4 { font-size: 1.6rem !important; }
    .overview-img, .ceo-img, .philosophy-img { min-height: 250px; width: 100%; }

    /* 4. 가맹 문의 및 알레르기 표 최적화 */
    .cost-table th, .cost-table td {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .allergy-table-wrapper {
        overflow-x: auto; /* 표가 화면보다 크면 좌우로 스와이프(스크롤) 가능하게 만듦 */
    }
    .allergy-table { min-width: 500px; }

    /* 5. 폼 버튼 꽉 차게 만들기 */
    .form-btn-wrap button {
        max-width: 100% !important; /* 버튼이 스마트폰 화면 폭에 꽉 차도록 */
    }
}

/* =========================================
   3. 헤더 (Header) 반응형 수정 (common.css)
   ========================================= */
@media (max-width: 768px) {
    .header { height: auto; padding: 15px 0; }
    .header-container { flex-direction: column; gap: 15px; }
    /* flex-wrap: wrap을 추가하여 좁은 화면에서 메뉴가 자연스럽게 두 줄로 나뉘게 합니다 */
    .nav-list { gap: 15px; font-size: 0.95rem; flex-wrap: wrap; justify-content: center; }
}