/* ================================================================
   휴코벡 HUCOVAC — 디자인 시스템 v2
   콘셉트: 시네마틱 · 미니멀 (라온 스타일) / 브랜드 오렌지·골드 + 차콜
   ================================================================ */

:root {
  --accent:      #ef7d00;   /* 브랜드 오렌지 (CI) */
  --accent-2:    #f7a825;   /* 골드 */
  --accent-dk:   #d16a00;
  --accent-soft: #fff3e6;
  --ink:         #16181d;   /* near-black */
  --ink-2:       #5c626c;   /* 보조 텍스트 */
  --ink-3:       #9aa0aa;
  --line:        #e6e8ec;
  --bg:          #ffffff;
  --bg-2:        #f5f6f8;
  --dark:        #14161a;   /* 다크 섹션/푸터 */
  --dark-2:      #1d2026;
  --wrap:        1240px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Pretendard", system-ui, -apple-system, "Segoe UI",
               "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.015em;
  overflow-x: hidden;
}
@media (min-width: 729px) { body { padding-bottom: 120px; } }
@media (max-width: 728px) { body { padding-bottom: 80px; } }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px){ .wrap { padding: 0 22px; } }

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } }

/* ================= 헤더 ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand-logo { display: flex; align-items: center; height: 34px; }
.brand-logo img { height: 34px; width: auto; transition: filter .35s; filter: brightness(0) invert(1); }
.site-header.scrolled .brand-logo img,
.site-header.solid .brand-logo img { filter: none; }
.brand-logo .brand-fallback {
  font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; color: #fff;
}

.nav-links { display: flex; align-items: center; gap: 44px; }
.nav-links > a {
  font-weight: 600; font-size: 1.02rem; letter-spacing: .01em;
  color: #fff; opacity: .92; position: relative; padding: 6px 0;
  transition: opacity .2s, color .2s;
}
.nav-links > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links > a:hover::after, .nav-links > a.active::after { transform: scaleX(1); }
.nav-links > a.active { opacity: 1; }

.nav-cta {
  border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: 9px 22px !important; font-weight: 700; transition: all .25s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; opacity: 1; }

/* 스크롤 시 화이트 헤더 */
.site-header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-color: var(--line); box-shadow: 0 4px 24px rgba(0,0,0,.05); }
.site-header.scrolled .nav-links > a { color: var(--ink); }
.site-header.scrolled .brand-logo .brand-fallback { color: var(--ink); }
.site-header.scrolled .nav-cta { border-color: var(--line); color: var(--ink) !important; }
.site-header.scrolled .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
/* 서브페이지(다크 히어로 없음)에서는 항상 화이트 헤더 */
.site-header.solid { background: #fff; border-color: var(--line); }
.site-header.solid .nav-links > a { color: var(--ink); }
.site-header.solid .brand-logo .brand-fallback { color: var(--ink); }
.site-header.solid .nav-cta { border-color: var(--line); color: var(--ink) !important; }
.site-header.solid .nav-toggle span { background: var(--ink); }

/* 모바일 토글 */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 2; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: background .3s; }
#nav-check { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    background: var(--dark); padding: 40px; transform: translateX(100%);
    transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.3);
  }
  .nav-links > a { color: #fff !important; font-size: 1.3rem; padding: 12px 0; }
  #nav-check:checked ~ .nav-links { transform: translateX(0); }
  .nav-cta { margin-top: 12px; border-color: rgba(255,255,255,.4); }
}

