/* =========================================================
   파일명: /assets/css/hero.css
   역할: 메인/서브 공통 Hero + 상단 서브메뉴바 단일 기준
   기준: 2026-05-25 COMMON HERO CLEAN
   원칙:
   - templates/page-hero.php 하나만 사용
   - 메인/서브 hero 크기, 글자, 위치 공통화
   - 페이지별 차이는 data-hero-key 오른쪽 이미지 크기만 허용
========================================================= */

:root{
  --nb-content-width:min(calc(100vw - 96px),1440px);
  --nb-hero-h:330px;
}

.page-hero.page-hero--banner{
  position:relative;
  display:flex;
  align-items:center;
  height:var(--nb-hero-h);
  min-height:var(--nb-hero-h);
  max-height:var(--nb-hero-h);
  margin:0;
  overflow:hidden;
  background:#eef6ff;
  border-bottom:1px solid #d7e6f6;
  isolation:isolate;
}

.page-hero.page-hero--banner .page-hero__image,
.page-hero.page-hero--banner::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  background-image:var(--page-banner-image, var(--page-hero-fallback));
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:1;
  filter:none;
}

.page-hero.page-hero--banner::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(7,18,32,.58) 0%,rgba(7,18,32,.28) 44%,rgba(7,18,32,.06) 100%);
  pointer-events:none;
}

.page-hero.page-hero--banner .page-hero-inner{
  position:relative;
  z-index:4;
  width:var(--nb-content-width);
  max-width:var(--nb-content-width);
  margin-left:auto;
  margin-right:auto;
  padding:0;
  box-sizing:border-box;
  transform:none;
  opacity:1;
  animation:none;
  text-align:left;
}

.page-hero.page-hero--banner .eyebrow{
  display:block;
  margin:0 0 12px;
  color:#37c7ff;
  font-size:13px;
  line-height:1;
  font-weight:950;
  letter-spacing:.18em;
  text-shadow:0 2px 8px rgba(0,0,0,.18);
}

.page-hero.page-hero--banner h1{
  max-width:760px;
  margin:0 0 14px;
  color:#fff;
  font-size:52px;
  line-height:1.12;
  font-weight:950;
  letter-spacing:-.06em;
  text-shadow:0 4px 14px rgba(0,0,0,.28);
}

.page-hero.page-hero--banner h1 .en{
  display:inline-block;
  font-size:.46em;
  font-weight:850;
  letter-spacing:-.025em;
  opacity:.9;
}

.page-hero.page-hero--banner p{
  max-width:760px;
  margin:0;
  color:#fff;
  font-size:18px;
  line-height:1.65;
  font-weight:800;
  text-shadow:0 3px 12px rgba(0,0,0,.24);
}

.page-hero.page-hero--banner .page-hero__right-img,
.page-hero.page-hero--banner.has-page-banner-right .page-hero__right-img{
  display:block;
  position:absolute;
  z-index:3;
  pointer-events:none;
  user-select:none;
  object-fit:contain;
  object-position:right bottom;
  max-width:none;
  opacity:1;
  transform:none;
  animation:none;
  filter:none;
}

.page-hero.page-hero--banner[data-hero-key="product"].has-page-banner-right .page-hero__right-img{
  right:clamp(18px,3.5vw,72px);
  bottom:-34px;
  width:min(58vw,1180px);
  height:126%;
}

.page-hero.page-hero--banner[data-hero-key="contact"].has-page-banner-right .page-hero__right-img{
  right:clamp(0px,2vw,42px);
  bottom:-24px;
  width:min(43vw,760px);
  height:116%;
}

.page-hero.page-hero--banner:not([data-hero-key="product"]):not([data-hero-key="contact"]) .page-hero__right-img{
  right:clamp(20px,4vw,80px);
  bottom:0;
  width:min(42vw,760px);
  height:100%;
}

/* ===== 상단 서브메뉴바 ===== */
.page-section-bar,
.page-quick-menu.page-section-bar{
  position:relative;
  top:auto;
  z-index:40;
  width:100%;
  margin:0;
  padding:0;
  transform:none;
  overflow:visible;
  background:#f3f8ff;
  border:0;
  box-shadow:none;
}

.page-section-bar .container,
.page-section-bar__inner{
  width:var(--nb-content-width);
  max-width:var(--nb-content-width);
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
  box-sizing:border-box;
}

.page-section-bar__inner{
  display:flex;
  align-items:stretch;
  overflow:hidden;
  background:#fff;
  border:1px solid #cbdcf0;
  border-radius:6px;
  box-shadow:0 12px 28px rgba(20,70,120,.07);
}

