/* ===== Template 08 - 제조업/중견기업 ===== */

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --secondary: #d97706;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --navy: #0f172a;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

/* ── 리셋 ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── 로딩 ── */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s;
}
.loading-screen.hide { opacity: 0; pointer-events: none; }
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 헤더 ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); }
.header.header-hide { transform: translateY(-100%); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  font-size: 1.4rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.5px;
}
.header-logo img { height: 36px; }
.header-nav { display: flex; gap: 36px; }
.nav-link {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }
.header-cta-btn {
  padding: 10px 24px; background: var(--primary); color: #fff;
  font-size: 0.9rem; font-weight: 600; border-radius: var(--radius);
  transition: background var(--transition);
}
.header-cta-btn:hover { background: var(--primary-dark); }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 1001;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg); padding: 40px 24px;
  flex-direction: column; gap: 0;
  transform: translateY(-20px); opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.mobile-nav.open {
  display: flex; transform: translateY(0); opacity: 1; pointer-events: all;
}
.mobile-nav-link {
  font-size: 1.2rem; font-weight: 600; padding: 16px 0;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.mobile-nav-cta {
  margin-top: 24px; padding: 14px 0; text-align: center;
  background: var(--primary); color: #fff; font-weight: 600;
  border-radius: var(--radius);
}

/* ── 히어로 (Split) ── */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--bg);
}
.hero-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px;
  align-items: center; min-height: calc(100vh - 72px);
  padding: 60px 0;
}
.hero-label {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  color: var(--secondary); letter-spacing: 2px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 3.2rem; font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 36px;
}
.hero-btn {
  display: inline-block; padding: 14px 36px;
  background: var(--primary); color: #fff;
  font-size: 1rem; font-weight: 600; border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.hero-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number {
  font-size: 2.4rem; font-weight: 800; color: var(--primary);
  line-height: 1;
}
.hero-stat-suffix { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.hero-stat-label {
  font-size: 0.85rem; color: var(--text-muted); margin-top: 4px;
  font-weight: 500;
}
.hero-image-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-wrap img {
  width: 100%; height: 500px; object-fit: cover;
}
.hero-image-wrap::before {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(30, 64, 175, 0.1); border-radius: 16px;
  z-index: 1;
}

/* ── 섹션 공통 ── */
.section { padding: 120px 0; }
.section-light { background: var(--bg-light); }
.section-header-center { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--secondary); letter-spacing: 3px;
  margin-bottom: 12px; text-transform: uppercase;
}
.section-title {
  font-size: 2.4rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px; line-height: 1.3;
}

/* ── WHO WE ARE ── */
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.about-divider {
  width: 48px; height: 3px; background: var(--primary);
  margin: 28px 0;
}
.about-desc {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.9;
  margin-bottom: 32px;
}
.about-features { display: flex; flex-direction: column; gap: 12px; }
.about-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 500; color: var(--text);
}
.about-check {
  color: var(--primary); font-weight: 700; font-size: 1rem;
}

