/* ============================================
   OGRÓD MAŁA BAJKA - Design System
   A warm, authentic farm aesthetic
   40% nostalgic / 60% modern
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Colors from Logo */
  --color-forest: #3D6B4C;
  --color-forest-dark: #2D5038;
  --color-forest-light: #5A8A6A;
  
  --color-terracotta: #D4763A;
  --color-terracotta-dark: #B85E28;
  --color-terracotta-light: #E8935A;
  
  --color-pumpkin: #E8923A;
  --color-pumpkin-dark: #C67A2E;
  --color-pumpkin-light: #F5A855;
  
  /* Natural Palette */
  --color-cream: #FDF8F0;
  --color-cream-dark: #F5EDE0;
  --color-soil: #4A3728;
  --color-soil-light: #6B5344;
  --color-straw: #E8D5A8;
  --color-corn: #B8A855;
  --color-leaf-red: #C4453A;
  
  /* Neutrals */
  --color-white: #FFFFFF;
  --color-black: #1A1612;
  --color-gray-100: #F7F5F2;
  --color-gray-200: #E8E4DE;
  --color-gray-300: #D4CEC4;
  --color-gray-400: #A89E90;
  --color-gray-500: #7A7066;
  --color-gray-600: #5C5348;
  --color-gray-700: #3D362E;
  
  /* Semantic Colors */
  --color-primary: var(--color-forest);
  --color-secondary: var(--color-terracotta);
  --color-accent: var(--color-pumpkin);
  --color-background: var(--color-cream);
  --color-surface: var(--color-white);
  --color-text: var(--color-soil);
  --color-text-light: var(--color-gray-500);
  --color-text-inverse: var(--color-cream);
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Font Sizes (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2.4vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.6rem + 3.2vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Layout */
  --container-max: 1400px;
  --container-content: 900px;
  --header-height: 80px;
  --header-height-scrolled: 64px;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(74, 55, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(74, 55, 40, 0.08), 0 2px 4px -1px rgba(74, 55, 40, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(74, 55, 40, 0.1), 0 4px 6px -2px rgba(74, 55, 40, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(74, 55, 40, 0.12), 0 10px 10px -5px rgba(74, 55, 40, 0.04);
  --shadow-glow: 0 0 40px rgba(232, 146, 58, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 180ms ease;
  --transition-slow: 250ms ease;
  --transition-slower: 350ms ease;
  
  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

/* ============================================
   2. CSS RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-soil);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
.text-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
}

.text-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
}

.text-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 500;
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.text-small {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}

.text-caption {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-content);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--large {
  padding: var(--space-5xl) 0;
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Grid utilities */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   5. HEADER & NAVIGATION (Liquid Glass Design)
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  height: var(--header-height);
  transition: all var(--transition-slow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-xl);
  margin: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  transition: all var(--transition-slow);
}

/* Liquid glass header - always visible */
.header--transparent .header__inner {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Scrolled header - cream glass */
.header--scrolled .header__inner {
  background: linear-gradient(
    135deg,
    rgba(253, 248, 240, 0.85) 0%,
    rgba(253, 248, 240, 0.75) 50%,
    rgba(253, 248, 240, 0.9) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px rgba(74, 55, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.header--scrolled {
  height: var(--header-height-scrolled);
}

/* Header logo — smooth cubic-bezier reveal */
.header__logo {
  height: 50px;
  width: auto;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.header--scrolled .header__logo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-white);
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-base);
}

.header--scrolled .nav__link {
  color: var(--color-soil);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-terracotta-light);
}

.header--scrolled .nav__link:hover {
  color: var(--color-terracotta);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: var(--z-modal);
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.header--scrolled .nav__toggle-bar {
  background: var(--color-soil);
}

.nav__toggle--active .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
        z-index: 10000;
        position: relative;
        /* Ensure large touch target */
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav__list {
        /*
         * position:fixed — omija stacking context backdrop-filter na .header__inner,
         * który w Chrome/Safari przycina position:absolute do granic pillbara.
         * top jest ustawiane dynamicznie przez JS przy każdym otwarciu.
         */
        position: fixed;
        top: calc(var(--header-height) + 4px);
        left: var(--space-md);
        right: var(--space-md);
        bottom: auto;
        width: auto;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: var(--space-md) 0;

        /* Wygląd Liquid Glass */
        background: linear-gradient(135deg,
                rgba(253, 248, 240, 0.97) 0%,
                rgba(253, 248, 240, 0.92) 50%,
                rgba(253, 248, 240, 0.98) 100%);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: var(--radius-xl);
        box-shadow: 0 8px 32px rgba(74, 55, 40, 0.15);

        /* Animacja */
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease,
            visibility 0.3s ease;
        z-index: 9999;
    }

    .nav__list--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        color: var(--color-soil);
        font-size: var(--text-lg);
        padding: var(--space-md) var(--space-xl);
        width: 100%;
        text-align: center;
        transition: background-color var(--transition-base), color var(--transition-base);
    }

    /* Ukrywamy dolną kreskę na mobile, dodajemy delikatne tło przy klikaniu */
    .nav__link::after {
        display: none;
    }

    .nav__link:hover,
    .nav__link--active {
        color: var(--color-terracotta);
        background-color: rgba(212, 118, 58, 0.05);
    }

    /* Naprawa górnego paska - ZACHOWUJEMY zaokrąglenia i marginesy */
    .header__inner {
        margin: var(--space-xs) var(--space-md);
        padding: 0 var(--space-md);
    }
}

/* ============================================
   6. HERO SECTION WITH SLIDESHOW
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background slideshow container */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
}

.hero__slide--active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlay for text readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(26, 22, 18, 0.4) 0%,
    rgba(26, 22, 18, 0.2) 40%,
    rgba(26, 22, 18, 0.3) 70%,
    rgba(26, 22, 18, 0.6) 100%
  );
}

/* Hero content with glass background */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-3xl);
  margin: var(--space-xl);
  max-width: 700px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(26, 22, 18, 0.4) 0%,
    rgba(26, 22, 18, 0.25) 50%,
    rgba(26, 22, 18, 0.35) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-slower);
}

