/* ===== NARAE HAIR SALON - COMMON STYLES ===== */
/* Shared styles for all pages - Art Deco Design */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --cream: #faf7f2;
  --cream-dark: #f5f0e8;
  --gold: #d4a574;
  --gold-light: #e8c9a8;
  --gold-dark: #b8956a;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --white: #ffffff;

  /* Typography - Font Weights (can be overridden by CMS) */
  --font-weight-heading: 400;
  --font-weight-body: 400;
  --font-weight-accent: 600;

  /* Fonts */
  --heading-font: 'Poiret One', cursive;
  --body-font: 'Josefin Sans', sans-serif;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--body-font);
  font-weight: var(--font-weight-body);
  background: var(--cream);
  color: var(--stone-700);
  overflow-x: hidden;
-webkit-tap-highlight-color: transparent;
  position: relative;
  animation: fadeInPage 0.6s ease-out;
}

h1, h2, h3, .nav-link {
  font-family: var(--heading-font);
  font-weight: var(--font-weight-heading);
}

/* ===== ART DECO BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to bottom, transparent 5%, var(--gold-light) 15%, var(--gold-light) 85%, transparent 95%) 30px 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, transparent 10%, var(--gold-light) 20%, var(--gold-light) 80%, transparent 90%) 35px 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, transparent 5%, var(--gold-light) 15%, var(--gold-light) 85%, transparent 95%) calc(100% - 30px) 0 / 1px 100% no-repeat,
    linear-gradient(to bottom, transparent 10%, var(--gold-light) 20%, var(--gold-light) 80%, transparent 90%) calc(100% - 35px) 0 / 1px 100% no-repeat;
  opacity: 0.35;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(135deg, var(--gold-light) 0%, transparent 60%) 30px 20px / 40px 40px no-repeat,
    linear-gradient(225deg, var(--gold-light) 0%, transparent 60%) calc(100% - 30px) 20px / 40px 40px no-repeat,
    linear-gradient(45deg, var(--gold-light) 0%, transparent 60%) 30px calc(100% - 20px) / 40px 40px no-repeat,
    linear-gradient(-45deg, var(--gold-light) 0%, transparent 60%) calc(100% - 30px) calc(100% - 20px) / 40px 40px no-repeat;
  opacity: 0.25;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gentleZoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes goldGlow { 0%, 100% { box-shadow: 0 0 5px rgba(212,175,55,0.3); } 50% { box-shadow: 0 0 20px rgba(212,175,55,0.5), 0 0 30px rgba(212,175,55,0.2); } }
@keyframes subtleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollDotBounce { 0%, 100% { top: 6px; opacity: 1; } 50% { top: 16px; opacity: 0.5; } }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem 2rem;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding: 1rem 2rem;
}
.navbar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-link {
  display: flex; align-items: center; text-decoration: none;
  opacity: 0; animation: fadeIn 1s ease 0.3s forwards;
}
.logo-img {
  height: 42px; width: auto;
  transition: transform 0.3s ease;
}
.logo-text {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: var(--font-weight-heading);
  transition: transform 0.3s ease;
}

/* 로고 위치: 가운데 */
.navbar-inner[data-logo-pos="center"] {
  position: relative;
}
.navbar-inner[data-logo-pos="center"] .logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-link {
  position: relative;
  font-size: 1.05rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone-800); text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  opacity: 0; animation: fadeDown 0.6s ease forwards;
  text-shadow: 0 1px 3px rgba(255,255,255,0.8), 0 0 1px rgba(0,0,0,0.1);
  font-weight: var(--font-weight-accent);
}
.nav-link:nth-child(1) { animation-delay: 0.4s; }
.nav-link:nth-child(2) { animation-delay: 0.5s; }
.nav-link:nth-child(3) { animation-delay: 0.6s; }
.nav-link:nth-child(4) { animation-delay: 0.7s; }
.nav-link:nth-child(5) { animation-delay: 0.8s; }
.nav-link:hover { color: var(--gold-dark); }
.nav-link::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold-dark); }
.nav-link.active::after { width: 100%; }

