/* ==========================================================================
   AILO Public P04 — 푸른손 (비영리 NGO)
   원형: B 풀블리드 가운데 정렬 — 현장 사진 1장 + 가운데 제목, 겹친 모금 현황(진행 바·후원 버튼),
         사진 카드 4 · 숫자 띠 · 캠페인 진행 바 · 투명성 도넛 · 사진 배경 후원 폼
   타이포: Pretendard + Montserrat(영문 eyebrow·숫자)
   컬러: 딥그린 #1f5a46 1색 + 무채색(명도 단계 #6f9384·#c7d6cf), 어두운 면 #142a22
   ========================================================================== */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #16201c;
  --ailo-muted: #4f5a55;
  --ailo-line: #e1e7e4;
  --ailo-accent: #1f5a46;
  --ailo-accent-ink: #ffffff;
  --ailo-header-h: 84px;

  --p04-dark: #142a22;
  --p04-soft: #f3f6f4;
  --p04-mid: #6f9384;
  --p04-pale: #e3ebe7;
  --p04-gray: #a9b3ae;
  --p04-leaf: #9cc3a9;
  --p04-num: "Montserrat", "Pretendard Variable", Pretendard, sans-serif;
  --p04-sec: clamp(80px, 9vw, 136px);

  --ailo-hero-dim: rgba(10, 22, 17, .5);
  --ailo-overlap: 110px;
  --ailo-overlap-radius: 6px;
  --ailo-hero-btn-radius: 4px;
  --ailo-pcard-radius: 6px;
}

body { font-size: 17px; line-height: 1.75; }
.sec { padding-block: var(--p04-sec); }
.ailo-eyebrow { font-family: var(--p04-num); letter-spacing: .16em; }

