/* ================================================================
   (주)넥스빌 불연EPS — 공통 스타일
   산업재·안전 신뢰 톤 : 딥네이비/차콜 + 화이트 + 절제된 딥레드 포인트
   ================================================================ */

:root {
  /* 색상 */
  --navy: #16233a;          /* 딥네이비 (헤더/푸터/강조면) */
  --navy-2: #1f3050;
  --charcoal: #2b3648;      /* 차콜 (부제목·보조) */
  --ink: #1a1f28;           /* 본문 텍스트 */
  --muted: #5b6675;         /* 흐린 텍스트 */
  --accent: #c0392b;        /* 불연 상징 딥레드 (포인트, 절제 사용) */
  --accent-dark: #9e2f22;
  --accent-soft: #fdecea;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;       /* 섹션 교차 배경 */
  --border: #e2e7ee;
  --kakao: #FEE500;         /* 카카오 옐로 */
  --kakao-ink: #191919;

  /* 타이포 */
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 레이아웃 */
  --maxw: 1140px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(22, 35, 58, 0.08);
  --shadow-lg: 0 8px 32px rgba(22, 35, 58, 0.14);
}

/* ---------- 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- 공통 레이아웃 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 0 40px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; font-weight: 800; }
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3.6vw, 34px); }
h3 { font-size: clamp(19px, 2.4vw, 23px); }
.lead { font-size: 17px; color: var(--muted); }
.text-muted { color: var(--muted); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn--kakao:hover { background: #f2d900; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ---------- 헤더 / 네비 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark {
  width: 34px; height: 34px;
  flex: 0 0 34px;
}
.brand__name { font-size: 19px; color: var(--navy); letter-spacing: -0.01em; }
.brand__name small { display: block; font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav__menu a:hover { background: var(--bg-soft); color: var(--navy); }
.nav__menu a.is-active { color: var(--accent); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* 절제된 포인트 라인 (불연 상징) */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.hero__inner { padding: 84px 0 76px; position: relative; z-index: 2; max-width: 760px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(192, 57, 43, 0.16);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: #ff9d92;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .hl { color: #ff8a7a; }
.hero__sub { font-size: 18px; color: rgba(255,255,255,0.82); margin-bottom: 34px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

/* ---------- 인증 배지 ---------- */
.cert-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
}
.cert-badge svg { width: 26px; height: 26px; flex: 0 0 26px; }
.cert-badge b { display: block; font-size: 14px; color: #fff; }
.cert-badge span { font-size: 12px; color: rgba(255,255,255,0.65); }

/* 라이트 배경용 인증 배지 */
.cert-badge--light {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.cert-badge--light b { color: var(--navy); }
.cert-badge--light span { color: var(--muted); }
.cert-badge--light svg { color: var(--accent); }

/* ---------- 가치 3카드 ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.value-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 18px;
}
.value-card__icon svg { width: 28px; height: 28px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 15px; }

/* ---------- 카드/타일 링크 ---------- */
.tile {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.tile:hover { box-shadow: var(--shadow); border-color: var(--navy); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.tile__more { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
table.spec th, table.spec td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.spec thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
table.spec tbody tr:nth-child(even) { background: var(--bg-soft); }
table.spec td .ph { color: var(--muted); font-style: italic; }

/* ---------- 플레이스홀더 박스 ---------- */
.placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  min-height: 220px;
  background: repeating-linear-gradient(
    45deg, var(--bg-soft), var(--bg-soft) 12px, #eef1f6 12px, #eef1f6 24px);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}
.placeholder svg { width: 40px; height: 40px; opacity: 0.5; }
.placeholder b { color: var(--charcoal); font-size: 15px; }

/* ---------- 리스트(체크) ---------- */
.check-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.check-list li::after {
  content: "";
  position: absolute; left: 6px; top: 18px;
  width: 5px; height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- 폼 ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px; font-weight: 700; color: var(--charcoal);
  margin-bottom: 7px;
}
.field label .req { color: var(--accent); margin-left: 3px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22, 35, 58, 0.08);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 18px;
}
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 18px; }
.consent label { font-size: 14px; color: var(--charcoal); font-weight: 600; margin: 0; }
.consent label span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.privacy-note { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.6; }

/* ---------- 게이트 카드 (자료실) ---------- */
.gate {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.gate__tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 100px;
  margin-bottom: 16px;
}
.gate__tag--kakao { background: var(--kakao); color: var(--kakao-ink); }
.gate__tag--form { background: var(--accent-soft); color: var(--accent-dark); }
.gate h3 { margin-bottom: 10px; }
.gate > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.gate .gate__body { margin-top: auto; }

/* ---------- 콜아웃 / 신뢰 스트립 ---------- */
.callout {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
}
.callout h2 { color: #fff; margin-bottom: 12px; }
.callout p { color: rgba(255,255,255,0.8); margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }
.callout .hero__actions { justify-content: center; }

/* ---------- 페이지 헤더(서브페이지) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%);
  color: #fff;
  padding: 60px 0;
}
.page-hero .eyebrow { color: #ff9d92; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 17px; max-width: 640px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 52px 0 28px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 8px; }
.footer-info p { margin-bottom: 6px; }
.footer-info .ph { color: rgba(255,255,255,0.45); font-style: italic; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- 카카오 플로팅 버튼 ---------- */
.kakao-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  background: var(--kakao);
  color: var(--kakao-ink);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s;
}
.kakao-float:hover { transform: translateY(-2px); }
.kakao-float svg { width: 22px; height: 22px; flex: 0 0 22px; }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 13px 14px; border-radius: 6px; }
  .nav__cta { margin: 6px 0 0; }
  .nav__cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__inner { padding: 60px 0 56px; }
  .callout { padding: 34px 22px; }
  .kakao-float span { display: none; }
  .kakao-float { padding: 14px; }
}

/* ---------- 히어로 영상 배경 ---------- */
.hero--video { min-height: 78vh; }
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22, 35, 58, 0.85) 0%, rgba(22, 35, 58, 0.4) 100%);
  z-index: 1;
}
.hero--video .container { position: relative; z-index: 2; }

