/* 누아송필름 홈페이지 공용 스타일 (index.html, quote.html) */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #111111;
  --ink-soft: #6b6b6b;
  --line: #e6e6e6;
  --accent: #c4372d;
  --kakao: #fee500;
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 상단 메뉴 */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { font-weight: 700; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 18px; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
/* 지금 보고 있는 구역(메인은 스크롤 위치, 견적서는 페이지)을 메뉴에 표시 (2026-10-08 사용자) */
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--ink); }

/* 첫 화면 */
.hero { text-align: center; padding: 56px 0 64px; }
.hero-logo {
  width: 260px; height: 110px; margin: 0 auto 8px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
/* 로고 사진의 흰 바탕을 베이지에 녹이고 글자 부분만 보이게 자른다 */
.hero-logo img { width: 420px; height: 420px; object-fit: cover; mix-blend-mode: multiply; }
.hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero .area { font-size: 17px; color: var(--ink-soft); margin-bottom: 26px; }
.hero .tagline { font-size: 17px; margin-bottom: 28px; }
.btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600;
}
.btn-kakao { background: var(--kakao); color: #191600; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: #fff; border: 1px solid #111; box-shadow: var(--shadow); }

section { padding: 56px 0; }
.sec-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.sec-sub { text-align: center; color: var(--ink-soft); margin-bottom: 32px; }

/* 영상 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.video { cursor: pointer; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center;
}
.play::after {
  content: ""; margin-left: 4px;
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.video-name { padding: 12px 16px; font-weight: 600; }
.video-name span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.sub-head { font-size: 18px; font-weight: 700; margin: 40px 0 16px; }
.more { text-align: center; margin-top: 28px; }

/* 가격 */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
.pkg-name { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.list-price { color: var(--ink-soft); }
.list-price s { margin-left: 6px; }
.max-price { font-size: 15px; font-weight: 600; margin-top: 2px; }
.max-price b { display: block; font-size: 34px; color: var(--accent); line-height: 1.3; }
.includes { list-style: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.includes li { padding: 3px 0; }
.includes li.minor { color: var(--ink-soft); font-size: 15px; }
.tag { font-size: 14px; background: #fff3a8; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.price-note { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.rows { display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
}
.row-name { font-weight: 600; }
.row-name small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.row-name em { font-style: normal; font-size: 13px; background: #fff3a8; padding: 1px 6px; border-radius: 4px; margin-left: 4px; white-space: nowrap; }
.row-val { text-align: right; white-space: nowrap; }
.row-val small { display: block; font-size: 12px; color: var(--accent); }
.row-val b { font-size: 18px; color: var(--accent); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 40px; }
.note { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 24px; }

/* 견적 계산 */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; align-items: start; }
.q-group { margin-bottom: 28px; }
.q-label { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.q-pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-pkg { position: relative; cursor: pointer; }
.q-pkg input { position: absolute; opacity: 0; }
.q-pkg span {
  display: block; text-align: center; padding: 14px 8px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow); border: 2px solid transparent; font-weight: 600;
}
.q-pkg span small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.q-pkg input:checked + span { border-color: var(--ink); }
.q-pkg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 0;
  background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: inherit; font-size: 16px;
}
label.row { cursor: pointer; }
label.row.off { opacity: 0.45; cursor: default; }
.row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.row-left { display: flex; align-items: center; gap: 12px; }
.row-val.minus b { color: var(--accent); }
.q-card { background: var(--card); border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow); position: sticky; top: 76px; }
.q-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.q-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.q-line small { display: block; font-size: 13px; color: var(--ink-soft); }
.q-line .v { white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-line.minus .v { color: var(--accent); }
.q-line.sum { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 600; }
.q-sec { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.q-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
.q-total p { font-weight: 600; }
.q-total b { display: block; font-size: 32px; color: var(--accent); line-height: 1.3; font-variant-numeric: tabular-nums; }
.q-total small { display: block; color: var(--ink-soft); font-size: 14px; }
/* 최종 금액은 가운데 (2026-10-08 사용자). 위의 결제 금액·페이백 줄(q-line)은 그대로 양끝 정렬 */
.q-total > p, .q-total > b, .q-total > small { text-align: center; }
.q-card .btn { width: 100%; margin-top: 18px; }
.q-mini { display: none; }
.toast { white-space: pre-line; margin-top: 10px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* 후기 */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.review { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.review b { display: block; font-size: 13px; color: var(--accent); margin-bottom: 4px; }

/* 문의 */
.contact { text-align: center; }
.faq-wrap .contact { margin-top: 32px; }
#video .sec-title, #review .sec-title { margin-bottom: 32px; }
.sns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.sns a { background: var(--card); border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow); font-size: 15px; }

footer { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 32px 0 48px; border-top: 1px solid var(--line); }
footer .wrap { display: grid; gap: 4px; }

@media (max-width: 560px) {
  .nav-links { gap: 12px; font-size: 14px; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 24px; }
  section { padding: 44px 0; }
  .sec-title { font-size: 22px; }
  .btn { width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .q-card { position: static; }
  .nav-links { gap: 10px; }
  /* 폰: 고르는 동안 결과 상자가 아래에 있어 안 보이므로 금액을 화면 아래에 따라다니게 */
  .q-mini {
    position: sticky; bottom: 12px; z-index: 5; margin-top: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 10px 10px 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }
  .q-mini b { font-size: 18px; font-variant-numeric: tabular-nums; }
  .q-mini a { background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; white-space: nowrap; }
  /* 폰에선 영상을 두 줄로 놓아 가격까지 덜 내려가게 한다 */
  .video-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .video { border-radius: 12px; }
  .play { width: 40px; height: 40px; }
  .play::after { border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 3px; }
  .video-name { padding: 8px 10px; font-size: 14px; }
  .video-name span { font-size: 12px; }
}

/* 아주 작은 폰: 견적서는 체크박스 때문에 폭이 좁아 설명이 중간에서 끊기지 않게 글자를 한 단계 줄인다 */
@media (max-width: 380px) {
  .quote .row-name small { font-size: 13px; }
  .quote .row { padding: 14px 14px; }
  .quote .row-left { gap: 10px; }
  .quote .row-val b { font-size: 16px; }
}

/* 견적서 이미지 저장 */
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: default; }
.q-card .btn + .btn { margin-top: 10px; }
.shot-overlay {
  position: fixed; inset: 0; z-index: 50; padding: 24px 16px;
  background: rgba(0, 0, 0, 0.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.shot-overlay[hidden] { display: none; }
.shot-overlay img { max-width: 100%; max-height: 72vh; border-radius: 12px; }
.shot-overlay p { color: #fff; font-weight: 600; }
.shot-overlay .btn { min-width: 140px; }

/* 셀프견적서 예식 정보 (선택사항) */
.q-opt { font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.q-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.q-field span { font-size: 14px; color: var(--ink-soft); }
.q-input {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; border: 0;
  background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.q-input:focus-visible, .q-select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.q-who { margin: -6px 0 12px; font-size: 15px; color: var(--ink-soft); }
.q-who p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 영상 팝업 */
.video-modal {
  position: fixed; inset: 0; z-index: 60; padding: 16px;
  background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center;
}
.video-modal[hidden] { display: none; }
.video-modal-inner { position: relative; width: min(1000px, 100%); }
.video-modal-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video-modal-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}

.q-input[type="date"], .q-input[type="time"] { cursor: pointer; }

/* 자주 묻는 질문 (누르면 펼쳐짐) */
.faq-wrap { max-width: 760px; }
#faq .sec-title { margin-bottom: 28px; }
.faq { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 48px 18px 20px; position: relative; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 14px; }
.faq-a { padding: 0 20px 20px; color: var(--ink-soft); display: grid; gap: 6px; font-size: 15px; }
.faq-a .faq-sub { color: var(--ink); font-weight: 600; margin-top: 8px; }
.fee-table { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 4px 0 8px; }
.fee-table div { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fee-table span:first-child { color: var(--ink); }
.fee-table b { color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 누를 수 있는 것에 반응 주기 (2026-10-08 사용자).
   마우스가 있는 기기에서만 올렸을 때 반응하고(폰에선 눌린 채 남는 문제 방지), 누르는 순간 반응은 모든 기기 */
.btn, .video, .video-frame img, .play, .review, .sns a, .faq summary, label.row, .q-pkg span {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.btn:active, .review:active, .sns a:active, .video:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .btn-kakao:hover { background: #f2d900; }
  .btn-dark:hover { background: #333333; }
  .btn-line:hover { background: #f4f4f4; }
  .video:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); }
  .video:hover .video-frame img { transform: scale(1.04); }
  .video:hover .play { background: rgba(0, 0, 0, 0.75); transform: translate(-50%, -50%) scale(1.08); }
  .video-frame { overflow: hidden; }
  .review:hover, .sns a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); }
  .faq summary:hover { background: #f7f7f7; border-radius: 14px; }
  label.row:not(.off):hover { background: #f9f9f9; }
  .q-pkg:hover span { border-color: #cccccc; }
  .q-pkg input:checked + span { border-color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .video, .video-frame img, .play, .review, .sns a { transition: none; }
  .video:hover, .review:hover, .sns a:hover, .btn:active, .review:active, .sns a:active, .video:active { transform: none; }
  .video:hover .video-frame img { transform: none; }
}

/* 폰 브라우저가 누른 곳에 띄우는 파란 상자 끄기. 대신 위의 눌림 반응으로 알려 준다 (2026-10-08 사용자) */
html { -webkit-tap-highlight-color: transparent; }

/* ===== 전체 크기 한 단계 줄이기 (2026-10-08 사용자: 폰에서 앱 견적서보다 꽉 차 보임. PC는 괜찮다고 해서 폰 폭에서만) =====
   글자 약 10% 작게, 금액 굵기 한 단계 낮추고, 칸 안쪽 여백 조금 좁게. 앞 규칙을 여기서 덮어쓴다 */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .nav-links { font-size: 14px; }
  .hero .area, .hero .tagline { font-size: 15px; }
  .btn { height: 46px; font-size: 15px; padding: 0 22px; }
  section { padding: 48px 0; }
  .sec-title { font-size: 21px; }
  .sec-sub { font-size: 14px; margin-bottom: 26px; }
  .sub-head { font-size: 16px; margin: 32px 0 12px; }
  .video-name { font-size: 15px; padding: 10px 14px; }
  .video-name span { font-size: 13px; }
  .card { padding: 22px 20px; }
  .pkg-name { font-size: 18px; margin-bottom: 10px; }
  .max-price { font-size: 14px; }
  .max-price b { font-size: 30px; }
  .includes li { font-size: 15px; }
  .includes li.minor { font-size: 14px; }
  .tag { font-size: 13px; }
  .row { padding: 12px 16px; border-radius: 12px; }
  .rows { gap: 8px; }
  .row-name { font-weight: 500; }
  .row-name small { font-size: 13px; }
  .row-name em { font-size: 12px; font-weight: 600; }
  .row-val small { font-size: 11px; }
  .row-val b { font-size: 16px; font-weight: 600; }
  .q-group { margin-bottom: 24px; }
  .q-label { font-size: 14px; }
  .q-pkg span { padding: 12px 8px; font-size: 15px; }
  .q-pkg span small { font-size: 13px; }
  .q-select, .q-input { height: 46px; font-size: 15px; }
  .row input[type="checkbox"] { width: 20px; height: 20px; }
  .q-card { padding: 20px 18px; }
  .q-title { font-size: 17px; }
  .q-line { font-size: 14px; }
  .q-line small, .q-sec { font-size: 12px; }
  .q-total b { font-size: 28px; }
  .q-who { font-size: 14px; }
  .review { padding: 14px 16px; font-size: 14px; }
  .review b { font-size: 12px; }
  .sns a { font-size: 14px; padding: 9px 16px; }
  .faq summary { padding: 15px 44px 15px 18px; font-size: 15px; font-weight: 500; }
  .faq-a { padding: 0 18px 18px; font-size: 14px; }
  .nav-links { font-size: 13px; gap: 11px; }
  section { padding: 40px 0; }
  .sec-title { font-size: 20px; }
  .video-name { font-size: 14px; padding: 8px 10px; }
  .video-name span { font-size: 12px; }
  .q-mini b { font-size: 16px; }
}

/* 메뉴 맨 오른쪽 셀프견적서 버튼. 검은 칠은 너무 튄다고 해서 얇은 테두리만 (2026-10-08 사용자) */
.nav-links { align-items: center; }
.nav-links a.nav-cta { color: var(--ink); border: 1px solid var(--ink); padding: 5px 12px; border-radius: 999px; }
.nav-links a.nav-cta::after { display: none; }
@media (hover: hover) and (pointer: fine) { .nav-links a.nav-cta:hover { background: var(--ink); color: #fff; } }
@media (max-width: 560px) { .nav-links a.nav-cta { padding: 4px 10px; } }
