﻿/* ===== RESET & BAZA ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Ubuntu', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7f2;
    color: #1e2e1e;
    line-height: 1.5;
}

a {
    text-decoration: none !important;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

h1 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1a4a1a;
    margin-bottom: 1.5rem;
    border-left: 6px solid #3b8c3b;
    padding-left: 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1a4a1a;
    margin-bottom: 1.5rem;
    border-left: 6px solid #3b8c3b;
    padding-left: 20px;
}

.btn {
    display: inline-block;
    background: #2d6e2d;
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none !important;
}

.btn:hover {
    background: #1a4a1a;
    transform: scale(1.06);
}

/* ===== ANIMACJE POJAWIANIA ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    color: #1a4a1a !important;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
    color: #1a4a1a !important;
}

.fade-up-delay-1 {
    transition-delay: 0.1s;
}

.fade-up-delay-2 {
    transition-delay: 0.2s;
}

.fade-up-delay-3 {
    transition-delay: 0.3s;
}

.fade-up-delay-4 {
    transition-delay: 0.4s;
}

.fade-up-delay-5 {
    transition-delay: 0.5s;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 20, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    border-bottom: 2px solid #d0e4d0;
    transition: box-shadow 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 72px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-links a {
    color: #1f3a1f;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none !important;
    position: relative;
}

.nav-links a:hover {
    border-bottom-color: #3b8c3b;
    color: #0f2a0f;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b8c3b;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #1f4f1f;
    border-radius: 4px;
    transition: 0.2s;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    background: #dce8d4;
    padding: 0;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    height: 80vh;
    max-height: 800px;
    min-height: 400px;
}

.slider-container {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    height: 100%;
}

.slide-hero {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #2d4a2d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.slide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: 0.6s;
}

.slide-hero:hover::before {
    background: rgba(0, 0, 0, 0.15);
}

.slide-hero h2 {
    font-size: 3.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
    color: #ffffff !important;
}

.slide-hero h3 {
    font-size: 1.6rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease 0.3s both;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 28px;
    border-radius: 40px;
    display: inline-block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

.slider-controls button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
    position: relative;
    text-indent: -9999px;
    overflow: hidden;
}

.slider-controls button.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.slider-controls button:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 3.2rem;
    padding: 8px 24px;
    cursor: pointer;
    border-radius: 60px;
    backdrop-filter: blur(6px);
    z-index: 10;
    transition: 0.3s;
    line-height: 1;
    font-weight: 300;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

@media (max-width: 1024px) {
    .slide-hero h2 {
        font-size: 2.8rem;
    }
    .slide-hero h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 700px) {
    .hero-slider {
        height: 60vh;
        max-height: 500px;
        min-height: 300px;
    }
    .slide-hero h2 {
        font-size: 2rem;
    }
    .slide-hero h3 {
        font-size: 1rem;
        padding: 8px 16px;
    }
    .slider-btn {
        font-size: 2rem;
        padding: 4px 14px;
    }
    .slider-btn.prev {
        left: 10px;
    }
    .slider-btn.next {
        right: 10px;
    }
    .slider-controls {
        bottom: 15px;
        gap: 10px;
    }
    .slider-controls button {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* ===== O FIRMIE ===== */
.about-block {
    background: #ffffff;
    border-radius: 32px;
    padding: 40px 44px;
    box-shadow: 0 12px 32px rgba(0, 30, 0, 0.04);
    margin: 10px 0;
}

.about-block p {
    font-size: 1.08rem;
    color: #1d331d;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.highlight-green {
    color: #1f6b1f;
    font-weight: 600;
}

.cert-badge {
    display: inline-block;
    background: #e2f0e2;
    padding: 6px 24px;
    border-radius: 40px;
    font-weight: 500;
    color: #1d5a1d;
    margin-top: 10px;
}

/* ===== KARTY PRODUKTÓW (5x5) ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 12px 20px;
    box-shadow: 0 4px 14px rgba(0, 30, 0, 0.04);
    transition: 0.3s;
    text-align: center;
    border: 1px solid #e6efe6;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 36px rgba(30, 70, 30, 0.10);
    border-color: #3b8c3b;
}

.product-image-wrapper {
    width: 84px;
    height: 84px;
    margin: 0 auto 10px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef5ee;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    display: block;
}

.product-card .name {
    font-weight: 600;
    color: #1b451b;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.product-card .cat {
    font-size: 0.7rem;
    color: #457545;
    background: #ebf5eb;
    display: inline-block;
    padding: 2px 12px;
    border-radius: 30px;
}

/* ===== USŁUGI ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 0 0 28px 0;
    box-shadow: 0 4px 16px rgba(0, 20, 0, 0.04);
    border: 1px solid #dce9dc;
    text-align: center;
    transition: 0.35s;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30, 70, 30, 0.08);
    border-color: #3b8c3b;
}

.service-item .service-img {
    width: 100%;
    aspect-ratio: 380/285;
    background: #ecf5ec;
    overflow: hidden;
}

.service-item .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.service-item:hover .service-img img {
    transform: scale(1.04);
}

.service-item h3 {
    font-size: 1.2rem;
    color: #1f4a1f;
    margin: 16px 0 6px;
    padding: 0 16px;
}

.service-item p {
    font-size: 0.92rem;
    color: #2c452c;
    padding: 0 16px;
}

.service-item .service-link {
    display: inline-block;
    margin-top: 12px;
    color: #2d6e2d;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    text-decoration: none !important;
    padding: 6px 20px;
    border-radius: 30px;
    background: #ecf5ec;
}

.service-item .service-link:hover {
    color: #fff;
    background: #2d6e2d;
    transform: scale(1.04);
}

/* ===== TRANSPORT ===== */
.transport-box {
    background: #e9f2e6;
    border-radius: 32px;
    padding: 40px 44px;
}

