/* layout.css — 헤더/네비/푸터/플로팅 (메인 시안 기준) */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  width: calc(100% - 40px);
  max-width: var(--container);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 232px;
  height: auto;
  object-fit: contain;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  opacity: 0.88;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--nav-text);
  font-size: 16px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--accent);
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  line-height: 1;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--accent);
  box-shadow: 0 12px 22px rgba(0, 87, 184, 0.24);
}

.site-footer {
  padding: 52px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--deep-navy);
  font-size: 16px;
}

.footer-inner {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.footer-logo {
  width: 232px;
  height: auto;
  object-fit: contain;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-title,
.footer-copy {
  margin: 0;
  line-height: 1.45;
}

.footer-title {
  font-size: 18px;
  font-weight: 400;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 400;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
}

.footer-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.floating-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 16px 36px rgba(9, 38, 66, 0.22);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.floating-top svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
  transition: transform 180ms ease;
}

.floating-top:hover {
  transform: translateY(-4px);
  background: var(--accent);
  box-shadow: 0 20px 44px rgba(0, 87, 184, 0.3);
}

.floating-top:hover svg {
  transform: translateY(-2px);
}

/* ── 모바일 GNB (햄버거) — PC 숨김, ≤980px 노출 ── */
.m-gnb {
  display: none;
  position: relative;
}

.m-gnb-toggle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 11px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.m-gnb-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.m-gnb.open .m-gnb-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.m-gnb.open .m-gnb-toggle span:nth-child(2) {
  opacity: 0;
}

.m-gnb.open .m-gnb-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.m-gnb-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 208px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(9, 38, 66, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(9, 38, 66, 0.16);
}

.m-gnb-menu li {
  margin: 0;
}

.m-gnb-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 9px;
  color: var(--nav-text);
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.m-gnb-menu a:hover {
  background: rgba(0, 87, 184, 0.08);
  color: var(--accent);
}

.m-gnb-cta {
  margin-top: 4px;
  color: #fff !important;
  background: var(--navy);
  text-align: center;
}

.m-gnb-cta:hover {
  background: var(--accent);
  color: #fff !important;
}

@media (max-width: 980px) {
  .m-gnb {
    display: block;
  }
}
