/* ============================================
   NEXORA — style.css
   Koch Asia 스크린샷 1:1 기반 재설계
   ============================================ */

:root {
  --red:    #1C3557;  /* NEXORA: 네이비 (Koch의 빨간색 역할) */
  --red2:   #254870;
  --dark:   #2a2a2a;
  --dark2:  #1a1a1a;
  --white:  #ffffff;
  --gray:   #f5f5f5;
  --gray2:  #e8e8e8;
  --gray3:  #999999;
  --text:   #333333;
  --textm:  #666666;

  --fB: 'Noto Sans KR', sans-serif;
  --fU: 'DM Sans', sans-serif;
  --fD: 'Cormorant Garamond', Georgia, serif;

  --HD: 70px;
  --FP: 0.85s;
  --FE: cubic-bezier(0.76, 0, 0.24, 1);
  --T:  0.25s ease;
}

/* ─── 리셋 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--fB);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* PC 풀페이지 */
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* ════════════════════════════════
   HEADER
   참고: Koch Asia — 좌측 로고 + 우측 텍스트 메뉴
         메인 Hero에서 완전 투명
         내부 페이지에서 흰 배경
════════════════════════════════ */
.hd {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--HD);
  display: flex;
  align-items: center;
  /* 기본: 완전 투명 (Hero 위) */
  background: transparent;
  transition: background var(--T), box-shadow var(--T);
}
.hd.solid {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}
.hd__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1360px, 94%);
  margin-inline: auto;
}
/* 로고 */
.hd__logo { display: flex; align-items: center; gap: 8px; }
.hd__logo img { height: 36px; width: auto; display: block; }
/* 투명 헤더일 때 로고 필터 */
.logo-dark { display: block; }
.logo-white { display: none; }
.hd:not(.solid) .logo-dark { display: none; }
.hd:not(.solid) .logo-white { display: block; }

/* GNB — Koch Asia: 드롭다운 없이 심플한 텍스트 링크들 */
.gnb { display: flex; }
.gnb__ul { display: flex; align-items: center; gap: 32px; }
.gnb__a {
  font-family: var(--fU);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white);
  cursor: pointer;
  padding: 4px 0;
  transition: opacity var(--T);
  border: none;
  background: none;
  display: block;
}
.gnb__a:hover { opacity: 0.7; }
.hd.solid .gnb__a { color: var(--text); }
.hd.solid .gnb__a:hover { color: var(--red); opacity: 1; }

/* 드롭다운 */
.gnb__li { position: relative; }
.gnb__drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 150px;
  background: var(--white);
  border-top: 2px solid var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: var(--T);
}
.gnb__li:hover .gnb__drop {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.gnb__drop a {
  display: block;
  padding: 10px 18px;
  font-family: var(--fU);
  font-size: 13px;
  color: var(--textm);
  transition: var(--T);
  white-space: nowrap;
}
.gnb__drop a:hover { color: var(--red); padding-left: 24px; background: #f7f9fc; }

/* 햄버거 */
.hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hbg span {
  display: block;
  width: 22px; height: 1.8px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--T);
}
.hd.solid .hbg span { background: var(--text); }
.hbg.on span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.hbg.on span:nth-child(2) { opacity: 0; }
.hbg.on span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* 모바일 메뉴 */
.mob {
  display: none;
  position: fixed;
  top: var(--HD); left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray2);
  z-index: 999;
  max-height: calc(100svh - var(--HD));
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: var(--T);
}
.mob.on { opacity: 1; pointer-events: auto; }
.mob__in { padding: 16px 28px 32px; }
.mob__cat {
  font-family: var(--fU);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray3);
  margin: 20px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray2);
}
.mob__cat:first-child { margin-top: 4px; }
.mob__a {
  display: block;
  padding: 11px 0;
  font-family: var(--fU);
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--gray2);
  transition: var(--T);
}
.mob__a:hover { color: var(--red); padding-left: 6px; }

/* ════════════════════════════════
   좌측 점 네비게이션
   참고: Koch Asia — 좌측 세로, 빨간 점 (현재), 검은 점 (나머지)
════════════════════════════════ */
.sdots {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.sdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  transition: var(--T);
  border: none;
}
.sdot.on {
  background: var(--red);
  transform: scale(1.3);
}
.sdot:hover { background: rgba(0,0,0,0.5); }

