/* ==========================================================================
   reset.css — 신원스틸(주) 홈페이지 CSS 초기화
   모던 CSS Reset + CSS 커스텀 프로퍼티 정의
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS 커스텀 프로퍼티 (전역 변수)
   -------------------------------------------------------------------------- */
:root {
  /* 색상 */
  --color-primary:    #1B64DA;
  --color-primary-dark: #154faf;
  --color-dark:       #191F28;
  --color-gray:       #6B7684;
  --color-gray-light: #98A2B3;
  --color-bg-light:   #F2F4F6;
  --color-border:     #E5E8EB;
  --color-white:      #FFFFFF;

  /* 타이포그래피 */
  --font-family:      'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --font-size-h1:     52px;
  --font-size-h2:     36px;
  --font-size-section-title: 28px;
  --font-size-body:   16px;
  --font-size-label:  13px;
  --font-size-small:  14px;

  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semibold: 600;
  --font-weight-bold:    700;

  --line-height-h1:   1.2;
  --line-height-h2:   1.3;
  --line-height-body: 1.7;

  --letter-spacing-label: 2px;

  /* 레이아웃 */
  --container-max-width: 1200px;
  --container-padding:   40px;

  /* 여백 */
  --section-padding:  120px;

  /* 테두리 */
  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 12px;
  --border-radius-pill: 100px;

  /* 그림자 */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.12);

  /* 트랜지션 */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.5s ease;

  /* GNB */
  --gnb-height:       72px;
  --util-bar-height:  36px;
  --sub-nav-width:    240px;

  /* z-index 레이어 */
  --z-base:       1;
  --z-dropdown:   100;
  --z-gnb:        1000;
  --z-overlay:    1100;
  --z-modal:      1200;
}

/* --------------------------------------------------------------------------
   박스 사이징 전체 적용
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   HTML / 바디 기본값
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size-adjust: 0.5;
}

/* --------------------------------------------------------------------------
   마진 / 패딩 초기화
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd, ol, ul,
figure, fieldset, legend,
hr, address {
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   제목 기본 스타일
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   리스트 스타일 제거
   -------------------------------------------------------------------------- */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   링크 기본 스타일 제거
   -------------------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* --------------------------------------------------------------------------
   이미지 / 비디오 / 미디어
   -------------------------------------------------------------------------- */
img,
video,
picture,
svg,
canvas {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
  border-style: none;
}

/* --------------------------------------------------------------------------
   버튼 초기화
   -------------------------------------------------------------------------- */
button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* --------------------------------------------------------------------------
   폼 요소 초기화
   (체크박스·라디오는 제외 — appearance:none 하면 모양이 사라짐)
   -------------------------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* 체크박스 / 라디오 기본 스타일 유지 + 커서만 변경 */
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   테이블 초기화
   -------------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

th, td {
  padding: 0;
  text-align: left;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   기타 요소 초기화
   -------------------------------------------------------------------------- */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

address {
  font-style: normal;
}

strong, b {
  font-weight: var(--font-weight-bold);
}

em, i {
  font-style: italic;
}

/* 선택 영역 색상 */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* 스크롤바 스타일 (웹킷) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-light);
}
