/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2b2b2b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; color: #1a1a1a; }

/* Pretendard webfont */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

:root {
  --primary: #1a4480;
  --primary-dark: #0f2d5c;
  --primary-light: #4a90c2;
  --accent: #e8a317;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #dde3ec;
  --gray-300: #c5ccd6;
  --gray-500: #7a8290;
  --gray-700: #4a5260;
  --gray-900: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-w: 1200px;
}

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

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo a {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--primary);
  letter-spacing: -0.5px;
}
.logo .logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 800;
}
.logo .logo-sub {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--gray-500); letter-spacing: 1px; margin-top: 2px;
}

/* Main nav (desktop) */
.gnb { display: flex; align-items: center; gap: 8px; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: block; padding: 14px 22px;
  font-size: 16px; font-weight: 600; color: var(--gray-900);
  transition: color .15s ease;
}
.gnb > li > a:hover, .gnb > li.active > a { color: var(--primary); }
.gnb .sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.gnb > li:hover .sub,
.gnb > li:focus-within .sub {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.gnb .sub li a {
  display: block; padding: 10px 20px; font-size: 15px; color: var(--gray-700);
  white-space: nowrap;
}
.gnb .sub li a:hover { background: var(--gray-50); color: var(--primary); }

/* Mobile menu button */
.mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: none; padding: 0;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--gray-900);
  margin: 5px auto; transition: transform .25s, opacity .25s;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Hero ========== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(15,45,92,0.92) 0%, rgba(26,68,128,0.86) 50%, rgba(74,144,194,0.78) 100%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%),
    var(--primary-dark);
  color: #fff;
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(255,255,255,0.03) 30px 31px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero .tag {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 .accent { color: #ffd980; }
.hero .lead {
  font-size: clamp(15px, 2vw, 19px);
  max-width: 720px; margin: 0 auto;
  opacity: 0.92;
  line-height: 1.7;
}
.hero .cta-row {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 36px; flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: #ffba2e; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-ghost { background: var(--gray-100); color: var(--gray-900); }
.btn-ghost:hover { background: var(--gray-200); }

/* ========== Sections ========== */
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -0.5px;
}
.section-title .desc {
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 16px;
}

/* Product category grid */
.cat-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cat-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: all .18s ease;
  position: relative;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.cat-card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 32px;
}
.cat-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--gray-900); }
.cat-card p { font-size: 14px; color: var(--gray-500); margin: 0; }
.cat-card .badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}

/* About strip */
.about-strip { background: var(--gray-50); }
.about-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about-grid .text h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.about-grid .text p { color: var(--gray-700); margin-bottom: 12px; }
.about-grid .stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 28px;
}
.about-grid .stats .stat .num {
  font-size: 32px; font-weight: 800; color: var(--primary);
}
.about-grid .stats .stat .lbl {
  font-size: 13px; color: var(--gray-500);
}
.about-grid .visual {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 96px;
  font-weight: 800;
  box-shadow: 0 20px 40px rgba(26,68,128,0.2);
}

/* CTA strip */
.cta-strip {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
}
.cta-strip h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
.cta-strip p { opacity: .85; margin-bottom: 28px; }

/* ========== Footer ========== */
.site-footer {
  background: #161b25;
  color: #b3bac5;
  padding: 50px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.2fr 1fr 1fr;
  margin-bottom: 32px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0.5px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #b3bac5; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a3140;
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #7a8290; font-size: 13px;
}

/* ========== Sub page common ========== */
.page-head {
  background:
    linear-gradient(135deg, rgba(15,45,92,0.94) 0%, rgba(26,68,128,0.86) 100%),
    var(--primary-dark);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
}
.page-head h1 { color: #fff; font-size: clamp(26px, 4vw, 42px); margin-bottom: 10px; }
.page-head .crumb { opacity: 0.7; font-size: 14px; letter-spacing: 1px; }

/* Sub layout */
.sub-section { padding: 70px 0 100px; }
.sub-section h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 18px; }
.sub-section p { color: var(--gray-700); margin: 0 0 12px; line-height: 1.85; }

