@charset "utf-8";

/* 전역 변수 */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --accent-color: #FDD835;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #666;
    --white: #fff;
}

/* 공통 스타일 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; line-height: 1.6; color: #333; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 섹션 공통 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

/* 서비스 섹션 */
.services {
    padding: 80px 0;
    background: #f9f9f9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width: 1000px;
}

.service-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 36px;
    color: #fff;
}

.service-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 포트폴리오 섹션 */
.portfolio {
    padding: 80px 0;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: #fff;
}

.portfolio-item .overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.portfolio-item .overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* CTA 섹션 */
.cta {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 버튼 스타일 */
.iwon-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.iwon-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
    .service-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .header-inner {
        position: relative;
        padding: 15px 20px;
    }

    .menu-button {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .gnb {
        display: none !important;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    body.menu-open .gnb {
        display: block !important;
    }

    .gnb ul {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .gnb li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .gnb li:last-child {
        border-bottom: none;
    }

    .gnb a {
        display: block;
        padding: 15px;
        font-size: 16px;
        color: #333;
    }

    body.menu-open .menu-button span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    body.menu-open .menu-button span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-button span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* 서비스 섹션 모바일 스타일 */
    .service-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .service-item {
        margin-bottom: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 28px;
    }

    .service-item h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .service-item p {
        font-size: 15px;
    }

    .cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }
}

/* 헤더 스타일 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 80px;
}

/* 로고 스타일 */
#logo {
    position: relative;
    z-index: 10;
}

.iwon-logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.iwon-logo-symbol {
    width: 40px;
    height: 40px;
    position: relative;
    margin-right: 10px;
}

.iwon-logo-leaf {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 0 50% 50% 50%;
    background: var(--primary-color);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.iwon-logo-leaf:nth-child(1) {
    top: 0;
    left: 0;
}

.iwon-logo-leaf:nth-child(2) {
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
}

.iwon-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.iwon-logo-text span {
    color: var(--secondary-color);
}

/* 로고 호버 효과 */
.iwon-logo-wrap:hover .iwon-logo-leaf {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(60deg);
    }
}

/* 메뉴 스타일 */
.gnb {
    display: flex;
    align-items: center;
}

.gnb ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gnb li {
    margin: 0 20px;
}

.gnb a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gnb a:hover {
    color: var(--primary-color);
}

/* 모바일 메뉴 버튼 */
.menu-button {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 메인 콘텐츠 스타일 */
.main-content {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 서브페이지 비주얼 */
.sub-visual {
    height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.sub-visual h2 {
    font-size: 36px;
    color: #333;
    text-align: center;
}

/* 메인 메뉴 스타일 */
.iwon-gnb ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.iwon-gnb a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.iwon-gnb a:hover {
    color: var(--primary-color);
}

/* 서브페이지 스타일 */
body:not(.is_index) .main-content {
    padding-top: 80px;
}

/* 메인 비주얼 */
.main-visual {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* 서비스 섹션 */
.services {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* 서브 페이지 스타일 */
.iwon-sub-visual {
    height: 200px;
    background: var(--primary-color);
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.iwon-sub-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.iwon-sub-visual h2 {
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* 포트폴리오 섹션 */
.portfolio {
    padding: 80px 0;
    background: var(--light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* CTA 섹션 */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 버튼 스타일 */
.iwon-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--text-color);
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.iwon-btn:hover {
    background: #FBC02D;
}

/* 유틸리티 클래스 */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* 푸터 스타일 */
.iwon-footer {
    background: #333;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h3,
.footer-menu h3,
.footer-business-hours h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-menu a:hover {
    opacity: 1;
}

.footer-business-hours p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    opacity: 0.8;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .iwon-footer {
        padding: 40px 0 20px;
    }
} 