/* ============================================================
   common.css — 공통 변수·네비게이션·푸터
   ============================================================ */

:root {
  --bg-dark: #1a1208;
  --bg-card: #231a0e;
  --bg-nav: rgba(26, 18, 8, 0.96);
  --gold: #e8a020;
  --gold-light: #f5c060;
  --gold-dark: #b87a10;
  --text-primary: #f0e6d3;
  --text-secondary: #b0956a;
  --text-muted: #7a6040;
  --border: rgba(232, 160, 32, 0.2);
  --border-hover: rgba(232, 160, 32, 0.6);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(232, 160, 32, 0.25);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s ease;
  --font-sans: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --nav-h: 68px;
}

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

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

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ── Layout Helpers ── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

section { padding: 80px 0; }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-gold {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #1a1208;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ── Divider ── */
.gold-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.gold-line.center { margin-inline: auto; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.6); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #1a1208;
  flex-shrink: 0;
}
.nav-logo .logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.nav-logo .logo-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  padding: 1rem 1.25rem 1.5rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: color var(--transition);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .btn-gold {
  margin-top: 1rem;
  text-align: center;
  justify-content: center;
}

/* ── Page offset for fixed nav ── */
main { padding-top: var(--nav-h); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f0b05;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo-text { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }

.footer-info h4, .footer-links h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.9;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  section { padding: 56px 0; }

  .nav-links { display: none; }
  .nav-cta.desktop { display: none; }
  .nav-toggle { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom { justify-content: center; text-align: center; }
}
