/* =========================================================
   하우스온 인테리어 — 공통 스타일 (Design System)
   색상: 화이트 배경 / 차콜 본문 / 네이비 포인트 / 브론즈 보조
   폰트: Pretendard (CDN) + system-ui 폴백
   ========================================================= */

/* ---------- Fonts ---------- */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* ---------- Design Tokens ---------- */
:root {
  --navy: #1b2a4a;
  --navy-deep: #131f38;
  --charcoal: #1a1a1a;
  --gray-900: #222;
  --gray-700: #4a4f57;
  --gray-500: #7c828c;
  --gray-300: #d7dae0;
  --gray-100: #f2f3f5;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bronze: #b08d57;
  --bronze-soft: #c8a874;
  --white: #ffffff;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px rgba(20, 25, 40, 0.06);
  --shadow-md: 0 12px 34px rgba(20, 25, 40, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 25, 40, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;

  --font: "Pretendard", "Pretendard Variable", system-ui, -apple-system,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #eef1f6; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-title .accent { color: var(--bronze); }
.section-sub { margin-top: 18px; color: var(--gray-500); font-size: 1.05rem; }
.section--navy .section-sub { color: #b9c2d4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn--bronze { background: var(--bronze); color: #fff; }
.btn--bronze:hover { background: var(--bronze-soft); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--gray-100); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; color: var(--navy); letter-spacing: -0.03em; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--navy), var(--bronze)); display: grid; place-items: center; color: #fff; font-size: 0.9rem; }
.brand small { display: block; font-size: 0.62rem; letter-spacing: 0.28em; color: var(--gray-500); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 600; font-size: 0.98rem; color: var(--gray-700); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--bronze); transition: width .25s var(--ease); }
.nav a:hover, .nav a.active { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-tel { font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; padding: calc(var(--header-h) + 72px) 0 90px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(19, 31, 56, 0.72), rgba(19, 31, 56, 0.55)),
    var(--img-hero, linear-gradient(135deg, #26344f, #4a5878));
  background-size: cover; background-position: center;
  color: #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); padding: 8px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; margin-bottom: 24px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #46d38a; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.18; }
.hero h1 .hl { color: var(--bronze-soft); }
.hero-lead { margin-top: 22px; font-size: 1.12rem; color: #d7deec; max-width: 520px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust div { line-height: 1.2; }
.hero-trust b { display: block; font-size: 1.7rem; color: #fff; }
.hero-trust span { font-size: 0.85rem; color: #aeb8cc; }

/* Quick inquiry form (hero card) */
.quote-card { background: #fff; color: var(--charcoal); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.quote-card h3 { font-size: 1.25rem; color: var(--navy); }
.quote-card .q-sub { font-size: 0.9rem; color: var(--gray-500); margin-top: 6px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.96rem; color: var(--charcoal); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,74,0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 0.76rem; color: var(--gray-500); margin-top: 10px; text-align: center; }
.form-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--gray-700); margin: 6px 0 14px; }
.form-consent input { margin-top: 3px; }

/* Form feedback message */
.form-msg { display: none; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: #e9f7ef; color: #1c6b3f; font-size: 0.9rem; font-weight: 600; text-align: center; }
.form-msg.show { display: block; }

/* ==========================================================
   STATS BAR
   ========================================================== */
.stats { background: var(--navy); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 56px; padding-bottom: 56px; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 1px; height: 44px; background: rgba(255,255,255,0.14); }
.stat b { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--bronze-soft); display: block; }
.stat span { font-size: 0.95rem; color: #c3ccdd; }

/* ==========================================================
   FEATURE CARDS (4대 차별점)
   ========================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 34px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(27,42,74,0.1), rgba(176,141,87,0.14)); color: var(--navy); margin-bottom: 20px; font-size: 1.5rem; }
.feature h3 { font-size: 1.22rem; color: var(--navy); margin-bottom: 10px; }
.feature p { color: var(--gray-500); font-size: 0.96rem; }

/* ==========================================================
   PRICE (가격정찰제 요약)
   ========================================================== */
.price-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.price-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--img-price, linear-gradient(135deg, #2b3a58, #7c674a)); aspect-ratio: 4/3; position: relative; }
.price-visual .tag { position: absolute; left: 22px; bottom: 22px; background: #fff; color: var(--navy); padding: 12px 18px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow-sm); }
.price-visual .tag small { display: block; color: var(--bronze); font-size: 0.7rem; letter-spacing: 0.1em; }
.price-list { margin-top: 26px; display: grid; gap: 16px; }
.price-list li { display: flex; gap: 14px; align-items: flex-start; }
.price-list .chk { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(176,141,87,0.15); color: var(--bronze); display: grid; place-items: center; font-weight: 800; margin-top: 2px; }
.price-list b { color: var(--navy); }
.price-list span { color: var(--gray-500); font-size: 0.96rem; }

/* ==========================================================
   PROCESS (시공 프로세스)
   ========================================================== */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.process--3 { grid-template-columns: repeat(3, 1fr); max-width: 820px; margin-inline: auto; }
.step { text-align: center; position: relative; padding-top: 12px; }
.step .num { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 2px solid var(--gray-300); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; transition: .25s; }
.step:hover .num { border-color: var(--bronze); background: var(--bronze); color: #fff; transform: translateY(-4px); }
.step h4 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: var(--gray-500); }
.section--navy .step .num { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: #fff; }
.section--navy .step h4 { color: #fff; }
.section--navy .step p { color: #b9c2d4; }

/* ==========================================================
   BEFORE / AFTER
   ========================================================== */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.ba.before { background-image: var(--img-before, linear-gradient(135deg, #5a5f68, #3c4048)); }
.ba.after  { background-image: var(--img-after, linear-gradient(135deg, #26344f, #b08d57)); }
.ba .label { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.55); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; }
.ba.after .label { background: var(--bronze); }

/* 시공사례 슬라이드 갤러리 */
.slideshow { position: relative; max-width: 980px; margin-inline: auto; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #26344f; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; display: flex; align-items: flex-end; text-decoration: none; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 42%); }
.slide-cap { position: relative; z-index: 1; color: #fff; padding: 22px 26px; font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.85); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow-sm); transition: .2s; }
.slide-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slide-nav.prev { left: 14px; } .slide-nav.next { right: 14px; }
.slide-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slide-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: .25s; }
.slide-dots button.is-active { background: #fff; width: 22px; }
@media (max-width: 640px) { .slideshow { aspect-ratio: 4/3; } .slide-cap { font-size: 0.95rem; padding: 16px 18px; } .slide-nav { width: 38px; height: 38px; font-size: 1.3rem; } }

/* ==========================================================
   PORTFOLIO
   ========================================================== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard .thumb { aspect-ratio: 4/3; background-size: cover; background-position: center; position: relative; }
.pcard .thumb::after { content: attr(data-cat); position: absolute; top: 14px; left: 14px; background: rgba(19,31,56,0.85); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.pcard .pbody { padding: 22px 22px 26px; }
.pcard h3 { font-size: 1.14rem; color: var(--navy); margin-bottom: 8px; }
.pcard .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.86rem; color: var(--gray-500); }
.pcard .meta span::before { content: "· "; color: var(--gray-300); }
.pcard .meta span:first-child::before { content: ""; }
/* 시공사례: 사진만 표시 (배지·제목·메타 숨김) */
.portfolio-grid.photos-only .thumb::after { display: none; }
.portfolio-grid.photos-only .pbody { display: none; }

/* ==========================================================
   REVIEWS
   ========================================================== */
.review { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--bronze); letter-spacing: 2px; margin-bottom: 14px; }
.review p { color: var(--gray-700); font-size: 0.98rem; }
.review .who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.review .ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--bronze)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.review .who b { display: block; color: var(--navy); font-size: 0.95rem; }
.review .who small { color: var(--gray-500); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-300); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 24px 40px 24px 0; font-size: 1.08rem; font-weight: 700; color: var(--navy); position: relative; display: flex; gap: 12px; }
.faq-q .qmark { color: var(--bronze); }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 22px; font-size: 1.5rem; color: var(--gray-500); transition: transform .3s; font-weight: 400; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 0 24px 26px; color: var(--gray-500); }

/* ==========================================================
   CTA BAND
   ========================================================== */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #35406a); color: #fff; text-align: center; border-radius: 0; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { margin: 16px auto 30px; color: #c3ccdd; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Contact form section */
.contact-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gray-100); }
.contact-info .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(27,42,74,0.08); color: var(--navy); display: grid; place-items: center; font-size: 1.2rem; }
.contact-info small { color: var(--gray-500); font-size: 0.82rem; }
.contact-info b { display: block; color: var(--navy); font-size: 1.05rem; }
.form-box { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }

/* Map placeholder */
.map-ph { aspect-ratio: 16/7; border-radius: var(--radius); background: var(--img-map, repeating-linear-gradient(45deg, #eef0f4, #eef0f4 14px, #e6e9ef 14px, #e6e9ef 28px)); display: grid; place-items: center; color: var(--gray-500); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ==========================================================
   FLOATING CTA
   ========================================================== */
.floating { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; font-weight: 800; color: #fff; box-shadow: var(--shadow-md); transition: transform .2s var(--ease); }
.fab:hover { transform: translateY(-3px); }
.fab--quote { background: var(--bronze); }
.fab--tel { background: var(--navy); }
.fab .ic { font-size: 1.15rem; }
.fab-label { font-size: 0.95rem; }

/* ==========================================================
   PAGE HERO (sub pages)
   ========================================================== */
.page-hero { padding: calc(var(--header-h) + 64px) 0 64px; background: linear-gradient(180deg, rgba(19,31,56,0.85), rgba(19,31,56,0.7)), var(--img-subhero, linear-gradient(135deg, #26344f, #4a5878)); background-size: cover; background-position: center; color: #fff; text-align: center; }
.page-hero .eyebrow { color: var(--bronze-soft); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { margin-top: 16px; color: #d7deec; }
.crumbs { margin-top: 20px; font-size: 0.86rem; color: #aeb8cc; }
.crumbs a:hover { color: #fff; }

/* ==========================================================
   PORTFOLIO 상세 갤러리 + 라이트박스
   ========================================================== */
.proj-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.proj-meta span { background: var(--bg-soft); border: 1px solid var(--gray-100); color: var(--navy); font-weight: 700; font-size: 0.92rem; padding: 8px 16px; border-radius: 999px; }
.gallery { column-count: 3; column-gap: 16px; }
.gallery img { width: 100%; display: block; border-radius: 12px; margin: 0 0 16px; break-inside: avoid; box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gallery img:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,15,25,0.93); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; border: none; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,0.32); }
.lightbox .lb-close { top: 18px; right: 22px; width: 44px; height: 44px; font-size: 1.5rem; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.6rem; }
.lightbox .lb-prev { left: 18px; } .lightbox .lb-next { right: 18px; }
.lightbox .lb-count { top: 22px; left: 24px; background: none; font-size: 0.9rem; width: auto; height: auto; border-radius: 0; cursor: default; }

/* Compare table (system page) */
.cmp { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.cmp th, .cmp td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--gray-100); }
.cmp thead th { background: var(--navy); color: #fff; font-size: 1rem; }
.cmp thead th.hl { background: var(--bronze); }
.cmp tbody th { text-align: left; color: var(--navy); font-weight: 700; background: var(--bg-soft); }
.cmp td.good { color: #1c6b3f; font-weight: 700; }
.cmp td.bad { color: #b23b3b; }
.cmp td.hl { background: rgba(176,141,87,0.08); font-weight: 700; color: var(--navy); }

/* About story */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { aspect-ratio: 3/4; border-radius: var(--radius); background: var(--img-about, linear-gradient(135deg, #26344f, #b08d57)); background-size: cover; background-position: center; background-repeat: no-repeat; box-shadow: var(--shadow-md); }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value { text-align: center; padding: 30px 20px; }
.value .ic { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: rgba(27,42,74,0.07); color: var(--bronze); display: grid; place-items: center; font-size: 1.4rem; }
.value h3 { color: var(--navy); font-size: 1.14rem; margin-bottom: 8px; }
.value p { color: var(--gray-500); font-size: 0.94rem; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--navy-deep); color: #aeb8cc; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: #7c869c; }
.footer p { font-size: 0.9rem; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer li { margin-bottom: 10px; font-size: 0.9rem; }
.footer li a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #6b7590; }

/* ==========================================================
   자동견적 PROMO (홈 화면 배너)
   ========================================================== */
.estimate-promo {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #35406a);
  color: #fff; border-radius: var(--radius); padding: 60px 32px;
  box-shadow: var(--shadow-md);
}
.estimate-promo::before, .estimate-promo::after {
  content: ""; position: absolute; border-radius: 50%; opacity: 0.14;
  background: radial-gradient(circle, var(--bronze-soft), transparent 70%);
}
.estimate-promo::before { width: 320px; height: 320px; top: -120px; right: -80px; }
.estimate-promo::after { width: 240px; height: 240px; bottom: -120px; left: -60px; }
.estimate-promo > * { position: relative; z-index: 1; }
.ep-badge { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.15em; color: var(--bronze-soft); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; }
.estimate-promo h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.estimate-promo h2 .accent { color: var(--bronze-soft); }
.estimate-promo p { margin: 18px auto 30px; color: #c3ccdd; max-width: 560px; font-size: 1.05rem; }

/* ==========================================================
   AUTO ESTIMATE (자동견적)
   ========================================================== */
.es-intro { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.es-intro .disclaimer { background: rgba(176,141,87,0.08); border: 1px solid rgba(176,141,87,0.25); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.9rem; color: var(--gray-700); margin-top: 24px; text-align: left; }

/* 평형 선택 */
.es-pyeong-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.es-pyeong { padding: 14px 30px; border-radius: 999px; border: 2px solid var(--gray-300); background: #fff; font-weight: 800; font-size: 1.05rem; color: var(--gray-500); transition: .2s var(--ease); }
.es-pyeong:hover { border-color: var(--bronze); color: var(--navy); }
.es-pyeong.active { background: var(--navy); border-color: var(--navy); color: #fff; }
#es-factor-note { text-align: center; color: var(--gray-500); font-size: 0.88rem; margin-bottom: 40px; }

/* 견적 레이아웃 (좌: 공정 / 우: 스티키 합계) */
.es-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

/* 공정 카드 */
.es-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.es-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--gray-100); margin-bottom: 18px; }
.es-no { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; }
.es-head h3 { font-size: 1.14rem; color: var(--navy); }
.es-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 4px; line-height: 1.5; }
.es-subtotal { margin-left: auto; white-space: nowrap; font-weight: 800; color: var(--bronze); font-size: 1.05rem; align-self: center; }

.es-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.es-radio-group { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }

/* 선택 버튼(pill) — 체크박스 형태 */
.es-pill { display: inline-flex; flex-direction: row; align-items: center; gap: 11px; padding: 11px 18px 11px 14px; border-radius: 10px; border: 1.5px solid var(--gray-300); background: #fff; transition: .18s var(--ease); text-align: left; }
.es-pill:hover { border-color: var(--bronze); transform: translateY(-2px); }
.es-pill-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.es-pill-label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.es-pill-price { font-size: 0.78rem; color: var(--gray-500); }
/* 체크박스 / 라디오 표시 */
.es-box { flex: none; width: 22px; height: 22px; border: 2px solid var(--gray-300); border-radius: 6px; background: #fff; position: relative; transition: .15s var(--ease); }
.es-box--radio { border-radius: 50%; }
.es-pill:hover .es-box { border-color: var(--bronze); }
.es-pill.active .es-box { background: var(--bronze); border-color: var(--bronze); }
.es-pill.active .es-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.es-pill.active .es-box--radio::after { content: ""; left: 50%; top: 50%; width: 8px; height: 8px; border: none; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); }
.es-pill.active { background: var(--navy); border-color: var(--navy); }
.es-pill.active .es-pill-label { color: #fff; }
.es-pill.active .es-pill-price { color: var(--bronze-soft); }

/* 드롭다운 */
.es-select-wrap { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 4px; }
.es-select-wrap label { font-weight: 700; font-size: 0.92rem; color: var(--navy); white-space: nowrap; }
.es-select { flex: 1; padding: 11px 14px; border: 1.5px solid var(--gray-300); border-radius: 10px; font-family: inherit; font-size: 0.92rem; color: var(--charcoal); background: #fff; cursor: pointer; }
.es-select:focus { outline: none; border-color: var(--navy); }
.es-input { padding: 10px 12px; border: 1.5px solid var(--gray-300); border-radius: 8px; font-family: inherit; font-size: 0.9rem; }
.es-input:focus { outline: none; border-color: var(--navy); }

/* 스티키 합계 패널 */
.es-summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-md); }
.es-summary h3 { font-size: 1.15rem; margin-bottom: 18px; }
.es-sumrow { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; color: #c3ccdd; }
.es-sumrow b { font-size: 1.1rem; color: #fff; font-weight: 700; }
.es-sumrow.grand { border: none; padding-top: 16px; }
.es-sumrow.grand span { font-size: 1rem; color: #fff; font-weight: 700; }
.es-sumrow.grand b { font-size: 1.7rem; color: var(--bronze-soft); }
.es-summary .es-final-row { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 14px 16px; margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.es-summary .es-final-row b { color: #fff; font-size: 1.35rem; }
.es-summary .btn { margin-top: 20px; }
.es-summary .fine { font-size: 0.75rem; color: #94a0b8; margin-top: 14px; line-height: 1.6; }

/* 샷시 표 */
.sash-wrap { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); overflow-x: auto; }
.sash-head { display: grid; grid-template-columns: 110px 1.3fr 100px 100px 60px 64px 110px 34px; gap: 10px; padding: 0 4px 12px; min-width: 760px; font-size: 0.8rem; font-weight: 700; color: var(--gray-500); }
.sash-row { display: grid; grid-template-columns: 110px 1.3fr 100px 100px 60px 64px 110px 34px; gap: 10px; align-items: center; padding: 8px 4px; min-width: 760px; border-top: 1px solid var(--gray-100); }
.sash-row .s-py { text-align: center; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.sash-row .s-price { text-align: right; font-weight: 800; color: var(--bronze); font-size: 0.92rem; }
.sash-row .s-del { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--gray-300); background: #fff; color: var(--gray-500); font-size: 1.1rem; line-height: 1; }
.sash-row .s-del:hover { border-color: #b23b3b; color: #b23b3b; }
.sash-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; flex-wrap: wrap; gap: 14px; }
.sash-foot .s-sum { font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.sash-foot .s-sum b { color: var(--bronze); font-size: 1.3rem; }
.sash-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 10px; }

@media (max-width: 960px) {
  .es-layout { grid-template-columns: 1fr; }
  .es-summary { position: static; }
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-split, .about-split, .contact-split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; padding: 12px 24px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .35s var(--ease); align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--gray-100); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-tel { display: none; }
  .header-cta .btn { display: none; }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .grid-3, .grid-2, .portfolio-grid, .ba-grid, .values { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stat:nth-child(2)::after { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .fab-label { display: none; }
  .fab { padding: 15px; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
