/* ===== DESIGN SYSTEM ===== */
:root {
    /* Colors */
    --color-black: #111111;
    --color-gold: #C9A227;
    --color-ivory: #F2EFEA;
    --color-white: #FFFFFF;
    --color-gray: #666666;
    
    /* Typography */
    --font-primary: 'Noto Sans KR', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-ivory);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
    word-wrap: break-word;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-smooth);
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.navbar-logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
}

.navbar-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.navbar-menu a {
    color: var(--color-ivory);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0a0a0a;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.8;
    word-break: keep-all;
    word-wrap: break-word;
}

.footer-section a:hover {
    color: var(--color-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.footer-social a:hover {
    border-color: var(--color-gold);
    background-color: var(--color-gold);
    color: var(--color-black);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 102, 102, 0.3);
    color: var(--color-gray);
    font-size: 0.85rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 2px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #d4b03a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

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

/* ===== SECTION ===== */
.section {
    padding: 5rem 2rem;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    word-break: keep-all;
    word-wrap: break-word;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: rgba(242, 239, 234, 0.05);
    border: 1px solid rgba(201, 162, 39, 0.2);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.card:hover {
    background-color: rgba(242, 239, 234, 0.08);
    border-color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    color: var(--color-ivory);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card-text {
    color: var(--color-gray);
    line-height: 1.7;
    word-break: keep-all;
    word-wrap: break-word;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--color-ivory);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.9rem;
    background-color: rgba(242, 239, 234, 0.05);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--color-ivory);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: rgba(242, 239, 234, 0.08);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 968px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: rgba(17, 17, 17, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition-smooth);
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    /* Improve mobile menu links visibility and touch */
    .navbar-menu a {
        font-size: 1.1rem;
        padding: 0.8rem 0;
        display: block;
        border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    }
    
    .navbar-menu a:last-child {
        border-bottom: none;
    }
    
    /* Prevent background scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .navbar-logo {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.75rem;
    }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

.bg-dark {
    background-color: #0a0a0a;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
