/* ==========================================================================
   SEKCJA HERO - SLIDER (Swiper)
   ========================================================================== */

.home-hero {
    position: relative;
    width: 100%;
    height: 85vh ; 
    min-height: 500px;
    overflow: hidden;
    background-color: #222; 
    max-width: 100vw ;
    display: block ;
    flex: 0 0 100% ;
}
.hero-content h2 {
    font-size: 2.5rem;
    font-family: 'Montserrat',sans-serif;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-swiper {
    width: 100%;
    height: 100% !important;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 75, 75, 0.40); 
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px; 
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 10; 
    color: #ffffff;
    padding: 0 20px;
}

.hero-content h1 {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(16px, 2vw, 24px);
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-button-next, 
.swiper-button-prev {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.3);
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    backdrop-filter: blur(4px); 
    transition: all 0.3s ease;
}
.swiper-button-next {
    right: 40px !important;
}
.swiper-button-prev {
    left: 40px !important;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 20px !important; 
    font-weight: bold;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: #ffffff !important;
    width: 30px !important; 
    border-radius: 6px !important;
}

.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    z-index: -1; 
}


/* --- RESPONSYWNOŚĆ --- */

/* TABLETY (Poniżej 1024px) */
@media (max-width: 1024px) {
    .home-hero {
        height: 40vh;
    }
    .hero-content {
        padding: 0 45px;
    }
    .swiper-button-next, 
    .swiper-button-prev {
        width: 50px !important;
        height: 50px !important;
    }
    .swiper-button-next { right: 15px !important; }
    .swiper-button-prev { left: 15px !important; }
    
    .swiper-button-next:after, 
    .swiper-button-prev:after {
        font-size: 16px !important;
    }
    .home-hero h2 {
        font-size: 2rem;
    }
}

/* TELEFONY (Poniżej 768px) */
@media (max-width: 768px) {
    .home-hero {
        height: 40vh; 
        min-height: 550px;
    }
    .hero-content {
        padding: 0;
    }
    .hero-inner {
        padding: 0 10px; 
    }
    .swiper-button-next, 
    .swiper-button-prev {
        display: none !important;
    }
    
    .hero-content p {
        margin-bottom: 25px; 
    }
    .home-hero h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   SEKCJA O Firmie 
   ========================================================================== */

.home-about {
    background-color: #ffffff; 
    overflow: hidden;
}

.about-wrapper {
    display: flex;
    align-items: center;
    padding-right: 100px;
}

.about-image-column {
    flex: 1.1;
    position: relative;
}

.about-image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text-column {
    flex: 1;
    padding: 5%;
    border-top: 5px solid;
    border-right: 5px solid;
    border-bottom: 5px solid;
    border-image-source: linear-gradient(90deg, #2A3E93 0%, #306EB5 55%);
    border-image-slice: 1;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 24px;
    color: #4c4b4b;
}
.about-badge strong { 
    text-decoration: underline;
}

.about-text-column h2 {
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.about-text-column p {
    margin-bottom: 35px;
}



/* --- RESPONSYWNOŚĆ --- */

/* TABLETY (Poniżej 1024px) */
@media (max-width: 1024px) {
    .home-about {
        padding: 40px 0;
    }
    .about-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        padding-right: 20px; 
        padding-left: 20px;
        gap: 0px; 
    }
    
    .about-text-column {
        padding: 40px;
        border-left: 5px solid; 
        border-top: 5px solid;
        border-bottom: 0;
        border-image-source: linear-gradient(90deg, #2A3E93 0%, #306EB5 100%);
    }

    .about-badge {
        justify-content: center;
    }
}

/* TELEFONY (Poniżej 768px) */
@media (max-width: 768px) {
    .about-text-column {
        border-width: 5px; 
        padding: 40px 10px;
    }

    .about-badge {
        font-size: 1.1rem;
        gap: 5px;
    }
}


/* ==========================================================================
   SEKCJA Katalog
   ========================================================================== */
.home-catalog {
    padding: 100px 40px;
    background-color: #f9f9f9; 
}

.home-catalog .grid-container {
    max-width: 1450px;
    margin: 0 auto;      
    padding: 0 20px;     
    width: 100%;   
}

.catalog-title {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-title .subtitle {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}


/* Konfiguracja Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 60px;
}

.catalog-item {
    position: relative;
    height: 340px; 
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.item-wide {
    grid-column: span 2;
}

.catalog-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 20%, rgba(21, 48, 79, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: opacity 0.3s ease;
}

.catalog-overlay h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.catalog-item:hover img {
    transform: scale(1.1);
}

.catalog-item:hover .catalog-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 10%, rgba(48, 110, 181, 0.95) 100%);
}

/* --- RESPONSYWNOŚĆ --- */

@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }
    .item-wide {
        grid-column: span 2; 
    }
    .catalog-title .subtitle {
        font-size: 1.5rem;
    }
    .catalog-title {
        margin-bottom: 30px;
     }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr; 
    }
     .item-wide {
        grid-column: span 1; 
    }
    .home-catalog {
        padding: 100px 20px;
    }
    .catalog-title .subtitle {
        font-size: 1.1rem;
    }
    .home-catalog .grid-container {
        padding: 0;
    }
}

/* ==========================================================================
   SEKCJA Usługi
   ========================================================================== */

.section-reverse .about-wrapper {
    flex-direction: row-reverse;
}
#uslugi .about-wrapper {
    display: flex;
    align-items: center;
    padding-left: 100px;
    padding-right: 0;
}