/* Mobile Menu */
/* ===== ART DECO MOBILE MENU ===== */
#mobileMenuBtn {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  position: relative;
  z-index: 1000;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobileMenuBtn::before,
#mobileMenuBtn::after {
  content: '';
  position: absolute;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
#mobileMenuBtn::before {
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  border-width: 1px 0 0 1px;
}
#mobileMenuBtn::after {
  bottom: 3px; right: 3px;
  width: 8px; height: 8px;
  border-width: 0 1px 1px 0;
}
#mobileMenuBtn:hover::before,
#mobileMenuBtn:hover::after { opacity: 1; }
#mobileMenuBtn:hover {
  background: rgba(212,175,55,0.08);
  box-shadow: 0 0 15px rgba(212,175,55,0.15);
}
#mobileMenuBtn.open {
  background: rgba(212,175,55,0.08);
  border-color: var(--gold);
  transform: rotate(90deg);
}
#mobileMenuBtn.open::before,
#mobileMenuBtn.open::after { opacity: 1; }
#mobileMenuBtn span {
  display: block;
  height: 1.5px;
  background: var(--gold);
  position: absolute;
  left: 50%; transform: translateX(-50%);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
#mobileMenuBtn span:nth-child(1) { top: 14px; width: 18px; }
#mobileMenuBtn span:nth-child(2) { top: 21px; width: 12px; }
#mobileMenuBtn span:nth-child(3) { top: 28px; width: 18px; }
#mobileMenuBtn.open span:nth-child(1) { top: 21px; width: 16px; transform: translateX(-50%) rotate(45deg); }
#mobileMenuBtn.open span:nth-child(2) { opacity: 0; width: 0; }
#mobileMenuBtn.open span:nth-child(3) { top: 21px; width: 16px; transform: translateX(-50%) rotate(-45deg); }

#mobileMenuOverlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
#mobileMenuOverlay.show { opacity: 1; pointer-events: auto; }

#mobileMenuPanel {
  position: fixed;
  top: 80px; right: 20px;
  width: 220px;
  background: var(--cream);
  border: 2px solid var(--gold);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  /* JS가 직접 opacity, transform, visibility 제어 */
}
#mobileMenuPanel::before {
  content: '';
  position: absolute;
  top: -8px; right: 16px;
  width: 14px; height: 14px;
  background: var(--cream);
  border-left: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  transform: rotate(45deg);
}
.mobile-nav-inner {
  padding: 1rem 0;
}
.mobile-nav-inner a {
  display: block;
  padding: 0.8rem 1.5rem;
  font-family: var(--heading-font);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-700);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,165,116,0.2);
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-inner a:last-child { border-bottom: none; }
.mobile-nav-inner a:hover,
.mobile-nav-inner a:active {
  background: var(--gold);
  color: var(--white);
}
.mobile-nav-inner a.active {
  background: rgba(212,165,116,0.1);
  color: var(--gold-dark);
}

/* ===== SECTIONS - FLEXIBLE LAYOUT ===== */
.section {
  padding: 100px 2rem;
  position: relative;
}
.section-white {
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F3EE 100%);
  position: relative;
}
.section-white::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, transparent 0%, rgba(212,175,55,0.03) 100%),
    radial-gradient(circle at 80% 50%, transparent 0%, rgba(41,37,36,0.02) 100%);
  pointer-events: none;
}
.section-cream { background: var(--cream); }
.section-dark { background: var(--stone-800); color: var(--cream); }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* Art Deco Corner Decorations */
.section-inner::before,
.section-inner::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.section-inner::before {
  top: -20px; left: -20px;
  border-top-width: 2px;
  border-left-width: 2px;
  transform: translate(-10px, -10px);
}
.section-inner::after {
  bottom: -20px; right: -20px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  transform: translate(10px, 10px);
}
.section-dark .section-inner::before,
.section-dark .section-inner::after {
  border-color: var(--gold);
}