/* Hero logo - LARGER */
.hero__logo {
  width: min(500px, 85vw);
  height: auto;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s ease;
  will-change: opacity, transform;
}

.hero__logo--hidden {
  opacity: 0;
  transform: scale(0.8) translateY(-30px);
}

/* Hero text */
.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.4s ease 0.1s forwards;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-2xl);
  max-width: 550px;
  opacity: 0;
  animation: fadeInUp 0.4s ease 0.2s forwards;
}

/* Hero CTA buttons */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.4s ease 0.3s forwards;
}

/* Slideshow indicators */
.hero__indicators {
  position: absolute;
  bottom: var(--space-2xl);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  z-index: 2;
}

.hero__indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero__indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero__indicator--active {
  background: var(--color-white);
  transform: scale(1.2);
}

/* hero__scroll removed */

/* ============================================
   8. BUTTONS - LIQUID GLASS PUMPKIN STYLE
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-md) var(--space-2xl);
  border-radius: 50px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

/* Primary button - Glass Pumpkin Orange */
.btn--primary {
  background: linear-gradient(
    135deg,
    rgba(232, 146, 58, 0.9) 0%,
    rgba(212, 118, 58, 0.8) 30%,
    rgba(232, 146, 58, 0.85) 70%,
    rgba(245, 168, 85, 0.9) 100%
  );
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(232, 146, 58, 0.4),
    0 4px 12px rgba(212, 118, 58, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(180, 90, 30, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Glass shine effect */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(232, 146, 58, 0.5),
    0 6px 16px rgba(212, 118, 58, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(180, 90, 30, 0.2);
}

.btn--primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Secondary button - Glass Clear/Frost */
.btn--secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.btn--secondary:hover::before {
  left: 100%;
}

.btn--secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.25) 100%
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(255, 255, 255, 0.15);
}

/* Ghost button (minimal) */
.btn--ghost {
  background: transparent;
  color: var(--color-terracotta);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
}

.btn--ghost:hover {
  background: rgba(212, 118, 58, 0.1);
}

/* Large button */
.btn--lg {
  padding: var(--space-lg) var(--space-3xl);
  font-size: var(--text-base);
  border-radius: 60px;
}

/* Button on light backgrounds */
.btn--on-light.btn--secondary {
  background: linear-gradient(
    135deg,
    rgba(61, 107, 76, 0.15) 0%,
    rgba(61, 107, 76, 0.08) 50%,
    rgba(61, 107, 76, 0.12) 100%
  );
  color: var(--color-forest);
  border: 1px solid rgba(61, 107, 76, 0.3);
}

.btn--on-light.btn--secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(61, 107, 76, 0.25) 0%,
    rgba(61, 107, 76, 0.12) 50%,
    rgba(61, 107, 76, 0.2) 100%
  );
}

