/* Cover Img */
.coverImg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-block-size: 45vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}



@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 60%
    }
}

.container h1{
    text-align: center;
    color: white;
    font-size: 1em;
     text-shadow: 0 1px 2px rgba(0,0,0,0.6);
     margin-left: 10px;
     margin-right: 10px;
}
.typed-text {
        display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    font-size: 2rem;
    width: 0; 
    animation: typing 2s steps(20, end) forwards;
}

.container p{
    display: inline-block;
    color: white;
    background: rgb(155, 53, 60, 0.75);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 0;
 
}

.fade-text-h1{
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/* intro */

.secondary-intro-text{
    padding: 1em;
}
.secondary-intro-text h2{
    color: var(--red);
}
.intro-wrap {
    display: flex;
    justify-content: space-evenly;
    padding: 1.8em .2em;
    background-color: white;
    margin-bottom:-1px;
}

.intro-h1 {
    padding: 1em;
    border-right: var(--red) 3px solid;
    margin-right: .8em;
    margin-top: .6em;
    font-size: 1.2em;
}

.intro-text {
    display: flex;
    align-items: center;
}

.warranty-wrap {
    background-color: var(--backgroud-light-gray);
    height: 100%;
    width: 100%;
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.warranty-wrap p {
    font-size: 1em;
    text-align: center;
    padding: 0 1em;
    margin-top: 0;
}

.w-box-cell {
    min-width: 180px;
    height: auto;
    aspect-ratio: 1/1;
    background-color: white;
    border-radius: 5px;
}

.w-box {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 1em;
}

.w-box-cell:nth-child(even) {
    border-right: var(--blue) 3px solid;
    border-bottom: var(--blue) 4px solid;
}

.w-box-cell:nth-child(odd) {
    border-right: var(--red) 3px solid;
    border-bottom: var(--red) 4px solid;
}

.quote-btn {
    display: flex;
    background-color: #9B353C;
    text-align: center;
    width: 160px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: 700;
}


/* service grid */
.services-section{
    background-color: var(--backgroud-light-gray);
   
    margin: 0;
}
.services-section h2{
    color: black;
    text-align: center;
    font-size: 1.5em;
    letter-spacing: 2px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 21fr));
   gap: .5em;
}

.service-box {
     width:100%;
   aspect-ratio: 1/1;
    max-height:300px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
    z-index: 9999;
  display: flex;
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center;
   color: white;
   overflow: hidden;
 justify-content: end;
   align-items: end;
   padding: 0 .5em .3em 0;
   border-radius: 5px;  
}

.service-box h2{
    padding: 0;
    margin: 0;
}

.services-section {
    padding: 1em;
    padding-bottom: 2em;
}
.overlay-box { 
   border-image: linear-gradient( rgba(155, 53, 60, 0.1), rgba(155, 53, 60, 0.1),
   rgb(155, 53, 60, .9)) fill 1; 
}


@media (min-width: 1000px){
.overlay-box:hover{ 
   border-image: linear-gradient( rgba(155, 53, 60, 0.1), rgba(155, 53, 60, 0.1), rgba(155, 53, 60, 0.1), rgba(155, 53, 60, 0.7),
   rgb(155, 53, 60, .9)) fill 1; 
    cursor: pointer;
}

.service-box:hover > h2{
   transform: scale(1.09);
   cursor: pointer;
   margin-right: .5em;
      margin-bottom: .2em;
}
}

/* form */

.contact-section-wrap{
    display: flex;
    margin-top: -1px;
 
 
}

.address  h3{
    margin: 0;
     line-height: 135%;
     font-size: 1em;
}
.address {
    line-height: 155%;
}
.contact-details-wrap{
background-color: var(--blue);
width: 50%;

}
.contact-details-wrap{
    display: flex;
    flex-direction: column;
    gap: .4em;
    color: white;
    background-color: #113047;

}
.contact-detail-flex div:nth-child(3){
    border-bottom: lightgray 2px solid;
     border-top: lightgray 2px solid;
     padding: .4em 0;
    width: 80%;
    margin-top:.4em ;
}
.contact-detail-flex{
  display: flex;
    flex-direction: column;
    gap: .4em;
   
}
.contact-form-wrap{
    width: 50%;
    background-color: var(--backgroud-light-gray);
}
.contact-form-wrap, .contact-details-wrap{
    padding: 2em;
}

.consent{
    display: flex;
    gap: 10px;
}

   .personal-infomation input {
  width: 100%;
  padding: 12px;
  margin: .4em 0;
   border: 2px solid var(--blue);
  border-radius: 8px;
   }
   .personal-infomation input:focus{
     outline: 2px solid white;
   }

   .btn-flex button{
    color: white;
    background-color: var(--red);
    padding: 8px 12px;
    border: none;
    letter-spacing: 2px;
    border-radius: 4px;
   }

   .btn-flex{
    display: flex;
    justify-content: center;
    width: 100%;
   }
   #formMessage{
    padding: .5em;
    min-height: 100px;
   }
   .Enquiry{
    margin-bottom: .4em;
   }
.form-title {
    color: #113047;
    font-size: 1.3em;
}

.form-bottom{
    display: flex;
    flex-direction: column;
}
.consent label p{
  font-size: .5em;
}

.line{
    border-top: 2px gainsboro solid;
    width: 80%;
}

.line-wrap{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

/* brick background */

.brick-background{
   width: 100%;
    height: 300px;
    border-image: linear-gradient( rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6), 
   rgba(255, 255, 255, 0.6)) fill 1; 
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center;
   margin-bottom: 0;
}

@media (max-width: 1000px){
        .contact-section-wrap{
            width: 100%;
        }
        .contact-section-wrap{
            width:100%;
        }
        .contact-details-wrap{
            width: 100%;
        }
        .contact-form-wrap{
            width: 100%;
        }
        .personal-infomation .inputs{
        display: flex;
        flex-direction: column;
        margin-bottom: .2em;
    
}


.personal-infomation .inputs label{
     margin-bottom: .2em;
}
.consent{
    display: flex;
    gap: 10px;
}
.consent label p{
  font-size: .5em;
}

.form-bottom{
    display: flex;
    flex-direction: column;
}
.service-box {
     width:98%;
}
.service-grid {
    justify-content: center;
}

.typed-text{
    font-size: 1.4em;
}
.intro-text{
 font-size: .8em;
 margin-right: 7px;
}
/* intro text */
.intro-text{
   font-size: .8em;;
}
.intro-h1 h2{
    font-size: 1em;
}
.line-wrap{
    display: block;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 70%
    }
}

}


@media (max-width: 560px){
     .contact-section-wrap{
            display: flex;
            flex-direction: column-reverse;
            width: 100%;
        }
        .contact-section-wrap{
            width:100%;
        }
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 70%
    }
}

.typed-text{
    font-size: 1.1em;
}

}