/* Section Title - Responsive with clamp() */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, var(--stone-800) 0%, var(--gold-dark) 50%, var(--stone-800) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  transition: letter-spacing 0.3s ease;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-dark .section-title {
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold) 50%, var(--cream) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divider */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 3rem;
}
.divider-line {
  width: 60px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  transform-origin: left;
  animation: drawLine 1s ease forwards;
}
.divider-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
  transform-origin: right;
}
.divider-diamond {
  width: 10px; height: 10px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: subtleFloat 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* Section Text - Flexible height with responsive font */
.section-text {
  max-width: 70ch;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 2;
  color: var(--stone-600);
  letter-spacing: 0.02em;
  min-height: 2em;
  height: auto;
  overflow-wrap: break-word;
}
.section-dark .section-text { color: var(--stone-300); }

/* ===== FLEXIBLE TEXT BOXES ===== */
.text-box, .content-area, [data-editable] {
  min-height: 1.5em;
  height: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--cream);
  color: var(--stone-400);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold);
}
.footer::after {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--gold);
}
.footer p {
  margin: 0;
  line-height: 1.6;
  color: var(--stone-400);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--stone-500);
  text-decoration: none;
  font-family: var(--heading-font);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--gold-dark);
}
.footer-social {
  display: flex; justify-content: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  border-color: var(--gold-dark);
  background: var(--gold);
}
.footer-social svg {
  width: 18px; height: 18px;
  fill: var(--stone-500);
  transition: fill 0.3s ease;
}
.footer-social a:hover svg { fill: var(--white); }

/* ===== BUTTONS ===== */
.btn-book {
  display: inline-block;
  padding: 1.1rem 3.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: var(--heading-font);
  box-shadow: 0 4px 20px rgba(212,165,116,0.4);
  transition: all 0.3s ease;
  touch-action: manipulation;
}
.btn-book:hover {
  box-shadow: 0 6px 20px rgba(212,165,116,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  text-decoration: none;
  font-family: var(--body-font);
  font-weight: var(--font-weight-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.btn-secondary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.25);
}
.btn-secondary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover::after {
  width: 250px;
  height: 250px;
}

.cta-center {
  display: flex; justify-content: center; margin-top: 2.5rem;
  position: relative;
  z-index: 20;
}

/* ===== SOCIAL LINKS - ART DECO ===== */
.social-links {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.social-link {
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto !important;
}
.social-link::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold);
  opacity: 0.5;
  transition: all 0.3s ease;
  pointer-events: none;
}
.social-link:hover {
  background: var(--gold);
}
.social-link:hover::before {
  opacity: 0;
}
.social-link svg {
  width: 24px; height: 24px;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-new {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--cream);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) rotate(45deg);
  transition: all 0.4s ease;
  z-index: 98;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.scroll-top-new::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold);
  opacity: 0.6;
}
.scroll-top-new.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotate(45deg);
}
.scroll-top-new:hover {
  background: var(--gold);
}
.scroll-top-new:hover svg {
  stroke: var(--white);
}
.scroll-top-new svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-dark);
  stroke-width: 2;
  fill: none;
  transform: rotate(-45deg);
  transition: stroke 0.3s ease;
}

