/**
 * 파일명: main.css
 * 위치: /home/insamvillage/public_html/assets/css/
 * 기능: 녹색농심인삼체험마을 공통 스타일 (모든 페이지)
 * 작성일: 2025-11-09
 */

/* === 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;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* 레이아웃 */
    --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-quick-menu: 1100;
    --z-modal: 1200;
}

/* === 기본 리셋 === */
*, *::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: var(--font-size-base);
    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, a:focus {
    color: var(--secondary-green);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* === 레이아웃 === */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === 버튼 스타일 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    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: 14px 32px;
    font-size: var(--font-size-lg);
}

/* === 헤더 === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    z-index: var(--z-header);
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-green);
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-charcoal);
    padding: 8px 0;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-green);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transition: var(--transition);
}

.main-nav a.active::after,
.main-nav a:hover::after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-charcoal);
    transition: var(--transition);
}

/* === 메인 컨텐츠 === */
main {
    margin-top: var(--header-height);
}

/* === 푸터 (다크 테마) === */
.site-footer-dark {
    background-color: #2C2C2C;
    color: #CCCCCC;
    padding: 20px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 2fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-col-wide {
    /* 넓은 컬럼 추가 스타일 */
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.125rem;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #AAAAAA;
}

.footer-heading {
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-list li {
    font-size: 0.9375rem;
    color: #AAAAAA;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.2;
}

.footer-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #888888;
    line-height: 1.6;
}

/* 푸터 반응형 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer-dark {
        padding: 40px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom p {
        font-size: 0.8125rem;
    }
}


/* ===================================
 * 플로팅 메뉴 스타일
 * =================================== */

.floating-menu {
    position: fixed;
    right: 20px;
    top: 80%;
    transform: translateY(-50%);
    z-index: 1000;
    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;
}


/* === 퀵 메뉴 === */
.quick-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-quick-menu);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qm-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
    color: var(--white);
}

.qm-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.qm-phone { background-color: var(--secondary-green); }
.qm-booking { background-color: var(--ginseng-gold); }
.qm-location { background-color: var(--primary-green); }
.qm-review { background-color: var(--soil-brown); }
.qm-top { background-color: var(--text-charcoal); }

.qm-label {
    position: absolute;
    right: 70px;
    background-color: var(--text-charcoal);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.qm-item:hover .qm-label {
    opacity: 1;
    transform: translateX(0);
}

.qm-chat {
    /* qm-review와 동일한 스타일 또는 새로운 색상 */
    background-color: #FEE500; /* 카카오톡 노란색 */
}

.qm-chat:hover {
    background-color: #F5DC00;
}


/* === 서브페이지 공통 스타일 === */
.sub-hero {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.sub-hero h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: 16px;
}

.content-section {
    padding: 80px 0;
    background-color: var(--white);
}

.text-block {
    margin-bottom: 60px;
    line-height: 1.8;
}

.text-block h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary-green);
    margin-bottom: 24px;
}

/* === 반응형 === */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        z-index: 999;
        transition: left 0.3s ease;
    }
    
    .main-nav.is-open {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 40px 20px;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-gray);
    }
    
    .main-nav a {
        display: block;
        padding: 20px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .quick-menu {
        bottom: 20px;
        top: auto;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
    }
    
    .qm-item {
        width: 48px;
        height: 48px;
    }
    
    .qm-label {
        display: none;
    }
}
