/* =============================================
   ASLAN MUSICAL COMPANY - Global Styles
   Theme: Dark Theatrical + Gold
   ============================================= */

/* --- Variables --- */
:root {
    --accent: #c49a5d;
    --accent-hover: #d4aa6d;
    --accent-dark: #a37d45;
    --accent-glow: rgba(196, 154, 93, 0.15);
    --accent-glow-strong: rgba(196, 154, 93, 0.3);

    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --bg-input: #141414;

    --text-primary: #f0ede8;
    --text-secondary: #9a9a9a;
    --text-muted: #5a5a5a;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --nav-height: 80px;
    --section-padding: 120px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Typography --- */
.heading-display {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
}

.heading-1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
}

.heading-2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
}

.heading-3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.label {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.body-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 44px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow-strong);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #000;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 0;
    letter-spacing: 1px;
    font-weight: 500;
}
.btn-ghost::after {
    content: ' →';
    transition: transform 0.3s;
    display: inline-block;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 60px;
    background: transparent;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 1px;
    background: var(--accent);
}

.nav-cta {
    padding: 10px 28px !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    transition: all 0.3s !important;
}
.nav-cta:hover {
    background: var(--accent) !important;
    color: #000 !important;
}

/* Mobile menu button */
.nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-mobile-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .label { margin-bottom: 12px; }
.page-hero .heading-1 { margin-bottom: 16px; }
.page-hero .body-text {
    max-width: 560px;
    margin: 0 auto;
}

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header--center {
    text-align: center;
}
.section-header--center .body-text {
    max-width: 560px;
    margin: 12px auto 0;
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
}
.divider::before, .divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 44px 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --- Image Placeholder --- */
.img-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.06);
    font-size: 48px;
    overflow: hidden;
}

/* --- Stats --- */
.stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* --- Footer --- */
.footer {
    padding: 60px;
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-brand {
    max-width: 300px;
}
.footer-brand .nav-logo {
    margin-bottom: 16px;
    display: block;
}
.footer-brand .nav-logo img {
    height: 40px;
    width: auto;
}
.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}
.footer-links h5 {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}
.footer-social { display: flex; gap: 20px; }
.footer-social a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.3s;
}
.footer-social a:hover { color: var(--accent); }

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    .heading-display { font-size: 44px; }
    .heading-1 { font-size: 36px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats { gap: 50px; }
    .footer-inner { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --nav-height: 64px;
    }
    .container { padding: 0 20px; }
    .nav { padding: 0 20px; }
    .heading-display { font-size: 36px; }
    .heading-1 { font-size: 30px; }
    .heading-2 { font-size: 26px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats { flex-direction: column; gap: 30px; align-items: center; }
    .stat-num { font-size: 40px; }

    .nav-links { display: none; }
    .nav-mobile-btn { display: block; }

    .footer-inner { flex-direction: column; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* =============================================
   모바일 네비게이션 열림 상태
   ============================================= */
.nav.nav-open {
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
}
.nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px;
    gap: 24px;
    align-items: center;
    justify-content: center;
}
.nav.nav-open .nav-links a {
    font-size: 18px;
}

/* 햄버거 → X 변환 애니메이션 */
.nav-mobile-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-mobile-btn.open span:nth-child(2) {
    opacity: 0;
}
.nav-mobile-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 메뉴 열림 시 본문 스크롤 방지 */
body.menu-open {
    overflow: hidden;
}

/* =============================================
   스크롤 등장 애니메이션
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