/* ===== FLOATING ACTION BUTTONS ===== */
/* 플로팅 버튼 숨김 — 복원 시 display: none 제거 */
.floating-actions {
  position: fixed;
  right: 2rem;
  bottom: 7rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 99;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
  pointer-events: auto;
}
.floating-actions > * {
  pointer-events: auto;
}
.floating-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  font-family: 'Bodoni Moda', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: rgba(250, 247, 242, 0.95);
  color: var(--stone-700);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  touch-action: auto;
}
.floating-btn * {
  pointer-events: none;
}
.floating-btn:hover {
  background: var(--gold);
  color: var(--white);
}
.floating-btn-primary {
  background: var(--gold);
  color: var(--white);
}
.floating-btn-primary:hover {
  background: var(--gold-dark);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.stagger-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANNOUNCEMENT POPUP ===== */
.announcement-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 1rem;
}
.announcement-popup.active {
  opacity: 1;
  visibility: visible;
}
.announcement-content {
  background: var(--cream);
  border: 2px solid var(--gold);
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
/* Art Deco corner decorations - all 4 corners */
.announcement-content::before,
.announcement-content::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 1;
}
.announcement-content::before {
  top: 8px; left: 8px;
  border-width: 2px 0 0 2px;
}
.announcement-content::after {
  bottom: 8px; right: 8px;
  border-width: 0 2px 2px 0;
}
/* Additional top-right and bottom-left corners via inner elements */
.announcement-header::before {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 2px 2px 0 0;
}
.announcement-footer::after {
  content: '';
  position: absolute;
  bottom: 8px; left: 8px;
  width: 24px; height: 24px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0 0 2px 2px;
}
.announcement-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gold-light);
  text-align: center;
  position: relative;
}
/* Art Deco geometric divider */
.announcement-header-divider {
  font-family: var(--heading-font);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  opacity: 0.7;
}
.announcement-type {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.announcement-type.holiday {
  background: #e74c3c;
}
.announcement-type.promotion {
  background: #27ae60;
}
.announcement-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.announcement-body {
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--stone-600);
  line-height: 2;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
}
/* Background image mode */
.announcement-content.image-background .announcement-body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.announcement-content.image-background .announcement-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 242, 0.85);
  z-index: 0;
}
.announcement-content.image-background .announcement-body > * {
  position: relative;
  z-index: 1;
}
/* Announcement image styles */
.announcement-image {
  width: 100%;
  overflow: hidden;
}
.announcement-image img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
}
.announcement-image.image-top {
  border-bottom: 1px solid var(--gold-light);
}
.announcement-image.image-bottom {
  border-top: 1px solid var(--gold-light);
}
.announcement-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.announcement-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--stone-500);
  cursor: pointer;
}
.announcement-checkbox input {
  accent-color: var(--gold);
}
.announcement-close {
  padding: 0.6rem 1.5rem;
  background: var(--gold);
  border: none;
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s ease;
}
.announcement-close:hover {
  background: var(--gold-dark);
}

/* ===== MODAL STYLES ===== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
  padding: 1rem;
  pointer-events: none;
}
.modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-content {
  background: var(--cream);
  padding: 3rem;
  max-width: 500px; width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  background: transparent; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
  z-index: 1000;
  pointer-events: auto;
}
.modal-close svg {
  width: 24px; height: 24px;
  stroke: var(--stone-600); stroke-width: 2;
  pointer-events: none;
}
.modal-title {
  font-size: 1.5rem; letter-spacing: 0.2em;
  text-align: center; margin-bottom: 0.5rem;
}

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--stone-600); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 0.9rem 1rem;
  border: 1px solid var(--stone-300);
  background: var(--white);
  font-family: var(--body-font);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%; padding: 1rem;
  background: var(--gold);
  border: none; color: var(--white);
  font-family: var(--heading-font);
  font-size: 0.95rem; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  touch-action: manipulation;
}
.btn-submit:hover { background: var(--gold-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
  text-align: center; padding: 1rem;
  margin-top: 1rem; font-size: 0.9rem;
}
.form-message.success { background: #d4edda; color: #155724; }
.form-message.error { background: #f8d7da; color: #721c24; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
  pointer-events: none;
}
.lightbox.active { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-content {
  position: relative;
  max-width: 90vw; max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
}
.lightbox-img-wrapper img, .lightbox-content video {
  max-width: 100%; max-height: 75vh;
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute; top: -50px; right: 0;
  width: 40px; height: 40px;
  background: transparent; border: none;
  cursor: pointer;
  touch-action: manipulation;
}
.lightbox-close svg {
  width: 30px; height: 30px;
  stroke: var(--white); stroke-width: 2;
}
.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
  touch-action: manipulation;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav svg {
  width: 24px; height: 24px;
  stroke: var(--white); stroke-width: 2; fill: none;
}
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.95);
  margin-top: 1.2rem;
  font-size: 1rem;
  width: 100%;
  max-width: 500px;
  line-height: 1.8;
  padding: 0 1.5rem;
  background: transparent;
  font-family: var(--heading-font);
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section-inner::before,
  .section-inner::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  #mobileMenuBtn { display: block; }
  #mobileMenuOverlay { display: block; }
  .logo-text { font-size: 1.3rem; }
  .logo-img { height: 36px; }
  /* 모바일 성능: 무거운 효과 제거 */
  .navbar.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  body::before, body::after { display: none; }

  .section { padding: 80px 1.5rem; }

  .floating-actions {
    right: 1rem;
    bottom: 5.5rem;
  }
  .floating-btn {
    padding: 0.7rem 1rem;
    font-size: 0.75rem;
  }

  .scroll-top-new {
    width: 44px;
    height: 44px;
    right: 1rem;
    bottom: 1rem;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .modal-content {
    padding: 1.5rem;
    max-width: 90%;
    max-height: 85vh;
  }

  .footer-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .section { padding: 60px 1.5rem; }

  .announcement-content {
    margin: 1rem;
  }
  .announcement-footer {
    flex-direction: column;
  }
}


