/* =========================================================
   common.css (FINAL STABLE)
========================================================= */
:root{
  --container:1600px;
  --header-h:80px;
  --text:#0f172a;
  --line:rgba(15,23,42,.10);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans KR",sans-serif;
  color:var(--text);
  background:#fff;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position:fixed;
  top:0;left:0;
  width:100%;
  height:var(--header-h);
  z-index:100;
  background:#fff;
  transition:background .25s ease, box-shadow .25s ease;
}

/* 메인: 투명 시작 */
body.is-main .site-header:not(.scrolled){
  background:transparent;
  box-shadow:none;
}

.site-header.scrolled{
  background:#fff;
  box-shadow:0 8px 28px rgba(0,0,0,.08);
}

.header-inner{
  max-width:var(--container);
  height:100%;
  margin:0 auto;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* LOGO */
.logo{margin:0;}
.logo img{height:60px;}

.logo .logo--dark{display:block;}
.logo .logo--light{display:none;}
body.is-main .site-header:not(.scrolled) .logo .logo--light{display:block;}
body.is-main .site-header:not(.scrolled) .logo .logo--dark{display:none;}

/* =========================================================
   GNB
========================================================= */
.gnb ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:42px;
  align-items:center;
  position:relative;
}

.gnb a{
  font-size:18px;
  font-weight:700;
  padding:8px 0;
  color:#111;
}

/* index 투명일 때 글씨 흰색 */
body.is-main .site-header:not(.scrolled) .gnb a{
  color:#fff;
}

/* 슬라이딩 라인 색상: 투명일 때 흰색 / 스크롤 후 검정 */
body.is-main .site-header:not(.scrolled) .gnb{
  color:#fff;
}
.site-header.scrolled .gnb{
  color:#111;
}

/* 밑줄 방지 */
.gnb a,
.gnb a:hover,
.gnb a:focus{
  text-decoration:none;
}

/* Sliding line */
.gnb__line{
  position:absolute;
  left:0;
  bottom:-10px;
  width:0;
  height:3px;
  border-radius:999px;
  background:currentColor;
  transition:left .35s cubic-bezier(.22,.61,.36,1),
             width .35s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;
}

/* =========================================================
   COMPANY HERO (공통 배너)
========================================================= */
.company-hero{
  margin-top:var(--header-h);
  height:260px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:linear-gradient(135deg,#eef5ff 0%,#dcecff 45%,#cfe3ff 100%);
}
.company-hero--image{
  background:#0f172a;
}

.company-hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:brightness(.85);
}

.company-hero--image::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
}

.company-hero__inner{
  position:relative;
  z-index:1;
}
.company-hero__title{
  margin:0;
  font-size:40px;
  font-weight:900;
  letter-spacing:-0.02em;
  color:#fff;
}
.company-hero__desc{
  margin:10px 0 0;
  font-size:14px;
  font-weight:900;
  letter-spacing:.12em;
  color:rgba(255,255,255,.88);
}

/* PRODUCT PAGE HERO POSITION */
.page--product .company-hero__bg{
  object-fit:cover;
  object-position:40% 25%;
}

/* =========================================================
   SUBNAV
========================================================= */
.subnav{
  background:#fff;
  border-bottom:1px solid var(--line);
}

.subnav__inner{
  min-height:60px;
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
  padding:10px 0;
}

.subnav__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:10px 14px;
  border-radius:10px;
  font-size:18px;
  font-weight:900;
  color:#334155;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.subnav__home{
  display:inline-flex;
  transform:translateY(1px);
}

.subnav__link:hover{
  background:rgba(15,23,42,.06);
  transform:translateY(-1px);
}

.subnav__link.is-active{
  background:#0f172a;
  color:#fff;
}

.subnav__ceo-short{
  display:none;
}

.subnav__ceo-full{
  display:inline;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  margin-top:80px;
  background:#1F2937;
  border-top:1px solid var(--line);
  font-size:14px;
  letter-spacing:.02em;
}

.footer-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:40px 28px;
}

.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.footer-brand{
  font-weight:700;
  color:#F1F5F9;
}

.footer-copy{
  font-size:12px;
  color:#94A3B8;
}

/* =========================================================
   REVEAL
========================================================= */
.reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.is-in{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width:900px){
  .header-inner{padding:0 18px;}
  .gnb ul{gap:22px;}
  .gnb a{font-size:16px;}
  .logo img{height:52px;}

  .footer-row{
    align-items:flex-start;
  }

  /* 모바일 서브탭: 4칸 한 줄 고정 */
  .subnav__inner{
    min-height:auto;
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:6px;
    padding:10px 12px;
  }

  .subnav__link{
    width:100%;
    font-size:15px;
    padding:10px 4px;
    gap:6px;
    white-space:nowrap;
  }

  .subnav__home{
    transform:none;
  }

  .subnav__home svg{
    width:16px;
    height:16px;
  }

  .subnav__ceo-full{
    display:none;
  }

  .subnav__ceo-short{
    display:inline;
  }
}

@media(max-width:640px){
  .footer-inner{
    padding:18px 20px;
  }

  .footer-brand{
    font-size:13px;
    line-height:1.7;
  }

  .footer-copy{
    font-size:12px;
  }

  .company-hero{
    height:220px;
  }

  .company-hero__title{
    font-size:32px;
  }

  .company-hero__desc{
    font-size:12px;
  }

  .subnav__inner{
    grid-template-columns:repeat(4, 1fr);
    gap:6px;
    padding:8px 10px;
  }

  .subnav__link{
    font-size:14px;
    padding:9px 2px;
    gap:4px;
    letter-spacing:-0.02em;
  }

  .subnav__home svg{
    width:14px;
    height:14px;
  }
}



/* =========================
   HEADER FIXED / NO INVERT
========================= */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff !important;
  z-index: 1000;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.logo img{
  display: block;
  height: 60px;
  width: auto;
}

.site-header .gnb a{
  color: #111 !important;
}

.site-header .gnb__line{
  background: #111 !important;
}

/* 스크롤 상태가 붙어도 똑같이 유지 */
.site-header.scrolled{
  background: #fff !important;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.site-header.scrolled .gnb a{
  color: #111 !important;
}

.site-header.scrolled .gnb__line{
  background: #111 !important;
}

/* 로고 반전/투명 처리 방지 */
.site-header img{
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}