/* ===== ZMIENNE CSS ===== */
:root {
    --primary-color: #517A44;
    --secondary-color: #93B585;
    --primary-dark: #3d5a33;
    --secondary-light: #a8c599;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===== PODSTAWOWE STYLE ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Responsive styles dla mniejszych ekranów */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
    }
    
    .main-navbar {
        min-height: 50px;
    }
    
    .mega-dropdown .mega-menu {
        width: 95vw;
        padding: 1rem;
    }
}

/* ===== TYPOGRAFIA ===== */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 300px;
    max-height: 120px;
    height: auto;
    width: auto;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.contact-info {
    font-size: 14px;
    color: var(--text-dark);
}

.contact-item {
    margin-bottom: 5px;
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.contact-hours {
    font-size: 12px;
    color: var(--text-dark);
}

/* ===== NAVIGATION MENU ===== */
.main-navbar {
    background-color: var(--primary-color);
    min-height: 60px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navbar .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 15px 20px;
    transition: var(--transition);
    position: relative;
}

.main-navbar .navbar-nav .nav-link:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
}

.main-navbar .navbar-nav .nav-link i {
    font-size: 14px;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== MEGA MENU ===== */
.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    background-color: var(--white);
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 2rem;
    margin-top: 0;
    z-index: 1050;
}

@media (max-width: 768px) {
    .mega-dropdown .mega-menu {
        top: 120px; /* Dostosowanie dla mobile */
        width: 95vw;
        padding: 1rem;
    }
}

.mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.mega-menu .dropdown-item {
    padding: 8px 0;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 4px;
    margin-bottom: 4px;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 10px;
}

/* ===== DROPDOWN MENU (zwykłe) ===== */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 1rem;
}

.dropdown-item {
    padding: 8px 16px;
    transition: var(--transition);
    border-radius: 4px;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-nav {
    background-color: var(--light-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* ===== HERO SECTION ===== */
.hero-section {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: 0;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section.bg-light {
    background-color: var(--light-bg);
}

.section.section-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.section.section-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--white);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #000;
}

.btn-apply {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-apply:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== PULSE ANIMATION ===== */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(81, 122, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(81, 122, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(81, 122, 68, 0);
    }
}

/* ===== TILES/CARDS ===== */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tile-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tile p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== ACCORDION ===== */
.accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-weight: 500;
    padding: 1.5rem;
    border: none;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23517A44'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 2rem;
    background-color: var(--white);
}

/* ===== LISTS ===== */
.list-numbered {
    counter-reset: item;
    padding-left: 0;
    list-style: none;
}

.list-numbered li {
    counter-increment: item;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.list-numbered li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--white);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

ul.list-styled li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== TABLES ===== */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--light-bg);
}

/* ===== IMAGES ===== */
.img-fluid {
    border-radius: 8px;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #3F6334;
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info .contact-item {
    margin-bottom: 1rem;
    font-size: 14px;
    color: var(--white);
}

.contact-info .contact-item strong {
    color: var(--white);
}

.contact-info .contact-item small {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info .contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-info .contact-item a:hover {
    color: var(--secondary-color);
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.company-info {
    font-size: 14px;
}

.legal-notice {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.cookies-notice {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 6px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
    }
    
    .mega-menu {
        width: 95vw;
        padding: 1rem;
    }
    
    .contact-info {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .logo {
        max-width: 250px;
        max-height: 100px;
    }
    
    .section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 300px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .tile {
        padding: 1.5rem;
    }
    
    .tile-icon {
        font-size: 2.5em;
    }
}

/* ===== UTILITIES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .main-navbar,
    .breadcrumb-nav,
    .footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        background: none !important;
        color: var(--text-dark) !important;
    }
    
    .hero-section::before {
        display: none;
    }
}