/**
 * 파일명: subpage.css
 * 위치: /home/insamvillage/public_html/assets/css/
 * 기능: 서브페이지 공통 스타일
 * 작성일: 2025-11-20
 */

/* ===================================
 * CSS 변수 정의
 * =================================== */
:root {
    /* 메인 컬러 */
    --primary-green: #2E7D32;
    --secondary-green: #66BB6A;
    --ginseng-gold: #C5A572;
    --soil-brown: #8D6E63;

    /* 배경 컬러 */
    --background-ivory: #F7F5EF;
    --mint-light: #E8F4E8;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;

    /* 텍스트 컬러 */
    --text-charcoal: #2B2B2B;
    --text-dark: #2C5F2D;
    --text-green: #4A7C4E;

    /* 기타 */
    --border-gray: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);

    /* 타이포그래피 */
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* 레이아웃 */
    --container-max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;

    /* Z-index */
    --z-header: 1000;
    --z-floating: 1100;
    --z-modal: 2000;
}


/* ===================================
 * 헤더 스타일
 * =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: var(--z-header);
    height: var(--header-height);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 이미지 스타일 */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo a:hover .logo-img {
    opacity: 0.8;
}

/* 태블릿 */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
}

/* 메인 네비게이션 */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    color: var(--text-charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.main-nav a:hover {
    color: var(--primary-green);
    background: var(--mint-light);
}

.main-nav a.active {
    color: var(--primary-green);
    background: var(--mint-light);
    font-weight: 600;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn:hover span {
    background-color: var(--secondary-green);
}

/* 모바일 메뉴 활성화 상태 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 헤더 반응형 */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 2px;
    }
    
    .main-nav a {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
	.site-header {
        height: 70px;
    }
    
    .logo {
        font-size: 1.125rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
        gap: 0;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav li:first-child {
        border-top: 1px solid #f0f0f0;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        padding: 18px 24px;
        font-size: 1rem;
        width: 100%;
        border-radius: 0;
        display: block;
        text-align: left;
    }
    
    .main-nav a.active {
        background: linear-gradient(90deg, var(--mint-light), transparent);
        border-left: 4px solid var(--primary-green);
        padding-left: 20px;
    }
    
    /* 모바일 메뉴 열렸을 때 body 스크롤 방지 */
    body.menu-open {
        overflow: hidden;
    }
}


/* ===================================
 * 기본 리셋
 * =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-charcoal);
    background-color: var(--background-ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-green);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}


/* ===================================
 * 레이아웃
 * =================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

main {
    min-height: calc(100vh - var(--header-height));
}

/* ===================================
 * 서브 히어로 (공통)
 * =================================== */
.sub-hero-green {
    background: linear-gradient(135deg, #2E7D32, #66BB6A);
    padding: 50px 0;  /* 120px 0 80px → 50px 0 (대폭 축소) */
    text-align: center;
    color: white;
    margin-top: 80px;
}

.sub-hero-green h2 {
    font-size: 2.25rem;  /* 2.5rem → 2.25rem (약간 축소) */
    font-weight: 700;
    margin-bottom: 10px;  /* 15px → 10px */
}

.sub-hero-green p {
    font-size: 1.0625rem;  /* 1.25rem → 1.0625rem (약간 축소) */
    opacity: 0.95;
}


/* ===================================
 * 서브 컨텐츠 (공통)
 * =================================== */
.sub-content {
    padding: 80px 0;
    background: var(--white);
}

.content-article {
    margin-bottom: 60px;
}

.content-article:last-child {
    margin-bottom: 0;
}

.content-article h3 {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-green);
}

.content-article p {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 20px;
}

.content-article strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* ===================================
 * 정보 박스 (공통)
 * =================================== */
.info-box {
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
    margin-bottom: 40px;
}

.highlight-box {
    display: flex;
    gap: 25px;
    background: #F8FAF8;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px solid #E8F5E9;
}

.highlight-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.highlight-content h4 {
    font-size: 1.375rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.highlight-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* ===================================
 * 그리드 레이아웃 (공통)
 * =================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--mint-light), #d4f1d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-green);
}

.info-card h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
 * 버튼 (공통)
 * =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    min-height: 48px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.btn-secondary {
    background-color: var(--ginseng-gold);
    color: var(--white);
    border-color: var(--ginseng-gold);
}

.btn-secondary:hover {
    background-color: var(--soil-brown);
    border-color: var(--soil-brown);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.admin-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 5px 12px;
	font-size: 12px;
	color: rgba(255,255,255,0.6) !important;
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 30px;
	text-decoration: none;
	transition: all 0.3s;
}
.admin-btn:hover {
	color: #fff !important;
	border-color: #fff;
	background: rgba(255,255,255,0.1);
}

/* ===================================
 * 연락처 박스 (공통)
 * =================================== */
.contact-box-sub {
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    padding: 40px;
    border-radius: 12px;
}

.contact-box-sub h3 {
    border-bottom: none;
    text-align: center;
    margin-bottom: 30px;
}

.contact-grid-sub {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item-sub {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-item-sub strong {
    color: var(--text-dark);
    font-weight: 700;
}

.contact-item-sub span {
    color: #666;
}

/* ===================================
 * 테이블 (공통)
 * =================================== */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: var(--primary-green);
    color: white;
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
}

td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9375rem;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f7f5ef;
}

/* ===================================
 * 푸터 스타일
 * =================================== */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #66BB6A;
    margin-bottom: 15px;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2E7D32;
    display: inline-block;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    display: inline-block;
}

