/* Reset i podstawowe style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100%;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    max-width: 1170px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 {
    flex: 0 0 100%;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}


h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background-color: #008435;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 132, 53, 0.3);
}


h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

/* Links */
a {
    color: #008435;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #006625;
}

/* Utilities */
.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;
}

.pull-right {
    float: right;
}

.divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 2rem 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    will-change: transform;
}

.logo-container {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.logo-wrapper {
    text-align: center;
}

.logo {
    max-width: 143px;
    height: auto;
    max-height: 78px;
}

.navbar-container {
    background-color: #f8f9fa;
    padding: 15px 0;
}

.navbar-header {
    display: none;
}

.navbar-toggle {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}

.icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-collapse {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav li {
    margin: 0 5px;
}

.nav a {
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.nav a:hover {
    background-color: #008435;
    color: #fff;
}

.navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-right {
    margin-left: auto;
}

.language-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
}

.language-nav li {
    display: flex;
    align-items: center;
    margin: 0 1px;
}

.language-nav a {
    padding: 4px 6px;
    margin: 0 1px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.language-nav a:hover {
    background-color: #008435;
    color: #fff;
    border-radius: 4px;
}

.language-nav a strong {
    background-color: #008435;
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
}

/* Main content offset */
body {
    padding-top: 140px;
}

/* Carousel/Slider */
.carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.carousel-inner {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    text-align: center;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}



/* Sections */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

/* Content styles */
.content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content li {
    margin-bottom: 8px;
}

/* Variety boxes */
.variety-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 30px;
}

.variety-box.reverse {
    flex-direction: row-reverse;
}

.variety-image {
    flex-shrink: 0;
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.variety-content {
    flex: 1;
}

.variety-content h2 {
    color: #2c5530;
    margin-bottom: 20px;
}

/* Gallery */
.gallery-section {
    background-color: #e8f4f8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}



/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info h2 {
    color: #2c5530;
    margin-bottom: 20px;
}

.google-maps {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #008435;
    color: #fff;
    padding: 10px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer a {
    color: #fff;
}

.footer a:hover {
    color: #c8e6c9;
}

/* Small desktop screens */
@media screen and (max-width: 1200px) and (min-width: 1025px) {
    .language-nav {
        max-width: 600px;
        overflow: hidden;
    }
    
    .language-nav a {
        font-size: 0.8rem;
        padding: 4px 5px;
        margin: 0 1px;
    }
    
    .language-nav a strong {
        background-color: #008435;
        padding: 4px 5px;
    }
}

/* Medium screens (tablets) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .navbar-container {
        padding: 10px 0;
    }
    
    .nav li {
        margin: 0 3px;
    }
    
    .nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .language-nav a {
        padding: 3px 4px;
        font-size: 0.8rem;
        margin: 0;
    }
    
    .language-nav a strong {
        background-color: #008435;
        padding: 3px 4px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding-top: 120px;
    }
    
    .navbar-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .navbar-toggle {
        display: block !important;
    }
    
    .navbar-collapse {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background: #f8f9fa;
        padding: 20px 0;
        margin-top: 10px;
        border-top: 1px solid #ddd;
    }
    
    .navbar-collapse.show {
        display: flex !important;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .nav li {
        margin: 5px 0;
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-right {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .language-nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .language-nav li {
        margin: 2px;
    }
    
    .carousel {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 15px 20px;
    }
    
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    .variety-box {
        flex-direction: column;
        text-align: center;
    }
    
    .variety-box.reverse {
        flex-direction: column;
    }
    
    .variety-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Desktop specific styles */
@media screen and (min-width: 769px) {
    .navbar-toggle {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
    }
    
    .navbar-header {
        display: none !important;
    }
    
    .language-nav {
        max-width: none;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .carousel {
        height: 250px;
    }
    
    .variety-box {
        margin-bottom: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 150px;
    }
}

/* Simple Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: none;
    border: none;
}

.close:hover {
    color: #bbb;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth animations */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optimize repaints */
.navbar,
.carousel,
.gallery-item,
.modal {
    transform: translateZ(0);
    will-change: transform;
}

/* Loading states */
img[src*=".webp"] {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}