/* ============================================
   Growth REITs & Invest - Style Sheet
   View Layer (CSS)
   ============================================ */

/* ---- CSS Reset 및 기본 스타일 ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ---- 공통 섹션 스타일 ---- */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1a2a6c;
    margin-bottom: 10px;
}

.section-title p {
    color: #777;
    font-size: 1.1rem;
}

/* ============================================
   네비게이션
   ============================================ */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, padding 0.3s ease;
}

nav.scrolled {
    background: #fff;
    padding: 15px 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a2a6c;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.nav-links li {
    cursor: pointer;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #b21f1f;
    transition: width 0.3s ease;
}

.nav-links li:hover {
    color: #b21f1f;
}

.nav-links li:hover::after {
    width: 100%;
}

/* 햄버거 메뉴 버튼 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1a2a6c;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

/* 햄버거 활성화 시 X 아이콘 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   히어로 섹션
   ============================================ */
#home {
    height: 100vh;
    background: linear-gradient(rgba(26, 42, 108, 0.7), rgba(178, 31, 31, 0.7)),
                url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

#home h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInDown 1s ease;
}

#home p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

/* ============================================
   회사 소개 섹션
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a2a6c;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-map-wrapper {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.about-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 42, 108, 0.85));
    padding: 30px 20px 15px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
}

.map-overlay-label span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* ============================================
   서비스 섹션
   ============================================ */
#services {
    background: #fff;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px;
    border-radius: 15px;
    background: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #1a2a6c;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1a2a6c;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: #e74c3c;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* ============================================
   푸터
   ============================================ */
footer {
    background: #222;
    color: #ccc;
    padding: 60px 20px;
    line-height: 1.8;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-content h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-content ul li {
    margin-bottom: 5px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.copy {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* ============================================
   애니메이션
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 스크롤 애니메이션용 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   반응형 - 태블릿 (1024px 이하)
   ============================================ */
@media (max-width: 1024px) {
    nav {
        padding: 20px 30px;
    }

    nav.scrolled {
        padding: 15px 30px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    #home h1 {
        font-size: 3rem;
    }

    #home p {
        font-size: 1.3rem;
    }

    .service-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   반응형 - 모바일 (768px 이하)
   ============================================ */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    nav.scrolled {
        padding: 12px 20px;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* 햄버거 메뉴 표시 */
    .hamburger {
        display: flex;
    }

    /* 모바일 네비게이션 링크 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        z-index: 1050;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        padding: 18px 0;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li::after {
        display: none;
    }

    /* 오버레이 */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1020;
    }

    .nav-overlay.active {
        display: block;
    }

    /* 히어로 */
    #home h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    #home p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    #home {
        background-attachment: scroll; /* 모바일에서 fixed 배경 이슈 방지 */
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-map-wrapper {
        height: 260px;
        border-radius: 15px;
    }

    /* Services */
    .service-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    section {
        padding: 60px 15px;
    }
}

/* ============================================
   반응형 - 소형 모바일 (480px 이하)
   ============================================ */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    #home h1 {
        font-size: 1.8rem;
    }

    #home p {
        font-size: 1rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    footer {
        padding: 40px 15px;
    }

    .footer-logo {
        font-size: 1.1rem;
    }
}

