/**
 * style.css - 성일기전 웹사이트 스타일
 * 그린→블루 그라데이션 기반 기업형 디자인 시스템
 * 
 * ============================================
 * ★ 디자인팀 색상 변경 가이드 ★
 * ============================================
 * 
 * 색상 변경은 --brand-green / --brand-blue만 수정하면 됩니다.
 * 그라데이션은 --brand-gradient에서 자동 반영됩니다 (page-hero 배너에만 사용).
 * 
 * 예시:
 *   --brand-green: #16a34a;  ← 이 값만 변경
 *   --brand-blue:  #1f4aa8;  ← 이 값만 변경
 * 
 * 버튼은 단색(--primary-solid)을 사용하며, 그라데이션은 page-hero에만 적용됩니다.
 * ============================================
 */

/* ===== 디자인 시스템 토큰 (Set A: Corporate) ===== */
:root {
  /* Brand (Set A: Corporate) */
  --brand-green: #16a34a;
  --brand-blue:  #1f4aa8;

  /* Gradient */
  --brand-gradient: linear-gradient(270deg, var(--brand-green) 0%, var(--brand-blue) 100%);
  --brand-gradient-soft: linear-gradient(270deg, rgba(22,163,74,.14) 0%, rgba(31,74,168,.14) 100%);

  /* Neutrals */
  --bg:      #ffffff;
  --surface: #f6f8fb;
  --text:    #111827;
  --muted:   #6b7280;
  --border:  #e5e7eb;

  /* UI */
  --radius:  14px;
  --shadow:  0 8px 24px rgba(0,0,0,.08);
  
  /* Button Colors (Solid) */
  --primary-solid: var(--brand-blue);
  --primary-solid-hover: #193d8f;
  --accent-solid: var(--brand-green);
  
  /* 하위 호환을 위한 별칭 */
  --primary: var(--brand-blue);
  --accent: var(--brand-green);
  --bg-light: var(--surface);
  --text-dark: var(--text);
  --text-gray: var(--text-muted);
  --text-muted: var(--muted);
  --bg-white: var(--bg);
  --border-color: var(--border);
}

/* ===== 리셋 & 기본 설정 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

/* ===== 공통 컴포넌트 ===== */

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 720px;
}

/* 오시는 길 섹션: 컨테이너 좌우 공간 20% 증가 */
#about-location .container {
  max-width: 1320px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section */
.section {
  padding: 60px 0;
}

/* Page Hero (그라데이션 배너) */
.page-hero {
  background: var(--brand-gradient);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* 회사소개 서브페이지 네비게이션 */
.about-subpage-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.about-subpage-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 1rem 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.about-subpage-nav__link {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.about-subpage-nav__link:hover {
  color: var(--brand-blue);
  background: var(--brand-gradient-soft);
}

.about-subpage-nav__link.active {
  color: var(--brand-blue);
  background: rgba(31, 74, 168, 0.1);
  font-weight: 600;
}

.about-subpages {
  min-height: 200px;
}

.about-subpage {
  display: none;
}

.about-subpage.active {
  display: block;
}

/* Hero (홈페이지 메인) - 다른 페이지(.page-hero)와 동일한 높이 체계(콘텐츠+패딩) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: white;
  padding: 80px 20px;
}

/* 브랜드 그라데이션 레이어 (video 아래, 콘텐츠 위) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  opacity: 0.85;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Section Title */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

#converterSubtitle,
#supportConverterSubtitle {
  white-space: pre-line;
}

#globalNetworkDescription {
  white-space: pre-line;
}

/* Accent Line (선택적) */
.accent-line {
  width: 60px;
  height: 4px;
  background: var(--primary-solid);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Placeholder */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.product-preview-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.product-preview-link:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-blue);
}

.product-preview-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.product-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--primary-solid);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--primary-solid-hover);
  transform: none;
}

.btn-primary:active {
  background: #152e6f;
}

.btn-ghost,
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover,
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

/* ===== 헤더 & 네비게이션 ===== */
.header {
  background-color: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--brand-blue);
}

.nav-link.active {
  color: var(--brand-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-solid);
}

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

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== 푸터 ===== */
.footer {
  background-color: var(--text);
  color: var(--bg);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--bg);
}

.footer-section p,
.footer-section a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--brand-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== 회사소개 페이지 ===== */
.about-content {
  max-width: 990px; /* 900px + 10% → 소개글 한 줄 표현 */
  margin: 0 auto;
}

/* CTA 버튼 중앙정렬 */
.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* 글로벌 네트워크 - 지도 이미지 */
.global-network-map-wrap {
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.global-network-map-pin-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.global-network-map-pin-wrap .global-network-map {
  display: block;
  width: 100%;
  vertical-align: top;
}

.map-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--brand-blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  pointer-events: none;
}

