/* ---------------------------------- */
/* Custom Theme & Variables           */
/* ---------------------------------- */
:root {
  --custom-blue: #3498DB;
  /* Accent Blue */
  --custom-dark-blue: #1b2c3e;
  /* Primary Dark Navy */
  --custom-yellow: #de7c21;
  /* CTA Orange */
  --custom-green: #52C690;
  /* Accent Green */
  --custom-text: #34495e;
  /* Body Text */
  /* Pastel Backgrounds */
  --custom-pastel-blue: #EAF6FF;
  /* light sky */
  --custom-pastel-cream: #FFF5E0;
  /* warm cream */
  --custom-pastel-mint: #E8FFF1;
  /* fresh mint */
  --custom-pastel-pink: #FFF0F5;
  /* soft pink/lavender */
  /* Override Bootstrap Variables */
  --bs-primary: var(--custom-dark-blue);
  --bs-secondary: var(--custom-blue);
  --bs-success: var(--custom-green);
  --bs-warning: var(--custom-yellow);
  --bs-light: var(--custom-pastel-blue);
  --bs-body-color: var(--custom-text);
  --bs-body-font-family: 'Poppins', sans-serif;
}

.bg-pastel {
  background-color: var(--custom-pastel-cream);
}

.border-dark-blue {
  --bs-border-opacity: 1;
  border-color: rgba(var(--custom-dark-blue), var(--bs-border-opacity)) !important;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--custom-dark-blue);
  --bs-btn-border-color: var(--custom-dark-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #152331;
  /* darker navy */
  --bs-btn-hover-border-color: #152331;
  --bs-btn-focus-shadow-rgb: 27, 44, 62;
  /* rgb of --custom-dark-blue */
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0f1c29;
  /* darkest navy */
  --bs-btn-active-border-color: #0f1c29;
}

/* ---------------------------------- */
/* General Styles & Effects           */
/* ---------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  position: relative;
}

.content-section {
  padding: 100px 0;
  border-bottom: 1px solid #dee2e6;
}

.content-section:nth-of-type(odd) {
  background-color: var(--custom-pastel-blue);
}

.content-section:nth-of-type(even) {
  background-color: var(--custom-pastel-cream);
}

/* ---------------------------------- */
/* Navigation Bar                     */
/* ---------------------------------- */
.navbar {
  transition: padding 0.3s ease-in-out;
  background-color: var(--custom-dark-blue) !important;
  font-weight: 600;
}

.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--custom-yellow);
}

.navbar .nav-link {
  transition: color 0.3s;
  color: rgba(255, 255, 255, 0.8);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--custom-yellow);
}

.navbar .nav-link i {
  font-size: 0.8em;
}

.btn-call {
  border-color: var(--custom-yellow);
  color: var(--custom-yellow);
  transition: all 0.3s;
}

.btn-call:hover,
.btn-call:focus {
  background-color: var(--custom-yellow);
  color: var(--custom-dark-blue);
  box-shadow: 0 0 10px var(--custom-yellow);
}

/* ---------------------------------- */
/* Hero Section (#home)               */
/* ---------------------------------- */
#home {
  position: relative;
  background-image: url('assets/bg-Cleaning-Poznan.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #dee2e6;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(44, 62, 80, 0.7);
  z-index: 1;
}

#home .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#home h1.display-3 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  /* min, fluid, max */
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#home p.lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
  /* Constrain line length for readability */
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-cta {
  background-color: var(--custom-yellow);
  border-color: var(--custom-yellow);
  color: #fff;
  /* ensures text is readable */
  font-weight: 600;
  padding: 12px 30px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: #d4a90c;
  /* a slightly darker yellow for hover */
  border-color: #d4a90c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------- */
/* Services Section (#uslugi)         */
/* ---------------------------------- */
.section-title {
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--custom-dark-blue);
}

.service-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-image-container {
  overflow: hidden;
  position: relative;
  /* Add this */
}

