/* =========================================================
   동행 365 — Base / Design System
   화이트 + 블루(#2f6e8f) + 앰버(#e8a23d) · Pretendard
   ========================================================= */

:root {
  /* color */
  --bg: #ffffff;
  --surface: #f4f7f8;
  --surface-2: #eef3f4;
  --ink: #16252c;
  --ink-soft: #54666e;
  --ink-faint: #8a999f;
  --line: #e3eaec;
  --line-soft: #eef2f3;

  --primary: #2f6e8f;
  --primary-deep: #21536e;
  --primary-soft: #eaf2f6;
  --accent: #e8a23d;
  --accent-deep: #cf8721;
  --accent-soft: #fcf0db;

  --white: #ffffff;

  /* type */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* shadow */
  --sh-sm: 0 1px 2px rgba(22, 37, 44, 0.05), 0 2px 8px rgba(22, 37, 44, 0.04);
  --sh-md: 0 6px 18px rgba(22, 37, 44, 0.08), 0 2px 6px rgba(22, 37, 44, 0.04);
  --sh-lg: 0 18px 50px rgba(22, 37, 44, 0.14);

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 68px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--primary);
  --fg-btn: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--bg-btn);
  color: var(--fg-btn);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn:active {
  transform: translateY(0);
}
.btn--accent {
  --bg-btn: var(--accent);
  --fg-btn: #3a2a08;
}
.btn--ghost {
  --bg-btn: transparent;
  --fg-btn: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn--light {
  --bg-btn: #fff;
  --fg-btn: var(--primary-deep);
  box-shadow: var(--sh-sm);
}

/* ---------- pills / badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.badge--trail {
  background: #e7f1ec;
  color: #2f6e54;
}
.badge--picnic {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.badge--plog {
  background: #e9eef7;
  color: #3a5aa0;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: var(--sh-sm);
}
.brand__mark svg {
  width: 22px;
  height: 22px;
}
.brand small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover,
.nav a.is-active {
  color: var(--primary-deep);
  background: var(--primary-soft);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: clamp(60px, 9vw, 110px);
  padding-block: clamp(40px, 6vw, 64px) 32px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.site-footer__top p {
  color: var(--ink-soft);
  max-width: 38ch;
  margin-top: 14px;
  font-size: 0.94rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.foot-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.foot-links a:hover {
  color: var(--primary);
}
.site-footer__bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- responsive header ---------- */
@media (max-width: 760px) {
  .nav {
    display: none;
  }
}
@media (max-width: 460px) {
  .brand small {
    display: none;
  }
  .header-cta .btn span {
    display: none;
  }
  .header-cta .btn {
    padding: 11px 13px;
  }
}
