/* ===== Bazė ===== */
*,
*::before,
*::after { box-sizing: border-box; }

:root { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

html, body { height: 100%; margin: 0; }
body {
  font-family: Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.5;
}

/* ===== Bendri blokai ===== */
.section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2f6d2f;
}
h1, h2, h3 { margin: 0 0 12px; }
p { margin: 0 0 10px; }

.btn {
  background: #2f6d2f;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: #276027; }
button.btn[disabled]{ opacity:.6; cursor:not-allowed; }

/* ===== Navigacija ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #eee;
}
.navbar .logo img { height: 50px; display: block; }
.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.navbar .nav-links a {
  text-decoration: none;
  color: #2f6d2f;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.navbar .nav-links a.btn { background: #2f6d2f; color: #fff; padding: 8px 16px; border-radius: 6px; }

/* ===== Hero ===== */
.hero {
  height: 90vh;
  background: url("hero.jpeg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero h1 { font-size: 3rem; font-weight: bold; margin: 0; }

/* ===== Pamainos ===== */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  flex: 1 1 250px;
  max-width: 360px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }

/* ===== Forma ===== */
form.registracija {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto;
}
input, textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font: inherit;
}
input:focus, textarea:focus {
  border-color: #2f6d2f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47,109,47,.15);
}

/* ===== Galerija ===== */
.gallery-wrap { width: 100%; display: flex; justify-content: center; }
.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 4px;
}
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #2f6d2f;
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  opacity: .9;
}
.slider button:hover { opacity: 1; }
.slider .prev { left: 10px; }
.slider .next { right: 10px; }

.slide {
  display: none;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.slide.active { display: flex; }
.slider .slide img {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ===== Telefonuose – viena nuotrauka ===== */
@media (max-width: 768px) {
  .slide { gap: 8px; }
  .slider .slide img {
    width: 100%;
  }
}

/* ===== Pranešimas po formos ===== */
.sekmes-pranesimas {
  display: none;
  text-align: center;
  margin-top: 30px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn .6s ease forwards;
}
.sekmes-logo { width: 100px; height: auto; margin-bottom: 10px; }
.sekmes-pranesimas p { color: #2f6d2f; font-weight: bold; font-size: 1.3rem; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hamburger meniu ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 100%;
  background: #2f6d2f;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Tik mobiluose */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 10px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px 20px;
    z-index: 1000;
  }

  .nav-links a {
    color: #2f6d2f;
    font-weight: 600;
    margin: 10px 0;
    text-align: right;
    font-size: 18px;
  }

  .nav-links.active { display: flex; }

  /* Burger animacija į kryžių */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Desktop atstatymas */
@media (min-width: 769px) {
  .hamburger { display: none !important; }
  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    gap: 30px;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ===== Smulkūs pataisymai ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .navbar .nav-links { gap: 16px; }
}
/* ===== Kontaktai ===== */
.contact-info {
  text-align: center;
  margin-top: 20px;
}
.contact-info p {
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.4;
}
.contact-info a {
  color: #2f6d2f;
  font-weight: 600;
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

