/* =========================================================================
   블랙박스 공식 고객지원 홈페이지 - 공용 스타일시트
   컬러 컨셉: 네이비(#0b2545) / 다크그레이(#2b2f36) / 화이트(#ffffff)
   ========================================================================= */

:root {
  --color-navy: #0b2545;
  --color-navy-light: #123a68;
  --color-navy-dark: #071a33;
  --color-accent: #3d7bfd;
  --color-gray-dark: #2b2f36;
  --color-gray: #5a6270;
  --color-gray-light: #f4f6f9;
  --color-border: #e2e6ec;
  --color-white: #ffffff;
  --color-danger: #c0392b;
  --color-warning-bg: #fff6e6;
  --color-warning-border: #f0c36d;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  color: var(--color-gray-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------- Header / Nav ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
  flex-shrink: 0;
}

/* 로고 이미지: 기본은 숨김. main.js 에서 COMPANY.logoImage 값이 있을 때만
   텍스트 로고(logo-mark, logo-text)를 숨기고 이 이미지를 표시합니다.
   슬로건(예: "better and better")까지 포함된 세로로 긴 로고도 잘 보이도록
   높이를 헤더 패딩에 맞춰 여유있게 설정했습니다. */
.logo-image {
  display: none;
  height: 54px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
}

.logo-text .brand-sub {
  font-size: 11px;
  color: #b8c4d9;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  color: #dbe3f0;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-white);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #2c66e0;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-navy:hover {
  background: var(--color-navy-light);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-gray-dark);
}

.btn-ghost:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-disabled,
.btn-disabled:hover {
  background: #dfe3e9;
  color: #8a919c;
  cursor: not-allowed;
  border-color: transparent;
}

.btn-block {
  width: 100%;
}

/* -------------------------------- Hero ---------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 55%, var(--color-navy-light) 100%);
  color: var(--color-white);
  padding: 90px 24px 100px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(61, 123, 253, 0.18);
  color: #a9c3ff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #cdd7ea;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ------------------------------ Sections -------------------------------- */
.section {
  padding: 72px 24px;
}

.section-alt {
  background: var(--color-gray-light);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head .section-tag {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--color-navy);
  margin: 8px 0 12px;
}

.section-head p {
  color: var(--color-gray);
  font-size: 15px;
}

.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 56px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 10px;
}

.page-hero p {
  color: #c4d0e6;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 13px;
  color: #9db1d6;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #cfe0ff;
}

/* ----------------------------- Product Cards ----------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* 출시 준비중 모델 카드: 살짝 톤 다운하여 출시 제품과 구분 */
.product-card-soon {
  background: var(--color-gray-light);
}

.product-card-soon .product-image-placeholder {
  background: repeating-linear-gradient(135deg, #e4e8ee 0px, #e4e8ee 10px, #dde1e9 10px, #dde1e9 20px);
}

.status-badge-soon {
  background: #eef0f3;
  color: var(--color-gray);
}

.product-image-placeholder {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, #eef1f6 0px, #eef1f6 10px, #e6e9ef 10px, #e6e9ef 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa4b2;
  font-size: 14px;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
}

.product-image-placeholder i {
  font-size: 34px;
  color: #b7bfcc;
}

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.status-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 700;
}

.product-card-body h3 {
  margin: 0;
  font-size: 20px;
  color: var(--color-navy);
}

.product-card-body .model-code {
  color: var(--color-gray);
  font-size: 13px;
  font-weight: 600;
}

.product-card-body p.tagline {
  color: var(--color-gray);
  font-size: 14px;
  margin: 0;
}

.product-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}

.product-card-actions .btn {
  flex: 1;
  padding: 11px 14px;
  font-size: 14px;
}

