/* ==========================================================================
   ga.css — 가공법 소개 페이지
   ========================================================================== */

body { overflow-x: clip; }

/* ---------- 페이지 히어로 (배너 + 탭바) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero__dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #141e30 0%, #243b55 100%);
  opacity: 0.8;
}
.page-hero__dim--60 { opacity: 0.6; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__titles {
  min-height: 430px;
  padding-top: var(--space-70);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.page-hero__kicker {
  font-size: clamp(1.039rem, 1.039rem + ((1vw - 0.2rem) * 0.561), 1.6rem);
  font-weight: 700;
  letter-spacing: 7px;
  line-height: 1.2;
}
.page-hero__sub {
  font-size: var(--fs-medium);
  line-height: 1.6;
  opacity: 0.5;
}
.page-hero__line { width: 48px; padding-block: var(--space-20); color: #fff; }
.page-hero__line svg { display: block; width: 100%; height: auto; }

.page-hero__tabs {
  background-color: #0000004f;
  display: flex;
  align-items: flex-end;
}
.page-hero__tab {
  display: block;
  padding: calc(var(--space-20) + 3px) var(--space-10);
  color: #fffffc;
  font-size: var(--fs-medium);
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease;
}
.page-hero__tab:hover { color: var(--color-primary); background-color: #0000004f; }
.page-hero__tab.is-active {
  background-color: var(--color-base);
  color: var(--color-contrast);
  border-top: 6px solid var(--color-primary);
  padding-block: var(--space-20);
}
.page-hero__tab.is-active:hover { color: var(--color-contrast); }

/* ---------- 헤드라인(인트로) ---------- */
.ga-intro { padding-block: var(--space-70); }
.ga-quote {
  color: var(--color-primary);
  font-size: var(--fs-xxx-huge);
  line-height: 1;
}
.ga-quote svg {
  display: block;
  width: 0.5em;
  height: auto;
  transform: rotate(180deg);
}
.ga-intro__title {
  margin-top: var(--space-30);
  font-size: var(--fs-xxxx-large);
  font-weight: 700;
  line-height: 1.2;
}
.ga-intro__desc {
  margin-top: var(--space-30);
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.275), 1.15rem);
  line-height: 1.6;
  color: var(--color-step-13);
}

/* ---------- 공정 섹션 (라벨 + 캐러셀) ---------- */
.ga-process { padding-block: var(--space-70); }
.ga-process__spacer { padding-block: var(--space-20); }

.ga-label {
  display: flex;
  align-items: center;
  gap: var(--space-30);
  padding-block: var(--space-50);
  border-top: 1px solid var(--color-step-4);
  border-bottom: 1px solid var(--color-step-4);
  cursor: pointer;
  transition: color 300ms ease;
}
.ga-label__num {
  flex: 0 0 4em;
  font-size: var(--fs-xxxx-large);
  line-height: 1.6;
}
.ga-label__text {
  font-size: var(--fs-large);
  line-height: 1.3;
}
.ga-label:hover { color: var(--color-primary); }

/* ---------- 공정 캐러셀 (스와이퍼) ---------- */
.ga-carousel { position: relative; overflow: visible; }
.ga-carousel__viewport { overflow: hidden; }
.ga-carousel__track {
  display: flex;
  gap: 30px;
  align-items: stretch;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.ga-carousel__slide { flex: 0 0 calc((100% - 90px) / 4 - 16px); }
@media (max-width: 1599px) { .ga-carousel__slide { flex-basis: calc((100% - 30px) / 2); } }
@media (max-width: 767px) { .ga-carousel__slide { flex-basis: 100%; } }

.ga-slide {
  position: relative;
  height: 100%;
  min-height: 50px;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ga-slide__dim {
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0.5;
  border-radius: inherit;
}
.ga-slide__body {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-50);
}
.ga-slide__body > * { margin-left: var(--root-pad-x); margin-right: var(--root-pad-x); }
.ga-slide__sub {
  font-size: var(--fs-large);
  line-height: 1.6;
  padding-bottom: var(--space-10);
}
.ga-slide__num {
  font-size: var(--fs-xxxx-large);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-primary);
}
.ga-slide__title {
  font-size: var(--fs-xxxx-large);
  font-weight: 700;
  line-height: 1.2;
}
.ga-slide__spacer { flex-grow: 1; }
.ga-slide__arrow {
  display: block;
  padding-top: var(--space-70);
  font-size: var(--fs-xxxx-large);
}
.ga-slide__arrow svg { display: block; width: 1.75em; height: auto; }

/* 내비게이션 화살표 (hover 시 표시, 트랙 바깥쪽) */
.ga-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20);
  border-radius: 100px;
  background-color: var(--color-step-19);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s ease;
}
.ga-carousel:hover .ga-carousel__arrow { opacity: 1; }
.ga-carousel__arrow .icon { font-size: var(--fs-xx-large); }
.ga-carousel__arrow--prev { left: 0; transform: translate(-100%, -50%); }
.ga-carousel__arrow--next { right: 0; transform: translate(100%, -50%); }

/* 페이지네이션 (트랙 하단 -40px) */
.ga-carousel__pagination {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}
.ga-carousel__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-step-5);
  opacity: 1;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.ga-carousel__bullet.is-active {
  width: 40px;
  border-radius: 100px;
  background-color: var(--color-step-19);
}

/* ---------- 반응형 ---------- */
@media (max-width: 780px) {
  .page-hero__kicker { letter-spacing: 4px; }
  .page-hero__tabs { flex-wrap: wrap; }
  .ga-label__num { flex-basis: 6em; }
}

/* 서브내비 탭: 전체 폭 균등 분할 (원본 정렬) */
.page-hero__tab { flex: 1 1 0; }
