/* ==============================
   JONEIS — Global Styles
   ============================== */
:root {
  --black: #111111;
  --white: #ffffff;
  --gray: #888888;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --brand-orange: #f47836;
  --brand-orange-dark: #c8622c;
  --nav-height: 70px;
  --font-main: 'Montserrat', 'Noto Sans KR', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--black); background: var(--white); font-size: 14px; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; z-index: 1000;
}
.nav-menu { display: flex; gap: 40px; }
.nav-menu a {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; position: relative; padding-bottom: 4px;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--black); transition: width 0.3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--black); transition: 0.3s; }

/* HERO */
#hero { position: relative; height: 100vh; overflow: hidden; }
.swiper { width: 100%; height: 100%; }
.slide-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transform: scale(1.05); transition: transform 6s ease; }
.swiper-slide-active .slide-bg,
.swiper-slide-duplicate-active .slide-bg { transform: scale(1); }
/* 메인(index.html) 히어로 노출 사진만 밝기 +10(명도 100 기준) 보정 — 비파괴(원본 파일 불변,
   filter만 적용). #hero로 스코프해 works-detail.html의 동일 클래스(.slide-bg, 상세 갤러리
   히어로)는 원래 톤 그대로 유지한다(디렉터 확인: 메인만 밝게, 상세/목록은 원본 톤).
   2026-07-08: 전면 블랙 오버레이(rgba(0,0,0,0.42))가 사진 전체를 균일하게 덮어 "원본 그대로
   안 보인다"는 지적 발생 → flat 0.20 거쳐, 채령 권고·기존 검증패턴(.detail-hero-overlay 계열)에
   맞춰 상단 투명/하단 보호 그라디언트로 전환(디렉터 확정, 2026-07-08). 상단은 오버레이가 전혀
   없어 filter brightness가 그대로 노출되므로, 하이라이트 클리핑 방지 위해 1.1(+10) 유지
   (원 요청 +20/1.2 전량 복귀는 상단 무보호 구간에서 과노출 위험 — 보수적 유지, 근거는
   verification 보고 참조). 가독성 보완 text-shadow는 유지. */
#hero .slide-bg { filter: brightness(1.1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 60px 80px;
}
.slide-info { color: var(--white); }
.slide-info .category { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; opacity: 0.8; text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.slide-info h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
.slide-info .slide-name-ko { display: block; font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.65); font-family: 'Noto Sans KR', sans-serif; letter-spacing: 0; margin-bottom: 20px; text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.btn-more {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.7); padding: 12px 28px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); transition: 0.3s;
}
.btn-more:hover { background: var(--white); color: var(--black); }
.swiper-pagination { bottom: 30px !important; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.5) !important; }
.swiper-pagination-bullet-active { background: var(--white) !important; }

/* PAGE HEADER */
.page-header {
  height: 340px; background-size: cover; background-position: center;
  position: relative; margin-top: var(--nav-height);
  display: flex; align-items: center; justify-content: center;
}
.page-header::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.page-header-inner { position: relative; z-index: 1; text-align: center; color: var(--white); }
.page-header-inner h1 { font-size: 36px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; }
.page-header-inner p { font-size: 12px; letter-spacing: 2px; margin-top: 8px; opacity: 0.7; }

/* SECTION */
.section { padding: 100px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section-label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gray); margin-bottom: 12px; }
.section-heading { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin-bottom: 48px; }
.section-divider { width: 40px; height: 2px; background: var(--black); margin-bottom: 40px; }

/* SUB NAV */
.sub-nav { background: var(--light-gray); border-bottom: 1px solid var(--border); position: sticky; top: var(--nav-height); z-index: 100; }
.sub-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: flex; }
.sub-nav a {
  display: block; padding: 16px 24px; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600; color: var(--gray);
  border-bottom: 2px solid transparent; transition: 0.2s;
}
.sub-nav a:hover, .sub-nav a.active { color: var(--black); border-bottom-color: var(--black); }

