/* =========================================================
   madeinheavenagency.co.kr 리뉴얼 (2026-11-26) — 다크 + Pretendard + 코발트
   기존 tokens/base/components/layout.css 다음에 불러옵니다.
   상담 패널(consult)·견적 폼(inquiry) 기능 파일은 건드리지 않습니다.
   ========================================================= */
html, body { background: #08090d !important; color: #f2f3f6; }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.mh { font-family: inherit; color: #f2f3f6; background: #08090d; word-break: keep-all; }
.mh a { color: inherit; text-decoration: none; }
.mh a:hover { color: inherit; opacity: .85; }
.mh p, .mh h1, .mh h2, .mh h3 { margin-top: 0; }
.mh img { max-width: none; }
.mh .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리말 */
.mh-header { position: sticky; top: 0; z-index: 90; background: rgba(8, 9, 13, .86); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid #1d212b; }
.mh-header__in { max-width: 1360px; margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; gap: 28px; }
.mh-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 500; flex: 1; justify-content: flex-end; }
.mh-nav a[aria-current="page"] { color: #8c9bff; }
.mh-cta { background: #ffffff; color: #08090d !important; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.mh-mnav { display: none; margin-left: auto; }
.mh-mnav summary { list-style: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2f3442; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mh-mnav summary::-webkit-details-marker { display: none; }
.mh-mnav[open] .mh-mnav__panel { display: flex; }
.mh-mnav__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 12px 20px 24px; background: #0b0d13; border-bottom: 1px solid #262a35; }
.mh-mnav__panel a { padding: 14px 4px; border-bottom: 1px solid #1d212b; font-size: 17px; font-weight: 700; }

/* 공통 반응형 */
.mh-px { padding-left: 40px; padding-right: 40px; }
.mh-endpad { height: 0; }
.mh-fab-m { display: none; }
.mh-kakao-d { position: fixed; right: 24px; bottom: 96px; z-index: 80; width: 56px; height: 56px; border-radius: 999px; background: #fee500; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.mh-doc { background: #ffffff; color: #1f1b24; border-radius: 28px; overflow: hidden; }
.mh-doc a { color: #1d63c7; }

@media (max-width: 960px) {
  .mh-nav, .mh-header .mh-cta { display: none; }
  .mh-mnav { display: block; }
  .mh-header__in { position: relative; padding: 14px 20px; }
}
@media (max-width: 768px) {
  .mh-px, .mh-header__in { padding-left: 20px !important; padding-right: 20px !important; }
  .mh-h1 { font-size: 44px !important; }
  .mh-h2 { font-size: 32px !important; }
  .mh-evn { font-size: 26px !important; flex-basis: 100% !important; }
  .mh-evimg { width: 100% !important; height: 150px !important; border-radius: 20px !important; }
  .mh-stat { font-size: 40px !important; }
  .mh-heroimg { height: 360px !important; }
  .mh-kakao-d { display: none; }
  .mh-fab-m { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(8, 9, 13, .94); backdrop-filter: blur(12px); border-top: 1px solid #262a35; }
  .mh-endpad { height: 84px; }
  .consult { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .mh-sec { padding-top: 72px !important; padding-bottom: 72px !important; }
}

/* 기존 밝은 테마의 '흰 로고를 검게' 설정 해제 */
.mh img[src*="logo-white"] { filter: none !important; }
@media (max-width: 768px) {
  .mh-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 12px !important; }
  .mh-agrid strong { font-size: 16px !important; }
}

/* 섭외 문의 페이지 (2026-11-26)
   inquiry.css는 명함 칸을 650px로 고정해 두었는데, 리뉴얼 뒤 흰 박스(.mh-doc)가
   오른쪽 안내 칸 때문에 좁아져 입력 칸이 150px대로 찌그러지던 문제 수정 */
.mh-doc { container-type: inline-size; }
@media (min-width: 960px) {
  .mh-doc .inquiry { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 36px; align-items: stretch; }
  .mh-doc .inquiry__aside { min-height: 0; }
}
/* 흰 박스가 좁을 때는 명함 위, 입력 칸 아래로 쌓기 */
@container (max-width: 760px) {
  .mh-doc .inquiry { grid-template-columns: minmax(0, 1fr); }
}
/* '문의 후 진행 과정' 번호(01~04)가 0/2로 줄바꿈되던 문제 */
.mh aside div[style*="display:flex;gap:16px"] > span:first-child { flex: 0 0 auto; min-width: 24px; white-space: nowrap; }