/* ════════════════════════════════
   풀페이지 프레임워크
════════════════════════════════ */
.fp {
  position: relative; /* fixed → relative: body 스크롤로 푸터 노출 */
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.fp__track {
  transition: transform var(--FP) var(--FE);
  will-change: transform;
}
.sec {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ─── 섹션 진입 애니메이션 ─── */
/* 핵심: JS에서 인라인 스타일 건드리지 않음 → 흰화면 버그 없음 */
.sec .a {
  opacity: 0;
  transform: translateY(20px);
}
.sec.is-on .a {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity  0.6s calc(var(--ai,0) * 0.1s) ease,
    transform 0.6s calc(var(--ai,0) * 0.1s) ease;
}
.a0{--ai:0} .a1{--ai:1} .a2{--ai:2} .a3{--ai:3} .a4{--ai:4}
.a5{--ai:5} .a6{--ai:6} .a7{--ai:7}

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

/* ════════════════════════════════
   SEC 0: HERO
   참고: 풀스크린 배경 영상/이미지, 투명 헤더, 좌 점네비
════════════════════════════════ */
.s0 { background: #111; }

.sl { position: absolute; inset: 0; }
.sl__item {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.sl__item.on { opacity: 1; }
.sl__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: kb 18s ease-in-out infinite alternate;
}
@keyframes kb {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.sl__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
}
/* 슬라이더 하단 점 */
.sl__nav {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.sl__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: var(--T);
}
.sl__dot.on { background: var(--white); }

/* ════════════════════════════════
   SEC 1: 제품소개
   참고: 배경 주방이미지 + 중앙 제목 + 반투명 카드들
════════════════════════════════ */
.s1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.s1__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
/* 배경 이미지 밝은 오버레이 */
.s1__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
}
.s1__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding-top: var(--HD);
}
.s1__title {
  font-family: var(--fB);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.s1__sub {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--textm);
  margin-bottom: clamp(24px, 4vh, 40px);
}
/* 제품 카드 가로 배열 */
.s1__cards {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 clamp(20px, 5vw, 80px);
}
.s1__card {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 14px;
  flex: 1;
  max-width: 240px;
  text-align: center;
  cursor: pointer;
  transition: var(--T);
}
.s1__card:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-4px);
}
.s1__card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 10px;
  background: #eee;
}
.s1__card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ════════════════════════════════
   SEC 2: 3단 배너
   참고: 흰 배경 + 3카드 (이미지 상단 + 텍스트 하단)
         이미지가 카드 위쪽, 텍스트가 아래쪽 — 오버레이 아님!
