/* ==========================================================
   와우오더 (woworder.kr) — 공통 스타일
   리셋 / 색 변수 / 타이포 / 버튼 / 상단바 / 푸터 / 등장 효과
   ========================================================== */

/* ----- 기본 리셋 ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-break: keep-all;
}

*, *::before, *::after {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #171717;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ----- 색 변수 ----- */
:root {
  --brand-50: #fffef2;
  --brand-100: #fff8d6;
  --brand-200: #fff0a8;
  --brand-300: #ffe06c;
  --brand-400: #fdcd27;      /* 메인 브랜드 컬러 */
  --brand-500: #e4b40e;
  --brand-600: #c49800;

  --n-50: #fafafa;
  --n-100: #f5f5f5;
  --n-200: #e5e5e5;
  --n-300: #d4d4d4;
  --n-400: #a3a3a3;
  --n-500: #737373;
  --n-600: #525252;
  --n-700: #404040;
  --n-800: #262626;
  --n-900: #171717;
  --n-950: #0a0a0a;          /* 다크 섹션 배경 (순수 검정 금지) */

  --naver: #03c75a;
  --cream: #faf8f6;

  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Paperlogy (Paperozi) 웹폰트 — 히어로 전용 ----- */
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ----- 공통 레이아웃 ----- */
.inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .inner { padding: 0 32px; }
}

/* 섹션 공통 여백 */
.section {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}

@media (min-width: 640px)  { .section { padding: 112px 0; } }
@media (min-width: 1024px) { .section { padding: 160px 0; } }

/* 섹션 헤더 공통 (아이브로우 + 제목 + 설명) */
.sec-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 12px;
}

.dark .sec-eyebrow { color: var(--brand-400); }

.sec-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--n-900);
}

.dark .sec-title { color: #fff; }

.sec-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--n-500);
}

.dark .sec-desc { color: var(--n-400); }

@media (min-width: 640px) {
  .sec-title { font-size: 30px; }
  .sec-desc  { font-size: 18px; }
}

@media (min-width: 1024px) {
  .sec-title { font-size: 48px; }
}

/* 다크 섹션 */
.dark {
  background-color: var(--n-950);
  color: #fff;
}

/* 배경 장식 블롭 (블러 원) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

/* ----- 아이콘 (SVG 스프라이트) ----- */
.ico {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/* ----- 공통 버튼 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-phone {                       /* 흰색 전화 버튼 */
  background: #fff;
  color: var(--n-900);
  border: 1px solid var(--n-200);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-phone:hover { background: var(--n-50); }

.btn-kakao {                       /* 노란 카카오 버튼 */
  background: var(--brand-400);
  color: var(--n-900);
  border-radius: 9999px;
  font-weight: 700;
}

.btn-kakao:hover { background: var(--brand-500); }

.btn-kakao img { width: 18px; height: 18px; }

/* ----- 스크롤 등장 효과 ----- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease-apple), transform 0.9s var(--ease-apple);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-apple), transform 0.9s var(--ease-apple);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-apple), transform 0.9s var(--ease-apple);
}

.reveal.visible,
.reveal-scale.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ----- 카드 호버 (살짝 떠오름) ----- */
.bento-item {
  transition: transform 0.5s var(--ease-apple), box-shadow 0.5s var(--ease-apple);
}

.bento-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.15);
}

/* ----- 다크용 이중 베젤 카드 ----- */
.bezel-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 48px -12px rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 4px;
}

.bezel-card-inner {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

/* ----- 글래스 카드 ----- */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ----- 브랜드 그라데이션 텍스트 ----- */
.gradient-text {
  background: linear-gradient(135deg, #fdcd27 0%, #e4b40e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ----- 숫자 카운터 ----- */
.stat-number { font-variant-numeric: tabular-nums; }

/* 통계 카드의 게이지 바 — 등장 시 --progress 폭까지 차오름 */
.progress-bar {
  width: 0%;
  transition: width 1.2s var(--ease-apple);
}

.reveal.visible .progress-bar,
.reveal-scale.visible .progress-bar { width: var(--progress); }

/* 깜빡이는 점 (라이브 배지) */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ==========================================================
   상단바 (GNB)
   ========================================================== */
#gnb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

#gnb.scrolled {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gnb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 1024px) { .gnb-bar { height: 72px; } }

.gnb-logo img { height: 22px; width: auto; }

.gnb-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--n-600);
}

.gnb-links button { transition: color 0.3s; }
.gnb-links button:hover { color: var(--n-900); }

.gnb-cta {
  display: none;
  align-items: center;
  gap: 10px;
}

.gnb-cta .btn { padding: 16px 24px; font-size: 16px; }

@media (min-width: 768px) {
  .gnb-links, .gnb-cta { display: flex; }
  .gnb-toggle { display: none; }
}

.gnb-toggle {
  padding: 8px;
  color: var(--n-800);
  font-size: 24px;
  display: inline-flex;
}

.gnb-toggle .ico-close { display: none; }
#gnb.open .gnb-toggle .ico-open  { display: none; }
#gnb.open .gnb-toggle .ico-close { display: inline; }

/* 모바일 드롭다운 메뉴 */
.gnb-mobile {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid transparent;
  transition: max-height 0.5s var(--ease-apple), opacity 0.5s;
}

#gnb.open .gnb-mobile {
  max-height: 560px;
  opacity: 1;
  border-top-color: rgba(229, 229, 229, 0.6);
}

