/*
Theme Name: Bootstrap + WordPress
Theme URI: https://yoursite.com/
Author: PD
Author URI: https://yoursite.com/
Description: Custom Bootstrap 5 + WordPress theme with ACF PRO Flexible Content
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bs5b
*/

 :root {
    --pzd-green: #1b4332;    /* Ciemna zieleń */
    --pzd-light: #40916c;    /* Jasna zieleń */
    --pzd-accent: #ffb703;   /* Żółty akcent */
    --pzd-bg: #f8fdf9;       /* Tło sekcji */
    --text-main: #333;
  }

/* Parallax helper */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Search results */
.search-results-section .search-result-item { border-bottom: 1px solid #dee2e6; padding-bottom: 1.5rem; }
.search-results-section .search-result-item:last-child { border-bottom: none; }

/* 404 */
.error-404-section { min-height: 60vh; display: flex; align-items: center; }

/* Post / archive */
.post-card .card-img-top { object-fit: cover; height: 220px; }
.wp-post-image { max-width: 100%; height: auto; }

/* Pagination */
.pagination-wrapper .page-numbers { display: inline-block; padding: .375rem .75rem; margin: 0 .15rem; border: 1px solid #dee2e6; border-radius: .375rem; }
.pagination-wrapper .page-numbers.current { background: #0d6efd; color: #fff; border-color: #0d6efd; }



/* ===== HERO ===== */

.pzd-hero {
    background: linear-gradient(rgba(27, 67, 50, 0.85), rgba(27, 67, 50, 0.6)), url('https://images.unsplash.com/photo-1591857177580-dc82b9bf4e1d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pzd-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Skalowanie tekstu */
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: white;
}

.pzd-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.95;
    color: #e8f5e9;
}

.pzd-btn {
    background-color: var(--pzd-accent);
    color: var(--pzd-green);
    padding: 15px 35px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block;
    border: none;
}

.pzd-btn:hover {
    background-color: #ffca3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


 .pzd-features {
    padding: 80px 20px;
    background-color: var(--pzd-bg);
  }

  .pzd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .pzd-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .pzd-card:hover {
    transform: translateY(-5px);
  }

  .pzd-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
  }

  .pzd-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .pzd-card h3 {
    color: var(--pzd-green);
    margin-top: 0;
    font-size: 1.4rem;
  }

  .pzd-link {
    margin-top: auto;
    color: var(--pzd-light);
    font-weight: bold;
    text-decoration: none;
  }