@charset "utf-8";

/* Reset & Basic */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

/* Variables */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #c0392b;
    /* Deep Red */
    --footer-bg: #e9e9e9;
    /* Light Gray for Footer, similar to ref */
    --header-height: 90px;
    --container-width: 1400px;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* =========================================
   Header Structure
   ========================================= */
#header {
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(20, 20, 20, 0.1);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#header.scrolled,
#header.mega_menu_on {
    height: 70px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

#header.mega_menu_on {
    background: rgba(255, 255, 255, 0.8);
}

#header .header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Explicit vertical center */
    height: 100%;
}

/* Logo Logic */
#header .logo {
    font-size: 0;
}

#header .logo a {
    display: block;
    position: relative;
    height: 50px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled .logo a,
#header.mega_menu_on .logo a {
    height: 40px;
}

#header .logo img {
    height: 100%;
    width: auto;
    transition: opacity 0.4s ease;
}

#header .logo .logo_default {
    position: relative;
    z-index: 2;
    opacity: 1;
}

#header .logo .logo_scrolled {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
}

#header .logo .text_logo_default {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    line-height: 50px;
}

#header .logo .text_logo_scrolled {
    display: none !important;
}

#header.scrolled .logo .logo_default,
#header.mega_menu_on .logo .logo_default {
    opacity: 0;
}

#header.scrolled .logo .logo_scrolled,
#header.mega_menu_on .logo .logo_scrolled {
    opacity: 1;
}

#header.scrolled .logo .text_logo_default,
#header.mega_menu_on .logo .text_logo_default {
    color: #222;
    font-size: 20px;
    line-height: 40px;
}

#header .logo a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#header.scrolled .logo a,
#header.mega_menu_on .logo a {
    color: #222;
    text-shadow: none;
}

/* GNB */
.gnb {
    height: 100%;
    margin: 0 40px;
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1002;
}

.gnb>ul {
    display: flex;
    gap: 60px;
    height: 100%;
    align-items: center;
}

.gnb>ul>li>a {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 20px 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: color 0.3s;
}

#header.scrolled .gnb>ul>li>a,
#header.mega_menu_on .gnb>ul>li>a {
    color: #222 !important;
    text-shadow: none;
}

/* Mobile Header SNS (Default: Hidden) */
.mobile_header_sns {
    display: none;
}

/* Hamburger */
.mobile_btn {
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2002;
}

.mobile_btn span {
    display: block;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile_btn span:nth-child(1) {
    width: 100%;
}

.mobile_btn span:nth-child(2) {
    width: 70%;
}

.mobile_btn span:nth-child(3) {
    width: 40%;
}

.mobile_btn:hover span {
    width: 100%;
    background-color: var(--accent-color);
}

#header.scrolled .mobile_btn span,
#header.mega_menu_on .mobile_btn span {
    background-color: #222;
    box-shadow: none;
}

#header.mega_menu_on .mobile_btn {
    justify-content: center;
}

#header.mega_menu_on .mobile_btn span {
    width: 100% !important;
    position: absolute;
    left: 0;
    box-shadow: none;
}

#header.mega_menu_on .mobile_btn span:nth-child(1) {
    top: 50%;
    margin-top: -1px;
    transform: rotate(45deg);
}

#header.mega_menu_on .mobile_btn span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

#header.mega_menu_on .mobile_btn span:nth-child(3) {
    top: 50%;
    margin-top: -1px;
    transform: rotate(-45deg);
}


/* =========================================
   Mega Menu Panel
   ========================================= */
#mega_menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 500px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

#header.mega_menu_on #mega_menu,
#header:hover #mega_menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Grid Layout */
.mega_menu_inner {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 20px;
    padding: 40px 0;
    height: 100%;
}

.mega_brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.mega_brand p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

/* Navigation Grid */
.mega_nav_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    width: 100%;
    margin: 0 auto 0 200px;
    max-width: 650px;
    padding-left: 0;
}

.mega_nav_item {
    padding: 0 15px;
}

.mega_nav_item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 10px;
}

.mega_nav_item ul li a {
    display: block;
    font-size: 14px;
    color: #666;
    padding: 6px 0;
    transition: 0.2s;
}

.mega_nav_item ul li a:hover {
    color: var(--accent-color);
    font-weight: 600;
    transform: translateX(3px);
}

/* Architectural Motion Area */
.mega_featured.motion_area {
    width: 100%;
    height: 420px;
    margin-top: -60px;
    background: transparent;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.mega_featured.motion_area canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.mega_featured.motion_area .overlay_txt {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 100%;
    text-align: right;
    z-index: 0;
    padding-right: 20px;
}

.mega_featured.motion_area .overlay_txt .logo_typo {
    display: block;
    font-size: 50px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-top: 4px solid #000;
    padding-top: 10px;
    text-align: right;
    width: fit-content;
    margin-left: auto;
    opacity: 0.8;
}

/* =========================================
   New Footer Styling (Contact & Map)
   ========================================= */
#footer {
    background-color: var(--footer-bg);
    padding: 60px 0;
    border-top: 1px solid #ddd;
}

.footer_inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
}

/* Left Column */
.footer_left {
    flex: 1;
    min-width: 320px;
}

.footer_title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #111;
}