/* Timeline */
.about-timeline { position: relative; padding-left: 32px; }
.timeline-line {
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item {
  position: relative; padding: 0 0 32px 0;
  opacity: 0; transform: translateX(20px);
  transition: opacity 0.5s calc(var(--delay, 0s) + 0.1s), transform 0.5s calc(var(--delay, 0s) + 0.1s);
}
.timeline-item.timeline-visible {
  opacity: 1; transform: translateX(0);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -32px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--primary);
  z-index: 1;
}
.timeline-item.timeline-visible .timeline-dot {
  background: var(--primary);
  animation: dotPulse 0.4s calc(var(--delay, 0s) + 0.2s) both;
}
@keyframes dotPulse {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.timeline-content { display: flex; flex-direction: column; gap: 2px; }
.timeline-year {
  font-size: 1.1rem; font-weight: 800; color: var(--primary);
}
.timeline-event {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.5;
}

/* ── 핵심 가치 ── */
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.value-card {
  background: var(--bg); padding: 40px 28px; border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.value-icon {
  font-size: 2.8rem; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.value-title {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.value-desc {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
}

/* ── 사업 영역 ── */
.business-list { display: flex; flex-direction: column; gap: 80px; }
.business-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.business-row.reverse { direction: rtl; }
.business-row.reverse > * { direction: ltr; }
.business-image { border-radius: 12px; overflow: hidden; }
.business-image img {
  width: 100%; height: 360px; object-fit: cover;
  transition: transform 0.6s;
}
.business-image-icon {
  height: 360px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-light); border: 1px solid var(--border);
}
.business-icon { font-size: 5rem; }
.business-row:hover .business-image img { transform: scale(1.05); }
.business-num {
  font-size: 3rem; font-weight: 900; color: var(--primary);
  opacity: 0.15; line-height: 1; display: block; margin-bottom: 8px;
}
.business-title {
  font-size: 1.6rem; font-weight: 700; color: var(--text);
  margin-bottom: 16px;
}
.business-desc {
  font-size: 1rem; color: var(--text-muted); line-height: 1.8;
}

/* ── 선택 이유 (Strengths) ── */
.strength-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.strength-card {
  background: var(--bg); padding: 40px 28px; border-radius: 12px;
  border: 1px solid var(--border); text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.strength-icon {
  font-size: 2.8rem; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.strength-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.strength-desc {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
}

/* ── 파트너 ── */
.partners-marquee {
  overflow: hidden; padding: 20px 0;
}
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.partner-logo {
  flex-shrink: 0;
  padding: 20px 40px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem; font-weight: 700; color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  filter: grayscale(1); opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-logo:hover {
  filter: grayscale(0); opacity: 1;
  border-color: var(--primary); color: var(--primary);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CTA ── */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}
.cta-title {
  font-size: 2.6rem; font-weight: 800; color: #fff;
  margin-bottom: 20px; line-height: 1.3;
}
.cta-desc {
  font-size: 1.1rem; color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; gap: 20px; justify-content: center; align-items: center; }
.cta-btn-primary {
  display: inline-block; padding: 16px 40px;
  background: #fff; color: var(--primary);
  font-size: 1rem; font-weight: 700; border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); }
.cta-phone {
  font-size: 1.1rem; color: #fff; font-weight: 600;
}

/* ── 푸터 ── */
.footer {
  background: var(--navy); color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  font-size: 1.4rem; font-weight: 800; color: #fff;
  margin-bottom: 12px;
}
.footer-slogan {
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}
.footer-sns { display: flex; gap: 16px; }
.footer-sns a {
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}
.footer-sns a:hover { color: #fff; }
.footer-col-title {
  font-size: 0.95rem; font-weight: 700; color: #fff;
  margin-bottom: 20px;
}
.footer-link {
  display: block; font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-link:hover { color: #fff; }
.footer-info {
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}
.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-biz {
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.3);
}
.footer-copyright {
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.3);
}
.footer-legal {
  display: flex; gap: 16px; margin: 6px 0;
}
.footer-legal a {
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}
.footer-legal a:hover { color: rgba(255, 255, 255, 0.8); }

/* ── Top 버튼 ── */
.top-btn {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; font-size: 1.2rem; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}
.top-btn.visible { opacity: 1; visibility: visible; }
.top-btn:hover { transform: translateY(-4px); }

/* ── 스크롤 애니메이션 ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s calc(var(--delay, 0s)), transform 0.7s calc(var(--delay, 0s));
}
.reveal.revealed {
  opacity: 1; transform: translateY(0);
}

/* ═══════════════════════════════════════
   반응형
   ═══════════════════════════════════════ */

/* 1024px */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-title { font-size: 2.6rem; }
  .about-layout { gap: 48px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .business-row { gap: 40px; }
  .location-grid { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 768px */
@media (max-width: 768px) {
  .header-nav, .header-cta-btn { display: none; }
  .hamburger { display: block; }
  .mobile-nav { display: flex; }

  .hero-split {
    grid-template-columns: 1fr; gap: 32px;
    min-height: auto; padding: 40px 0;
  }
  .hero-title { font-size: 2.2rem; }
  .hero-image-wrap img { height: 340px; }
  .hero-stats { gap: 24px; }
  .hero-stat-number { font-size: 1.8rem; }

  .section { padding: 80px 0; }
  .section-title { font-size: 1.8rem; }

  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .business-row { grid-template-columns: 1fr; gap: 32px; }
  .business-row.reverse { direction: ltr; }
  .business-image img { height: 280px; }

  .strength-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .location-grid { grid-template-columns: 1fr; }

  .cta-title { font-size: 2rem; }
  .cta-actions { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { min-height: auto; }
  .hero-split { padding: 32px 0; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-image-wrap img { height: 260px; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }
  .section-header-center { margin-bottom: 40px; }

  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 28px 20px; }

  .strength-grid { grid-template-columns: 1fr; }
  .strength-card { padding: 28px 20px; }

  .business-list { gap: 48px; }
  .business-image img { height: 220px; }
  .business-title { font-size: 1.3rem; }
  .business-num { font-size: 2.4rem; }

  .map-btn-group { flex-direction: column; align-items: stretch; }
  .btn-map { width: 100%; }

  .cta-section { padding: 80px 0; }
  .cta-title { font-size: 1.6rem; }

  .footer { padding: 48px 0 0; }

  .top-btn { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ── 오시는 길 ── */
.location-section { background: var(--bg-light); }
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.map-placeholder {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); overflow: hidden;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.map-placeholder-inner {
  text-align: center; padding: 40px 32px;
}
.map-address-label {
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin-bottom: 8px; line-height: 1.6;
}
.map-detail-address {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px;
}
.map-btn-group {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-top: 20px;
}
.btn-map {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.btn-map:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-map-kakao { background: #3A1D1D; }
.btn-map-kakao:hover { background: #2a1515; }

.location-info { display: flex; flex-direction: column; gap: 32px; }
.location-info-title {
  font-size: 0.85rem; font-weight: 700; color: var(--secondary);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.hours-row:last-child { border-bottom: none; padding-bottom: 0; }
.hours-day { font-weight: 600; color: var(--text); }
.hours-time { color: var(--text-muted); }
.hours-closed .hours-day { color: var(--text-muted); }
.hours-closed .hours-time { color: var(--text-light); }
.contact-block { display: flex; flex-direction: column; gap: 12px; }
.contact-row {
  display: flex; gap: 16px; align-items: baseline;
  font-size: 0.95rem;
}
.contact-label {
  font-size: 0.8rem; font-weight: 700; color: var(--secondary);
  letter-spacing: 1px; text-transform: uppercase;
  min-width: 52px; flex-shrink: 0;
}
.contact-value { color: var(--text); }
a.contact-value { color: var(--primary); }
a.contact-value:hover { text-decoration: underline; }
.location-note {
  font-size: 0.82rem; color: var(--text-light);
  padding-top: 16px; border-top: 1px solid var(--border);
}

/* ── Demo Notice ── */
.footer-demo-notice {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 8px;
  padding: 0 16px;
}
