/* 만정누수 - minimal 테마(모노 필 버튼 + 시그널 블루 포인트) / 모노잉크+블루 팔레트 */
:root {
  --primary: #0A0A0A;
  --accent: #2451F5;
  --ink: #0A0A0A;
  --gray: #6B6B6B;
  --border: #ECECEC;
  --bg: #FFFFFF;
  --tint: #F5F4F0;
  --serif: 'Nanum Myeongjo', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.7;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 14px;
  background: var(--tint);
  border-radius: 999px;
  padding: 6px 14px;
}
.section-title { font-size: 28px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.section-lead { color: var(--gray); font-size: 15px; margin: 0 0 40px; max-width: 60ch; }
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand svg { width: 30px; height: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 4px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--primary); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(10,10,10,.2); }
.btn-primary::after { content: '→'; display: inline-block; transition: transform .15s ease; }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--tint); }
.header-cta { padding: 10px 20px; font-size: 13px; }

/* Hero - text-first, cards-on-top pattern (no hero photo panel) */
.hero-top { padding: 140px 0 56px; }
.hero-top h1 { font-size: 46px; margin: 0 0 16px; letter-spacing: -0.03em; }
.hero-top p { color: var(--gray); font-size: 16.5px; margin: 0 0 28px; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero-top { padding: 108px 0 40px; }
  .hero-top h1 { font-size: 30px; }
}

/* Hero service-card grid (doubles as the page's single service grid) */
.service-card { position: relative; }

/* Statement section - text + photo mosaic, two columns */
.statement-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.statement-text h2 { font-size: 32px; margin: 0 0 16px; line-height: 1.3; }
.statement-text p { color: var(--gray); font-size: 15.5px; margin: 0 0 28px; }
.statement-text .hero-actions { margin-bottom: 32px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray); }
.check-list svg { flex-shrink: 0; color: var(--accent); }

/* Photo mosaic - staggered 2x2 */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mosaic-col { display: flex; flex-direction: column; gap: 16px; }
.mosaic-col--offset { margin-top: 40px; }
.mosaic-item { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--tint); margin: 0; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic-item--tall { aspect-ratio: 3/4; }
.mosaic-item--short { aspect-ratio: 4/3; }
@media (max-width: 900px) {
  .statement-split { grid-template-columns: 1fr; gap: 32px; }
  .mosaic-col--offset { margin-top: 0; }
}

/* Sub hero (subpages) - split, shorter */
.sub-hero {
  margin-top: 72px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 360px;
}
.sub-hero-text {
  background: var(--tint); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px;
}
.sub-hero-text h1 { color: var(--ink); font-size: 32px; margin: 0 0 20px; }
.sub-hero-text .eyebrow { background: #fff; }
.sub-hero-media { position: relative; overflow: hidden; background: var(--tint); }
.sub-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .sub-hero { grid-template-columns: 1fr; min-height: 0; }
  .sub-hero-media { height: 32vh; min-height: 220px; order: -1; }
  .sub-hero-text { padding: 32px 24px; }
  .sub-hero-text h1 { font-size: 26px; }
}

/* Grids - fixed columns, no auto-fit */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4-2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3-1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-4-2 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-3-1 { grid-template-columns: 1fr; gap: 14px; }
}

/* Cards */
.card {
  margin: 0; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--bg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 32px rgba(10,10,10,.08); }
.card-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--tint); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-photo img { transform: scale(1.04); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 17px; margin: 0 0 6px; font-weight: 800; }
.card-body p { font-size: 13px; color: var(--gray); margin: 0; }
.card-consult { background: var(--tint); }

.plain-card { border: 1px solid var(--border); border-radius: 4px; padding: 28px 24px; background: var(--bg); transition: border-color .18s ease; }
.plain-card:hover { border-color: var(--accent); }
.plain-card .num { font-family: var(--serif); font-size: 22px; color: var(--accent); font-weight: 700; letter-spacing: 0; }
.plain-card h3 { font-size: 18px; margin: 10px 0 8px; }
.plain-card p { font-size: 14px; color: var(--gray); margin: 0; }

/* Video embed */
.video-wrap { position: relative; aspect-ratio: 16/9; width: 100%; max-width: 800px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--tint); }
.video-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-wrap.video-wrap--vertical { aspect-ratio: 9/16; max-width: 380px; }

/* Gallery - uniform grid, tight gap, no captions */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid .gallery-item { border-radius: 4px; }
.gallery-grid .card-photo { aspect-ratio: 4/3; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.gallery-item { cursor: zoom-in; }

/* Process steps */
.step { text-align: left; padding-top: 18px; border-top: 2px solid var(--border); transition: border-color .18s ease; }
.step:hover { border-color: var(--accent); }
.step .step-no { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 16px; margin: 10px 0 6px; }
.step p { font-size: 13px; color: var(--gray); margin: 0; }

/* Body copy */
.prose { max-width: 72ch; }
.prose h2 { font-size: 25px; margin: 0 0 14px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p { font-size: 15.5px; color: var(--ink); margin: 0 0 16px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 4px; font-size: 15.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px;
  color: var(--ink);
}
.faq-q .mark { color: var(--accent); font-family: var(--serif); font-size: 20px; font-weight: 700; flex-shrink: 0; }
.faq-q:hover { color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 4px 20px; margin: 0; font-size: 14.5px; color: var(--gray); }
.faq-item.open .faq-a { max-height: 400px; }

/* CTA section - solid black, trust badges */
.cta-section { background: var(--primary); color: #fff; padding: 0; margin: 0; }
.cta-section .wrap { padding: 64px 20px; text-align: center; }
.cta-section h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.cta-section p { color: rgba(255,255,255,.72); margin: 0 0 28px; }
.cta-section .hero-actions { justify-content: center; margin-bottom: 28px; }
.cta-section .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.cta-badges { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.cta-badges li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.78); }
.cta-badges svg { flex-shrink: 0; color: #5B7CFF; }

/* Footer */
.site-footer { background: var(--primary); color: #a0a0a0; margin: 0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .04em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13.5px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; display: inline-block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 12px; color: #7a7a7a; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Floating buttons */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.fab-consult { background: var(--primary); color: #fff; }
.fab-top { background: var(--bg); color: var(--ink); border: 1px solid var(--border); display: none; }
.fab-top.show { display: flex; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,10,.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 30px; background: none; border: none; cursor: pointer; }

.phone-encoded, .phone-link-encoded { }