.footer_msg {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.contact_action {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn_consult {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f7a092;
    /* Similar to ref pinkish accent */
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(247, 160, 146, 0.4);
    transition: all 0.3s;
}

.btn_consult:hover {
    background-color: #e68d7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 160, 146, 0.5);
}

.phone_num {
    font-size: 32px;
    font-weight: 900;
    color: #111;
    letter-spacing: -1px;
}

.company_meta {
    font-size: 14px;
    color: #777;
}

.company_meta ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 5px;
}

.company_meta .label {
    font-weight: 600;
    margin-right: 5px;
    color: #333;
}

.company_meta .copyright {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.6;
}

/* Right Column (Map) */
.footer_right {
    flex: 1.2;
    min-width: 320px;
}

.map_frame {
    width: 100%;
    height: 320px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.map_code {
    width: 100%;
    height: 100%;
}

.map_code iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f7c3bc;
    /* Placeholder Color */
    color: #fff;
}

.map_placeholder span {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.map_placeholder p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Footer */
@media (min-width: 1024px) {
    #sidebar {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .gnb {
        display: none;
    }

    #mega_menu {
        display: none !important;
    }

    /* Mobile Header SNS */
    .mobile_header_sns {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        /* Push to right, before hamburger */
        margin-right: 20px;
        /* Increased margin for spacing */
        height: 100%;
        /* Match header height */
        transform: translateY(-3px);
        /* Visual alignment adjustment */
    }

    .mobile_header_sns a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        color: #fff;
        font-size: 16px;
        transition: all 0.3s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile_header_sns a.blog {
        background: #03C75A;
    }

    .mobile_header_sns a.youtube {
        background: #FF0000;
    }

    .mobile_header_sns a.kakao {
        background: #FEE500;
        color: #3C1E1E;
    }

    .mobile_btn {
        display: flex;
        transform: translateY(-3px);
        /* Visual alignment adjustment */
    }

    #header {
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: none;
    }

    #header.scrolled {
        background: rgba(0, 0, 0, 0.9) !important;
    }

    .footer_inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer_right {
        height: 300px;
    }

    /* Mobile Sidebar - Premium Design */
    #sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 340px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        transition: right 0.45s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        visibility: hidden;
    }

    #sidebar.active {
        right: 0;
        visibility: visible;
    }

    /* Header */
    .sidebar_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25px 30px;
        border-bottom: 1px solid #f5f5f5;
    }

    .sidebar_logo {
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -0.5px;
        color: #1a1a1a;
    }

    .btn_close_sidebar {
        background: none;
        border: none;
        font-size: 26px;
        color: #1a1a1a;
        cursor: pointer;
        padding: 5px;
        transition: transform 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn_close_sidebar:hover {
        transform: rotate(90deg);
        color: #c0392b;
    }

    /* Scroll Area */
    .sidebar_scroll {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .sidebar_content {
        padding: 40px 30px;
        flex: 1;
    }

    /* GNB List */
    .side_gnb .depth1_item {
        margin-bottom: 35px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    #sidebar.active .side_gnb .depth1_item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Animation Delay for Items */
    #sidebar.active .side_gnb .depth1_item:nth-child(1) {
        transition-delay: 0.1s;
    }

    #sidebar.active .side_gnb .depth1_item:nth-child(2) {
        transition-delay: 0.2s;
    }

    #sidebar.active .side_gnb .depth1_item:nth-child(3) {
        transition-delay: 0.3s;
    }

    #sidebar.active .side_gnb .depth1_item:nth-child(4) {
        transition-delay: 0.4s;
    }

    #sidebar.active .side_gnb .depth1_item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .depth1_link {
        display: block;
        font-size: 22px;
        font-weight: 800;
        color: #1a1a1a;
        margin-bottom: 15px;
        position: relative;
        letter-spacing: -0.5px;
    }

    .depth2_list {
        padding-left: 2px;
    }

    .depth2_item {
        margin-bottom: 10px;
    }

    .depth2_link {
        display: flex;
        align-items: center;
        font-size: 15px;
        color: #888;
        font-weight: 500;
        padding: 5px 0;
        transition: all 0.2s;
    }

    .depth2_link:before {
        content: '';
        display: block;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #ddd;
        margin-right: 10px;
        transition: background 0.2s;
    }

    .depth2_link:hover,
    .depth2_link:active {
        color: #1a1a1a;
        padding-left: 5px;
    }

    .depth2_link:hover:before {
        background: #c0392b;
    }

    /* Footer */
    .sidebar_footer {
        padding: 30px;
        background: #fafafa;
        border-top: 1px solid #eee;
    }

    .sb_contact .label {
        font-size: 11px;
        text-transform: uppercase;
        color: #999;
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

    .sb_contact .phone {
        display: block;
        font-size: 24px;
        font-weight: 800;
        color: #1a1a1a;
        margin-bottom: 25px;
        letter-spacing: -1px;
        font-family: 'Montserrat', sans-serif;
        /* Optional distinctive font */
    }

    .btn_sidebar_consult {
        display: block;
        width: 100%;
        padding: 18px;
        background: #1a1a1a;
        color: #fff;
        text-align: center;
        font-size: 16px;
        font-weight: 700;
        border-radius: 4px;
        transition: all 0.3s;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .btn_sidebar_consult:hover {
        background: #333;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
}

/* Kakao Map Custom Overlay */
.map_overlay {
    background: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    bottom: 50px;
    /* Adjust based on marker height */
    text-align: center;
}

.map_overlay::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.map_overlay a {
    display: block;
    text-decoration: none;
    color: #333;
}

.map_overlay .title {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
}

.map_overlay .desc {
    display: block;
    font-size: 12px;
    color: #888;
}