/* About page – CEO greeting */
.greet-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.greet-grid .photo {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  aspect-ratio: 3/4;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 14px;
  border: 1px solid var(--gray-200);
}
.greet-grid .signature {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
  font-size: 15px; color: var(--gray-700);
}
.greet-grid .signature strong { color: var(--gray-900); font-size: 18px; margin-left: 8px; }

/* Certificate grid */
.cert-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cert-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all .18s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card .img {
  aspect-ratio: 3/4;
  background:
    linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 48px;
  border-bottom: 1px solid var(--gray-100);
}
.cert-card .body { padding: 16px; text-align: center; }
.cert-card h3 { font-size: 15px; margin-bottom: 4px; }
.cert-card p { font-size: 13px; color: var(--gray-500); margin: 0; }

/* Location */
.map-wrap {
  width: 100%; aspect-ratio: 16/8;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.loc-info {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 30px;
}
.loc-info .item {
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
}
.loc-info .item .label {
  font-size: 12px; font-weight: 700;
  color: var(--primary); letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.loc-info .item .val { font-size: 16px; font-weight: 600; color: var(--gray-900); }

/* Products page */
.product-cat { margin-bottom: 60px; }
.product-cat h2 {
  font-size: 22px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.product-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.product-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: all .15s ease;
}
.product-item:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.product-item .ph {
  aspect-ratio: 1; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 36px;
}
.product-item h4 { font-size: 14px; color: var(--gray-900); font-weight: 600; }
.product-item .patent {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
}

/* ========== Inquiry form ========== */
.inquiry-wrap {
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 40px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--gray-900); margin-bottom: 8px;
}
.form-group label .req { color: #d44; margin-left: 4px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(74,144,194,0.15);
}
.form-group textarea { min-height: 180px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { text-align: center; margin-top: 30px; }
.form-actions .btn { min-width: 200px; justify-content: center; }
.form-notice {
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  font-size: 13px; color: var(--gray-700);
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
}
.form-notice strong { color: var(--primary); }

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}
.alert-success { background: #e6f7ec; color: #1e6b3a; border: 1px solid #b7e2c3; }
.alert-error { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c2c2; }

/* ========== Floating quick ========== */
.floating-quick {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.floating-quick a {
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(15,45,92,0.3);
  transition: transform .15s;
}
.floating-quick a:hover { transform: scale(1.08); background: var(--primary-light); }
.floating-quick a.tel { background: var(--accent); color: #1a1a1a; }
.floating-quick a.tel:hover { background: #ffba2e; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .greet-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { height: 64px; }
  .mobile-toggle { display: block; }
  .gnb {
    position: fixed; top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .gnb.open { max-height: calc(100vh - 64px); overflow-y: auto; }
  .gnb > li { border-bottom: 1px solid var(--gray-100); }
  .gnb > li > a { padding: 16px 24px; font-size: 16px; }
  .gnb .sub {
    position: static; transform: none;
    box-shadow: none; border: none;
    opacity: 1; visibility: visible;
    padding: 0 0 10px 0;
    background: var(--gray-50);
    border-radius: 0;
    min-width: 0;
  }
  .gnb .sub li a { padding: 10px 36px; font-size: 14px; }

  .section { padding: 60px 0; }
  .hero { padding: 70px 0 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .inquiry-wrap { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid .stats { grid-template-columns: 1fr 1fr; }
  .floating-quick { right: 14px; bottom: 14px; }
  .floating-quick a { width: 50px; height: 50px; font-size: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding: 60px 0 70px; }
  .page-head { padding: 50px 0 40px; }
  .sub-section { padding: 50px 0 70px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 22px 14px; }
  .cat-card .icon { width: 50px; height: 50px; font-size: 24px; }
}
