/* ===== 데코타일 디자인 시스템 — 에스프레소 브라운 + 브라스 골드 포인트 ===== */
:root {
  --navy: #3d3229;
  --navy-dark: #241d17;
  --navy-soft: #5c4d3f;
  --accent: #b8873c;
  --accent-dark: #96692a;
  --ink: #201a14;
  --muted: #6b6157;
  --line: #e9e3da;
  --bg: #ffffff;
  --bg-alt: #f8f5f1;
  --font-heading: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.3; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }
.prose-spaced p, .prose-spaced blockquote { margin-bottom: 1.9em; line-height: 1.9; }
.prose-spaced p:last-child { margin-bottom: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; border: none;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(184,135,60,.35); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-large { padding: 18px 40px; font-size: 17px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(61,50,41,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
}
.site-logo { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: #fff; line-height: 1.1; }
.site-nav ul { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.site-nav a { color: rgba(255,255,255,.82); font-weight: 600; font-size: 14.5px; }
.site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.header-actions .btn { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

/* ---- Breadcrumb ---- */
.breadcrumb { max-width: 1120px; margin: 0 auto; padding: 14px 24px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--navy); font-weight: 700; }

/* ---- Hero (main) ---- */
.hero { position: relative; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,29,23,.15) 0%, rgba(36,29,23,.72) 100%); }
.hero-content { position: relative; z-index: 2; padding: 90px 24px 70px; max-width: 1120px; margin: 0 auto; width: 100%; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-eyebrow { display: inline-block; background: rgba(61,50,41,.55); border: 1px solid rgba(184,135,60,.5); color: var(--accent); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; text-shadow: none; }
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 58px); margin-bottom: .35em; }
.hero-sub-copy { color: rgba(255,255,255,.92); font-size: 17px; max-width: 620px; margin-bottom: 30px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Sections ---- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-alt); }
section.block.tint-navy { background: #f1efe9; }
section.block.tint-accent { background: #fbf2e4; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 10px; }
.section-head p { color: var(--muted); }

/* ---- Photo gallery grid ---- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.photo-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); aspect-ratio: 4/5; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; cursor: zoom-in; }
.photo-item:hover img { transform: scale(1.06); }
.gallery-2col .photo-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }

/* ---- Carousel ---- */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(36,29,23,.12); }
.carousel-viewport { overflow: hidden; aspect-ratio: 16/9; background: var(--bg-alt); }
.carousel-track { display: flex; height: 100%; transition: transform .5s ease; }
.carousel-slide { flex: 0 0 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(36,29,23,.55); color: #fff; border: none; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .2s ease; }
.carousel-btn:hover { background: rgba(36,29,23,.85); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; padding: 0; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.carousel-dot.active { background: #fff; transform: scale(1.2); }
@media (max-width: 560px) {
  .carousel-viewport { aspect-ratio: 4/3; }
  .carousel-btn { width: 36px; height: 36px; font-size: 20px; }
}

/* ---- Lightbox ---- */
.lightbox-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(36,29,23,.92); display: none; align-items: center; justify-content: center; padding: 40px 20px; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: min(900px, 100%); max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 22px; cursor: pointer; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ---- Feature / card grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.feature-card .icon-badge { width: 46px; height: 46px; border-radius: 12px; background: rgba(184,135,60,.14); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; }
.feature-card .icon-badge svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---- Process timeline ---- */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.process-item { position: relative; padding-top: 8px; }
.process-item::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 16px; }
.process-item h3 { font-size: 16px; }
.process-item p { color: var(--muted); font-size: 13.5px; }

/* ---- Vertical timeline (region page variety) ---- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 40px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -46px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.timeline-item h3 { font-size: 17px; margin-bottom: 8px; }
.timeline-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---- Numbered data list (region page variety) ---- */
.numbered-list { counter-reset: num; display: flex; flex-direction: column; gap: 22px; }
.numbered-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.numbered-item::before { counter-increment: num; content: counter(num, decimal-leading-zero); font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1; }
.numbered-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.numbered-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---- Trust / stats ---- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; text-align: center; }
.stat-item strong { display: block; font-family: var(--font-heading); font-size: 34px; color: var(--navy); }
.stat-item span { color: var(--muted); font-size: 14px; }

/* ---- Process table (한눈에 보는 시공 프로세스) ---- */
.process-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.process-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.process-table th, .process-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.process-table th { background: var(--bg-alt); color: var(--navy); font-weight: 800; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.process-table tr:last-child td { border-bottom: none; }
.process-table td.step-no { font-family: var(--font-heading); font-weight: 800; color: var(--accent); font-size: 17px; width: 60px; }
.process-table td.step-name { font-weight: 700; color: var(--navy); }
.process-table td.step-desc { color: var(--muted); }
@media (max-width: 640px) {
  .process-table { min-width: 0; }
  .process-table th, .process-table td { padding: 10px 8px; font-size: 12px; }
  .process-table td.step-no { width: 30px; font-size: 14px; }
}

/* ---- Reviews marquee (연속 가로 자동 슬라이딩, 순수 CSS 애니메이션) ---- */
.reviews-slider { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.reviews-track { display: flex; gap: 20px; width: max-content; animation: reviews-marquee 42s linear infinite; }
.reviews-slider:hover .reviews-track { animation-play-state: paused; }
.review-card { flex: 0 0 320px; width: 320px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.review-card .stars { color: var(--accent); font-size: 15px; letter-spacing: 1px; margin-bottom: 10px; }
.review-card .name { font-weight: 800; color: var(--navy); font-size: 15px; }
.review-card .meta { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.review-card p { font-size: 14.5px; color: var(--ink); margin: 12px 0 0; line-height: 1.7; }
@keyframes reviews-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .review-card { flex: 0 0 260px; width: 260px; }
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 16.5px; display: flex; gap: 10px; }
.faq-item h3 .q-mark { color: var(--accent); }
.faq-item p { color: var(--muted); margin: 10px 0 0; }

/* ---- CTA block ---- */
.cta-block { background: var(--navy); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; }
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,.75); }

/* ---- Pull quote / callout / checklist (region page variety) ---- */
.pull-quote { border-left: 4px solid var(--accent); padding: 18px 26px; font-size: 18px; font-weight: 700; color: var(--navy); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.callout { background: #fbf2e4; border: 1px solid #ecd7ae; border-radius: var(--radius); padding: 24px 28px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }

/* ---- Split screen segment (region page variety) ---- */
.split-screen { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.split-screen .split-media { background-size: cover; background-position: center; min-height: 280px; }
.split-screen .split-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px; background: var(--bg-alt); }
.split-screen.reverse { direction: rtl; }
.split-screen.reverse .split-copy { direction: ltr; }
.split-screen.reverse .split-media { direction: ltr; }

/* ---- Banner (gray-tone, region page variety) ---- */
.tone-banner { background: #eeece7; border-radius: var(--radius); padding: 44px 40px; }
.tone-banner h3 { font-size: 20px; }

/* ---- Magazine / editorial (region page variety) ---- */
.magazine-head { font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.magazine-lede { font-size: 19px; color: var(--muted); max-width: 720px; }

/* ---- Dark reversed highlight (region page variety) ---- */
.dark-panel { background: var(--navy-dark); color: rgba(255,255,255,.88); border-radius: 24px; padding: 56px 44px; }
.dark-panel h2, .dark-panel h3 { color: #fff; }
.dark-panel p { color: rgba(255,255,255,.72); }
.dark-panel .stat-item strong { color: var(--accent); }
.dark-panel .stat-item span { color: rgba(255,255,255,.6); }

/* ---- Asymmetric two-column (region page variety) ---- */
.asym-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.asym-grid .asym-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.asym-grid .asym-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Wide image band (region page variety) ---- */
.wide-band { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; }
.wide-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Interactive block text (region page variety) ---- */
.block-text-list { display: flex; flex-direction: column; gap: 2px; }
.block-text-item { background: var(--bg-alt); border-radius: var(--radius); padding: 26px 30px; transition: background .2s ease; }
.block-text-item:hover { background: #f1ebe0; }
.block-text-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--accent-dark); }
.block-text-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---- Region hub card grid ---- */
.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.region-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.region-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(36,29,23,.12); }
.region-card .region-photo { aspect-ratio: 4/3; overflow: hidden; }
.region-card .region-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.region-card:hover .region-photo img { transform: scale(1.06); }
.region-card .region-body { padding: 22px 24px; }
.region-card h3 { font-size: 17px; margin-bottom: 8px; }
.region-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---- Related links / home button ---- */
.related-links { padding: 46px 0 10px; }
.related-links h2 { font-size: 18px; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-list a { background: var(--bg-alt); border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.related-list a:hover { border-color: var(--accent); color: var(--accent); }
.home-button-wrap { text-align: center; padding: 20px 0 50px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding: 56px 0 0; margin-top: 60px; }
.site-footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.footer-logo { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 16px; }
.footer-biz-info li { font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.footer-biz .btn { margin-top: 18px; }
.footer-sitemap h3 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-sitemap-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.footer-sitemap-list a { font-size: 13.5px; color: rgba(255,255,255,.65); }
.footer-sitemap-list a:hover { color: var(--accent); }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 20px 24px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.4); }

/* ---- Floating button ---- */
.floating-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; text-align: center; box-shadow: 0 10px 26px rgba(184,135,60,.45);
  transition: transform .15s ease;
}
.floating-btn:hover { transform: scale(1.07); }

/* ---- Sitemap page ---- */
.sitemap-toolbar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.sitemap-search { flex: 1; min-width: 220px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.sitemap-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.sitemap-filter button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.sitemap-filter button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.sitemap-count { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.sitemap-list { display: flex; flex-direction: column; gap: 14px; }
.sitemap-row { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.sitemap-row .cat { color: var(--accent); font-size: 12px; font-weight: 800; }
.sitemap-row h3 { font-size: 16px; margin: 6px 0 0; }
.sitemap-sublist { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 4px 22px; padding-left: 18px; border-left: 2px solid var(--line); }
.sitemap-subrow { padding: 14px 20px; }
.sitemap-subrow h3 { font-size: 14.5px; margin: 0; }
.sitemap-empty { text-align: center; padding: 60px 0; color: var(--muted); display: none; }

/* ---- 404 ---- */
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-heading); font-size: 90px; font-weight: 800; color: var(--navy); }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .two-col, .split-screen, .asym-grid { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-nav { position: fixed; top: 62px; left: 0; right: 0; background: var(--navy); padding: 20px 24px; transform: translateY(-120%); opacity: 0; transition: .2s ease; pointer-events: none; z-index: 90; }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: flex; }
  .header-actions .btn { padding: 9px 16px; font-size: 13px; }
  .hero-content { padding: 60px 20px 46px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .numbered-item { grid-template-columns: 40px 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-item strong { font-size: 18px; }
  .stat-item span { font-size: 11px; }
}
