@charset "UTF-8";

/* =========================================================
   1. CSS 변수 (디자인 시스템 - 컬러 및 레이아웃 규격)
========================================================= */
:root {
  /* ABot 브랜드 컬러 */
  --primary-color: #111111; /* 기본 텍스트 및 강조 블랙 */
  --accent-color: #e74c3c; /* ABot 로고 A (레드) */
  --brand-blue: #005a9c; /* ABot 로고 B (블루) */
  --text-main: #333333; /* 본문 텍스트 */
  --text-light: #666666; /* 서브 텍스트 */
  --bg-light: #f8f9fa; /* 밝은 회색 배경 */
  --white: #ffffff;
  --line-color: rgba(0, 0, 0, 0.06); /* 연한 테두리 색상 */

  /* 레이아웃 규격 */
  --header-height: 88px;
  --container-width: 1100px;
}

/* 페이지 상단 헤더 (Careers Hero) */
.page-header {
    padding: 180px 20px 100px;
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
    text-align: center;
}
.page-header h1 { font-size: 48px; font-weight: 900; color: var(--primary-color); margin-bottom: 20px; letter-spacing: -1px; }
.page-header p { font-size: 20px; color: var(--text-light); max-width: 800px; margin: 0 auto; word-break: keep-all; }

/* =========================================================
   유틸리티 클래스 (Utility Classes)
========================================================= */
/* 배경색 */
.bg-light {
  background-color: var(--bg-light);
}
.bg-white {
  background-color: var(--white);
}

/* 텍스트 정렬 */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* 텍스트 색상 */
.text-primary {
  color: var(--primary-color);
}
.text-accent {
  color: var(--accent-color);
}

/* =========================================================
   2. 초기화 (Reset & Base)
========================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Noto Sans KR",
    sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* =========================================================
   3. 공통 컴포넌트 (버튼, 섹션 타이틀 등)
========================================================= */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-weight: 800;
  border-radius: 8px;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
  text-align: center;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--accent-color);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.section {
  width: 100%;
  padding: 100px max(20px, calc((100vw - 1200px) / 2));
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 60px;
  color: var(--primary-color);
}
.kicker {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* =========================================================
   4. 레이아웃: 헤더 (내비게이션)
========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 5px var(--line-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 로고 스타일 및 색상 분리 */
.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-color);
}
.logo-a {
  color: var(--accent-color);
}
.logo-b {
  color: var(--brand-blue);
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: #555;
  font-weight: 700;
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* 투명 헤더 지원용 (최상단 버그 수정) */
header.transparent-header {
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none; /* 최상단일 때 블러 효과 완벽 제거 */
}

header.transparent-header .logo {
  color: var(--white);
}
/* 로고의 A, B는 고유 컬러 유지, 나머지 'ot Corp'만 흰색으로 변경 */

header.transparent-header .nav-links a {
  color: var(--white);
  background-color: transparent; /* 흰색 배경 박스 생기던 버그 수정 */
}

header.transparent-header .menu-toggle .bar {
  background-color: var(--white); /* 햄버거 메뉴 바만 흰색 배경 적용 */
}

/* =========================================================
   5. 레이아웃: 푸터 (Footer)
========================================================= */
footer {
  background-color: #0a0a0a;
  color: #aaa;
  padding: 60px 10% 40px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}
.footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
}
.footer-bottom {
  text-align: center;
  font-size: 14px;
}

/* =========================================================
   6. 모바일 반응형 (Media Queries)
========================================================= */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    text-align: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    max-height: 350px;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    color: var(--primary-color) !important;
    display: block;
    padding: 20px 0;
    border-top: 1px solid #f1f1f1;
    background-color: transparent;
  }

  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary-color) !important;
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary-color) !important;
  }

  .section {
    padding: 60px 20px;
  }
  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
