@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Playfair+Display:wght@400;500&display=swap');

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

:root {
  --green:   #2d6a4f;
  --green-l: #40916c;
  --green-d: #1b4332;
  --cream:   #f8f6f0;
  --warm:    #ede8dc;
  --text:    #1c1c1c;
  --muted:   #5a5a5a;
  --light:   #888;
  --border:  #d6d0c4;
  --white:   #ffffff;
  --max:     1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-l); text-decoration: underline; }

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

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.2;
}

.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green-d);
  display: block;
}

.logo-text .sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: block;
}

.eu-header-img {
  height: 75px;
  width: auto;
  max-width: 50%;
  display: block;
  flex-shrink: 1;
  object-fit: contain;
}

/* ── NAV ── */
.site-nav {
  background: var(--green-d);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: stretch;
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.active > a {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.nav-item:hover .subnav { display: block; }

.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.subnav a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--warm);
  text-decoration: none;
}

.subnav a:hover { background: var(--warm); color: var(--green-d); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  color: white;
  font-size: 1.4rem;
  margin-left: auto;
}

/* ── HERO SLIDER ── */
.hero {
  background: var(--green-d);
  position: relative;
  overflow: hidden;
  height: 300px;
  max-width: var(--max);
  margin: 1rem auto;
  border-radius: 6px;
}

.hero-slides { height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(27,67,50,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 3rem;
}

.hero-caption {
  color: white;
  max-width: 600px;
}

.hero-caption h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-caption p {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.hero-dot.active { background: white; }

/* ── LAYOUT ── */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.page-wrap.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--light);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--light); }
.breadcrumb a:hover { color: var(--green); text-decoration: none; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── PAGE TITLE ── */
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--green-d);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green);
  line-height: 1.3;
}

/* ── CONTENT ── */
.content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--green-d);
  margin: 2rem 0 0.75rem;
}

.content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

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

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

.content li { margin-bottom: 0.3rem; }

.content .lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  border-left: 3px solid var(--green);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--warm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}

/* ── CONTACT BOX ── */
.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  padding: 1.5rem;
  border-radius: 0 0 4px 4px;
}

.contact-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--green-d);
  margin-bottom: 1rem;
}

.contact-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  align-items: flex-start;
}

.contact-label {
  font-weight: 400;
  color: var(--muted);
  min-width: 60px;
  flex-shrink: 0;
  font-size: 0.8rem;
  padding-top: 0.1rem;
}

/* ── SIDEBAR ── */
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sidebar-box-title {
  background: var(--green-d);
  color: white;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
}

.sidebar-box ul li a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--warm);
  text-decoration: none;
}

.sidebar-box ul li a:hover {
  background: var(--warm);
  color: var(--green-d);
}

.sidebar-box ul li.active a {
  color: var(--green);
  font-weight: 400;
  background: #f0f7f3;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--green-d);
  color: rgba(255,255,255,0.75);
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.3rem; }

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-col ul li a:hover { color: white; text-decoration: none; }

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ── EU LOGOS (stopka) ── */
.eu-logos {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eu-logos img { height: 85px; width: auto; }

/* ── SPECIES INFO BOX ── */
.species-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.species-box table { width: 100%; font-size: 0.88rem; border-collapse: collapse; }
.species-box td { padding: 0.3rem 0.5rem; vertical-align: top; }
.species-box td:first-child { color: var(--muted); width: 140px; font-weight: 400; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-top { padding: 1rem; flex-wrap: wrap; }
  .header-contact { display: none; }

  .nav-toggle { display: block; }

  .nav-inner {
    flex-wrap: wrap;
    padding: 0;
  }

  .nav-inner.open .nav-item { display: block; width: 100%; }
  .nav-inner:not(.open) .nav-item { display: none; }
  .nav-item > a { padding: 0.75rem 1rem; }

  .subnav { position: static; border: none; border-top: none; box-shadow: none; background: rgba(0,0,0,0.1); }
  .nav-item:hover .subnav { display: none; }
  .nav-item.open .subnav { display: block; }
  .subnav a { color: rgba(255,255,255,0.8); background: transparent; border-color: rgba(255,255,255,0.1); }

  .hero { height: 200px; margin: 0.5rem 1rem; }
  .hero-caption h1 { font-size: 1.2rem; }
  .hero-overlay { padding: 1rem 1.25rem; }

  .page-wrap.with-sidebar { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