.section-reverse .about-text-column {
    border-right: 0;
    border-left: 5px solid;
    border-image-source: linear-gradient(270deg, #2A3E93 0%, #306EB5 55%); 
    border-image-slice: 1;
}

.about-badge .subtitle {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

/* --- RESPONSYWNOŚĆ --- */

@media (max-width: 1024px) {
    #uslugi .about-wrapper {
        flex-direction: column; 
        text-align: center;
        padding: 40px 20px;
        gap: 0px; 
    }
    
    #uslugi .about-text-column {
        padding: 40px;
        border-right: 5px solid; 
        border-top: 0px;
        border-bottom: 5px solid;
        border-image-source: linear-gradient(90deg, #2A3E93 0%, #306EB5 100%);
    }
}
/* TELEFONY (Poniżej 768px) */
@media (max-width: 768px) {
    .section-reverse .about-text-column {
        border-width: 5px; 
    }
    #uslugi .about-text-column {
        padding: 40px 10px;
    }
    .about-badge .subtitle {
        font-size: 1.1rem;
        gap: 5px;
    }
}

@media (max-width: 500px) {
    #uslugi .btn-primary-gradient {
        max-width: 350px;
    }
}

/* ==========================================================================
   SEKCJA Realizacje - slider
   ========================================================================== */
.home-realizations .grid-container {
    max-width: 1450px; 
    width: 95%;
    padding: 0 20px;
    margin: 0 auto;
}

.home-realizations {
    padding: 100px 0;
    background-color: #f4f4f4; 
    overflow: hidden;
}

.realizations-swiper {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.realizations-swiper .swiper-slide {
    height: 350px ; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 30px -10px rgba(21, 48, 79, 0.25);
    transition: transform 0.3s ease;
    display: block;
}
.swiper.realizations-swiper {
    padding-top: 10px;
    padding-bottom: 10px;
}

.realizations-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realizations-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}


.realizations-nav-wrapper .swiper-button-prev,
.realizations-nav-wrapper .swiper-button-next {
    position: static !important; 
    color: #333 !important;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.realizations-nav-wrapper .swiper-pagination {
    position: static !important;
    width: auto !important;
}

/* --- RESPONSYWNOŚĆ --- */

/* TABLETY (Poniżej 1024px) */
@media (max-width: 1024px) {
    .home-realizations {
        padding: 60px 0; 
    }

    .realizations-swiper .swiper-slide {
        height: 300px; 
    }

    .realizations-nav-wrapper {
        margin-top: 40px; 
    }
}

/* TELEFONY (Poniżej 768px) */
@media (max-width: 768px) {
    .home-realizations {
        padding: 40px 0; 
    }

    .realizations-swiper .swiper-slide {
        height: 250px; 
        border-radius: 10px; 
    }

    .realizations-nav-wrapper {
        gap: 20px; 
        margin-top: 30px;
    }

    .realizations-nav-wrapper .swiper-button-prev,
    .realizations-nav-wrapper .swiper-button-next {
        width: 45px !important;
        height: 45px !important;
    }
    
    .realizations-nav-wrapper .swiper-button-prev:after,
    .realizations-nav-wrapper .swiper-button-next:after {
        font-size: 14px !important; 
    }
}

