@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: #82b429;
    /* Logo Green */
    --accent-color-hover: #6e9a24;
    /* Darker Green for hover */
    --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);
}

.mobile_btn:active span {
    background-color: var(--accent-color-hover);
}

#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;
    background-color: var(--accent-color) !important;
}

#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: 270px;
    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;
}

/* Backdrop Panel Layout */
.mega_menu_inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 15px;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* =========================================
   New Natural GNB Alignment Logic
   ========================================= */
.gnb > ul > li {
    position: relative; /* Anchor for sub-menus */
    height: 100%;
    display: flex;
    align-items: center;
}

/* Sub-menu List (Now automatically aligned with Parent) */
.mega_nav_list {
    position: absolute;
    top: 100%; /* Open exactly below the header */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 130px;
    padding: 15px 0; /* Vertical breathing room within the panel */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1005;
    text-align: center;
}

#header:hover .mega_nav_list,
#header.mega_menu_on .mega_nav_list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega_nav_list li {
    margin: 0;
    line-height: 1; /* Tightest possible vertical space */
}

.mega_nav_list li a {
    display: block;
    font-size: 15.5px;
    color: #444 !important;
    padding: 10px 0;
    font-weight: 700; /* Bold as requested */
    white-space: nowrap;
    text-shadow: none !important;
    transition: 0.2s;
}

.mega_nav_list li a:hover {
    color: var(--accent-color) !important;
    font-weight: 700;
}

/* Placeholder to keep Mega Menu inner layout stable */
.mega_nav_spacer {
    flex: 1;
}

/* Brand & Featured maintained within the backdrop panel */
.mega_brand {
    flex: 0 0 440px;
    padding-left: 40px;
}

.mega_brand h3 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #111;
    letter-spacing: -1.5px;
}

.mega_brand p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.btn_mega_consult {
    display: inline-block;
    padding: 14px 24px;
    background-color: var(--accent-color);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(130, 180, 41, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.btn_mega_consult:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 180, 41, 0.3);
}

/* Right Piece - Fully Pushed Right to avoid any overlap */
.mega_featured.motion_area {
    flex: 0 0 350px; 
    height: 240px;
    position: relative;
    right: -60px; /* Forcefully pushed further to the right edge */
    overflow: hidden;
}

.mega_featured.motion_area canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.mega_featured.motion_area .overlay_txt {
    position: absolute;
    bottom: -8px; /* Lowered significantly to avoid overlap with shapes */
    left: 50%; /* Perfect mathematical center */
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

.mega_featured.motion_area .overlay_txt .logo_typo {
    display: block;
    font-size: 19px; 
    font-weight: 800;
    color: #222; 
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6; 
    border-top: 1.2px solid var(--accent-color);
    padding-top: 12px; /* Increased to separate line from shapes */
    width: fit-content;
    margin: 0 auto;
}

/* =========================================
   Advanced Footer Styling (Dark Theme & Consultation Form)
   ========================================= */
#footer {
    background-color: #2a2a2a; /* Dark Charcoal */
    padding: 70px 0 60px;
    color: #aeaeae;
    border-top: none;
}

.footer_inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

/* Left Column: Info */
.footer_left {
    flex: 1.2;
}

.footer_logo {
    margin-bottom: 25px;
}
.footer_logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1); /* Force white logo */
}
.footer_logo_text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.footer_links {
    margin-bottom: 25px;
    font-size: 14px;
}
.footer_links a {
    color: #ccc;
    font-weight: 500;
}
.footer_links a:hover {
    color: #fff;
}
.footer_links .sep {
    display: inline-block;
    margin: 0 10px;
    color: #555;
    font-weight: 100;
}

.company_info_list {
    font-size: 13.5px;
    line-height: 1.9;
    color: #999;
}
.info_row {
    margin-bottom: 2px;
}
.info_row span {
    display: inline-block;
}
.info_row span.ml {
    margin-left: 15px;
}
.company_info_list .copyright {
    margin-top: 15px;
    font-size: 13px;
    color: #777;
    letter-spacing: 0;
}

/* Right Column: Quick Consultation */
.footer_right {
    flex: 0.8;
    background-color: #1e1e1e; /* Slightly darker box */
    padding: 40px;
    border-radius: 4px;
    min-width: 480px;
}

.consult_title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.form_body {
    display: flex;
    gap: 15px;
    align-items: stretch;
    margin-bottom: 20px;
}

.input_groups {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form_row {
    display: flex;
    align-items: center;
}
.form_row label {
    width: 60px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.form_row .itx, 
.form_row .islt {
    background-color: #fff;
    border: 1px solid #333;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    color: #222;
    border-radius: 2px;
    width: 100%;
    outline: none;
}
.form_row .itx:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(130, 180, 41, 0.3);
}

.tel_group {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}
.tel_group .islt {
    width: 75px;
}
.tel_group .itx {
    flex: 1;
}
.tel_group .dash {
    color: #555;
    font-size: 12px;
}

.btn_submit_consult {
    width: 80px;
    background-color: var(--accent-color);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn_submit_consult:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.form_footer {
    padding-left: 60px; /* Align with inputs */
}

.privacy_chk {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.privacy_chk input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Response Footer */
@media screen and (max-width: 1200px) {
    .footer_inner {
        flex-direction: column;
        gap: 50px;
    }
    .footer_right {
        min-width: 100%;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    #footer {
        padding: 50px 0;
    }
    .footer_logo img {
        height: 28px;
    }
    .company_info_list .info_row span {
        display: block;
        margin-left: 0 !important;
        margin-bottom: 5px;
    }
    .footer_right {
        padding: 30px 20px;
    }
    .form_body {
        flex-direction: column;
    }
    .btn_submit_consult {
        width: 100%;
        height: 50px;
    }
    .form_footer {
        padding-left: 0;
    }
}
@media (min-width: 1024px) {
    #sidebar {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .gnb {
        display: none;
    }

    #mega_menu {
        display: none !important;
    }

    /* Mobile Header Phone Icon (Tel) */
    .mobile_header_sns {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 20px;
        height: 100%;
        transform: translateY(-3px);
    }

    .mobile_header_sns a.tel {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 38px; /* Slightly larger for easier tapping */
        height: 38px;
        border-radius: 50%;
        background: var(--accent-color);
        color: #fff;
        font-size: 18px;
        transition: all 0.3s;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    }

    .mobile_header_sns a.tel:active {
        transform: scale(0.9);
        background: var(--accent-color-hover);
    }

    .mobile_btn {
        display: flex;
        transform: translateY(-3px);
        /* Visual alignment adjustment */
    }

    #header {
        height: 70px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: none;
    }

    #header .logo a {
        height: 40px !important;
    }

    #header .logo .text_logo_default {
        font-size: 20px !important;
        line-height: 40px !important;
    }

    #header.scrolled {
        background: rgba(0, 0, 0, 0.9) !important;
    }

    /* Fixed: Keep hamburger white on dark mobile header even when scrolled */
    #header.scrolled .mobile_btn span {
        background-color: #fff !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: var(--accent-color);
    }

    /* 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: var(--accent-color);
    }

    /* 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;
}