@charset "UTF-8";
/* ==========================================================================
   home.css — 홈(index.html) 전용 (DESIGN_v4 §3 히어로 · §5 섹션 스케치 · B1b 상향)
   섹션: 1 히어로 · 2 의도 버튼 · 3 한 번의 예배 · 4 작은 모임 · 5 동네+숫자 띠 · 6 돌봄 · 7 요즘
   hex 리터럴 없음. rgba 오버레이 값은 tokens.css 와 동일(22,21,19).
   B1b(2026-10-23): A 풀뷰포트 히어로·켄번즈 루프·스크롤 큐 · C 예배 사진 대형화(16:10 2단 · 캡션 스크림) · D 벤토 · F 모션
   ========================================================================== */

/* ---------- 1. 히어로 (풀뷰포트) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;                   /* B1b-A: 모바일 풀뷰포트 */
  margin-top: calc(var(--header-h) * -1); /* 투명 헤더가 사진 위에 얹힘 */
  padding-top: var(--header-h);
  color: var(--text-inverse);
  background-color: var(--c-dark);       /* 사진 로드 실패 시 다크 배경 (screens §0-2) */
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;             /* 사진별 지정 — 현재 임시 히어로 기준 */
  transform-origin: 50% 60%;
  animation: kenburns var(--dur-kenburns) ease-in-out infinite alternate; /* B1b-A: 12~16s 루프 */
}
/* 사진 전체 오버레이 — 아래로 갈수록 어둡게 (DESIGN_v4 §3 오버레이 행 · check_v4 C10 이 읽는 첫 hero 그라데이션) */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22, 21, 19, 0.10) 0%, rgba(22, 21, 19, 0.66) 100%); /* gt4-F10: 사진 위쪽은 거의 원본 밝기(.32→.10) · 글자 뒤는 .hero-text::before 국소 스크림 · 헤더 뒤는 헤더 자체 스크림 */
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; flex: 0 0 auto; padding-bottom: calc(var(--sp-8) + var(--sp-4)); } /* 폭은 .container 규칙(거터) 그대로 · 하단은 스크롤 큐 자리 */
/* 글자 블록 뒤 스크림(필수 · DESIGN_v4 §3) — 박스보다 사방 24px 넓게 */
.hero-text {
  position: relative;
  max-width: 44rem;   /* 1200: h1 2줄("일요일 11시, 함께 / 예배합니다") · 390: 거터 안 100% */
  padding: var(--sp-5) 0 0;
}
.hero-text::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(22, 21, 19, 0.45) 0%, rgba(22, 21, 19, 0.60) 100%);
  filter: blur(14px);
}
.hero-title {
  font-size: var(--fs-hero);            /* B1b-A: clamp(2.6rem, 6vw, 5.2rem) */
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-inverse);
  margin-bottom: var(--sp-4);
}
.hero-sub {
  font-family: var(--font-serif);
  font-weight: var(--fw-quote);   /* gt4-F8 */
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-inverse);
  margin-bottom: var(--sp-6);
}
.hero-cta { gap: var(--sp-3); }
.hero-cta .btn { min-height: 56px; font-size: 1.05rem; }
.hero .btn.accent { color: var(--c-ink); background-color: var(--c-paper); } /* F1 major 2 */
.hero-video-btn {
  position: absolute; right: var(--gutter); bottom: var(--sp-4); z-index: 2;
  display: none; /* 영상이 JS 로 삽입될 때만 JS 가 표시 (hero.videoEnabled) */
}
/* B1b-A: 하단 스크롤 큐(작은 화살표 애니) */
.hero-cue {
  position: absolute; left: 50%; bottom: var(--sp-4); z-index: 1;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--sp-1);
  color: var(--text-inverse);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-label);
  opacity: 0.85;
  min-height: var(--touch);
  justify-content: flex-end;
}
.hero-cue svg { width: 22px; height: 22px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}
@media (min-width: 768px) {
  .hero { min-height: 100svh; }          /* gt4-D1a: 데스크톱도 꽉 찬 화면(오너 'crossroads 처럼 화면을 꽉 채운') · B1b 92vh 대체 */
  .hero-inner { padding-bottom: calc(var(--sp-9) + var(--sp-2)); }
  .hero-text { padding-top: 0; }
  .hero-cta .btn { min-height: 60px; padding-inline: var(--sp-6); }
}

