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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(107, 27, 42, 0.15);
  color: #6B1B2A;
}

/* ===== Navigation ===== */
#site-header {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#site-header.scrolled {
  background: rgba(253, 248, 252, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(107, 27, 42, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #6B1B2A;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Mobile menu */
#mobile-menu {
  z-index: 40;
}

#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu.closed {
  transform: translateX(-100%);
}

.menu-line {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}

.mobile-nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Hero Animations ===== */
.hero-tagline {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-headline {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-subheadline {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-image-container > div:first-child {
  animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
  transform: scale(0.95);
}

.hero-image-container > div:first-child img {
  animation: fadeIn 1.2s ease 1s forwards;
  opacity: 0;
}

.hero-image-container > div:not(:first-child) {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.hero-image-container > div:nth-of-type(3) {
  animation-delay: 1.2s;
}

.hero-image-container > div:nth-of-type(4) {
  animation-delay: 1.4s;
}

.hero-subheadline ~ div,
.hero-subheadline ~ * {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero-subheadline ~ div:nth-of-type(4) {
  animation-delay: 1s;
}

.hero-subheadline ~ div:nth-of-type(5) {
  animation-delay: 1.1s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Reveal on Scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Craft Cards ===== */
.craft-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.craft-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== Product Cards ===== */
.group:hover {
  transform: translateY(-4px);
}

/* ===== Decorative Elements ===== */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

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

::-webkit-scrollbar-track {
  background: #FDF8F6;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #6B1B2A;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #6B1B2A;
  outline-offset: 2px;
}

/* ===== Print ===== */
@media print {
  #site-header,
  #mobile-menu {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
