@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&family=Noto+Sans+KR:wght@300;400;500;600;700;900&display=swap');

:root {
  --bg-ivory: #FAF8F5;
  --bg-cream: #F4EFEA;
  --bg-cream-light: rgba(244, 239, 234, 0.45);
  --color-warm-sand: #BFA588;
  --color-warm-sand-hover: #AA8F71;
  --color-olive: #5C6754;
  --color-olive-hover: #495342;
  --color-dark-gray: #2E2B2A;
  --color-dark-muted: rgba(46, 43, 42, 0.75);
  --color-border: #E8E0D7;
  --color-border-subtle: rgba(232, 224, 215, 0.6);
  --font-serif: 'Nanum Myeongjo', serif, -apple-system, sans-serif;
  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ivory);
  color: var(--color-dark-gray);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

/* Typography */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  background: transparent;
}

header.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(46, 43, 42, 0.05);
  border-bottom: 1px solid var(--color-border-subtle);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-gray);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-weight: 400;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-warm-sand);
}

.nav-link.active {
  font-weight: 700;
}

.btn-book {
  background-color: var(--color-olive);
  color: var(--bg-ivory) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(92, 103, 84, 0.2);
}

.btn-book:hover {
  background-color: var(--color-olive-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 103, 84, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark-gray);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Mobile Menu Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  flex-direction: column;
  gap: 1.2rem;
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

.mobile-nav .btn-book {
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.8rem 1.4rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(250, 248, 245, 0.7) 0%, rgba(250, 248, 245, 0.3) 50%, rgba(250, 248, 245, 0.05) 100%);
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  max-width: 480px;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: slideInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-dark-gray);
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-dark-muted);
  font-weight: 400;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-olive);
  color: var(--bg-ivory);
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(92, 103, 84, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-olive-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 103, 84, 0.35);
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background-color: var(--bg-cream-light);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--color-dark-gray);
}

.about-desc {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-dark-muted);
  font-weight: 300;
  margin-bottom: 3rem;
}

.branch-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-branch {
  background-color: var(--bg-ivory);
  color: var(--color-dark-gray);
  border: 1px solid var(--color-border);
  padding: 1rem 2rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-branch:hover {
  background-color: var(--color-warm-sand);
  color: var(--bg-ivory);
  border-color: var(--color-warm-sand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(191, 165, 136, 0.3);
}

/* Gallery Section */
.gallery-section {
  padding: 6rem 0;
  background-color: var(--bg-ivory);
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-dark-gray);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.gallery-subtitle {
  color: var(--color-dark-muted);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-cream);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 43, 42, 0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(46, 43, 42, 0.25);
}

.gallery-instagram-cta {
  text-align: center;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-olive);
  color: var(--bg-ivory);
  padding: 1.1rem 2.2rem;
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(92, 103, 84, 0.25);
}

.btn-instagram:hover {
  background-color: var(--color-olive-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 103, 84, 0.35);
}

.btn-instagram svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Branch Detail Pages */
.branch-detail-page {
  padding-top: 7rem;
  padding-bottom: 5rem;
  min-height: 100vh;
}

.branch-header {
  text-align: center;
  margin-bottom: 3rem;
}

.branch-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-dark-gray);
  margin-bottom: 0.75rem;
}

.branch-subtitle {
  font-size: 1.2rem;
  color: var(--color-dark-muted);
}

.branch-hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.branch-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.info-card h2, .guide-card h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark-gray);
  margin-bottom: 1.8rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  color: var(--color-olive);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-label {
  font-weight: 700;
  color: var(--color-dark-gray);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.info-text {
  color: var(--color-dark-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.guide-card {
  background-color: var(--bg-cream-light);
  padding: 2.2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
}

.guide-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-olive);
  color: var(--bg-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step-text {
  color: var(--color-dark-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* Benefit Cards with Perfect Line Alignment */
.benefit-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-border-subtle);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefit-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-olive);
  color: var(--bg-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-dark-gray);
  margin: 0;
  line-height: 1.35;
}

.benefit-body {
  margin-top: 0.5rem;
  padding-left: calc(26px + 0.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.benefit-subitem {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--color-dark-muted);
  line-height: 1.55;
}

.benefit-subitem .bullet {
  color: var(--color-olive);
  font-weight: 700;
}

.benefit-desc {
  font-size: 0.92rem;
  color: var(--color-dark-muted);
  line-height: 1.55;
  margin: 0;
}

.guide-notes {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(46, 43, 42, 0.1);
}

.guide-notes h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-dark-gray);
}

.guide-notes p {
  font-size: 0.92rem;
  color: var(--color-dark-muted);
  line-height: 1.6;
}

/* Studio Intro Callout Box */
.studio-intro-box {
  background: #F4ECE1;
  background: linear-gradient(135deg, #F5EDE3 0%, #FAF6F0 100%);
  padding: 2.2rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 20px rgba(46, 43, 42, 0.05);
  margin-top: 0.5rem;
  margin-bottom: 4.5rem;
  text-align: center;
  position: relative;
}

.studio-intro-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-olive);
  border-radius: 9999px;
}

.studio-intro-text {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--color-dark-gray);
  font-weight: 400;
  max-width: 860px;
  margin: 0 auto;
  word-break: keep-all;
}

.studio-intro-text strong {
  color: var(--color-dark-gray);
  font-weight: 700;
}

.btn-naver-booking {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--color-olive);
  color: var(--bg-ivory);
  padding: 1.1rem 2.2rem;
  border-radius: 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  width: 100%;
  box-shadow: 0 4px 16px rgba(92, 103, 84, 0.25);
}

.btn-naver-booking:hover {
  background-color: var(--color-olive-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 103, 84, 0.35);
}

.btn-naver-booking svg {
  width: 22px;
  height: 22px;
}

/* Footer */
footer {
  background-color: var(--bg-cream-light);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2.5rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark-gray);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--color-dark-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark-gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  color: var(--color-warm-sand);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-gray);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-dark-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-warm-sand);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(46, 43, 42, 0.6);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .branch-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-card {
    max-width: 100%;
    margin-top: 5rem;
    padding: 1.8rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .branch-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .branch-hero-image-wrapper {
    aspect-ratio: 4 / 3;
  }
}
