/* ==========================================================================
   Common - 변수 / 레이아웃 / 헤더 / 푸터 / 유틸
   --------------------------------------------------------------------------
   Breakpoints (desktop-first, max-width)
     ~1280px : 작은 데스크탑
     ~1024px : 태블릿
     ~768px  : 모바일
   ========================================================================== */

/* ----- Font : NanumSquare Neo OTF (로컬, 영문/숫자 전용) -----
   영문은 한글(Pretendard)보다 가늘어 보여, 굵기 500~700 을 한 단계 굵은 파일로 매핑 (Pretendard 굵기와 시각적으로 맞춤) */
@font-face { font-family: "NanumSquare Neo"; font-weight: 300; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+2000-206F; src: url("../fonts/NanumSquareNeoOTF-Lt.otf") format("opentype"); }
@font-face { font-family: "NanumSquare Neo"; font-weight: 400; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+2000-206F; src: url("../fonts/NanumSquareNeoOTF-Rg.otf") format("opentype"); }
@font-face { font-family: "NanumSquare Neo"; font-weight: 500; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+2000-206F; src: url("../fonts/NanumSquareNeoOTF-Bd.otf") format("opentype"); }
@font-face { font-family: "NanumSquare Neo"; font-weight: 600; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+2000-206F; src: url("../fonts/NanumSquareNeoOTF-Eb.otf") format("opentype"); }
@font-face { font-family: "NanumSquare Neo"; font-weight: 700; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+2000-206F; src: url("../fonts/NanumSquareNeoOTF-Hv.otf") format("opentype"); }
@font-face { font-family: "NanumSquare Neo"; font-weight: 800; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+2000-206F; src: url("../fonts/NanumSquareNeoOTF-Hv.otf") format("opentype"); }
@font-face { font-family: "NanumSquare Neo"; font-weight: 900; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+2000-206F; src: url("../fonts/NanumSquareNeoOTF-Hv.otf") format("opentype"); }

/* ----- Variables ----- */
:root {
  /* Color */
  --c-primary: #0b5a26;
  --c-secondary: #1e3f28;
  --c-accent: #8fc22e;
  --c-text: #222;
  --c-text-sub: #666;
  --c-line: #e5e5e5;
  --c-bg: #fff;
  --c-bg-gray: #f7f7f7;
  --c-bg-green: #f9faf4;

  /* Font */
  /* 영문·숫자 = NanumSquare Neo (unicode-range 로 라틴만 적용), 한글 = Pretendard */
  --ff-base: "NanumSquare Neo", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ff-title: var(--ff-base);

  /* Layout */
  --inner-width: 1464px;
  --inner-pad: 40px;
  --header-h: 75px;

  /* Motion */
  --ease: cubic-bezier(.25, .8, .25, 1);
}

@media (max-width: 1024px) {
  :root { --inner-pad: 30px; --header-h: 70px; }
}
@media (max-width: 768px) {
  :root { --inner-pad: 20px; --header-h: 60px; }
}

/* ----- Base ----- */
body {
  font-family: var(--ff-base);
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-bg);
}
body.is-locked { overflow: hidden; }

