/* ============================================================
   민수이엔지 홈페이지 스타일시트
   Color Palette:
     Primary   : #1a3a6b (딥 네이비 - 신뢰)
     Accent    : #e8a020 (골드 오렌지 - 에너지)
     Green     : #27ae60 (친환경 그린)
     Light     : #f4f6fa
     Dark      : #111827
============================================================ */

/* ─── 기본 리셋 & 공통 ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:     #1a3a6b;
  --primary-lt:  #254e9a;
  --accent:      #e8a020;
  --accent-lt:   #f5b840;
  --green:       #27ae60;
  --green-lt:    #2ecc71;
  --red:         #e74c3c;
  --light:       #f4f6fa;
  --light2:      #eaf0fb;
  --dark:        #111827;
  --dark2:       #1f2d40;
  --gray:        #64748b;
  --gray-lt:     #94a3b8;
  --white:       #ffffff;
  --shadow:      0 4px 24px rgba(26,58,107,0.10);
  --shadow-lg:   0 8px 40px rgba(26,58,107,0.16);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
  --font:        'Noto Sans KR', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── 컨테이너 ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── 섹션 공통 ─── */
.section {
  padding: 96px 0;
}
.section-dark {
  background: var(--dark2);
  color: var(--white);
}
.section-light {
  background: var(--light);
}
.section-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(232,160,32,0.12);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-header.light .section-title {
  color: var(--white);
}
.section-header.light .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--accent-lt);
}
.section-desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}
.section-header.light .section-desc {
  color: rgba(255,255,255,0.75);
}

/* ─── 버튼 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAV
============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}
#header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(26,58,107,0.10);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  transition: color var(--transition);
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
#header.scrolled .logo-main { color: var(--primary); }
#header.scrolled .logo-sub  { color: var(--gray); }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links li a {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links li a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.1);
}
#header.scrolled .nav-links li a {
  color: var(--dark);
}
#header.scrolled .nav-links li a:hover {
  color: var(--primary);
  background: var(--light2);
}
#header.scrolled .nav-links li a.nav-active {
  color: var(--accent);
  font-weight: 700;
}
.nav-links li a.nav-active {
  color: var(--accent-lt);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#header.scrolled .nav-toggle span { background: var(--dark); }

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d2444 0%, #1a3a6b 50%, #0f4c81 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,160,32,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(39,174,96,0.06) 0%, transparent 50%);
}
/* 배경 패턴 */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.018) 0px,
      rgba(255,255,255,0.018) 1px,
      transparent 1px,
      transparent 40px
    );
}
.hero-bg-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 720px;
}
.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-women {
  background: rgba(232,160,32,0.2);
  color: var(--accent-lt);
  border: 1px solid rgba(232,160,32,0.4);
}
.badge-sme {
  background: rgba(39,174,96,0.2);
  color: var(--green-lt);
  border: 1px solid rgba(39,174,96,0.35);
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ABOUT
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.about-card {
  background: var(--white);
  border: 1px solid rgba(26,58,107,0.09);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.about-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--white);
  font-size: 1.5rem;
}
.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.about-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}
.company-info-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: var(--white);
}
.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}
.info-item > i {
  font-size: 1.1rem;
  color: var(--accent-lt);
  margin-top: 3px;
  flex-shrink: 0;
}
.info-item > div {
  display: flex;
  flex-direction: column;
}
.info-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

/* ============================================================
   HISTORY / TIMELINE
============================================================ */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.15);
}
.timeline-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 84px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--dark2);
}
.timeline-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 80px;
  text-align: right;
  padding-top: 8px;
  flex-shrink: 0;
}
.timeline-content {
  padding-left: 28px;
  padding-top: 8px;
}
.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ============================================================
   ORG CHART
