/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* ========== Variables ========== */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #8B5CF6;
    --accent: #10B981;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --bg-light: #F8FAFC;
    --border: #E2E8F0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.logo-denomination {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 0;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}

.logo-text span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Navigation */
.nav {
    display: flex;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #475569;
    font-size: 14px;
    border-radius: 8px;
}

.nav-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

/* ➕ [2026-01-20] 사용자 메뉴 및 작은 버튼 스타일 추가 */
/* 추가 이유: 헤더 로그인 상태 표시용 */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ========== Hero Slider ========== */
.hero {
    margin-top: 80px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 24px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 300;
    animation: slideUp 0.8s ease 0.2s both;
}

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    width: 32px;
    background: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ========== Quick Links ========== */
.quick-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

.quick-links-inner {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-light);
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.2);
}

.quick-link.worship:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.quick-link.bible:hover {
    background: #3B82F6;
    color: #fff;
    border-color: #3B82F6;
}

.quick-link.prayer:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ========== Service Cards ========== */
.service-section {
    background: var(--bg-light);
    padding: 80px 24px;
}

.service-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    display: block;
    padding: 32px;
    border-radius: var(--radius-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.service-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.service-card .title {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 4px;
    letter-spacing: 2px;
    font-weight: 500;
}

.service-card .subtitle {
    font-size: 12px;
    opacity: 0.7;
    font-family: 'Playfair Display', serif;
}

.service-card.school { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); }
.service-card.study { background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%); }
.service-card.gallery { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.service-card.mission { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

/* ========== New Family Section ========== */
.new-family-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.new-family-header {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 32px;
}

.new-family-title {
    flex: 0 0 auto;
}

.new-family-title .label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.new-family-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-family: 'Playfair Display', 'Noto Sans KR', serif;
}

.new-family-title p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.new-family-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.family-card {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.family-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.15);
}

.family-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.family-card .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.family-card .date {
    font-size: 12px;
    color: var(--text-light);
}

/* ========== Footer ========== */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 60px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.footer-logo .logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.footer-logo .logo-denomination {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    margin-bottom: 0;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.footer-logo span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 1.2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.footer-grid h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-grid p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

/* ========== Page Header ========== */
.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 24px;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* ========== Content Section ========== */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ========== Animations ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ➕ [2026-01-29] 모바일 햄버거 메뉴 스타일 추가 */
/* 추가 이유: 모바일에서 메뉴 접근을 위한 UI */

/* 햄버거 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 햄버거 버튼 애니메이션 (열린 상태) */
.mobile-menu-open .mobile-menu-btn .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .mobile-menu-btn .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .mobile-menu-btn .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
}

/* 모바일 메뉴 패널 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-open .mobile-menu {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-header .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.mobile-menu-header .logo-img {
    width: 40px;
    height: 40px;
}

.mobile-menu-header .logo-denomination {
    font-size: 8px;
}

.mobile-menu-header .logo-text h1 {
    font-size: 16px;
}

.mobile-menu-header .logo-text span {
    font-size: 10px;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--border);
    color: var(--text-dark);
}

/* 모바일 네비게이션 */
.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.mobile-nav-group {
    margin-bottom: 8px;
}

.mobile-nav-title {
    padding: 12px 20px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav a {
    display: block;
    padding: 12px 20px 12px 32px;
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.2s ease;
}

.mobile-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* 모바일 메뉴 푸터 */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

/* body 스크롤 방지 (메뉴 열림 시) */
.mobile-menu-open {
    overflow: hidden;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }

    .nav {
        display: none;
    }

    /* 🔧 [2026-01-29] 모바일에서 auth-buttons 숨기고 햄버거 버튼 표시 */
    .auth-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        height: 400px;
        margin-top: 64px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .new-family-header {
        flex-direction: column;
        gap: 24px;
    }

    /* 🔧 [2026-01-29] 모바일 page-header 마진 조정 */
    .page-header {
        margin-top: 64px;
    }
}
