@charset "utf-8";

/* ========================================
   GLOBALNEST - Layout Stylesheet
   CSS 변수 + 리셋 + 헤더 + 푸터
======================================== */

/* ----------------------------------------
   CSS Variables (Design Tokens)
---------------------------------------- */


.inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

@media all and (max-width:1440px) {
    .inner {
        width: 93.75%;
    }
}


:root {
    /* Colors */
    --k-black: #121212;
    --k-white: #fdfdfd;
    --k-gold: #c5a059;
    --k-gray: #71717a;
    --k-light-gray: #f4f4f5;
    --k-dark-gray: #1a1a1a;

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-display: 'Montserrat', sans-serif;
    --font-base: 'Noto Sans KR', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --spacing-2xl: 12rem;

    /* Layout */
    --max-width: 1440px;
    --header-height: 80px;
    --header-height-scrolled: 60px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 1s cubic-bezier(0.19, 1, 0.22, 1);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 100px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------
   Reset & Base Styles
---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--k-white);
    color: var(--k-black);
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--k-gold);
    color: var(--k-white);
}

.grain::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* ----------------------------------------
   Typography
---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ----------------------------------------
   Layout
---------------------------------------- */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
}

.section {
    padding: var(--spacing-2xl) 5%;
}

.section__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ----------------------------------------
   Buttons
---------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.75rem 3rem;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn--primary {
    background-color: var(--k-black);
    color: var(--k-white);
}

.btn--primary:hover {
    background-color: var(--k-gold);
}

.btn--gold {
    background-color: var(--k-gold);
    color: var(--k-white);
    padding: 1.5rem 4rem;
    box-shadow: var(--shadow-lg);
}

.btn--gold:hover {
    background-color: var(--k-white);
    color: var(--k-black);
}

.btn--white {
    background-color: var(--k-white);
    color: var(--k-black);
    padding: 1.25rem 3rem;
    box-shadow: var(--shadow-md);
}

.btn--white:hover {
    background-color: var(--k-gold);
    color: var(--k-white);
}

.btn--text {
    background: none;
    color: var(--k-black);
    padding: 0;
    border-bottom: 1px solid var(--k-black);
    padding-bottom: 0.5rem;
}

.btn--text:hover {
    color: var(--k-gold);
    border-color: var(--k-gold);
}

/* ----------------------------------------
   Reveal Animation
---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    /* padding: 0 36px; */
    background: rgba(255, 255, 255, 0.20);
    z-index: 100;
    transition: all 0.5s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.header .inner {
    /* max-width: 1400px;
    margin: 0 auto; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header .logo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header .logo_main {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #6B1F2A;
    line-height: 36px;
}

.header .logo:hover .logo_main {
    opacity: 0.8;
}

.header .logo_sub {
    /* display: none; */
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #DEDEDE;
}

.header .nav {
    display: none;
    align-items: center;
    gap: 40px;
    /* padding: 0 36px; */
}

.header .nav_link {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: #E8E8E8;
    transition: color 0.3s ease;
}

.header .nav_link:hover {
    color: #6B1F2A;
}

.header .mobile_btn {
    padding: 0.5rem;
    color: #E8E8E8;
}

.header .mobile_btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Navigation */
.mobile_nav {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 101;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.mobile_nav[data-state="open"] {
    display: flex;
}

.mobile_nav_close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    width: 2rem;
    height: 2rem;
    color: #E8E8E8;
}

.mobile_nav_close svg {
    width: 100%;
    height: 100%;
}

.mobile_nav_link {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #E8E8E8;
    transition: color 0.3s ease;
}

.mobile_nav_link:hover {
    color: #FD2144;
}

/* Footer */
.footer {
    background: #181D23;
    color: #fdfdfd;
    padding: 100px 0;
}

.footer .inner {
    /* max-width: 1400px;
    margin: 0 auto; */
    /* padding: 0 36px; */
}

.footer .footer_top {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer .footer_brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 800px;
}

.footer .footer_logo {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer .footer_logo_main {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #6B1F2A;
    line-height: 40px;
}

.footer .footer_logo_sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #6E6E6E;
}

.footer .footer_desc {
    font-size: 16px;
    font-weight: 300;
    color: #6B7280;
    line-height: 1.6;
}

.footer .footer_menu {
    display: flex;
    flex-direction: column;
    gap: 48px;

    justify-content: end;
}

.footer .footer_col {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-width: 0;
}

