:root {
  --green: #1f5f3f;
  --green-2: #2f7d4f;
  --green-soft: #e8f2ec;
  --ink: #1d2320;
  --ink-2: #4a534e;
  --muted: #7a847e;
  --line: #e3e7e4;
  --bg: #ffffff;
  --bg-alt: #f5f7f5;
  --accent: #f0b429;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 40, 30, .08);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 32px; }
.eyebrow { color: var(--green-2); font-weight: 700; font-size: .9rem; letter-spacing: .02em; margin-bottom: .4em; }
.eyebrow a { color: inherit; }
.note { color: var(--muted); font-size: .9rem; margin-top: 24px; }
.note a { color: var(--green); font-weight: 600; }

/* 버튼 */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid var(--green); color: var(--green); background: #fff;
  transition: background .15s, color .15s, transform .15s; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #174a31; }
.btn-ghost { background: transparent; }
.btn-light { background: #fff; color: var(--green); border-color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* 상단 */
.topbar { background: var(--green); color: #dfeee5; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar a { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--green); letter-spacing: -.03em; }
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb > a, .has-sub > a { padding: 10px 14px; border-radius: 8px; font-weight: 600; color: var(--ink-2); display: block; }
.gnb > a:hover, .has-sub > a:hover, .gnb a.on { color: var(--green); background: var(--green-soft); }
.gnb .gnb-call { margin-left: 8px; background: var(--green); color: #fff; }
.gnb .gnb-call:hover { background: #174a31; color: #fff; }
.has-sub { position: relative; }
.has-sub .sub {
  position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .95rem; }
.sub a:hover { background: var(--green-soft); color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* 히어로 */
.hero { background: linear-gradient(135deg, #f1f7f3 0%, #ffffff 60%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; color: var(--ink); }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 560px; margin-bottom: 1.6em; }
.hero-addr { margin-top: 20px; color: var(--ink-2); font-weight: 600; }
.hero-addr a { color: var(--green); text-decoration: underline; }
.hero-visual { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 440px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); min-height: 0; }
.hv-main { grid-row: span 2; }
.hv-chips { position: absolute; left: 14px; bottom: 14px; right: 40%; display: flex; flex-wrap: wrap; gap: 6px; }
.hv-chips a {
  background: rgba(255,255,255,.94); color: var(--ink); font-size: .82rem; font-weight: 700; padding: 5px 11px 5px 9px;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.hv-chips a::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.hv-chips a:hover { background: #fff; color: var(--green); }

/* 섹션 */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.section-head .sub { color: var(--muted); margin: 6px 0 0; }
.more { color: var(--green); font-weight: 700; white-space: nowrap; }

.page-head { background: linear-gradient(135deg, color-mix(in srgb, var(--c, #2f7d4f) 14%, #fff), #fff); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.page-head p { color: var(--ink-2); max-width: 720px; font-size: 1.05rem; margin: 0; }
.page-head .meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.page-head .meta-line a { color: var(--green); font-weight: 600; }

.strengths { padding: 48px 0; border-bottom: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strength b { color: var(--accent); font-size: .9rem; }
.strength h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.strength p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* 시공 안내 카드 */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.guide-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; border-top: 6px solid var(--c); transition: transform .15s, box-shadow .15s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card img { border-radius: 10px; margin: -6px 0 14px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.guide-card .chip { align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.guide-card h3 { font-size: 1.25rem; }
.guide-card p { color: var(--ink-2); font-size: .93rem; flex: 1; }
.guide-card .go { color: var(--c); font-weight: 700; font-size: .9rem; }

/* 카드(시공현장/제품) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card-grid.products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .badge { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card-body .cat { font-size: .8rem; color: var(--green-2); font-weight: 700; margin: 0 0 4px; }
.card-body .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .88rem; margin: 0; }
.card-body .price { color: var(--ink); font-weight: 700; }

/* 이미지 없을 때 */
.ph {
  width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.25) 0 20%, transparent 21%),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 65%, #000));
  color: #fff;
}
.ph svg { width: 56px; height: 56px; fill: rgba(255,255,255,.9); stroke: rgba(255,255,255,.9); }
.ph span { font-weight: 700; font-size: .9rem; opacity: .95; }

.empty-box { background: #fff; border: 1px dashed #c9d3cd; border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.empty { text-align: center; padding: 40px 0; }

/* 필터 */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.filters a { padding: 8px 16px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); font-weight: 600; font-size: .93rem; border: 1px solid var(--line); }
.filters a.on, .filters a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.filters.small { margin-bottom: 28px; }
.filters.small span { color: var(--muted); font-size: .88rem; margin-right: 4px; }
.filters.small a { padding: 5px 12px; font-size: .85rem; background: #fff; }
.filters .search { margin-left: auto; }
.filters .search input { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font: inherit; min-width: 200px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; }
.pager a.on { background: var(--green); color: #fff; border-color: var(--green); }

/* 본문 */
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.side-title { font-weight: 800; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); border-left: 4px solid transparent; }
.side-nav a:hover { background: var(--bg-alt); }
.side-nav a.on { border-left-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--ink); }
.article { min-width: 0; }
.article-img { border-radius: var(--radius); margin-bottom: 28px; width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.prose { font-size: 1.05rem; color: #2c3430; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .6em; padding-left: 12px; border-left: 4px solid var(--green-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--ink); }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.2em auto; cursor: zoom-in; }
.prose blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--green-2); background: var(--bg-alt); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose a { color: var(--green); text-decoration: underline; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.gallery-title { font-size: 1.3rem; margin: 40px 0 16px; }
.lead-text { font-size: 1.15rem; color: var(--ink-2); }
.cta-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding: 22px 26px; background: var(--green-soft); border-radius: var(--radius);
}
.cta-inline p { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; }
.back { margin-top: 28px; }
.back a { color: var(--green); font-weight: 600; }
.crumb { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.crumb a:hover { color: var(--green); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 32px; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 200; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-2); font-size: .92rem; margin: 0; }

/* 제품 상세 */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg-alt); border: 1px solid var(--line); }
.product-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-img img.cover { object-fit: cover; }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.product-info .cat { color: var(--green-2); font-weight: 700; margin-bottom: 6px; }
.spec { display: grid; grid-template-columns: 90px 1fr; gap: 10px 16px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.spec .price { font-size: 1.2rem; color: var(--green); }
.buy-box { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.buy-box p { color: var(--ink-2); font-size: .93rem; }
.buy-box .btn { margin: 4px 6px 0 0; }
.product-content { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* 위치 */
.location-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--bg-alt); }
.map-box.tall { aspect-ratio: 1/1; max-height: 560px; width: 100%; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-info dl { display: grid; grid-template-columns: 80px 1fr; gap: 10px 12px; margin: 20px 0 24px; font-size: 1.05rem; }
.location-info dt { color: var(--muted); }
.location-info dd { margin: 0; font-weight: 600; }
.location-info dd a { color: var(--green); }
.location-info .strong { font-size: 1.4rem; font-weight: 800; }
.copy-addr { margin-top: 14px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* 연락처 밴드(모든 페이지 하단) */
.contact-band { background: linear-gradient(120deg, #1f5f3f, #2f7d4f); color: #fff; padding: 56px 0; }
.contact-band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-band .eyebrow { color: #bfe3cc; }
.contact-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; max-width: 460px; }
.contact-band-info { text-align: right; }
.big-phone { display: block; font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.big-addr { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 600; margin: 6px 0 18px; color: #e3f2e8; }
.contact-band .btns { justify-content: flex-end; }

.footer { background: #141a17; color: #b9c2bd; padding: 40px 0 24px; font-size: .93rem; }
.footer-in { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 32px; }
.footer-brand strong { color: #fff; font-size: 1.15rem; }
.footer-brand p { margin: 4px 0 0; }
.footer-info { margin: 0; display: grid; gap: 6px; }
.footer-info div { display: flex; gap: 12px; }
.footer-info dt { color: #7f8a84; min-width: 56px; }
.footer-info dd { margin: 0; color: #fff; font-weight: 600; }
.footer-info .map-link { color: #9fd4b3; font-weight: 400; margin-left: 6px; font-size: .85rem; text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid #2a322e; font-size: .82rem; color: #6f7a74; }
.footer-copy a:hover { color: #fff; }

.mobile-bar { display: none; }

/* 반응형 */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-visual { height: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .location-grid, .product-detail { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-title { width: 100%; }
  .side-nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 8px 12px; background: var(--bg-alt); }
  .side-nav a.on { border-bottom-color: var(--c); }
  .footer-in { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .gnb {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; box-shadow: var(--shadow); display: none;
  }
  .gnb.open { display: flex; }
  .has-sub .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .gnb .gnb-call { margin: 10px 0 0; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar span { display: none; }
  .hero-visual { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .hero-visual .hv-sub { display: none; }
  .hv-main { aspect-ratio: 4/3; grid-row: auto; }
  .hv-chips { right: 14px; }
  .topbar .wrap { justify-content: center; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .card-grid, .card-grid.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: .95rem; }
  .filters .search { margin-left: 0; width: 100%; }
  .filters .search input { width: 100%; }
  .contact-band-info, .contact-band .btns { text-align: left; justify-content: flex-start; }
  .btn { padding: 11px 18px; }
  body { padding-bottom: 60px; }
  .mobile-bar {
    display: grid; grid-template-columns: 2fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  }
  .mobile-bar a { padding: 16px 8px; text-align: center; font-weight: 800; color: #fff; }
  .mb-call { background: var(--green); }
  .mb-map { background: #2b332f; }
}
