/* Podlaskie Green Energy Institute - Main Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.prose {
  color: #374151;
}

.prose p {
  margin-bottom: 1rem;
}

.prose strong {
  font-weight: 700;
  color: #111827;
}

.prose ul,
.prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h1 {
  font-size: 2.25rem;
}

.prose h2 {
  font-size: 1.875rem;
}

.prose h3 {
  font-size: 1.5rem;
}

.prose h4 {
  font-size: 1.25rem;
}

header nav a {
  position: relative;
  font-weight: 500;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e8eae6;
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .prose h1 {
    font-size: 1.875rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
}

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

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

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

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #4a7c2c;
  outline-offset: 2px;
}

form input.error,
form textarea.error {
  border-color: #dc2626;
}

form .error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

form .success-message {
  color: #059669;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

#mobile-menu {
  transition: opacity 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
}

#cookie-consent {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#cookie-consent.hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

#cookie-consent:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background-color: #4a7c2c;
  color: white;
}

::-moz-selection {
  background-color: #4a7c2c;
  color: white;
}