/* ═══════════════════════════════════════════════════════════
   든든 완강기설치업체 — 정적 사이트 공통 스타일
   Hero 타입: hero-grid / 배치패턴: 6 (Hero → 서비스 → 포트폴리오+배너)
   그리드: grid-4 / 레이블: label-none / 버튼: btn-underline
   Primary: 파스텔 세이지 #B4C7B0 (버튼/배지 텍스트 대비를 위해 진한 톤 #7E9884 보조 사용)
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #B4C7B0;
  --primary-dark: #7E9884;
  --primary-tint: #EEF3ED;
  --text: #22262a;
  --text-muted: #6b7278;
  --border: #e3e6e2;
  --bg: #ffffff;
  --bg-alt: #F7F8F6;
  --card-radius: 1.25rem;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', -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; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 0.6rem; }
.section-sub { color: var(--text-muted); font-weight: 300; font-size: 1rem; margin-bottom: 2.5rem; }
.center { text-align: center; }

/* ── 버튼 (H-5: btn-underline) ── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  padding: 0.4rem 0;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 2px solid var(--primary-dark);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.btn-primary::after, .btn-secondary::after, .card-more::after, .link-arrow::after { content: "→"; }
.btn-secondary { color: var(--text); border-bottom-color: var(--text); }
.btn-primary:hover, .btn-secondary:hover { opacity: 0.65; }
.btn-row { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header-logo, .footer-logo { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; }
.logo-mark { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.02em; }
.logo-tagline { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.footer-logo .logo-mark { color: #fff; }
.footer-logo .logo-tagline { color: rgba(255,255,255,0.65); }
@media (max-width: 420px) { .logo-tagline { display: none; } }
.header-nav { display: flex; gap: 2.1rem; }
.header-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.header-nav a:hover { color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-cta {
  background: var(--primary-dark); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 0.6rem 1.3rem; border-radius: 9999px; transition: background 0.2s ease;
}
.header-cta:hover { background: #6c8672; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.hamburger span { width: 24px; height: 2px; background: var(--text); display: block; }
.mobile-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1.2rem 1.25rem; z-index: 99; flex-direction: column; gap: 1rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-weight: 600; font-size: 1rem; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
}

/* ── Hero (hero-grid 타입) ── */
.hero { padding: 9.5rem 0 5rem; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.35; letter-spacing: -0.01em; }
.hero-copy p.hero-desc { margin-top: 1.2rem; color: var(--text-muted); font-size: 1.05rem; font-weight: 300; max-width: 34rem; }
.trust-badges { display: flex; gap: 1.5rem; margin: 1.8rem 0; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.trust-badge svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary-dark); }
.hero-photo-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.9rem; aspect-ratio: 4/3; }
.hero-photo-grid .ph-tall { grid-row: 1 / 3; }
.hero-photo-grid figure { position: relative; margin: 0; width: 100%; height: 100%; border-radius: var(--card-radius); overflow: hidden; }
.hero-photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.62));
  color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 1.4rem 0.8rem 0.7rem;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 7rem 0 3rem; }
}

/* ── Section label(H-4: label-none — 별도 배지 없이 제목 크기만으로 구분) ── */
.section-eyebrow { font-size: 0.82rem; font-weight: 700; color: var(--primary-dark); letter-spacing: 0.04em; margin-bottom: 0.6rem; }

