/* ==========================================================================
   8TH HEAVEN BEAUTY — ARCHITECTURAL MONOCHROME DESIGN SYSTEM
   Aesthetic: Confident Black & White Minimalism, Editorial Spatial Rigor
   Engine: Natural Scroll-Driven Choreography, Spring Physics, Clean Typography
   Palette: Stark Obsidian Monochrome (#08080a, #ffffff, #27272a, #71717a)
   Zero-Buzzword Policy: 100% Free of artificial clichés
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* 8pt Baseline Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Color System: Deep Obsidian Monochrome */
  --color-black: #08080a;
  --color-black-pure: #040405;
  --color-black-card: #0e0e12;
  --color-black-elevated: #141419;
  
  --color-white: #ffffff;
  --color-white-soft: #fcfcfc;
  --color-gray-100: #f4f4f5;
  --color-gray-400: #a1a1aa;
  --color-gray-500: #71717a;
  --color-gray-600: #52525b;
  --color-gray-800: #27272a;
  
  /* Monochrome Accents */
  --color-accent: #ffffff;
  --color-accent-muted: #a1a1aa;
  --color-accent-border: rgba(255, 255, 255, 0.15);

  /* Unified Typography Stacks: Inter with Full Polish & Ukrainian Diacritics */
  --font-grotesque: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-editorial: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Inter', Georgia, serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Motion Spring Curves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring-snappy: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Architectural Mode */
body.font-style-architectural {
  --font-editorial: 'Inter', sans-serif;
  --font-serif: 'Inter', sans-serif;
}

/* Global Reset & Base */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-black);
  color: #f4f4f5;
  font-family: var(--font-sans);
  overflow-x: hidden;
  letter-spacing: -0.01em;
  position: relative;
}

/* Editorial Tactile Grain Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.022'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 20;
}

::selection {
  background-color: #ffffff;
  color: #000000;
}

/* Custom Scrollbar - Ultra Slim Minimalist */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--color-black);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-800);
}
::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

/* ==================== HERO SCROLL-DRIVEN SCENE ==================== */
#hero-scene {
  position: relative;
  width: 100%;
  height: 185vh;
  background-color: var(--color-black);
}

#hero-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
}

#hero-img-wrap-1,
#hero-img-wrap-2 {
  will-change: transform, opacity;
  transform-origin: center center;
}

#hero-img-1,
#hero-img-2 {
  will-change: transform;
  transform-origin: center center;
  transition: object-position 0.2s ease-out;
}

#hero-state-1,
#hero-state-2 {
  will-change: transform, opacity;
}

