body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer {
    background-color: #1E2A47;
    color: white;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
     margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-logo-info {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 350px;
}

.footer-logo-info img {
    width: 150px;
    height: auto;
    margin-right: 20px;
}

.company-info {
    font-size: 18px;
    line-height: 1.6;
    white-space: nowrap;
}

.company-name {
    font-weight: 600;
    font-size: 22px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 2px;
    margin-left: 0;
}
.footer-column a,
.footer-column1 a,
.footer-column2 a {
    color: white;
    text-decoration: none;
}

.footer-column a:hover,
.footer-column1 a:hover,
.footer-column2 a:hover {
    text-decoration: underline;
}

.footer-column {
    flex: 1;
    min-width: 110px;
    max-width: 400px;
    
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: underline;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
    font-size: 18px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li:hover {
    cursor: pointer;
    text-decoration: underline;
}

.footer-column1,
.footer-column2 {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.footer-column1 h3,
.footer-column2 h3 {
    font-size: 21px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: underline;
}

.footer-column1 ul,
.footer-column2 ul {
    list-style-type: none;
    padding: 0;
    font-size: 15px;
}

.footer-column1 ul li,
.footer-column2 ul li {
    margin-bottom: 8px;
}

.footer-column1 ul li:hover,
.footer-column2 ul li:hover {
    cursor: pointer;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.logo-takeuchi,
.logo-m3,
.logo-rototilt,
.logo-atmos {
    width: 160px;
    height: auto;
}

.logo-rototilt {
    width: 140px;
}

.logo-atmos {
    width: 180px;
    filter: none;
}

.footer-logos img {
    filter: brightness(0) invert(1);
}

.footer-logos .logo-atmos {
    filter: none !important;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.7;
}

.contact-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    text-decoration: underline;
    font-size: 1.1em;
}

/* WhatsApp button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(60, 255, 0, 0.5);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(62, 181, 8, 0.986);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(68, 176, 5, 0.5);
    }
}

/* ======== GŁÓWNE USTAWIENIA ======== */
.whatsapp-button {
  position: fixed;
  bottom: 100px; /* domyślnie wyżej */
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  animation: pulse 1.5s infinite;
  z-index: 1001;
}

.whatsapp-popup {
  display: none;
  position: fixed;
  bottom: 170px; /* odpowiednio wyżej względem przycisku */
  right: 20px;
  width: 300px;
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  text-align: center;
}

/* ======== RESPONSYWNOŚĆ ======== */

/* Tablety i mniejsze laptopy */
@media (max-width: 1024px) {
  .whatsapp-button {
    bottom: 100px;
  }
  .whatsapp-popup {
    bottom: 170px;
  }
}

/* Małe tablety i duże telefony w poziomie */
@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 100px;
  }
  .whatsapp-popup {
    bottom: 170px;
  }
}

/* Typowe telefony */
@media (max-width: 600px) {
  .whatsapp-button {
    bottom: 100px;
  }
  .whatsapp-popup {
    bottom: 170px;
    width: 90%;
    right: 5%;
  }
}

/* Małe telefony */
@media (max-width: 400px) {
  .whatsapp-button {
    bottom: 100px;
  }
  .whatsapp-popup {
    bottom: 170px;
  }
}


.whatsapp-button img {
    width: 32px;
    height: auto;
}

.whatsapp-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    text-align: center;
}

.whatsapp-popup .subtext {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #333;
}

.whatsapp-contact-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.whatsapp-contact-btn:hover {
    background-color: #1ebe5d;
}

#whatsappOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.close-btn:hover {
    color: #1ebe5d;
}

/* ======= MEDIA QUERIES ======= */
@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-info {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-info img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .company-info {
        white-space: normal;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-column,
    .footer-column1,
    .footer-column2 {
        max-width: 100%;
        min-width: unset;
        margin-bottom: 20px;
    }

    .footer-logos {
        gap: 30px;
    }

    .footer-logos img {
        max-width: 120px;
    }
}

@media (max-width: 600px) {
    .footer-logo-info img {
        width: 120px;
    }

    .company-info {
        font-size: 16px;
    }

    .footer-column h3,
    .footer-column1 h3,
    .footer-column2 h3 {
        font-size: 18px;
    }

    .footer-column ul,
    .footer-column1 ul,
    .footer-column2 ul {
        font-size: 14px;
    }

    .footer-logos img {
        max-width: 100px;
    }

    .whatsapp-popup {
        width: 90%;
        right: 5%;
    }
}