============================================================ */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}
.org-top { margin-bottom: 0; }
.org-line-v {
  width: 2px;
  height: 36px;
  background: var(--primary);
  opacity: 0.3;
}
.org-mid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: default;
}
.org-box i { font-size: 1.4rem; }
.org-box.ceo {
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  color: var(--white);
  box-shadow: var(--shadow);
  min-width: 140px;
}
.org-box.dept {
  background: var(--white);
  border: 2px solid rgba(26,58,107,0.15);
  color: var(--primary);
  min-width: 140px;
  box-shadow: var(--shadow);
}
.org-box.dept:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.location-box {
  background: var(--white);
  border: 1px solid rgba(26,58,107,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 36px;
  align-items: start;
  box-shadow: var(--shadow);
}
.location-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-info h3 i { color: var(--accent); }
.location-info p {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 4px;
}
.location-sub {
  font-size: 0.85rem !important;
  color: var(--gray) !important;
  margin-bottom: 16px !important;
}
.location-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.location-contacts span {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-contacts span i { color: var(--accent); }
.map-embed { border-radius: var(--radius); overflow: hidden; }

/* ============================================================
   CERTIFICATIONS
============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.cert-card {
  background: var(--white);
  border: 1px solid rgba(26,58,107,0.09);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.cert-icon {
  width: 52px;
  height: 52px;
  background: var(--light2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
}
.cert-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.cert-card p {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.55;
  flex: 1;
}
.cert-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--primary);
  color: var(--white);
}
.cert-badge-green  { background: var(--green); }
.cert-badge-blue   { background: #2980b9; }
.cert-badge-orange { background: #e67e22; }
.cert-badge-red    { background: var(--red); }

/* ============================================================
   MANPOWER
============================================================ */
.manpower-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.stat-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--white);
}
.stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-lt);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.manpower-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.manpower-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
.manpower-table thead {
  background: var(--primary);
  color: var(--white);
}
.manpower-table th {
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.04em;
}
.manpower-table td {
  padding: 14px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(26,58,107,0.07);
  color: var(--dark);
}
.manpower-table tbody tr:hover { background: var(--light); }
.manpower-table tbody tr:last-child td { border-bottom: none; }
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}
.role-ceo   { background: #fef3c7; color: #92400e; }
.role-tech  { background: #dbeafe; color: #1e40af; }
.role-admin { background: #dcfce7; color: #166534; }

/* ============================================================
   EQUIPMENT
============================================================ */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.equip-card {
  background: var(--white);
  border: 1px solid rgba(26,58,107,0.09);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.equip-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.equip-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-lt));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--white);
  font-size: 1.4rem;
}
.equip-card h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.equip-card p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ============================================================
   PROJECTS / TABS
============================================================ */
.project-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid rgba(26,58,107,0.2);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--white);
  border: 1px solid rgba(26,58,107,0.09);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.project-icon {
  width: 48px;
  height: 48px;
  background: var(--light2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.project-info h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.project-info p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 10px;
}
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--light2);
  color: var(--primary);
}

/* ============================================================
   PORTFOLIO
============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.portfolio-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.portfolio-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.ev-thumb    { background: linear-gradient(135deg, #1a3a6b 0%, #254e9a 100%); color: #60a5fa; }
.solar-thumb { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); color: #f3d470; }
.elec-thumb  { background: linear-gradient(135deg, #065f46 0%, #10b981 100%); color: #a7f3d0; }
.apt-thumb   { background: linear-gradient(135deg, #9a3412 0%, #f97316 100%); color: #fed7aa; }
.portfolio-body {
  padding: 22px 24px;
}
.portfolio-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-lt);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}
.portfolio-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.portfolio-body p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

/* ============================================================
   WHY US
============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}
.why-item:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}
.why-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.why-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* ============================================================
   CONTACT
============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-block h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-sub {
  font-size: 0.8rem;
  color: var(--gray-lt);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-list li > i {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 2px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.contact-list li > div {
  display: flex;
  flex-direction: column;
}
.contact-list li strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.contact-list li span {
  font-size: 0.97rem;
  color: var(--dark);
  font-weight: 500;
}
.contact-list li a {
  color: var(--primary);
  font-weight: 600;
}
.contact-list li a:hover { color: var(--accent); }
.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--light2);
  color: var(--primary);
  border: 1px solid rgba(26,58,107,0.15);
}
.contact-form-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(26,58,107,0.15);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.form-group textarea { resize: vertical; }

/* 성공 메시지 */
.form-success {
  display: none;
  background: #dcfce7;
  border: 1px solid var(--green);
  color: #166534;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 0;
}
.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-main {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}
.footer-logo-sub {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
}
.footer-info p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.footer-badges span {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  text-align: center;
  padding: 18px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ─── 상단으로 버튼 ─── */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,160,32,0.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}
#backToTop:hover {
  background: var(--accent-lt);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .location-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(10,24,46,0.97);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 13px 28px;
    color: rgba(255,255,255,0.88) !important;
    border-radius: 0;
  }
  .nav-links li a:hover {
    background: rgba(255,255,255,0.07) !important;
    color: var(--accent) !important;
  }
  .nav-toggle { display: flex; }

  .timeline::before { left: 60px; }
  .timeline-item::before { left: 56px; }
  .timeline-year { min-width: 52px; font-size: 1.1rem; }
  .timeline-content { padding-left: 24px; }

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

  .company-info-box { padding: 24px; }
  .location-box { padding: 24px; }

  .org-mid { gap: 12px; }
  .org-box { padding: 14px 18px; min-width: 110px; font-size: 0.82rem; }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-badges  { flex-direction: column; align-items: center; }
  .manpower-table th, .manpower-table td { padding: 10px 12px; }
}
