/* ═══ 고침터 - 문 떨어짐 수리 (hingerepair.jipsurirepair.com) ═══
   Primary: 파스텔 스틸블루 #A0C4D8 / Hero: hero-split / 배치: 패턴1
   그리드: grid-3 / 레이블: label-number / 버튼: btn-square
   ═══════════════════════════════════════════════════════ */

:root {
  --primary: #A0C4D8;
  --primary-dark: #6E9AB8;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FA;
  --card-radius: 1.25rem;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }
@media (max-width: 640px) { section { padding: 3.5rem 0; } }

/* ── 섹션 구분: 배경색 교차 ── */
section.container { padding: 5rem 1.25rem; }
@media (max-width: 640px) { section.container { padding: 3.5rem 1.25rem; } }
#portfolio { background: var(--bg-alt); padding: 5rem 0; }
@media (max-width: 640px) { #portfolio { padding: 3.5rem 0; } }

/* ── 버튼: btn-square ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 8px; padding: .85rem 1.75rem; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none; transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: #5A85A3; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary-dark); color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--text); }

/* ── 섹션 레이블: label-number ── */
.section-label {
  display: flex; align-items: baseline; gap: .6rem; font-size: .8rem;
  font-weight: 700; color: var(--primary-dark); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .75rem;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: .5rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: 1.9rem; margin-bottom: .6rem; }
.section-head p { color: var(--text-muted); font-weight: 300; font-size: 1.02rem; }

/* ── Header ── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.logo .logo-badge {
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary-dark);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800;
}
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a { font-size: .95rem; font-weight: 500; color: var(--text); }
.nav-menu a:hover { color: var(--primary-dark); }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: block; }
}

/* ── Hero (hero-split) ── */
#hero { padding: 3.5rem 0 4rem; }
.hero-split-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-left h1 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 1rem; }
.hero-left .hero-sub { color: var(--text-muted); font-size: 1.05rem; font-weight: 300; margin-bottom: 1.75rem; }
.hero-badges { display: flex; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--text); }
.hero-badge svg { flex-shrink: 0; }
.hero-btn-row { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-slider { position: relative; border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff; font-size: .85rem; font-weight: 500;
}
@media (max-width: 900px) {
  .hero-split-grid { grid-template-columns: 1fr; }
  .hero-left h1 { font-size: 2rem; }
}

/* ── 시공사례 포트폴리오 (grid-3) ── */
.portfolio-section { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden;
  transition: all .3s ease; cursor: pointer; text-decoration: none; display: block; background: #fff;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.14); border-color: var(--primary); }
.portfolio-card .card-thumb { aspect-ratio: 3/4; overflow: hidden; }
.portfolio-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-card:hover .card-thumb img { transform: scale(1.05); }
.portfolio-card .card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.card-badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .08em; background: var(--primary-dark); color: #fff;
  display: inline-block; padding: .2rem .6rem; border-radius: .25rem; align-self: flex-start;
}
.card-title { font-weight: 800; font-size: 1rem; line-height: 1.4; color: var(--text); }
.card-sub { font-weight: 300; font-size: .875rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
.card-more { font-size: .875rem; font-weight: 600; color: var(--text-muted); margin-top: .25rem; transition: color .3s ease; }
.portfolio-card:hover .card-more { color: var(--primary-dark); }

/* ── 중간 배너 ── */
#mid-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 3rem 0; margin-top: 4.5rem;
}
.mid-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mid-banner-inner p { font-size: 1.2rem; font-weight: 700; margin: 0; }
@media (max-width: 640px) { .mid-banner-inner { flex-direction: column; text-align: center; } }

/* ── 서비스 소개 ── */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden;
  background: #fff; transition: all .3s ease; display: block;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); border-color: var(--primary); }
.service-card .thumb { aspect-ratio: 3/4; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 1rem; }
.service-label { font-size: .65rem; font-weight: 700; color: var(--primary-dark); letter-spacing: .06em; text-transform: uppercase; }
.service-card h3 { font-size: .98rem; margin: .35rem 0 .4rem; }
.service-card .desc { font-size: .82rem; color: var(--text-muted); font-weight: 300; margin-bottom: .5rem; }
.service-more { font-size: .82rem; font-weight: 700; color: var(--primary-dark); }

/* ── 프로세스 ── */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .process-row { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 1.5rem 1rem; }
.process-num {
  width: 52px; height: 52px; border-radius: 12px; background: var(--bg-alt); border: 1.5px solid var(--primary);
  color: var(--primary-dark); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin: 0 auto .9rem;
}
.process-step h3 { font-size: 1rem; margin-bottom: .4rem; }
.process-step p { font-size: .85rem; color: var(--text-muted); font-weight: 300; margin: 0; }
#process { background: var(--bg-alt); }

/* ── 회사 소개 ── */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-muted); font-weight: 300; margin-bottom: 1rem; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.fact-box { background: var(--bg-alt); border-radius: 1rem; padding: 1.25rem; }
.fact-box .num { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.fact-box .label { font-size: .82rem; color: var(--text-muted); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { background: var(--bg-alt); border-radius: var(--card-radius); padding: 1.75rem 1.25rem; text-align: center; }
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .label { font-size: .85rem; color: var(--text-muted); margin-top: .3rem; }

/* ── 서비스 지역 ── */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .area-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem; background: #fff; }
.area-card h3 { font-size: 1.15rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.area-card ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-card li { font-size: .85rem; color: var(--text-muted); background: var(--bg-alt); padding: .35rem .7rem; border-radius: 6px; }
#areas { background: var(--bg-alt); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.faq-q .icon { transition: transform .3s ease; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 1.25rem; color: var(--text-muted); font-weight: 300; font-size: .92rem; margin: 0; }

/* ── CTA 섹션 ── */
#cta-section { background: var(--bg-alt); text-align: center; }
.cta-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-badge { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--text); }
.cta-btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Footer ── */
#site-footer { background: #1B2530; color: #C9D3DC; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .6rem; }
.footer-desc { font-size: .87rem; color: #93A1AF; font-weight: 300; }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 1rem; }
.footer-col li { margin-bottom: .6rem; font-size: .87rem; }
.footer-col a:hover { color: #fff; }
.footer-biz { border-top: 1px solid #34404C; padding-top: 1.5rem; font-size: .78rem; color: #7C8996; line-height: 1.9; }

/* ── Floating 버튼 ── */
#floating-btns { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: .6rem; }
.floating-btn {
  display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-radius: 10px;
  font-size: .85rem; font-weight: 700; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.floating-btn.call { background: var(--primary-dark); }
.floating-btn.sms { background: #4B5563; }

/* ── 상세 페이지 공통 ── */
.detail-hero { position: relative; aspect-ratio: 16/9; min-height: 320px; overflow: hidden; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.detail-hero-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; color: #fff; z-index: 2; }
.detail-hero-inner h1 { font-size: 2rem; margin-bottom: .5rem; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: #E5EAEF; margin-top: 1rem; }
.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; margin: -2.5rem auto 0; max-width: var(--max-width); position: relative; z-index: 3; background: #fff; }
@media (max-width: 640px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
.info-bar .info-item { padding: 1.25rem; border-right: 1px solid var(--border); }
.info-bar .info-item:last-child { border-right: none; }
.info-bar .info-item .k { font-size: .78rem; color: var(--text-muted); margin-bottom: .3rem; }
.info-bar .info-item .v { font-weight: 700; font-size: .95rem; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-col img { border-radius: var(--card-radius); margin-bottom: .75rem; aspect-ratio: 3/4; object-fit: cover; }
.ba-col h3 { margin-bottom: .75rem; }
.quote-block { border-left: 3px solid var(--primary); padding: 1.25rem 1.5rem; background: var(--bg-alt); border-radius: 0 1rem 1rem 0; }
.quote-block p { font-style: normal; color: var(--text); font-weight: 400; margin-bottom: .75rem; }
.quote-block .sig { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.summary-list li { padding-left: 1.4rem; position: relative; margin-bottom: .6rem; color: var(--text-muted); font-weight: 300; }
.summary-list li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-dark); }
