/******** Header ********/

.wrapper {
    display: flex;
    background-color: #ffffff;
    align-items: center;
    justify-content: center;
    padding: 0px;
    flex-wrap: wrap;
    gap: 2px;
    height: 0px;
    position: absolute;
    top: 0;
    
}



.logo-image {
    flex: 1;
    max-width: 70px;
    top: 2px;
    left: 20px;
    position: fixed;
    z-index: 21;
    
}

.logo-home img {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    vertical-align: top;
    border-radius: 20px;
    
}

.company-name {
    flex: 2;
    top: -3px;
    left: 95px;
    z-index: 21;
    color: #075985;
    text-decoration: none;
}

.company-name :hover {
    color: #13aafb;
}

.company-name-home {
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.company-name-home a {
    color: #075985;
    text-decoration: none;
}

.company-name a:visited {
    color: #075985;
}

/******** Top Tabs ********/
#top-tabs {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 60px;
    background-color: white;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
    z-index: 20;
    
}

#top-tabs a {

    float: right;
    display: block;
    width: 8%;
    height: 30px;
    font-weight: 400;
    text-align: right;
    color: #434c5b;
    text-decoration: none;
    padding-top:  20px;
    padding-right: 20px;
}

#top-tabs a:hover {
    
    color: #13aafb;
}

/***************************************** body *********************************************/
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: white;
    color: #333;
    overflow-y: auto;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

/******** Main Home ********/
.main-home {
                top: 60px;
                height: 80px;
                background: url('images/mainHome.png') no-repeat center center;
                background-size: cover;
                width: 100%;
                min-height: 400px;
                padding: 60px 20px;
                margin-bottom: 80px;
                box-sizing: border-box;
                text-align: center;
                color: #fff;
                position: relative;
                z-index: 0;
            }

.main-home h1 {
    font-size: 48px;
    margin: 0;
    text-align: center;
    color: #ffffff;
}

#elegance h1 {
    font-size: 48px;
    margin: 0;
    text-align: center;
    color: #13aafb;
}

#contact-us-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #118fd3;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

/******** Why choose DS Carpet Fitters?********/

.why-choose {
    position: relative;
    background-color: #dbf1fd;
    z-index: 9;
    padding: 40px;
    margin-bottom: 20px;
}

.why-choose h2 {
    color: #085880;
    text-align: center;
}

.why-choose-title p {
    text-align: center;
    font-size: 20px;
    color: #333;
}

.why-choose ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.why-choose li {
    color: #075985;
    font-weight: bold;
    font-size: 16px;
}

.why-choose p {
    color: #333;
    font-size: 14px;
    font-weight: normal;
}

