/*
Theme Name: Domar Budownictwo Footer
Description: Style for the footer of the Domar Budownictwo theme.
Author: M GraphStore (projektant)
Author URI: https://mgraphstore.com
Version: 1.0
*/

/* Ogólne style dla stopki */
.footer {
  background: linear-gradient(160deg, #0F5BB5, #0A4A9E); /* Gradient niebieski */
  color: #fff;
  padding: 60px 20px 40px;
  font-family: Arial, sans-serif;
}

.footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start; /* Wyrównanie kolumn do góry */
}

/* Style dla każdej sekcji (kolumny) */
.footer .footer-section {
  flex: 1 1 250px;
  margin: 10px;
  text-align: center;
  padding: 20px; /* Spójny padding dla wszystkich kolumn */
  box-sizing: border-box; /* Uwzględnij padding w szerokości */
}

/* Nagłówek h3 w każdej sekcji */
.footer .footer-section h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 2px solid #ffcc00;
  padding-bottom: 10px;
  text-align: center;
  color: #fff;
  height: 60px; /* Stała wysokość dla nagłówków */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kolumna "O nas" */
.footer .footer-section.about {
  background-color: rgba(255, 255, 255, 0.1); /* Subtelne tło */
  border-radius: 10px;
}

.footer .footer-section.about .footer-logo {
  display: block;
  max-width: 197px;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.footer .footer-section.about .footer-logo:hover {
  transform: scale(1.05); /* Logo lekko się powiększa po najechaniu */
}

.footer .footer-section.about p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 0;
}

/* Kolumna "Mapa strony" */
.footer .footer-section.sitemap ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.footer .footer-section.sitemap ul li {
  margin-bottom: 10px;
}

.footer .footer-section.sitemap ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
  position: relative;
}

.footer .footer-section.sitemap ul li a::before {
  content: '→';
  margin-right: 8px;
  color: #ffcc00;
  transition: margin-right 0.3s ease;
}

.footer .footer-section.sitemap ul li a:hover::before {
  margin-right: 12px; /* Strzałka przesuwa się w prawo po najechaniu */
}

.footer .footer-section.sitemap ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #ffcc00;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.footer .footer-section.sitemap ul li a:hover::after {
  width: 100%; /* Podkreślenie rozciąga się na całą szerokość */
}

/* Kolumna "Kontakt" */
.footer .footer-section.contact {
  flex: 1 1 300px; /* Zwiększona minimalna szerokość */
}

.footer .footer-section.contact p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px; /* Mniejszy odstęp między paragrafami */
  white-space: nowrap; /* Zapobiega zawijaniu tekstu */
}

.footer .footer-section.contact p:last-child {
  margin-bottom: 0; /* Usunięcie marginesu dla ostatniego paragrafu */
}

.footer .footer-section.contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .footer-section.contact a:hover {
  color: #ffcc00;
}

/* Ikony telefonu i e-mail */
.contact-icon-footer {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

/* Kolumna "Social" */
.footer .footer-section.social {
  text-align: center;
}

.footer .footer-section.social h3 {
  text-align: center;
}

.footer .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
}

.footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  color: #0F5BB5;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Cień pod ikonami */
}

.footer .social-icons a:hover {
  background-color: #ffcc00;
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Większy cień po najechaniu */
}

.footer .social-icons a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Stopka dolna */
.footer .footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  font-size: 0.9em;
  color: #f0f0f0;
  background-color: rgba(0, 0, 0, 0.1); /* Subtelne tło dla stopki dolnej */
  padding: 20px;
  border-radius: 10px 10px 0 0; /* Zaokrąglone rogi u góry */
}

.footer .footer-bottom a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .footer-bottom a:hover {
  color: #fff;
}

/* Responsywność */
@media (max-width: 768px) {
  .footer {
    padding: 40px 15px 20px; /* Mniejszy padding na urządzeniach mobilnych */
  }

  .footer .footer-container {
    flex-direction: column; /* Kolumny ułożone jedna pod drugą */
    gap: 10px; /* Mniejszy odstęp między kolumnami */
    align-items: center; /* Wyśrodkowanie kolumn */
  }

  .footer .footer-section {
    flex: 1 1 100%; /* Pełna szerokość dla każdej kolumny */
    margin: 10px 0; /* Mniejsze marginesy */
    padding: 15px; /* Mniejszy padding */
    max-width: 300px; /* Ograniczenie szerokości kolumn */
    width: 100%; /* Pełna szerokość */
    text-align: center; /* Wyśrodkowanie tekstu */
  }

  .footer .footer-section h3 {
    font-size: 1.2em; /* Mniejszy rozmiar czcionki dla nagłówków */
    height: auto; /* Automatyczna wysokość */
    padding-bottom: 5px; /* Mniejszy padding */
  }

  .footer .footer-section.about .footer-logo {
    max-width: 150px; /* Mniejsze logo na urządzeniach mobilnych */
  }

  .footer .footer-section.contact p {
    font-size: 0.9em; /* Mniejszy rozmiar czcionki */
    white-space: normal; /* Zawijanie tekstu na urządzeniach mobilnych */
  }

  .footer .social-icons {
    gap: 10px; /* Mniejszy odstęp między ikonami */
    justify-content: center; /* Wyśrodkowanie ikon */
  }

  .footer .social-icons a {
    width: 35px; /* Mniejsze ikony */
    height: 35px;
  }

  .footer .social-icons a img {
    width: 18px; /* Mniejsze ikony */
    height: 18px;
  }

  .footer .footer-bottom {
    padding-top: 20px; /* Mniejszy padding */
    margin-top: 20px;
    font-size: 0.8em; /* Mniejszy rozmiar czcionki */
  }
}