/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== DESIGN TOKENS ===== */
:root {
  --sky: #0d6ef0;
  --sky-dark: #0a55c4;
  --sky-light: #e8f1fd;
  --charcoal: #1a1a2e;
  --mid: #4a5568;
  --muted: #8a94a8;
  --border: #dde3ed;
  --surface: #f5f8ff;
  --kakao: #fee500;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13,110,240,0.10);
  --shadow-lg: 0 12px 48px rgba(13,110,240,0.16);
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--mid); font-size: 1rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-bottom: 12px; }
.section-title { color: var(--charcoal); margin-bottom: 16px; }
.section-sub { color: var(--mid); font-size: 1.05rem; max-width: 560px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; font-family: inherit; }
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: var(--sky-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--sky); border: 2px solid var(--sky); }
.btn-outline:hover { background: var(--sky-light); }

/* ===== HEADER ===== */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; cursor: pointer; }
.logo-icon { display: none; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { font-size: 0.95rem; font-weight: 600; color: var(--mid); transition: color 0.2s; position: relative; }
nav a:hover, nav a.active { color: var(--sky); }
nav a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--sky); border-radius: 1px; }
.nav-cta { background: var(--sky); color: #fff !important; padding: 8px 20px; border-radius: 8px; font-weight: 700; }
.nav-cta:hover { background: var(--sky-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }

/* ===== MOBILE NAV ===== */
.mobile-nav { display: none; position: fixed; inset: 0; background: #fff; z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.4rem; font-weight: 700; color: var(--charcoal); }
.mobile-nav a:hover { color: var(--sky); }
.mobile-nav-close { position: absolute; top: 20px; right: 24px; font-size: 1.8rem; cursor: pointer; color: var(--mid); }

/* ===== PAGE BANNER ===== */
.page-banner { background: linear-gradient(135deg, #0d1b4b, #0d6ef0); padding: 80px 0; color: #fff; margin-top: 68px; }
.page-banner .section-label { color: #7dd3fc; }
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner p { color: rgba(255,255,255,0.75); }

/* ===== KAKAO FLOAT ===== */
.kakao-float { position: fixed; bottom: 90px; right: 24px; z-index: 900; width: 56px; height: 56px; background: var(--kakao); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.2s; }
.kakao-float:hover { transform: scale(1.1); }
.kakao-float svg { width: 28px; height: 28px; }

/* ===== CONSULT STRIP ===== */
.consult-strip { background: var(--sky); padding: 20px 0; }
.consult-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.consult-strip p { color: rgba(255,255,255,0.9); font-size: 1.05rem; }
.consult-strip p strong { color: #fff; }
.btn-consult { background: #fff; color: var(--sky); font-weight: 700; padding: 12px 28px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: all 0.2s; }
.btn-consult:hover { background: #f0f6ff; }

/* ===== PRODUCT CARDS ===== */
.products-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; flex-wrap: wrap; gap: 16px; }
.category-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 10px 24px; border-radius: 999px; border: 2px solid var(--border); background: #fff; color: var(--mid); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.tab-btn.active, .tab-btn:hover { background: var(--sky); color: #fff; border-color: var(--sky); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.25s; cursor: pointer; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img { height: 200px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #f7faff; }
.product-card-img svg { width: 96px; height: 96px; opacity: 0.4; }
.product-card-badge { position: absolute; top: 12px; left: 12px; color: #fff; background: var(--sky); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.02em; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-body { padding: 20px; }
.product-card-body h3 { color: var(--charcoal); margin-bottom: 8px; }
.product-card-body p { font-size: 0.88rem; color: var(--mid); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; }
.product-card-category { font-size: 0.75rem; color: var(--sky); font-weight: 800; margin-bottom: 6px; text-transform: uppercase; }
.product-list-meta { color: var(--mid); font-size: 0.9rem; font-weight: 600; margin: -18px 0 24px; }
.menu-tabs { margin-top: -24px; margin-bottom: 32px; }
.menu-tab-btn { font-size: 0.82rem; padding: 8px 16px; }
.empty-products { grid-column: 1 / -1; text-align: center; padding: 64px 0; }
.product-card-specs { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-chip { background: var(--sky-light); color: var(--sky); font-size: 0.76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn { min-width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--border); background: #fff; color: var(--mid); font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-family: inherit; }
.page-btn.active, .page-btn:hover { background: var(--sky); color: #fff; border-color: var(--sky); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { background: linear-gradient(135deg, #0d1b4b, #0d6ef0); border-radius: 20px; padding: 48px; color: #fff; }
.about-visual-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; line-height: 1.3; }
.about-visual-title em { color: #7dd3fc; font-style: normal; }
.about-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-area { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 16px; }
.about-area-icon { font-size: 1.5rem; margin-bottom: 8px; }
.about-area h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.about-area p { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.greeting-block { margin-bottom: 32px; }
.greeting-block p { color: var(--mid); line-height: 1.9; }
.ceo-sig { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.ceo-avatar { width: 52px; height: 52px; background: var(--sky-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--sky); font-size: 1.4rem; font-weight: 800; flex-shrink: 0; }
.ceo-name { font-weight: 700; color: var(--charcoal); }
.ceo-title { font-size: 0.82rem; color: var(--muted); }

/* ===== HISTORY ===== */
.history-list { position: relative; max-width: 720px; margin: 0 auto; }
.history-list::before { content: ''; position: absolute; left: 120px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.history-item { display: flex; gap: 32px; margin-bottom: 32px; align-items: flex-start; }
.history-year { min-width: 120px; font-size: 1.1rem; font-weight: 800; color: var(--sky); text-align: right; padding-top: 2px; }
.history-dot { width: 12px; height: 12px; background: var(--sky); border-radius: 50%; margin-top: 6px; position: relative; z-index: 1; flex-shrink: 0; }
.history-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.history-content p { font-size: 0.85rem; color: var(--mid); }

/* ===== LOCATION ===== */
.map-container { background: var(--surface); border-radius: var(--radius); height: 320px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--border); margin-bottom: 24px; }
.map-placeholder { text-align: center; color: var(--muted); }
.map-placeholder svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: 0.4; }
.location-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.location-item { display: flex; align-items: flex-start; gap: 12px; }
.location-icon { width: 40px; height: 40px; background: var(--sky-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.location-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.location-value { font-size: 0.9rem; color: var(--charcoal); font-weight: 600; line-height: 1.5; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-detail-img { background: #f7faff; border-radius: 16px; height: 380px; display: flex; align-items: center; justify-content: center; background-size: contain; background-position: center; background-repeat: no-repeat; border: 1px solid var(--border); }
.product-detail-img svg { width: 160px; height: 160px; opacity: 0.35; }
.product-detail-info h2 { color: var(--charcoal); margin-bottom: 12px; }
.detail-desc { color: var(--mid); line-height: 1.8; margin-bottom: 28px; }
.features-list { margin-bottom: 32px; }
.features-list h3 { color: var(--charcoal); margin-bottom: 16px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.feature-check { width: 20px; height: 20px; background: var(--sky); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.feature-check::after { content: '✓'; font-size: 0.7rem; color: #fff; font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.spec-table th, .spec-table td { padding: 10px 14px; font-size: 0.88rem; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { background: var(--surface); color: var(--mid); font-weight: 600; width: 40%; }
.spec-table td { color: var(--charcoal); font-weight: 600; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-kakao { background: var(--kakao); color: #1a1a1a; font-weight: 700; }
.btn-kakao:hover { background: #e6ce00; }
.back-btn { background: none; border: none; color: var(--sky); font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; margin-bottom: 32px; padding: 0; font-family: inherit; }
.back-btn:hover { color: var(--sky-dark); }

/* ===== CONSULT FORM ===== */
.consult-form-wrap { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 48px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 24px; }
.form-label { font-size: 0.88rem; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; display: flex; gap: 4px; }
.form-label span { color: var(--sky); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.95rem; color: var(--charcoal); transition: border 0.2s; outline: none; font-family: inherit; background: #fff; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--sky); }
.form-textarea { min-height: 120px; resize: vertical; }
.privacy-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 24px; }
.privacy-title { font-size: 0.85rem; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.privacy-text { font-size: 0.78rem; color: var(--mid); line-height: 1.7; }
.privacy-check { display: flex; align-items: center; gap: 10px; margin-top: 12px; cursor: pointer; }
.privacy-check input { width: 16px; height: 16px; accent-color: var(--sky); }
.privacy-check span { font-size: 0.85rem; color: var(--charcoal); font-weight: 600; }
.submit-btn { width: 100%; padding: 16px; background: var(--sky); color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.submit-btn:hover { background: var(--sky-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success.show { display: block; }
.success-icon { width: 64px; height: 64px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; }
.form-success h3 { color: var(--charcoal); margin-bottom: 8px; }

/* ===== FOOTER ===== */
footer { background: var(--charcoal); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 3fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; margin-top: 4px; line-height: 1.8; }
.footer-logo { font-size: 1.1rem; font-weight: 900; color: #fff; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: none; }


/* ===== POLICY PAGES ===== */
.policy-wrap { max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 42px; box-shadow: var(--shadow); }
.policy-section { margin-bottom: 34px; }
.policy-section:last-child { margin-bottom: 0; }
.policy-section h2 { font-size: 1.25rem; color: var(--charcoal); margin-bottom: 14px; }
.policy-section h3 { font-size: 1rem; color: var(--charcoal); margin: 18px 0 8px; }
.policy-section p, .policy-section li { font-size: 0.95rem; color: var(--mid); line-height: 1.85; }
.policy-section ul { padding-left: 20px; margin: 8px 0 0; }
.policy-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.9rem; overflow: hidden; border-radius: 12px; }
.policy-table th, .policy-table td { border: 1px solid var(--border); padding: 14px; text-align: left; vertical-align: top; line-height: 1.6; }
.policy-table th { background: var(--surface); color: var(--charcoal); font-weight: 800; }
.footer-policy-links { display: flex; gap: 10px; align-items: center; }
.footer-policy-links a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-policy-links a:hover { color: #fff; }
@media (max-width: 640px) { .policy-wrap { padding: 28px 20px; border-radius: 16px; } .policy-table { font-size: 0.82rem; } .policy-table th, .policy-table td { padding: 10px; } }



/* ===== PRODUCT UX ENHANCEMENTS ===== */
.product-card {
  position: relative;
  border: 1px solid rgba(226,232,240,0.9);
  will-change: transform, box-shadow;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(14,165,233,0);
  transition: box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
  border-color: rgba(14,165,233,0.24);
}
.product-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(14,165,233,0.28);
}
.product-card-img {
  background-size: 86% auto;
  transition: background-size 0.35s ease, filter 0.35s ease, background-color 0.25s ease;
}
.product-card:hover .product-card-img {
  background-size: 94% auto;
  filter: saturate(1.06);
  background-color: #f0f8ff;
}
.product-card-body h3 {
  transition: color 0.25s ease;
}
.product-card:hover .product-card-body h3 {
  color: var(--sky-dark);
}
.lazy-bg:not(.lazy-loaded) {
  background-image: linear-gradient(100deg, #f4f7fb 8%, #eaf1f8 18%, #f4f7fb 33%);
  background-size: 200% 100%;
  animation: lazyBgShimmer 1.15s linear infinite;
}
.lazy-bg.lazy-loaded {
  animation: none;
}
@keyframes lazyBgShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 640px) {
  .product-card-img { background-size: 88% auto; }
  .product-card:hover .product-card-img { background-size: 94% auto; }
  .kakao-float { bottom: 24px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .location-info { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  nav { display: none; }
  .hamburger { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .about-areas { grid-template-columns: 1fr; }
  .history-list::before { left: 80px; }
  .history-year { min-width: 80px; font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .consult-form-wrap { padding: 28px 20px; }
  .consult-strip-inner { flex-direction: column; align-items: flex-start; }
  .page-banner { padding: 56px 0; }
}


/* ===== POLICY PAGE REFINEMENT ===== */
.policy-page-section {
  background: linear-gradient(180deg, #f3f7ff 0%, #eef4ff 100%) !important;
}
.policy-wrap {
  max-width: 760px;
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 18px 46px rgba(13,110,240,0.10);
}
.policy-section {
  padding: 0 0 28px;
  margin-bottom: 0;
}
.policy-section:last-child {
  padding-bottom: 0;
}
.policy-section h2 {
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: #0f172a;
}
.policy-section p,
.policy-section li {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #334155;
}
.policy-section ul {
  margin-top: 6px;
  padding-left: 18px;
}
.policy-section li + li {
  margin-top: 4px;
}
.policy-table {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.88rem;
}
.policy-table th,
.policy-table td {
  padding: 12px 14px;
}
.policy-table th {
  background: #f5f8ff;
  color: #0f172a;
}
@media (max-width: 640px) {
  .policy-wrap { max-width: 100%; padding: 26px 18px; }
  .policy-section { padding-bottom: 24px; }
}

/* 상담신청 제품군 선택 안내 */
.form-help {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.form-select:disabled {
  background: #f3f6fb;
  color: #94a3b8;
  cursor: not-allowed;
}
