@charset "utf-8";
/* ============================================================
   RAM KOREA — layout.css
   헤더(GNB) / 모바일 메뉴 / 서브 비주얼 / 푸터
   ============================================================ */

/* ---------- 1. 헤더 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(28, 36, 48, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 0.3s var(--ease), height 0.3s var(--ease);
}
/* 메인 히어로 위에서는 투명 */
.site-header.is-transparent {
  background: linear-gradient(180deg, rgba(19, 26, 35, 0.55) 0%, rgba(19, 26, 35, 0) 100%);
  border-bottom-color: transparent;
}
.site-header.is-scrolled {
  background: rgba(28, 36, 48, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 로고 */
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}
.logo__name em { font-style: normal; color: var(--red-400); }
.logo__sub {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

/* GNB */
.gnb { display: flex; height: 100%; }
.gnb__item { position: relative; }
.gnb__link {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}
.gnb__link::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 0;
  height: 3px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.gnb__item:hover .gnb__link,
.gnb__item:focus-within .gnb__link,
.gnb__item.is-active .gnb__link { color: var(--white); }
.gnb__item:hover .gnb__link::after,
.gnb__item:focus-within .gnb__link::after,
.gnb__item.is-active .gnb__link::after { transform: scaleX(1); }

/* 2depth 드롭다운 */
.gnb__sub {
  position: absolute;
  top: var(--header-h);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 190px;
  padding: 10px 0;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.gnb__item:hover .gnb__sub,
.gnb__item:focus-within .gnb__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.gnb__sub a {
  display: block;
  padding: 9px 22px;
  font-size: 15px;
  color: var(--gray-800);
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.gnb__sub a:hover,
.gnb__sub a.is-current { background: var(--gray-50); color: var(--red-500); font-weight: 600; }

/* 헤더 우측 전화 */
.header__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 100px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header__tel:hover { background: var(--red-500); border-color: var(--red-500); }
.header__tel svg { width: 15px; height: 15px; flex: none; }

/* 햄버거 */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex: none;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 2. 모바일 메뉴 ---------- */
.mobile-nav {
  position: fixed;
  inset: var(--header-h-mobile) 0 0 0;
  z-index: 99;
  background: var(--navy-800);
  padding: 8px 0 40px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.34s var(--ease), visibility 0.34s;
}
.mobile-nav.is-open { transform: none; visibility: visible; }

.mobile-nav__item { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}
.mobile-nav__head svg {
  width: 14px; height: 14px;
  flex: none;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s var(--ease);
}
.mobile-nav__head[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--red-400); }

.mobile-nav__sub {
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  transition: max-height 0.32s var(--ease);
}
.mobile-nav__sub a {
  display: block;
  padding: 13px 20px 13px 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}
.mobile-nav__sub a::before { content: "– "; color: var(--red-400); }
.mobile-nav__sub a:hover, .mobile-nav__sub a.is-current { color: var(--white); }

.mobile-nav__foot { padding: 28px 20px 0; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.mobile-nav__foot .tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

body.is-nav-open { overflow: hidden; }

@media (max-width: 1080px) {
  :root { --header-h: 64px; }
  .gnb, .header__tel { display: none; }
  .nav-toggle { display: block; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__name { font-size: 18px; }
}

/* ---------- 3. 서브페이지 상단 비주얼 ---------- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 48px;
  background: var(--navy-800) center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 26, 35, 0.88) 0%, rgba(19, 26, 35, 0.55) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(30px, 5vw, 48px); }
.page-hero__desc { margin-top: 14px; font-size: clamp(15px, 1.7vw, 18px); color: rgba(255, 255, 255, 0.75); }

@media (max-width: 680px) { .page-hero { min-height: 240px; } }

/* 브레드크럼 */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--white); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "\203A"; color: var(--gray-400); }
.breadcrumb [aria-current="page"] { color: var(--navy-800); font-weight: 600; }

/* ---------- 4. 푸터 ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.85;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: clamp(48px, 6vw, 72px) 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer__brand .logo { margin-bottom: 20px; }
.footer__info dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.footer__info dt { color: rgba(255, 255, 255, 0.42); }
.footer__info dd { color: rgba(255, 255, 255, 0.78); }

.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__links h3 { margin-bottom: 12px; color: var(--white); font-size: 15px; }
.footer__links a { display: block; padding: 3px 0; transition: color 0.18s var(--ease); }
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}
.footer__policy { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__policy a:hover { color: var(--white); }
.footer__policy .is-strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer__links { grid-template-columns: 1fr; }
  .footer__info dl { grid-template-columns: 1fr; }
  .footer__info dt { margin-top: 8px; }
}

/* 맨 위로 */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-500); }
.to-top svg { width: 18px; height: 18px; }