.why-choose ul li {
    flex: 1 1 20%;
    margin: 10px;
    padding: 80px 0 80px 0;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/*************************************** About Us **********************************/
.about-ds-title {
    text-align: center;
    color: #085880;
    background-color: #dbf1fd;
    padding-bottom: 20px;
    margin-top: 60px;
}


/******** Our Services********/
.our-services {
    position: relative;
    background-color: #dbf1fd;
    z-index: 9;
    padding: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.our-services-title {
    text-align: center;
    color: #085880;

}

.our-services-title h2 {
    margin-bottom: 20px;
    color: #085880;
}

.our-services ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.our-services li {
    flex: 1 1 20%;
    margin: 10px;
    padding: 0px 0 10px 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #085880;
}

.our-services p {
    color: #333;
    font-size: 14px;
    font-weight: normal;
}

.services-img img {
    margin-top: 0px;
    width: 100%;
    height: 300px;
    border-radius: 10px 10px 0 0;
}

/******** Bottom Logo, Quick links and Contact info ********/

.footer-col a:visited {
    color: #ffffff;
    text-decoration: none;
}

a {
    color: #ffffff;
    text-decoration: none;
}

.footer-col img {
    margin-right: 10px;
}
.footer-btn-call, .footer-btn-email {
    display: inline-block;
    padding: 12px 24px;
    color: #ffffff;
    background-color: #043148;
    border: 1px solid #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.footer-btn-call:hover, .footer-btn-email:hover {
    background-color: #13aafb;
    color: #ffffff;
}

.footer-col ul li :hover{
    color: #13aafb;
}

/************************Contant Form************************/


/******** Copy right Footer ********/

.footer {
    position: relative;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 35px;
    background-color: #043148;
    color: white;
    text-align: center;
    padding-top: 5px;
    font-size: 14px;
    font-weight: 400;
}

.footer p {
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.footer p2 {
    margin: 0;
    padding: 0;
    font-size: 10px;
}

/******** RESPONSIVE DESIGN ********/

/* Tablet & Small Desktop (900px and below) */
@media (max-width: 900px) {
    .logo-image {
        max-width: 60px;
        left: 15px;
    }
    
    .company-name {
        left: 85px;
        font-size: 0.9rem;
    }
    
    #top-tabs a {
        width: 12%;
        padding-right: 15px;
        font-size: 0.9rem;
    }
    
    .main-home {
        min-height: 300px;
        padding: 40px 15px;
        margin-bottom: 60px;
    }
    
    .main-home h1, #elegance h1 {
        font-size: 36px;
    }
    
    .why-choose ul li, .our-services li {
        flex: 1 1 30%;
        padding: 60px 0;
    }
    
    .services-img img {
        height: 250px;
    }
}

/* Tablet Landscape & Small Tablets (768px and below) */
@media (max-width: 768px) {
    .logo-image {
        max-width: 50px;
        left: 10px;
    }
    
    .company-name {
        left: 70px;
        font-size: 0.85rem;
    }
    
    #top-tabs {
        height: 50px;
    }
    
    #top-tabs a {
        width: 15%;
        height: 25px;
        padding-top: 15px;
        padding-right: 10px;
        font-size: 0.85rem;
    }
    
    .main-home {
        top: 50px;
        min-height: 250px;
        padding: 30px 10px;
        margin-bottom: 50px;
    }
    
    .main-home h1, #elegance h1 {
        font-size: 28px;
    }
    
    #contact-us-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
    
    .why-choose {
        padding: 30px 15px;
    }
    
    .why-choose h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .why-choose-title p {
        font-size: 16px;
    }
    
    .why-choose li {
        font-size: 14px;
    }
    
    .why-choose ul li {
        flex: 1 1 45%;
        margin: 8px;
        padding: 50px 10px;
    }
    
    .our-services {
        padding: 30px 15px;
    }
    
    .our-services-title h2 {
        font-size: 1.5rem;
    }
    
    .our-services li {
        flex: 1 1 45%;
        margin: 8px;
        padding: 0px 0 8px 0;
    }
    
    .services-img img {
        height: 200px;
    }
    
    .footer-btn-call, .footer-btn-email {
        padding: 10px 18px;
        font-size: 0.9rem;
        margin-top: 5px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .wrapper {
        height: auto;
    }
    
    .logo-image {
        max-width: 45px;
        left: 8px;
        top: 5px;
    }
    
    .company-name {
        left: 60px;
        font-size: 0.75rem;
        top: 0px;
    }
    
    .company-name-home a {
        font-size: 0.75rem;
    }
    
    #top-tabs {
        height: 45px;
        gap: 0;
    }
    
    #top-tabs a {
        width: 20%;
        height: 20px;
        padding-top: 12px;
        padding-right: 5px;
        font-size: 0.75rem;
        text-align: center;
    }
    
    .main-home {
        top: 45px;
        min-height: 200px;
        padding: 20px 10px;
        margin-bottom: 40px;
        background-size: cover;
    }
    
    .main-home h1, #elegance h1 {
        font-size: 22px;
        margin: 10px 0;
    }
    
    #contact-us-btn {
        display: block;
        padding: 10px 15px;
        font-size: 0.85rem;
        margin-top: 10px;
        width: 90%;
        text-align: center;
    }
    
    .why-choose {
        padding: 20px 10px;
        margin-bottom: 15px;
    }
    
    .why-choose h2 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .why-choose-title p {
        font-size: 14px;
        margin: 0;
    }
    
    .why-choose li {
        font-size: 13px;
    }
    
    .why-choose p {
        font-size: 12px;
        margin: 5px 0;
    }
    
    .why-choose ul li {
        flex: 1 1 100%;
        margin: 5px 0;
        padding: 30px 10px;
        min-width: 0;
    }
    
    .our-services {
        padding: 20px 10px;
        margin-bottom: 15px;
    }
    
    .our-services-title h2 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .our-services li {
        flex: 1 1 100%;
        margin: 5px 0;
        padding: 0px 0 8px 0;
    }
    
    .services-img img {
        height: 150px;
    }
    
    .our-services p {
        font-size: 12px;
    }
    
    .footer-btn-call, .footer-btn-email {
        display: block;
        padding: 10px 15px;
        font-size: 0.85rem;
        margin: 5px 0;
        width: 90%;
        text-align: center;
    }
    
    .footer {
        padding-top: 3px;
        font-size: 12px;
    }
    
    .footer p {
        font-size: 12px;
    }
}

/* Very Small Phones (360px and below) */
@media (max-width: 360px) {
    .logo-image {
        max-width: 40px;
        left: 5px;
    }
    
    .company-name {
        left: 50px;
        font-size: 0.7rem;
    }
    
    #top-tabs a {
        width: 25%;
        font-size: 0.65rem;
        padding-right: 3px;
    }
    
    .main-home h1, #elegance h1 {
        font-size: 18px;
    }
    
    #contact-us-btn {
        width: 95%;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .why-choose, .our-services {
        padding: 15px 8px;
    }
    
    .why-choose h2, .our-services-title h2 {
        font-size: 1.1rem;
    }
    
    .why-choose ul li {
        padding: 20px 8px;
    }
    
    .services-img img {
        height: 120px;
    }
}

/* Ensure responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure good touch targets on mobile */
@media (max-width: 768px) {
    a, button, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}