.global-network-map {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: none;
}

/* 글로벌 네트워크 - 국가 칩 컨테이너 */
.countries-chip-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

/* 섹션 여백 최적화 */
.section-compact {
  padding: 50px 0;
}

.country-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  text-align: center;
  min-height: 45px;
  line-height: 1.3;
}

.country-tag:hover {
  background: #9ca3af;
  color: white;
  border-color: #9ca3af;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}


.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* 소개글 줄바꿈 표시 및 중앙정렬 (홈·회사소개) */
#aboutSectionText,
#aboutParagraph1,
#aboutParagraph2 {
  white-space: pre-line;
  line-height: 1.8;
  color: var(--text);
  text-align: center;
}

/* 주소 줄바꿈 표시 (푸터·A/S 문의) */
[data-inject="footerAddress"],
#contactAddress,
#locationAddress {
  white-space: pre-line;
}

.brand-message {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 3rem 0;
  border-left: 4px solid var(--brand-blue);
}

.ceo-greeting {
  text-align: center;
}

.ceo-greeting__label {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.ceo-greeting__title {
  font-size: 1.25rem;
  color: var(--brand-blue);
  margin-bottom: 2rem;
  font-weight: 600;
}

.ceo-greeting__body {
  text-align: left;
  line-height: 1.9;
  font-size: 1rem;
  color: var(--text);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.ceo-greeting__body p {
  margin-bottom: 1.5rem;
  white-space: pre-line;
  text-align: left;
}

.ceo-greeting__sign {
  margin-top: 2.5rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.location-two-col {
  --location-left-ratio: 4;
  --location-right-ratio: 7.2;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.location-two-col__left {
  flex: var(--location-left-ratio);
  min-width: 0;
}

.location-two-col__right {
  flex: var(--location-right-ratio);
  min-width: 0;
}

.location-directions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.location-directions__address-label,
.location-directions__section {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin: 0 0 0.25rem 0;
}

.location-directions__address-label {
  font-weight: 700;
  color: var(--text);
}

.location-directions__sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.5rem 0 0.5rem 0;
}

.location-directions__text {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.location-directions__bus-stops,
.location-directions__car-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.location-directions__bus-stops li,
.location-directions__car-list > li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.location-directions__bus-stops li::before,
.location-directions__car-list > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.location-stop-name {
  display: block;
  color: var(--text);
  font-weight: 500;
}

.location-stop-buses {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
  padding-left: 0;
}

.location-directions__car-list ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0.5rem 0 0 0;
}

.location-directions__car-list ul li {
  position: relative;
  padding-left: 0.75rem;
  margin-bottom: 0.25rem;
}

.location-directions__car-list ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* 오시는 길 - 세로 레이아웃 (옵션 2) */
.location-vertical {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.location-address-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.location-map-full {
  width: 100%;
}

.location-map-embed {
  position: relative;
  width: 100%;
  height: 540px;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.location-map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Leaflet 지도 스타일 */
#aboutLeafletMap {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.custom-leaflet-marker {
  background: transparent;
  border: none;
}

.map-link--embed {
  display: inline-block;
  font-size: 0.95rem;
}

.location-address {
  margin-bottom: 1rem;
  color: var(--text);
  white-space: pre-line;
  line-height: 1.7;
}

.map-link--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.875rem 2rem;
  min-height: 48px;
  min-width: 120px;
  background: var(--brand-blue);
  color: #ffffff !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(31, 74, 168, 0.3);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.map-link--button:hover {
  background: var(--primary-solid-hover);
  text-decoration: none;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 74, 168, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.map-link--button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(31, 74, 168, 0.3);
  color: #ffffff !important;
}

.map-link--button:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  color: #ffffff !important;
}


#brandMessage {
  white-space: pre-line;
  text-align: center;
  line-height: 1.8;
  margin: 0;
}

/* 5대 핵심 가치 - Flex Wrap 레이아웃 */
.values-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 2rem;
}

