:root {
  --primary-color: #84161f;
  --primary-hover: #b5000f;
  --secondary-color: #eabd3c;
  --text-color: #000;
  --border-color: #c70f0d;
  --overlay-color: rgba(0, 0, 0, 0.8);
}

/* Base styles */
body {
  font-family: "Work Sans", sans-serif;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Passion One', cursive;
  margin-bottom: 0.625rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:active,
a:focus {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Hero section */
.hero-section {
  position: relative;
  height: 31.25rem;
  background-image: url(../images/pattern-bg.png);
  background-position: center;
  background-repeat: repeat;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url(../images/pattern.png);
  background-position: bottom center;
  background-repeat: repeat-x;
  z-index: 1;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-color);
  z-index: 0;
}

/* Content section */
.content-section {
  background-image: url(../images/pattern-bg2.png);
  background-color: var(--secondary-color);
  background-position: top center;
  background-repeat: repeat;
  padding: 2rem 0;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: var(--secondary-color);
  text-transform: uppercase;
  padding: 0.75rem 3rem;
  border-radius: 0.625rem;
  transition: background-color 0.3s ease;
  font-size: 1.125rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  color: var(--secondary-color);
}

/* Social links */
.social-links {
  font-size: 3rem;
  padding: 1.25rem 0 0;
}

.social-links a {
  color: var(--primary-color);
  margin: 0 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-hover);
  transform: scale(1.1);
}

/* Map */
#map {
  height: 28.125rem;
  width: 100%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Map container */
.map-container {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  line-height: 0;
  /* usuwa niepotrzebny odstęp pod mapą */
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    height: 25rem;
  }

  .btn-primary {
    padding: 0.5rem 2rem;
    font-size: 1rem;
  }

  .social-links {
    font-size: 2.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes bounceIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.animate-bounce-in {
  animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* About section */
.about-section {
  background-color: var(--secondary-color);
}

.about-text {
  line-height: 1.6;
  margin: 2rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--primary-color);
}

/* Dodaj nową klasę dla elementu z efektem parallax */
.parallax-bg {
  position: absolute;
  top: -20px;
  /* Dodatkowy margines dla płynnego ruchu */
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-image: url(../images/pattern-bg.png);
  background-position: center;
  background-repeat: repeat;
  transition: transform 0.2s ease-out;
  z-index: 0;
}