/* pages/home.css — 홈에만 쓰는 배치. 원본 main.css 의 .mvod_box·.msection* 를 옮겼다. */

/* ── 구역 바탕: 원본 순서(흰·보라·흰·보라 …)를 따른다 ── */
.home-section { padding-block: var(--section-y); }
.home-section--festival,
.home-section--speech,
.home-section--sketch,
.home-section--castings { background: var(--color-surface); }
/* 결혼식: 원본 main.css 의 회색(#f5f5f5). 강연(흰)과 붙어 같은 흰 바탕이 이어지지 않게 한다 */
.home-section--wedding { background: var(--color-surface-alt); }
.home-section--system,
.home-section--review { background: var(--color-primary-soft); }

/* ── 첫 화면 배너 + 빠른 문의 ──────────────────────── */
.hero { position: relative; background: #0b0b14; }
.hero__slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: var(--space-2);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transform: translateX(-50%);
}
.hero__dots { display: flex; }
.hero__dot,
.hero__ctrl {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.hero__dot { width: 28px; } /* 점 사이가 붙어 있어 가로 28 + 세로 40 이면 누름 영역이 겹치지 않고 충분하다 */
.hero__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
  transition: background var(--dur), transform var(--dur);
}
.hero__dot.is-active::before { background: #fff; transform: scale(1.15); }
.hero__ctrl .icon { filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5)); }
.hero__icon-play { display: none; }
.hero.is-paused .hero__icon-play { display: block; }
.hero.is-paused .hero__icon-pause { display: none; }

