/* ═══ 디자인 클론 출처 ═══
   참조: https://uapti.kosininterior.com/ (레이아웃만 — 여백감, 각진 모서리, 타이포 위계)
   레이아웃: max-width 1200px, 섹션 padding 1.3배 확장, 카드 그리드 여백 넓게
   카드/모서리: border-radius 항상 0 (에디토리얼 각진 톤)
   타이포: 제목 letter-spacing 0.03em, 영문 레이블 사용(대문자 소형 배지)
   컴포넌트 구조: 퀵링크 미니멀 카드 그리드 / 브랜드스토리 3단 서브섹션 / Trust 숫자카운터+리스트 /
                 무드배너 풀블리드 여백 / CTA 신뢰배지 생략 + 인용구 헤드라인 1줄 + 버튼 1개
   ═══════════════════════ */

:root {
  --primary: #B8D8B0;
  --primary-dark: #93B98B;
  --text: #1a1a18;
  --text-muted: #6b6b64;
  --border: #e4e2dc;
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --bg-tint: #eef4ec;
}

/* 모서리 각짐 전면 강제 — 어떤 유틸리티 클래스가 섞여도 이 사이트는 항상 각진 톤을 유지한다 */
*, *::before, *::after { border-radius: 0 !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  word-break: keep-all;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: 0.03em; word-break: keep-all; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 6.5rem 0; border-top: 1px solid var(--border); }
@media (max-width: 768px) { .section { padding: 4rem 0; } }
.section-alt { background: var(--bg-soft); }

/* ── 섹션 레이블 (H-4: label-badge) ── */
.section-label {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--primary); color: #16351a;
  padding: 0.3rem 0.85rem; margin-bottom: 1.25rem;
}
.section-head { margin-bottom: 3rem; max-width: 640px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--text-muted); font-weight: 300; }

/* ── 버튼 (H-5: btn-underline) ── */
.btn-primary, .btn-underline {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: transparent; border: none; padding: 0; color: var(--primary-dark);
  font-weight: 700; border-bottom: 2px solid var(--primary-dark);
  transition: opacity 0.2s ease; padding-bottom: 0.15rem;
}
.btn-primary::after, .btn-underline::after { content: "→"; transition: transform 0.2s ease; }
.btn-primary:hover::after, .btn-underline:hover::after { transform: translateX(4px); }
.btn-outline-alt {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem;
  border: 1px solid var(--primary-dark); color: var(--text); font-weight: 600;
  transition: all 0.2s ease;
}
.btn-outline-alt:hover { background: var(--primary); border-color: var(--primary); }

/* ══ Header ══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-text { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; }
.main-nav { display: flex; gap: 2rem; margin-right: auto; margin-left: 3rem; }
.main-nav a { font-size: 0.9rem; font-weight: 600; color: var(--text); transition: color 0.2s; }
.main-nav a:hover { color: var(--primary-dark); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); transition: all 0.2s; }
.mobile-nav { display: none; flex-direction: column; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-nav .btn-primary { border: none; margin-top: 0.75rem; }
.mobile-nav.is-open { display: flex; }

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ══ Hero: hero-grid (사진그리드형) ══ */
.hero-grid-section { padding: 4rem 0 5rem; }
.hero-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-grid-text .eyebrow { font-family: monospace; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary-dark); display: block; margin-bottom: 1rem; }
.hero-grid-text h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.25; margin-bottom: 1.25rem; }
.hero-grid-text .desc { color: var(--text-muted); font-weight: 300; margin-bottom: 2rem; max-width: 460px; }
.hero-stats { display: flex; gap: 2rem; margin-bottom: 2rem; }
.hero-stats div strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.hero-stats div span { font-size: 0.8rem; color: var(--text-muted); }
.hero-cta-group { display: flex; gap: 1.5rem; align-items: center; }
.hero-photo-grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.75rem; height: 460px; }
.hero-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-grid .ph-main { grid-row: 1 / 3; }
.hero-photo-caption { margin-top: 0.85rem; font-size: 0.78rem; color: var(--text-muted); text-align: center; }
@media (max-width: 900px) {
  .hero-grid-layout { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; }
  .hero-photo-grid { height: 320px; }
}

