/* ==========================================================================
   UNBOUND(언바운드) 공장시설보수 — 공통 디자인 시스템
   밝고 따뜻한 톤(오렌지·앰버·그린) / 네이비·블루 미사용
   ========================================================================== */

:root {
  --primary: #F5590C;
  --primary-dark: #D6440A;
  --primary-light: #FFB27A;
  --accent: #0F9D6B;
  --accent-light: #E4F7EE;
  --amber: #F5A623;
  --bg: #FFFBF5;
  --bg-soft: #FFF3E6;
  --surface: #FFFFFF;
  --text: #2E2A25;
  --text-soft: #6B6259;
  --border: #F0E4D8;
  --shadow: 0 10px 30px rgba(214, 92, 20, 0.10);
  --shadow-sm: 0 4px 14px rgba(214, 92, 20, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; }
.lead { font-size: 1.08rem; color: var(--text-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary-dark); background: var(--bg-soft);
  border: 1px solid var(--primary-light); font-weight: 700; font-size: 0.82rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: var(--primary-light); }
.btn-outline:hover { background: var(--bg-soft); transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h);
  background: rgba(255,251,245,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--text-soft); letter-spacing: 0.02em; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 600; color: var(--text-soft); padding: 8px 2px; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform .2s ease; transform-origin: left;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary-dark); flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); flex-shrink: 0; }
.brand { min-width: 0; }
.brand > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 600px) {
  .brand small { display: none; }
  .brand { font-size: 1.02rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .header-tel span.tel-text { display: none; }
}

/* ---------- 브레드크럼 ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-soft); padding: 16px 0 0; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; min-height: 560px;
  display: flex; align-items: center;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,15,10,0.62) 0%, rgba(20,15,10,0.32) 42%, rgba(20,15,10,0) 68%),
    linear-gradient(115deg, rgba(255,178,122,0.40) 0%, rgba(255,200,150,0.32) 45%, rgba(255,224,190,0.24) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0; text-align: left; }
.hero .eyebrow { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); color: #fff; }
.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 14px rgba(0,0,0,0.35); }
.hero .lead { color: rgba(255,255,255,0.94); max-width: 640px; font-size: 1.12rem; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.5rem; }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.85); }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; }
.hero-dots button.active { background: #fff; width: 24px; border-radius: 6px; }

.page-hero { min-height: 300px; }
.page-hero .hero-content { padding: 64px 0; }

/* ---------- 섹션 헤더 ---------- */
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 36px; text-align: left; }

/* ---------- 카드 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--primary); font-size: 1.5rem; margin-bottom: 16px;
}
.card.accent .icon-badge { background: var(--accent-light); color: var(--accent); }

.service-card { overflow: hidden; padding: 0; }
.service-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.about-photo { aspect-ratio: 4/3; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-sm); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .body { padding: 22px; }
.service-card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--accent); background: var(--accent-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 480px; }
thead th { background: linear-gradient(135deg, var(--primary), var(--amber)); color: #fff; font-weight: 700; text-align: left; padding: 14px 18px; font-size: 0.92rem; }
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-soft); }
.table-note { font-size: 0.82rem; color: var(--text-soft); margin-top: 10px; }

/* ---------- 프로세스 스텝 ---------- */
.steps { display: flex; gap: 18px; flex-wrap: wrap; counter-reset: step; }
.step { flex: 1 1 180px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px;
}
.steps-arrow { display:flex; align-items:center; justify-content:center; color: var(--primary-light); font-size:1.4rem; }
@media (max-width: 900px) { .steps-arrow { display: none; } }

@media (max-width: 600px) {
  section { padding: 40px 0; }
  .section-head { margin-bottom: 26px; }
  .steps { flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .step {
    flex: 0 0 65%; scroll-snap-align: start; padding: 16px 14px;
  }
  .step h3 { font-size: 0.98rem; margin-bottom: 4px; }
  .step p { font-size: 0.82rem; margin-bottom: 0; }
  .step::before { width: 26px; height: 26px; font-size: 0.85rem; margin-bottom: 8px; }
}

/* ---------- 캐러셀(시공사례) ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 6px 22px;
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 8px; }
.carousel-item {
  scroll-snap-align: start; flex: 0 0 auto; width: 300px;
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); opacity: 0.45; transform: scale(0.94); transition: opacity .4s ease, transform .4s ease;
}
.carousel-item.in-view { opacity: 1; transform: scale(1); }
.carousel-item .thumb { aspect-ratio: 4/3; overflow: hidden; }
.carousel-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel-item .cap { padding: 14px 16px; font-size: 0.9rem; font-weight: 600; color: var(--text-soft); }
.carousel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.carousel-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  cursor: pointer; font-size: 1.1rem; color: var(--primary-dark); transition: background .2s ease;
}
.carousel-nav button:hover { background: var(--bg-soft); }

/* ---------- 갤러리 그리드 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; aspect-ratio: 1/1;
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .num {
  position: absolute; top: 8px; left: 8px; background: rgba(46,42,37,0.6); color: #fff;
  font-size: 0.72rem; padding: 2px 8px; border-radius: 999px;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(20,15,10,0.92); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 10px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 1rem; color: var(--text);
}
.faq-q .mark { color: var(--primary); font-size: 1.3rem; transition: transform .25s ease; }
.faq-item.open .faq-q .mark { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; color: var(--text-soft); }
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }

/* ---------- CTA 밴드 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #17b57e);
  color: #fff; border-radius: 24px; padding: 46px; text-align: center; margin: 0 24px;
}
.cta-band h2 { color: #fff; word-break: keep-all; overflow-wrap: break-word; }
.cta-band p { color: rgba(255,255,255,0.9); word-break: keep-all; overflow-wrap: break-word; }
@media (max-width: 480px) {
  .cta-band { padding: 32px 22px; margin: 0 16px; }
  .cta-band h2 { font-size: 1.35rem; }
  .cta-band p { font-size: 0.92rem; }
}

/* ---------- 지도/연락처 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid > div { display: flex; flex-direction: column; }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.95rem; font-family: inherit;
  background: var(--bg);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); flex: 1; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 900px) { .map-embed { min-height: 280px; } .map-embed iframe { min-height: 280px; } }

/* ---------- 사업자정보 배지 ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge-row span { background: var(--bg-soft); color: var(--primary-dark); font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--primary-light); }

/* ---------- 푸터 ---------- */
.site-footer { background: #FFF6EC; border-top: 1px solid var(--border); padding: 52px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-footer h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; color: var(--text-soft); font-size: 0.92rem; }
.site-footer a.footer-link { color: var(--text-soft); }
.site-footer a.footer-link:hover { color: var(--primary-dark); }
.footer-biz { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--border); font-size: 0.82rem; color: var(--text-soft); line-height: 1.9; }
.footer-bottom { margin-top: 18px; font-size: 0.78rem; color: var(--text-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 스크롤 리빌 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ---------- 플로팅 전화 버튼(모바일) ---------- */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 10px 24px rgba(214,68,10,0.35);
  animation: pulse-ring 2.4s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245,89,12,0.45), 0 10px 24px rgba(214,68,10,0.35); }
  70% { box-shadow: 0 0 0 16px rgba(245,89,12,0), 0 10px 24px rgba(214,68,10,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(245,89,12,0), 0 10px 24px rgba(214,68,10,0.35); }
}

.bg-soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