/* --------------------------- Product Detail Card -------------------------- */
.product-detail {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.product-detail-image {
  background: repeating-linear-gradient(135deg, #eef1f6 0px, #eef1f6 10px, #e6e9ef 10px, #e6e9ef 20px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #9aa4b2;
  border-right: 1px solid var(--color-border);
}

.product-detail-image i {
  font-size: 48px;
  color: #b7bfcc;
}

.product-detail-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-detail-info h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: 26px;
}

.product-detail-info .model-code {
  color: var(--color-gray);
  font-weight: 600;
  font-size: 14px;
}

.product-detail-info p.tagline {
  color: var(--color-gray-dark);
  font-size: 15px;
  margin: 0;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.product-detail-body {
  padding: 0 36px 36px;
}

.product-detail-body h3 {
  color: var(--color-navy);
  font-size: 18px;
  margin: 30px 0 16px;
  border-left: 4px solid var(--color-accent);
  padding-left: 10px;
}

/* 제작된 제품 상세페이지 이미지 (전체 폭으로 순서대로 출력) */
.product-detail-page-images {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-detail-page-images img {
  width: 100%;
  display: block;
}

/* 출시 준비중 모델 상세 카드 */
.product-detail-soon {
  background: var(--color-gray-light);
}

.product-detail-soon .product-detail-image {
  background: repeating-linear-gradient(135deg, #e4e8ee 0px, #e4e8ee 10px, #dde1e9 10px, #dde1e9 20px);
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-gray-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--color-gray-dark);
}

.feature-list li i {
  color: var(--color-accent);
  margin-top: 2px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.spec-table th {
  width: 180px;
  background: var(--color-gray-light);
  color: var(--color-navy);
  font-weight: 600;
}

/* ------------------------------ Download Page ----------------------------- */
.notice-box {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  background: #eaf1ff;
  border: 1px solid #c9d9f7;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--color-navy);
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-box i {
  font-size: 18px;
  margin-top: 2px;
  color: var(--color-accent);
}

.download-block {
  max-width: var(--max-width);
  margin: 0 auto 48px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.download-block-header {
  padding: 22px 26px;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.download-block-header h3 {
  margin: 0;
  font-size: 18px;
}

.download-block-header span {
  font-size: 13px;
  color: #b8c4d9;
}

/* 출시 준비중 모델 다운로드 블록 */
.download-block-soon .download-block-header {
  background: var(--color-gray);
}

.download-soon-message {
  padding: 28px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-gray);
  font-size: 14px;
}

.download-soon-message i {
  font-size: 18px;
  color: var(--color-gray);
}

.table-scroll {
  overflow-x: auto;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.download-table th,
.download-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  white-space: nowrap;
}

.download-table th {
  background: var(--color-gray-light);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 13px;
}

.download-table tr:last-child td {
  border-bottom: none;
}

.category-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.category-tag.firmware {
  background: #e7f0ff;
  color: var(--color-navy);
}

.category-tag.manual {
  background: #eaf7ee;
  color: #237a3d;
}

.category-tag.guide {
  background: #fff2e6;
  color: #b3620f;
}

.optional-mark {
  font-size: 11px;
  color: var(--color-gray);
  font-weight: 500;
}

.status-ready {
  color: #b3620f;
  font-weight: 700;
  font-size: 13px;
  background: #fff2e0;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

.status-available {
  color: #1f8a3e;
  font-weight: 700;
  font-size: 13px;
  background: #e6f6ea;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

.btn-download-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.warning-box {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.warning-box h3 {
  margin: 0 0 14px;
  color: #8a5a00;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-box ul {
  margin: 0;
  padding-left: 20px;
  color: #6b4a00;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* -------------------------------- Contact -------------------------------- */
.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.contact-email-card {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-email-card .label {
  font-size: 13px;
  color: #b8c4d9;
  margin-bottom: 6px;
}

.contact-email-card .email {
  font-size: 20px;
  font-weight: 700;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
}

.form-group label .required {
  color: var(--color-danger);
  margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-gray-dark);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(61, 123, 253, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-gray-light);
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--color-gray-dark);
}

.consent-group input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent-group a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.form-note {
  font-size: 12.5px;
  color: var(--color-gray);
  margin-top: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------------------------------- Privacy -------------------------------- */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.policy-content h2 {
  color: var(--color-navy);
  font-size: 19px;
  margin: 32px 0 12px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  color: var(--color-gray-dark);
  font-size: 14.5px;
}

.policy-content ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.policy-content table th,
.policy-content table td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  font-size: 14px;
  text-align: left;
}

.policy-content table th {
  background: var(--color-gray-light);
  color: var(--color-navy);
}

.policy-updated {
  color: var(--color-gray);
  font-size: 13px;
  margin-top: 30px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

/* -------------------------------- Footer --------------------------------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #c4ccdb;
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .brand-name {
  color: var(--color-white);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}

.footer-info p {
  margin: 4px 0;
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-links a {
  font-size: 13.5px;
  color: #c4ccdb;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #8b96ac;
  text-align: center;
}

/* ------------------------------- Utilities -------------------------------- */
.text-center {
  text-align: center;
}

.mt-30 {
  margin-top: 30px;
}

/* ------------------------------- Responsive -------------------------------- */
@media (max-width: 860px) {
  .product-detail-top {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    min-height: 240px;
  }

  .product-detail-info,
  .product-detail-body {
    padding: 26px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 64px 20px 72px;
  }

  .section {
    padding: 54px 20px;
  }

  .contact-email-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .download-block-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-content {
    padding: 26px;
  }
}
