/* ============================================================
   page-common.css
   여러 페이지에 공통으로 들어가는 베이스 스타일
   - :root 브랜드 컬러 변수
   - body / scrollbar / 링크
   - hero-header (사업영역 / Solutions / 동영상 등 상단 히어로)
   - breadcrumb (#crumb)
   - page-head (제목/lead/카테고리 뱃지)
   - reveal 애니메이션, scroll-top-btn
   ============================================================ */

:root {
  --brand-dark: #103E30;
  --brand-light: #E8F0DA;
  --brand-accent: #8EB840;
  --text-strong: #1f2937;
  --text-soft: #475569;
  --line: #e5e7eb;
}

body {
  margin: 0;
  box-sizing: border-box;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text-strong);
  min-height: 100vh;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -ms-overflow-style: none;
}

a { text-decoration: none; }
::-webkit-scrollbar { display: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* ===== Hero ===== */
.hero-header {
  position: relative;
  height: 524px;
  background: #000 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  margin-top: 90px;
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1), opacity 600ms ease;
  will-change: transform, opacity;
}

.hero-title {
  font-size: 60px;
  font-weight: 600;
  margin: 0 0 96px;
}

.hero-nav {
  display: flex;
  justify-content: center;
  column-gap: 70px;
  padding-bottom: 20px;
}

.hero-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-width: 100px;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #ccc;
  text-decoration: none;
  transition: color .3s ease, transform 500ms ease, opacity 450ms ease;
  opacity: 0;
  transform: translateY(8px);
}

.hero-link::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: clamp(80px, 20vw, 120px);
  height: 3px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, .2);
  transition: background-color .3s;
}

.hero-link:hover::after, .hero-link.active::after { background: #fff; }
.hero-link:hover, .hero-link.active { color: #fff; }

.hero-header.pre-enter .hero-content {
  opacity: 0;
  transform: translateY(40px);
}

.hero-header.is-enter .hero-content {
  opacity: 1;
  transform: none;
}

.hero-header.is-enter .hero-link {
  opacity: 1;
  transform: none;
}

.hero-link:nth-child(1) { transition-delay: 260ms; }
.hero-link:nth-child(2) { transition-delay: 320ms; }
.hero-link:nth-child(3) { transition-delay: 380ms; }
.hero-link:nth-child(4) { transition-delay: 440ms; }

/* ===== Breadcrumb ===== */
#crumb {
  background: #fff;
  border-bottom: 1px solid #fff;
  margin-top: 20px;
  font-size: 15px;
}

#crumb .container {
  max-width: 1480px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
}

#crumb a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
}

#crumb .current {
  color: #103E30;
  font-weight: 600;
}

/* ===== Page heading ===== */
.page-head {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 0 24px;
  text-align: center;
}

.cat-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border: 1px solid rgba(16, 62, 48, .15);
}

.page-head h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  color: var(--brand-dark);
  margin: 18px 0 12px;
  letter-spacing: -0.6px;
}

.page-head .lead {
  color: var(--text-soft);
  font-size: clamp(15px, 1.7vw, 18px);
  margin: 0 auto;
  max-width: 760px;
  letter-spacing: -0.2px;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.reveal.inview {
  opacity: 1;
  transform: none;
}

/* ===== Scroll-top button ===== */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(16, 62, 48, .92);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { transform: translateY(-2px); }
.scroll-top-btn svg { width: 22px; height: 22px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-header { height: clamp(320px, 55vw, 420px); }
  .hero-title {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 24px;
  }
  .hero-nav { column-gap: 24px; }
  .hero-link { min-width: 80px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}
