/* Solanum — organic biophilic refresh */
:root {
  --green: #1a5c12;
  --green-dark: #134a0e;
  --green-light: #2d7a22;
  --white: #fff;
  --bg: #f4f7f2;
  --surface: #fff;
  --text: #1e293b;
  --muted: #64748b;
  --link: #1a5c12;
  --link-hover: #134a0e;
  --line: #d4e4cf;
  --accent: #a16207;
  --shadow-sm: 0 1px 3px rgba(26, 92, 18, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 92, 18, 0.1);
  --shadow-lg: 0 12px 32px rgba(26, 92, 18, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --maxw: 1140px;
  --pad-v: 88px;
  --pad-h: 24px;
  --gap: 28px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms var(--ease);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--link-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--pad-h);
  z-index: 1000;
  padding: 12px 20px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

/* type scale */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--green-dark);
  line-height: 1.25;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; font-family: "Source Sans 3", sans-serif; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.section { padding: var(--pad-v) var(--pad-h); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }

.section-header { margin-bottom: 40px; }
.section-header .lead { margin-top: 12px; max-width: 56ch; }

/* breadcrumbs */
.breadcrumbs { margin-bottom: 24px; font-size: 0.875rem; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}
.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--line);
}
.breadcrumbs a { color: var(--green); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 80px;
  padding: 12px var(--pad-h);
}

.logo {
  width: 240px;
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.85; }

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  padding: 10px 18px;
  display: block;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--green);
  background: rgba(26, 92, 18, 0.06);
}

.main-nav a.active {
  color: var(--green);
  font-weight: 600;
  background: rgba(26, 92, 18, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 74, 14, 0.15) 0%,
    rgba(19, 74, 14, 0.45) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  height: clamp(420px, 55vw, 580px);
  display: flex;
  align-items: flex-end;
  padding: 32px var(--pad-h);
}

.hero__card {
  width: min(400px, 100%);
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero__card h3 {
  margin-bottom: 12px;
  font-size: 1.375rem;
}

.hero__card p {
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Green band ---------- */
.band-green {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-light) 100%);
  color: var(--white);
}

.band-green h1,
.band-green h2,
.band-green h3,
.band-green h5,
.band-green h6 { color: var(--white); }

.activities__intro {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.activities__intro h6 {
  width: 100%;
  max-width: 720px;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.95;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--transition), transform var(--transition);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.feature__icon {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.feature__icon svg { width: 100%; height: 100%; fill: var(--white); }

.feature h3 {
  font-size: 1.125rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  flex: 1;
}

/* ---------- Card grids ---------- */
.heading-lead { margin-bottom: 0; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 36px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  height: auto;
  mix-blend-mode: darken;
}

.card--square img {
  height: 220px;
  object-fit: contain;
}

.card__bar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 40px 14px 18px;
  background: var(--green);
  margin-top: auto;
  transition: background var(--transition);
}

.card:hover .card__bar { background: var(--green-dark); }

.card__bar span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
}

.card__bar svg {
  position: absolute;
  right: 14px;
  height: 18px;
  fill: var(--white);
  transition: transform var(--transition);
}

.card:hover .card__bar svg { transform: translateX(3px); }