/* ==========================================================================
   SEKCJA Cytat
   ========================================================================== */

.home-quote-divider {
    position: relative;
    padding: 150px 0; 
    background-image: url('https://www.tomawer.pl/wp-content/uploads/2026/05/Ogrod-Tomawer.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 75, 75, 0.5); 
    z-index: 1;
}

.quote-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.quote-content p {
    font-size: clamp(24px, 3.5vw, 42px); 
    font-weight: 300; 
    font-style: italic; 
    line-height: 1.4;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif; 
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .home-quote-divider {
        background-attachment: scroll;
        padding: 100px 20px;
    }
}

/* ==========================================================================
   SEKCJA Blog
   ========================================================================== */

.home-blog .grid-container {
    max-width: 1450px;
    margin: 0 auto;
}

.home-blog {
    padding: 100px 0;
    background-color: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.blog-thumbnail {
    height: 290px;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}

.blog-date {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: #306EB5; 
    line-height: 1.4;
    margin-bottom: 20px;
    min-height: 56px; 
}

.blog-more {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #444;
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.blog-card:hover .arrow-circle {
    background-color: #306EB5; 
    color: #fff;
    border-color: #306EB5; 
    transform: rotate(-45deg); 
}

/* --- RESPONSYWNOŚĆ --- */

@media (max-width: 1024px) {
    .home-blog {
        padding: 60px 0; 
    }
    
    .home-blog .grid-container {
        padding: 0 20px; 
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    .blog-card:last-child {
        grid-column: span 2; 
        justify-self: center; 
        width: calc(50% - 10px); 
    }
}

@media (max-width: 768px) {
    .home-blog {
        padding: 40px 0;
    }

    .blog-grid {
        grid-template-columns: 1fr; 
    }

    .blog-thumbnail {
        height: 220px; 
    }

    .blog-content {
        padding: 20px; 
    }
    
    .blog-title {
        min-height: auto; 
        font-size: 18px; 
    }
    .blog-card:last-child {
        grid-column: span 1; 
        justify-self: stretch; 
        width: 100%; 
    }
}
@media (max-width: 600px) {
    .home-blog .subtitle {
        max-width: 300px;
        margin: 0 auto;
    }

}

/* ==========================================================================
   SEKCJA Partnerzy
   ========================================================================== */

.home-partners .grid-container {
    max-width: 1450px; 
    width: 95%;
    padding: 0 20px;
    margin: 0 auto;
}

.home-partners {
    padding: 60px 0;
    background-color: #f5f5f5; 
}

.partners-swiper {
    padding: 40px 0 40px 0 !important;
}

.partners-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px; 
}

.partners-swiper .swiper-slide img {
    max-width: 260px;
    max-height: 120px;
    width: 100%;
    height: auto;
    filter: grayscale(100%); 
    opacity: 0.6;
    transition: all 0.3s ease;
    object-fit: contain;
    margin: 0 auto;
}

.partners-swiper .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partners-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.partners-nav-wrapper .swiper-button-prev,
.partners-nav-wrapper .swiper-button-next {
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    background: #ffffff;
    border-radius: 50%;
    color: #333 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.partners-nav-wrapper .swiper-button-prev::after,
.partners-nav-wrapper .swiper-button-next::after {
    font-size: 16px !important;
}

.partners-nav-wrapper .swiper-pagination {
    position: static !important;
    width: auto !important;
}

/* --- RESPONSYWNOŚĆ --- */

@media (max-width: 1024px) {
    .home-partners {
        padding: 30px 0;
    }

    .partners-swiper {
        padding: 40px 0 40px 0 !important;
    }
}

/* TELEFONY (Poniżej 768px) */
@media (max-width: 768px) {
    .home-partners {
        padding: 30px 0; 
    }
    .partners-swiper {
        padding: 20px 0 20px 0 !important;
    }
    .partners-swiper .swiper-slide {
        height: 150px; 
    }

    .partners-swiper .swiper-slide img {
        max-height: 80px; 
        padding: 0 15px; 
    }
}