/* Sticky footer na dole strony */
body,
html {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

.main-footer {
  margin-top: auto;
  background: #222 !important;
  color: #fff !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.07);
  text-align: center !important;
  font-family: var(--font-body) !important;
}
/* Header i Footer CSS */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Header */
.main-header {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.2s ease;
  font-family: var(--font-heading) !important;
  text-align: center !important;
  /* Utrwal czcionki dla header niezależnie od nadpisań na podstronach */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 20px;
  margin-left: -15px;
  white-space: nowrap;
}

.logo img {
  display: block;
  height: 60px;
}

.header-contact {
  justify-content: center !important;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-number {
  font-family: var(--font-heading) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  white-space: nowrap !important;
  padding: 0 0 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.phone-icon {
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  color: #000 !important;
  fill: currentColor !important;
  filter: none !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

.phone-icon path {
  fill: currentColor !important;
}

.phone-text {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.phone-number:hover {
  color: #000066;
}

.phone-number:hover .phone-icon {
  color: #000066 !important;
}

.phone-number:hover .phone-icon path {
  fill: currentColor !important;
}

.header-cta {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 15px 25px !important;
  text-decoration: none !important;
  border-radius: 5px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  font-family: var(--font-heading) !important;
  font-size: 1.1rem !important;
}

.header-cta:hover {
  background: #000066;
  transform: translateY(-2px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.8rem;
  margin-left: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 16px 28px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.3s ease;
  border-bottom: 1px solid #eee;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.dropdown-menu a:hover {
  background: var(--light-gray);
  color: var(--primary-color);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Footer */
.main-footer {
  background: #222222;
  color: var(--white);
  padding: 15px 0 0 0;
  font-family: var(--font-body);
  margin-top: 0;
  /* Utrwal czcionki dla footer niezależnie od nadpisań na podstronach */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-section {
  text-align: center;
  padding: 0 32px;
}

.footer-section h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--white);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5px;
  font-size: 0.97rem;
  text-align: center !important;
}

.footer-section ul li a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: normal !important;
  text-align: center !important;
}

.footer-section ul li a:hover {
  color: #fff !important;
}

.footer-section p {
  color: #fff !important;
  line-height: 1.3;
  margin-bottom: 0px;
  font-size: 0.95rem;
  margin-top: 0px;
}

.footer-section a[href^="tel:"],
.footer-section a[href^="mailto:"],
.footer-section a[href*="maps.app.goo.gl"] {
  color: #fff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.footer-section a[href^="tel:"]:hover,
.footer-section a[href^="mailto:"]:hover,
.footer-section a[href*="maps.app.goo.gl"]:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 10px;
  text-align: center;
  margin-top: 10px;
  line-height: 1.3;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
  margin-block-start: 0%;
  margin-block-end: 0%;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
}

.footer-copyright {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0;
}

/* Responsywność Header/Footer */
@media (max-width: 768px) {
  .header-container {
    height: 85px;
  }

  .header-contact {
    gap: 15px;
  }

  .phone-number {
    font-size: 1.1rem;
  }

  .phone-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .header-cta {
    background: #000080;
    color: #fff;
    padding: 16px 28px;
    border-radius: 6px;
    font-weight: 600;
    margin: 18px 18px 0 18px;
    text-align: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: background 0.2s, color 0.2s;
    display: block;
    border: none;
  }
  .header-cta:hover {
    background: #001a4d;
    color: #fff;
  }
  .nav-link.header-cta {
    border-bottom: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100vw;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    padding: 20px 0 30px 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  .main-nav.mobile-active {
    display: flex;
  }
  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
  }
  .nav-item {
    width: 100%;
    text-align: left;
  }
  .nav-link,
  .header-cta {
    display: block;
    width: 100%;
    padding: 18px 28px;
    font-size: 1.15rem;
    border-bottom: 1px solid #eee;
    background: none;
    color: var(--text-dark);
    text-align: left;
  }
  .nav-link:last-child,
  .header-cta:last-child {
    border-bottom: none;
  }
  .dropdown-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: #f7f7f7;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .dropdown.mobile-active .dropdown-menu {
    display: block;
  }
  .dropdown-toggle::after {
    float: right;
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 2100;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 100px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .footer-section {
    text-align: center;
    padding: 0 0 18px 0;
    width: 100%;
    border-bottom: 1px solid #333;
  }
  .footer-section:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
    height: 70px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo img {
    height: 45px;
  }

  .phone-number {
    font-size: 0.95rem !important;
  }

  .phone-icon {
    width: 16px !important;
    height: 16px !important;
  }

  .header-cta {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    margin: 12px 12px 0 12px !important;
  }

  .main-nav {
    top: 70px;
  }

  .nav-link,
  .header-cta {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .footer-content {
    gap: 40px;
  }

  .footer-section {
    padding: 0 15px 15px 15px;
  }

  .footer-bottom {
    padding: 8px 15px;
  }
}

/* Dodatkowe: przy sticky nie potrzebujemy kompensacji padding-top na body */

/* Upewniamy się, że header używa odpowiednich czcionek */
.main-header,
.main-nav,
.nav-menu,
.nav-link,
.dropdown-menu,
.dropdown-menu a {
  font-family: var(--font-heading);
}

/* Footer używa czcionek body */
.main-footer,
.footer-section,
.footer-bottom {
  font-family: var(--font-body);
}

/* Usuń stare style opinii klientów, jeśli istnieją */
.testimonials,
.testimonial-item,
.testimonials-slider,
.testimonials-nav {
  display: unset !important;
  background: unset !important;
  box-shadow: unset !important;
  border: unset !important;
  padding: 0 !important;
  margin: 0 !important;
}


/* Scroll to Top Button - Spójny styl na wszystkich stronach */
/* Wysoka specyficzność aby nadpisać wszystkie inne style */
body .scroll-to-top,
html body .scroll-to-top,
body button.scroll-to-top,
html body button.scroll-to-top {
  position: fixed !important;
  bottom: 40px !important;
  right: 40px !important;
  width: 48px !important;
  height: 48px !important;
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.12) !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  scale: 1 !important;
  outline: none !important;
  text-decoration: none !important;
}

body .scroll-to-top.visible,
html body .scroll-to-top.visible,
body button.scroll-to-top.visible,
html body button.scroll-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

body .scroll-to-top:hover,
html body .scroll-to-top:hover,
body button.scroll-to-top:hover,
html body button.scroll-to-top:hover {
  transform: none !important;
  scale: 1 !important;
  background-color: transparent !important;
  background: transparent !important;
}

body .scroll-to-top:active,
html body .scroll-to-top:active,
body button.scroll-to-top:active,
html body button.scroll-to-top:active {
  transform: none !important;
  scale: 1 !important;
  background-color: transparent !important;
  background: transparent !important;
}

body .scroll-to-top img,
html body .scroll-to-top img,
body button.scroll-to-top img,
html body button.scroll-to-top img {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%) !important;
  transition: none !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .scroll-to-top:hover img,
html body .scroll-to-top:hover img,
body button.scroll-to-top:hover img,
html body button.scroll-to-top:hover img {
  transform: none !important;
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%) !important;
}

@media (max-width: 768px) {
  body .scroll-to-top,
  html body .scroll-to-top,
  body button.scroll-to-top,
  html body button.scroll-to-top {
    width: 48px !important;
    height: 48px !important;
    bottom: 30px !important;
    right: 30px !important;
  }

  body .scroll-to-top img,
  html body .scroll-to-top img,
  body button.scroll-to-top img,
  html body button.scroll-to-top img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }
}

@media (max-width: 480px) {
  body .scroll-to-top,
  html body .scroll-to-top,
  body button.scroll-to-top,
  html body button.scroll-to-top {
    width: 48px !important;
    height: 48px !important;
    bottom: 25px !important;
    right: 25px !important;
  }

  body .scroll-to-top img,
  html body .scroll-to-top img,
  body button.scroll-to-top img,
  html body button.scroll-to-top img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }
}
