@charset "utf-8";

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

/* ----------------------------------------
   CSS Variables (Design Tokens)
---------------------------------------- */
: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: 2rem 5%;
    background: transparent;
    z-index: 100;
    transition: all 0.5s ease;
    box-sizing: border-box;
}

.header.scrolled {
    background: rgba(253, 253, 253, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header__container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__nav {
    display: none;
    align-items: center;
    gap: 3rem;
    flex: 1;
}

.header__nav--left {
    justify-content: flex-start;
}

.header__nav--right {
    justify-content: flex-end;
}

.header__link {
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #121212;
    transition: color 0.3s ease;
}

.header__link:hover,
.header__link--active {
    color: #c5a059;
}

.header__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.header__logo-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #660000;
    transition: opacity 0.3s ease;
}

.header__logo:hover .header__logo-main {
    opacity: 0.7;
}

.header__logo-sub {
    display: none;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: #c5a059;
    margin-top: 0.25rem;
}

.header__mobile-btn {
    padding: 0.5rem;
    color: #121212;
}

.header__menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Header Dropdown (2depth) */
.header__dropdown {
    position: relative;
}

.header__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #121212;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header__dropdown-toggle:hover {
    color: #c5a059;
}

.header__dropdown-arrow {
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.3s ease;
}

.header__dropdown[data-state="open"] .header__dropdown-arrow {
    transform: rotate(180deg);
}

.header__dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    min-width: 180px;
    background: #fff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.header__dropdown[data-state="open"] .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__dropdown-item {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #121212;
    border-bottom: 1px solid #f9fafb;
    transition: all 0.3s ease;
}

.header__dropdown-item:last-child {
    border-bottom: none;
}

.header__dropdown-item:hover {
    background: #f9fafb;
    color: #c5a059;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: #fdfdfd;
    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;
}

.mobile-nav__close svg {
    width: 100%;
    height: 100%;
}

.mobile-nav__link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #121212;
    transition: color 0.3s ease;
}

.mobile-nav__link:hover {
    color: #c5a059;
}

/* Mobile Navigation 2depth */
.mobile-nav__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
}

.mobile-nav__group-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: #c5a059;
    text-transform: uppercase;
}

.mobile-nav__sublink {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #6b7280;
    transition: color 0.3s ease;
}

.mobile-nav__sublink:hover {
    color: #121212;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.footer {
    background-color: #121212;
    color: #fdfdfd;
    padding: 10rem 5% 5rem;
}

.footer__container {
    max-width: 1440px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    margin-bottom: 10rem;
}

.footer__brand {
    grid-column: 1 / -1;
}

.footer__logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 2.5rem;
}

.footer__desc {
    color: #6b7280;
    font-weight: 300;
    line-height: 1.8;
    max-width: 24rem;
}

.footer__title {
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #c5a059;
    margin-bottom: 2.5rem;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
}

.footer__link {
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: #fdfdfd;
}

.footer__bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.5625rem;
    font-weight: 900;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #6b7280;
}

/* ----------------------------------------
   Inquiry Basket (Footer에 포함)
---------------------------------------- */
.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: 768px) {
    .header__logo-sub {
        display: block;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__brand {
        grid-column: span 2;
    }
    
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .header__nav {
        display: flex;
    }
    
    .header__mobile-btn {
        display: none;
    }
    
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer__brand {
        grid-column: span 1;
    }
}
