/* ============================================================
   (주)태성기계 새 홈페이지 공통 스타일 — 시안 v1 (2026-08-02)
   기본 원칙: 기울임꼴 사용 금지 / 남색(신뢰) + 주황(설비 색상) 포인트
   ============================================================ */

:root {
  --navy: #14335f;        /* 주 색상 — 신뢰감 있는 짙은 남색 */
  --navy-dark: #0c2140;
  --orange: #e87c1e;      /* 포인트 — 태성 설비 도색 계열 주황 */
  --orange-dark: #c96509;
  --ink: #1d2733;         /* 본문 글자 */
  --gray: #5b6470;
  --line: #e3e8ee;
  --bg-soft: #f5f7fa;
  --white: #ffffff;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  font-style: normal; /* 기울임꼴 금지 */
}
em, i, cite, address { font-style: normal; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── 시안 표시 배지 ─────────────────────────── */
.draft-badge {
  position: fixed; right: 14px; bottom: 14px; z-index: 999;
  background: #111; color: #fff; opacity: .78;
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
}

/* ── 헤더 ──────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.header .logo img { height: 34px; width: auto; }
.gnb { display: flex; gap: 34px; font-weight: 600; font-size: 16px; }
.gnb a { padding: 8px 2px; color: var(--ink); }
.gnb a:hover { color: var(--navy); border-bottom: 3px solid var(--orange); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-size: 13px; font-weight: 700; color: var(--gray); border: 1px solid var(--line); padding: 6px 10px; border-radius: 6px; }
.lang-switch:hover { color: var(--navy); border-color: var(--navy); }
.btn-quote {
  background: var(--orange); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 8px;
}
.btn-quote:hover { background: var(--orange-dark); }

/* ── 히어로 ────────────────────────────────── */
.hero {
  position: relative; margin-top: 72px; height: 560px; overflow: hidden;
  background: var(--navy-dark);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center right;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.on { opacity: 1; }
.hero-slide::after { /* 글자 가독용 어두운 그라데이션 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,20,40,.82) 0%, rgba(8,20,40,.45) 55%, rgba(8,20,40,.15) 100%);
}
.hero .inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker { color: #ffb469; font-weight: 700; letter-spacing: .12em; font-size: 15px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 46px; line-height: 1.3; font-weight: 800; margin-bottom: 18px; word-break: keep-all; }
.hero p.sub { color: #dbe4f0; font-size: 19px; margin-bottom: 34px; word-break: keep-all; }
.hero-btns { display: flex; gap: 14px; }
.hero-btns .primary {
  background: var(--orange); color: #fff; font-weight: 700; font-size: 17px;
  padding: 15px 30px; border-radius: 10px;
}
.hero-btns .primary:hover { background: var(--orange-dark); }
.hero-btns .ghost {
  border: 1.5px solid rgba(255,255,255,.75); color: #fff; font-weight: 600; font-size: 17px;
  padding: 15px 30px; border-radius: 10px;
}
.hero-btns .ghost:hover { background: rgba(255,255,255,.12); }

/* ── 신뢰 지표 바 ──────────────────────────── */
.trust { background: var(--navy); color: #fff; }
.trust .inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 26px; padding-bottom: 26px; gap: 18px; text-align: center;
}
.trust b { display: block; font-size: 20px; font-weight: 800; margin-bottom: 3px; }
.trust span { font-size: 14px; color: #b9c6da; }

/* ── 공통 섹션 ─────────────────────────────── */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en { color: var(--orange); font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.sec-head h2 { font-size: 34px; font-weight: 800; color: var(--ink); margin-top: 6px; word-break: keep-all; }
.sec-head p { color: var(--gray); margin-top: 12px; font-size: 17px; word-break: keep-all; }

/* ── 제품 4대군 ────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
  position: relative; border-radius: 14px; overflow: hidden; height: 340px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  box-shadow: 0 6px 20px rgba(16,35,64,.14);
  transition: transform .25s ease;
}
.prod-card:hover { transform: translateY(-6px); }
.prod-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,44,0) 30%, rgba(10,22,44,.88) 100%);
}
.prod-card .txt { position: relative; z-index: 2; padding: 22px; color: #fff; }
.prod-card .txt b { display: block; font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.prod-card .txt span { font-size: 13px; color: #c9d5e6; letter-spacing: .04em; }
.prod-card .txt .items { margin-top: 8px; font-size: 13.5px; color: #ffd9b0; }

/* ── 통합 프로세스 스트립 ──────────────────── */
.process { margin-top: 54px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; }
.process h3 { text-align: center; font-size: 19px; color: var(--navy); margin-bottom: 20px; }
.process ol { display: flex; justify-content: space-between; align-items: center; counter-reset: step; }
.process li { display: flex; align-items: center; gap: 10px; }
.process .step {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 20px; font-weight: 700; color: var(--navy); font-size: 16px;
}
.process .arrow { color: var(--orange); font-weight: 800; font-size: 18px; padding: 0 4px; }

/* ── 설치사례 ─────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(16,35,64,.08);
}
.case-card .thumb { height: 230px; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.case-card:hover .thumb img { transform: scale(1.05); }
.case-card .body { padding: 20px 22px; }
.case-card .body b { display: block; font-size: 17.5px; font-weight: 700; margin-bottom: 6px; word-break: keep-all; }
.case-card .body span { font-size: 13.5px; color: var(--gray); }
.more-wrap { text-align: center; margin-top: 40px; }
.btn-more {
  display: inline-block; border: 1.5px solid var(--navy); color: var(--navy);
  font-weight: 700; padding: 13px 34px; border-radius: 10px; font-size: 16px;
}
.btn-more:hover { background: var(--navy); color: #fff; }

/* ── 회사소식 ─────────────────────────────── */
.news-list { max-width: 860px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; align-items: center; gap: 18px; padding: 20px 6px; }
.news-list a:hover b { color: var(--navy); text-decoration: underline; }
.news-tag {
  flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--navy);
  background: #e8eef7; border-radius: 6px; padding: 4px 10px;
}
.news-list b { flex: 1; font-size: 16.5px; font-weight: 600; word-break: keep-all; }
.news-list time { flex-shrink: 0; font-size: 14px; color: var(--gray); }

/* ── 고객지원 CTA ─────────────────────────── */
.support { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.support-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 34px 30px; transition: background .25s ease;
}
.support-card:hover { background: rgba(255,255,255,.13); }
.support-card .icon { font-size: 30px; margin-bottom: 14px; }
.support-card b { display: block; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.support-card p { font-size: 14.5px; color: #c3cfe0; word-break: keep-all; margin-bottom: 16px; }
.support-card .go { color: #ffb469; font-weight: 700; font-size: 15px; }

/* ── 푸터 ─────────────────────────────────── */
.footer { background: #0b1626; color: #94a2b8; font-size: 14px; }
.footer .inner { padding: 44px 20px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .logo img { height: 30px; margin-bottom: 14px; }
.footer b { color: #d6dfeb; }
.footer .links { display: flex; gap: 18px; margin-top: 10px; }
.footer .links a:hover { color: #fff; text-decoration: underline; }

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .trust .inner { grid-template-columns: repeat(2, 1fr); }
  .gnb { display: none; } /* 시안 단계 — 모바일 메뉴는 본제작 시 구현 */
  .hero h1 { font-size: 34px; }
  .process ol { flex-direction: column; gap: 10px; }
  .process .arrow { transform: rotate(90deg); }
}