/* ---------- 증거(불연 테스트) 세로 영상 ---------- */
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.proof-video { display: flex; justify-content: center; }
.proof-video video {
  max-height: 520px;
  max-width: 100%;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #000;
}
.proof-note {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  margin: 20px auto 0;
}

/* ---------- 감성 브리지 ---------- */
.bridge { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.bridge__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.bridge__media video { width: 100%; display: block; max-height: 360px; object-fit: cover; }
.bridge__line {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

/* ---------- 히어로 영상: 모바일은 poster 이미지만 로드 ---------- */
@media (max-width: 860px) {
  .hero--video {
    background-image: url(../assets/img/hero-poster.jpg);
    background-size: cover;
    background-position: center;
    min-height: auto;
  }
  .hero__bg { display: none; }
  .bridge { grid-template-columns: 1fr; }
}

/* === 2026-08-13 수정: 실제 로고 + 히어로 CTA 작게·하단 === */
.brand__mark { background: url("../assets/img/logo.png") center/contain no-repeat; }
.brand__mark > * { display: none; }
.hero--video .hero__inner { padding-top: 46vh; padding-bottom: 40px; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.hero--video .hero__inner .btn { text-shadow: none; }
.hero--video .hero__actions .btn { padding: 9px 16px; font-size: 13px; box-shadow: none; white-space: nowrap; }
.hero--video .hero__actions .btn svg { width: 16px; height: 16px; }
.hero--video .hero__badges { margin-top: 18px; }
@media (max-width: 860px) {
  .hero--video .hero__inner { padding-top: 16vh; padding-bottom: 28px; }
}

/* === 2026-08-13 수정 2차: 히어로 우측배치·3카드 이미지·카카오 버튼·제품 이미지 === */

/* 1. 히어로 텍스트 우측 하단 배치 + 영상 밝게(우·하단만 어둡게) */
.hero--video .hero__inner { margin-left: auto; margin-right: 0; }
.hero__overlay {
  background:
    linear-gradient(180deg, rgba(22,35,58,0) 35%, rgba(22,35,58,0.62) 100%),
    linear-gradient(90deg, rgba(22,35,58,0) 45%, rgba(22,35,58,0.4) 100%);
}

/* 2. WHY NEXBILL 3카드 상단 실제 이미지(아이콘 대체) */
.value-card__img {
  width: calc(100% + 52px);
  margin: -30px -26px 18px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* 3. 카카오 버튼 심볼 또렷하게(공식 채널 버튼 느낌) */
.btn--kakao svg { width: 20px; height: 20px; flex: 0 0 20px; }
.hero--video .hero__actions .btn--kakao svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* 4. 제품 사진(제품 페이지) */
.product-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* 모바일(≤860px): 텍스트 안 잘리게 전체 약간 어둡게, 우측배치 해제 */
@media (max-width: 860px) {
  .hero--video .hero__inner { margin-left: 0; margin-right: 0; }
  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(22, 35, 58, 0.55) 0%,
      rgba(22, 35, 58, 0.72) 100%);
  }
}

/* === 스샷 재현: 히어로 우하단 컴팩트 카드 (2026-08-14) === */
.hero--video .hero__inner { max-width: 540px; }
.hero--video h1 { font-size: clamp(26px, 3.4vw, 38px); }
.hero--video .hero__sub { font-size: 16px; margin-bottom: 24px; }
.hero--video .hero__badges { margin-top: 20px; gap: 10px; padding-top: 18px; }
@media (max-width: 860px) { .hero--video .hero__inner { max-width: 100%; } }

/* === 히어로 텍스트 우측 정렬: 각 줄 오른쪽 끝 맞춤 (2026-08-14) === */
.hero--video .hero__inner { text-align: right; }
.hero--video .hero__sub { margin-left: auto; }
.hero--video .hero__actions { justify-content: flex-end; }
.hero--video .hero__badges { justify-content: flex-end; }

/* 오시는 길 구글 지도 임베드 */
.map-embed{border-radius:14px;overflow:hidden;box-shadow:0 6px 24px rgba(22,35,58,0.10);border:1px solid #e6e9ef;line-height:0;}
.map-embed iframe{width:100%;height:320px;display:block;}
