/* ==========================================================================
   AILO Public P06 — 마을두레 협동조합
   원형: C 분할 대형 사진형 — 흰 고정 헤더·메가메뉴, 글 40% + 마을 실사 60%(화면 끝까지, 사각 크롭) + 사진 위 장터 안내 카드
   타이포: Pretendard + Figtree(영문 eyebrow·숫자)
   컬러: 올리브 #5b6b2f 1색 + 따뜻한 무채색(#f5f5f0 면), 어두운 면 #23281a
   ========================================================================== */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #1d1f18;
  --ailo-muted: #545849;
  --ailo-line: #e4e5dc;
  --ailo-accent: #5b6b2f;
  --ailo-accent-ink: #ffffff;
  --ailo-header-h: 84px;

  --p06-soft: #f5f5f0;
  --p06-tint: #eef0e6;
  --p06-dark: #23281a;
  --p06-num: "Figtree", "Pretendard Variable", Pretendard, sans-serif;
  --p06-sec: clamp(80px, 9vw, 132px);
  --p06-r: 10px;
  --ailo-mega-col: 7.25em;
  --ailo-mega-col-md: 5.75em;
}

body { font-size: 17px; line-height: 1.75; }
.sec { padding-block: var(--p06-sec); }
.ailo-eyebrow { font-family: var(--p06-num); letter-spacing: .14em; }
.head-note { max-width: 28em; font-size: 16.5px; color: var(--ailo-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 700; transition: background-color .2s, color .2s, border-color .2s; }
.btn--olive { border: 0; background: var(--ailo-accent); color: #fff; }
.btn--olive:hover { color: #fff; background: color-mix(in srgb, var(--ailo-accent) 82%, #000); }
.btn--line { border: 1px solid #b9bcad; color: var(--ailo-fg); }
.btn--line:hover { border-color: var(--ailo-accent); color: var(--ailo-accent); }

/* ===== 헤더 (흰 배경 고정) ===== */
.hd { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--ailo-line); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.hd__in { height: var(--ailo-header-h); display: flex; align-items: center; gap: 20px; }
.hd__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ailo-accent); flex: none; }
.hd__logo span { display: flex; align-items: baseline; gap: 6px; color: var(--ailo-fg); }
.hd__logo b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.hd__logo small { font-size: 15px; font-weight: 600; color: var(--ailo-muted); }
.hd__nav { flex: 1; display: flex; justify-content: center; }
@media (max-width: 991.98px) { .hd__nav.ailo-mega { display: none; } }
.hd__cta { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-size: 15px; font-weight: 700; }
.hd__cta:hover { color: #fff; background: color-mix(in srgb, var(--ailo-accent) 82%, #000); }
.mnav { background: #fff; }
.mnav__in { display: flex; flex-direction: column; padding: calc(var(--ailo-header-h) + 16px) var(--ailo-gutter) 40px; }
.mnav__note { margin-bottom: 8px; font-size: 16px; color: var(--ailo-muted); }
.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: 999px; background: var(--ailo-accent); color: #fff; text-align: center; font-size: 17px; }

/* ===== 히어로 (분할) ===== */
.hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); min-height: clamp(580px, calc(100svh - var(--ailo-header-h)), 860px); background: var(--p06-soft); }
.hero__copy { display: flex; align-items: center; justify-content: flex-end; }
.hero__copy-in { width: 100%; max-width: calc(var(--ailo-max) * .4); padding: 64px clamp(28px, 4vw, 64px) 64px var(--ailo-gutter); }
.hero__title { font-size: clamp(34px, 3vw + 14px, 66px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; word-break: keep-all; }
.hero__lead { margin-top: 24px; font-size: 18px; color: #42463a; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 32px; font-size: 15px; font-weight: 600; color: var(--ailo-accent); }
.hero__photo { position: relative; margin: 0; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; left: clamp(20px, 3vw, 48px); bottom: clamp(20px, 3vw, 48px); display: grid; gap: 2px; max-width: 320px; padding: 20px 24px; border-radius: var(--p06-r); background: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .3); }
.hero__card-tag { font-size: 14px; font-weight: 700; color: var(--ailo-accent); }
.hero__card b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hero__card span:last-child { font-size: 15px; color: var(--ailo-muted); }

/* ===== 약속 ===== */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise__item { padding: 36px 32px; border-radius: var(--p06-r); background: var(--p06-soft); }
.promise__no { font-family: var(--p06-num); font-size: 15px; font-weight: 800; color: var(--ailo-accent); }
.promise__item h3 { margin: 12px 0 8px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.promise__item p { font-size: 16.5px; color: var(--ailo-muted); }

/* ===== 사업 ===== */
.biz { background: var(--p06-tint); }
.biz__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz__item { display: flex; gap: 18px; padding: 28px; border-radius: var(--p06-r); background: #fff; }
.biz__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--p06-tint); color: var(--ailo-accent); font-size: 20px; }
.biz__item h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.biz__item p { font-size: 16px; color: var(--ailo-muted); }
.biz__meta { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--ailo-accent); }

/* ===== 숫자 띠 ===== */
.nums { background: var(--p06-dark); color: #fff; padding-block: clamp(52px, 5vw, 80px); }
.nums__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.nums__grid > div { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.nums__grid > div:first-child { border-left: 0; padding-left: 0; }
.nums__grid dt { font-size: 15.5px; font-weight: 500; color: rgba(255, 255, 255, .75); }
.nums__grid dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 4px; }
.nums__grid dd span { font-family: var(--p06-num); font-size: clamp(34px, 2.4vw + 14px, 54px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nums__grid dd small { font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, .85); }

/* ===== 참여 안내 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps__item { padding: 28px 26px; border-top: 1px solid var(--ailo-fg); }
.steps__no { font-family: var(--p06-num); font-size: 28px; font-weight: 800; color: var(--ailo-accent); }
.steps__item h3 { margin: 8px 0 6px; font-size: 20px; font-weight: 800; }
.steps__item p { font-size: 16px; color: var(--ailo-muted); }
.join__grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; margin-top: 56px; align-items: stretch; }
.join__photo { margin: 0; }
.join__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--p06-r); }
.join__types, .calc { padding: 32px 30px; border-radius: var(--p06-r); background: var(--p06-soft); }
.sub-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.join__types li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--ailo-line); }
.join__types b { font-size: 17px; }
.join__types span { font-size: 15.5px; color: var(--ailo-muted); }
.calc label { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; }
.calc output { font-family: var(--p06-num); color: var(--ailo-accent); }
.calc input[type=range] { width: 100%; margin: 14px 0; accent-color: var(--ailo-accent); }
.calc__sum { font-size: 16px; color: var(--ailo-muted); }
.calc__sum strong { display: block; font-family: var(--p06-num); font-size: 34px; font-weight: 800; color: var(--ailo-fg); }
.calc__perk { margin: 16px 0; display: grid; gap: 8px; font-size: 15.5px; }
.calc__perk i { color: var(--ailo-accent); margin-right: 6px; }
.calc__fine { font-size: 14px; color: var(--ailo-muted); }

/* ===== 장터 ===== */
.market { background: var(--p06-soft); }
.market__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product { margin: 0; border-radius: var(--p06-r); overflow: hidden; background: #fff; }
.product img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; transition: transform .5s var(--ailo-ease); }
.product:hover img { transform: scale(1.04); }
.product figcaption { display: grid; gap: 2px; padding: 20px 22px 24px; }
.product b { font-size: 18px; font-weight: 800; }
.product span { font-size: 15px; color: var(--ailo-muted); }
.product em { margin-top: 8px; font-style: normal; font-family: var(--p06-num); font-size: 20px; font-weight: 800; color: var(--ailo-accent); }

/* ===== 게시판 ===== */
.news__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ailo-postlist__subject { font-size: 17px; }
.news__more { margin-top: 20px; }

/* ===== 연혁 ===== */
.history { padding-top: 0; }
.hist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.hist li { padding: 24px 20px; border-radius: var(--p06-r); background: var(--p06-soft); }
.hist__y { font-family: var(--p06-num); font-size: 24px; font-weight: 800; color: var(--ailo-accent); }
.hist p { margin-top: 6px; font-size: 15.5px; color: #42463a; }

/* ===== 이웃 ===== */
.friends { padding: 44px 0; border-block: 1px solid var(--ailo-line); }
.friends__title { margin-bottom: 10px; font-size: 16px; font-weight: 700; color: var(--ailo-muted); }

/* ===== 오시는 길 ===== */
.map__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.map__art { border-radius: var(--p06-r); overflow: hidden; }
.map__art svg { width: 100%; height: auto; aspect-ratio: 520 / 360; }
.m-label { fill: #23281a; font-size: 14px; font-weight: 800; }
.map__title { font-size: clamp(26px, 1.2vw + 18px, 40px); }
.map__info dl { margin: 24px 0 0; border-top: 1px solid var(--ailo-fg); }
.map__info dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ailo-line); font-size: 16px; }
.map__info dt { font-weight: 700; }
.map__info dt i { width: 18px; color: var(--ailo-accent); }
.map__info dd { margin: 0; color: #42463a; }
.map__note { margin-top: 16px; font-size: 15px; color: var(--ailo-muted); }

/* ===== 문의 ===== */
.contact { background: var(--p06-dark); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__eyebrow { color: #c3cc9f; }
.contact__lead { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, .78); }
.cform { padding: clamp(24px, 3vw, 40px); border-radius: var(--p06-r); background: #fff; color: var(--ailo-fg); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { display: grid; gap: 6px; margin-bottom: 14px; }
.f-field span { font-size: 15px; font-weight: 700; }
.f-field input, .f-field textarea { min-height: 50px; padding: 12px 14px; border: 1px solid #c6c9b9; border-radius: 6px; font-size: 16px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.f-chips legend { float: left; width: 100%; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.f-chips legend small { font-weight: 500; color: var(--ailo-muted); }
.f-chips label { position: relative; cursor: pointer; }
.f-chips input { position: absolute; inset: 0; opacity: 0; }
.f-chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid #c6c9b9; border-radius: 999px; font-size: 15px; font-weight: 600; }
.f-chips input:checked + span { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.f-chips input:focus-visible + span { outline: 2px solid var(--ailo-accent); outline-offset: 2px; }
.f-agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: 14.5px; color: var(--ailo-muted); }
.f-agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ailo-accent); flex: none; }

/* ===== 푸터 ===== */
.ft { background: #15180f; color: rgba(255, 255, 255, .72); padding: 56px 0 36px; font-size: 15px; }
.ft__in { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; }
.ft__logo { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.ft__say { margin-top: 6px; color: rgba(255, 255, 255, .6); }
.ft__info p { line-height: 1.85; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 !important; }
.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 { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ===== 반응형 ===== */
@media (max-width: 1279.98px) { .hd__cta { display: none; } }
@media (max-width: 1199.98px) {
  .biz__list { grid-template-columns: repeat(2, 1fr); }
  .market__row { grid-template-columns: repeat(2, 1fr); }
  .hist { grid-template-columns: repeat(3, 1fr); }
  .join__grid { grid-template-columns: 1fr 1fr; }
  .join__photo { grid-column: 1 / -1; }
  .join__photo img { min-height: 0; aspect-ratio: 16 / 7; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 64px; }
  .ailo-sitemap-btn { display: none; }
  .hd__in .ailo-burger { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy-in { max-width: none; padding: 48px var(--ailo-gutter); }
  .hero__photo { aspect-ratio: 4 / 3.4; }
  .promise, .steps { grid-template-columns: 1fr 1fr; }
  .nums__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .nums__grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .news__grid, .map__grid, .contact__grid, .ft__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .hd__logo b { font-size: 19px; }
  .hero__card { right: 16px; left: 16px; bottom: 16px; max-width: none; padding: 16px 18px; }
  .promise, .steps, .biz__list, .join__grid { grid-template-columns: 1fr; }
  .market__row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product figcaption { padding: 14px; }
  .product b { font-size: 16px; }
  .nums__grid > div { padding: 0 14px; }
  .nums__grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hist { grid-template-columns: 1fr 1fr; gap: 12px; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .map__info dl > div { grid-template-columns: 1fr; gap: 2px; }
  .ailo-postlist a { flex-wrap: wrap; gap: 2px 12px; }
  .ailo-postlist__subject { flex-basis: 100%; order: 2; white-space: normal; }
  .ailo-postlist__date { margin-left: auto; }
}
