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

:root {
  --green:  #2d6a4f;
  --green2: #40916c;
  --green3: #74c69d;
  --dark:   #1b2a1e;
  --light:  #f0f4f1;
  --white:  #ffffff;
  --text:   #2c3e2d;
  --shadow: 0 4px 20px rgba(0,0,0,.18);
  --radius: 12px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2.5rem;
  background: rgba(27, 42, 30, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(116,198,157,.2);
}

.nav-logo {
  font-size: 1.4rem; font-weight: 700;
  color: var(--green3); letter-spacing: .5px;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.85); font-size: .95rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green3); }

.burger {
  display: none; cursor: pointer;
  color: var(--white); font-size: 1.6rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  background: var(--green2);
  color: var(--white);
  border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { background: var(--green); transform: translateY(-2px); }

/* ========== HERO ========== */
.hero {
  position: relative; height: 100vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  background: url('/img/krajobrazy/las.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,42,30,.75) 0%, rgba(0,0,0,.4) 100%);
}

.hero-content {
  position: relative; text-align: center; color: var(--white); padding: 1rem;
  animation: fadeUp .9s ease both;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-content p {
  margin: 1rem 0 2rem;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: .9;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

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

/* ========== SECTIONS ========== */
.section { padding: 5rem 2rem; }
.section-dark {
  padding: 5rem 2rem;
  background: var(--dark);
  color: var(--white);
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--green);
  margin-bottom: .5rem;
}
.section-dark .section-title { color: var(--green3); }

.section-sub {
  text-align: center; opacity: .7; margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1200px; margin: 0 auto;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 35px rgba(0,0,0,.2); }

.card-img-wrap { height: 220px; overflow: hidden; }
.card-img-wrap img { transition: transform .5s ease; }
.card:hover .card-img-wrap img { transform: scale(1.07); }

.card-body { padding: 1.2rem 1.4rem 1.4rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: .4rem; color: var(--dark); }
.card-body p { font-size: .9rem; opacity: .75; line-height: 1.5; }

.tag {
  display: inline-block; margin-top: .8rem;
  padding: .25rem .7rem;
  background: var(--green3); color: var(--dark);
  border-radius: 20px; font-size: .78rem; font-weight: 600;
}

/* ========== LANDSCAPES ========== */
.landscapes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  max-width: 1200px; margin: 0 auto;
}

.landscape-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  min-height: 220px;
}
.landscape-item.big {
  grid-column: 1 / -1; min-height: 380px;
}

.landscape-item img { transition: transform .6s ease; }
.landscape-item:hover img { transform: scale(1.04); }

.landscape-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  color: var(--white);
}
.landscape-label h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.landscape-label p { font-size: .85rem; opacity: .85; }

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: .75rem;
  max-width: 1200px; margin: 0 auto;
}

.gallery-img {
  height: 200px; border-radius: var(--radius);
  cursor: pointer; transition: transform var(--transition), filter var(--transition);
  filter: brightness(.95);
}
.gallery-img:hover { transform: scale(1.03); filter: brightness(1.1); }

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.9);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw; max-height: 90vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,.6);
  animation: zoomIn .25s ease;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 2.5rem; color: var(--white); cursor: pointer;
  line-height: 1; transition: color var(--transition);
}
.lightbox-close:hover { color: var(--green3); }

/* ========== FACTS ========== */
.facts { padding: 4rem 2rem; }
.facts-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center; max-width: 900px; margin: 0 auto;
  text-align: center;
}
.fact { flex: 1 1 180px; }
.fact-num {
  display: block; font-size: 3rem; font-weight: 800;
  color: var(--green3); line-height: 1;
}
.fact-label { display: block; margin-top: .4rem; opacity: .75; font-size: .95rem; }

/* ========== CONTACT ========== */
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 600px; margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: .85rem 1.1rem;
  border: 1.5px solid #cdd9ce;
  border-radius: var(--radius); font-size: 1rem;
  background: var(--light); color: var(--text);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--green2);
}
.contact-form button { align-self: flex-start; }

.form-msg {
  text-align: center; margin-top: 1rem;
  font-weight: 600; color: var(--green);
}


/* ========== UPLOAD ZONE ========== */
.upload-zone {
  position: relative;
  border: 2px dashed #cdd9ce;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--light);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--green2);
  background: rgba(64,145,108,.07);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.upload-label {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  pointer-events: none;
}
.upload-icon { font-size: 2rem; }
.upload-label span { font-size: .9rem; color: var(--text); opacity: .75; }
.upload-hint { font-size: .78rem !important; opacity: .5 !important; }

/* ========== PREVIEW GRID ========== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .6rem;
}
.preview-item {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 1; background: var(--light);
}
.preview-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.preview-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  border: none; cursor: pointer; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.preview-item .file-size {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: .65rem; padding: 2px 4px; text-align: center;
}
/* ========== FOOTER ========== */
.footer {
  text-align: center; padding: 1.5rem;
  background: var(--dark); color: rgba(255,255,255,.55);
  font-size: .85rem;
}
.footer a { color: var(--green3); }
.footer a:hover { text-decoration: underline; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .navbar { padding: .9rem 1.2rem; }

  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--dark);
    padding: 1rem 2rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .burger { display: block; }

  .hero { background-attachment: scroll; }

  .cards-grid { grid-template-columns: 1fr; }

  .landscapes-grid { grid-template-columns: 1fr; }
  .landscape-item.big { min-height: 260px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .facts-inner { gap: 1.5rem; }

  .contact-form button { align-self: stretch; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .section, .section-dark { padding: 3.5rem 1rem; }
  .gallery-img { height: 160px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .fact-num { font-size: 2.4rem; }
}
