/* =========================================================
   Cricri Beauty Studio - style.css (FULL)
   - Desktop: 기존 디자인 유지
   - Mobile: 전용 헤더(햄버거) + 겹침 제거
========================================================= */

/* -------------------------
   Base / Reset
-------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* -------------------------
   Background
-------------------------- */
.background {
  position: fixed;
  inset: 0;
  background: url("../images/intro.png") center/cover no-repeat;
  z-index: -2;
  filter: brightness(0.85) contrast(0.9) saturate(0.85);
}

/* ✅ 추가: 배경이 클릭/터치를 가로채지 못하게 */
.background,
.background::after {
  pointer-events: none;
}

/* 배경 위에 살짝 어둡게(글자 가독성) */
.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.6) 0%,
      rgba(0,0,0,0.35) 40%,
      rgba(0,0,0,0.3) 65%,
      rgba(0,0,0,0.5) 100%
    );
  z-index: -1;
}
/* -------------------------
   Logo / Main Center Block
-------------------------- */
.logo-slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 110px 18px 80px; /* 상단 요소(언어/메뉴) 공간 확보 */
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.logo-slide h1 {
  margin: 0;
  line-height: 1.05;
}

.logo-slide .slide:nth-child(1) {
  font-family: "Dancing Script", cursive;
  font-size: clamp(54px, 8vw, 86px);
  font-weight: 400;
  letter-spacing: 0.5px;
  display: inline-block;
  animation: fadeUp 0.9s ease both;
}

.logo-slide .slide:nth-child(2),
.logo-slide .slide:nth-child(3) {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 6vw, 58px);
  font-weight: 600;
  letter-spacing: 10px;
  display: block;
  animation: fadeUp 0.9s ease both;
}

.logo-slide .slide:nth-child(2) { animation-delay: 0.15s; }
.logo-slide .slide:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tagline */
.tagline-slide {
  margin-top: 18px;
  max-width: 720px;
}
.tagline {
  display: inline-block;
  font-size: clamp(14px, 2.8vw, 18px);
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* SEO hidden text */
.seo-text-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* CTA Buttons */
.cta-buttons {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  min-width: 200px;

  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  transition: all 0.2s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Hover (PC) */
.btn:hover {
  transform: translateY(-2px);
  background: rgba(217,79,123,0.25);
  border-color: rgba(217,79,123,0.8);
  box-shadow: 0 10px 30px rgba(217,79,123,0.35);
}

/* 모바일 터치 눌림 효과 */
.btn:active {
  transform: scale(0.94);
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  background: rgba(217,79,123,0.4);
}

/* 클릭 잔상 효과 */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 10%, transparent 10%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s, opacity 0.6s;
}

.btn:active::after {
  transform: scale(4);
  opacity: 0.3;
  transition: 0s;
}

/* -------------------------
   Language Switcher (Top Right)
-------------------------- */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 5000;
  font-size: 14px;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 8px 12px;
  backdrop-filter: blur(6px);
}

.lang-switcher a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin: 0 6px;
}

.lang-switcher a:hover {
  color: #fff;
  text-decoration: underline;
}

/* -------------------------
   Desktop Navigation (Top Left/Center)
   - PC에서는 기존 메뉴를 보여주고, 모바일에선 숨김
-------------------------- */
.nav {
  position: fixed;
  top: 14px;
  left: 18px;
  z-index: 2500;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.menu li a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.menu li a:hover {
  color: #fff;
  text-decoration: underline;
}

/* -------------------------
   Info Box (Desktop fixed bottom-left)
-------------------------- */
.info-box {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2200;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.info-box p {
  margin: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.info-box strong {
  font-size: 15px;
  color: #fff;
}

/* -------------------------
   Chatbot Button + Box
-------------------------- */
#chatbot-toggle {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 2600;
  background: #d94f7b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

#chatbot-box {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 74px;
  z-index: 2600;
  width: 310px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  border: 1px solid rgba(0,0,0,0.08);
}

.chat-header {
  background: #111;
  color: #fff;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
}

.chat-content {
  padding: 12px 14px;
  font-size: 14px;
}

.chat-content button {
  width: 100%;
  margin: 6px 0;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
}

.chat-content button:hover {
  background: #eef2ff;
}

/* -------------------------
   Mobile Header / Hamburger Menu (NEW)
   - index.html에 아래 구조가 있어야 함:
     <div class="mobile-header">...</div>
     <div class="mobile-menu" id="mobileMenu">...</div>
-------------------------- */
.mobile-header { display: none; }
.mobile-menu   { display: none; }

/* =========================================================
   📱 MOBILE LAYOUT (NEW)
========================================================= */
@media (max-width: 768px) {

  /* PC 고정 메뉴는 숨기기 (겹침 방지) */
  .nav { display: none; }

  /* 언어 스위처는 상단 오른쪽 유지, 크기 조금 줄임 */
  .lang-switcher {
    top: 12px;
    right: 12px;
    font-size: 13px;
    padding: 7px 10px;
  }

  /* 모바일 상단 헤더 */
  .mobile-header {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 4000;
    justify-content: space-between;
    align-items: center;
    padding: 14px 14px;
    background: rgba(0,0,0,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
  }

  .mobile-logo {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    font-size: 15px;
  }

  .hamburger {
    font-size: 26px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
  }

  .hamburger:active {
    background: rgba(255,255,255,0.12);
  }

  /* 오른쪽 슬라이드 메뉴 */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    height: 100%;
    z-index: 4100;
    background: rgba(10,10,10,0.98);
    transition: right 0.35s ease;
    padding-top: 76px;
    border-left: 1px solid rgba(255,255,255,0.10);
  }

  .mobile-menu.active { right: 0; }

  .mobile-menu a {
    display: block;
    padding: 16px 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .mobile-menu a:hover {
    background: rgba(217,79,123,0.22);
  }

  /* 메인 영역 상단 공간(모바일 헤더 때문에) */
  .logo-slide {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  /* CTA 버튼은 모바일에서 세로 정렬 */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: min(360px, 92vw);
    min-width: auto;
  }

  /* info-box는 모바일에서 footer처럼 내려가게(겹침 제거) */
  .info-box {
    position: static;
    width: min(420px, 92vw);
    margin: 24px auto 24px;
  }

  /* 챗봇 버튼/박스는 약간 위로 올려서 손가락 터치 편하게 */
  #chatbot-toggle {
    right: 14px;
    bottom: 16px;
  }

  #chatbot-box {
    right: 14px;
    bottom: 70px;
  }
}

/* 아주 작은 화면(아이폰 SE급) */
@media (max-width: 380px) {
  .logo-slide .slide:nth-child(2),
  .logo-slide .slide:nth-child(3) {
    letter-spacing: 6px;
  }
  .tagline { font-size: 13px; }
}
@media (max-width: 768px) {
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 4050; /* mobile-menu(4100)보다 아래 */
  }

  .menu-overlay.active {
    display: block;
  }
}
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* =========================
   Tagline highlight (SAFE)
   - 버튼(.btn)에는 영향 없음
