/* =========================================
   색상 바꾸기: 아래 :root 값만 수정하면 전체 색이 바뀝니다
   ========================================= */
:root {
  --primary: #f5a524;        /* 메인 포인트 색 (안전 노랑) */
  --primary-dark: #d98a0b;
  --dark: #16181d;           /* 진한 배경 */
  --dark-2: #22252c;
  --text: #1f2329;
  --text-sub: #5b616b;
  --gray-bg: #f4f5f7;
  --line: #e3e5e9;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.pc-only { display: inline; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: var(--dark); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { border: 2px solid rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--dark); }
.btn--block { width: 100%; }

/* ===== 헤더 ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(22, 24, 29, .96); box-shadow: 0 2px 20px rgba(0,0,0,.2); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 20px; }
.logo__mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--primary); color: var(--dark); border-radius: 8px; font-size: 20px;
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.85); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--primary); }
.nav__cta { display: none; }
.header__tel {
  color: var(--dark); background: var(--primary); padding: 9px 18px;
  border-radius: 999px; font-weight: 700; font-size: 15px;
}
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--white);
  transition: transform .3s, opacity .3s;
}
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 25px; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== 히어로 ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white); overflow: hidden;
  background: var(--dark);
}
/* TODO: 대표 현장 사진이 있으면 아래 background 에 url('../images/hero.jpg') 를 추가하세요
   예) background: linear-gradient(...), url('../images/hero.jpg') center/cover; */
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(22,24,29,.95) 35%, rgba(22,24,29,.55)),
    repeating-linear-gradient(-45deg, #1d2026 0 22px, #23262d 22px 44px);
}
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--primary) 0 20px, var(--dark) 20px 40px);
}
.hero__content { position: relative; padding-top: var(--header-h); padding-bottom: 60px; }
.hero__eyebrow {
  display: inline-block; color: var(--primary); font-weight: 700; letter-spacing: .05em;
  border: 1px solid rgba(245,165,36,.5); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(36px, 6vw, 64px); line-height: 1.2; font-weight: 800; margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--primary); }
.hero__desc { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.8); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 34px; font-weight: 800; color: var(--white); }
.hero__stats span { color: rgba(255,255,255,.65); font-size: 14px; }

/* ===== 섹션 공통 ===== */
.section { padding: 110px 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--dark); color: var(--white); }
.section--accent { background: var(--dark-2); color: var(--white); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__eyebrow { color: var(--primary); font-weight: 800; letter-spacing: .15em; font-size: 14px; margin-bottom: 10px; }
.section__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.3; }
.section__desc { color: var(--text-sub); margin-top: 12px; font-size: 17px; }

/* ===== 서비스 ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  padding: 36px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.service__icon {
  width: 60px; height: 60px; display: grid; place-items: center; font-size: 28px;
  background: #fff5e3; border-radius: 14px; margin-bottom: 20px;
}
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--text-sub); font-size: 15px; }

/* ===== 강점 ===== */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { padding: 32px 26px; background: var(--dark-2); border-radius: var(--radius); border-top: 4px solid var(--primary); }
.why__num { font-size: 40px; font-weight: 800; color: var(--primary); opacity: .9; }
.why__item h3 { font-size: 19px; margin: 10px 0; }
.why__item p { color: rgba(255,255,255,.7); font-size: 15px; }

/* ===== 진행 과정 ===== */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.process__step { position: relative; text-align: center; padding: 0 8px; }
.process__step:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; left: calc(50% + 38px); right: calc(-50% + 38px);
  border-top: 2px dashed var(--line);
}
.process__no {
  width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center;
  border-radius: 50%; background: var(--dark); color: var(--primary); font-size: 22px; font-weight: 800;
}
.process__step h3 { font-size: 18px; margin-bottom: 8px; }
.process__step p { font-size: 14px; color: var(--text-sub); }

/* ===== 시공 사례 ===== */
.filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.filter__btn {
  padding: 9px 22px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-weight: 600; color: var(--text-sub); transition: all .2s;
}
.filter__btn.is-active, .filter__btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.work:hover { transform: translateY(-4px); }
.work.is-hidden { display: none; }
.work__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  display: grid; place-items: center; color: #9aa0a8; font-weight: 700;
  background: repeating-linear-gradient(-45deg, #e9ebee 0 16px, #f1f2f4 16px 32px);
}
.work figcaption { padding: 18px 20px; font-weight: 600; font-size: 15px; }
.work__tag {
  display: inline-block; font-size: 12px; font-weight: 700; background: #fff5e3; color: var(--primary-dark);
  padding: 2px 10px; border-radius: 999px; margin-right: 8px;
}

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 24px; font-weight: 700; font-size: 17px; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--primary-dark); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--text-sub); }

/* ===== 견적 문의 ===== */
.contact { max-width: 640px; text-align: center; }
.contact__desc { color: rgba(255,255,255,.75); margin-top: 14px; }
.contact__tel { display: block; font-size: clamp(36px, 6vw, 56px); font-weight: 800; color: var(--primary); margin: 24px 0; }
.contact__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.contact__list { text-align: left; }
.contact__list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.contact__list b { display: inline-block; width: 96px; color: rgba(255,255,255,.5); font-weight: 600; }

/* ===== 푸터 ===== */
.footer { background: #0f1013; color: rgba(255,255,255,.55); padding: 50px 0 110px; font-size: 14px; }
.logo--footer { margin-bottom: 18px; }
.footer__copy { margin-top: 14px; }

/* ===== 모바일 하단 바 ===== */
.quick-bar { display: none; }

/* ===== 스크롤 애니메이션 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================
   반응형
   ========================================= */
@media (max-width: 1024px) {
  .services, .works { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .process__step { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; text-align: left; padding: 0 0 28px; }
  .process__no { grid-row: span 2; margin: 0; }
  .process__step:not(:last-child)::after { top: 64px; bottom: 4px; left: 29px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
}

@media (max-width: 860px) {
  .header__tel { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--dark); padding: 8px 20px 24px; margin: 0;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .nav__cta { display: block; color: var(--primary) !important; }
  .header { background: rgba(22, 24, 29, .96); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .pc-only { display: none; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 40px; }
  .services, .works, .why { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .hero__stats { gap: 28px; }
  .hero__stats strong { font-size: 26px; }
  .contact__actions .btn { flex: 1; }
  .quick-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  }
  .quick-bar a { padding: 17px 0; text-align: center; font-weight: 800; font-size: 16px; }
  .quick-bar__call { background: var(--primary); color: var(--dark); }
  .quick-bar__sms { background: var(--dark); color: var(--white); }
}
