/*!
 * Custom CSS - Auto Centrum Niepołomice
 * Optimized based on provided HTML files
 */

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Lora';
  background: -webkit-gradient(linear,left top,left bottom,from(rgba(40,40,40,0.75))),url(../img/bg.jpg);
  background: linear-gradient(rgba(40, 40, 40, 0.75)), url("../img/bg.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Raleway';
}

p {
  line-height: 1.75;
}

.text-faded {
  color: rgba(45, 45, 49, 0.95);
}

.text-blue {
  color: rgba(0,105,217,1);
}

.text-blue-bolded {
  font-weight: 600!important;
}

.site-heading {
  text-transform: uppercase;
  line-height: 1;
  font-family: 'Raleway';
}

.pt-5, .py-5 {
  padding-top: 1rem !important;
}

.site-heading .site-heading-upper {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.site-heading .site-heading-lower {
  font-size: 5rem;
  font-weight: 500;
  line-height: 4rem;
  color: rgba(0,105,217, 1);
}

/* Media query dla mniejszych ekranów */
@media (max-width: 767.98px) {
  .site-heading .site-heading-lower {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }
  .site-heading .site-heading-upper,
  .site-heading-lower-two,
  .site-heading-lower-three {
    font-size: 1.2rem;
  }
  .site-heading {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

.site-heading-lower-two {
  display: block;
  font-size: 2rem;
  font-weight: 400;
}

.site-heading-lower-three {
  display: block;
  font-size: 2rem;
  font-weight: 100;
}

.page-section {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.section-heading {
  text-transform: uppercase;
}

.section-heading .section-heading-upper {
  display: block;
  font-size: 1em;
  font-weight: 200;
}

.section-heading .section-heading-lower {
  display: block;
  font-size: 1em;
  font-weight: 100;
}

@media (max-width: 768px) {
   .section-heading-lower {
    font-size: 1.2rem!important;
  }
}

.bg-faded {
  background-color: rgba(255, 255, 255, 0.85);
}

#mainNav {
  background-color: rgba(0,105,217,.5);
  font-family: 'Raleway';
}

.mainNavsolid {
  background-color: rgba(0,105,217,.98) !important;
  transition: background-color 0.7s ease 0s;
  box-shadow: 0 0 4px grey;
}

#mainNav .navbar-brand {
  color: #ffffff;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 800;
}

#mainNav .navbar-nav .nav-item.active .nav-link {
  color: rgba(255, 255, 255, 1);
}

@media (min-width: 992px) {
  #mainNav .navbar-nav .nav-item .nav-link {
    font-size: 1rem;
  }
  #mainNav .navbar-nav .nav-item .nav-link:hover {
    color: rgba(255, 255, 225, 0.95);
  }
  #mainNav .navbar-nav .nav-item.active .nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
  }
}

@media (max-width: 420px) {
  #mainNav {
    background-color: rgba(0,105,217,1);
    font-family: 'Raleway';
  }
}

/* Intro classes preserved for index.html compatibility */
.intro {
  position: relative;
}

@media (min-width: 992px) {
  .intro .intro-img {
    width: 75%;
    float: right;
  }
  .intro .intro-text {
    left: 0;
    width: 40%!important;
    margin-top: 2rem;
    position: absolute;
  }
  .intro .intro-text .intro-button {
    width: 100%;
    left: 0;
    position: absolute;
    bottom: -2rem;
  }
}

@media (min-width: 1200px) {
  .intro .intro-text {
    width: 45%;
  }
}

.cta {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: rgba(17, 130, 251, 0.4);
}

.cta .cta-inner {
  position: relative;
  padding: 3rem;
  margin: 0.5rem;
  background-color: rgba(255, 255, 255, 0.85);
}

.cta .cta-inner-map {
  position: relative;
  padding: 5px;
  margin: 0.5rem;
}

