/* ==========================================================
   common.css — 디자인 토큰 / 리셋 / 공통
   원본: Figma MAIN/Selected01 (1920 기준, 컨테이너 1400px)
   ========================================================== */

:root {
  /* 컬러 토큰 */
  --main-brand: #00592d;      /* 브랜드 그린 */
  --main-ink: #172e24;        /* 진한 본문 */
  --main-muted: #586961;      /* 흐린 본문 */
  --main-line: #dde7df;       /* 카드 보더/구분선 */
  --main-pale: #e6f2eb;       /* 아이콘 디스크 연녹 */
  --main-cream: #fafaf1;      /* 자원봉사 카드 크림 */
  --main-gray: #e8eeea;       /* 갤러리 플레이스홀더 */
  --hero-bg: #f0f7f1;         /* 히어로 배경 */
  --strip-bg: #dde7df;        /* 연락처 스트립 배경 */
  --main-white: #ffffff;

  /* 레이아웃 (1920 디자인 기준 — 반응형으로 축소) */
  --container: 1400px;        /* 내용 컨테이너 (1920에서 좌우 여백 260px) */

  /* 서체 */
  --font-main: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --font-kr: 'Noto Sans KR', sans-serif;
}

/* 리셋 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  color: var(--main-ink);
  background: var(--main-white);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, li { list-style: none; }
hr { border: 0; }

/* 공통 컨테이너 — 1920에서 1400px, 그 이하는 유동 폭 */
.container {
  width: min(var(--container), calc(100% - clamp(24px, 12vw, 48px)));
  margin: 0 auto;
}

/* 섹션 공통 타이틀/설명 (clamp로 유동 축소) */
.sec-title {
  font-size: clamp(32px, 3.43vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--main-ink);
}
.sec-desc {
  margin-top: 24px;
  font-size: clamp(15px, 1.71vw, 24px);
  line-height: 1.4;
  color: var(--main-muted);
}

/* 공통 버튼 (Figma Button/자세히 보기 등) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 56px;
  padding: 16px;
  border-radius: 6px;
  font-family: var(--font-kr);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
  transition: opacity .2s ease, background-color .2s ease;
}
.btn img { width: 18px; height: 18px; object-fit: contain; }
.btn--brand { background: var(--main-brand); color: var(--main-white); }
.btn--brand:hover { opacity: .9; }
.btn--outline { background: var(--main-white); border: 1px solid var(--main-line); color: var(--main-brand); }
.btn--outline:hover { background: var(--main-pale); }

/* 브라우저 기본 면까지 디자인 체계로 — 선택색·포커스 링도 그린으로 */
::selection { background: var(--main-brand); color: var(--main-white); }
:focus-visible {
  outline: 2px solid var(--main-brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================
   클릭형 UI 드래그 방지 — GNB·탭·버튼·게시판·카드 등
   링크/버튼의 텍스트 선택과 이미지 드래그 고스트를 막는다.
   본문 문단(제목·본문 텍스트) 선택은 영향받지 않는다.
   ========================================================== */
a, button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
