/* =================================================================
   1. 기본 & 전역 스타일 (Variables & Global Styles)
==================================================================== */

:root {
  /* 색상 변수: 여기서 색을 바꾸면 사이트 전체에 일관되게 적용됩니다. */
  --primary-color: #007bff;
  --secondary-color: #00c6ff;
  --white-color: #ffffff;
  --text-dark: #333;
  --text-light: #555;
  --bg-light: #f9f9f9;
  --footer-text-color: #6c757d;
}

/* 모든 요소의 기본 여백을 제거하고, 크기 계산 방식을 통일합니다. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* padding과 border가 width/height에 포함되도록 설정 */
}

/* body의 기본 폰트, 줄 간격, 색상 및 줄바꿈 규칙을 설정합니다. */
body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white-color);
  word-break: keep-all; /* 단어 단위로 줄바꿈하여 가독성 향상 */
}

/* =================================================================
   2. 헤더 (Header)
==================================================================== */

header {
  background: var(--white-color);
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky; /* 스크롤 시 상단에 고정되는 효과 */
  top: 0;
  z-index: 1000; /* 다른 요소들 위에 표시되도록 설정 */
  width: 100%;
}

header .container {
  display: flex;
  justify-content: space-between; /* 로고와 메뉴를 양쪽 끝으로 정렬 */
  align-items: center; /* 세로 중앙 정렬 */
}

header .logo a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem; /* 메뉴 아이템 사이의 간격 */
}

header nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--primary-color);
}

/* =================================================================
   3. 레이아웃 & 공용 컴포넌트 (Layout & Components)
==================================================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 공통 버튼 스타일 */
.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.4);
}

/* 흰색 배경의 버튼 스타일 */
.cta-button.cta-white {
  background: var(--white-color);
  color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button.cta-white:hover {
  background-color: #f8f9fa; /* 마우스를 올렸을 때 살짝 어두운 흰색으로 변경 */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 흰색 배경의 보조 버튼 */
.cta-button.secondary-cta {
  background: var(--white-color);
  color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary-cta:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* =================================================================
   4. 페이지 섹션별 스타일 (Page Sections)
==================================================================== */

/* 메인 히어로 섹션 */
.hero-main {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  text-align: center;
  padding: 6rem 1.5rem;
}

.hero-main h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-main p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
  opacity: 0.9;
}

/* 특징 소개 섹션 */
.features-section {
  background-color: var(--bg-light);
  padding: 6rem 1.5rem; /* 위아래 여백을 넉넉하게 */
}

/* 박스칸을 없애는 스타일로 수정 */
.features-section .container {
  background-color: transparent; /* 배경색을 투명하게 */
  padding: 0; /* 내부 여백 제거 */
  border-radius: 0; /* 모서리 둥글기 제거 */
  box-shadow: none; /* 그림자 효과 제거 */
  max-width: 1100px; /* .container의 기본 너비로 확장 */
  text-align: center; /* 텍스트는 중앙 정렬 유지 */
}

.features-section h2 {
  font-size: 2.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.features-section .subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px; /* 부제목의 줄 길이를 적절하게 조절 */
  margin-left: auto;
  margin-right: auto;
}

/* 특징 목록(ul)은 가운데 배치하되, 내부 텍스트는 왼쪽 정렬 */
.feature-list {
  list-style: none; /* 기본 점 제거 */
  padding: 0;
  display: inline-block; /* 블록 전체를 가운데 정렬하기 위함 */
  text-align: left; /* 내부 텍스트는 왼쪽 정렬하여 가독성 확보 */
  margin-bottom: 3rem;
}

.feature-list li {
  display: flex; /* 아이콘과 텍스트를 정렬하기 위함 */
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  gap: 0.75rem; /* 아이콘과 텍스트 사이 간격 */
}

/* 목록 아이템 사이에만 여백 추가 */
.feature-list li + li {
  margin-top: 1rem;
}

/* 회사소개, 고객상담 등 일반 콘텐츠 섹션 */
.content-section {
  padding: 5rem 1.5rem;
  border-bottom: 1px solid #f1f1f1;
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.content-section p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* 푸터 (페이지 하단) */
footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: var(--bg-light);
  color: var(--footer-text-color);
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer p:last-child {
  margin-bottom: 0;
}

/* =================================================================
   5. 반응형 디자인 (Responsive Design)
==================================================================== */

@media (max-width: 768px) {
  /* 모바일 헤더 */
  header {
    text-align: center;
  }
  header .container {
    flex-direction: column;
    gap: 0.8rem;
  }

  /* 모바일 히어로 섹션 */
  .hero-main {
    padding: 4rem 1.5rem;
  }
  .hero-main h1 {
    font-size: 2.2rem;
  }
  .hero-main p {
    font-size: 1.1rem;
  }

  /* 모바일 기타 섹션 */
  .features-section,
  .content-section {
    padding: 4rem 1.5rem;
  }
  .features-section h2,
  .content-section h2 {
    font-size: 1.8rem;
  }
}

/* =================================================================
  4.5. FAQ 섹션 스타일
==================================================================== */
#faq h2 {
    /* FAQ 섹션의 제목 스타일은 primary-color를 유지합니다. */
    color: var(--primary-color);
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px; /* 각 FAQ 항목 사이의 간격 */
    overflow: hidden; /* 모서리 둥글게 처리된 부분에서 내용이 튀어나오지 않도록 함 */
}

.faq-question {
    padding: 18px 25px; /* 질문 영역의 내부 여백 */
    background-color: var(--bg-light);
    cursor: pointer; /* 클릭 가능한 요소임을 시각적으로 나타냄 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9e9e9;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.faq-question::after {
    content: '▶'; /* 닫힌 상태를 나타내는 아이콘 */
    font-size: 0.9rem;
    color: var(--primary-color);
    transform: rotate(90deg); /* 닫힌 상태에서 화살표를 오른쪽으로 돌림 */
    transition: transform 0.3s ease;
}

/* 질문 클릭 시 아이콘 회전 */
.faq-question.active::after {
    transform: rotate(-90deg); /* 열린 상태에서 화살표를 아래로 돌림 */
}

.faq-answer {
    padding: 20px 25px;
    background-color: var(--white-color);
    display: none; /* JavaScript를 통해 제어될 초기 상태 */
}

.faq-answer ol {
    margin-top: 10px;
    list-style-position: inside; /* 번호가 안쪽으로 오도록 설정 */
}

.faq-answer p, .faq-answer li {
    font-size: 1rem;
    color: var(--text-light);
}

.faq-answer strong {
    color: var(--text-dark);
}

/* =================================================================
  5. 반응형 디자인 (Responsive Design) - FAQ 섹션
==================================================================== */

@media (max-width: 768px) {
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1rem;
    }
    .faq-answer {
        padding: 15px 20px;
    }
}