/* ── 퀵링크 카드 ── */
.quicklinks-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 1024px) { .quicklinks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .quicklinks-grid { grid-template-columns: repeat(2, 1fr); } }
.quicklink-card { background: #fff; aspect-ratio: 1/1; position: relative; overflow: hidden; display: block; }
.quicklink-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.quicklink-card:hover img { transform: scale(1.06); }
.quicklink-card .label { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.quicklink-card .label strong { display: block; font-size: 0.85rem; font-weight: 700; }
.quicklink-card .label span { font-size: 0.7rem; opacity: 0.85; }

/* ══ 시공사례 포트폴리오 (H-3: grid-2) ══ */
.portfolio-section { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-card { border: 1px solid var(--border); overflow: hidden; transition: all 0.3s ease; display: block; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); border-color: var(--primary-dark); }
.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.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; background: var(--primary); color: #16351a; display: inline-block; padding: 0.25rem 0.65rem; align-self: flex-start; }
.card-title { font-weight: 800; font-size: 1.1rem; line-height: 1.4; }
.card-sub { font-weight: 400; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.card-more { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-top: 0.25rem; }
.portfolio-card:hover .card-more { color: var(--primary-dark); }

/* ── 중간 배너 ── */
.mid-banner { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3.5rem 1.25rem; text-align: center; margin-top: 5rem; }
.mid-banner p { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ── 서비스 카드형 (BEFORE/AFTER + 체크리스트) ── */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
@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); display: flex; flex-direction: column; transition: border-color 0.2s; }
.service-card:hover { border-color: var(--primary-dark); }
.service-card .ba-pair { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 4/3; position: relative; }
.service-card .ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.service-card .ba-pair span { position: absolute; bottom: 0.4rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; background: rgba(0,0,0,.55); color: #fff; padding: 0.15rem 0.4rem; }
.service-card .ba-pair .lbl-before { left: 0.4rem; }
.service-card .ba-pair .lbl-after { right: 0.4rem; }
.service-card .num-badge { font-family: monospace; font-size: 0.75rem; color: var(--primary-dark); font-weight: 700; }
.service-card .card-content { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.service-card h3 { font-size: 1rem; }
.service-card p { font-size: 0.82rem; color: var(--text-muted); font-weight: 300; }
.service-card .checklist { display: flex; flex-direction: column; gap: 0.3rem; margin-top: auto; }
.service-card .checklist li { font-size: 0.78rem; display: flex; gap: 0.4rem; align-items: baseline; }
.service-card .checklist li::before { content: "—"; color: var(--primary-dark); }

/* ── 프로세스 ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: left; border-top: 2px solid var(--border); padding-top: 1.25rem; }
.process-step .step-num { font-family: monospace; font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); display: block; margin-bottom: 0.75rem; }
.process-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* ── About (브랜드 스토리) ── */
.about-intro { max-width: 760px; font-weight: 300; color: var(--text-muted); margin-bottom: 3.5rem; font-size: 1.02rem; }
.about-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 768px) { .about-sub-grid { grid-template-columns: 1fr; } }
.about-sub { border: 1px solid var(--border); padding: 1.75rem; }
.about-sub .num-badge { display: block; margin-bottom: 0.75rem; }
.about-sub h3 { font-size: 0.95rem; color: var(--primary-dark); margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.about-sub p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }

/* ── 풀블리드 사진 + 오버레이 섹션 (Trust / CTA 공용) ── */
.photo-section { position: relative; overflow: hidden; text-align: center; background: none; }
.photo-section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.photo-section-overlay { position: absolute; inset: 0; background: rgba(17, 26, 19, 0.82); z-index: 1; }
.photo-section .container { position: relative; z-index: 2; }

#trust .section-head { max-width: 620px; margin: 0 auto 1.5rem; }
#trust h2 { color: #fff; }
.trust-lead { max-width: 560px; margin: 0 auto 3rem; color: rgba(255,255,255,0.82); font-weight: 300; font-size: 0.95rem; }

.trust-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 720px; margin: 0 auto 3rem; }
@media (max-width: 640px) { .trust-counters { grid-template-columns: 1fr; } }
.trust-counters div { border-top: 2px solid var(--primary); padding-top: 1rem; }
.trust-counters strong { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; }
.trust-counters span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.trust-badges li { font-size: 0.8rem; padding: 0.5rem 1.1rem; border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.9); }
.trust-reg { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* ── 고객 후기 ── */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card { border: 1px solid var(--border); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.review-stars { color: var(--primary-dark); font-size: 0.9rem; letter-spacing: 0.1em; }
.review-text { font-size: 0.88rem; color: var(--text); font-weight: 300; flex: 1; }
.review-author { display: flex; align-items: center; gap: 0.6rem; }
.review-avatar { width: 34px; height: 34px; background: var(--primary); color: #16351a; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; }
.review-author div strong { display: block; font-size: 0.82rem; }
.review-author div span { font-size: 0.72rem; color: var(--text-muted); }

/* ── 서비스 지역 ── */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); padding: 1.75rem; }
.area-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.area-card p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; text-align: left; font-weight: 700; font-size: 0.98rem; }
.faq-q .plus { font-size: 1.3rem; font-weight: 300; transition: transform 0.25s ease; color: var(--primary-dark); }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 0 1.5rem; color: var(--text-muted); font-size: 0.88rem; font-weight: 300; }

