/* ============================================
   이맥시스템(주) - 공통 스타일시트
   ============================================ */

/* 외부 폰트 없음 – 시스템 폰트 사용 (빠른 로딩을 위해 Google Fonts 제거됨) */

:root {
  --navy: #003366;
  --navy-dark: #001e3c;
  --blue: #0056b3;
  --blue-light: #1a73e8;
  --accent: #e8a020;
  --accent-light: #f5c842;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --header-h: 100px;
  --subheader-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', '맑은 고딕', 'Malgun Gothic', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.75;
}
a { text-decoration: none; color: inherit; transition: color .25s, background .25s, opacity .25s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--gray-200); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 4px; }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
#site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 2px solid rgba(0,51,102,.12);
  display: flex; align-items: center;
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.header-inner {
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex; align-items: center;
  padding: 4px 0;
}
.site-logo img {
  height: 56px; width: auto; display: block;
  object-fit: contain;
  mix-blend-mode: multiply; /* 흰 배경(헤더) 위에서 흰 픽셀 투명 처리 */
}
.site-logo .logo-en { font-size: 22px; letter-spacing: 1px; }
.site-logo .logo-kr { font-size: 12px; font-weight: 500; color: var(--gray-600); display: block; }

/* Nav */
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 2px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-arrow { font-size: 10px; opacity: .55; margin-left: 3px; }
.nav-link {
  display: flex; align-items: center;
  padding: 10px 16px;
  font-size: 14px; font-weight: 700;
  color: var(--gray-700);
  border-radius: 6px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--navy); background: rgba(0,51,102,.08); }

/* 선택된 메뉴 강조 */
.nav-item.active > .nav-link {
  color: var(--navy);
  background: rgba(0,51,102,.1);
  position: relative;
}
.nav-item.active > .nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 16px; right: 16px;
  height: 2px; background: var(--navy); border-radius: 2px;
}

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 210px;
  background: var(--white);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 1100;
}
.nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 12px 20px;
  font-size: 13.5px; font-weight: 500; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: background .18s, color .18s;
}
.dropdown a:last-child { border-bottom: none; border-radius: 0 0 10px 10px; }
.dropdown a:hover { background: rgba(0,51,102,.07); color: var(--navy); }
.dropdown a.active { background: var(--navy); color: var(--white) !important; font-weight: 700; }

/* Mobile menu btn */
.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  width: 30px; cursor: pointer; padding: 4px 0;
}
.menu-btn span {
  height: 2px; background: var(--navy); border-radius: 2px;
  display: block; transition: all .3s;
}

/* ══════════════════════════════
   PAGE HERO (내부 페이지 상단 배너)
══════════════════════════════ */
.page-hero {
  padding-top: var(--header-h);
  height: 280px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--blue) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  font-size: 38px; font-weight: 900; color: var(--white);
  letter-spacing: -1px; position: relative;
}
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.7);
  margin-top: 12px; position: relative;
}
.page-hero .breadcrumb span { opacity: .5; }

/* ══════════════════════════════
   SUB-NAV (탭 메뉴)
══════════════════════════════ */
.sub-nav {
  position: sticky; top: var(--header-h); z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  gap: 0;
}
.sub-nav a {
  padding: 16px 28px;
  font-size: 14px; font-weight: 600; color: var(--gray-600);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all .2s;
}
.sub-nav a:hover { color: var(--navy); }
.sub-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 700;
}

/* ══════════════════════════════
   SECTION COMMON
══════════════════════════════ */
.section { padding: 80px 0; }
.section.bg-light { background: var(--gray-100); }
.section.bg-navy { background: var(--navy); color: var(--white); }

.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 40px;
}
.container-wide {
  width: 100%; max-width: 1400px;
  margin: 0 auto; padding: 0 40px;
}

.section-head { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px; font-weight: 900; color: var(--navy);
  letter-spacing: -1px; line-height: 1.25;
}
.section-title.white { color: var(--white); }
.section-title::after {
  content: ''; display: block;
  width: 48px; height: 4px; background: var(--navy);
  margin: 16px auto 0; border-radius: 2px;
}
.section-title.white::after { background: var(--accent); }
.section-desc {
  margin-top: 20px; font-size: 16px; color: var(--gray-600); line-height: 1.8;
}

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid var(--gray-200);
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,51,102,.15);
  border-color: var(--navy);
}
.card-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 24px; margin-bottom: 20px;
}
.card-title { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.card-text { font-size: 14px; color: var(--gray-600); line-height: 1.8; }
.card-list { margin-top: 14px; }
.card-list li {
  font-size: 13px; color: var(--gray-600);
  padding: 4px 0 4px 16px; position: relative; border-bottom: 1px solid var(--gray-100);
}
.card-list li::before {
  content: '▸'; position: absolute; left: 0; color: var(--navy); font-size: 10px; top: 6px;
}

/* ══════════════════════════════
   TABLE (공급실적)
══════════════════════════════ */
.supply-table-wrap { overflow-x: auto; margin-top: 30px; }
.supply-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.supply-table thead tr {
  background: var(--navy); color: var(--white);
}
.supply-table thead th {
  padding: 14px 16px; text-align: left; font-weight: 700; white-space: nowrap;
}
.supply-table tbody tr {
  border-bottom: 1px solid var(--gray-200); transition: background .2s;
}
.supply-table tbody tr:hover { background: rgba(0,51,102,.04); }
.supply-table tbody td {
  padding: 12px 16px; color: var(--gray-700); vertical-align: top;
}
.supply-table tbody td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.year-badge {
  display: inline-block;
  background: var(--navy); color: var(--white);
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}

/* ══════════════════════════════
   TIMELINE (연혁)
══════════════════════════════ */
.timeline { position: relative; padding-left: 60px; }
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(var(--navy), var(--blue));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
  position: absolute; left: -44px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--navy);
}
.timeline-year {
  font-size: 22px; font-weight: 900; color: var(--navy); margin-bottom: 8px;
}
.timeline-month {
  font-size: 12px; font-weight: 700; color: var(--accent);
  margin-right: 6px;
}
.timeline-event {
  font-size: 14px; color: var(--gray-700); margin-bottom: 4px;
  display: flex; gap: 6px;
}