/* ===== DETAIL ANIMATIONS & EFFECTS ===== */

/* 부드러운 스크롤 */
html { scroll-behavior: smooth; }

/* 텍스트 셀렉션 색상 */
::selection {
  background: rgba(212,175,55,0.25);
  color: var(--stone-800);
}
::-moz-selection {
  background: rgba(212,175,55,0.25);
  color: var(--stone-800);
}

/* 페이지 입장 애니메이션 */
body {
  animation: pageEnter 0.5s ease-out;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 페이지 전환 애니메이션 - 링크 클릭 시 */
body.page-leaving {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ---- 버튼 호버 효과 (빛/그림자/색상) ---- */
.btn-book {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-book:hover {
  box-shadow: 0 6px 25px rgba(212,165,116,0.5);
  filter: brightness(1.08);
}
.btn-book:active {
  filter: brightness(0.95);
  box-shadow: 0 2px 10px rgba(212,165,116,0.3);
}

/* "I Don't Know What to Do" 버튼 - 서브페이지용 */
.btn-help-ghost {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--heading-font);
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: manipulation;
}
.btn-help-ghost:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(212,165,116,0.3);
}

/* CTA 버튼 그룹 가로 정렬 */
.cta-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
  box-shadow: 0 4px 20px rgba(212,165,116,0.3);
}

/* ---- 네비게이션 호버는 하단 통합 규칙에서 관리 ---- */
/* ---- 카드 호버는 하단 통합 규칙에서 관리 ---- */

/* ---- 소셜 아이콘 호버 ---- */
.social-link {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.social-link:hover {
  box-shadow: 0 0 15px rgba(212,175,55,0.3);
}

.footer-social a {
  transition: all 0.3s ease;
}
.footer-social a:hover {
  box-shadow: 0 0 12px rgba(212,175,55,0.25);
}

/* ---- 갤러리 아이템 호버는 하단 통합 규칙에서 관리 ---- */

/* ---- 디바이더 애니메이션 ---- */
.divider-line {
  transform-origin: center;
}
.reveal.active .divider-line {
  animation: drawLine 0.8s ease forwards;
}
.divider-diamond {
  transition: box-shadow 0.4s ease;
}
.divider:hover .divider-diamond {
  box-shadow: 0 0 15px rgba(212,175,55,0.4);
}

/* ---- 섹션 장식 코너 ---- */
.section-inner::before,
.section-inner::after {
  transition: opacity 0.5s ease;
}
.section:hover .section-inner::before,
.section:hover .section-inner::after {
  opacity: 0.7;
}

/* ---- 폼 인풋 포커스 효과 ---- */
input,
textarea,
select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15), 0 0 15px rgba(212,175,55,0.08);
}

/* ---- 모바일 메뉴 호버는 상단 원본 규칙에서 통합 관리 ---- */