.transport-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.transport-grid .desc h2 {
    color: #1b4a1b;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.transport-grid .desc p {
    font-size: 1.05rem;
    color: #1d3a1d;
}

.transport-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.transport-gallery .truck {
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-color: #a6bf9a;
    aspect-ratio: 4/3;
    transition: 0.4s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    min-height: 150px;
}

.transport-gallery .truck:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    .transport-grid {
        grid-template-columns: 1fr;
    }
    .transport-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .transport-gallery {
        grid-template-columns: 1fr;
    }
}

/* ===== KONTAKT ===== */
.contact-section {
    background: #e8f3e8;
    padding: 60px 0;
    margin-top: 20px;
    border-radius: 40px 40px 0 0;
}

.contact-section .section-title {
    color: #1a4a1a;
    border-left-color: #3b8c3b;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 36px;
    box-shadow: 0 8px 28px rgba(0, 30, 0, 0.06);
    border: 1px solid #dce9dc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h2 {
    font-size: 1.3rem;
    color: #1a4a1a;
    margin-bottom: 16px;
}

.contact-info p {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #1d331d;
}

.contact-info a {
    color: #2d6e2d;
    text-decoration: none !important;
    transition: 0.2s;
    font-weight: 500;
}

.contact-info a:hover {
    color: #1a4f1a;
}

.contact-info .btn-contact {
    display: inline-block;
    background: #2d6e2d;
    color: #fff;
    padding: 12px 34px;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none !important;
    margin-top: 6px;
}

.contact-info .btn-contact:hover {
    background: #1a4a1a;
    transform: scale(1.06);
}

.contact-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dce9dc;
}

.contact-extra span {
    background: #ecf5ec;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #1d4a1d;
}

.contact-map-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 36px;
    box-shadow: 0 8px 28px rgba(0, 30, 0, 0.06);
    border: 1px solid #dce9dc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-map-box .map-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.contact-map-box h3 {
    color: #1a4a1a;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.contact-map-box p {
    color: #2c452c;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.map-link {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 40px;
    background: #2d6e2d;
    transition: 0.25s;
    text-decoration: none !important;
}

.map-link:hover {
    background: #1a4a1a;
    transform: scale(1.05);
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2d6e2d;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 40px;
    background: #ecf5ec;
    transition: 0.25s;
    text-decoration: none !important;
    margin-top: 6px;
    align-self: flex-start;
}

.facebook-link:hover {
    background: #dce9dc;
    transform: scale(1.04);
    color: #1a4f1a;
}

.facebook-link svg {
    width: 22px;
    height: 22px;
    fill: #2d6e2d;
}

.facebook-link:hover svg {
    fill: #1a4f1a;
}

/* ===== FLAGI ===== */
.languages {
    background: #e8f3e8;
    padding: 20px 0 30px;
    border-top: 1px solid #d0e4d0;
}

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d3a1d;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    transition: 0.2s;
    text-decoration: none !important;
}

.lang-link:hover {
    background: #c6dcc6;
    color: #0f2a0f;
    transform: scale(1.05);
}

/* ===== POPRAWA WSPÓŁCZYNNIKA PROPORCJI FLAG ===== */
.lang-link img {
    height: 20px;
    width: auto;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    flex-shrink: 0;
}

/* ===== STOPKA ===== */
.footer-bg {
    background-image: url('/img/footer/footer-bg.webp');
    background-size: cover;
    background-position: center;
    background-color: #1d3a1d;
    padding: 50px 0 20px;
    position: relative;
    border-top: 4px solid #3b8c3b;
}

.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.footer-bg .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    color: #ecf7ec;
}

.footer-grid h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #daf0da;
    margin-bottom: 14px;
    border-bottom: 2px solid #3b8c3b;
    padding-bottom: 8px;
}

.footer-grid p,
.footer-grid a {
    font-size: 0.92rem;
    line-height: 1.9;
    color: #d0e8d0;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-grid .footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid #3a613a;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #c6dfc6;
}

.footer-bottom a {
    color: #c6dfc6;
    text-decoration: underline dotted !important;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.tech-stack {
    font-size: 0.75rem;
    color: #9abf9a;
    margin-top: 10px;
    border-top: 1px solid #2f552f;
    padding-top: 12px;
}

.tech-stack span {
    display: inline-block;
    margin: 0 12px 0 0;
}

/* ============================================
   POPRAWKI KONTRASTU DLA WAVE
   ============================================ */

/* Wymuszenie koloru dla nagłówków z animacją fade-up */
.fade-up,
.fade-up.visible,
h1.fade-up,
h1.fade-up.visible,
h2.fade-up,
h2.fade-up.visible,
h3.fade-up,
h3.fade-up.visible,
.section-title.fade-up,
.section-title.fade-up.visible {
    color: #1a4a1a !important;
    opacity: 1 !important;
}

/* Poprawa kontrastu dla tekstu na sliderze */
.slide-hero h2,
.slide-hero h3,
.slide-hero p {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* ============================================
   RWD
   ============================================ */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        border-top: 1px solid #d0e4d0;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .logo img {
        height: 52px;
    }
    .section-title,
    h1 {
        font-size: 1.8rem;
    }
    .about-block {
        padding: 24px 20px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-info,
    .contact-map-box {
        padding: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
    .lang-grid {
        gap: 4px 10px;
    }
    .lang-link {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
}