/* ===== 헤더 ===== */
.hd__in { height: var(--ailo-header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; flex: none; }
.hd.is-scrolled .logo svg, .hd.is-mega-open .logo svg { color: var(--ailo-accent); }
.gnb { flex: 1; display: flex; justify-content: center; }
@media (max-width: 991.98px) { .gnb.ailo-mega { display: none; } }
.gnb .ailo-mega__link { font-weight: 600; }
.hd__cta { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 4px; background: #fff; color: var(--ailo-accent); font-size: 15px; font-weight: 800; }
.hd.is-scrolled .hd__cta, .hd.is-mega-open .hd__cta, .hd:has(:focus-visible) .hd__cta { background: var(--ailo-accent); color: #fff; }
.mnav { background: #fff; }
.mnav__in { display: flex; flex-direction: column; padding: calc(var(--ailo-header-h) + 16px) var(--ailo-gutter) 40px; }
.mnav__in > a { padding: 16px 0; border-bottom: 1px solid var(--ailo-line); font-size: 21px; font-weight: 700; }
.mnav__in > a.mnav__cta { margin-top: 24px; padding: 16px; border: 0; border-radius: 4px; background: var(--ailo-accent); color: #fff; text-align: center; font-size: 17px; }

/* ===== 히어로 ===== */
.hero .ailo-hero__body { padding-bottom: calc(var(--ailo-overlap) + 120px); }
.hero .ailo-hero__title { max-width: 16em; font-size: clamp(32px, 3.8vw + 12px, 74px); }
.hero__camp { display: inline-block; margin-right: 8px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; letter-spacing: .02em; font-family: var(--ailo-font); text-transform: none; }

/* 모금 현황 */
.goal { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding: clamp(24px, 3vw, 40px) clamp(24px, 3.5vw, 48px); }
.goal__label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--ailo-muted); }
.goal__dday { padding: 2px 10px; background: var(--p04-dark); color: #fff; font-family: var(--p04-num); font-size: 14px; }
.goal__amount { margin: 6px 0 14px; font-size: 18px; font-weight: 700; }
.goal__amount b { font-family: var(--p04-num); font-size: clamp(30px, 2vw + 14px, 44px); font-weight: 800; letter-spacing: -.02em; color: var(--ailo-accent); }
.goal__amount span { font-size: 16px; font-weight: 500; color: var(--ailo-muted); }
.bar { position: relative; height: 10px; background: var(--p04-pale); border-radius: 999px; overflow: hidden; }
.bar--sm { height: 6px; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ailo-accent); border-radius: inherit; transition: width 1.2s var(--ailo-ease); }
.bar.is-in .bar__fill { width: var(--v); }
@media (prefers-reduced-motion: reduce) { .bar__fill { width: var(--v); } }
.goal__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; font-size: 15px; color: var(--ailo-muted); }
.goal__meta b { font-family: var(--p04-num); color: var(--ailo-accent); }
.goal__btns { display: grid; gap: 10px; min-width: 220px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 4px; font-size: 16px; font-weight: 800; }
.btn--green { background: var(--ailo-accent); color: #fff; }
.btn--green:hover { color: #fff; background: color-mix(in srgb, var(--ailo-accent) 82%, #000); }
.btn--line { border: 1px solid #b7c2bd; color: var(--ailo-fg); }
.btn--line:hover { border-color: var(--ailo-accent); color: var(--ailo-accent); }

/* ===== 소개 ===== */
.about__in { max-width: 1080px; text-align: center; }
.about__big { font-size: clamp(26px, 1.8vw + 16px, 44px); font-weight: 800; line-height: 1.45; letter-spacing: -.03em; }
.about__big em { font-style: normal; color: var(--ailo-accent); }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; text-align: left; }
.about__cols > p { font-size: 17.5px; color: #3c4642; }
.about__vals { display: grid; gap: 12px; }
.about__vals li { display: flex; gap: 12px; align-items: baseline; font-size: 16.5px; color: #3c4642; }
.about__vals i { color: var(--ailo-accent); width: 18px; }
.about__vals b { color: var(--ailo-fg); margin-right: 4px; }

/* ===== 하는 일 ===== */
.work { background: var(--p04-soft); }
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.wcard .ailo-pcard__desc { line-height: 1.55; }
.wcard__n { display: block; margin-bottom: 6px; font-family: var(--p04-num); font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.wcard__n small { margin-left: 4px; font-family: var(--ailo-font); font-size: 15px; font-weight: 600; opacity: .85; }

/* ===== 숫자 띠 ===== */
.impact { background: var(--p04-dark); color: #fff; padding-block: clamp(56px, 6vw, 88px); }
.impact__in { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: center; }
.impact__title { font-size: clamp(22px, 1vw + 16px, 30px); font-weight: 800; line-height: 1.4; }
.impact__title b { font-family: var(--p04-num); color: var(--p04-leaf); }
.impact__list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.impact__list > div { padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.impact__list dt { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .75); }
.impact__list dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.impact__list dd span { font-family: var(--p04-num); font-size: clamp(30px, 2vw + 14px, 46px); font-weight: 800; letter-spacing: -.02em; margin-right: 2px; }

/* ===== 캠페인 ===== */
.camp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.camp { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -14px rgba(20, 42, 34, .22); }
.camp__img { position: relative; }
.camp__img img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.camp__d { position: absolute; left: 16px; top: 16px; padding: 4px 10px; background: #fff; color: var(--p04-dark); font-family: var(--p04-num); font-size: 14px; font-weight: 800; border-radius: 3px; }
.camp__body { flex: 1; display: flex; flex-direction: column; padding: 24px 26px 28px; }
.camp__where { font-size: 14.5px; color: var(--ailo-muted); }
.camp__where i { color: var(--ailo-accent); margin-right: 4px; }
.camp h3 { margin: 6px 0 18px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.camp__stat { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 20px; font-size: 14.5px; color: var(--ailo-muted); }
.camp__stat b { font-family: var(--p04-num); font-size: 22px; color: var(--ailo-accent); }
.camp__go { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid var(--ailo-accent); border-radius: 4px; color: var(--ailo-accent); font-size: 15.5px; font-weight: 800; }
.camp__go:hover { background: var(--ailo-accent); color: #fff; }

/* ===== 투명한 사용 ===== */
.report { background: var(--p04-soft); }
.report__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.donut { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.donut svg { width: 100%; height: auto; rotate: 0deg; }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center b { font-family: var(--p04-num); font-size: clamp(40px, 3vw + 16px, 64px); font-weight: 800; color: var(--ailo-accent); line-height: 1; }
.donut__center span { margin-top: 6px; font-size: 16px; color: var(--ailo-muted); }
.report__legend { margin: 28px 0 16px; border-top: 1px solid var(--ailo-fg); }
.report__legend li { display: grid; grid-template-columns: 14px 120px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ailo-line); }
.report__legend i { width: 14px; height: 14px; border-radius: 3px; }
.report__legend b { font-size: 17px; }
.report__legend span { font-size: 16px; color: var(--ailo-muted); }
.report__note { margin-bottom: 20px; font-size: 14px; color: var(--ailo-muted); }

/* ===== 후원 폼 ===== */
.give { position: relative; isolation: isolate; color: #fff; background: var(--p04-dark); }
.give__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.give::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 26, 20, .9) 0%, rgba(12, 26, 20, .72) 100%); }
.give__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.give__eyebrow { color: var(--p04-leaf); }
.give__title { font-size: clamp(30px, 2.4vw + 16px, 54px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.give__impact { margin-top: 24px; font-size: 18px; color: rgba(255, 255, 255, .88); }
.give__impact b { color: #fff; }
.give__tax { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.gform { padding: clamp(24px, 3vw, 40px); border-radius: 6px; background: #fff; color: var(--ailo-fg); }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; padding: 4px; border: 0; border-radius: 6px; background: var(--p04-soft); }
.seg label, .amounts__grid label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; font-size: 15.5px; font-weight: 700; cursor: pointer; border-radius: 4px; }
.seg input, .amounts__grid input { position: absolute; opacity: 0; inset: 0; }
.seg label:has(input:checked) { background: #fff; color: var(--ailo-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.seg label:has(input:focus-visible), .amounts__grid label:has(input:focus-visible) { outline: 2px solid var(--ailo-accent); outline-offset: 2px; }
.amounts { margin: 0 0 16px; padding: 0; border: 0; }
.amounts legend { float: left; width: 100%; margin-bottom: 10px; font-size: 15.5px; font-weight: 700; }
.amounts__grid { clear: both; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amounts__grid label { border: 1px solid #c3ccc8; font-family: var(--p04-num); }
.amounts__grid label.amounts__etc { font-family: var(--ailo-font); }
.amounts__grid label:has(input:checked) { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.amounts__custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.amounts__custom[hidden] { display: none; }
.amounts__custom input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid #c3ccc8; border-radius: 4px; font-size: 16px; }
.gform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gform__f { display: grid; gap: 6px; margin-bottom: 14px; }
.gform__f label { font-size: 15px; font-weight: 700; }
.gform__f small { font-weight: 500; color: var(--ailo-muted); }
.gform__f input { min-height: 48px; padding: 0 14px; border: 1px solid #c3ccc8; border-radius: 4px; font-size: 16px; }
.gform__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ailo-muted); }
.gform__agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ailo-accent); flex: none; }
.gform__agree b { color: var(--ailo-accent); }
.gform__note { margin: 12px 0 18px; padding: 10px 14px; background: var(--p04-soft); border-radius: 4px; font-size: 14px; color: var(--ailo-muted); }
.gform__btn { width: 100%; min-height: 56px; border: 0; border-radius: 4px; background: var(--ailo-accent); color: #fff; font-size: 17px; font-weight: 800; }
.gform__btn:hover { background: color-mix(in srgb, var(--ailo-accent) 82%, #000); }

/* ===== 걸어온 길 ===== */
.hist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; border-top: 1px solid var(--ailo-fg); }
.hist li { padding-top: 24px; position: relative; }
.hist li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ailo-accent); }
.hist b { font-family: var(--p04-num); font-size: 26px; font-weight: 800; color: var(--ailo-accent); }
.hist p { margin-top: 6px; font-size: 16px; color: #3c4642; }

/* ===== 소식 ===== */
.news { padding-top: 0; }
.news__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.news__feature img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 6px; }
.news__fbody { padding-top: 20px; }
.news__feature h3 { margin: 10px 0 8px; font-size: clamp(20px, .6vw + 16px, 26px); font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.news__feature h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news__feature time, .news__list time { font-family: var(--p04-num); font-size: 14px; color: var(--ailo-muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 3px; background: var(--ailo-accent); color: #fff; font-size: 13.5px; font-weight: 700; }
.tag--line { background: var(--p04-soft); color: var(--ailo-accent); }
.news__list { border-top: 1px solid var(--ailo-fg); }
.news__list li { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--ailo-line); }
.news__list a { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== 파트너 ===== */
.partners { padding: 48px 0; background: var(--p04-soft); }
.partners__t { margin-bottom: 12px; font-size: 16px; font-weight: 700; color: var(--ailo-muted); }

/* ===== 오시는 길 ===== */
.visit__in { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit__title { font-size: clamp(26px, 1.2vw + 18px, 40px); }
.visit__dl { margin: 24px 0 0; }
.visit__dl > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ailo-line); font-size: 16px; }
.visit__dl dt { color: var(--ailo-accent); }
.visit__dl dd { margin: 0; color: #3c4642; }
.visit__more { margin-top: 24px; }
.visit__map { border-radius: 6px; overflow: hidden; }
.visit__map svg { width: 100%; height: auto; aspect-ratio: 520 / 300; }

/* ===== 푸터 ===== */
.ft { background: #101714; color: rgba(255, 255, 255, .7); padding: 56px 0 32px; font-size: 15px; }
.ft__logo { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.ft__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 48px; padding: 20px 0 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft__row > p { line-height: 1.85; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.ft__links a { color: rgba(255, 255, 255, .8); }
.ft__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft__links b { color: #fff; }
.ft__copy { padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ===== 반응형 ===== */
@media (max-width: 1199.98px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .impact__in { grid-template-columns: 1fr; }
  .hist { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 64px; --ailo-overlap: 56px; }
  .hd__cta { display: none; }
  .ailo-sitemap-btn { display: none; }
  .hd__in .ailo-burger { margin-left: auto; }
  .goal { grid-template-columns: 1fr; }
  .goal__btns { grid-template-columns: 1fr 1fr; min-width: 0; }
  .about__cols, .report__in, .give__in, .news__in, .visit__in { grid-template-columns: 1fr; }
  .camp-grid { grid-template-columns: 1fr 1fr; }
  .impact__list { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .impact__list > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 575.98px) {
  .logo { font-size: 19px; }
  .goal__btns { grid-template-columns: 1fr; }
  .work__grid, .camp-grid { grid-template-columns: 1fr; }
  .work .ailo-pcard { --ailo-pcard-ratio: 4 / 3.4; }
  .impact__list > div { padding: 0 14px; }
  .amounts__grid { grid-template-columns: repeat(3, 1fr); }
  .gform__row { grid-template-columns: 1fr; gap: 0; }
  .report__legend li { grid-template-columns: 14px 1fr; }
  .report__legend span { grid-column: 2; }
  .hist { grid-template-columns: 1fr 1fr; }
  .news__list li { flex-wrap: wrap; gap: 6px 10px; }
  .news__list a { flex-basis: 100%; order: 2; white-space: normal; }
  .news__list time { margin-left: auto; }
}
