/* =========================================================
   FAEING · AMM  style.css  (FINAL)
   - 메인(요정로고/속삭임)
   - 상태점검 / 구조원리 / 정기관리 / 도구
   - 톤: 아이보리/베이지, 또렷한 가독성
========================================================= */

/* =========================
   기본 리셋 / 바디
========================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: "Times New Roman", serif;
  background: #f9faf7;
  color: #222;
  min-height: 100vh;
}

/* =========================
   상단바 (Navbar)
========================= */
.navbar{
  width: 100%;
  height: 56px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F2F1EE;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-left{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* 로고 */
.nav-logo{
  height: 36px;
  width: auto;
  display: block;
}
/* ✅ 로고도 클릭 가능하게 */
#logoHome{
  cursor: pointer;
}
/* 브랜드 = 홈 */
.nav-brand{
  font-size: 18px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-right: 8px;
  cursor: pointer;
}
#brandHome:hover{
  opacity: 1;
}

/* =========================
   상단 메뉴
========================= */
.nav-menu{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-menu a{
  text-decoration: none;
  font-weight: 700;
  color: #111;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.nav-menu a:hover{
  background: rgba(0,0,0,0.04);
}

.nav-menu a.active{
  background: rgba(0,0,0,0.06);
}

.nav-menu span{
  opacity: 1;
}

/* =========================
   우측 영역
========================= */
.nav-right{
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search{
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  font-size: 13px;
  color: #333;
  outline: none;
  width: 220px;
}

.nav-search::placeholder{
  color: rgba(0,0,0,0.45);
}

.nav-btn{
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: rgba(0,0,0,0.7);
}
.nav-btn:hover{
  background: rgba(0,0,0,0.05);
}

/* =========================
   영문 → 한글 전환
========================= */
.hover-word{
  display: inline-grid;
  align-items: center;
  text-align: center;
}
.hover-word .en,
.hover-word .ko{
  grid-area: 1 / 1;
  transition: opacity 0.15s ease;
}
.hover-word .ko{ opacity: 0; }
.hover-word:hover .en{ opacity: 0; }
.hover-word:hover .ko{ opacity: 1; }

/* =========================
   메인 영역 / 뷰
========================= */
.main-area{
  min-height: calc(100vh - 56px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px 56px;
}

.view{
  display: none;
  width: 100%;
}
.view.active{
  display: block;
}

/* =========================
   HOME
========================= */
.logo-wrapper{
  text-align: center;
}

.main-logo{
  max-width: 60vw;
  max-height: 55vh;
  min-width: 180px;
  margin: 0 auto 26px;
  display: block;
}

.title-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.title-text{
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.08em;
  opacity: 1;
  white-space: nowrap;
}

.ornament{
  width: 70px;
  height: 1px;
  background: #CBBDA5;
  position: relative;
}
.ornament-left::after,
.ornament-right::after{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CBBDA5;
  position: absolute;
  top: -3px;
}
.ornament-left::after{ right: -3px; }
.ornament-right::after{ left: -3px; }

/* =========================
   공통 컨텐츠
========================= */
.container{
  width: min(980px, 92vw);
  margin: 0 auto;
}

.card{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 16px;
}

.section-title{
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section-sub{
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* 폼 */
.fields{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label{
  font-size: 12px;
  opacity: 1;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}

select,
input[type="text"]{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

/* 버튼 */
.actions{
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn{
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  background: rgba(0,0,0,0.05);
}
.btn:hover{
  background: rgba(0,0,0,0.08);
}

/* 결과 */
.result{
  margin-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.2);
  padding-top: 12px;
}

.step{
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.85);
}

.step-title{
  font-size: 14px;
  margin-bottom: 6px;
}

.meta{
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.55;
}

.badge{
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  margin-right: 6px;
}

.small{
  font-size: 12px;
  opacity: 0.92;
  line-height: 1.65;
}

.muted{
  opacity: 0.8;
}

/* =========================
   모바일
========================= */
@media (max-width: 768px){
  .navbar{
    padding: 0 16px;
  }
  .nav-logo{
    height: 30px;
  }
  .nav-brand{
    font-size: 16px;
  }
  .nav-search{
    width: 140px;
  }
  .nav-menu{
    display: none;
  }
  .fields{
    grid-template-columns: 1fr;
  }
  .title-text{
    white-space: normal;
    text-align: center;
  }
}