/* ============================================
   9. ATTRACTIONS SECTION
   ============================================ */
.attractions {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
.attractions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(26, 22, 18, 0.05), transparent);
}

.attractions__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.attractions__title {
  font-size: var(--text-4xl);
  color: var(--color-forest);
  margin-bottom: var(--space-md);
}

.attractions__subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Attractions grid — 3 columns × 2 rows */
.attractions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

/* Individual attraction card — nowy layout z bg-image */
.attraction-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  text-align: left;
  min-height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-soil);

  /* Widoczne od razu — animacja to bonus */
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* Opcjonalna animacja fade-in przy scroll (klasa dodawana przez JS) */
.attraction-card.anim-init {
  opacity: 0;
  transform: translateY(15px);
}
.attraction-card.anim-init.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.attraction-card:nth-child(1) { transition-delay: 0ms; }
.attraction-card:nth-child(2) { transition-delay: 50ms; }
.attraction-card:nth-child(3) { transition-delay: 100ms; }
.attraction-card:nth-child(4) { transition-delay: 150ms; }
.attraction-card:nth-child(5) { transition-delay: 200ms; }
.attraction-card:nth-child(6) { transition-delay: 250ms; }

/* Tło karty — zdjęcie */
.attraction-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.attraction-card:hover .attraction-card__bg {
  transform: scale(1.06);
}

/* Gradient overlay */
.attraction-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.02) 0%,
    rgba(0,0,0,0.28) 45%,
    rgba(0,0,0,0.78) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Treść nad overlayem */
.attraction-card__body {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
}

.attraction-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-full);
  padding: 0.35em 0.9em 0.35em 0.5em;
  margin-bottom: var(--space-sm);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
}

.attraction-card__badge-icon {
  font-size: 1.1rem;
}

.attraction-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--space-sm);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.attraction-card__description {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin: 0;
}

/* Stare elementy starej wersji kart — ukryte */
.attraction-card__pumpkin,
.attraction-card__image,
.attraction-card__stem,
.attraction-card__icon {
  display: none;
}

/* Pumpkin-shaped container */
.attraction-card__pumpkin {
  position: relative;
  width: 200px;
  height: 180px;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  transition: transform var(--transition-base);
}

.attraction-card:hover .attraction-card__pumpkin {
  transform: scale(1.05);
}

/* Pumpkin background shape */
.attraction-card__pumpkin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 90% at 50% 55%,
    var(--color-pumpkin) 0%,
    var(--color-pumpkin-dark) 60%,
    var(--color-terracotta-dark) 100%
  );
  border-radius: 45% 45% 42% 42% / 50% 50% 45% 45%;
  box-shadow: 
    inset -20px -10px 30px rgba(0, 0, 0, 0.15),
    inset 10px 5px 20px rgba(255, 255, 255, 0.1),
    0 10px 30px rgba(212, 118, 58, 0.3);
  z-index: -1;
}

/* Pumpkin ridges */
.attraction-card__pumpkin::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0%,
    transparent 18%,
    rgba(0, 0, 0, 0.08) 19%,
    rgba(0, 0, 0, 0.08) 20%,
    transparent 21%,
    transparent 100%
  );
  border-radius: inherit;
  z-index: -1;
}

/* Pumpkin stem */
.attraction-card__stem {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 28px;
  background: linear-gradient(
    90deg,
    var(--color-soil-light) 0%,
    var(--color-soil) 50%,
    var(--color-soil-light) 100%
  );
  border-radius: 4px 4px 2px 2px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-5deg);
}

.attraction-card__stem::before {
  content: '';
  position: absolute;
  top: 2px;
  left: -8px;
  width: 20px;
  height: 15px;
  border: 3px solid var(--color-forest);
  border-radius: 50% 50% 0 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-30deg);
}