/* ---------- 2. 의도 버튼 (IntentButtons) ---------- */
.intent-list { display: grid; gap: var(--sp-3); }
.intent-list .btn {
  justify-content: space-between;
  min-height: 56px;
  padding-inline: var(--sp-5);
  text-align: left;
  font-size: 1.05rem;
}
.intent-list .btn:hover { border-color: var(--brand); color: var(--brand); }
@media (min-width: 768px) {
  .intent-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .intent-list { grid-template-columns: repeat(5, 1fr); }
  .intent-list .btn { flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5); min-height: 120px; border-radius: var(--radius-card); border-top-right-radius: var(--radius-motif); }
}

/* ---------- 3. 한 번의 예배 (SceneTriptych · B1b-C: 화면 폭 전체 2단 16:10 · 캡션은 사진 위 하단 스크림) ---------- */
.scenes {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}
.scene { position: relative; margin: 0; }
.scene .photo { aspect-ratio: 16 / 10; }
.scene figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-7) var(--sp-5) var(--sp-5);
  color: var(--text-inverse);
  font-size: var(--fs-lead);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(22, 21, 19, 0.6);
  background: linear-gradient(180deg, rgba(22, 21, 19, 0) 0%, rgba(22, 21, 19, 0.72) 100%);
  border-bottom-left-radius: var(--radius-card);
  border-bottom-right-radius: var(--radius-card);
}
@media (min-width: 768px) {
  .scenes { gap: var(--sp-5); }
  .scene .photo { aspect-ratio: auto; height: 420px; }   /* 비율+min-height 동시 지정은 폭이 늘어 가로 넘침 — 높이 고정 */
}
@media (min-width: 1200px) {
  .scene .photo { height: 560px; }       /* B1b-C: 데스크톱 560px */
  .scene figcaption { padding: var(--sp-8) var(--sp-6) var(--sp-6); font-size: 1.35rem; }
  .scenes[data-count="3"] > .scene:nth-child(2) { transform: scale(1.05); transform-origin: bottom center; }
}

/* ---------- 4. 작은 모임 (B1b-D: 사진 주도 카드 + 첫 카드 2칸 벤토) ---------- */
.groups-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6); }
@media (min-width: 1024px) {
  .groups-head { grid-template-columns: 1fr 1fr; align-items: end; }
}
.groups-actions { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.groups-actions .btn-group { justify-content: flex-start; }
@media (min-width: 768px) {
  .groups-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .groups-actions .btn-group { justify-content: flex-end; }
}

/* ---------- 5. 동네에서 함께하는 일 + 숫자 띠 ---------- */
.village-more { margin-top: var(--sp-6); }
.number-section { margin-top: var(--sp-7); padding-block: var(--sp-8); }

/* ---------- 7. 요즘 좋은나무교회 ---------- */
.live-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 1200px) {
  .live-grid { grid-template-columns: 3fr 2fr; }
}
.live-grid h3 { margin-bottom: var(--sp-3); }
.live-more { margin-top: var(--sp-4); }
.live-more + .section-cta { margin-top: var(--sp-8); }   /* gt4-F7 gemini m2: '설교·영상 게시판 보기' 버튼과 '교회 소식' 소제목 사이 섹션 간격 */

/* gt4-F22 (오너 2026-10-24): 홈 '하나님께 가까이 나아가는 주일 예배' 인셋 배너만 — 사진을 아래쪽으로(상단을 자르고 하단을 더 보이게 · 아이들 얼굴 노출 오너 허용 · 이 배너 한정) */
.inset-banner[aria-labelledby="worship-title"] > img { object-position: 50% 75%; }
