/* ============================================
   LAYER Mood Styling — 톤앤매너 스타일시트
   컬러: 크림/아이보리 배경, 버건디 포인트, 블랙 텍스트
   ============================================ */

:root {
  --cream:      #F5F0E8;   /* 메인 배경 */
  --cream-deep: #EBE3D6;   /* 섹션 구분 배경 */
  --ivory:      #FBF8F2;   /* 카드/폼 배경 */
  --burgundy:   #6B2737;   /* 포인트 (딥 버건디) */
  --burgundy-l: #8B3A4C;   /* 밝은 버건디 */
  --ink:        #1A1A1A;   /* 본문 텍스트 */
  --gray:       #6E6A63;   /* 서브 텍스트 */
  --line:       #D8CFC0;   /* 구분선 */

  --serif-en: 'Cormorant Garamond', serif;
  --serif-kr: 'Noto Serif KR', serif;
  --sans-kr:  'Noto Sans KR', sans-serif;

  --maxw: 720px;   /* 원페이지 세로형 컨텐츠 폭 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans-kr);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }

b { font-weight: 700; color: var(--burgundy); }

/* ===== 상단 바 ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: baseline; gap: 10px;
}
.brand {
  font-family: var(--serif-en);
  font-weight: 700; font-size: 24px; letter-spacing: 4px;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--serif-en);
  font-size: 11px; letter-spacing: 5px; color: var(--gray);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(20,15,12,0.78) 0%,
    rgba(20,15,12,0.30) 45%,
    rgba(20,15,12,0.05) 100%);
}
.hero-copy {
  position: relative; z-index: 1;
  padding: 40px 28px 56px;
  color: #fff;
}
.hero-eyebrow {
  font-family: var(--serif-en);
  letter-spacing: 3px; font-size: 13px;
  color: #E8D8C0; margin-bottom: 16px;
}
.hero-title {
  font-family: var(--serif-kr);
  font-weight: 700; font-size: 44px; line-height: 1.25;
  letter-spacing: -1px; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-desc {
  font-weight: 300; font-size: 16px; line-height: 1.8;
  color: #F3EDE4; margin-bottom: 28px;
}
.hero-desc b { color: #F0C88A; }
.hero-cta {
  display: inline-block;
  background: var(--burgundy);
  color: #fff; text-decoration: none;
  font-weight: 500; font-size: 17px;
  padding: 16px 36px; border-radius: 2px;
  transition: background .25s, transform .25s;
}
.hero-cta:hover { background: var(--burgundy-l); transform: translateY(-2px); }
.hero-note {
  margin-top: 16px; font-size: 13px; color: #D8CFC0; letter-spacing: .5px;
}

/* ===== 공통 섹션 ===== */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: 80px 28px;
}
.section-label {
  font-family: var(--serif-en);
  letter-spacing: 4px; font-size: 13px;
  color: var(--burgundy); text-align: center; margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif-kr);
  font-weight: 700; font-size: 30px; line-height: 1.4;
  text-align: center; letter-spacing: -0.5px; margin-bottom: 24px;
}
.section-title.dark { color: var(--ink); }
.section-title em {
  font-style: normal; color: var(--burgundy);
  border-bottom: 3px solid var(--burgundy);
}
.section-text {
  font-weight: 300; font-size: 16px; line-height: 1.9;
  color: var(--gray); text-align: center;
  max-width: 520px; margin: 0 auto;
}
.section-text.center { text-align: center; }