/* ── CTA (미니멀형) ── */
.cta-minimal.photo-section { text-align: center; }
.cta-minimal:not(.photo-section) { text-align: center; background: var(--bg-tint); }
.cta-minimal .eyebrow { display: block; font-family: monospace; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 1.5rem; }
.cta-minimal.photo-section .eyebrow { color: var(--primary); }
.cta-minimal blockquote { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 0 0 2rem; line-height: 1.4; }
.cta-minimal.photo-section blockquote { color: #fff; }
.cta-minimal .btn-primary { font-size: 1.05rem; }

/* ══ Footer ══ */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 4.5rem 1.25rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-col h3 { font-size: 0.85rem; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 0.3rem 0; }
.footer-logo { font-weight: 800; font-size: 1.1rem; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; max-width: 280px; }
.footer-contact p { font-weight: 700; margin-bottom: 0.75rem; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; font-size: 0.75rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.4rem; }

/* ══ Floating buttons ══ */
.floating-buttons { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: 0.6rem; }
.float-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.1rem; font-weight: 700; font-size: 0.85rem; box-shadow: 0 8px 24px rgba(0,0,0,0.16); }
.float-call { background: var(--primary-dark); color: #fff; }
.float-sms { background: #fff; color: var(--text); border: 1px solid var(--border); }

/* ══ 상세페이지 ══ */
.detail-hero { position: relative; height: 420px; display: flex; align-items: flex-end; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.65)); z-index: 1; }
.detail-hero-overlay { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 2.75rem; width: 100%; color: #fff; display: flex; flex-direction: column; gap: 0.75rem; }
.detail-hero-overlay .card-badge { align-self: flex-start; }
.detail-hero-overlay h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-shadow: 0 2px 16px rgba(0,0,0,0.45); }

.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); margin-top: 3rem; }
@media (max-width: 640px) { .info-bar { grid-template-columns: 1fr 1fr; } }
.info-bar div { padding: 1.25rem; border-right: 1px solid var(--border); }
.info-bar div:last-child { border-right: none; }
.info-bar span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.info-bar strong { font-size: 0.92rem; }

.detail-content { max-width: 780px; margin-top: 3.5rem; }
.detail-content p { margin-bottom: 1.1rem; color: var(--text); font-weight: 300; }
.detail-content h2 { font-size: 1.3rem; margin: 2.5rem 0 1rem; }

.ba-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3.5rem; }
@media (max-width: 640px) { .ba-compare { grid-template-columns: 1fr; } }
.ba-compare figure img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ba-compare figcaption { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }

.summary-box { background: var(--bg-soft); border: 1px solid var(--border); padding: 1.75rem; margin-top: 3.5rem; }
.summary-box li { padding: 0.5rem 0; font-size: 0.9rem; display: flex; gap: 0.5rem; }
.summary-box li::before { content: "✓"; color: var(--primary-dark); font-weight: 700; }

.tech-quote { border-left: 3px solid var(--primary); padding: 0.5rem 0 0.5rem 1.5rem; font-style: normal; margin-top: 3rem; margin-bottom: 3rem; }
.tech-quote p { font-size: 1.02rem; font-weight: 500; margin-bottom: 0.75rem; }
.tech-quote cite { font-size: 0.8rem; color: var(--text-muted); font-style: normal; }

.related-grid { margin-top: 5rem; padding-top: 3rem; padding-bottom: 5rem; border-top: 1px solid var(--border); }
.related-grid h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
