/* TUULI.PL — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: #8A9A86;
  color: #F9F8F6;
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(62, 59, 56, 0.65) 0%,
    rgba(62, 59, 56, 0.35) 50%,
    rgba(62, 59, 56, 0.55) 100%
  );
}

/* Header states */
#header {
  background: transparent;
}

#header.scrolled {
  background: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(219, 205, 186, 0.5);
}

#header.scrolled .nav-link {
  color: #3E3B38;
}

#header.scrolled .nav-link:hover {
  color: #8A9A86;
}

/* Navigation links */
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #DBCDBA;
}

.mobile-nav-link {
  color: #3E3B38;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #8A9A86;
}

/* Image frames */
.img-frame {
  position: relative;
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid #DBCDBA;
  border-radius: 1.75rem;
  z-index: -1;
  transition: transform 0.5s ease;
}

.img-frame--offset::before {
  transform: translate(12px, 12px);
}

.img-frame:hover::before {
  transform: translate(16px, 16px);
}

/* Offer cards */
.offer-card {
  background: #F9F8F6;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid transparent;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(62, 59, 56, 0.12);
  border-color: rgba(219, 205, 186, 0.5);
}

.offer-card__img {
  box-shadow: 0 4px 20px -4px rgba(62, 59, 56, 0.1);
}

/* Image hover effect */
.img-hover {
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.img-hover img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-hover:hover {
  box-shadow: 0 16px 32px -8px rgba(62, 59, 56, 0.15);
}

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

/* Instagram tiles */
.insta-tile {
  box-shadow: 0 4px 16px -4px rgba(62, 59, 56, 0.1);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.insta-tile:hover {
  box-shadow: 0 12px 32px -8px rgba(62, 59, 56, 0.2);
  transform: translateY(-2px);
}

/* Scroll reveal initial states */
.reveal-up,
.reveal-left,
.reveal-right {
  will-change: transform, opacity, filter;
}

/* Category divider responsive */
@media (max-width: 640px) {
  .category-block h3 {
    font-size: 1.25rem;
    white-space: normal;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #8A9A86;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll indicator fade on scroll */
.scroll-indicator {
  transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}
