/* ==========================================================
   Gospodarstwo Sławińska — style
   ========================================================== */

:root {
  --color-primary: #3d5a2f;
  --color-primary-dark: #2a3f21;
  --color-accent: #8b1e3f;
  --color-accent-light: #b0294f;
  --color-cream: #faf7f2;
  --color-sand: #f0eadf;
  --color-text: #1c2318;
  --color-muted: #5a6555;
  --color-border: #e2dccf;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 6px rgba(28, 35, 24, 0.06);
  --shadow: 0 8px 24px rgba(28, 35, 24, 0.08);
  --shadow-lg: 0 20px 40px rgba(28, 35, 24, 0.12);

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-light); text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.brand:hover { text-decoration: none; color: var(--color-primary-dark); }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 10px 16px;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-sand);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-primary-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 30, 15, 0.55) 0%, rgba(20, 30, 15, 0.75) 100%),
    url('images/warzywa.jpg') center/cover no-repeat;
  z-index: -1;
}

.hero-inner {
  padding: 100px 24px;
  max-width: 860px;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 30, 63, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 30, 63, 0.45);
  text-decoration: none;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* ---------- Sections ---------- */
section {
  padding: 90px 0;
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* ---------- About / Split ---------- */
.about {
  background: var(--color-cream);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.split-media {
  position: relative;
}

.split-media::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 60%;
  height: 40%;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
}

.split-content h2 { margin-bottom: 20px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  padding: 8px 16px;
  background: var(--color-sand);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}

/* ---------- Products ---------- */
.products {
  background: var(--color-sand);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.product-card .product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-body {
  padding: 28px;
}

.product-body h3 {
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.product-body p {
  color: var(--color-muted);
  margin: 0;
}

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Packaging block (inside products section) ---------- */
.packaging-block {
  margin-top: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-accent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.packaging-block-inner {
  padding: clamp(32px, 5vw, 56px);
}

.packaging-block h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}

.packaging-block p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 780px;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 32px;
}

.feature-list li {
  padding: 12px 0 12px 34px;
  position: relative;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.audience-card {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.audience-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.audience-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--color-sand);
  display: grid;
  place-items: center;
  color: var(--color-primary-dark);
}

.audience-icon svg { width: 30px; height: 30px; }

.audience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.audience-card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- Contact ---------- */
.contact {
  background:
    linear-gradient(180deg, rgba(61, 90, 47, 0.94), rgba(42, 63, 33, 0.96)),
    url('images/gospodarstwo.jpg') center/cover no-repeat;
  color: #fff;
}

.contact h2 { color: #fff; }

.contact .section-header p { color: rgba(255, 255, 255, 0.85); }

.contact .section-header .eyebrow { color: #f2c8d3; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: background 0.25s, transform 0.25s;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: #fff;
}

.contact-icon svg { width: 26px; height: 26px; }

.contact-card h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.75;
}

.contact-card a,
.contact-card .value {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  word-break: break-word;
}

.contact-card a:hover { color: #f2c8d3; }

/* ---------- Dofinansowanie ---------- */
.funding-banner {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.funding-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.funding-logos img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.funding-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sand) 100%);
  text-align: center;
}

.funding-hero .eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.funding-hero h1 {
  color: var(--color-primary-dark);
  max-width: 900px;
  margin: 0 auto 20px;
}

.funding-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--color-muted);
}

.funding-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.detail-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-top: 4px solid var(--color-accent);
}

.detail-card:nth-child(2) { border-top-color: var(--color-primary); }
.detail-card:nth-child(3) { border-top-color: #c9a94a; }

.detail-card h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.detail-card li:last-child { border-bottom: 0; }

.detail-card .big {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.2;
}

/* Financial figures */
.finances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.finance-box {
  padding: 36px 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
}

.finance-box.accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #6f1732 100%);
}

.finance-box .label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.finance-box .value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.finance-box .sub {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Info board mockup */
.info-board {
  margin-top: 60px;
  padding: 40px;
  background: #fff;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.info-board h3 {
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.info-board .board-photo {
  margin: 30px auto 0;
  max-width: 780px;
  padding: 0;
}

.info-board .board-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.info-board .board-photo figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  padding: 4px 0;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand + p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-media { order: -1; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

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

  .nav-links a { padding: 12px 16px; }

  section { padding: 60px 0; }

  .hero-inner { padding: 80px 20px; }

  .funding-logos { gap: 30px; }
  .funding-logos img { max-height: 60px; }
}
