/* ============================================================
   PASIEKA — Dark Premium Theme
   ============================================================
   Inspiracja: Amber & Earth - ciemne tło, złote akcenty,
   duże hero images, premium typography
   ============================================================ */

/* ── Base ── */
:root {
  --color-bg-dark: #0a0a0a;
  --color-bg-card: #1a1a1a;
  --color-gold: #d4af37;
  --color-gold-light: #f4d03f;
  --color-text: #e5e5e5;
  --color-text-muted: #a3a3a3;
}

html {
  scroll-behavior: auto; /* Lenis kontroluje smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg-dark);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: var(--color-bg-dark);
  color: var(--color-text);
}

::selection {
  background-color: var(--color-gold);
  color: #000;
}

/* ── Honeypot — ukryty wizualnie, pułapka na boty ── */
.honeypot-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Honey drip parallax (dark theme) ── */
.honey-drip-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.honey-drip-bg__drop {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  will-change: transform;
  filter: blur(40px);
  transform: translateZ(0);
}

/* ── Product card (dark premium) ── */
.product-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15);
}

.product-card__img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.product-card:hover .product-card__img {
  transform: scale(1.08);
}

/* ── GSAP: elementy widoczne domyślnie, animacje via gsap.from() ── */

/* ── Smooth nav underline (gold accent) ── */
.nav-link {
  position: relative;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-gold-light);
}

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

/* ── Mobile menu overlay ── */
.mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
}

.mobile-menu[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Hero section (Asymmetric Cinematic) ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: #14120f;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
}

/* Linear gradient overlay - dark bottom fading to transparent top */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0a0a0a 0%,
    rgba(10, 10, 10, 0.95) 15%,
    rgba(10, 10, 10, 0.8) 35%,
    rgba(10, 10, 10, 0.5) 60%,
    rgba(10, 10, 10, 0.2) 80%,
    rgba(10, 10, 10, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Hero video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero content container (Left side on desktop) */
.hero-content {
  position: relative;
  z-index: 10;
  grid-column: 1 / 2;
  padding: 4rem 3rem;
  max-width: 600px;
  justify-self: start;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-column: 1 / 2;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
}

/* ── Product Carousel ── */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ── Gold accent button ── */
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

#header-cta.btn-gold {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* ── Section divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* ── Mobile Menu Overlay ── */
#mobile-menu {
  background: rgba(15, 13, 10, 0.97) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

#mobile-menu nav a {
  color: #d4af37 !important;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: auto;
}

#mobile-menu nav a:hover {
  color: #e5c654 !important;
}

/* ── Glass panels ── */
[class^="glass-"],
[class*=" glass-"] {
  isolation: isolate;
}

/* ── Animated elements ── */

/* ── Hero video — GPU compositing ── */
.hero-video-bg {
  will-change: transform;
  transform: translateZ(0);
}

.hero-video-bg video {
  will-change: transform;
}

/* ═══════════════════════════════════════════════════
   RESPONSYWNOŚĆ — Sekcja Produkty
   ═══════════════════════════════════════════════════ */

/* ── Disable default product-card hover transform inside #produkty ── */
#produkty .product-card {
  background: transparent;
  border: none;
  contain: layout style;
}

#produkty .product-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* ── Mobile: < 640px ── */
@media (max-width: 639px) {
  .card-lipowy,
  .card-gryczany {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .card-gryczany {
    margin-top: 60px !important;
    padding-top: 20px;
  }

  .glass-gryczany {
    top: -36px !important;
    left: -8px !important;
    width: 180px !important;
  }

  .glass-lipowy {
    bottom: -36px !important;
    left: auto !important;
    right: -8px !important;
    width: 180px !important;
  }

  .produkty-row-1 {
    margin-bottom: 5rem !important;
    gap: 4rem !important;
  }

  .card-nawlociowy {
    aspect-ratio: 16 / 10 !important;
  }

  /* Rząd 2: odstęp między kartami na mobile (kolumna) */
  .produkty-row-2 {
    gap: 7rem !important;
  }

  .card-spadziowy {
    margin-top: 0 !important;
    margin-left: 0 !important;
  }
}

/* ── Sekcja Kontakt: ciemne tło, biały tekst, pomarańczowe dane ── */
#kontakt {
  background: #0a0a0a !important;
}

#kontakt .text-stone-900,
#kontakt .text-stone-700 {
  color: #fafaf9 !important;
}

#kontakt .text-stone-600 {
  color: #d6d3d1 !important;
}

#kontakt .text-amber-800 {
  color: #f59e0b !important;
}

#kontakt .bg-amber-100 {
  background: rgba(245, 158, 11, 0.15) !important;
}

/* Dane kontaktowe: adres, email, telefon — pomarańczowy */
#kontakt #contact-details .text-stone-700 {
  color: #f59e0b !important;
}

#kontakt #contact-details a {
  color: #f59e0b !important;
}

#kontakt #contact-details span {
  color: #f59e0b !important;
}

#kontakt #contact-details svg {
  color: #f59e0b !important;
}

/* Ukryj pusty wiersz telefonu (brak tekstu = pusta <a>) */
#kontakt #contact-details a[aria-label^="Zadzwoń"]:empty {
  display: none;
}
#kontakt #contact-details a[aria-label^="Zadzwoń"]:empty ~ * {
  display: none;
}
#kontakt #contact-details div:has(> a[aria-label^="Zadzwoń"]:empty) {
  display: none;
}

#kontakt .bg-amber-50 {
  background: rgba(245, 158, 11, 0.08) !important;
}

#kontakt .border-amber-100 {
  border-color: rgba(245, 158, 11, 0.2) !important;
}

/* ── Tablet: 640px – 1024px ── */
@media (min-width: 640px) and (max-width: 1024px) {
  .glass-gryczany {
    width: 180px !important;
    top: -36px !important;
    left: -20px !important;
  }

  .card-gryczany {
    margin-top: 60px !important;
  }
}