.footer-links a:hover {
    color: #66BB6A;
    padding-left: 5px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #b0b0b0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-list i {
    color: #66BB6A;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.bank-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #C5A572;
}

.bank-info p {
    margin-bottom: 8px;
    color: #b0b0b0;
    font-size: 0.9375rem;
}

.bank-info strong {
    color: #ffffff;
    font-size: 1rem;
}

.account-number {
    font-size: 1.125rem !important;
    font-weight: 700;
    color: #C5A572 !important;
    letter-spacing: 0.5px;
}

.account-holder {
    font-size: 0.875rem !important;
    color: #999999 !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.business-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #999999;
}

.business-info .divider {
    color: #555555;
}

.copyright {
    font-size: 0.875rem;
    color: #999999;
    margin: 0;
}

/* ===================================
 * 플로팅 메뉴
 * =================================== */
.floating-menu {
    position: fixed;
    right: 20px;
    top: 80%;
    transform: translateY(-50%);
    z-index: var(--z-floating);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.phone-btn { background-color: #28a745; }
.phone-btn:hover { background-color: #218838; }

.reservation-btn { background-color: #4a7c59; }
.reservation-btn:hover { background-color: #2d4a35; }

.location-btn { background-color: #17a2b8; }
.location-btn:hover { background-color: #138496; }

.chat-btn { background-color: #ffc107; color: #333 !important; }
.chat-btn:hover { background-color: #e0a800; color: #333 !important; }

.top-btn { background-color: #6c757d; }
.top-btn:hover { background-color: #5a6268; }

.floating-tooltip {
    position: absolute;
    right: 60px;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.floating-item:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* ===================================
 * 반응형 (공통)
 * =================================== */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .sub-hero-green {
        margin-top: 80px;
        padding: 40px 0;  /* 80px 0 50px → 40px 0 (50% 축소) */
    }
    
    .sub-hero-green h2 {
        font-size: 1.875rem;  /* 2rem → 1.875rem (약간 축소) */
        margin-bottom: 8px;
    }
    
    .sub-hero-green p {
        font-size: 0.9375rem;  /* 1rem → 0.9375rem (약간 축소) */
    }
    
    .sub-content {
        padding: 60px 0;
    }
    
    .content-article {
        margin-bottom: 40px;
    }
    
    .content-article h3 {
        font-size: 1.625rem;
    }
    
    .content-article p {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .highlight-box {
        flex-direction: column;
        padding: 25px 20px;
    }
    
    .highlight-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .contact-grid-sub {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .business-info {
        justify-content: center;
        font-size: 0.8125rem;
    }
    
    .floating-menu {
        right: 10px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .floating-tooltip {
        font-size: 12px;
        padding: 6px 10px;
        right: 55px;
    }
}

@media (max-width: 480px) {
     .sub-hero-green {
        margin-top: 80px;
        padding: 35px 0;  /* 60px 0 40px → 35px 0 (대폭 축소) */
    }
    
    .sub-hero-green h2 {
        font-size: 1.625rem;  /* 1.75rem → 1.625rem (약간 축소) */
        margin-bottom: 6px;
    }
    
    .sub-hero-green p {
        font-size: 0.875rem;  /* 추가: 더 작은 화면에서 텍스트 축소 */
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
}