/* =========================================================
   HAEDAM CONSTRUCTION — SUB FOOTER
   FILE : foot-style.css
   SCOPE : #hdSubFooter
========================================================= */

#hdSubFooter {
    --hd-foot-bg: #0c1a41;
    --hd-foot-text: #f4f2ed;
    --hd-foot-muted: rgba(255, 255, 255, .55);
    --hd-foot-line: rgba(255, 255, 255, .15);
    --hd-foot-accent: #d7b98c;

    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 4%, rgba(215, 185, 140, .10), transparent 27%),
        var(--hd-foot-bg);
    color: var(--hd-foot-text);
    isolation: isolate;
}

#hdSubFooter::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .34;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

#hdSubFooter a {
    color: inherit;
    text-decoration: none;
}

#hdSubFooter .hd-sub-footer-watermark {
    position: absolute;
    right: -1.5vw;
    bottom: -3.5vw;
    z-index: -1;
    color: rgba(255, 255, 255, .025);
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: clamp(120px, 18vw, 320px);
    font-weight: 600;
    line-height: .8;
    letter-spacing: -.055em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

#hdSubFooter .hd-sub-footer-inner {
    position: relative;
    width: 100%;
    padding:
        clamp(68px, 7vw, 104px) clamp(24px, 7vw, 118px) ;
}

#hdSubFooter .hd-sub-footer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 60px;
    padding-bottom: clamp(28px, 5vw, 42px);
    border-bottom: 0px solid var(--hd-foot-line);
}

#hdSubFooter .hd-sub-footer-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

#hdSubFooter .hd-sub-footer-logo strong {
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: clamp(30px, 3vw, 47px);
    font-weight: 600;
    letter-spacing: .085em;
}

#hdSubFooter .hd-sub-footer-logo span {
    margin-top: 10px;
    color: rgba(255, 255, 255, .48);
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .29em;
}

#hdSubFooter .hd-sub-footer-message {
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(17px, 1.5vw, 23px);
    font-weight: 430;
    line-height: 1.65;
    letter-spacing: -.035em;
    font-family: "Gowun Dodum",
        "Pretendard",
        sans-serif;
}

#hdSubFooter .hd-sub-footer-inquiry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "eyebrow icon"
        "title icon";
    align-items: center;
    column-gap: 34px;
    width: clamp(280px, 29vw, 440px);
    padding: 26px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, .56);
    border-bottom: 1px solid var(--hd-foot-line);
    transition: border-color .3s ease;
}

#hdSubFooter .hd-sub-footer-inquiry::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--hd-foot-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

#hdSubFooter .hd-sub-footer-inquiry span {
    grid-area: eyebrow;
    color: rgba(255, 255, 255, .48);
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
}

#hdSubFooter .hd-sub-footer-inquiry strong {
    grid-area: title;
    margin-top: 12px;
    font-size: clamp(19px, 1.6vw, 26px);
    font-weight: 520;
    letter-spacing: -.035em;
}

#hdSubFooter .hd-sub-footer-inquiry i {
    grid-area: icon;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-style: normal;
    transition: transform .35s ease;
}

#hdSubFooter .hd-sub-footer-inquiry:hover::after {
    transform: scaleX(1);
}

#hdSubFooter .hd-sub-footer-inquiry:hover i {
    transform: translate(6px, -6px);
}

#hdSubFooter .hd-sub-footer-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 80px;
    padding: clamp(22px, 4.5vw, 44px) 0;
    border-bottom: 1px solid var(--hd-foot-line);
}

#hdSubFooter .hd-sub-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px clamp(22px, 2.2vw, 38px);
    max-width: 900px;
}

#hdSubFooter .hd-sub-footer-nav a {
    position: relative;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 500;
    white-space: nowrap;
    transition: color .25s ease;
}

#hdSubFooter .hd-sub-footer-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .3s ease;
}

#hdSubFooter .hd-sub-footer-nav a:hover {
    color: #fff;
}

#hdSubFooter .hd-sub-footer-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

