/* 공통 레이아웃 — 헤더, 모바일 메뉴, 푸터, 플로팅 문의 버튼 */

/* 헤더 */
.site-header { position: relative; z-index: 20; background: var(--ivory); }
.site-header__inner {
  max-width: calc(var(--container) + var(--gutter) * 2); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: block; flex: none; }
.site-logo img { height: 30px; width: auto; }

.gnb { display: flex; align-items: center; gap: 40px; }
.gnb a { color: var(--charcoal); font-size: 16px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.gnb a:hover, .gnb a[aria-current="page"], .gnb .gnb__cta { color: var(--vermilion-600); }
.gnb .gnb__cta:hover { color: var(--vermilion-700); }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; background: transparent; color: var(--black);
  align-items: center; justify-content: center;
}

@media (max-width: 1023px) {
  .gnb { gap: 28px; }
}
@media (max-width: 899px) {
  .gnb { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-logo img { height: 22px; }
}

/* 모바일 메뉴 (전체 화면) */
.mnav {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--ivory);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.mnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
.mnav__top {
  height: var(--header-h); padding: 0 var(--gutter); flex: none;
  display: flex; align-items: center; justify-content: space-between;
}
.mnav__list { padding: 24px var(--gutter) 0; display: flex; flex-direction: column; }
.mnav__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  color: var(--black); font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: -.01em;
}
.mnav__list a[aria-current="page"] { color: var(--vermilion-600); }
.mnav__foot { margin-top: auto; padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; gap: 16px; }
.mnav__foot .btn { justify-content: space-between; }
.mnav__tel { color: var(--gray-700); font-size: 15px; text-decoration: none; }
body.is-locked { overflow: hidden; }

/* 푸터 */
.site-footer { background: var(--charcoal); color: var(--gray-on-dark); }
.site-footer__inner {
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 64px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
}
.site-footer__info { display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.7; font-style: normal; }
.site-footer__info img { height: 28px; width: auto; align-self: flex-start; }
.site-footer__info a { color: inherit; text-decoration: none; }
.site-footer__info a:hover { color: var(--ivory); text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__legal a { color: var(--ivory); font-weight: 600; }
.fnb {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 48px;
  align-content: start; font-size: 15px;
}
.fnb a { color: var(--ivory); text-decoration: none; }
.fnb a:hover { color: var(--vermilion-400); }

@media (max-width: 767px) {
  .site-footer__inner { padding: 40px 20px 104px; gap: 20px; }
  .site-footer__info { font-size: 13px; line-height: 1.6; gap: 20px; }
  .site-footer__info img { height: 22px; }
  .fnb { display: none; }
}

/* 플로팅 도입 문의 */
.float-cta {
  position: fixed; right: 28px; bottom: 28px; z-index: 30;
  height: 56px; padding: 0 22px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--black); color: var(--white); text-decoration: none;
  font-size: 15px; font-weight: 600; box-shadow: 0 8px 24px rgba(22, 27, 29, .3);
  transition: background .3s ease, opacity .3s ease, transform .3s ease;
}
.float-cta::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--vermilion); flex: none; }
.float-cta:hover, .float-cta:focus-visible { background: var(--vermilion); color: var(--white); }
.float-cta:hover::before, .float-cta:focus-visible::before { background: var(--white); }
.float-cta__tel { display: none; }
/* 문의폼이 화면에 보이면 숨긴다 (site.js) */
.float-cta.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

@media (max-width: 767px) {
  .float-cta { left: 20px; right: 20px; bottom: 16px; height: 52px; }
  .float-cta__tel { display: inline; }
}

/* 관리자 미리보기 안내 띠 */
.preview-bar { position: sticky; top: 0; z-index: 40; padding: 10px var(--gutter); background: var(--vermilion-700); color: var(--white); font-size: 14px; font-weight: 600; text-align: center; }
