:root {
  --primary: #2d6a4f; /* Deep Green */
  --primary-dark: #1b4332;
  --secondary: #d8f3dc; /* Light Green */
  --accent: #e9c46a; /* Gold/Harvest */
  --text-main: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --light-bg: #f9fafb;
  --dark-bg: #111827;
  --danger: #e63946;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: var(--white); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* Header */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.logo span {
  color: var(--primary);
}

.nav-list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-list a {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--primary);
}

/* Mobile Nav Toggle */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../static/img/restrukturyzacja-rolnikow-tlo.jpg');
  background-size: cover;
  background-position: center;
  margin-top: 60px; /* header height */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Page Header (Subpages) */
.page-header {
    margin-top: 60px;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11,15,25,0.9) 0%, rgba(45,106,79,0.7) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-header .lead {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

/* Grid Layouts */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.feature-list {
  margin-top: 20px;
}

.feature-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.feature-list i {
  color: var(--primary);
}

/* Problems Grid */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.problem-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid transparent;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.problem-icon.red { color: var(--danger); }
.problem-icon.orange { color: #e76f51; }

.problem-item h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Offer Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

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

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.card-list li { margin-bottom: 5px; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px; /* Center of number */
  height: 100%;
  width: 2px;
  background: var(--secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 70px;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 0 5px var(--white);
  z-index: 1;
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Steps Grid (Numbered cards) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1;
}

.step-card h3 { font-size: 1.2rem; }

/* Highlight Box */
.highlight-box {
    background: #fff8dc;
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.faq-item {
  background: var(--light-bg);
  padding: 25px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 { margin-bottom: 10px; }
.cta-content p { margin-bottom: 30px; opacity: 0.9; font-size: 1.2rem; }

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.read-more {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Single Post */
.article-page {
    padding-bottom: 80px;
}

.article-header {
    background: var(--light-bg);
    padding: 60px 0;
    margin-top: 60px;
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-meta {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 40px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.article-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.article-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Footer */
.site-footer {
  background-color: #0b0f19; /* Darker than dark-bg */
  color: #9ca3af;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .two-col-grid, .footer-grid, .faq-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .reversed-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    padding: 20px;
  }
  
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--text-main);
    height: 2px;
    width: 25px;
    position: relative;
  }
  
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: '';
    position: absolute;
  }
  
  .nav-toggle-label span::before { bottom: 8px; }
  .nav-toggle-label span::after { top: 8px; }
  
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
  }
  
  .nav-toggle:checked ~ .nav-list {
    transform: scaleY(1);
  }
  
  .hero-section {
    text-align: center;
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .timeline::before { left: 15px; }
  .timeline-item { padding-left: 50px; }
  .timeline-number { width: 30px; height: 30px; font-size: 1rem; }
  
  .comparison-table-wrapper {
      padding-bottom: 20px; /* Scroll hint */
  }
}