/* 문제 제기 섹션 배경 */
.problem { background: var(--cream-deep); max-width: 100%; }
.problem .section-title, .problem .section-text,
.problem .section-label { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* ===== 카드 ===== */
.cards {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-top: 44px;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px;
  text-align: left;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(107,39,55,0.08); }
.card-no {
  font-family: var(--serif-en);
  font-size: 32px; font-weight: 600; color: var(--burgundy); opacity: .5;
}
.card h3 {
  font-family: var(--serif-kr);
  font-size: 20px; margin: 8px 0 10px; color: var(--ink);
}
.card p { font-size: 15px; color: var(--gray); font-weight: 300; }

/* ===== 갤러리 자동 슬라이드 ===== */
.gallery-slider {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.slide-track {
  display: flex;
  width: max-content;
  animation: scroll-left 45s linear infinite;
}
.slide-track:hover {
  animation-play-state: paused;
}
.slide {
  flex: 0 0 auto;
  width: 420px;                 /* 이미지 크게 (기존 260 → 420) */
  margin: 0 10px;
  cursor: pointer;             /* 클릭 가능하다는 표시 */
  transition: transform .25s;
}
.slide:hover { transform: translateY(-6px); }
.slide img {
  width: 100%;
  aspect-ratio: 1/1;          /* 정사각형 1:1 비율 */
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  .slide { width: 260px; margin: 0 6px; }
}


/* ===== 폼 ===== */
.apply { background: var(--ivory); max-width: 100%; }
.apply > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.form {
  max-width: 480px; margin: 44px auto 0;
}
.field { margin-bottom: 22px; }
.field label {
  display: block; font-weight: 500; font-size: 15px;
  margin-bottom: 8px; color: var(--ink);
}
.req { color: var(--burgundy); }
.field input {
  width: 100%; font-family: var(--sans-kr);
  font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 3px;
  background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none; border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107,39,55,0.08);
}
.field input.invalid { border-color: #C0392B; background: #FDF3F2; }
.hint { font-size: 13px; color: var(--gray); margin-top: 6px; }
.error-msg {
  font-size: 13px; color: #C0392B; margin-top: 6px;
  min-height: 0; opacity: 0; transition: opacity .2s;
}
.error-msg.show { opacity: 1; }

/* 체크박스 */
.field-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 8px 0 28px; font-size: 14px; color: var(--gray);
}
.field-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--burgundy); flex-shrink: 0; }
.field-check label { font-weight: 400; }
.privacy-detail {
  display: block; font-size: 12px; color: #9A948B;
  margin-top: 4px; line-height: 1.6;
}

/* 제출 버튼 */
.submit-btn {
  width: 100%; font-family: var(--sans-kr);
  font-size: 17px; font-weight: 500; color: #fff;
  background: var(--burgundy); border: none; border-radius: 3px;
  padding: 18px; cursor: pointer;
  transition: background .25s, transform .1s;
}
.submit-btn:hover { background: var(--burgundy-l); }
.submit-btn:active { transform: scale(.99); }
.submit-btn:disabled { background: #B5A99A; cursor: not-allowed; }

.form-status {
  text-align: center; margin-top: 16px; font-size: 14px; min-height: 20px;
}
.form-status.err { color: #C0392B; }
.form-status.ok { color: var(--burgundy); }

/* ===== 완료 오버레이 ===== */
.done-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26,20,16,0.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.done-overlay.show { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.done-box {
  background: var(--ivory); border-radius: 6px;
  padding: 44px 32px; text-align: center; max-width: 420px;
  animation: popUp .35s ease;
}
@keyframes popUp { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-mark {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--burgundy); color: #fff;
  font-size: 32px; display: flex; align-items: center; justify-content: center;
}
.done-box h3 { font-family: var(--serif-kr); font-size: 24px; margin-bottom: 12px; }
.done-box p { font-size: 15px; color: var(--gray); font-weight: 300; margin-bottom: 24px; }
.done-ig {
  display: inline-block; text-decoration: none;
  color: var(--burgundy); font-weight: 500; font-size: 15px;
  border: 1px solid var(--burgundy); border-radius: 3px;
  padding: 12px 28px; transition: background .2s, color .2s;
}
.done-ig:hover { background: var(--burgundy); color: #fff; }

/* ===== 푸터 ===== */
.footer {
  background: var(--ink); color: #E8E1D6;
  text-align: center; padding: 48px 24px;
}
.footer-brand {
  font-family: var(--serif-en);
  font-size: 26px; letter-spacing: 5px; display: block; margin-bottom: 10px;
}
.footer p { font-size: 14px; color: #A69E90; font-weight: 300; margin-bottom: 6px; }
.footer a { color: #E8D8C0; text-decoration: none; font-size: 15px; }
.footer .copy { font-size: 12px; color: #6E665A; margin-top: 20px; }

/* ===== 데스크탑 대응 ===== */
@media (min-width: 768px) {
  .hero-title { font-size: 56px; }
  .section-title { font-size: 36px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 모바일 히어로: 화면 너비에 맞춰 이미지 전체 표시 ===== */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    display: block;
  }
  .hero-media {
    position: static;
  }
  .hero-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .hero-overlay {
    display: none;
  }
  .hero-copy {
    position: static;
    color: var(--ink);
    background: var(--cream);
    padding: 28px 22px 40px;
  }
  .hero-eyebrow { color: var(--burgundy); }
  .hero-title  { color: var(--ink); text-shadow: none; font-size: 34px; line-height: 1.3; }
  .hero-desc   { color: var(--gray); font-size: 15px; }
  .hero-desc b { color: var(--burgundy); }
  .hero-note   { color: var(--gray); }
}