.service-card img {
  width: 100%;
  height: 100%;
  /* Change from 250px to 100% */
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card-body {
  padding: 25px;
}

.service-card-body h3 {
  color: var(--custom-dark-blue);
  font-weight: 600;
  margin-bottom: 15px;
}

/* Only affects this block */
.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.service-list li i {
  color: var(--custom-green);
  /* green check */
  flex-shrink: 0;
  margin-top: 2px;
  /* vertical align tweak */
}

.service-card-body h4 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
}

.sticky-top h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
}

.sticky-top h4 {
  font-size: clamp(1.0rem, 3vw, 1.5rem);
  font-weight: 600;
}

/* ---------------------------------- */
/* About Us Section (#o-nas)          */
/* ---------------------------------- */
.about-image-container img {
  border-radius: 15px;
}

.about-text .section-title {
  text-align: left !important;
  /* Overrides the centered default style */
  margin-bottom: 0.5rem;
}

.about-text p {
  font-size: 1.05rem;
  /* Slightly larger text for readability */
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

.about-text .lead {
  font-weight: 600;
}

.drop-cap {
  font-size: 4.5rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 15px;
  margin-top: 8px;
  color: var(--custom-dark-blue);
}

.about-image-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #e6f9ff 0%, #ffffff 100%);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(44, 62, 80, 0.15);
}

.info-box i {
  vertical-align: middle;
}

.blockquote {
  font-style: italic;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.bubbles span {
  position: absolute;
  bottom: -60px;
  display: block;
  background: rgba(52, 152, 219, 0.25);
  border-radius: 50%;
  animation: rise 18s linear infinite;
}

/* randomize positions, sizes, durations, delays */
.bubbles span:nth-child(1) {
  left: 3%;
  width: 18px;
  height: 18px;
  animation-duration: 14s;
  animation-delay: 0s;
}

.bubbles span:nth-child(2) {
  left: 7%;
  width: 24px;
  height: 24px;
  animation-duration: 19s;
  animation-delay: 3s;
}

.bubbles span:nth-child(3) {
  left: 12%;
  width: 12px;
  height: 12px;
  animation-duration: 11s;
  animation-delay: 6s;
}

.bubbles span:nth-child(4) {
  left: 18%;
  width: 30px;
  height: 30px;
  animation-duration: 16s;
  animation-delay: 9s;
}

.bubbles span:nth-child(5) {
  left: 23%;
  width: 15px;
  height: 15px;
  animation-duration: 20s;
  animation-delay: 12s;
}

.bubbles span:nth-child(6) {
  left: 29%;
  width: 22px;
  height: 22px;
  animation-duration: 17s;
  animation-delay: 1s;
}

.bubbles span:nth-child(7) {
  left: 35%;
  width: 28px;
  height: 28px;
  animation-duration: 21s;
  animation-delay: 4s;
}

.bubbles span:nth-child(8) {
  left: 41%;
  width: 16px;
  height: 16px;
  animation-duration: 15s;
  animation-delay: 7s;
}

.bubbles span:nth-child(9) {
  left: 47%;
  width: 24px;
  height: 24px;
  animation-duration: 18s;
  animation-delay: 10s;
}

.bubbles span:nth-child(10) {
  left: 53%;
  width: 20px;
  height: 20px;
  animation-duration: 22s;
  animation-delay: 13s;
}

.bubbles span:nth-child(11) {
  left: 59%;
  width: 19px;
  height: 19px;
  animation-duration: 12s;
  animation-delay: 2s;
}

.bubbles span:nth-child(12) {
  left: 65%;
  width: 27px;
  height: 27px;
  animation-duration: 15s;
  animation-delay: 5s;
}

.bubbles span:nth-child(13) {
  left: 71%;
  width: 13px;
  height: 13px;
  animation-duration: 20s;
  animation-delay: 8s;
}

.bubbles span:nth-child(14) {
  left: 77%;
  width: 31px;
  height: 31px;
  animation-duration: 18s;
  animation-delay: 11s;
}

.bubbles span:nth-child(15) {
  left: 83%;
  width: 17px;
  height: 17px;
  animation-duration: 21s;
  animation-delay: 14s;
}

.bubbles span:nth-child(16) {
  left: 89%;
  width: 26px;
  height: 26px;
  animation-duration: 19s;
  animation-delay: 3s;
}

.bubbles span:nth-child(17) {
  left: 95%;
  width: 20px;
  height: 20px;
  animation-duration: 13s;
  animation-delay: 6s;
}

.bubbles span:nth-child(18) {
  left: 1%;
  width: 14px;
  height: 14px;
  animation-duration: 16s;
  animation-delay: 9s;
}

.bubbles span:nth-child(19) {
  left: 8%;
  width: 32px;
  height: 32px;
  animation-duration: 20s;
  animation-delay: 12s;
}

.bubbles span:nth-child(20) {
  left: 15%;
  width: 18px;
  height: 18px;
  animation-duration: 22s;
  animation-delay: 0s;
}

.bubbles span:nth-child(21) {
  left: 22%;
  width: 23px;
  height: 23px;
  animation-duration: 11s;
  animation-delay: 3s;
}

.bubbles span:nth-child(22) {
  left: 29%;
  width: 29px;
  height: 29px;
  animation-duration: 17s;
  animation-delay: 6s;
}

.bubbles span:nth-child(23) {
  left: 36%;
  width: 15px;
  height: 15px;
  animation-duration: 19s;
  animation-delay: 9s;
}

.bubbles span:nth-child(24) {
  left: 43%;
  width: 25px;
  height: 25px;
  animation-duration: 14s;
  animation-delay: 12s;
}

.bubbles span:nth-child(25) {
  left: 50%;
  width: 20px;
  height: 20px;
  animation-duration: 21s;
  animation-delay: 1s;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.6;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(-110vh) scale(1.3);
    opacity: 0;
  }
}

