/* 순인테리어 장판시공 — hero_id=2(스플릿패널) · palette_id=4(파인틸) */

:root {
  --accent: #1E4544;
  --accent-soft: #DDECEA;
  --accent-text: #FFFFFF;
  --hero-tint: #F0F5F4;
  --bar-chrome: #EBECEE;
  --text: #121A19;
  --muted: #4F5E5C;
  --line: #DDE5E3;
  --ink: var(--text);
  --desc: var(--muted);
  --font-body: "Noto Serif KR", serif;
  --col: 1040px;
  --font-btn: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-body); margin: 0; line-height: 1.35; word-break: keep-all; }
p { margin: 0; }
.container { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
button, .btn, .nav-cta, a.btn, .btn-closing, .consult-bar-btn, .footer-btn, .closing-btn {
  font-family: var(--font-btn);
  font-weight: 600;
}

/* ---------- Header (B-22: white from the start, dark text, optional chrome bg on scroll) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.site-header.is-scrolled {
  background: var(--bar-chrome);
  border-bottom-color: #E5E7EB;
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.logo-sub {
  font-family: var(--font-btn);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
}
.main-nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-btn); }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink); }
.main-nav a.nav-cta {
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 20px;
  border-radius: 3px;
  font-weight: 600;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero (hero_id=2 스플릿패널) ---------- */
.hero { padding: 40px 0 80px; background: #FFFFFF; }
.hero .wrap { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
.hero__inner {
  background: var(--hero-tint); border-radius: 26px; padding: 52px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
}
.hero__eyebrow { display: inline-flex; font-family: var(--font-btn); font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.28; color: var(--text); margin-bottom: 20px; }
.hero__desc { font-size: 16px; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__cta a { height: 48px; padding: 14px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; }
.hero__cta .btn-primary { background: var(--accent); color: var(--accent-text); }
.hero__cta .btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.hero__checks { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-btn); font-size: 13px; color: var(--muted); }
.hero__img { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.14); aspect-ratio: 4/3; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .hero__inner { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 20px; }
}

/* ---------- Sub-page hero (blurred background image banner) ---------- */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: -10px; background-size: cover; background-position: center; filter: blur(7px) brightness(1.03); transform: scale(1.08); }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.45) 100%); }
.page-hero-inner { position: relative; z-index: 2; max-width: var(--col); margin: 0 auto; padding: 48px 24px; width: 100%; }
.page-hero-eyebrow { font-family: var(--font-btn); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: 12px; text-shadow: 0 1px 12px rgba(255,255,255,.8); }
.page-hero h1 { font-size: 34px; font-weight: 700; color: #16110D; text-shadow: 0 1px 16px rgba(255,255,255,.6); }
.page-hero-desc { margin-top: 10px; font-size: 15px; color: #3A342F; max-width: 620px; text-shadow: 0 1px 12px rgba(255,255,255,.6); }

/* ---------- Case detail page hero (scoped to body.page-case only) ---------- */
body.page-case .page-hero { min-height: 505px; height: 505px; }
body.page-case .page-hero-media { filter: brightness(.55); transform: scale(1.04); }
body.page-case .page-hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.50) 100%); }
body.page-case .page-hero-eyebrow { color: #fff; text-shadow: none; }
body.page-case .page-hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
body.page-case .page-hero-desc { color: #EDEAE5; text-shadow: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-label {
  font-family: var(--font-btn); font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: .04em; margin-bottom: 12px; display: block;
}
.section-title { font-size: 30px; font-weight: 700; white-space: nowrap; }
.section-desc { margin-top: 14px; font-size: 15px; color: var(--desc); white-space: nowrap; }

@media (max-width: 720px) {
  .section-title, .section-desc, .hero__desc { white-space: normal; }
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 56px 0; background: #E4EEEC; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-item { text-align: center; }
.trust-item .num { font-family: var(--font-btn); font-size: 28px; font-weight: 700; color: var(--accent); }
.trust-item .label { margin-top: 8px; font-size: 14px; color: var(--desc); }

/* ---------- Service cards (B-20 stroke SVG icons) ---------- */
.service-section { background: #EEF4F3; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.service-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 18px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--desc); line-height: 1.65; }

/* ---------- #cases 디자인1번 4-card 2x2 hover grid (34aptr DNA) ---------- */
.cases-section { background: #FBFCFC; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  position: relative; display: block; overflow: hidden; border-radius: 4px;
  aspect-ratio: 590 / 396; background: #eee;
}
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover img { transform: scale(1.06); }
.case-card-reveal {
  position: absolute; inset: 0; background: rgba(255,255,255,.96);
  display: flex; flex-direction: column; justify-content: center; padding: 34px;
  transform: translateY(100%); transition: transform .38s ease;
}
.case-card:hover .case-card-reveal, .case-card.is-revealed .case-card-reveal { transform: translateY(0); }
.case-card-eyebrow { font-family: var(--font-btn); font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 10px; letter-spacing: .04em; }
.case-card-title { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.case-card-excerpt { font-size: 13.5px; color: var(--desc); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cases-more { text-align: center; margin-top: 40px; }
.cases-more a { display: inline-block; padding: 13px 28px; border: 1px solid var(--ink); border-radius: 3px; font-size: 14px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-section { background: #DDECEA; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 4px; font-family: var(--font-body); font-size: 16px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink);
}
.faq-q .mark { font-family: var(--font-btn); color: var(--accent); font-size: 18px; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 22px; font-size: 14.5px; color: var(--desc); }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ---------- Closing (B-25) ---------- */
.closing {
  position: relative; height: 650px; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.closing-overlay { position: absolute; inset: 0; background: rgba(19,19,19,.55); }
.closing-inner { position: relative; z-index: 2; color: #fff; padding: 0 24px; max-width: 640px; }
.closing-headline { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.closing-quote { font-size: 15px; color: #EDEAE5; margin-bottom: 30px; line-height: 1.7; }
.closing-btn {
  display: inline-block; padding: 14px 34px; border: 1px solid #fff; color: #fff;
  border-radius: 0; font-size: 14px; font-weight: 600; letter-spacing: .03em;
}
.closing-btn:hover { background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #FFFFFF; color: var(--text); padding: 48px 0 0; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--col); margin: 0 auto; padding: 0 24px 32px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.footer-name { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.footer-owner, .footer-addr, .footer-hours { white-space: nowrap; }
.footer-reg { display: flex; flex-direction: column; }
.footer-reg-label { font-size: 12.5px; color: var(--muted); }
.footer-reg-num { white-space: nowrap; }
@media (max-width: 480px) {
  .footer-addr { white-space: normal; }
}
.footer-guide { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; max-width: 220px; }
.footer-guide-title { font-size: 12.5px; font-weight: 700; color: var(--muted); font-family: var(--font-btn); margin-bottom: 2px; }
.footer-guide a { color: var(--text); }
.footer-actions { display: flex; gap: 10px; flex-shrink: 0; }
.footer-btn {
  padding: 11px 20px; border-radius: 3px; font-size: 13.5px; font-weight: 600;
  background: var(--accent); color: var(--accent-text);
}
.footer-btn-outline { background: transparent; border: 1px solid var(--line); color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 24px; text-align: center;
  font-size: 12.5px; color: var(--muted); font-family: var(--font-btn);
}

/* ---------- Sticky consult bar (B-23) ---------- */
.consult-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bar-chrome); border-top: 1px solid #E5E7EB;
  box-shadow: 0 -6px 22px rgba(0,0,0,.08);
  transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
  padding: 12px 16px; display: flex; justify-content: center;
}
.consult-bar.is-active { transform: translateY(0); opacity: 1; }
.consult-bar-btn {
  display: block; width: 100%; max-width: 520px; text-align: center;
  background: var(--accent); color: var(--accent-text); padding: 15px; border-radius: 3px;
  font-size: 15px; font-weight: 600;
}
@media (min-width: 768px) {
  .consult-bar { display: none; }
}
@media (max-width: 767px) {
  .consult-bar { transform: translateY(0); opacity: 1; }
  body { padding-bottom: 72px; }
}

/* ---------- Portfolio list (영림 스타일 비대칭 그리드) ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.portfolio-card { position: relative; display: block; overflow: hidden; border-radius: 2px; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-card:hover img { transform: scale(1.04); }
.portfolio-card .pf-cap { margin-top: 12px; }
.portfolio-card .pf-region { font-family: var(--font-btn); font-size: 12px; font-weight: 700; color: var(--accent); }
.portfolio-card .pf-title { font-size: 17px; font-weight: 700; margin-top: 4px; }
.pf-tall { grid-column: span 4; }
.pf-tall img { aspect-ratio: 5/6; }
.pf-wide { grid-column: span 8; }
.pf-wide img { aspect-ratio: 945/500; }
.pf-normal { grid-column: span 4; }
.pf-normal img { aspect-ratio: 7/6; }
@media (max-width: 900px) {
  .pf-tall, .pf-wide, .pf-normal { grid-column: span 12; }
}

.supplement-section { background: #F0F5F4; }
.supplement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.supplement-card { border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.supplement-card img { aspect-ratio: 4/3; object-fit: cover; }
.supplement-card .sc-body { padding: 18px 20px; }
.supplement-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.supplement-card p { font-size: 13.5px; color: var(--desc); }

/* ---------- Case / Region detail body ---------- */
.detail-body { padding: 64px 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; }
.detail-main { max-width: 700px; }
.detail-top-img {
  width: 550px; max-width: 100%; height: 410px; aspect-ratio: 550/410;
  object-fit: cover; border-radius: 18px; margin-bottom: 28px;
}
.detail-eyebrow { font-family: var(--font-btn); font-size: 11px; font-weight: 700; color: #9A9490; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.detail-title { font-size: 25px; font-weight: 700; margin-bottom: 22px; }
.detail-text p { font-size: 15.5px; color: #374151; margin-bottom: 20px; line-height: 1.85; }
.detail-text strong { color: var(--ink); }
.detail-points { margin: 30px 0; padding: 26px; background: #E8F1F0; border-radius: 10px; }
.detail-points h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.detail-points ul { margin: 0; padding-left: 20px; }
.detail-points li { font-size: 14.5px; color: var(--desc); margin-bottom: 8px; }
.detail-side { }
.side-box { background: #F6FAF9; border-radius: 10px; padding: 26px; margin-bottom: 20px; }
.side-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.side-box p { font-size: 14px; color: var(--desc); margin-bottom: 14px; }
.side-cta { display: block; text-align: center; background: var(--accent); color: var(--accent-text); padding: 13px; border-radius: 3px; font-size: 14px; font-weight: 600; }
.detail-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.detail-nav a { color: var(--accent); font-weight: 600; }

.related-section { padding: 8px 0 64px; }
.related-label { font-family: var(--font-btn); font-size: 11px; font-weight: 700; color: #9A9490; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.related-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-row-3 { grid-template-columns: repeat(3, 1fr); }
.related-card { display: block; border-radius: 10px; overflow: hidden; background: #D5E3E1; }
.related-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.related-card-cap { padding: 14px 16px; }
.related-card-region { font-family: var(--font-btn); font-size: 12px; font-weight: 700; color: var(--accent); }
.related-card-title {
  font-size: 15px; font-weight: 700; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; min-height: 2.8em;
}
.mt-cta-center { text-align: center; margin-top: 36px; }
.btn-outline {
  display: inline-block; padding: 13px 32px; border-radius: 3px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--ink); color: var(--ink);
}
@media (max-width: 767px) {
  .related-row, .related-row-3 { grid-template-columns: 1fr; gap: 12px; }
  .related-card-title { font-size: 13.5px; }
}

/* ---------- Guide hub ---------- */
.guide-hub-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.guide-hub-card {
  display: block; width: calc((100% - 56px) / 3); min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.guide-hub-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.guide-hub-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.guide-hub-card .ghc-body { padding: 22px; }
.guide-hub-card .ghc-region { font-family: var(--font-btn); font-size: 12px; font-weight: 700; color: var(--accent); }
.guide-hub-card h3 { font-size: 17px; font-weight: 700; margin: 8px 0; }
.guide-hub-card p {
  font-size: 13.5px; color: var(--desc); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-hub-card .ghc-more { font-family: var(--font-btn); font-size: 13px; font-weight: 600; color: var(--accent); }
@media (max-width: 900px) {
  .guide-hub-card { width: calc((100% - 28px) / 2); }
}
@media (max-width: 560px) {
  .guide-hub-card { width: 100%; }
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .supplement-grid { grid-template-columns: 1fr; }
}

/* ---------- Case detail body (scoped to body.page-case) — single column ---------- */
body.page-case .case-detail { max-width: 760px; margin: 0 auto; }
body.page-case .detail-top-img { display: block; margin: 0 auto 28px; }
body.page-case .detail-eyebrow { font-size: 13.5px; }
body.page-case .detail-title { font-size: 33px; margin-bottom: 22px; }
body.page-case .detail-text p { font-size: 17.5px; }

.stage-row { display: grid !important; gap: 12px; margin: 34px 0; }
.stage-row img { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: 8px; }
.stage-row figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--desc); }
@media (max-width: 767px) {
  .stage-row { gap: 8px; }
  .stage-row img { height: 100px; }
}

/* ---------- Region page FAQ / neighborhoods chip ---------- */
.dong-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 6px; }
.dong-chips span { font-family: var(--font-btn); font-size: 12.5px; background: var(--accent-soft); color: var(--accent); padding: 6px 14px; border-radius: 3px; }

/* ---------- Keyword page process table ---------- */
.kw-process-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kw-process-table th, .kw-process-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.kw-process-table th { font-family: var(--font-btn); font-size: 12.5px; color: var(--accent); font-weight: 700; }
.kw-process-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }

/* ---------- About / Contact ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px; }
.info-card { padding: 30px; background: #F0F5F4; border-radius: 10px; }
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.info-card p { font-size: 14.5px; color: var(--desc); }
.contact-phone-block { text-align: center; padding: 56px 24px; background: #E4EEEC; border-radius: 14px; margin: 40px 0; }
.contact-phone-block .cp-label { font-family: var(--font-btn); font-size: 13px; color: var(--desc); margin-bottom: 14px; }
.contact-phone-block .cp-number { font-family: var(--font-btn); font-size: 38px; font-weight: 700; color: var(--accent); }
.contact-phone-block .cp-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.contact-phone-block .cp-actions a { padding: 14px 30px; border-radius: 3px; font-weight: 600; font-size: 15px; }
.contact-phone-block .cp-actions .cp-call { background: var(--accent); color: #fff; }
.contact-phone-block .cp-actions .cp-sms { border: 1px solid var(--ink); color: var(--ink); }
.biz-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.biz-table th, .biz-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.biz-table th { width: 140px; color: var(--desc); font-weight: 500; }

/* ---------- Sitemap page ---------- */
.sitemap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.sitemap-cols h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sitemap-cols ul { list-style: none; margin: 0; padding: 0; }
.sitemap-cols li { margin-bottom: 10px; font-size: 14.5px; }
.sitemap-cols a:hover { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 65px; left: 0; right: 0; background: #fff;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    padding: 18px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .main-nav a {
    text-align: center; font-size: 12.5px; padding: 10px 2px;
    border: 1px solid var(--line); border-radius: 6px; white-space: nowrap;
  }
  .main-nav a.nav-cta { grid-column: 1 / -1; padding: 12px; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 32px; }
  .hero__desc { font-size: 15px; }
  .section { padding: 56px 0; }
  .closing { height: 480px; }
  .closing-headline { font-size: 23px; }
  .footer-inner { flex-direction: column; }
  .footer-actions { width: 100%; }
  .footer-btn { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 27px; }
  .detail-top-img { height: auto; }
}
@media (max-width: 767px) {
  .portfolio-card .pf-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.4; min-height: 2.8em;
  }
}

/* =====================================================================
   통일 규격 (최종) — 단일 가운데 칼럼 · 사진 그리드 · 모바일 줄바꿈
   ===================================================================== */
html { scroll-padding-top: 76px; }
#services, #portfolio { scroll-margin-top: 70px; }
.container, .header-inner, .footer-inner, .hero .wrap, .page-hero-inner { max-width: var(--col); margin-left: auto; margin-right: auto; }
.section-title { white-space: normal; }
.section-desc { white-space: normal; }

/* 사진 카드 그리드: 1=1열 · 2=2열 · 3=3열 1줄 · 4=2×2 · 5↑=3+더보기 */
.photo-grid { display: grid; gap: 22px; margin: 0 auto; }
.photo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid-1 { grid-template-columns: minmax(0, 1fr); }
.photo-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-grid { margin-top: 22px; }
.more-grid[hidden] { display: none; }
.big-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.big-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.big-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.big-card-body { display: block; padding: 18px 20px 22px; }
.big-card-eyebrow { display: block; font-family: var(--font-btn); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.big-card-title { display: block; font-size: 19px; font-weight: 700; margin-top: 6px; line-height: 1.35; }
.big-card-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 8px; font-size: 14px; color: var(--desc); line-height: 1.6; min-height: 3.2em;
}
.more-btn {
  display: inline-block; padding: 13px 28px; border: 1px solid var(--ink); border-radius: 3px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
}

/* 상세·사례·지역 공통 본문 칼럼 */
.detail-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
.detail-main { max-width: none; }
.detail-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.side-box { margin-bottom: 0; }
body.page-case .case-detail { max-width: var(--col); }
.faq-list { max-width: none; }
.detail-top-img, body.page-case .detail-top-img {
  width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 7; max-height: 480px;
  object-fit: cover; border-radius: 14px; margin: 0 0 28px;
}
.detail-h1 { font-size: 32px; font-weight: 700; margin: 6px 0 16px; }
.detail-lead { font-size: 17px; line-height: 1.85; color: #2b3534; margin-bottom: 28px; }
.crumbs { font-family: var(--font-btn); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--accent); }
.detail-text h2 { font-size: 24px; font-weight: 700; margin: 44px 0 18px; }
.detail-text .kw-process-table { margin-bottom: 20px; }
.faq-h3 { font-size: inherit; margin: 0; }
.hub-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hub-links a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-btn); font-size: 14px; font-weight: 600; color: var(--accent); }
.modified { font-size: 13px; color: var(--muted); }

/* 사례 상세: 상단 과대 배너 제거 → 컴팩트 */
body.page-case .page-hero, body.page-service .page-hero { min-height: 0; height: auto; }
body.page-case .page-hero { background: var(--hero-tint); }
body.page-case .page-hero-media, body.page-case .page-hero-overlay { display: none; }
body.page-case .page-hero-eyebrow { color: var(--accent); }
body.page-case .page-hero h1 { color: var(--text); text-shadow: none; font-size: 30px; }
body.page-case .page-hero-desc { color: var(--muted); }
body.page-case .detail-title { font-size: 26px; }
body.page-case .detail-text p { font-size: 16.5px; }
.related-row { max-width: none; }

/* 데스크톱 헤더: 4칸 */
.main-nav { gap: 28px; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; padding: 12px 16px; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static; transform: none; opacity: 1; width: 100%; padding: 0; border: 0; background: transparent;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  }
  .main-nav a, .main-nav a.nav-cta { grid-column: auto; padding: 9px 2px; font-size: 13px; white-space: nowrap; text-align: center; }
  .detail-side { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body, p, li, td, th, .faq-q, .faq-a p { word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
  h1, h2, h3, .big-card-title, .main-nav a, .btn-primary, .btn-outline, .more-btn, .side-cta, .closing-btn {
    word-break: keep-all; overflow-wrap: normal; line-break: strict;
  }
  .container { padding: 0 16px; }
  .photo-grid-3, .photo-grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .photo-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 22px; }
  .detail-h1 { font-size: 24px; }
  .detail-text h2 { font-size: 19px; }
  body.page-case .page-hero h1 { font-size: 21px; }
  .page-hero h1 { font-size: 24px; }
  .big-card-title { font-size: 17px; }
  .detail-top-img, body.page-case .detail-top-img { aspect-ratio: 16 / 9; }
  .kw-process-table td:first-child { white-space: normal; }
  .logo { font-size: 18px; }
}
