/* ==========================================================================
   GOMAIGO STUDIO — Global Unified Stylesheet (광역 공통 스타일)
   Design System: Swiss Style × 5-Tone Curated Palette
   Colors:
     #4B3F6E (Deep Blackberry) | #6C5F8D (Slate Violet) | #9C8CB9 (Lavender Iris)
     #BA96C1 (Lilac Orchid Pop) | #DCD7D5 (Tactile Warm Stone) | #D91B42 (Studio Crimson)
   ========================================================================== */

:root {
  /* Brand 5-Tone Palette */
  --color-deep: #4B3F6E;
  --color-violet: #6C5F8D;
  --color-iris: #9C8CB9;
  --color-lilac: #BA96C1;
  --color-stone: #DCD7D5;

  /* Accent Red */
  --color-accent-red: #D91B42;
  --color-accent-red-hover: #B81334;
  --color-accent-red-bg: #FFF0F3;
  --color-accent-red-border: rgba(217, 27, 66, 0.28);

  /* Surfaces */
  --bg-canvas: #FFFFFF;
  --bg-stone-soft: #F8F7F9;
  --bg-lilac-subtle: #F6F3F8;
  --bg-dark-accent: #4B3F6E;

  /* Typography Colors */
  --text-main: #1C1924;
  --text-body: #494554;
  --text-muted: #7E7A8A;
  --text-white: #FFFFFF;

  /* Borders & Shadows */
  --border-swiss: #4B3F6E;
  --border-stone: #DCD7D5;
  --border-subtle: #EDEAEF;
  --radius-pill: 9999px;
  --radius-card: 14px;
  --radius-box: 14px;
  --radius-modal: 16px;

  /* Typography */
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;

  /* Transitions */
  --ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Bulletproof Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP TICKER TAPE (공통 상단 티커)
   ========================================================================== */
.swiss-top-ticker {
  background: var(--color-deep);
  color: var(--text-white);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 0;
  border-bottom: 2px solid var(--color-deep);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-slide 32s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  margin-right: 36px;
}

.ticker-pill-dot {
  width: 7px;
  height: 7px;
  background: var(--color-lilac);
  border-radius: 50%;
  display: inline-block;
  margin-right: 9px;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   UNIFIED STUDIO HEADER (광역 공통 헤더)
   ========================================================================== */
.studio-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  width: 100%;
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* Pure Graphic Logo (그림만 있는 로고 - 글자 절대 없음) */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-symbol {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s var(--ease-snappy);
}

.brand-logo-symbol:hover {
  transform: scale(1.08) rotate(4deg);
}

/* Desktop Navigation Menu (데스크탑 중앙 네비게이션) */
.desktop-nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.desktop-nav-link {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--color-deep);
  text-decoration: none;
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.desktop-nav-link:hover {
  color: var(--color-accent-red);
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent-red);
  transition: width 0.2s var(--ease-snappy);
}

.desktop-nav-link:hover::after,
.desktop-nav-link.active::after {
  width: 100%;
}

.desktop-nav-link.active {
  color: var(--color-accent-red);
}

/* Header Action Group (우측 버튼 그룹) */
.header-action-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.naver-chip {
  background: #03C75A;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

.btn-header-blog {
  background: var(--bg-stone-soft);
  color: var(--color-deep);
  border: 1.5px solid var(--border-stone);
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  box-shadow: 2px 2px 0 var(--border-stone);
  transition: all 0.2s var(--ease-snappy);
  white-space: nowrap;
}

.btn-header-blog:hover {
  border-color: var(--color-deep);
  box-shadow: 3px 3px 0 var(--color-deep);
  transform: translate(-1px, -1px);
}

.btn-header-quote {
  background: var(--color-deep);
  color: var(--text-white);
  border: 2px solid var(--color-deep);
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0 var(--color-stone);
  transition: all 0.2s var(--ease-snappy);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-header-quote:hover {
  background: var(--color-accent-red);
  border-color: var(--color-accent-red);
  box-shadow: 4px 4px 0 var(--color-deep);
  transform: translate(-2px, -2px);
}

/* Swiss Hamburger Toggle Button */
.btn-hamburger {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 2px solid var(--color-deep);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--color-deep);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s var(--ease-snappy);
  padding: 0;
  flex-shrink: 0;
}

.btn-hamburger:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--color-accent-red);
  border-color: var(--color-accent-red);
}

