/* ============================================================
   대성화스너 — 전역 공통 스타일
   ────────────────────────────────────────────────────────────
   모든 페이지가 이 파일을 로드합니다. CSS 변수·reset·전역 효과
   (grain·cursor·scroll-progress·nav·footer)·기본 버튼 스타일만
   담겨 있고, 페이지별 고유 스타일은 src/assets/css/<page>.css 로
   분리됩니다.
   ============================================================ */

:root {
  /* 배경 */
  --bg:       #FFFFFF;
  --bg-soft:  #F6F9F7;
  --bg-tint:  #ECF5EF;
  --bg-dark:  #0B1410;

  /* 경계선 */
  --border:        #E5E9E6;
  --border-hover:  #CCD5CF;

  /* 그린 팔레트 */
  --green:        #16A34A;
  --green-bright: #22C55E;
  --green-soft:   #4ADE80;
  --green-tint:   #DCFCE7;
  --green-bg:     #F0FDF4;
  --green-dark:   #0F7A37;

  /* 텍스트 */
  --text-1:       #0B1410;
  --text-2:       #3F4A42;
  --text-3:       #6B7A70;
  --text-4:       #9AA69E;
  --text-on-dark:    #F5F7FA;
  --text-on-dark-2:  #B6BECC;

  /* 그림자 */
  --shadow-sm:  0 1px  2px rgba(11, 20, 16, 0.04);
  --shadow:     0 4px  16px rgba(11, 20, 16, 0.06);
  --shadow-lg:  0 12px 40px rgba(11, 20, 16, 0.08);
  --shadow-xl:  0 24px 80px rgba(11, 20, 16, 0.12);

  /* 폰트 */
  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'IBM Plex Mono', Menlo, Monaco, Consolas, monospace;

  /* 이징 */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
em { font-style: normal; }
html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }

@media (pointer: coarse) { body { cursor: default; } }
::selection { background: var(--green); color: #fff; }

/* ============================================================
   그레인 오버레이
   ============================================================ */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='5'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   커스텀 커서
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.2px solid rgba(255, 255, 255, 0.55);
  transition: width 0.3s var(--ease-expo), height 0.3s var(--ease-expo), border-color 0.3s, transform 0.12s linear;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--green-soft);
  background: rgba(74, 222, 128, 0.06);
}
.cursor-dot.hover { width: 4px; height: 4px; }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   스크롤 progress 바
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--green);
  z-index: 9999;
  transition: width 0.05s linear;
}

/* =================== NAV =================== */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 18px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav.dark-mode { background: rgba(11, 20, 16, 0); }
  .nav.dark-mode .nav-logo,
  .nav.dark-mode .nav-menu a,
  .nav.dark-mode .lang-toggle {
    color: rgba(255, 255, 255, 0.92);
  }
  .nav.scrolled {
    padding: 12px 48px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
  }
  .nav.scrolled.dark-mode {
    background: rgba(11, 20, 16, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-1);
    letter-spacing: -0.01em;
    transition: color 0.3s;
  }
  .nav-logo svg { width: 28px; height: 28px; }
  .nav-menu { display: flex; gap: 36px; list-style: none; }
  .nav-menu a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s;
    position: relative;
  }
  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-expo);
  }
  .nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
  .nav-menu a:hover { color: var(--green); }
  .nav-menu a.active { color: var(--green); font-weight: 600; }
  .nav.dark-mode .nav-menu a:hover { color: var(--green-soft); }
  .nav.dark-mode .nav-menu a.active { color: var(--green-soft); font-weight: 600; }
  .nav-right { display: flex; align-items: center; gap: 20px; }
  .lang-toggle {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.1em;
    cursor: none;
    transition: color 0.25s;
  }
  .lang-toggle:hover { color: var(--green); }

  

/* BUTTONS */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: none;
    transition: all 0.3s var(--ease-expo);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
  }
  .btn-nav-cta {
    padding: 10px 20px;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
  }
  .nav.dark-mode .btn-nav-cta {
    background: var(--green);
    color: #fff;
  }
  .btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
    background: var(--green);
    color: #fff;
  }
  

/* =================== FOOTER CTA =================== */
  .footer-cta {
    position: relative;
    padding: 140px 48px;
    background: var(--bg-dark);
    overflow: hidden;
    text-align: center;
  }
  .footer-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(11, 20, 16, 0.8), rgba(11, 20, 16, 0.92)),
      url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=2400&q=80');
    opacity: 0.6;
  }
  .footer-cta-glow {
    position: absolute;
    top: -10%; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.2) 0%, transparent 60%);
  }
  .footer-cta-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
  }
  .footer-cta h2 {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #FFFFFF;
  }
  .footer-cta h2 .grad {
    color: var(--green-soft);
  }
  .footer-cta p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 48px;
    line-height: 1.6;
  }
  .footer-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }

  

/* 📌 공통 네비게이션 드롭다운                       */
  /* ============================================== */
  .nav-menu li { position: relative; }
  .nav-menu li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 180px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 14px 40px -8px rgba(11, 20, 16, 0.18), 0 4px 12px -2px rgba(11, 20, 16, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease-expo), transform 0.22s var(--ease-expo), visibility 0.22s;
    list-style: none;
    z-index: 1000;
    margin: 0;
  }
  .nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
  }
  .nav-menu li.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown li { width: 100%; }
  .nav-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--text-1) !important;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
  }
  .nav-dropdown a::after { display: none !important; }
  .nav-dropdown a:hover {
    background: var(--green-bg);
    color: var(--green-dark) !important;
  }
  .nav.dark-mode .nav-dropdown a { color: var(--text-1) !important; }

  @media (max-width: 768px) {
    .nav-dropdown { display: none; }
  }


/* ============================================================
   SITE FOOTER — 다단 다크 푸터
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 72px 48px 0;
  margin-top: 0;
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 56px;
}

/* ─── 좌측: 브랜드 ───────────────────────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-on-dark);
}
.footer-logo svg {
  width: 36px; height: 36px;
  color: var(--green-soft);
}
.footer-logo-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-2);
  text-transform: uppercase;
}

/* ─── 컬럼 공통 ──────────────────────────────────────── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-on-dark-2);
}

/* ─── 연락처 컬럼 (Tel / Fax 라벨 + 값 정렬) ─────────── */
.footer-col-contact .footer-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.footer-contact-label {
  display: inline-block;
  min-width: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-4);
  text-transform: uppercase;
}
.footer-contact-value {
  font-size: 14px;
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
}

/* ─── 하단 카피라이트 줄 ─────────────────────────────── */
.site-footer-base {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-copyright {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-4);
  letter-spacing: 0.03em;
}

/* ─── 반응형 ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-footer {
    padding: 56px 32px 0;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .site-footer-base {
    padding: 20px 0;
    text-align: center;
    justify-content: center;
  }
}