/* ================= 히어로 (라운드 프레임) ================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; color: #fff;
  background: var(--dark);
  /* 상단: 헤더(로고·메뉴)가 프레임 밖에 놓이는 여백 / 좌우·하단 여백 */
  padding: 104px clamp(16px, 3vw, 44px) clamp(16px, 3vw, 44px);
}
.hero-frame {
  position: relative; flex: 1; display: flex; align-items: flex-end;
  border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,.45) 0%, rgba(10,12,16,.25) 45%, rgba(10,12,16,.80) 100%);
}
/* 본문 텍스트는 프레임 안쪽으로 0.5cm 들여서 배치 */
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 0 clamp(24px, 5vw, 60px) clamp(46px, 8vh, 84px) 0.5cm;
  word-break: keep-all;
}
.hero-eyebrow {
  font-size: .9rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.9vw, 4.2rem); line-height: 1.06; font-weight: 800;
  letter-spacing: -0.035em; margin: 0 0 22px; text-shadow: 0 2px 30px rgba(0,0,0,.25);
  white-space: nowrap;
}
@media (max-width: 640px){ .hero h1 { white-space: normal; } }
.hero h1 .accent { color: var(--accent); }
.hero .hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.9);
  font-weight: 600; max-width: 40em; margin: 0;
}
.hero .hero-en { font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.9); margin: 0 0 20px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3;
  width: 46px; height: 46px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%;
  display: grid; place-items: center; color: #fff; animation: bob 2s infinite var(--ease);
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ================= 섹션 시스템 ================= */
.section { padding: clamp(80px, 12vh, 160px) 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-soft { background: var(--bg-2); }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
.display {
  font-size: clamp(1.52rem, 3.36vw, 2.72rem); line-height: 1.22; font-weight: 800;
  letter-spacing: -0.03em; margin: 0 0 18px;
}
.en-label { font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); margin: 0 0 22px; }
.section-dark .en-label { color: var(--ink-3); }
.lead { font-size: clamp(1rem, 1.3vw, 1.16rem); color: var(--ink-2); margin: 0; max-width: 42em; }
.section-dark .lead { color: rgba(255,255,255,.72); }

/* VIEW MORE 링크 */
.viewmore {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  font-weight: 700; font-size: .96rem; letter-spacing: .04em; color: var(--ink);
}
.section-dark .viewmore { color: #fff; }
.viewmore .line { width: 46px; height: 1.5px; background: var(--accent); transition: width .3s var(--ease); }
.viewmore:hover .line { width: 70px; }
.viewmore .arw { color: var(--accent); font-weight: 700; }

/* 분할 블록 (텍스트 + 이미지) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse .split-text { order: 2; }
.split-media { position: relative; border-radius: 4px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1s var(--ease); }
.split-media:hover img { transform: scale(1.04); }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 34px; } .split.reverse .split-text { order: 0; } }

/* ================= Merit / 강점 (라온 스타일 번호) ================= */
.merit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid rgba(255,255,255,.14); }
.merit {
  padding: 44px 30px; border-right: 1px solid rgba(255,255,255,.14);
  transition: background .3s;
}
.merit:last-child { border-right: 0; }
.merit .m-num { font-size: .85rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-bottom: 26px; }
.merit h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 14px; letter-spacing: -.02em; }
.merit p { font-size: .95rem; color: rgba(255,255,255,.68); margin: 0; line-height: 1.75; }
@media (max-width: 900px){ .merit-grid { grid-template-columns: 1fr 1fr; } .merit { padding: 34px 24px; } .merit:nth-child(2n){ border-right:0; } }
@media (max-width: 520px){ .merit-grid { grid-template-columns: 1fr; } .merit { border-right:0; border-bottom:1px solid rgba(255,255,255,.14); padding: 30px 0; } }

/* 밝은 배경용 merit */
.section:not(.section-dark) .merit-grid { border-top-color: var(--line); }
.section:not(.section-dark) .merit { border-right-color: var(--line); }
.section:not(.section-dark) .merit p { color: var(--ink-2); }
.section:not(.section-dark) .merit:nth-child(2n) { border-right: 0; }
@media (max-width: 520px){ .section:not(.section-dark) .merit { border-bottom-color: var(--line); } }