/* ensure text sits above */
/* .about-text {
     position: relative;
     z-index: 1;
   } */
/* ---------------------------------- */
/* Pricing Section (#cennik)          */
/* ---------------------------------- */
.list-group {
  --bs-list-group-bg: var(--custom-pastel-cream);
}

.pricing-list {
  border-radius: 15px;
  overflow: hidden;
}

.pricing-list .list-group-item {
  padding: 1.25rem 1.5rem;
  border-color: #e9ecef;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
}

.pricing-list .list-group-item:hover {
  background-color: #fff;
  transform: scale(1.02);
  z-index: 2;
  border-left: 5px solid var(--custom-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.pricing-item {
  display: flex;
  width: 100%;
  align-items: center;
}

.pricing-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  /* border-radius: 50%; */
  margin-right: 1.5rem;
}

.pricing-details {
  flex-grow: 1;
}

.pricing-item h5 {
  color: var(--custom-dark-blue);
  font-weight: 600;
}

.price-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--custom-dark-blue);
  padding: 0.5rem 1rem;
  border-radius: var(--bs-border-radius);
  white-space: nowrap;
  /* Prevents the price from wrapping to a new line */
  margin-left: 1rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .pricing-item {
    flex-direction: column;
    align-items: center;
    /* center all child elements */
    text-align: center;
  }

  .pricing-img {
    width: 50px;
    height: 50px;
    margin-right: 0;
    /* remove spacing on mobile */
    margin-bottom: 0.5rem;
    /* add some spacing below image */
  }

  .pricing-details h5 {
    font-size: 1rem;
    /* make heading smaller */
    margin-bottom: 0.5rem;
    /* spacing before price */
  }

  .price-tag {
    margin: 0 auto;
    /* center horizontally */
    display: inline-block;
  }
}

/* Load More button */
#loadMore {
  padding: 0.75rem 2rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#loadMore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* Animation for smooth reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------- */
/* Contact Section (#kontakt)         */
/* ---------------------------------- */
.map-container {
  border-radius: 15px;
  overflow: hidden;
}