/* Attraction icon */
.attraction-card__icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Attraction title — stara wersja nadpisana powyżej */
.attraction-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Attraction description — stara wersja nadpisana powyżej */
.attraction-card__description {
  font-size: var(--text-base);
  color: #FFFFFF;
  margin-bottom: var(--space-lg);
  max-width: 280px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Attraction image placeholder */
.attraction-card__image {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.attraction-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* ============================================
   9.5. DECORATIONS PROMO SECTION
   ============================================ */
.promo-section {
  background: linear-gradient(
    135deg,
    var(--color-cream) 0%,
    var(--color-cream-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.promo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gray-300), transparent);
}

.promo__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.promo__image {
  flex: 0 0 45%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.promo__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.promo__image:hover img {
  transform: scale(1.03);
}

.promo__content {
  flex: 1;
}

.promo__badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
  background: rgba(212, 118, 58, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.promo__title {
  font-size: var(--text-3xl);
  color: var(--color-forest);
  margin-bottom: var(--space-md);
}

.promo__description {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.promo__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.promo__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.promo__feature-icon {
  font-size: 1.2em;
}

/* Promo button on light background */
.promo__cta {
  background: linear-gradient(
    135deg,
    rgba(232, 146, 58, 0.95) 0%,
    rgba(212, 118, 58, 0.9) 30%,
    rgba(232, 146, 58, 0.92) 70%,
    rgba(245, 168, 85, 0.95) 100%
  );
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(232, 146, 58, 0.35),
    0 4px 12px rgba(212, 118, 58, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(180, 90, 30, 0.2);
}

@media (max-width: 768px) {
  .promo__inner {
    flex-direction: column;
    gap: var(--space-2xl);
  }
  
  .promo__image {
    flex: none;
    width: 100%;
    max-width: 400px;
  }
  
  .promo__content {
    text-align: center;
  }
  
  .promo__features {
    justify-content: center;
  }
  
  .promo__description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   10. FOOTER
   ============================================ */
.footer {
  background: var(--color-soil);
  color: var(--color-cream);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-lg);
}

.footer__description {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer__heading {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta-light);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--color-terracotta-light);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.footer__contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-700);
}

.footer__copyright {
  color: var(--color-gray-500);
  font-size: var(--text-xs);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-700);
  border-radius: var(--radius-full);
  color: var(--color-gray-300);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }
  
  .footer__logo {
    margin: 0 auto var(--space-lg);
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ============================================
   11. ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Staggered delays przeniesione do sekcji .attraction-card powyżej */

/* ============================================
   12. RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
  .attractions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --header-height-scrolled: 60px;
  }
  
  .header__inner {
    margin: var(--space-xs) var(--space-md);
    padding: 0 var(--space-md);
  }
  
  .hero__content {
    padding: var(--space-xl) var(--space-lg);
    margin: var(--space-md);
  }
  
  .hero__logo {
    width: min(350px, 80vw);
  }
  
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  /* Consistent button sizing on mobile */
  .hero__ctas .btn {
    width: 100%;
    min-width: 250px;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    justify-content: center;
  }
  
  .hero__indicators {
    bottom: 90px;
  }
  
  .hero__scroll {
    bottom: var(--space-lg);
  }
  
  .attractions__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 580px) {
  .attractions__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero__content {
    padding: var(--space-lg) var(--space-md);
    margin: var(--space-sm);
  }
  
  .hero__logo {
    width: min(280px, 75vw);
  }
  
  .hero__tagline {
    font-size: var(--text-xl);
  }
  
  .hero__subtitle {
    font-size: var(--text-base);
  }
  
  .hero__ctas .btn {
    min-width: 220px;
    padding: var(--space-sm) var(--space-lg);
  }
  
  .hero__indicators {
    bottom: 80px;
  }
  
  .attraction-card__pumpkin {
    width: 160px;
    height: 145px;
  }
}

/* ============================================
   13. UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-3px);
}

/* Print styles */
@media print {
  .header,
  .hero__scroll,
  .hero__indicators,
  .scroll-top {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-xl);
  }
  
  .hero__content {
    background: transparent;
    backdrop-filter: none;
  }
}

/* ============================================
   SLIDESHOW — GPU-accelerated, no zoom jank
   ============================================ */
.hero__slide {
  opacity: 0;
  /* GPU layer — prevents repaint on transition */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide--active {
  opacity: 1;
  transform: translateZ(0);
  /* No scale/zoom — eliminates jank on low-end devices */
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}