/* ---------- Split (home partners/about) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
}

.split > div {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.split p { margin-top: 1em; color: var(--muted); }
.split h1 { margin-bottom: 4px; }

.partner-logo {
  width: 220px;
  margin-top: 32px;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.partner-logo:hover { opacity: 1; }

.btn-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 40px 14px 20px;
  background: var(--green);
  border-radius: var(--radius-sm);
  margin-top: 24px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-bar:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-bar span {
  color: var(--white);
  font-weight: 600;
}

.btn-bar svg {
  position: absolute;
  right: 16px;
  height: 18px;
  fill: var(--white);
  transition: transform var(--transition);
}

.btn-bar:hover svg { transform: translateX(3px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
}

.site-footer .section__inner {
  padding: 56px var(--pad-h) 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}

.site-footer a:hover { color: var(--white); }

.footer-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: 36px;
}

.footer-top h5 {
  color: var(--white);
  margin-bottom: 16px;
  font-family: "Libre Baskerville", Georgia, serif;
}

.footer-top p {
  line-height: 1.8;
  opacity: 0.9;
}

.footer-contact { text-align: right; }

.footer-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 28px;
  font-size: 0.875rem;
  opacity: 0.85;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  opacity: 1;
}

.footer-social svg { width: 20px; height: 20px; fill: var(--white); }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 36px;
}

.about-grid > div {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.about-grid h4 {
  margin: 28px 0 10px;
  color: var(--green);
}

.about-grid > div > *:first-child { margin-top: 0; }

.about-grid ul {
  margin: 0 0 1em;
  padding-left: 20px;
  color: var(--muted);
}

.about-grid li { margin-bottom: 6px; }

.about-grid p { line-height: 1.75; color: var(--muted); }

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin: 20px 0;
}

.partner-logos img {
  width: 200px;
  margin: 0;
  transition: opacity var(--transition);
}

.partner-logos a:hover img { opacity: 0.85; }

/* contact form (Grav Form plugin) */
.contact-form,
.form-wrapper .contact-form {
  display: grid;
  gap: 16px;
  max-width: 100%;
  margin-top: 20px;
}

.form-wrapper .notices {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 500;
}

.form-wrapper .notices.success,
.form-wrapper .notices.green {
  background: #ecfdf5;
  color: var(--green-dark);
  border: 1px solid #bbf7d0;
}

.form-wrapper .notices.error,
.form-wrapper .notices.red {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-wrapper .notices p { margin: 0; }

.contact-form .form-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form .required {
  color: var(--green);
  margin-left: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 92, 18, 0.12);
  outline: none;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form .buttons { margin: 0; }

.contact-form .button,
.contact-form button[type="submit"] {
  justify-self: start;
  background: var(--green);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.contact-form .button:hover,
.contact-form button[type="submit"]:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.contact-form .form-errors,
.contact-form .form-message {
  color: #991b1b;
  font-size: 0.875rem;
  margin: 4px 0 0;
}

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

/* ---------- Variety detail ---------- */
.variety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: start;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 32px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.back-btn:hover {
  color: var(--white);
  background: var(--green-dark);
  transform: translateX(-2px);
}

.variety-intro h1 { margin-bottom: 20px; }

.variety-intro > p {
  line-height: 1.75;
  color: var(--muted);
  font-size: 1.0625rem;
}

.opis {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.opis:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  color: var(--green);
}

.opis svg { width: 28px; height: 28px; fill: var(--green); flex: none; }

.opis h6 {
  color: var(--green);
  margin: 0;
}

.variety-photo {
  margin-top: 0;
}

.variety-photo img {
  width: 100%;
  mix-blend-mode: darken;
}

.spec {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.spec h6 {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  color: var(--green-dark);
  font-family: "Libre Baskerville", Georgia, serif;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child { border-bottom: 0; }

.spec-row dt {
  margin: 0;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9375rem;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .feature-grid,
  .split,
  .footer-top,
  .footer-bottom,
  .about-grid { grid-template-columns: 1fr 1fr; }

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

  .variety-grid { grid-template-columns: 1fr; gap: 32px; }

  .variety-photo { max-width: 420px; }
}

@media (max-width: 767px) {
  :root { --pad-v: 56px; }

  .site-header__inner {
    flex-direction: column;
    min-height: auto;
    padding: 16px var(--pad-h);
  }

  .main-nav ul { flex-wrap: wrap; justify-content: center; }

  .feature-grid,
  .split,
  .grid3,
  .grid4,
  .footer-top,
  .footer-bottom,
  .about-grid { grid-template-columns: 1fr; }

  .split > div,
  .about-grid > div { padding: 24px; }

  .footer-contact { text-align: left; }
  .footer-social { justify-content: flex-start; }

  .hero__inner {
    height: clamp(360px, 70vw, 480px);
    padding: 24px var(--pad-h);
  }

  .feature { flex-direction: column; text-align: center; }
  .feature h3 { text-align: center; }
}

@media (max-width: 479px) {
  .logo { width: 180px; }
}