.page-section-bar__links{flex:1 1 auto;display:flex;align-items:stretch;min-width:0;overflow:visible;}
.page-section-bar__current,
.page-section-bar__link{
  min-height:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  color:#10243d;
  background:#fff;
  font-size:15px;
  font-weight:900;
  letter-spacing:-.035em;
  text-decoration:none;
  border-right:1px solid #e2edf8;
}
.page-section-bar__current{flex:0 0 220px;background:#0f66bb;color:#fff;}
.page-section-bar__current strong{color:#fff;}
.page-section-bar__link{flex:1 1 0;min-width:0;}
.page-section-bar__link:last-child{border-right:0;}
.page-section-bar__label{display:block;white-space:nowrap;color:inherit;}
.page-section-bar__link:hover,
.page-section-bar__link.is-active{background:#126ee2;color:#fff;}
.page-section-bar__link:hover .page-section-bar__label,
.page-section-bar__link.is-active .page-section-bar__label{color:#fff;}
.page-section-bar__current.is-section-active,
.page-section-bar__current.has-active-child{background:#0f66bb;color:#fff;}

@media (max-width:1024px){
  :root{--nb-content-width:calc(100vw - 28px);--nb-hero-h:260px;}
  .page-hero.page-hero--banner{height:260px;min-height:260px;max-height:260px;}
  .page-hero.page-hero--banner .page-hero__image,
  .page-hero.page-hero--banner::before{background-image:var(--page-banner-mobile-image, var(--page-banner-image, var(--page-hero-fallback)));}
  .page-hero.page-hero--banner .page-hero-inner{width:var(--nb-content-width);max-width:var(--nb-content-width);}
  .page-hero.page-hero--banner h1{font-size:clamp(34px,7.4vw,46px);line-height:1.12;margin-bottom:10px;}
  .page-hero.page-hero--banner p{font-size:15px;line-height:1.55;}
  .page-hero.page-hero--banner .page-hero__right-img{display:none;}
}

@media (max-width:768px){
  :root{--nb-content-width:calc(100vw - 24px);--nb-hero-h:240px;}
  .page-hero.page-hero--banner{height:240px;min-height:240px;max-height:240px;}
  .page-hero.page-hero--banner::after{background:linear-gradient(90deg,rgba(7,18,32,.62) 0%,rgba(7,18,32,.34) 100%);}
  .page-hero.page-hero--banner .eyebrow{font-size:11px;margin-bottom:9px;}
  .page-hero.page-hero--banner h1{font-size:clamp(30px,8vw,40px);}
  .page-hero.page-hero--banner h1 .en{font-size:.52em;}
  .page-hero.page-hero--banner p{font-size:14px;line-height:1.52;}

  .page-section-bar{display:none;}
}

/* =========================================================
   [2026-05-25] 설비소개 HERO 장비 확대 + 서브메뉴 ACTIVE 가독성 최종 정리
   기준: 최신(7).zip
   목적:
   - 설비소개 product-right 장비가 hero 세로 공간을 거의 채우도록 확대
   - 서브메뉴 파란 active 배경 위 글자 흰색 고정
========================================================= */
@media (min-width:1025px){
  .page-hero.page-hero--banner[data-hero-key="product"].has-page-banner-right .page-hero__right-img{
    right:clamp(-220px,-7vw,-80px);
    bottom:-88px;
    width:min(82vw,1680px);
    height:168%;
    object-position:right bottom;
    filter:drop-shadow(0 34px 42px rgba(18,54,88,.22));
    animation:nbHeroRightSlideIn .82s cubic-bezier(.18,.84,.24,1) both;
  }

  .page-hero.page-hero--banner[data-hero-key="product"] .page-hero-inner{
    z-index:5;
  }
}

.page-section-bar__current,
.page-section-bar__current:link,
.page-section-bar__current:visited,
.page-section-bar__current:hover,
.page-section-bar__current:focus,
.page-section-bar__current.is-section-active,
.page-section-bar__current.has-active-child,
.page-section-bar__link.is-active,
.page-section-bar__link.is-active:link,
.page-section-bar__link.is-active:visited,
.page-section-bar__link.is-active:hover,
.page-section-bar__link.is-active:focus{
  color:#fff;
  opacity:1;
  filter:none;
  text-shadow:none;
}

.page-section-bar__current *,
.page-section-bar__current.is-section-active *,
.page-section-bar__current.has-active-child *,
.page-section-bar__link.is-active *,
.page-section-bar__link.is-active .page-section-bar__label{
  color:#fff;
  opacity:1;
  filter:none;
  text-shadow:none;
}