/* ── 서비스 소개 ── */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.service-card { display: block; border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: #fff; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,0.08); }
.service-card:hover .card-more { color: var(--primary-dark); }
.service-thumb { aspect-ratio: 3/4; overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.service-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--primary-dark); text-transform: uppercase; }
.service-name { font-size: 1.02rem; font-weight: 800; }
.service-desc { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; line-height: 1.5; }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── 시공사례 포트폴리오 (H-3: grid-4) ── */
.portfolio-section { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@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 0.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,0.14); border-color: var(--primary); }
.portfolio-card .card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-card:hover .card-thumb img { transform: scale(1.05); }
.portfolio-card .card-body { padding: 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; }
.card-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  background: var(--primary); color: #fff; display: inline-block;
  padding: 0.2rem 0.6rem; border-radius: 0.25rem; align-self: flex-start;
}
.card-title { font-weight: 800; font-size: 0.98rem; line-height: 1.4; color: var(--text); }
.card-sub { font-weight: 300; font-size: 0.83rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.card-sub svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-more { font-size: 0.83rem; font-weight: 600; color: var(--text-muted); margin-top: 0.2rem; transition: color 0.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: 3.2rem 0; margin: 3.5rem 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; text-align: center;
}
.mid-banner p { font-size: 1.2rem; font-weight: 700; }
.mid-banner .btn-primary, .mid-banner .btn-secondary { color: #fff; border-bottom-color: #fff; }

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

/* ── 회사소개 ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.about-copy p { color: var(--text-muted); font-weight: 300; margin-bottom: 1rem; line-height: 1.75; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.about-fact { background: var(--bg-alt); border-radius: var(--card-radius); padding: 1.5rem 1rem; text-align: center; }
.about-fact strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.about-fact span { font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ── 고객 후기 ── */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.review-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; background: #fff; }
.review-stars { display: flex; gap: 2px; margin-bottom: 0.8rem; color: #E8B84B; }
.review-stars svg { width: 15px; height: 15px; }
.review-text { font-size: 0.9rem; color: var(--text); line-height: 1.6; margin-bottom: 1.1rem; }
.review-person { display: flex; align-items: center; gap: 0.6rem; }
.review-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.review-name { font-size: 0.85rem; font-weight: 700; }
.review-loc { font-size: 0.76rem; color: var(--text-muted); }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── 서비스 지역 ── */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.area-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.8rem; }
.area-card h3 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.area-card ul li { font-size: 0.86rem; color: var(--text-muted); padding: 0.25rem 0; }
@media (max-width: 768px) { .areas-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: #fff; border: none; padding: 1.2rem 1.4rem; font-size: 0.98rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q .plus { transition: transform 0.25s ease; font-size: 1.2rem; color: var(--primary-dark); }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--bg-alt); }
.faq-a p { padding: 0 1.4rem 1.2rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.faq-item.open .faq-a { max-height: 300px; }

/* ── CTA 섹션 ── */
.cta-section { background: var(--primary-tint); text-align: center; padding: 5rem 0; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.8rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; font-weight: 300; }
.cta-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.cta-badge { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.cta-badge svg { width: 16px; height: 16px; color: var(--primary-dark); }
.cta-buttons { display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer { background: #22262a; color: #c7cbc5; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .footer-logo { margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.85rem; color: #9aa09a; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 1rem; }
.footer-col ul li { padding: 0.35rem 0; }
.footer-col a { font-size: 0.85rem; color: #9aa09a; }
.footer-col a:hover { color: #fff; }
.footer-biz { border-top: 1px solid #383d38; margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.78rem; color: #7c827c; line-height: 1.8; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ── Floating 버튼 ── */
.floating-btns { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: flex; flex-direction: column; gap: 0.7rem; }
.floating-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem;
  border-radius: 9999px; font-weight: 700; font-size: 0.88rem; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.floating-btn.call { background: var(--primary-dark); color: #fff; }
.floating-btn.sms { background: #fff; color: var(--text); border: 1px solid var(--border); }
.floating-btn svg { width: 18px; height: 18px; }

/* ── 시공사례 상세 페이지 ── */
.detail-hero { position: relative; padding: 11rem 0 4.5rem; color: #fff; background-size: cover; background-position: center; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.detail-hero .container { position: relative; }
.detail-back { font-size: 0.85rem; color: #fff; opacity: 0.85; margin-bottom: 1rem; display: inline-block; }
.detail-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.detail-hero .loc { margin-top: 0.6rem; font-size: 0.95rem; opacity: 0.9; }
.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; margin-top: -2.6rem; position: relative; z-index: 2; }
.info-cell { background: #fff; padding: 1.4rem 1rem; text-align: center; }
.info-cell span { display: block; font-size: 0.76rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.info-cell strong { font-size: 0.95rem; font-weight: 800; }
@media (max-width: 768px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }

.detail-body { padding: 4.5rem 0; max-width: 820px; margin: 0 auto; }
.detail-body h2 { font-size: 1.4rem; margin: 2.4rem 0 1rem; }
.detail-body p { color: var(--text-muted); font-weight: 300; line-height: 1.85; margin-bottom: 1.1rem; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.5rem 0; }
.compare-grid figure { margin: 0; }
.compare-grid img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; }
.compare-grid figcaption { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }

.summary-box { background: var(--bg-alt); border-radius: var(--card-radius); padding: 1.8rem 2rem; margin: 2rem 0; }
.summary-box li { font-size: 0.92rem; padding: 0.4rem 0; padding-left: 1.3rem; position: relative; }
.summary-box li::before { content: "—"; position: absolute; left: 0; color: var(--primary-dark); }

.quote-block { border-left: 3px solid var(--primary-dark); padding: 0.4rem 0 0.4rem 1.4rem; margin: 2rem 0; font-style: normal; }
.quote-block p { color: var(--text); font-weight: 400; font-size: 1rem; }
.quote-block cite { display: block; margin-top: 0.8rem; font-size: 0.82rem; color: var(--text-muted); font-style: normal; }

.related-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.related-links a { font-size: 0.88rem; font-weight: 700; color: var(--primary-dark); border-bottom: 1px solid var(--primary-dark); padding-bottom: 2px; }

/* ── NSEO / 메인유도 배너 ── */
.mainpage-banner { text-align: center; padding: 4rem 0; background: var(--bg-alt); }
.mainpage-banner h2 { font-size: 1.4rem; margin-bottom: 1.4rem; }

/* ── 상담 페이지 ── */
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.8rem; }
.step-card .process-num { margin: 0 0 1rem; }
@media (max-width: 768px) { .step-list { grid-template-columns: 1fr; } }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.guide-card img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; margin-bottom: 0.8rem; }
.guide-card h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.guide-card p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }
.advantage-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.advantage-list li { border: 1px solid var(--border); border-radius: 1rem; padding: 1.2rem 1.4rem; font-size: 0.92rem; font-weight: 600; }
@media (max-width: 640px) { .advantage-list { grid-template-columns: 1fr; } }

/* ── 사이트맵 페이지 ── */
.sitemap-search { max-width: 480px; margin: 0 auto 3rem; }
.sitemap-search input { width: 100%; padding: 0.9rem 1.2rem; border: 1px solid var(--border); border-radius: 9999px; font-size: 0.95rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sitemap-card { border: 1px solid var(--border); border-radius: 1rem; padding: 1.3rem 1.5rem; }
.sitemap-card h4 { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sitemap-card a { font-size: 0.92rem; font-weight: 700; display: block; padding: 0.3rem 0; }
@media (max-width: 860px) { .sitemap-grid { grid-template-columns: 1fr; } }

/* ── 404 ── */
.error-page { padding: 10rem 0 6rem; text-align: center; }
.error-page h1 { font-size: 5rem; color: var(--primary); }
.error-page p { margin: 1rem 0 2rem; color: var(--text-muted); }
