/* =====================================================
   마석역 극동스타클래스 더퍼스트 아파트 — 스타일
   ===================================================== */

:root {
  --primary: #1a365d;
  --dark: #111;
  --gray: #444;
  --light: #f4f6f8;
  --line: #ddd;
  --gold: #b8965a;
  --green: #226f42;
  --maxw: 1200px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.6;
  font-size: 18px;
  padding-top: 80px; 
}
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ── 헤더 ── */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: 80px; z-index: 9999;
  background: #fff; border-bottom: 2px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 24px; max-width: var(--maxw); margin: 0 auto; }

.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img-wrap { 
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-img { height: 50px; width: auto; display: block; }
.logo-text { font-size: 20px; font-weight: 900; color: var(--primary); white-space: nowrap; } 

.header-nav { display: none; gap: 20px; align-items: center; white-space: nowrap; }
.header-nav a { font-size: 20px; font-weight: 700; color: var(--gray); transition: 0.2s; }
.header-nav a:hover, .header-nav a.active { color: var(--primary); font-weight: 900; }
.header-tel { font-size: 22px !important; font-weight: 900 !important; color: var(--primary) !important; }

/* ── 모바일 메뉴 ── */
.header-menu { display: flex; flex-direction: column; gap: 6px; cursor: pointer; background: none; border: none; padding: 10px; }
.header-menu span { display: block; width: 30px; height: 3px; background: var(--dark); transition: 0.3s; }
.mobile-nav {
  position: fixed; top: 0; right: 0; width: 80%; max-width: 350px; height: 100vh;
  background: #fff; z-index: 10000; padding: 100px 30px 40px;
  transform: translateX(100%); transition: 0.3s ease; display: flex; flex-direction: column; gap: 15px; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a.mobile-link { font-size: 24px; font-weight: 700; padding: 15px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-tel { margin-top: auto; color: var(--primary); font-size: 26px; font-weight: 900; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; opacity: 0; visibility: hidden; transition: 0.3s; }
.overlay.open { opacity: 1; visibility: visible; }

/* ── 히어로 ── */
.hero { 
  padding: 160px 24px 180px; 
  min-height: 85vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center; 
}
.hero-tag { display: inline-block; background: #e2e8f0; color: var(--primary); font-size: 24px; font-weight: 900; padding: 10px 24px; border-radius: 30px; margin-bottom: 40px; }
.hero-title { font-size: 38px; font-weight: 900; color: #fff; line-height: 1.4; margin-bottom: 40px; word-break: keep-all; }
.hero-sub { font-size: 20px; color: #e2e8f0; margin-bottom: 60px; word-break: keep-all; }

.hero-cta { display: flex; flex-direction: column; gap: 25px; max-width: 550px; margin: 0 auto; width: 100%; }
.btn-square {
  display: block; width: 100%; padding: 20px; font-size: 24px; font-weight: 900;
  background: #fff; color: var(--primary); border: 2px solid #fff;
  text-align: center; transition: 0.2s; border-radius: 0;
}
.btn-square.btn-outline { background: rgba(0,0,0,0.4); color: #fff; border: 2px solid rgba(255,255,255,0.6); }

/* ── 섹션 공통 ── */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-head { margin-bottom: 40px; }
.section-tag { font-size: 20px; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.section-title { font-size: 34px; font-weight: 900; margin-bottom: 20px; word-break: keep-all; }
.section-divider { width: 60px; height: 5px; background: var(--primary); margin: 0 auto 20px; }
.section-desc { font-size: 20px; color: var(--gray); word-break: keep-all; }

/* ── 세로형 평면도 ── */
.floor-viewer { margin-bottom: 60px; text-align: center; background: #fff; padding: 30px 20px; border: 2px solid var(--line); border-radius: 12px; }
.floor-title { font-size: 32px; font-weight: 900; color: var(--primary); margin-bottom: 20px; }
.floor-viewer img { width: 100%; max-width: 800px; object-fit: contain; }

/* ── 하단 CTA 영역 ── */
.cta-section { background: var(--dark); padding: 100px 0; text-align: center; color: #fff; }
.cta-tag { font-size: 18px; color: var(--gold); font-weight: 700; margin-bottom: 20px; letter-spacing: 1px; }
.cta-title { font-family: 'Noto Serif KR', serif; font-size: 42px; font-weight: 900; margin-bottom: 20px; line-height: 1.4; }
.cta-desc { font-size: 20px; color: #aaa; margin-bottom: 50px; }
.cta-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.cta-tel { font-family: 'Noto Serif KR', serif; font-size: 46px; font-weight: 900; letter-spacing: -1px; }
.cta-btn { background: var(--green); color: #fff; padding: 20px 40px; border-radius: 8px; font-size: 24px; font-weight: 900; display: inline-block; cursor: pointer; border: none; transition: 0.2s; }
.cta-btn:hover { transform: translateY(-3px); }
.cta-name { font-size: 16px; color: #666; margin-top: 10px; }

/* ── 예약 폼 상세 스타일 ── */
.form-wrap { background: #fff; padding: 40px 20px; border-radius: 16px; border: 2px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 20px; font-weight: 700; margin-bottom: 10px; display: block; color: var(--dark); }
.field .req { color: #e53e3e; }
.field input { font-size: 20px; padding: 20px; border: 2px solid var(--line); border-radius: 8px; width: 100%; box-sizing: border-box; }
.field textarea { font-family: inherit; font-size: 20px; padding: 20px; border: 2px solid var(--line); border-radius: 8px; width: 100%; min-height: 120px; resize: vertical; box-sizing: border-box; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.err { color: #e53e3e; font-size: 16px; font-weight: 700; margin-top: 5px; min-height: 24px; }

/* 날짜/시간 선택 칩 */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 16px 24px; font-size: 20px; font-weight: 700; font-family: inherit; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--gray); cursor: pointer; transition: 0.2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 개인정보 동의 */
.privacy-box { background: #f9f9f9; border: 2px solid var(--line); border-radius: 8px; padding: 20px; font-size: 16px; color: var(--gray); max-height: 150px; overflow-y: auto; margin-bottom: 15px; }
.privacy-box p { margin-bottom: 10px; }
.privacy-box strong { color: var(--primary); }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; cursor: pointer; }
.checkbox-row input { width: 30px; height: 30px; accent-color: var(--primary); cursor: pointer; }

.form-submit { display: block; width: 100%; max-width: 400px; margin: 0 auto; padding: 20px; border-radius: 12px; font-size: 24px; font-weight: 900; text-align: center; cursor: pointer; transition: 0.2s; border: none; background: var(--primary); color: #fff; }
.form-submit:hover { opacity: 0.9; transform: translateY(-2px); }

/* 전송 완료 메시지 */
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success .check { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: bold; }
.form-success h3 { font-size: 32px; font-weight: 900; margin-bottom: 15px; color: var(--dark); }
.form-success p { font-size: 20px; color: var(--gray); line-height: 1.6; }

/* ── 푸터 ── */
.footer { background: #fff; padding: 60px 0; text-align: center; border-top: 1px solid var(--line); }
.footer-logo { font-size: 20px; font-weight: 900; color: var(--dark); margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { font-size: 16px; font-weight: 700; color: var(--gray); transition: 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 14px; color: #bbb; line-height: 1.8; }

/* ── 스크롤 애니메이션 ── */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PC (데스크탑) 반응형 ── */
@media (min-width: 900px) {
  .header-menu { display: none; }
  .header-nav { display: flex; }
  
  .header-inner { justify-content: center; gap: 60px; }
  
  .hero-title { font-size: 54px; }
  .section-title { font-size: 44px; }
  
  .cta-tel { font-size: 60px; }
  
  .form-wrap { padding: 60px; }

/* ── 드래그 및 복사 방지 ── */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 단, 예약 폼의 입력창은 글씨를 쓸 수 있어야 하므로 예외 처리 */
input, textarea {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}
  .form-grid { grid-template-columns: 1fr 1fr; }
}