/* common.css - Design system variables, typography, shared components */

/* ========== Google Fonts ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Kanit:wght@400;500;600&family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Serif+KR:wght@400;600;700&display=swap');

/* ========== CSS Variables ========== */
:root {
  --color-primary: #000;
  --color-accent: #b4ccff;
  --color-bg: #fff;
  --color-bg-light: #f6f6f6;
  --color-bg-gray: #f6f7f9;
  --color-text: #333;
  --color-text-dark: #000;
  --color-text-muted: #666;
  --color-border: #ddd;
  --color-white: #fff;

  --font-kr: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-kr-serif: 'Noto Serif KR', serif;
  --font-en: 'Inter', 'Kanit', 'Montserrat', sans-serif;

  --max-width: 1200px;
  --header-height: 100px;
  --section-padding: 100px 0;
  --section-padding-mobile: 60px 0;

  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-header: 0 0 5px #ddd;

  --z-header: 100;
  --z-mobile-nav: 99;
  --z-overlay: 66;
  --z-toggle: 9999;
}

/* ========== Base Typography ========== */
body {
  font-family: var(--font-kr);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
}

h1 { font-size: 42px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
  line-height: 1.8;
  word-break: keep-all;
}

/* ========== Layout Containers ========== */
.sec-wrap {
  width: 100%;
}

.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Section Title Pattern ========== */
.tit-box {
  text-align: center;
  margin-bottom: 50px;
}

.tit-box h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.tit-box .p-box {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.tit-box .p-box p {
  margin-bottom: 4px;
}

.s-tit {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

/* ========== Buttons ========== */
.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-text-dark);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  transition: var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--color-text-dark);
  color: var(--color-text-dark);
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  transition: var(--transition);
  text-align: center;
}

.btn-outline:hover {
  background: var(--color-text-dark);
  color: var(--color-white);
}

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

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .tit-box h2 {
    font-size: 28px;
  }

  :root {
    --section-padding: 80px 0;
  }
}

@media (max-width: 780px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  .tit-box h2 {
    font-size: 24px;
  }

  .tit-box {
    margin-bottom: 30px;
  }

  .inner {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }

  .tit-box h2 {
    font-size: 22px;
  }
}