.location-list,
.feature-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.location-list li,
.feature-list li {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.location-list i {
  color: var(--custom-green);
  margin-right: 10px;
  font-size: 1.2rem;
}

.feature-list i {
  color: var(--custom-dark-blue);
  margin-right: 12px;
  font-size: 1.3rem;
}

.contact-form-container {
  background-color: var(--bs-light);
  border-radius: 15px;
}

.contact-form-container .form-control {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 2px solid #dee2e6;
  transition: border-color 0.2s;
}

.contact-form-container .form-control:focus {
  border-color: var(--custom-blue);
  box-shadow: none;
}

.disclaimer-text {
  font-size: 0.8rem;
  color: #6c757d;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------------------------------- */
/* "Porady" Section (#porady)             */
/* ---------------------------------- */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.accordion-button {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  color: var(--custom-dark-blue);
  background-color: #fff;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background-color: var(--custom-dark-blue);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
  box-shadow: none;
}

/* Custom accordion icon */
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232C3E50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform .2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  line-height: 1.7;
}

.accordion-button i {
  font-size: 1.3rem;
}

/* Special Offer Box */
.special-offer-box {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  align-items: center;
  border: 1px solid #dee2e6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.special-offer-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-left: 5px solid var(--custom-yellow);
}

.offer-icon {
  font-size: 3rem;
  color: var(--custom-dark-blue);
  margin-right: 1.5rem;
}

.offer-content {
  flex-grow: 1;
}

.offer-content h3 {
  color: var(--custom-dark-blue);
  font-weight: 700;
}

@media (max-width: 992px) {
  .special-offer-box {
    flex-direction: column;
    text-align: center;
  }

  .offer-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .special-offer-box .btn {
    margin-top: 1.5rem;
    width: 100%;
  }
}

footer{
    background-image: url('assets/footer.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.footer-link:hover {
  color: var(--custom-dark-blue) !important;
}



        /* ---------------------------------- */
        /* Blog Page Specific Styles          */
        /* ---------------------------------- */
        .blog-header {
            padding: 8rem 0 4rem;
        }

        .blog-header h1 {
            font-weight: 700;
            color: var(--custom-dark-blue);
        }

        .blog-section {
            padding: 60px 0;
        }
        article h2 {margin:2.5rem 0 1rem 0;}
        article h3 {margin:1.5rem 0 1rem 0;}
        article h2 + h3 { margin-top: 0;  }
        article h2:has(+ h3) {
              margin-bottom: .5rem;
          }

        /* Featured Post Card */
        .featured-post-card {
            background-color: #fff;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: none;
        }
        .featured-post-card:hover {
             transform: translateY(-5px);
             box-shadow: 0 15px 50px rgba(0,0,0,0.12);
        }

        .featured-post-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        @media (max-width: 991.98px) {
            .featured-post-img {
                height: 350px;
            }
        }

        .featured-post-card .card-body {
            padding: 2.5rem;
        }

        @media (max-width: 767.98px) { /* Bootstrap's mobile breakpoint */
          .featured-post-card .card-body {
            padding: 1.25rem; /* smaller padding on mobile */
          }
        }

        .featured-post-card .card-title {
            font-size: clamp(1.5rem, 3vw, 2.2rem);
            font-weight: 600;
            color: var(--custom-dark-blue);
        }

        /* Standard Blog Card */
        .blog-card {
            background-color: #fff;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 25px rgba(0,0,0,0.07);
            transition: all 0.3s ease;
            height: 100%;
            border: none;
        }

        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .blog-card-img-container {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .blog-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .blog-card .card-body {
            padding: 1.5rem;
        }

        .blog-card .post-date {
            font-size: 0.85rem;
            color: #6c757d;
            margin-bottom: 0.5rem;
        }

        .blog-card .card-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--custom-dark-blue);
            margin-bottom: 0.75rem;
        }

        .blog-card .card-text {
            color: #555;
            line-height: 1.6;
        }

        .date-divider {
          display: flex;
          align-items: center;
          text-align: center;
          color: #6c757d; /* matches Bootstrap's text-muted */
          margin-top: 4rem;
          font-size: 0.9rem;
        }

        .date-divider::before,
        .date-divider::after {
          content: "";
          flex: 1;
          border-bottom: 1px solid #6c757d; /* solid line */
        }

        .date-divider:not(:empty)::before {
          margin-right: 0.75em;
        }

        .date-divider:not(:empty)::after {
          margin-left: 0.75em;
        }