/* OVERVIEW */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.overview-text p { color: #444; line-height: 1.9; margin-bottom: 20px; }
.company-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table td { padding: 14px 0; font-size: 13px; }
.company-table td:first-child { width: 120px; color: var(--gray); font-weight: 600; }

/* HISTORY */
.history-year { font-size: 28px; font-weight: 700; margin-bottom: 16px; margin-top: 48px; }
.history-year:first-child { margin-top: 0; }
.history-item { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.history-month { font-size: 12px; color: var(--gray); font-weight: 600; }
.history-desc { font-size: 13px; color: #444; }

/* WORKS FILTER + GRID */
.works-filter { display: flex; gap: 0; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.works-filter button {
  background: none; border: none; cursor: pointer;
  padding: 12px 28px; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600; color: var(--gray);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: 0.2s; font-family: var(--font-main);
}
.works-filter button:hover, .works-filter button.active { color: var(--black); border-bottom-color: var(--black); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.work-item { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: #eee; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.work-item:hover img { transform: scale(1.05); }
.work-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-end; padding: 24px; opacity: 0; transition: opacity 0.3s;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-overlay .work-cat { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.work-overlay h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.work-overlay .work-name-ko { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.65); font-family: 'Noto Sans KR', sans-serif; letter-spacing: 0; margin-bottom: 6px; display: block; }
.work-overlay .work-year { font-size: 11px; color: rgba(255,255,255,0.55); }

/* WORKS DETAIL */
.detail-hero { height: 70vh; position: relative; overflow: hidden; margin-top: var(--nav-height); }
.detail-hero .swiper { height: 100%; }
/* 갤러리 좌우 넘김 화살표 — 브랜드 오렌지 (기본 Swiper 파랑 대체) */
.detail-hero .swiper-button-prev,
.detail-hero .swiper-button-next { color: var(--brand-orange); }
.detail-hero .swiper-button-prev:hover,
.detail-hero .swiper-button-next:hover { color: var(--brand-orange-dark); }
/* 히어로 타이틀 오버레이 */
.detail-hero-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 48px 64px;
  pointer-events: none;
}
.detail-hero-info { color: var(--white); }
.detail-hero-cat {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 10px;
}
.detail-hero-title {
  font-size: clamp(24px, 3.5vw, 44px); font-weight: 700;
  letter-spacing: 1px; line-height: 1.15; text-transform: uppercase; margin-bottom: 8px;
}
.detail-hero-name-ko {
  display: block; font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.65); font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 0;
}
/* 메타 PROJECT 아래 한글명 */
.detail-meta-name-ko {
  font-size: 12px; font-weight: 400; color: var(--gray);
  font-family: 'Noto Sans KR', sans-serif; margin-top: 4px; letter-spacing: 0;
}
.detail-info { max-width: 1200px; margin: 0 auto; padding: 60px 48px; }
.detail-meta { display: flex; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.detail-meta-item .label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.detail-meta-item .value { font-size: 14px; font-weight: 600; }
.detail-description { max-width: 700px; color: #444; line-height: 1.9; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 60px; }
.detail-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.detail-nav { max-width: 1200px; margin: 0 auto; padding: 40px 48px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); }
.detail-nav a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--gray); transition: color 0.2s; }
.detail-nav a:hover { color: var(--black); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info-item { margin-bottom: 32px; }
.contact-info-item .label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.contact-info-item .value { font-size: 15px; font-weight: 600; }
.contact-info-item .sub { font-size: 13px; color: #666; margin-top: 4px; }
.contact-map { width: 100%; height: 400px; border: 1px solid var(--border); overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* FOOTER */
#footer {
  background: var(--black); color: rgba(255,255,255,0.55);
  padding: 40px 48px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.5px;
}
.footer-logo { margin-bottom: 8px; }
.footer-addr { line-height: 1.8; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  #nav { padding: 0 24px; }
  .nav-menu {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 24px; border-bottom: 1px solid var(--border); display: block; }
  .nav-menu a::after { display: none; }
  .nav-hamburger { display: flex; }
  .slide-overlay { padding: 40px 32px; }
  .detail-hero-overlay { padding: 32px 24px; }
  .detail-hero-title { font-size: clamp(20px, 5vw, 32px); }
  .section-inner { padding: 0 24px; }
  .section { padding: 64px 0; }
  .detail-meta { flex-wrap: wrap; gap: 24px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-info, .detail-nav { padding: 40px 24px; }
  #footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 24px; }
  .sub-nav-inner { overflow-x: auto; padding: 0 24px; }
  .sub-nav a { white-space: nowrap; }
}
@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-filter { overflow-x: auto; }
  .works-filter button { white-space: nowrap; }
  .page-header { height: 200px; }
  .page-header-inner h1 { font-size: 24px; }
}