/* .footer .footer_col:first-child {
    flex: 0 0 30%;
} */

.footer .footer_col:last-child {
    flex: 0 0 58%;
}

.footer .footer_title {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.footer .footer_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 16px;
    font-weight: 400;
    color: #9CA3AF;
}

.footer .footer_list a {
    transition: color 0.3s ease;
}

.footer .footer_list a:hover {
    color: #fdfdfd;
}

.footer .footer_divider {
    height: 1px;
    background: #3A3A3A;
    margin: 72px 0;
}

.footer .footer_bottom {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: #4B5563;
}

/* Inquiry Basket */
.inquiry_basket {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 60;
}

.inquiry_basket[data-state="hidden"] {
    display: none;
}

.inquiry_basket_toggle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: #0f172a;
    color: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.inquiry_basket_toggle:hover {
    transform: scale(1.05);
}

.inquiry_basket_toggle:active {
    transform: scale(0.95);
}

.inquiry_basket_toggle_bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inquiry_basket_toggle:hover .inquiry_basket_toggle_bg {
    opacity: 1;
}

.inquiry_basket_toggle_icon {
    width: 2rem;
    height: 2rem;
}

.inquiry_basket_count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #f43f5e;
    font-size: 0.625rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
}

.inquiry_basket_panel {
    position: absolute;
    bottom: 6rem;
    right: 0;
    width: 25rem;
    max-width: 90vw;
    background: #fdfdfd;
    border-radius: 2.5rem;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    display: none;
}

.inquiry_basket_panel[data-state="open"] {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inquiry_basket_header {
    padding: 2rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 250, 252, 0.5);
}

.inquiry_basket_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #0f172a;
}

.inquiry_basket_subtitle {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.inquiry_basket_close {
    color: #cbd5e1;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.inquiry_basket_close:hover {
    color: #0f172a;
}

.inquiry_basket_close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.inquiry_basket_items {
    max-height: 50vh;
    overflow-y: auto;
    padding: 1rem 2rem;
}

.inquiry_basket_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.inquiry_basket_item:last-child {
    border-bottom: none;
}

.inquiry_basket_item_image {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.inquiry_basket_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inquiry_basket_item_info {
    flex: 1;
    min-width: 0;
}

.inquiry_basket_item_title {
    font-size: 0.875rem;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry_basket_item_price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    font-weight: 500;
    font-style: italic;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.inquiry_basket_item_remove {
    color: #e2e8f0;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.inquiry_basket_item_remove:hover {
    color: #f43f5e;
}

.inquiry_basket_item_remove svg {
    width: 1.25rem;
    height: 1.25rem;
}

.inquiry_basket_empty {
    padding: 3rem 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    display: none;
}

.inquiry_basket_empty[data-visible="true"] {
    display: block;
}

.inquiry_basket_footer {
    padding: 2rem;
    background: rgba(248, 250, 252, 0.5);
}

.inquiry_basket_submit {
    width: 100%;
    padding: 1.25rem;
    border-radius: 1rem;
    background-color: #0f172a;
    color: #fdfdfd;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    transition: all 0.3s ease;
}

.inquiry_basket_submit:hover {
    background-color: #1e293b;
}

.inquiry_basket_submit:active {
    transform: scale(0.98);
}

/* ----------------------------------------
   Responsive Styles
---------------------------------------- */



@media (min-width: 1000px) {
    .header .logo_sub {
        display: block;
    }

        .footer .footer_top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer .footer_menu {
        flex-direction: row;
        gap: 72px;
    }

}

@media (min-width: 1024px) {
    .header .nav {
        display: flex;
    }

    .header .mobile_btn {
        display: none;
    }
}

@media all and (max-width:1400px) {
    .header .nav_link {
        font-size: 16px;
    }
    .header .nav {
        gap: 20px;
    }
    .header .logo_sub {
        letter-spacing: 1px;
    }
}

@media all and (max-width:1200px) {
     .header .nav_link {
        font-size: 14px;
    }
       .header .logo_sub {
        letter-spacing: unset;
    }
}


@media all and (max-width:1080px) {
    .header .inner {
        padding: 15px 0;
    }

    .footer {
        padding: 40px 0;
    }

    .footer .footer_divider {
        margin: 36px 0;
    }

    .footer .footer_col {
        gap: 18px;
    }

    .footer .footer_menu,
    .footer .footer_top {
        gap: 36px;
    }

    .header .logo {
        gap: 0;
    }
}