.value-card {
  position: relative;
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  width: min(320px, 100%);
  line-height: 1.6;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  border-color: var(--brand-blue);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.value-icon .value-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.value-icon .value-icon-emoji {
  display: block;
}

.value-card h3 {
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.value-card p {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
  text-align: center;
}

.org-chart {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.org-ceo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.org-ceo-en {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.org-departments {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.org-departments li {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.org-dept-ko {
  font-weight: 600;
  color: var(--text);
}

.org-dept-en {
  font-size: 0.85rem;
  color: var(--muted);
}

/* 타임라인 컨테이너 */
.history-timeline-container {
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

.history-line {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.history-line::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.history-zigzag-container {
  margin-top: 2.5rem;
}

.history-zigzag {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.history-zigzag-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.history-zigzag-row--reverse {
  direction: rtl;
}

.history-zigzag-row--reverse .history-zigzag-card {
  direction: ltr;
}

.history-zigzag-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  min-height: 140px;
}

.history-zigzag-year {
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.history-zigzag-event {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.history-item {
  position: relative;
  padding: 0.25rem 0 2rem 1.5rem;
}

.history-item::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--brand-blue);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31,74,168,0.2);
}

.history-year {
  display: inline-block;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 1.1rem;
  background: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--brand-blue);
  margin-bottom: 0.75rem;
}

.history-events {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-event {
  background: var(--bg);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.history-item:last-child {
  padding-bottom: 0;
}


/* ===== 제품소개 페이지 ===== */
.product-card {
  scroll-margin-top: 5rem;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.product-info p {
  color: var(--muted);
}

/* ===== 제품 스펙 모달 ===== */
.product-spec-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-spec-modal.active {
  opacity: 1;
  visibility: visible;
}

.product-spec-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.product-spec-modal__content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.product-spec-modal.active .product-spec-modal__content {
  transform: scale(1);
}

.product-spec-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all 0.2s ease;
}

.product-spec-modal__close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.product-spec-modal__header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}

.product-spec-modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.product-spec-modal__body {
  padding: 2rem;
}

.product-spec-modal__image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.product-spec-modal__image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-spec-modal__image .placeholder {
  padding: 3rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.product-spec-modal__description {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.product-spec-modal__specs-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.product-spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-spec-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.product-spec-item:last-child {
  border-bottom: none;
}

.product-spec-item__key {
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.product-spec-item__value {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.product-spec-modal__no-specs {
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .product-spec-modal__content {
    width: 95%;
    max-height: 95vh;
  }
  
  .product-spec-modal__header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .product-spec-modal__title {
    font-size: 1.5rem;
    padding-right: 3rem;
  }
  
  .product-spec-modal__body {
    padding: 1.5rem;
  }
  
  .product-spec-modal__image {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .product-spec-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .product-spec-item__key {
    font-size: 0.95rem;
  }
  
  .product-spec-item__value {
    font-size: 0.95rem;
  }
}

/* ===== 자료실 페이지 ===== */
/* 왼쪽: 변환기, 오른쪽: 자료 목록 */
.resources-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.resources-two-col__left {
  position: sticky;
  top: 1.5rem;
}

.resources-two-col__right {
  min-width: 0;
}

.section-title--small {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.resources-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 1024px) {
  /* 태블릿: 곡선 타임라인 크기 조정 */
  .curved-timeline {
    max-width: 100%;
    height: 700px;
  }
  
  .timeline-card {
    width: 260px;
    font-size: 0.9rem;
  }
  
  .timeline-node__circle {
    width: 48px;
    height: 48px;
  }
  
  .timeline-node__year {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  .resources-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .resources-two-col__left {
    position: static;
  }

  .location-two-col {
    flex-direction: column;
  }

  .location-two-col__left,
  .location-two-col__right {
    flex: none;
  }

  .location-two-col__right {
    min-height: 300px;
  }

  .location-vertical {
    gap: 1.5rem;
  }

  .location-address-card {
    padding: 1.5rem;
  }

  .location-map-embed {
    height: 420px;
    min-height: 360px;
  }
}

/* 암페어 → kW 변환기 (AC 단상 220V) */
.converter-wrap {
  max-width: 100%;
}

.converter-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
}

.converter-note {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.converter-note strong {
  color: var(--brand-blue);
}

.converter-voltage-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.converter-voltage-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.converter-voltage-toggle label {
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.converter-voltage-toggle label:first-of-type {
  border-right: 1px solid var(--border);
}

.converter-voltage-toggle input:checked + label {
  background: var(--brand-blue);
  color: #fff;
}

.converter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.converter-form label {
  display: block;
  width: 100%;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.converter-form input[type="number"] {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.converter-form input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(31, 74, 168, 0.2);
}

.converter-result {
  min-height: 1.5em;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.converter-result--ok {
  color: var(--brand-blue);
}

.converter-result--error {
  color: #b91c1c;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: box-shadow 0.3s;
}

.resource-card:hover:not(.disabled) {
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.resource-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.resource-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.resource-info {
  flex: 1;
}

.resource-info h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.resource-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== A/S 문의 페이지 ===== */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-weight: 600;
  min-width: 100px;
  color: var(--text);
}

.contact-value {
  flex: 1;
  color: var(--muted);
}

.contact-value a {
  color: var(--brand-blue);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.map-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--brand-blue);
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countries-chip-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .history-zigzag-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  
  .page-hero {
    padding: 60px 20px;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .page-hero p {
    font-size: 1rem;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .values-wrap {
    gap: 15px;
    max-width: 100%;
  }
  
  .value-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .section-compact {
    padding: 40px 0;
  }
  
  .countries-chip-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

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

  .country-tag {
    min-height: 40px;
    padding: 0.5rem 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
  }

  
  /* 곡선 타임라인 모바일: 크기 축소 */
  .history-timeline-container {
    min-height: 600px;
    padding: 1.5rem 0;
  }
  
  .curved-timeline {
    height: 600px;
  }
  
  .timeline-node__circle {
    width: 44px;
    height: 44px;
  }
  
  .timeline-node__year {
    font-size: 0.65rem;
  }
  
  .timeline-card {
    width: 220px;
  }
  
  .timeline-card__year {
    font-size: 1rem;
  }
  
  .timeline-card__event {
    font-size: 0.85rem;
  }
  
  .resource-card {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .contact-label {
    min-width: auto;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding: 50px 20px;
  }
  
  .page-hero {
    padding: 50px 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .countries-chip-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-map-embed {
    height: 360px;
    min-height: 300px;
  }
}

/* ===== 제품 소개 (재원표 기반, 카드만 사용) ===== */
.product-intro-section {
  background: var(--surface);
}

.product-intro-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.product-intro-guide {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.product-intro-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.product-intro-tab {
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.product-intro-tab:hover {
  color: var(--text);
  background: var(--bg);
}

.product-intro-tab.active {
  color: var(--brand-blue);
  background: var(--bg);
  border-bottom: 2px solid var(--brand-blue);
  margin-bottom: -1px;
}

.product-intro-compare-wrap {
  margin-bottom: 1rem;
}

.product-intro-compare-label {
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-intro-compare-checkbox {
  width: 1.1rem;
  height: 1.1rem;
}

.product-intro-panels {
  margin-top: 1rem;
}

.product-intro-panel {
  display: none;
}

.product-intro-panel.active {
  display: block;
}

/* 이미지 없을 때: 내용만 전체 폭. 이미지 있을 때만 2단(좌 도면 / 우 스펙) */
.product-intro-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.product-intro-two-col.product-intro-has-dim-image {
  grid-template-columns: minmax(200px, 1fr) minmax(280px, 2fr);
}

.product-intro-dim-image-col {
  position: sticky;
  top: 1rem;
}

.product-intro-dim-image-col[hidden] {
  display: none !important;
}

.product-intro-dim-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.product-intro-spec-col {
  min-width: 0;
}

/* 인렛: 가로로 긴 이미지이므로 상단(이미지) → 하단(내용) 배치 */
#panel-inlet .product-intro-two-col.product-intro-inlet-layout {
  grid-template-columns: 1fr;
}
#panel-inlet .product-intro-dim-image-col {
  position: static;
  max-width: 100%;
}

/* 환기팬: 이미지를 할당된 공간 중앙에 배치 */
#panel-fan .product-intro-dim-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#fanDimImageWrap .product-intro-dim-img {
  margin-bottom: 0.75rem;
}

#fanDimImageWrap .product-intro-dim-img:last-child {
  margin-bottom: 0;
}

.product-intro-fan-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-intro-fan-subtabs label {
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.product-intro-select-wrap {
  margin-bottom: 1.25rem;
}

.product-intro-select-wrap label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.product-intro-select {
  min-width: 200px;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.product-intro-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.product-intro-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.product-intro-card-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.product-intro-card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.product-intro-card-unit {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-intro-dim-section {
  margin-top: 1.5rem;
}

.product-intro-dim-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  grid-column: 1 / -1;
}

.product-intro-no-data {
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.product-intro-compare-panel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.product-intro-compare-panel[hidden] {
  display: none !important;
}

.product-intro-compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.product-intro-compare-col-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--brand-blue);
}

@media (max-width: 768px) {
  .product-intro-two-col {
    grid-template-columns: 1fr;
  }
  .product-intro-dim-image-col {
    position: static;
  }
  .product-intro-spec-grid {
    grid-template-columns: 1fr;
  }
  .product-intro-compare-cols {
    grid-template-columns: 1fr;
  }
}

/* ===== 접근성 ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* 포커스 스타일 */
a:focus,
button:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* 이미지 대체 텍스트 */
img {
  max-width: 100%;
  height: auto;
}