/* 휴대폰·태블릿: 배너 아래에 문의 상자(원본은 배너 위에 겹쳐 글자가 가려졌다) */
.quick-form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6) var(--gutter) var(--space-7);
  background: linear-gradient(160deg, #1d1840, #0b0b14 70%);
}
.quick-form__field { display: grid; gap: var(--space-2); }
.quick-form__label { font-size: var(--text-base); color: #fff; font-weight: var(--weight-medium); }
.quick-form .input { min-height: var(--control-h-md); border-color: transparent; }
/* 원본 단추는 '문의하기' 글자가 박힌 홀로그램 그림이었다. 글자를 HTML 로 두려고 같은 색감을 그라데이션으로 다시 칠했다 */
.quick-form__submit {
  min-height: var(--control-h-lg);
  margin-top: var(--space-2);
  border: 0;
  border-radius: var(--r-sm);
  background:
    radial-gradient(120% 140% at 15% 20%, rgba(255, 214, 236, .9), transparent 45%),
    radial-gradient(90% 120% at 85% 80%, rgba(255, 228, 160, .85), transparent 50%),
    linear-gradient(100deg, #e9a8d4 0%, #8fd3ea 28%, #2f6fdc 50%, #6f55e8 68%, #e7a9de 86%, #f4dca0 100%);
  background-color: var(--color-primary);
  color: #fff;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  text-shadow: 0 1px 4px rgba(20, 10, 60, .65);
  transition: filter var(--dur), transform var(--dur);
}
.quick-form__submit:hover { filter: brightness(1.08) saturate(1.1); }
.quick-form__submit:active { transform: translateY(1px); }

@media (min-width: 600px) {
  .quick-form { grid-template-columns: 1fr 1fr; padding-inline: var(--space-7); }
  .quick-form__field:nth-of-type(3),
  .quick-form__submit { grid-column: 1 / -1; }
}

/* 넓은 화면: 원본처럼 배너 그림의 휴대폰 화면 아래쪽 빈 곳에 겹친다(right 7%, 폭 35%) */
@media (min-width: 960px) {
  /* 첫 화면 안에 문의 단추까지 보이게: 배너 높이를 화면 높이(머리말 제외)로 묶는다.
     그림이 위아래로 조금 잘리므로 휴대폰 위쪽 정보가 남게 위쪽 30% 기준으로 자른다 */
  .hero__slides {
    aspect-ratio: auto;
    height: min(56.25vw, calc(100vh - var(--header-h)));
    height: min(56.25vw, max(520px, calc(100svh - var(--header-h))));
  }
  .hero__slide img { object-position: 50% 30%; }
  /* 점은 왼쪽 아래로(가운데 두면 좁은 PC 에서 문의 상자와 겹친다) */
  .hero__controls { left: 4%; bottom: var(--space-3); transform: none; }
  .quick-form {
    position: absolute;
    right: 7%;
    bottom: 5%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 16px);
    width: 35%;
    padding: clamp(16px, 1.6vw, 28px) clamp(20px, 2.2vw, 40px);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  }
  .quick-form__field { gap: clamp(4px, .5vw, 10px); }
  .quick-form__label { font-size: clamp(15px, 1.1vw, 20px); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
  .quick-form .input { min-height: clamp(40px, 2.6vw, 50px); font-size: var(--text-base); }
  .quick-form__submit { min-height: clamp(46px, 3vw, 60px); margin-top: clamp(4px, .6vw, 12px); }
}

/* ── 누적 섭외 카운터(원본 .msection1 · .mcount_box) ── */
.home-counter { padding-block: var(--section-y); background: var(--color-primary-soft); }
.home-counter__inner { display: grid; gap: var(--space-7); }
.home-counter__lead { text-align: center; }
.home-counter__brand { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--color-primary); letter-spacing: 0; }
.home-counter__label { margin-top: var(--space-4); font-size: var(--text-xl); font-weight: var(--weight-light); color: var(--color-text); }
.home-counter__total { margin-top: var(--space-1); font-size: var(--display-md); font-weight: var(--weight-light); color: var(--color-text); line-height: 1.1; letter-spacing: -.03em; }
.home-counter__total strong { font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }

.home-counter__boxes { display: grid; gap: var(--space-3); }
.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 150px;
  padding: var(--space-5);
  border: 2px solid var(--color-text);
  border-radius: var(--r);
  background: var(--color-surface);
  text-align: center;
  transition: background var(--dur), color var(--dur);
}
.count-box__label { font-size: var(--text-base); font-weight: var(--weight-light); color: var(--color-text); line-height: 1.4; }
.count-box__num { font-size: var(--text-2xl); font-weight: var(--weight-light); color: var(--color-text); line-height: 1; }
.count-box__num strong { font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.count-box:hover { background: var(--color-text); }
.count-box:hover .count-box__label,
.count-box:hover .count-box__num { color: #fff; }

@media (min-width: 600px) {
  .home-counter__boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .home-counter__inner { grid-template-columns: 280px 1fr; align-items: center; gap: var(--space-5); }
  .home-counter__lead { text-align: left; }
  .home-counter__label { margin-top: var(--space-5); font-size: 30px; }
  .home-counter__total { font-size: var(--display-lg); }
  .count-box { min-height: 240px; }
  .count-box__label { font-size: var(--text-lg); }
  .count-box__num { font-size: 35px; }
}

/* ── 갤러리 띠(원본 .msection6 · .cs_area) ─────────── */
.home-gallery { padding-block: var(--section-y); background: var(--color-primary-soft); }
.home-gallery__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); text-align: center; }
.home-gallery__kicker { font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--color-primary); letter-spacing: 0; }
.home-gallery__title { margin-top: var(--space-3); font-size: var(--text-xl); font-weight: var(--weight-medium); color: var(--color-text); line-height: 1.35; }
@media (min-width: 960px) {
  .home-gallery__inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .home-gallery__kicker { font-size: var(--text-md); }
  .home-gallery__title { font-size: var(--text-3xl); }
}

/* ── 고객 섭외 후기 ───────────────────────────────── */
.home-section--review .section-title { margin-bottom: var(--space-4); }
.home-review__note { margin-bottom: var(--space-7); text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); }
.carousel--review .carousel__track { padding-bottom: 12px; }
.carousel--review { --btn-top: 50%; }

/* 배너 위 단추·문의 상자의 포커스는 흰 테두리로(사진 위에서 보이게) */
.hero__controls :focus-visible,
.quick-form__submit:focus-visible { outline-color: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 0, .45); }