.cta .cta-inner:before, .cta-inner-map{
  border-radius: 0.5rem;
  content: '';
  position: absolute;
  top: -0.5rem;
  bottom: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  border: 0.25rem solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

@media (min-width: 992px) {
  .about-heading .about-heading-img {
    position: relative;
    z-index: 0;
  }
  .about-heading .about-heading-content {
    margin-top: -3rem;
    margin-bottom: -3rem;
    position: relative;
    z-index: 1;
  }
  .img-about {
    width:75%;
  }
  .img-about-50 {
    width:50%;
    margin-left:5%;
  }
  .img-contact {
    width:60%;
  }
}

@media (min-width: 992px) {
  .product-item .product-item-title {
    position: relative;
    z-index: 1;
    margin-bottom: -3rem;
  }
  .product-item .product-item-img {
    position: relative;
    z-index: 0;
    max-width: 60vw;
  }
  .product-item .product-item-description {
    position: relative;
    z-index: 1;
    margin-top: -3rem;
    max-width: 50vw;
  }
}

@media (min-width: 992px) {
  .promotion-item .promotion-item-title {
    position: relative;
    z-index: 1;
    margin-bottom: -2rem;
  }
  .promotion-item .promotion-item-img {
    position: relative;
    z-index: 0;
    max-width: 60vw;
  }
  .promotion-item .promotion-item-description {
    position: relative;
    z-index: 1;
    margin-top: -2rem;
    max-width: 50vw;
  }
}

.list-hours {
  font-size: 0.9rem;
}

.list-hours .list-hours-item {
  border-bottom: 1px solid rgba(0, 105, 217, 0.5);
  padding-bottom: .25rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.list-hours .list-hours-item.today {
  font-weight: bold;
  color: rgba(0,105,217,1);
}

@media (min-width: 992px) {
  .list-hours {
    width: 50%;
    font-size: 1.1rem;
  }
}

.address strong {
  font-size: 1.5em;
}

.footer {
  background-color: rgba(255,255,255,.85);
}

.bg-light {
  background-color: rgba(255,255,255,.85) !important;
}

.text-primary {
  color: rgba(0,0,0,1) !important;
}

.bg-primary {
  background-color: #e6a756 !important;
}

.btn {
  -webkit-box-shadow: 0px 3px 3px 0px rgba(33, 37, 41, 0.1);
  box-shadow: 0px 3px 3px 0px rgba(33, 37, 41, 0.1);
}

.btn-primary {
  background-color: #1182fb;
  border-color: #1182fb;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: 007bff;
  border-color: 007bff;
}

.font-weight-light {
  font-weight: 100 !important;
}

/* Galeria zdjęć (Usługi) */
.image-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.image-gallery .product-item-img {
    max-width: 30%;
    width: auto;
    height: auto;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.image-gallery .mx-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.image-gallery .d-flex {
    display: block !important;
}

@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
    .image-gallery .product-item-img {
        max-width: 80%;
        margin-bottom: 15px !important;
    }
}

/* Promocje */
.promotion-text {
  font-size: 1.5rem;
  font-weight: normal;
  color: inherit;
  margin-right: 10px;
}

.promotion-price {
  font-size: 2rem;
  font-weight: bold;
}

/* Przycisk telefon */
.btn-green {
  background-color: #28a745;
  color: #fff;
  border: none;
}
.btn-green:hover {
  background-color: #218838;
  color: #fff;
}

/* Ikonki w sekcji usługi */
.icons-row-fixed {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 20px;
}

.icon-box {
    width: 80px;
    text-align: center;
}

.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ffffff;
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.icon-circle img {
    max-width: 80px;
    max-height: 80px; 
    width: auto;
    height: auto;
    opacity: 0.85;
    transition: 0.25s ease;
}

.icon-box p {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.icon-box:hover .icon-circle {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.icon-box:hover img {
    opacity: 1;
}

@media (min-width: 992px) {
  .icons-container {
    position: relative;
    z-index: 1;
    margin-top: -3rem;
    margin-left: auto;
    max-width: 50vw;
    left: 0;
    top: 0;
  }
}

@media (max-width: 767.98px) {
    .icons-row-fixed {
        justify-content: center;
        gap: 15px 15px;
    }
    .icon-box {
        width: 70px; 
    }
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    .icon-circle img {
        width: 50px;
        height: 50px;
    }
    .icons-container {
         margin-top: 1rem; 
         max-width: 100%;
         left: 0;
         top: 0;
    }
}

/* Pozycjonowanie sekcji ikon i badań dodatkowych */
@media (min-width: 992px) {
    .icons-and-info-container {
        display: flex;
        gap: 30px;
        position: relative;
        z-index: 1;
        margin-top: -15rem !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .icons-container {
        width: 100%;
    }
}

.icons-and-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .icons-and-info-container {
        margin-top: -10rem !important;
    }
}

@media (max-width: 767.98px) {
    .icons-and-info-container {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem !important;
    }

    .icons-container,
    .additional-inspections-box {
        max-width: 100%;
    }
}

/* KONTENER ikon – przesunięcie */
.icons-container {
    position: relative;
    z-index: 2;
    margin: -2rem auto -2rem auto;
    transform: translateX(-180px);
}

/* BADANIA DODATKOWE — przesunięte */
.additional-inspections-box {
    position: relative;
    z-index: 3;
    transform: translateX(220px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

/* RESPONSYWNOŚĆ – reset dla mobile */
@media (max-width: 768px) {
    .icons-container {
        margin: 2rem auto !important;
        transform: none !important;
        max-width: 100%;
    }
    .additional-inspections-box {
        max-width: 100%;
        transform: none !important;
    }
}