/*--------------------- Responsive (Start) ---------------------*/
@media (max-width: 991px){

    html{
        font-size: 55%;
    } 
   
    .header .navbar{   
        display: none; 
    } 

    .header #menu-btn{  
        display: initial; 
    }

    .header .icon-container .btn{
        display: none;
    }

    .mobile-menu { 
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 10000;
        max-height: 80vh;
        overflow-y: auto; 
        background: var(--black);
        -webkit-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
        -o-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
        -webkit-box-shadow: var(--box-shadow);
                box-shadow: var(--box-shadow);
        border-top: 0.2rem solid var(--main-color);
        border-bottom: 0.2rem solid var(--main-color);
        padding: 2rem;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    } 
    
    .mobile-menu.active {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .mobile-navbar{
        display: -webkit-box; 
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 1rem;
    }

    .mobile-navbar .nav-link{
        background: var(--main-color);
        overflow: hidden;
    }

    .mobile-navbar .main-nav-link{
        color: var(--white);
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer; 
        width: 100%;
        padding: 1.5rem;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify; 
        justify-content: space-between; 
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .mobile-navbar .main-nav-link a{
        color: var(--white);
    }
    
    .mobile-navbar .sub-nav-link {
        background-color: var(--white);
        padding: 1rem 0;
        padding-left: 4rem;
        display: none;
        -webkit-transition: all 0s;
        -moz-transition: all 0s;
        -o-transition: all 0s;
        transition: all 0s;
    }
    
    .mobile-navbar .sub-nav-link a{
        color: var(--grey);
        border-bottom: 0.1rem solid rgba(0,0,0,0.2);
        display: block;
        padding: 1rem 0rem;
        font-size: 1.8rem;
        font-weight: 500;
    }
    
    .mobile-navbar .sub-nav-link a:hover{
        color: var(--main-color);
    }
    
    .mobile-menu::-webkit-scrollbar{
        width: 0.8rem; 
    }
    
    .mobile-menu::-webkit-scrollbar-thumb{
        border-radius: 1rem;
        background-color: var(--main-color);
    }
    
    .mobile-menu::-webkit-scrollbar-track{
        background: transparent;
    }

    .blog.grid, .blog.list{
        -ms-flex-wrap: wrap-reverse;
            flex-wrap: wrap-reverse;
    }

    .shop{
        -ms-flex-wrap: wrap-reverse;
            flex-wrap: wrap-reverse;
    }
    
    .footer .box-container{
        -ms-grid-columns: (minmax(33rem, 1fr))[auto-fit];
        grid-template-columns: repeat(auto-fit, minmax(33rem, 1fr));
    }

    .features .box-container{
        -ms-grid-columns: (minmax(28rem, 1fr))[auto-fit];
        grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }

    .team .box-container{
        -ms-grid-columns: (minmax(28rem, 1fr))[auto-fit];
            grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }
    
}

@media (max-width: 768px){

    section{
        padding: 3rem 2rem;
    }

    .header .header-1{
        padding-left: 2rem;
    }

    .header .header-2{
        padding: 0rem 2rem;
    }

    .header .social-contacts{
        width: 30%;
        padding: 0.5rem 2rem;
    }

    .footer .box-container{
        padding: 2rem;
    }

.footer-item h3{ 
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-item h3 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--main-color, #4CAF50);
  color: #fff;
}

.footer-item h3:before{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 10rem;
    height: 2px;
    content: "";
    background-color: var(--main-color); 
    -webkit-transform: translateX(0%); 
            transform: translateX(0%);
}
    .search-container{
        right: 1rem;
    }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

    .home-item .content{ 
        padding: 2rem;
        padding-top: 8rem;
    }

    .project-item{
        width: 50%;
    }

    .gallery .box-container{
        -ms-grid-columns: 1fr 1fr;
            grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        'gallery-1 gallery-4'
        'gallery-1 gallery-5'
        'gallery-2 gallery-6'
        'gallery-3 gallery-6'
        'gallery-7 gallery-8'
        'gallery-7 gallery-9';
    }

}

@media (max-width: 450px){
    
    html{
      font-size: 50%;
    }

    section{
        padding: 3rem 1rem;
    }

    .career .career-intro,
    .career-positions,
    .career-benefits,
    .contact .box-container{
        padding: 3rem 1rem;
    }

    .header .header-1{
        padding-left: 1rem;
        justify-content: flex-end;
    }

    .header .header-2{
        padding: 0rem 1rem;
    }

    .header .social-contacts{
        width: 50%;
        padding: 0.5rem 1rem;
    }

    .header .header-contacts {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ✅ MODIFICAT: Stil pentru linkul de telefon */
.call-link {
  color: #fff !important;
  font-weight: bold;
  text-decoration: none;
}
.call-link:hover {
  color: #ddd;
}

    .footer .box-container{
        padding: 2rem 1rem;
    }
.footer-item h3 {
    font-size: 2rem;
  }

    .home-item .content{ 
        padding: 1rem;
        padding-top: 8rem;
    }

    .home-slider .swiper-button-next,
    .home-slider .swiper-button-prev{
        display: none;
    }

    .features{
        padding-bottom: 1rem;
    }

    .form .input-box,
    .dark-form .input-box{
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }

    .dark-form .input-box .input-field,
    .dark-form .select{
        -webkit-box-flex: 1;
            -ms-flex: 1 1 25rem;
                flex: 1 1 25rem;
    }

    .page-title{
        -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
        -webkit-box-align: start;
            -ms-flex-align: start;
                    -ms-grid-row-align: flex-start;
                align-items: flex-start;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }

    .team-single .image{
        width: 100%;
    }

    .team-item .team-image{
        height: 40rem;
    }

    .gallery .box-container{
        -ms-grid-columns: 1fr;
            grid-template-columns: 1fr;
        grid-template-areas: 
        'gallery-1'
        'gallery-2'
        'gallery-3'
        'gallery-4'
        'gallery-5'
        'gallery-6'
        'gallery-7'
        'gallery-8'
        'gallery-9';
    }

    .account-form{
        max-width: 100%;
    }

    .project-item{
        width: 100%;
    }

    .shop .product-container.list .product-item {
        gap: 0rem;
    }

    .shop .product-container.list .product-item .image {
        width: 30rem;
    }

    .shop .product-container.list .product-item .content {
        padding: 1rem;
        width: 100%;
    }

    .shop .product-container.list .product-item .content p {
        line-height: 1.5;
    }

    .product-info .leave-reply{
        width: 100%;
    }

    .cart .cart-summary{
        width: 100%; 
    }
    
    .whyUs .content,
    .cost-calculator .content,
    .get-quote .content{
        padding: 4rem 5%;
        -webkit-clip-path: none;
                clip-path: none;
    }
    
}
/*--------------------- Call now button ---------------------*/
@media (max-width: 600px) {
  .call-now-btn {
    font-size: 14px;
    padding: 10px 16px;
    bottom: 15px;
    right: 155px;
    position: fixed;
    background-color: #2e7d32;
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: background-color 0.3s ease;
  }
}
/* 📱 Phone screens: extra small (<= 360px) */
@media (max-width: 360px) {
  .call-now-btn {
    font-size: 14px;
    padding: 10px 18px;
    bottom: 15px;
    right: 15px;
  }
}
/* 📱 Small devices: 361px–480px */
@media (min-width: 361px) and (max-width: 480px) {
  .call-now-btn {
    font-size: 15px;
    padding: 10px 20px;
    bottom: 16px;
    right: 16px;
  }
}
/* 📱 Medium phones: 481px–640px */
@media (min-width: 481px) and (max-width: 640px) {
  .call-now-btn {
    font-size: 16px;
    padding: 12px 22px;
    bottom: 18px;
    right: 18px;
  }
}
/* 📱 Large phones / tablets: 641px–768px */
@media (min-width: 641px) and (max-width: 768px) {
  .call-now-btn {
    font-size: 17px;
    padding: 12px 24px;
    bottom: 20px;
    right: 20px;
  }
}
/* 🖥️ Desktop fallback (optional) */
@media (min-width: 769px) {
  .call-now-btn {
    font-size: 17px;
    padding: 12px 24px;
  }
}
/*--------------------- Responsive (End) ---------------------*/