/* =========================================================
   Site footer — 아이뜰관광농원
   기존 .footer(밝은 회색 3단 나열)를 대체하는 새 레이아웃.
   브랜드 그린(#244536)을 바탕으로 페이지 하단을 마무리한다.
   ========================================================= */

.site-footer {
  --sf-bg: #244536;
  --sf-fg: #ffffff;
  --sf-muted: rgba(255, 255, 255, .62);
  --sf-line: rgba(255, 255, 255, .16);
  --sf-max: 102.5rem; /* 본문 컨테이너와 동일 */

  display: block;
  color: var(--sf-fg);
  background: var(--sf-bg);
  padding: 0;
  gap: 0;
  font-family: SUIT;
}

/* 리셋은 :where()로 감싸 특정도 0 — 아래 개별 규칙의 margin 을 덮지 않게 한다 */
.site-footer :where(a) { color: inherit; text-decoration: none; }
.site-footer :where(ul) { list-style: none; margin: 0; padding: 0; }
.site-footer :where(p) { margin: 0; }

.sf-inner {
  width: 100%;
  max-width: var(--sf-max);
  margin-inline: auto;
  padding: 72px 20px 32px;
}

/* ---------- 상단: 브랜드 + 메뉴 ---------- */

.sf-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(140px, 1fr)) minmax(220px, 1.25fr);
  gap: 48px 40px;
  padding-bottom: 56px;
}

/* 브랜드 */
.sf-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.sf-logo em {
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--sf-muted);
}

.sf-tagline {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sf-muted);
}

.sf-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}

.sf-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.sf-btn.is-primary { background: #fff; border-color: #fff; color: var(--sf-bg); }
.sf-btn.is-primary:hover { background: rgba(255, 255, 255, .88); }

.sf-badge {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  line-height: 1.5;
  color: var(--sf-muted);
}

/* 메뉴 열 */
/* 열 제목은 메뉴 링크(14px)보다 확실히 크게 — 그룹 구분이 먼저 읽히도록 */
.sf-col-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--sf-fg);
}

.sf-links li + li { margin-top: 10px; }

.sf-links a {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  transition: color .2s;
}

.sf-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 연락처 */
.sf-contact dl { margin: 0; }
.sf-contact div + div { margin-top: 14px; }

.sf-contact dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--sf-muted);
}

.sf-contact dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.sf-tel {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ---------- 하단: 법적 고지 ---------- */

.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--sf-line);
}

.sf-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  order: 1;
  width: 100%;
}

.sf-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  transition: color .2s;
}

.sf-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sf-legal .is-strong { font-weight: 700; color: #fff; }

.sf-biz,
.sf-copy {
  font-size: 12px;
  line-height: 1.7;
  color: var(--sf-muted);
}

.sf-biz { order: 2; max-width: 78ch; }
.sf-copy { order: 3; margin-left: auto; }
.sf-biz span { white-space: nowrap; }
/* 구분점은 앞 항목에 붙여 줄바꿈 시 다음 줄 머리에 남지 않게 한다 */
.sf-biz span:not(:last-child)::after { content: "·"; margin: 0 8px; color: rgba(255, 255, 255, .35); }

/* ---------- 반응형 ---------- */

/* 태블릿: 브랜드는 한 줄, 메뉴 2열, 연락처는 가로 배치 */
@media (max-width: 1206px) {
  .sf-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
    padding-bottom: 40px;
  }
  .sf-brand,
  .sf-contact { grid-column: 1 / -1; }
  .sf-contact dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 32px;
  }
  .sf-contact div + div { margin-top: 0; }
}

@media (max-width: 768px) {
  .sf-inner { padding: 48px 20px 28px; }
  .sf-logo { font-size: 26px; }
  .sf-col-title { font-size: 17px; margin-bottom: 16px; }
  .sf-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .sf-brand,
  .sf-contact { grid-column: 1 / -1; }
  .sf-contact dl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sf-cta { flex-direction: column; align-items: stretch; }
  .sf-btn { width: 100%; }
  .sf-bottom { gap: 14px; }
  .sf-legal { gap: 8px 16px; }
  .sf-copy { margin-left: 0; }
}