/* ================= 통계 스트립 ================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat .num .u { color: var(--accent); }
.stat .cap { color: var(--ink-2); font-weight: 600; margin-top: 12px; font-size: .96rem; }
.section-dark .stat .cap { color: rgba(255,255,255,.6); }
@media (max-width: 700px){ .stats { grid-template-columns: 1fr 1fr; gap: 34px 24px; } }

/* ================= 버튼 ================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239,125,0,.32); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-dark .btn-line:hover, .hero .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-arrow::after { content: "→"; }

/* ================= 제품 그리드 ================= */
.prod-line-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.prod-line-head .badge {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px;
}
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 900px){ .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .prod-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,.10); border-color: #d7dae0; }
.prod-card .pic {
  aspect-ratio: 4/5; background: linear-gradient(160deg, #fbfbfc 0%, #eef0f3 100%);
  display: grid; place-items: center; overflow: hidden;
}
.prod-card .pic img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform .5s var(--ease); }
.prod-card:hover .pic img { transform: scale(1.05); }
.prod-card .pinfo { padding: 24px 24px 28px; border-top: 1px solid var(--line); }
.prod-card .series { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.prod-card h4 { margin: 8px 0 6px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.prod-card .model { font-size: .9rem; color: var(--ink-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.02em; }
.prod-card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.prod-card .tag { font-size: .76rem; font-weight: 600; color: var(--ink-2); background: var(--bg-2); padding: 4px 10px; border-radius: 6px; }

/* ================= 서브페이지 히어로 ================= */
.page-hero {
  position: relative; padding: 190px 0 90px; color: #fff; overflow: hidden;
  background: var(--dark);
}
.page-hero.with-img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,17,21,.55), rgba(15,17,21,.82)); z-index:1; }
.page-hero .bg { position:absolute; inset:0; z-index:0; }
.page-hero .bg img { width:100%; height:100%; object-fit:cover; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .crumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero .eyebrow { color: var(--accent-2); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px; line-height: 1.1; }
.page-hero p { font-size: 1.12rem; color: rgba(255,255,255,.75); margin: 0; max-width: 44em; }

/* ================= 시설 이미지 밴드 / 영상 ================= */
.media-band { position: relative; height: clamp(320px, 52vh, 620px); overflow: hidden; }
.media-band img, .media-band video { width: 100%; height: 100%; object-fit: cover; }
.media-band .overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(12,14,18,.72) 0%, rgba(12,14,18,.25) 60%, rgba(12,14,18,0) 100%);
}
.media-band .overlay .wrap { color: #fff; }
.video-wrap { position: relative; border-radius: 6px; overflow: hidden; background: #000; }
.video-wrap video { width: 100%; display: block; }

/* ================= 문의 폼 ================= */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 38px; box-shadow: 0 10px 40px rgba(0,0,0,.04); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fbfcfd;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239,125,0,.14); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .86rem; color: var(--ink-2); margin-top: 6px; }

.info-list { list-style: none; margin: 0 0 26px; padding: 0; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list .lbl { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.info-list .val { font-weight: 700; }
.info-list .val a:hover { color: var(--accent); }
.soon { color: var(--ink-3); font-weight: 600; }
.map-box { border: 1px dashed #cdd2da; border-radius: 8px; background: var(--bg-2); min-height: 200px; display: grid; place-items: center; text-align: center; color: var(--ink-2); padding: 24px; }

/* 상세 리스트(유지보수) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; padding: clamp(50px,7vh,90px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.reverse .f-text { order: 2; }
.feature .f-media { border-radius: 6px; overflow: hidden; }
.feature .f-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature .f-num { font-size: 1rem; font-weight: 800; color: var(--accent); letter-spacing: .1em; margin-bottom: 16px; }
.feature h3 { font-size: clamp(1.4rem,2.6vw,2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.feature .en-label { margin-bottom: 16px; font-size: 1rem; }
.feature ul { margin: 20px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-2); }
.feature li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.callout { margin-top: 22px; padding: 18px 22px; background: var(--accent-soft); border-radius: 8px; border-left: 3px solid var(--accent); color: var(--accent-dk); font-weight: 700; }
@media (max-width: 860px){ .feature { grid-template-columns: 1fr; gap: 28px; } .feature.reverse .f-text { order: 0; } }

/* 프로세스 카드 */
.step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 50px; }
@media (max-width: 800px){ .step-grid { grid-template-columns: 1fr; } }
.step { padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.step .s-num { font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-bottom: 16px; }
.step h4 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; }
.step p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* ================= CTA ================= */
.cta { background: var(--dark); color: #fff; text-align: center; }
.cta .display { color: #fff; }
.cta .lead { margin: 0 auto 34px; color: rgba(255,255,255,.7); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================= 푸터 ================= */
.site-footer { background: #0c0e12; color: #97a0af; padding: 80px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid #21252d; }
@media (max-width: 760px){ .footer-top { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand img { height: 30px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { color: #737d8c; font-size: .94rem; margin: 0; max-width: 34em; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 16px; font-weight: 700; letter-spacing: .02em; }
.footer-col a, .footer-col span { display: block; color: #97a0af; font-size: .94rem; margin-bottom: 11px; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: #5c6675; }

/* ===== Product01 로봇: 액추에이터 스타일 회색배경 + hover 확대(줌) ===== */
.robotzoom img{ transition: transform .7s var(--ease); }
.robotzoom:hover img{ transform: scale(1.09); }
@media (prefers-reduced-motion: reduce){ .robotzoom:hover img{ transform: none; } }
