/* ==========================================================================
   BigMan Barbershop Luzern — 2026 Modern Clean Stylesheet
   ========================================================================== */

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

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-dark: #090a0f;
  --bg-card: #12131c;
  --bg-card-hover: #181926;
  --bg-surface: #1a1b28;
  
  --gold-primary: #e5a93c;
  --gold-light: #f5c87a;
  --gold-dark: #b88226;
  --gold-glow: rgba(229, 169, 60, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 169, 60, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Ambient Glow Backgrounds (Contained) */
.ambient-glow-top {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 450px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.12) 0%, rgba(229, 169, 60, 0.02) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.08) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Luxury Glassmorphism */
.glass-panel {
  background: rgba(18, 19, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel-gold {
  background: rgba(20, 21, 31, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
}

.glass-nav {
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #fff7db 0%, #e5a93c 45%, #f5c87a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-silver-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Language Switcher Slider */
.lang-switch-wrap {
  background: rgba(18, 19, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.lang-switch-wrap:hover {
  border-color: rgba(229, 169, 60, 0.5);
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.15);
}

.lang-slider button {
  cursor: pointer;
  user-select: none;
}

/* Buttons & CTAs */
.btn-gold {
  background: linear-gradient(135deg, #e5a93c 0%, #c48b25 100%);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 169, 60, 0.45);
  background: linear-gradient(135deg, #f5c87a 0%, #e5a93c 100%);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.75s ease;
}

.btn-gold:hover::after {
  transform: rotate(25deg) translateY(100%);
}

.btn-outline-gold {
  border: 1px solid var(--border-gold);
  background: rgba(229, 169, 60, 0.05);
  color: var(--gold-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-gold:hover {
  background: rgba(229, 169, 60, 0.15);
  border-color: var(--gold-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Badge Pulse */
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.status-pulse.open {
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.status-pulse.open::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.status-pulse.closed {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Service Card Hover */
.service-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-subtle);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: rgba(24, 25, 38, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

/* Gallery Image Zoom & Hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
  border-color: var(--border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 10, 15, 0.9) 0%, rgba(9, 10, 15, 0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 5, 8, 0.94);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Scroll Animations (IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #27293a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Interactive Accordion / FAQ */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
  max-height: 250px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Testimonial Card */
.review-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 169, 60, 0.4);
}

/* Mobile Sticky Bar: Hidden initially in Hero, slides up when scrolled past hero */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.75);
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Dynamic Ken Burns Camera Animation */
@keyframes kenBurnsSlow {
  0% {
    transform: scale(1.05) translate(0, 0);
  }
  50% {
    transform: scale(1.15) translate(-2%, -1%);
  }
  100% {
    transform: scale(1.05) translate(0, 0);
  }
}

.animate-ken-burns {
  animation: kenBurnsSlow 20s ease-in-out infinite;
}

/* Responsive Hero Viewport Sizing (Mobile Full Screen, Desktop Balanced 2-Column) */
@media (max-width: 1023px) {
  #hero {
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  #hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4.5rem;
    display: block;
  }
}

/* Hero elements render immediately without observer delay */
#hero .reveal {
  opacity: 1 !important;
  transform: none !important;
}