.btn-hamburger .bar {
  width: 20px;
  height: 2px;
  background: var(--color-deep);
  border-radius: 2px;
}

/* ==========================================================================
   UNIFIED SLIDE-OUT DRAWER (광역 공통 모바일 메뉴)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(75, 63, 110, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.swiss-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 88vw;
  height: 100%;
  background: #FFFFFF;
  border-left: 2px solid var(--color-deep);
  box-shadow: -8px 0 32px rgba(75, 63, 110, 0.16);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.32s var(--ease-snappy);
  overflow-y: auto;
}

.swiss-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-deep);
  background: var(--bg-stone-soft);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-logo-symbol {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--color-deep);
  background: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--color-deep);
}

.drawer-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.drawer-tag {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--color-violet);
  margin-bottom: 14px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1.5px solid var(--border-stone);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 2px 2px 0 var(--border-stone);
  transition: all 0.2s var(--ease-snappy);
}

.drawer-nav-item:hover {
  border-color: var(--color-deep);
  box-shadow: 4px 4px 0 var(--color-deep);
  transform: translate(-2px, -2px);
  background: var(--bg-stone-soft);
}

.drawer-nav-item.active {
  border-color: var(--color-deep);
  background: var(--bg-stone-soft);
  box-shadow: 3px 3px 0 var(--color-deep);
}

.drawer-nav-item .item-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-deep);
  flex: 1;
  margin-left: 0;
}

.drawer-nav-item .item-arrow {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-deep);
  transition: transform 0.2s;
}

.drawer-nav-item:hover .item-arrow {
  transform: translateX(4px);
  color: var(--color-accent-red);
}

.drawer-divider {
  height: 1px;
  background: var(--border-stone);
  margin: 24px 0;
}

.drawer-cta-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-blog-btn {
  background: var(--bg-stone-soft);
  border: 1.5px solid var(--border-stone);
  color: var(--color-deep);
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--border-stone);
}

.drawer-quote-btn {
  background: var(--color-deep);
  color: #FFFFFF;
  border: 2px solid var(--color-deep);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 3px 3px 0 var(--color-stone);
}

.drawer-contact-card {
  margin-top: 24px;
  background: var(--bg-lilac-subtle);
  border: 1.5px solid var(--color-iris);
  border-radius: 12px;
  padding: 16px 18px;
}

.contact-card-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-violet);
  margin-bottom: 4px;
}

.contact-card-tel {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-deep);
  letter-spacing: -0.02em;
}

.contact-card-hours {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   UNIFIED FOOTER (광역 공통 푸터)
   ========================================================================== */
.clean-footer {
  background: #FFFFFF;
  border-top: 2px solid var(--color-deep);
  padding: 60px 0 40px;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

/* Pure Graphic Footer Logo (그림만 있는 로고) */
.footer-logo-symbol {
  height: 48px;
  width: 48px;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-col-title {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-deep);
  margin-bottom: 14px;
}

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

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-body);
  font-weight: 600;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-accent-red);
}

.footer-official-divider {
  height: 1px;
  background: var(--border-stone);
  margin: 28px 0 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GLOBAL RESPONSIVE BREAKPOINTS (광역 반응형 규칙)
   ========================================================================== */
@media (min-width: 1024px) {
  .btn-hamburger {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .desktop-nav-menu {
    display: none !important;
  }
  .btn-hamburger {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  /* Mobile Header: Clean Logo + Hamburger only, no overflow */
  .btn-header-blog,
  .btn-header-quote {
    display: none !important;
  }
  .header-action-group {
    gap: 0;
  }
  .header-layout {
    gap: 12px;
  }
  .brand-logo-symbol {
    height: 40px;
    width: 40px;
  }
  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