/* ==================== TYPOGRAPHY HELPERS ==================== */
.font-grotesque {
  font-family: var(--font-grotesque);
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-editorial {
  font-family: var(--font-editorial);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-italic-serif {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
}

/* Brand Numeral Optical Balancing: ensures digit 8 matches exact cap-height and baseline of text */
.brand-num {
  display: inline-block;
  transform: scale(0.925);
  transform-origin: bottom center;
}
body.font-style-architectural .brand-num {
  transform: scale(0.96);
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Editorial Gradient Text */
.text-pink-gradient {
  background: linear-gradient(180deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-editorial-white {
  background: linear-gradient(180deg, #ffffff 30%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hairline Editorial Borders */
.hairline-b {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hairline-t {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hairline-x {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== 1. SUBTLE AMBIENT MESH ==================== */
.bg-mesh {
  position: relative;
  overflow: hidden;
}

.bg-mesh::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(255, 255, 255, 0.015) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

/* ==================== 2. INFINITE HIGH-FASHION MARQUEE ==================== */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

/* ==================== 3. SCROLL-TRIGGERED STAGGER CASCADE ==================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.85s var(--ease-spring), transform 0.85s var(--ease-spring);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Cascade delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==================== 4. ARCHITECTURAL PANELS & CARDS ==================== */
.motion-card {
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.motion-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.85);
}

/* Glassmorphism & High-Fashion Panels */
.editorial-panel {
  background: rgba(14, 14, 18, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s ease;
}

.editorial-panel:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.8);
}

/* Header Morphing on Scroll */
#main-nav {
  transition: padding 0.4s var(--ease-spring), background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

#main-nav.scrolled {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Neutral Accents */
.pink-glow {
  box-shadow: 0 0 30px -5px rgba(255, 255, 255, 0.1);
}

.pink-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ==================== 5. BUTTONS & MICRO-INTERACTIONS ==================== */
.btn-fashion {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  transition: all 0.4s var(--ease-spring);
  z-index: 1;
  will-change: transform;
}

.btn-fashion:active {
  transform: scale(0.97) translateY(1px);
}

/* Primary Contrast White Button */
.btn-fashion-pink {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.btn-fashion-pink::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e4e4e7;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.btn-fashion-pink:hover {
  color: #000000 !important;
  box-shadow: 0 10px 30px -5px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-fashion-pink:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Stark Monochrome White / Black Outline Button */
.btn-fashion-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-fashion-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.btn-fashion-outline:hover {
  color: #000000 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-fashion-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hairline Monochrome Border Button */
.btn-fashion-pink-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-fashion-pink-outline:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.12);
}

/* ==================== LOOKBOOK & GALLERY CARDS (NATURAL AUTHENTIC COLOR) ==================== */
.lookbook-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s var(--ease-spring);
}

.lookbook-card img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lookbook-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.lookbook-card:hover img {
  transform: scale(1.05);
}

/* ==================== ACCESSIBILITY FOCUS RING ==================== */
:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

#cennik :focus-visible,
.light-surface :focus-visible {
  outline: 2px solid #000000 !important;
  outline-offset: 2px !important;
}

/* ==================== LIGHT SECTION: CENNIK & SERVICES ==================== */
.light-surface {
  background-color: #f7f7f9;
  color: #09090b;
}

.service-row-item {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.service-row-item:hover {
  background-color: rgba(0, 0, 0, 0.025);
}

.service-desc-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.service-desc-drawer.open {
  max-height: 250px;
  opacity: 1;
}

/* Accordion Category Panels in Cennik */
.cennik-category-section {
  scroll-margin-top: 110px;
}

.cennik-cat-btn {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cennik-cat-btn:hover {
  background-color: #ffffff;
  border-color: #000000;
}

.cennik-cat-btn[aria-expanded="true"] {
  background-color: #ffffff;
  border-color: #000000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.cennik-arrow-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cennik-cat-btn[aria-expanded="true"] .cennik-arrow-icon {
  transform: rotate(180deg);
}

.direction-row-btn {
  transition: background-color 0.2s ease;
}

.direction-row-btn:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Desktop Navigation Links */
#main-nav nav {
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

#main-nav nav a {
  white-space: nowrap !important;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

#main-nav nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-spring);
}

#main-nav nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Animated Pulse Dot */
.pulsing-dot-pink,
.pulsing-dot {
  position: relative;
}

.pulsing-dot-pink::after,
.pulsing-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseWhite 2s infinite;
  opacity: 0.6;
}

@keyframes pulseWhite {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

/* ==================== STICKY QUICK-BOOKING BAR ==================== */
#sticky-booking-bar {
  transform: translateY(120%);
  transition: transform 0.45s var(--ease-spring);
}

#sticky-booking-bar.visible {
  transform: translateY(0);
}

/* ==================== FAQ ACCORDION ==================== */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.faq-icon {
  transition: transform 0.4s var(--ease-spring);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-spring), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
}

/* Toast Notification */
#toast-notification {
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Modal */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s var(--ease-spring);
}

.modal-backdrop.open .modal-content {
  transform: scale(1) translateY(0);
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #hero-scene {
    height: auto !important;
    min-height: 100vh !important;
  }

  #hero-stage {
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    padding-top: 7rem !important;
    padding-bottom: 5rem !important;
  }

  #hero-state-1,
  #hero-state-2 {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile Hero Slide 2 Centering (keeps all 3 staff faces visible) */
@media (max-width: 767px) {
  #hero-img-2 {
    object-position: 66% 25% !important;
  }
}
