/* 기본 설정 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

body {
    padding-top: 80px;
    font-family: 'KoPubBatang', serif;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
    background-color: #fff;
}

/* 헤더 스타일 개선 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
}

nav {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 로고 스타일 */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-circle span {
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    margin-bottom: 2px;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* 호버 효과 */
.logo:hover .logo-circle {
    transform: rotate(360deg);
    background-color: #8B6B4F;
}

.logo:hover .logo-main {
    color: #8B6B4F;
}

.logo:hover .logo-sub {
    opacity: 1;
}

/* 네비게이션 스타일 */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* 메인 콘텐츠 */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Hero Section */
.hero {
    height: 100vh;
    padding: 6rem 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    word-break: keep-all;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: #f9f9f9;
    margin: 4rem 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.85);
}

/* 서비스 그리드 스타일 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-item p {
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* 이벤트 날짜 강조 스타일 */
.event-date {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    margin: 0.5rem 0;
    animation: pulse 2s infinite;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 모바일 환경에서의 이벤트 날짜 */
@media (max-width: 768px) {
    .event-date {
        font-size: 1.1rem;
        margin: 0.3rem 0;
    }
}

/* 섹션 공통 스타일 */
section {
    padding: 6rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--background-color);
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 푸터 스타일 */
footer {
    background-color: #f9f9f9;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-info h3,
.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(0, 0, 0, 0.85);
}

.footer-info p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-links a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #000;
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
}

/* 폰트 웨이트 조정 */
h1 {
    font-weight: 800;
}

h2, h3 {
    font-weight: 700;
}

p, a {
    font-weight: 400;
}

.logo {
    font-weight: 700;
}

.hero-content h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.service-item h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-info h3,
.footer-links h3 {
    font-weight: 700;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-btn span:before,
.mobile-menu-btn span:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.mobile-menu-btn span:before {
    top: -6px;
}

.mobile-menu-btn span:after {
    bottom: -6px;
}

/* 모바일 메뉴 열림 상태 */
.mobile-menu-btn.active span {
    background-color: transparent;
}

.mobile-menu-btn.active span:before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active span:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 반응형 네비게이션 */
@media (max-width: 768px) {
    header {
        height: 60px;
    }

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

    nav {
        padding: 0 1rem;
    }

    nav ul {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: auto;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem 0;
        flex-direction: column;
        gap: 0;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 9;
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        text-align: center;
        font-size: 1.1rem;
        color: var(--primary-color);
    }

    nav ul li a:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

    /* 모바일 메뉴 버튼 활성화 상태 */
    .mobile-menu-btn.active span {
        background-color: transparent;
    }

    .mobile-menu-btn.active span:before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-menu-btn.active span:after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* 로고 크기 조정 */
    .logo {
        gap: 0.8rem;
    }

    .logo-circle {
        width: 28px;
        height: 28px;
    }

    .logo-circle span {
        font-size: 0.6rem;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
    }

    .logo-main {
        font-size: 1rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    /* 모바일 서비스 섹션 */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .service-item {
        padding: 1.5rem;
        position: relative;
    }

    .service-item::before {
        content: attr(data-number);
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 0.8rem;
        color: rgba(0, 0, 0, 0.3);
        font-weight: 600;
    }

    .service-item h3 {
        font-size: 1.2rem;
        margin-right: 2rem;
    }

    .service-item p {
        font-size: 0.95rem;
        margin-top: 0.8rem;
    }

    .services {
        padding: 4rem 0;
        margin: 2rem 0;
    }

    .services h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem;
        padding: 0 1.5rem;
    }

    /* 서비스 페이지 모바일 스타일 */
    .services-page {
        padding: 80px 1.5rem 3rem;
    }

    .service-detail {
        margin-bottom: 2.5rem;
        padding: 1.5rem;
    }

    .service-detail h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .feature-item {
        padding: 1.2rem;
        position: relative;
    }

    .feature-item::before {
        content: attr(data-number);
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        font-size: 0.8rem;
        color: rgba(0, 0, 0, 0.3);
        font-weight: 600;
    }

    .feature-item h3 {
        font-size: 1.1rem;
        margin-right: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* 작은 모바일 화면 대응 */
@media (max-width: 380px) {
    .logo-main {
        font-size: 0.9rem;
    }

    .logo-sub {
        font-size: 0.65rem;
    }

    .logo-circle {
        width: 24px;
        height: 24px;
    }

    .logo-circle span {
        font-size: 0.55rem;
    }
}

/* 전체 페이지 반응형 스타일 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    /* 섹션 패딩 조정 */
    section {
        padding: 3rem 1rem;
    }

    /* 컨테이너 여백 조정 */
    .container {
        padding: 0 1rem;
    }

    /* 제목 크기 조정 */
    h1 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    /* 푸터 반응형 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-info, .footer-links {
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* 모바일 그리드 조정 */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* 이미지 컨테이너 높이 조정 */
    .image-container {
        height: auto !important;
        max-height: 300px;
    }

    /* 버튼 크기 조정 */
    button, .button {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* 폼 필드 여백 조정 */
    .form-group {
        margin-bottom: 1.5rem;
    }

    input, textarea, select {
        padding: 0.8rem !important;
    }
}

/* 작은 모바일 화면 추가 대응 */
@media (max-width: 380px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    /* 컨테이너 여백 더 줄임 */
    .container {
        padding: 0 0.8rem;
    }

    /* 작은 화면에서 이미지 높이 조정 */
    .image-container {
        max-height: 250px;
    }

    /* 버튼 사이즈 조정 */
    button, .button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* 폼 요소 간격 조정 */
    .form-group {
        margin-bottom: 1.2rem;
    }

    /* 푸터 여백 조정 */
    .footer-content {
        padding: 1.5rem 0.8rem;
    }
}
