/* 후원단체 정기·일시후원 솔루션 | 씨엠에스코리아 */

:root {
  --ink: #17362c;
  --muted: #456055;
  --forest: #163f32;
  --mint: #e8f2e9;
  --paper: #fafbf7;
  --line: #d8e4da;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #cc7c22;
  outline-offset: 4px;
}

.wrap {
  width: min(1140px, calc(100% - 48px));
  margin: auto;
}

/* ---------- header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
}

.mark {
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #fff;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  font-size: 21px;
}

nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 0.9rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

/* ---------- typography ---------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.35rem, 5.1vw, 4.35rem);
  letter-spacing: -0.08em;
  line-height: 1.13;
  margin-bottom: 23px;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.065em;
  line-height: 1.22;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.36rem;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 800;
  color: #376a51;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 25px;
}

/* ---------- hero ---------- */

.hero {
  padding: 70px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.hero-promise {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-bottom: 9px;
}

.hero-art {
  position: relative;
  margin: 0;
  background: #d7e9da;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1.19;
  display: grid;
  align-items: end;
  background-image: linear-gradient(180deg, transparent 50%, #10271ebf), url(/static/hero.webp);
  background-size: cover;
  background-position: center;
}

.hero-art figcaption {
  padding: 24px;
  color: #fff;
  font-weight: 750;
  background: linear-gradient(transparent, #163f32);
}

/* ---------- sections ---------- */

section.block {
  padding: 69px 0;
}

.solutions {
  background: #eef4ed;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.card p,
.card li,
.muted {
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
  margin: 12px 0 20px;
}

.tag {
  font-weight: 800;
  font-size: 0.88rem;
  color: #376a51;
  margin-bottom: 8px;
}

/* ---------- 참여 과정 ---------- */

.flow-card {
  display: flex;
  flex-direction: column;
}

.flow-steps {
  padding-left: 20px;
  margin: 12px 0 0;
  color: var(--muted);
}

.flow-steps li + li {
  margin-top: 6px;
}

/* ---------- CMS guide ---------- */

.cms-guide .steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cms-guide .example {
  margin: 27px 0 18px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--mint);
}

.cms-guide .example p {
  margin: 4px 0 0;
  color: var(--muted);
}

@media (max-width: 840px) {
  .cms-guide .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cms-guide .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- case ---------- */

.case {
  background: #edf4ef;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.steps > div {
  border-top: 2px solid #6b9b7e;
  padding-top: 16px;
}

.steps p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 850px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
  padding: 7px 0;
}

.faq details p {
  margin: 7px 0 8px;
  color: var(--muted);
}

/* ---------- contact / footer ---------- */

.contact {
  background: var(--forest);
  color: #fff;
}

.contact p {
  color: #d9e9de;
}

.contact-phone {
  margin: 20px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.site-footer {
  padding: 23px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.skip {
  position: absolute;
  left: 12px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
  background: #fff;
  padding: 8px;
  z-index: 10;
}

/* ---------- responsive ---------- */

@media (max-width: 840px) {
  .hero-grid {
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 34px);
  }

  nav a {
    display: none;
  }

  .nav {
    min-height: 65px;
  }

  .hero {
    padding: 39px 0;
  }

  .hero-grid,
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-art {
    aspect-ratio: 1.4;
  }

  .card {
    padding: 19px;
  }

  section.block {
    padding: 49px 0;
  }

  .steps {
    gap: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