/* ══════════════════════════════
   SPEC TABLE (장비)
══════════════════════════════ */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  padding: 12px 16px; border: 1px solid var(--gray-300);
  text-align: left; vertical-align: middle;
}
.spec-table thead th {
  background: var(--navy); color: var(--white); font-weight: 700;
}
.spec-table tbody tr:nth-child(even) { background: var(--gray-100); }
.spec-table td:last-child { text-align: center; font-weight: 700; color: var(--navy); }

/* ══════════════════════════════
   CERT GRID (등록/인증)
══════════════════════════════ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-item {
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: 14px; padding: 28px 24px; text-align: center;
  transition: all .3s;
}
.cert-item:hover { border-color: var(--navy); box-shadow: 0 8px 30px rgba(0,51,102,.12); }
.cert-icon { font-size: 40px; margin-bottom: 14px; }
.cert-name { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.cert-detail { font-size: 12px; color: var(--gray-600); line-height: 1.6; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
#site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 50px; margin-bottom: 50px;
}
.footer-logo {
  font-size: 20px; font-weight: 900; color: var(--white);
  margin-bottom: 20px; letter-spacing: .5px;
}
.footer-logo img {
  display: block;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.footer-text { font-size: 13px; line-height: 1.9; }
.footer-address { font-size: 13px; line-height: 1.9; margin-top: 14px; }
.footer-address strong { color: var(--white); }
.footer-col h4 {
  font-size: 14px; font-weight: 700; color: var(--white);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact-box {
  background: rgba(255,255,255,.08); border-radius: 12px;
  padding: 24px; text-align: center; margin-top: 10px;
}
.footer-contact-box .tel { font-size: 24px; font-weight: 900; color: var(--white); }
.footer-contact-box .email { font-size: 14px; color: var(--accent); margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.4);
}

/* ══════════════════════════════
   FLOATING BTN
══════════════════════════════ */
.float-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 800;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.float-btn a {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .3s, background .3s;
}
.float-btn a:hover { transform: scale(1.1); background: var(--blue); }
.float-btn .top-btn { background: var(--gray-700); font-size: 14px; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 700; transition: all .25s;
}
.btn-primary {
  background: var(--navy); color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--navy); color: var(--navy); background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-light); }

/* ══════════════════════════════
   MAP
══════════════════════════════ */
.map-wrap {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.map-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px;
}
.map-info-item {
  background: var(--gray-100); border-radius: 12px; padding: 24px;
  border-left: 4px solid var(--navy);
}
.map-info-item h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.map-info-item p { font-size: 13px; color: var(--gray-700); line-height: 1.8; }

/* ══════════════════════════════
   INFO BOX
══════════════════════════════ */
.info-box {
  background: var(--gray-100); border-left: 5px solid var(--navy);
  border-radius: 0 12px 12px 0; padding: 24px 28px; margin: 20px 0;
}
.info-box h4 { font-weight: 800; color: var(--navy); margin-bottom: 8px; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .card-grid-2, .card-grid-3, .footer-grid, .map-info-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .container, .container-wide { padding: 0 20px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 26px; }
  .page-hero h1 { font-size: 26px; }
  .sub-nav { overflow-x: auto; justify-content: flex-start; padding: 0 10px; }
  .sub-nav a { padding: 14px 16px; font-size: 13px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: fixed; top: var(--header-h); left: 0; width: 100%;
    background: var(--white); padding: 12px 0 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    overflow-y: auto; max-height: calc(100vh - var(--header-h));
    z-index: 1050;
  }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .nav-item { width: 100%; border-bottom: 1px solid var(--gray-200); }
  .nav-item:last-child { border-bottom: none; }
  .nav-link { padding: 15px 24px; width: 100%; border-radius: 0; }
  .nav-item.active > .nav-link::after { display: none; }
  /* 모바일 드롭다운: 기본 숨김, .open 클래스일 때만 표시 */
  .dropdown {
    position: static; transform: none !important;
    opacity: 0; visibility: hidden; max-height: 0; overflow: hidden;
    box-shadow: none; border: none; border-top: none;
    background: var(--gray-100); border-radius: 0;
    transition: opacity .2s, max-height .3s;
  }
  .nav-item.open > .dropdown {
    opacity: 1; visibility: visible; max-height: 400px;
  }
  .dropdown a { padding: 12px 36px; font-size: 13px; border-bottom: 1px solid var(--gray-200); }
  .dropdown a:last-child { border-bottom: none; }
  .menu-btn { display: flex; }
  .header-inner { padding: 0 20px; }
  .page-hero { height: 200px; }
  .cert-grid { grid-template-columns: 1fr; }
  .site-logo img { height: 44px !important; }
}
