:root {
  --green-900: #1E6B2A;
  --green-500: #5DBB5A;
  --bg-light: #F6F9F6;
  --text-dark: #1F2933;
  --t-dark: #2f3d33;
  --t-beige: #d6c6a3;
  --t-sand: #cfc1a2;
  --t-olive: #8a8f61;
  --accent-red: #c33;
  --max-width: 1100px;
}

/* === RESET & BASE === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

/* === HEADER === */
header.site-header {
  background: linear-gradient(180deg, var(--green-900), #12511d);
  color: #fff;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 60;
}
.header-inner {
  grid-auto-flow: row;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.logo img { height: 144px; }
nav.main-nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 900;
 font-size: 1.2rem;
}
#menu-toggle {
  display: none;
}

/* === HERO === */
.hero {
  background: linear-gradient(180deg, rgba(30,107,42,0), rgba(30,107,42,0.5));
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}
.hero h1 {
  font-family: Poppins, Inter;
  font-size: 2rem;
  margin: 0;
}
.hero p {
  max-width: 800px;
  margin: 0.75rem auto;
}
.cta {
  margin-top: 1rem;
  display: flex;
  gap: .75rem;
  justify-content: center;
}
.btn {
  background: var(--green-900);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
}

/* === SECTIONS === */
section {
  padding: 3rem 1rem;
}
h2 {
  color: var(--green-900);
  margin-bottom: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: #fff;
  color: var(--text-dark);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* === CLICKABLE CARDS === */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
}
.card-link .card {
  height: 100%;
}
.card-link:hover .card {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* === GLOBAL LINK STYLES === */
a, a:visited {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === PLAIN LINK (np. w kontaktach, stopce) === */
.plain-link {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
}
.plain-link:hover {
  text-decoration: underline;
}

/* === LINKS ON DARK BACKGROUNDS (header, footer, hero) === */
header a, footer a, .hero a {
  color: #fff;
}
header a:hover, footer a:hover, .hero a:hover {
  text-decoration: underline;
}

/* === FORMS === */
form.form {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
}
form input, form select, form textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #d0e0d0;
}
form button {
  background: var(--green-500);
  border: 0;
  padding: 0.65rem;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* === FOOTER === */
footer.site-footer {
  background: #102012;
  color: #cfeccf;
  padding: 1.25rem 0;
  margin-top: 2rem;
}
footer a {
  color: #cfeccf;
  font-weight: 700;
}

/* === DARK THEME OVERRIDES === */
body.dark {
  background: var(--t-dark);
  color: var(--t-beige);
}
body.dark header.site-header {
  background: rgba(47,61,51,0.85);
}
body.dark h2 {
  color: var(--t-sand);
}
body.dark .card {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(214,198,163,0.06);
  color: var(--t-beige);
}
body.dark .btn {
  background: var(--t-olive);
}
body.dark a,
body.dark .plain-link {
  color: #fff;
}

/* === THEME TOGGLE === */
.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  gap: 8px;
}
.theme-toggle button {
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.theme-toggle button.active {
  background: var(--green-900);
  color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 800px) {
  .header-inner { padding: 0 0.5rem; }
  nav.main-nav { display: none;  font-size: 1.6rem;}
  #menu-toggle {
    display: block;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.8rem;
  }
}