#hdSubFooter .hd-sub-footer-contact {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: clamp(28px, 4vw, 70px);
}

#hdSubFooter .hd-sub-footer-contact-item span {
    display: block;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, .38);
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .18em;
}

#hdSubFooter .hd-sub-footer-contact-item a {
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: clamp(14px, 1.1vw, 17px);
    transition: color .25s ease;
}

#hdSubFooter .hd-sub-footer-contact-item a:hover {
    color: var(--hd-foot-accent);
}

#hdSubFooter .hd-sub-footer-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 0 26px;
}

#hdSubFooter .hd-sub-footer-company {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    max-width: 1000px;
    color: var(--hd-foot-muted);
    font-size: 12px;
    line-height: 1.7;
}

#hdSubFooter .hd-sub-footer-company span {
    position: relative;
}

#hdSubFooter .hd-sub-footer-company span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, .16);
    transform: translateY(-50%);
}

#hdSubFooter .hd-sub-footer-policy {
    display: flex;
    gap: 20px;
    flex: 0 0 auto;
    color: var(--hd-foot-muted);
    font-size: 12px;
}

#hdSubFooter .hd-sub-footer-policy strong {
    color: rgba(255, 255, 255, .84);
    font-weight: 600;
}

#hdSubFooter .hd-sub-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 22px;
    border-top: 0px solid rgba(255, 255, 255, .08);
}

#hdSubFooter .hd-sub-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .35);
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: 10px;
    letter-spacing: .08em;
}

#hdSubFooter .hd-sub-footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, .58);
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .16em;
    transition: color .25s ease;
}

#hdSubFooter .hd-sub-footer-top-link i {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    transition: transform .25s ease;
}

#hdSubFooter .hd-sub-footer-top-link:hover {
    color: #fff;
}

#hdSubFooter .hd-sub-footer-top-link:hover i {
    transform: translateY(-4px);
}

/* 기존 그누보드 상단 이동 버튼 */
#top_btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 50%;
    background: rgba(10, 10, 10, .88);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .25s ease;
}

#top_btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#top_btn:hover {
    background: #111;
}

#top_btn i {
    font-size: 13px;
}

@media (max-width: 1100px) {

    #hdSubFooter .hd-sub-footer-head,
    #hdSubFooter .hd-sub-footer-body {
        grid-template-columns: 1fr;
    }

    #hdSubFooter .hd-sub-footer-inquiry {
        width: min(100%, 480px);
    }

    #hdSubFooter .hd-sub-footer-contact {
        justify-content: start;
    }
}

@media (max-width: 760px) {
    #hdSubFooter .hd-sub-footer-inner {
        padding:
            64px 24px 24px;
    }

    #hdSubFooter .hd-sub-footer-head {
        gap: 42px;
        padding-bottom: 48px;
    }

    #hdSubFooter .hd-sub-footer-message br {
        display: none;
    }

    #hdSubFooter .hd-sub-footer-inquiry {
        width: 100%;
        padding-right: 4px;
    }

    #hdSubFooter .hd-sub-footer-body {
        gap: 46px;
        padding: 42px 0;
    }

    #hdSubFooter .hd-sub-footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    #hdSubFooter .hd-sub-footer-nav a {
        white-space: normal;
    }

    #hdSubFooter .hd-sub-footer-contact {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #hdSubFooter .hd-sub-footer-info,
    #hdSubFooter .hd-sub-footer-bottom {
        display: grid;
        justify-content: stretch;
    }

    #hdSubFooter .hd-sub-footer-policy {
        flex-wrap: wrap;
    }

    #hdSubFooter .hd-sub-footer-company {
        display: grid;
        gap: 5px;
    }

    #hdSubFooter .hd-sub-footer-company span::after {
        display: none;
    }

    #hdSubFooter .hd-sub-footer-top-link {
        justify-self: start;
    }
#hdSubFooter .hd-sub-footer-bottom p {
    font-size: 10px !important;

}
    #top_btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #hdSubFooter *,
    #top_btn {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}