/* ---- 스크롤 탑 버튼 ---- */
.scroll-top-new {
  transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease, visibility 0.4s ease;
}
.scroll-top-new:hover {
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* ---- 플로팅 버튼 ---- */
.floating-btn {
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.floating-btn:hover {
  box-shadow: 0 4px 20px rgba(212,175,55,0.35);
}

/* ---- 필터 탭 (갤러리) ---- */
.filter-tab {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.filter-tab:hover {
  box-shadow: 0 0 10px rgba(212,175,55,0.2);
}

/* ---- 라이트박스 ---- */
.lightbox {
  transition: opacity 0.35s ease;
}
.lightbox-nav {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.lightbox-nav:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

/* ---- 공지 배너 닫기 ---- */
.announcement-close {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ---- 네비바 스크롤 ---- */
.navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

/* (reveal/stagger CSS는 line 726~776에 정의됨 — 중복 제거) */

/* 섹션 타이틀 언더라인 드로우 */
.section-title::after {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 서비스 카드 펼침 애니메이션 */
.service-price {
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              padding 0.4s ease;
}

/* 플로팅 버튼 등장 */
.floating-btn-scroll.visible {
  animation: popIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* 툴팁 등장 */
.help-tooltip {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 커서 포인터 피드백 ---- */
.btn-book,
.btn-secondary,
.floating-btn,
.social-link,
.footer-social a,
.filter-tab,
.gallery-item,
.scroll-top-new {
  cursor: pointer;
}

/* ---- 키보드 포커스 링 ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== 고급 페이지 전환 애니메이션 ===== */
body {
  animation: pageSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
body.page-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 모바일 메뉴 오버레이 ===== */
#mobileMenuOverlay {
  transition: opacity 0.25s ease;
}

/* ===== PC 네비게이션 호버 ===== */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--gold);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== 갤러리/트렌드 사진 호버 ===== */
.trends-item,
.gallery-item {
  position: relative;
  overflow: hidden;
}

.trends-item img,
.trends-item video,
.gallery-item img,
.gallery-item video {
  transition: transform 0.4s ease;
}
.trends-item:hover img,
.trends-item:hover video,
.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.03);
}

/* 3D 갤러리 카드 호버 */
.gallery-card {
  transition: box-shadow 0.3s ease;
}
.gallery-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* 트렌드 아이템 정보 오버레이 */
.trends-item .trends-info {
  transition: opacity 0.3s ease;
}

/* ===== 서비스/컨택트 카드 호버 ===== */
.service-card,
.contact-card,
.mission-card,
.price-category {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover,
.contact-card:hover,
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 서비스 아이콘 */
.service-icon {
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* 컨택트 카드 — 상단 골드 라인 */
.contact-card::before {
  transition: transform 0.3s ease;
}
.contact-card:hover::before {
  transform: translateX(0);
}

/* ===== 버튼 자기장(Magnetic) 효과 & 빛 스위프 ===== */
.btn-book,
.btn-secondary,
.hero-btn-primary,
.hero-btn-ghost {
  position: relative;
  overflow: hidden;
}
/* 빛 스위프 효과 */
.btn-book::before,
.hero-btn-primary::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn-book:hover::before,
.hero-btn-primary:hover::before {
  left: 120%;
}

/* 고스트 버튼 테두리 글로우 */
.hero-btn-ghost:hover,
.btn-secondary:hover {
  box-shadow: 0 4px 20px rgba(212,165,116,0.3),
              0 0 40px rgba(212,175,55,0.08);
}

/* ===== 스크롤 리빌 애니메이션 강화 ===== */
/* 회전 리빌 */
.reveal-rotate {
  opacity: 0;
  transform: rotate(-3deg) translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-rotate.active {
  opacity: 1;
  transform: rotate(0) translateY(0);
}

/* 블러 리빌 — 모바일 성능 위해 blur 제거, opacity만 사용 */
.reveal-blur {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-blur.active {
  opacity: 1;
  transform: translateY(0);
}

/* 3D 플립 리빌 */
.reveal-flip {
  opacity: 0;
  transform: perspective(600px) rotateX(15deg) translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-flip.active {
  opacity: 1;
  transform: perspective(600px) rotateX(0) translateY(0);
}

/* ===== 섹션 타이틀 등장 애니메이션 ===== */
.section-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section-title.animated {
  opacity: 1;
  transform: translateY(0);
}
/* 타이틀 밑줄 드로우 */
.section-title::after {
  width: 0;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.section-title.animated::after {
  width: 60px;
}

/* ===== 디바이더 다이아몬드 스핀 ===== */
.divider {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.divider.animated {
  opacity: 1;
}
.divider.animated .divider-diamond {
  animation: diamondSpin 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes diamondSpin {
  from { transform: rotate(45deg) scale(0); opacity: 0; }
  to { transform: rotate(45deg) scale(1); opacity: 1; }
}
.divider.animated .divider-line:first-child {
  animation: lineExpandLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  transform: scaleX(0);
  transform-origin: right;
}
.divider.animated .divider-line:last-child {
  animation: lineExpandRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  transform: scaleX(0);
  transform-origin: left;
}
@keyframes lineExpandLeft {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes lineExpandRight {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ===== 소셜 아이콘 바운스 호버 ===== */
.social-link:hover {
  animation: socialBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes socialBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1.05); }
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ===== 스크롤 탑 버튼 펄스 ===== */
.scroll-top-new.visible {
  animation: scrollTopAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scrollTopAppear {
  from { opacity: 0; transform: translateY(20px) rotate(45deg) scale(0.5); }
  to { opacity: 1; transform: translateY(0) rotate(45deg) scale(1); }
}

/* ===== 라이트박스 고급 전환 ===== */
.lightbox {
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox-content {
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}

/* ===== 모달 등장 스케일+블러 ===== */
.modal {
  transition: opacity 0.4s ease;
  backdrop-filter: blur(0px);
}
.modal.active {
  backdrop-filter: blur(6px);
}
.modal-content {
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  opacity: 0;
}
.modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ===== 공지 팝업 고급 등장 ===== */
.announcement-popup {
  backdrop-filter: blur(0px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.announcement-popup.active {
  backdrop-filter: blur(8px);
}
.announcement-content {
  transform: scale(0.88) translateY(30px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.announcement-popup.active .announcement-content {
  transform: scale(1) translateY(0);
}

/* ===== 필터 탭 활성화 애니메이션 ===== */
.filter-tab {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter-tab:hover::after,
.filter-tab.active::after {
  width: 80%;
}
.filter-tab:hover {
  transform: translateY(-2px);
}

/* ===== 폼 인풋 포커스 라벨 효과 ===== */
.form-group input:focus,
.form-group textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.1);
}

/* ===== 3D 카드 틸트 효과 (JS 연동) ===== */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}
.tilt-card > * {
  transform: translateZ(20px);
}

/* ===== 패럴랙스 스크롤 요소 ===== */
.parallax-slow {
  will-change: transform;
  transition: transform 0.1s linear;
}
.parallax-fast {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ===== 텍스트 글리치/타이핑 효과 ===== */
.text-reveal {
  overflow: hidden;
}
.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.text-reveal.animated span {
  transform: translateY(0);
}

/* ===== 이미지 로딩 스켈레톤 ===== */
.img-skeleton {
  background: linear-gradient(90deg,
    var(--cream-dark) 25%,
    var(--cream) 50%,
    var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 카드 호버 시 골드 글로우 아웃라인 ===== */
/* service-card/contact-card의 ::before, ::after는 index.html에서 이미 사용 중이므로
   box-shadow로 골드 글로우 효과 적용 */

/* ===== 커서 따라가는 빛 (JS에서 동적 div 삽입) ===== */
.glow-spot {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.glow-follow:hover .glow-spot {
  opacity: 1;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .stagger-item,
  .reveal-rotate, .reveal-blur, .reveal-flip {
    opacity: 1;
    transform: none;
    transition: none;
    filter: none;
  }

  body {
    animation: none;
  }

  .section-title,
  .divider {
    opacity: 1;
    transform: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
