/* ═══════════════════════════════════════════
   tail.css  —  FOOTER + TOP버튼 + 공통 유틸
   위치: theme/foraen/css/tail.css
═══════════════════════════════════════════ */

/* ── FOOTER ── */
#footer {
  background: var(--navy);
  padding: 80px 72px 0;
}

/* 상단 그리드 */
.ft-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(168, 197, 218, 0.07);
  margin-bottom: 32px;
}

/* 브랜드 컬럼 */
.ft-brand {}

.ft-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ice);
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 16px;
  transition: color 0.3s;
}
.ft-logo:hover { color: var(--ice-l); }

.ft-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--silver);
  line-height: 1.9;
  font-weight: 300;
  max-width: 280px;
}

/* SNS */
.ft-sns {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.ft-sns-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(168, 197, 218, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168, 197, 218, 0.5);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
.ft-sns-btn:hover {
  border-color: var(--ice);
  color: var(--ice);
  background: rgba(168, 197, 218, 0.08);
}

/* 링크 컬럼 공통 */
.ft-col {}

.ft-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 22px;
  font-weight: 500;
}

.ft-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-col ul li a,
.ft-col ul li span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--silver);
  font-weight: 300;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
}
.ft-col ul li a:hover { color: var(--ice-l); }

/* 하단 사업자 정보 */
.ft-bottom {
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-biz {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(143, 163, 177, 0.45);
  font-weight: 300;
  line-height: 1.7;
}

.ft-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(143, 163, 177, 0.3);
  font-weight: 300;
}
.ft-copy b { font-weight: 400; }

/* ── TOP 버튼 ── */
#top_btn {
  position: fixed;
  right: 28px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  background: var(--navy-m);
  border: 1px solid rgba(168, 197, 218, 0.2);
  color: var(--ice);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
}
#top_btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#top_btn:hover {
  background: var(--blue);
  border-color: var(--ice);
  color: var(--white);
}

/* ═══════════════════════════════════════════
   공통 유틸리티 (tail.css 에서 전역 적용)
═══════════════════════════════════════════ */

/* 폼 공통 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ice-l);
  background: var(--white);
  color: var(--navy);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 120px; }

/* 버튼 공통 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}
.btn-primary  { background: var(--navy);   color: var(--ice-l); }
.btn-primary:hover  { background: var(--blue); }
.btn-secondary { background: var(--ice-l); color: var(--navy);  }
.btn-secondary:hover { background: var(--ice); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-w {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-w:hover { border-color: var(--ice); color: var(--ice); }

/* 섹션 공통 */
.section-head { margin-bottom: 56px; }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 300;
}
.section-head h2 em { font-style: italic; color: var(--blue); }

/* 배지 / 태그 */
.badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(168,197,218,0.3);
  color: var(--ice);
}

/* 별점 */
.star.full  { color: var(--accent); }
.star.half  { color: var(--accent); opacity: 0.5; }
.star.empty { color: rgba(143, 163, 177, 0.3); }

/* 스크롤 리빌 */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.rv.on { opacity: 1; transform: translateY(0); }
.rv-l {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.rv-l.on { opacity: 1; transform: translateX(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* 그누보드 페이지네이션 재정의 */
.pg_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 48px 0 0;
  flex-wrap: wrap;
}
.pg_wrap a,
.pg_wrap strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--silver);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s;
}
.pg_wrap a:hover {
  border-color: var(--ice-l);
  color: var(--navy);
}
.pg_wrap strong {
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
}
.pg_wrap .pg_prev,
.pg_wrap .pg_next,
.pg_wrap .pg_first,
.pg_wrap .pg_last {
  font-size: 12px;
  color: var(--accent);
  border-color: transparent;
}

/* 반응형 */
@media (max-width: 960px) {
  #footer { padding: 60px 24px 0; }
  .ft-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .ft-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  #footer { padding: 48px 20px 0; }
  .ft-inner { grid-template-columns: 1fr; gap: 28px; }
  .ft-brand { grid-column: auto; }
  .ft-bottom { gap: 6px; }
  #top_btn { right: 16px; bottom: 20px; }
}