/* ========== SpaxX Design — Editorial Magazine Style ========== */

/* GNB scroll state */
#gnb.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
#gnb.scrolled .gnb-logo-white { opacity: 0; }
#gnb.scrolled .gnb-logo-dark { opacity: 1; }
#gnb.scrolled .gnb-link { color: #666 !important; }
#gnb.scrolled .gnb-link:hover,
#gnb.scrolled .gnb-link.active { color: #0a0a0a !important; }
#gnb.scrolled .gnb-cta { border-color: #0a0a0a; color: #0a0a0a; }
#gnb.scrolled .gnb-cta:hover { background: #0a0a0a; color: #fff; }
#gnb.scrolled .ham-icon span { background: #0a0a0a; }
.gnb-link:hover { color: #fff !important; }
.gnb-link.active { color: #fff !important; }

/* Hamburger */
.ham-icon { width: 22px; height: 16px; position: relative; }
.ham-icon span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; transition: all .3s;
}
.ham-icon span:nth-child(1) { top: 0; }
.ham-icon span:nth-child(2) { top: 7px; }
.ham-icon span:nth-child(3) { top: 14px; }
.ham-open .ham-icon span:nth-child(1) { transform: rotate(45deg); top: 7px; }
.ham-open .ham-icon span:nth-child(2) { opacity: 0; }
.ham-open .ham-icon span:nth-child(3) { transform: rotate(-45deg); top: 7px; }

/* Mobile menu */
#mobileMenu.active { pointer-events: auto; opacity: 1; }
#mobileMenu.active .mobile-drawer { transform: translateX(0); }

/* Page hero */
.page-hero {
  position: relative; min-height: 50vh; display: flex; align-items: flex-end;
  background: #0a0a0a; padding: 100px 0 60px; overflow: hidden;
}
.page-hero .hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4;
}

/* Editorial typography */
.ed-title {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.03em;
  line-height: 1.4 !important;
}
.ed-title.ed-hero {
  line-height: 1.25 !important;
}
.ed-title em {
  font-style: normal;
}
.ed-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: #999;
}

/* Section divider */
.sec-divider { width: 60px; height: 1px; background: #0a0a0a; margin: 20px 0; }
.sec-divider.light { background: rgba(255,255,255,.3); }

/* Scroll animations */
.anim-up { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.anim-up.show { opacity: 1; transform: translateY(0); }
.anim-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s ease; }
.anim-left.show { opacity: 1; transform: translateX(0); }
.anim-right { opacity: 0; transform: translateX(40px); transition: opacity .8s ease, transform .8s ease; }
.anim-right.show { opacity: 1; transform: translateX(0); }
.anim-fade { opacity: 0; transition: opacity 1s ease; }
.anim-fade.show { opacity: 1; }

/* Image hover */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .8s ease; }
.img-zoom:hover img { transform: scale(1.05); }

/* Editorial card */
.ed-card { position: relative; overflow: hidden; }
.ed-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%; background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  pointer-events: none;
}

/* Floating contact */
.float-contact {
  position: fixed; bottom: 30px; right: 30px; z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.15); transition: transform .3s;
  color: #fff; font-size: 18px;
}
.float-btn:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
  .page-hero { min-height: 40vh; padding: 80px 0 40px; }
  .float-contact { bottom: 20px; right: 16px; }
  .float-btn { width: 46px; height: 46px; font-size: 16px; }
}

html { scroll-behavior: smooth; }