.gnb-mobile-in { padding: 8px 24px 28px; }

.gnb-mobile-in button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  color: var(--n-600);
}

.gnb-mobile-cta {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 229, 229, 0.7);
}

.gnb-mobile-cta .btn {
  flex: 1;
  padding: 14px 12px;
  font-size: 14px;
}

@media (min-width: 768px) { .gnb-mobile { display: none; } }

/* ==========================================================
   푸터
   ========================================================== */
#footer {
  background: var(--n-950);
  color: var(--n-500);
  padding-bottom: 80px;               /* 모바일 하단 고정바 자리 */
}

@media (min-width: 768px) { #footer { padding-bottom: 0; } }

.footer-main {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; gap: 64px; }
}

.footer-info img { height: 28px; width: auto; margin-bottom: 20px; }

.footer-info p {
  font-size: 14px;
  color: var(--n-500);
  margin-bottom: 6px;
}

.footer-info p span { color: var(--n-400); }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--n-400);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover { color: #fff; }

.footer-col .small-label {
  font-size: 12px;
  color: var(--n-500);
  margin-bottom: 4px;
}

.footer-col .tel {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.footer-col .tel:hover { color: var(--brand-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
}

.footer-bottom-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--n-500);
}

@media (min-width: 640px) { .footer-bottom-in { flex-direction: row; } }

.footer-bottom-in a:hover { color: #fff; }
.footer-bottom-in .sep { color: var(--n-700); margin: 0 8px; }

/* ==========================================================
   모바일 하단 고정 CTA 바
   ========================================================== */
#floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid var(--n-200);
  padding: 12px 16px;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-apple);
}

#floating-cta.show { transform: translateY(0); }

@media (min-width: 768px) { #floating-cta { display: none; } }

.floating-in { display: flex; gap: 8px; }

.floating-in a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 0;
  border-radius: 12px;
}

.floating-in .f-call  { background: var(--brand-400); color: var(--n-900); }
.floating-in .f-kakao { background: var(--n-900); color: #fff; }

/* ==========================================================
   하단 상담바 (데스크탑 전용)
   스크롤 중에는 아래로 사라지고, 스크롤이 멈추면 다시 올라옴
   ========================================================== */
#consult-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 40;
  display: none;
  transform: translate(-50%, 200%);
  transition: transform 0.55s var(--ease-apple);
}

#consult-bar.show { transform: translate(-50%, 0); }

@media (min-width: 768px) { #consult-bar { display: block; } }

.consult-in {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--n-200);
  border-radius: 13px;
  padding: 11px 17px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.consult-copy {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}

.consult-copy strong { color: #ef4444; }

.consult-phone {
  width: 165px;
  height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--n-300);
  border-radius: 10px;
  outline: none;
}

.consult-phone:focus { border-color: var(--brand-400); }

.consult-submit {
  background: var(--brand-400);
  color: var(--n-900);
  height: 36px;
  font-size: 15px;
  font-weight: 700;
  padding: 0 22px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.consult-submit:hover { background: var(--brand-500); }
.consult-submit:disabled { opacity: 0.6; cursor: default; }

.consult-close {
  display: inline-flex;
  padding: 4px;
  font-size: 18px;
  color: var(--n-400);
}

.consult-close:hover { color: var(--n-700); }

/* ----- 접수 완료 상태 ----- */
.consult-in.done {
  gap: 14px;
  padding: 12px 28px;
  animation: done-pop 0.5s var(--ease-apple);
}

@keyframes done-pop {
  0%   { transform: scale(0.96); }
  55%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.done-check {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* 노란 원이 톡 튀어나온 뒤 체크가 그려짐 */
.done-circle {
  fill: var(--brand-400);
  transform-origin: center;
  animation: done-circle-in 0.45s var(--ease-apple) both;
}

@keyframes done-circle-in {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.done-tick {
  fill: none;
  stroke: #171717;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: done-tick-draw 0.4s ease-out 0.3s forwards;
}

@keyframes done-tick-draw {
  to { stroke-dashoffset: 0; }
}

.done-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: done-text-in 0.5s var(--ease-apple) 0.25s both;
}

@keyframes done-text-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.done-text strong { font-size: 16px; font-weight: 700; color: #000; }
.done-text span   { font-size: 13px; color: var(--n-500); }

@media (prefers-reduced-motion: reduce) {
  .consult-in.done, .done-circle, .done-tick, .done-text {
    animation: none;
  }
  .done-tick { stroke-dashoffset: 0; }
}

/* ==========================================================
   우측 하단 퀵 버튼 (처음으로 · 채팅문의)
   ========================================================== */
#quick-btns {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-top,
.quick-chat {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--n-200);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #000;
  cursor: pointer;
  transition: transform 0.3s;
}

.quick-top:hover,
.quick-chat:hover { transform: translateY(-3px); }

.quick-top .ico { font-size: 28px; color: #000; }

.quick-chat .ico { font-size: 28px; color: #000; }

/* 모바일: 하단 고정 CTA 바 위로 올림 */
@media (max-width: 767px) {
  #quick-btns { right: 12px; bottom: 88px; }
}