.inner {
  width: 100%;
  max-width: calc(var(--inner-width) + var(--inner-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
}

/* ----- Button ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 66px; padding: 0 40px;
  font-size: 18px; font-weight: 600; letter-spacing: -.01em;
  transition: background .25s, color .25s;
}
.btn--green { min-width: 352px; background: var(--c-primary); color: #fff; }
.btn--green:hover { background: var(--c-accent); }
.btn--white { min-width: 352px; background: #fff; color: var(--c-secondary); }
.btn--white:hover { background: var(--c-accent); color: #fff; }

/* ----- Accessibility ----- */
.blind {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 1000;
  padding: 10px 20px; background: #000; color: #fff;
}
.skip-link:focus { top: 0; }

/* ----- Header (히어로 위 투명 오버레이) ----- */
.header {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 100%; height: var(--header-h);
  color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled, .header.is-solid { background: #fff; color: var(--c-text); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  width: 100%; max-width: calc(var(--inner-width) + var(--inner-pad) * 2); margin: 0 auto; padding: 0 var(--inner-pad);
}
.header__logo a { display: block; }
.header__logo img { height: 47px; width: auto; }
.header__logo-c { display: none !important; }
.header.is-scrolled .header__logo-w, .header.is-solid .header__logo-w, .header.is-menu-open .header__logo-w { display: none; }
.header.is-scrolled .header__logo-c, .header.is-solid .header__logo-c, .header.is-menu-open .header__logo-c { display: block !important; }

.gnb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gnb__list { display: flex; gap: 64px; }
.gnb__list a { font-size: 18px; font-weight: 600; letter-spacing: -.02em; transition: color .2s; }
.gnb__list a:hover, .gnb__list a.is-active { color: var(--c-accent); }
.gnb__mo { display: none; }

.header__cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 160px; height: 48px;
  background: var(--c-primary); color: #fff;
  font-size: 16px; font-weight: 600;
  transition: background .25s;
}
.header__cta:hover { background: var(--c-accent); }

/* 언어 전환 (KR / EN) */
.header__util { display: flex; align-items: center; gap: 28px; }
.header__lang { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.header__lang a { opacity: .5; transition: opacity .2s, color .2s; }
.header__lang a:hover, .header__lang a.is-active { opacity: 1; }
.header__lang a.is-active { color: var(--c-accent); }
.header__lang i { width: 1px; height: 10px; background: currentColor; opacity: .4; }

.menu-btn { display: none; position: relative; width: 28px; height: 20px; }
.menu-btn span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { top: 18px; }
.menu-btn.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.is-active span:nth-child(2) { opacity: 0; }
.menu-btn.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* 히어로가 헤더 아래로 들어가도록 padding-top 없음 */
#main { padding-top: 0; }

/* ----- Footer ----- */
.footer { padding: 125px 0 60px; background: var(--c-secondary); color: #fff; }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 130px; }
.footer__slogan { font-family: var(--ff-title); font-size: 42px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.footer__slogan em { color: var(--c-accent); }
.footer__bottom { font-size: 18px; }
.footer__copy { margin-bottom: 26px; font-weight: 500; }
.footer__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer__info { font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .7); }
.footer__info strong { display: block; margin-bottom: 4px; color: #fff; font-weight: 700; }
.footer__info span { display: block; }
.footer__info i { display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: rgba(255, 255, 255, .4); }
.footer__policy { display: flex; gap: 16px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.footer__policy a:hover { color: #fff; }
.footer__policy li:first-child a { font-weight: 700; color: #fff; }   /* 개인정보처리방침은 눈에 띄게 (개인정보보호위원회 작성 지침) */

/* ----- Utils ----- */
.br-pc { display: inline; }
.br-mo { display: none; }   /* 모바일(768px 이하)에서만 줄바꿈 */
.nowrap, .footer__info .nowrap { display: inline; white-space: nowrap; }   /* 하이픈 등에서 줄이 끊기지 않게 */
.pc-only { display: block; }
.mo-only { display: none; }

/* ----- Responsive ----- */
@media (max-width: 1600px) {
  :root { --header-h: 75px; }
  .header__logo img { height: 43px; }
  .gnb__list { gap: 48px; }
  .gnb__list a { font-size: 16px; }
  .header__cta { width: 148px; height: 44px; }
  .btn { height: 58px; }
  .btn--green, .btn--white { min-width: 300px; }
  .footer { padding: 80px 0 60px; }
  .footer__slogan { font-size: 36px; }
  .footer__top { padding-bottom: 80px; }
}

@media (max-width: 1280px) {
  .gnb__list { gap: 36px; }
  .gnb__list a { font-size: 14px; }
}

@media (max-width: 1024px) {
  .header__logo img { height: 34px; }
  .header__cta { display: none; }
  .header__util { margin: 0 22px 0 auto; }
  .menu-btn { display: block; z-index: 2; }
  .gnb {
    position: fixed; top: var(--header-h); left: 0; transform: none;
    width: 100%; height: calc(100vh - var(--header-h));
    background: #fff; color: var(--c-text);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .gnb.is-open { opacity: 1; visibility: visible; }
  .gnb__list { flex-direction: column; gap: 0; padding: 20px var(--inner-pad); }
  .gnb__list a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--c-line); }
  .gnb__mo { display: block; }
  .header.is-menu-open { background: #fff; color: var(--c-text); }

  .footer { padding: 70px 0 50px; }
  .footer__top { padding-bottom: 60px; }
  .footer__slogan { font-size: 30px; }
}

@media (max-width: 1280px) {
  .br-pc { display: none; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .mo-only { display: block; }
  .br-mo { display: inline; }

  .btn { height: 52px; padding: 0 28px; }
  .btn--green, .btn--white { min-width: 240px; }
  .footer__top { flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
  .footer__top .btn { display: none; }
  .footer__slogan { font-size: 24px; }
  .footer__info, .footer__policy { font-size: 14px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

/* ----- 서브페이지 공통 : 상단 비주얼 ---------------------------------- */
.sec-visual { position: relative; overflow: hidden; background: #333; }
.sec-visual__bg img { width: 100%; height: auto; min-height: 360px; object-fit: cover; }
.sec-visual__txt {
  /* 텍스트 묶음을 세로 중앙 기준으로 배치: 제목이 두 줄로 길어져도 위아래로 균형 있게 늘어남 */
  position: absolute; top: 59%; left: 0; right: 0; transform: translateY(-50%);
  text-align: center; color: #fff;
}
.sec-visual__title { font-size: 54px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.sec-visual__desc { margin-top: 28px; font-size: 18px; line-height: 1.6; letter-spacing: -.02em; }

@media (max-width: 1600px) {
  .sec-visual__title { font-size: 44px; }
  .sec-visual__desc { margin-top: 22px; }
}
@media (max-width: 1024px) {
  .sec-visual__txt { top: 60%; padding: 0 var(--inner-pad); }
  .sec-visual__title { font-size: 34px; }
  .sec-visual__desc { margin-top: 14px; }
}
@media (max-width: 768px) {
  .sec-visual__bg img { min-height: 300px; }
  .sec-visual__txt { top: 64%; }
  .sec-visual__title { font-size: 26px; }
  .sec-visual__desc { margin-top: 10px; }
  .sec-visual__desc { word-break: keep-all; }
}

/* ----- 서브페이지 공통 : 하단 CTA ------------------------------------- */
.sec-contact { position: relative; overflow: hidden; background: #e2e8e5; }
.sec-contact__bg { width: 100%; height: auto; min-height: 380px; object-fit: cover; }
.sec-contact__txt {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 224px 20px 0; text-align: center;
}
.sec-contact__eyebrow { font-size: 20px; line-height: 1.5; letter-spacing: -.02em; color: #222; }
.sec-contact__title { margin: 25px 0 51px; font-size: 48px; font-weight: 700; line-height: 1.3; letter-spacing: -.03em; color: #000; }

@media (max-width: 1600px) {
  .sec-contact__txt { padding-top: 16%; }
  .sec-contact__title { margin: 20px 0 40px; font-size: 42px; }
}
@media (max-width: 1024px) {
  .sec-contact__bg { min-height: 420px; }
  .sec-contact__txt { padding-top: 0; justify-content: center; }
  .sec-contact__eyebrow { font-size: 17px; }
  .sec-contact__title { margin: 14px 0 30px; font-size: 32px; }
}
@media (max-width: 768px) {
  .sec-contact__bg { min-height: 340px; }
  .sec-contact__eyebrow { font-size: 14px; }
  .sec-contact__title { font-size: 24px; }
}


/* ----- Interaction : 스크롤 등장 / 호버 -------------------------------- */
/* JS 가 <html class="js"> 를 붙인 경우에만 숨김 처리 (JS 비활성 시에도 콘텐츠 노출) */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 40px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.btn, .header__cta { position: relative; overflow: hidden; }
.btn:active, .header__cta:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .sec-intro__track { animation: none !important; }
  .sec-hero__bg img { animation: none !important; }
}

/* ----- 모바일 : 작은 텍스트 크기 통일 + 줄바꿈 균일화 ------------------ */
@media (max-width: 768px) {
  /* 영문 소제목(eyebrow) 14px */
  body .sec-hero__eyebrow,
  body .sec-intro__eyebrow,
  body .sec-partners__eyebrow,
  body .sec-ceo__eyebrow,
  body .sec-values__eyebrow,
  body .sec-history__eyebrow,
  body .sec-inside__eyebrow,
  body .sec-lead__eyebrow,
  body .sec-tech__eyebrow,
  body .sec-area__eyebrow,
  body .sec-dev__eyebrow,
  body .sec-cert__eyebrow,
  body .sec-pj__eyebrow,
  body .sec-ptn__eyebrow,
  body .sec-qc__eyebrow,
  body .sec-prod__eyebrow { font-size: 14px; line-height: 1.5; }

  /* 서브카피·설명 15px */
  body .sec-hero__desc,
  body .sec-visual__desc,
  body .sec-biz__desc,
  body .sec-cta__eyebrow,
  body .sec-contact__eyebrow,
  body .sec-intro__desc,
  body .sec-feat__desc,
  body .sec-oem__desc,
  body .sec-qc__desc,
  body .sec-prod__desc,
  body .sec-lead__desc,
  body .sec-area__desc,
  body .sec-dev__desc,
  body .sec-inside__desc,
  body .sec-values__desc,
  body .sec-history__list li,
  body .sec-map__info,
  body .sec-cert__nm,
  body .sec-pj__count,
  body .sec-pj__brand,
  body .sec-prod__item p,
  body .sec-ceo__txt p:not(.sec-ceo__lead):not(.sec-ceo__sign) { font-size: 15px; line-height: 1.65; }

  /* 날짜·푸터 등 보조 텍스트 14px */
  body .sec-news__date,
  body .footer__info,
  body .footer__policy,
  body .footer__bottom { font-size: 14px; }

  /* 줄바꿈: 수동 <br> 대신 글자 수가 고르게 나뉘도록 자동 균형 */
  body .sec-hero__desc,
  body .sec-visual__desc,
  body .sec-biz__desc,
  body .sec-cta__eyebrow,
  body .sec-contact__eyebrow,
  body .sec-intro__desc,
  body .sec-feat__desc,
  body .sec-oem__desc,
  body .sec-qc__desc,
  body .sec-prod__desc,
  body .sec-lead__desc,
  body .sec-area__desc,
  body .sec-dev__desc,
  body .sec-inside__desc,
  body .sec-values__desc,
  body .sec-history__list li,
  body .sec-map__info,
  body .sec-cert__nm,
  body .sec-pj__count,
  body .sec-pj__brand,
  body .sec-prod__item p,
  body .sec-ceo__txt p:not(.sec-ceo__lead):not(.sec-ceo__sign),
  body .sec-hero__title,
  body .sec-intro__title,
  body .sec-biz__tit,
  body .sec-cta__title,
  body .sec-partners__title,
  body .sec-news__title,
  body .sec-map__title,
  body .sec-visual__title,
  body .sec-ceo__title,
  body .sec-ceo__lead,
  body .sec-values__title,
  body .sec-history__title,
  body .sec-inside__title,
  body .sec-lead__title,
  body .sec-tech__title,
  body .sec-area__title,
  body .sec-dev__title,
  body .sec-cert__title,
  body .sec-qc__title,
  body .sec-prod__title,
  body .sec-contact__title,
  body .sec-pj__title,
  body .sec-ptn__title,
  body .sec-feat__tit,
  body .sec-tech__tit,
  body .sec-area__tit,
  body .sec-oem__note,
  body .sec-oem__full,
  body .footer__slogan,
  body .sec-pj__name,
  body .sec-inside__tit,
  body .sec-values__tag,
  body .sec-values__name,
  body .sec-hero__eyebrow,
  body .sec-intro__eyebrow,
  body .sec-partners__eyebrow,
  body .sec-ceo__eyebrow,
  body .sec-values__eyebrow,
  body .sec-history__eyebrow,
  body .sec-inside__eyebrow,
  body .sec-lead__eyebrow,
  body .sec-tech__eyebrow,
  body .sec-area__eyebrow,
  body .sec-dev__eyebrow,
  body .sec-cert__eyebrow,
  body .sec-pj__eyebrow,
  body .sec-ptn__eyebrow,
  body .sec-qc__eyebrow,
  body .sec-prod__eyebrow { text-wrap: balance; }
  body .sec-hero__desc br,
  body .sec-visual__desc br,
  body .sec-biz__desc br,
  body .sec-cta__eyebrow br,
  body .sec-contact__eyebrow br,
  body .sec-intro__desc br,
  body .sec-feat__desc br,
  body .sec-oem__desc br,
  body .sec-qc__desc br,
  body .sec-prod__desc br,
  body .sec-lead__desc br,
  body .sec-area__desc br,
  body .sec-dev__desc br,
  body .sec-inside__desc br,
  body .sec-values__desc br,
  body .sec-history__list li br,
  body .sec-map__info br,
  body .sec-cert__nm br,
  body .sec-pj__count br,
  body .sec-pj__brand br,
  body .sec-prod__item p br,
  body .sec-ceo__txt p:not(.sec-ceo__lead):not(.sec-ceo__sign) br,
  body .sec-hero__title br,
  body .sec-intro__title br,
  body .sec-biz__tit br,
  body .sec-cta__title br,
  body .sec-partners__title br,
  body .sec-news__title br,
  body .sec-map__title br,
  body .sec-visual__title br,
  body .sec-ceo__title br,
  body .sec-ceo__lead br,
  body .sec-values__title br,
  body .sec-history__title br,
  body .sec-inside__title br,
  body .sec-lead__title br,
  body .sec-tech__title br,
  body .sec-area__title br,
  body .sec-dev__title br,
  body .sec-cert__title br,
  body .sec-qc__title br,
  body .sec-prod__title br,
  body .sec-contact__title br,
  body .sec-pj__title br,
  body .sec-ptn__title br,
  body .sec-feat__tit br,
  body .sec-tech__tit br,
  body .sec-area__tit br,
  body .sec-oem__note br,
  body .sec-oem__full br,
  body .footer__slogan br,
  body .sec-pj__name br,
  body .sec-inside__tit br,
  body .sec-values__tag br,
  body .sec-values__name br,
  body .sec-hero__eyebrow br,
  body .sec-intro__eyebrow br,
  body .sec-partners__eyebrow br,
  body .sec-ceo__eyebrow br,
  body .sec-values__eyebrow br,
  body .sec-history__eyebrow br,
  body .sec-inside__eyebrow br,
  body .sec-lead__eyebrow br,
  body .sec-tech__eyebrow br,
  body .sec-area__eyebrow br,
  body .sec-dev__eyebrow br,
  body .sec-cert__eyebrow br,
  body .sec-pj__eyebrow br,
  body .sec-ptn__eyebrow br,
  body .sec-qc__eyebrow br,
  body .sec-prod__eyebrow br { display: none; }

  /* 위에서 숨긴 <br> 중 모바일 전용 줄바꿈(.br-mo)은 유지 - 영문 페이지에서 어색한 줄바꿈 보정용 */
  html body br.br-mo { display: inline; }

  /* 영문: 뉴스 제목이 한 단어만 남지 않도록 균형 줄바꿈 */
  html[lang="en"] .sec-news__tit,
  html[lang="en"] .pg-news__tit { text-wrap: balance; }
}