════════════════════════════════ */
.s2 { background: var(--white); }
.s2__inner {
  display: flex;
  height: 100%;
  width: 100%;
  gap: 0;
  align-items: stretch;
  padding-top: var(--HD);
}
.bn3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--T);
  border-right: 1px solid var(--gray2);
  text-decoration: none;
  color: inherit;
}
.bn3:last-child { border-right: none; }
.bn3__img {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.bn3__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bn3:hover .bn3__img img { transform: scale(1.04); }
.bn3__txt {
  padding: clamp(16px, 2.5vh, 28px) clamp(20px, 3vw, 40px);
  background: var(--white);
  flex-shrink: 0;
}
.bn3__txt strong {
  display: block;
  font-family: var(--fB);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.bn3__txt p {
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--textm);
  line-height: 1.7;
}

/* ════════════════════════════════
   SEC 3: 철학 + CTA (100vh 꽉 채움)
   참고: 배경이미지 전체 + 좌측 텍스트 + 하단 CTA
         푸터는 fp 바깥, body 스크롤로 노출
════════════════════════════════ */
.s3 { }
.s3__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%; /* 이미지 중간 아래쪽 보여줌 (머리 잘림 방지) */
}
.s3__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--HD) + clamp(16px, 4vh, 48px));
  padding-bottom: 0;
}
.s3__text {
  padding: 0 clamp(24px, 6vw, 100px);
}
.s3__headline {
  font-family: var(--fB);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 14px;
}
.s3__desc {
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--textm);
  line-height: 1.8;
}
/* 3단 CTA 박스 (배경이미지 위에 반투명) */
.cta3 {
  display: flex;
  width: 100%;
  flex-shrink: 0;
}
.cta3__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(24px, 4vh, 44px) 20px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background var(--T);
  color: var(--text);
  text-decoration: none;
}
.cta3__item:hover { background: rgba(255,255,255,0.3); }
.cta3__ic {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.cta3__ic svg { width: 40px; height: 40px; }
.cta3__label {
  font-family: var(--fB);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  color: var(--white);
}

/* ════════════════════════════════
   푸터 (fp 바깥 — body 스크롤로 노출)
   참고: 어두운 배경 + 로고+주소(좌) + 사이트맵(우) + SNS
════════════════════════════════ */
.ft {
  background: var(--dark);
}
.ft__top {
  display: flex;
  gap: 0;
  width: min(1360px, 94%);
  margin-inline: auto;
  padding-top: clamp(28px, 4vh, 44px);
  padding-bottom: clamp(20px, 3vh, 32px);
  align-items: flex-start;
}
.ft__left {
  flex: 0 0 280px;
  padding-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.12);
  margin-right: 40px;
}
.ft__logo {
  display: block;
  margin-bottom: 16px;
}
.ft__logo img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.ft__addr p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
}
.ft__right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ft__col strong {
  display: block;
  font-family: var(--fU);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ft__col a {
  display: block;
  font-family: var(--fU);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 4px 0;
  transition: var(--T);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ft__col a:hover { color: var(--white); }
.ft__bot {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 12px;
  flex-shrink: 0;
}
.ft__bot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1360px, 94%);
  margin-inline: auto;
  flex-wrap: wrap;
  gap: 8px;
}
.ft__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}
/* SNS 아이콘 */
.ft__sns {
  display: flex;
  gap: 10px;
}
.ft__sns a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: var(--T);
}
.ft__sns a:hover { border-color: var(--white); color: var(--white); }

/* ════════════════════════════════
   맨위로 버튼
════════════════════════════════ */
.btop {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--red);
  color: var(--white);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: var(--T);
}
.btop.on { opacity: 1; pointer-events: auto; transform: translateY(0); }
.btop:hover { background: var(--red2); }

/* ════════════════════════════════
   모바일 · 태블릿 (< 1024px): 일반 스크롤
════════════════════════════════ */
@media (max-width: 1023px) {
  body { overflow: auto; }

  .fp { position: static; height: auto; overflow: visible; }
  .fp__track { transform: none !important; transition: none !important; }
  .sec { height: auto; min-height: 100svh; overflow: visible; }
  .sec .a { opacity: 1 !important; transform: none !important; transition: none !important; }

  .sdots { display: none; }
  .gnb { display: none; }
  .hbg { display: flex; }
  .mob { display: block; }
  .hd { background: rgba(255,255,255,0.97) !important; }
  .hd .gnb__a { color: var(--text) !important; }
  .hd .hbg span { background: var(--text) !important; }
  .logo-dark { display: block !important; }
  .logo-white { display: none !important; }

  /* Hero */
  .sl__bg { animation: none; }

  /* 제품 카드 */
  .s1__cards { flex-wrap: wrap; gap: 10px; padding: 0 20px; }
  .s1__card { max-width: calc(50% - 6px); }

  /* 3단 배너 */
  .s2__inner { flex-direction: column; padding-top: var(--HD); }
  .bn3 { border-right: none; border-bottom: 1px solid var(--gray2); }
  .bn3:last-child { border-bottom: none; }
  .bn3__img { min-height: 160px; }

  /* 철학+CTA+푸터 (모바일: 세로 스택) */
  .s3 { min-height: auto; }
  .s3__body { min-height: 60svh; }
  .s3__text { padding: 0 24px; }
  .cta3 { flex-direction: column; }
  .cta3__item { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 18px 24px; }

  /* 푸터 */
  .ft__top { flex-direction: column; }
  .ft__left { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 20px; margin-bottom: 20px; }
  .ft__right { grid-template-columns: repeat(2,1fr); }
  .ft__bot-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .ft__right { grid-template-columns: 1fr 1fr; }
  .s1__card { max-width: calc(50% - 5px); }
}

/* 접근성 */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

/* GNB 드롭다운 클릭 방식 */
.gnb__li.is-open .gnb__drop {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