========================= */
.tagline {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* shimmer line */
.tagline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.55),
    transparent
  );
  animation: taglineShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes taglineShimmer {
  0% { left: -120%; }
  55% { left: 140%; }
  100% { left: 140%; }
}


/* =========================
   CTA button hard-fix (보험)
========================= */
.cta-buttons a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.cta-buttons a.btn:active {
  transform: scale(0.96);
}

/* =========================
   Chatbot button pulse (쿵쾅)
========================= */
#chatbot-toggle {
  animation: chatbotPulse 1.6s ease-in-out infinite;
  transform-origin: center;
}

/* "쿵-쾅" 느낌: 두 번 뛰고 잠깐 쉬는 리듬 */
@keyframes chatbotPulse {
  0%   { transform: scale(1);   box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
  10%  { transform: scale(1.07); box-shadow: 0 14px 34px rgba(217,79,123,0.45); }
  20%  { transform: scale(1);   box-shadow: 0 10px 24px rgba(0,0,0,0.25); }

  30%  { transform: scale(1.06); box-shadow: 0 14px 34px rgba(217,79,123,0.42); }
  40%  { transform: scale(1);   box-shadow: 0 10px 24px rgba(0,0,0,0.25); }

  100% { transform: scale(1);   box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
}

/* 눌렀을 때는 애니메이션 잠깐 멈추고 '눌림' 강조 */
#chatbot-toggle:active {
  animation: none;
  transform: scale(0.95);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* ===== Style Finder (Tabs + Quiz) ===== */
.style-finder { width: min(760px, 92vw); margin: 26px auto 0; text-align: center; }
.sf-title { margin: 0; font-size: 18px; color: #fff; }
.sf-sub { margin: 8px 0 14px; font-size: 13px; color: rgba(255,255,255,0.85); }

.sf-tabs { display: inline-flex; gap: 10px; padding: 6px; border-radius: 999px; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(10px); }
.sf-tab {
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-weight: 800;
  cursor: pointer;
}
.sf-tab.active { background: rgba(217,79,123,0.28); color: #fff; }

.sf-card {
  margin-top: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(10px);
  text-align: left;
}

.sf-pane { display: none; }
.sf-pane.active { display: block; }

.sf-q { margin: 12px 0; }
.sf-qtitle { font-weight: 900; font-size: 13px; color: rgba(255,255,255,0.92); margin-bottom: 8px; }
.sf-opts { display: flex; gap: 10px; flex-wrap: wrap; }

.sf-btn {
  flex: 1 1 160px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.sf-btn:hover { transform: translateY(-1px); border-color: rgba(217,79,123,0.7); }
.sf-btn.active { background: rgba(217,79,123,0.28); border-color: rgba(217,79,123,0.85); }

.sf-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.sf-rtitle { font-weight: 900; font-size: 13px; margin-bottom: 6px; color: #fff; }
.sf-rbody { font-size: 13px; color: rgba(255,255,255,0.92); line-height: 1.45; }
.sf-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .sf-btn { flex: 1 1 120px; }
}

/* ================= 시술하기 및 상담하기 버튼 화면  ================= */
.sf-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.sf-actions .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* 갤러리 버튼 */
.sf-actions .sfGalleryBtn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}

.sf-actions .sfGalleryBtn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* 카카오 버튼 (분홍 강조) */
.sf-actions .sfKakaoBtn {
  background: linear-gradient(135deg, #ff6fa3, #ff4f8a);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 79, 138, 0.35);
}

.sf-actions .sfKakaoBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 79, 138, 0.45);
}

/* ✅ Multilingual SEO snippet */
.seo-multi{
  max-width: 900px;
  margin: 18px auto;
  padding: 14px 16px;
}

.seo-multi h2{
  margin: 0 0 6px;
  font-size: 14px;
}

.seo-multi p{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* 화면엔 안 보이게, 크롤러/접근성은 유지 */
.seo-hidden{
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .sf-actions .btn {
    font-size: 16px;
    padding: 16px 0;
  }
}


