/* ── Lampstand AI — 공용 스타일 · "어두운 서재, 등불 하나" ──
   메인(ko/index.html)과 같은 다크 에디토리얼 테마. 각진 모서리(0~2px),
   잉크 배경 + 금빛 강조, 세리프 제목. en/ 페이지는 main-light.css(구버전)를 쓴다. */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@600;700;900&display=swap');

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

:root {
  --bg:          #FAF7F0;
  --text:        #16233B;
  --text-2:      rgba(28,40,66,0.74);
  --text-3:      rgba(28,40,66,0.52);
  --accent:      #96742E;
  --accent-h:    #7A5C1F;
  --accent-light:rgba(176,138,62,0.12);
  --brand:       #96742E;
  --border:      rgba(22,35,59,0.13);
  --border-gold: rgba(155,122,52,0.28);
  --surface:     #FFFFFF;   /* C: 흰 카드가 크림 위에 떠오른다 */
  --surface-2:   #F3EDE0;
  --font:        'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif:       'Noto Serif KR', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(176,138,62,0.30); color: #1A1610; }

/* ── 레이아웃 ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── 버튼 (각지고 단단하게) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 2px;
  font-size: 0.92rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; border: none; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn-primary {
  background: #16233B;
  color: #F5E9C9;
  box-shadow: 0 0 0 1px rgba(232,200,122,0.35), 0 10px 34px rgba(201,162,39,0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(232,200,122,0.6), 0 16px 44px rgba(201,162,39,0.34); }
.btn-secondary {
  background: rgba(26,22,16,0.05); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(155,122,52,0.55); background: rgba(176,138,62,0.10); color: #1A1610; }
.btn-dark {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-dark:hover { border-color: rgba(155,122,52,0.55); background: rgba(176,138,62,0.10); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 2px; }

/* ── 서브페이지 히어로 (공통) — 이미지 없이 CSS 글로우 ── */
.page-hero {
  padding: 84px 0 60px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 60% at 50% 0%, rgba(176,138,62,0.10) 0%, rgba(176,138,62,0.03) 50%, transparent 75%),
    radial-gradient(60% 50% at 85% 100%, rgba(61,107,107,0.08) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem,4vw,2.8rem); font-weight: 900;
  letter-spacing: -0.04em; margin-bottom: 16px;
  color: var(--text);
}
.page-hero p { font-size: 1.02rem; color: var(--text-2); max-width: 560px; line-height: 1.78; margin: 0 auto; }

/* ── 섹션 공통 타이포 ── */
.section-label {
  font-size: 0.76rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.25;
  margin-bottom: 16px; color: var(--text);
}
.section-desc {
  font-size: 1rem; color: var(--text-2); line-height: 1.75;
}

/* ── 헤더 (다크 글래스) ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245,242,235,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.02em;
}
.logo img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.logo-ai { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); }

/* ── 푸터 (다크) ── */
.site-footer { background: #101A2E;
  --text: #F5F0E4; --text-2: rgba(245,240,228,0.72); --text-3: rgba(245,240,228,0.5);
  --accent: #E8C87A; --brand: #E8C87A; --border: rgba(245,240,228,0.12); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand { font-size: 1rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.footer-tagline { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.footer-biz { font-size: 0.76rem; color: var(--text-3); line-height: 1.9; }
.footer-col-title {
  font-size: 0.78rem; font-weight: 700; color: var(--text-2);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: var(--text-3);
  text-decoration: none; margin-bottom: 10px; transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.78rem; color: var(--text-3); }

/* ── 카카오 플로팅 버튼 ── */
.kakao-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: #FEE500; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,22,16,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}
.kakao-float:hover { transform: scale(1.06); box-shadow: 0 6px 22px rgba(26,22,16,0.24); }
.kakao-float svg { width: 28px; height: 28px; }

/* ── 햄버거 메뉴 버튼 ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    align-items: center;
    padding: 0;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0 0 12px;
    border-top: 1px solid var(--border);
    order: 3;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    font-size: 1rem; font-weight: 500;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(26,22,16,0.08);
    color: var(--text-2);
  }
  .site-nav a:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}