  /* lato-regular - latin */
  @font-face {
    font-display: swap; 
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/lato-v24-latin-regular.woff2') format('woff2'); 
  }
  
  /* lato-700 - latin */
  @font-face {
    font-display: swap; 
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/fonts/lato-v24-latin-700.woff2') format('woff2'); 
  }
:root {
  --light-color: #fafafa;
  --light-tint-color: #f0f0f0;
  --primary-color-100: #e6f0f6;
  --primary-color-200: #3585b8;
  --primary-color-400: #0367A6;
  --primary-color-600: #025285;
  --primary-color-800: #023453;
  --primary-color-900: #000a11;
  --secondary-color-200: #c53743;
  --secondary-color-400: #BF212E;
  --secondary-color-600: #991a25;
  --secondary-color-800: #73141c;
 
  --transparent-color: rgba(255, 255, 255, 0);
  --semi-transparent-color: hsl(0 0 100% / 0.7);
  --slightly-transparent-color: hsl(0 0 100% / 0.95);
  --font-size-sm: clamp(1.45rem, 0.17vw + 1.39rem, 1.6rem);
  --font-size-base: clamp(1.6rem, 0.45vw + 1.42rem, 2rem);
  --font-size-xbase: clamp(1.76rem, 0.84vw + 1.42rem, 2.5rem);
  --font-size-md: clamp(1.94rem, 1.35vw + 1.4rem, 3.13rem);
  --font-size-lg: clamp(2.13rem, 2.02vw + 1.32rem, 3.91rem);
  --font-size-xl: clamp(2.34rem, 2.89vw + 1.19rem, 4.88rem);
  --font-size-xxl: clamp(2.58rem, 4.01vw + 0.97rem, 6.1rem);
  --font-size-xxxl: clamp(2.83rem, 5.45vw + 0.65rem, 7.63rem);
  
}
html {
  font-family: 'Lato', georgia, sans-serif;
  font-size: 62.5%;
}

*, *:before, *:after{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  overflow-x: hidden;
  margin: 0;
  background-color: var(--light-color);
}
.wrapper-full{
  width: 100%;

}
.wrapper {
  width: 90%;
  max-width: 1200px;
}
.wrapper-narrow {
  width: 60%;
  min-width: 300px;
}

/*text sizes*/
h1, h2, h3, h4 {
  line-height: 1.1em;
  color: var(--primary-color-900);
}
h1 {
  font-size: var(--font-size-xxl);
}
h2 {
  font-size: var(--font-size-xl);
}
h3 {
  font-size: var(--font-size-large);
}
p {
  font-size: var(--font-size-base);
  line-height: 1.4em;
  color: var(--primary-color-900);
}
a {
  font-size: var(--font-size-base); 
  }

.flex {
  display: flex;
  gap: 2rem;
}

.text-topper {
  color: var(--primary-color-400);
  
  }

.btn-contact {
  text-decoration: none;
  color: var(--light-color);
  background-color: var(--secondary-color-400);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  transition: all 0.5s ease;
  border: 1px solid var(--primary-color-900);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 220px;
  text-wrap: none;
  text-align: center;
  overflow: hidden;
  position: relative;
 }

 .btn-contact:hover {
  background-color: var(--secondary-color-200);
  
   }

 .btn-call {
  text-decoration: none;
  color: var(--secondary-color-400);
  background-color: var(--transparent-color);
  padding: 1.5rem 2rem;
  align-self: center;
  margin-top: 2rem;
  transition: background-color 0.5s ease-in;
  border: 1px solid var(--primary-color-900);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 220px;
  text-wrap: none;
  font-weight: 700;
  text-align: center;
 }

 .btn-call:hover {
  background-color: var(--light-tint-color);
  
 }

 .no-display {
  display: none;
 }
 .page-header { 
  text-align: center;
  margin: 4rem auto;
 }

/*navigation css*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.logo {
  margin: 2rem;
  width: 80px;
  height: 75px;
}
.approved-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 3rem;
  margin-left: 1rem;
}

.primary-header {
  align-items: center;
  justify-content: space-between;
  background: var(--semi-transparent-color);
  max-width: 1200px;
  margin-inline: auto;

}


.mobile-nav-toggle {
  display: none;
}

.primary-navigation {
  list-style: none;
  padding: 0;
  margin: 0 2rem 0 2rem;


  
}

.primary-navigation a {
  text-decoration: none;
  text-wrap: nowrap;
  color: var(--primary-color-900);
  margin-inline: 1.5rem;
  position: relative;
}
.primary-navigation a::after{
  content: "";
  position: absolute;
  background-color: var(--primary-color-600);
  height: 3px;
  width: 0;
  left: 0;
  bottom: -10px;
  transition: 0.4s;

}
.primary-navigation a:hover::after {
  width: 100%;
}

/* .primary-navigation a:hover{
  color: var(--primary-color-600);
  
} */
.primary-navigation .active a{
  color: var(--primary-color-600);
}


@media (max-width: 960px) {
  .primary-navigation {
    gap: 4rem;
    flex-direction: column;
    padding: min(30vh, 12rem) 2rem;
    background: var(--light-color);
    position: fixed;
    z-index: 1000;
    inset: 0 0 0 40%;

    max-height: fit-content;

    transform: translateX(120%);
    transition: 350ms ease-out;
  }

/*   #primary-navigation li{
    background: var(--semi-transparent-color);
  } */

.primary-navigation a[data-visible="true"]{
  visibility: hidden;
}  

.primary-navigation[data-visible="true"] {
  transform: translateX(0%);
  
}

  .mobile-nav-toggle {
    cursor: pointer;
    display: block;
    position: absolute;
    z-index: 9999;
    background-color: transparent;
    background-image: url(./assets/three-horizontal-lines-icon.svg);
    background-repeat: no-repeat;
    border: 0;
    width: 3rem;
    aspect-ratio: 1;
    top: 4rem;
    right: 4rem;
    
  }  

  .mobile-nav-toggle[aria-expanded="true"]{
    background-image: url(./assets/closed-icon.svg);
        
  }
 
}
#background-image {
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2)), url(./assets/luxury-bathroom.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  width: 100%;
  height: 80vh;
  position: relative;
  z-index: 1;
}
 /*Hero Section*/
 .hero-section {
  width: 100%;
  margin-bottom: 4rem;
  background-color: var(--light-color);
  position: relative;
 }

 .hero-wrapper {
  box-sizing: border-box;
  padding: 4rem auto 4rem auto;
  margin-inline: auto;
  width: 80%;
  flex-direction: column;
  align-items: center;
  text-align: center;
 
}
.hero-content {
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: absolute;
  padding-bottom: 4rem;
  margin-left: auto; 
  margin-right: auto; 
  left: 0;
  right: 0;
  top: 40%;
  width: 70%; 
  max-width: 800px; 
  /* text-shadow: 0 0 1px var(--primary-color-900); */
}
.hero-content h1 {
  margin-bottom: 2rem;
}




 @media (min-width: 769px) {
  #background-image {
    height: 100vh;

  }

.hero-content {
  width: 60%;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: -10rem;
  }
  

}



/*Services Section*/

#services-wrapper {
text-align: center;
background-color: var(--light-color);
/* padding-top: 2rem; */

}
#services-wrapper h2{
  margin-bottom: 4rem;
}
#services-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px,100%), 1fr));
  grid-auto-rows: 1fr;
  /*need to use clamp for the gap*/
  gap: 2rem;
  width: 80%;
  margin-inline: auto;
  max-width: 1200px;
  padding: 2rem 2rem 4rem 2rem;
  box-sizing: border-box;
  align-items: stretch;
  
  
  
}
.services-card {
  margin-inline: auto;
  background-color: var(--light-color);
  
  z-index: 15;
  padding: 2rem;
  text-align: center;
  max-width: 250px;
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.5s ease-in;
}
.services-card h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 1rem;
  text-wrap: nowrap;
  text-align: center;
  color: var(--primary-color-900);
  
}
.services-card p {
  color: var(--primary-color-900);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 3rem;
  
}

@media (min-width: 768px) {
  .services-card {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  }
  .services-card:hover{
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
 
  }
}
.services-card a {
  display: block;
  text-decoration: none;
  }
  @media (min-width: 1000px) {

  .services-card {
    margin-top: -8rem;
    margin-bottom: 10rem;
  }
  #services-section{
    margin-top: -6rem;
  }
     
   }
   @media (min-width: 1000px) and (max-width: 1400px){

    #services-section {
      grid-template-columns: repeat(2, minmax(min(250px,100%), 1fr));
      grid-auto-rows: 1fr; 
    }

   }
 

  /*  About section */
#about-tph {
  margin: 0 auto 0 auto;
  padding: 2rem 0 4rem 0;
  background: var(--light-tint-color);
  

}
#about-tph h2 {
  color: var(--primary-color-900);
  margin: 4rem auto 4rem auto;
  text-align: center;
  max-width: 1200px;
  width: 90%;
}


#about-info {
  display: grid;
  place-items: center;
  margin-inline: auto;
  max-width: 90%;
}
#about-info > * {
max-width: 90%;
color: var(--primary-color-900);
}


.about-pics{
  width: 100%;
  margin: 2rem auto 4rem auto;
  /* border-radius: 20px; */
  justify-items: center;
}
@media (min-width: 768px) {
  #about-tph {
    padding-top: 8rem;
    padding-bottom: 8rem;
    text-align: left;
    
  }
  #about-info {
    width: 80%;
    max-width: 1000px;
    place-items: center center;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    }
  .about-pics{
    width: 100%;
    margin: 0; 
    
  }
  #bathroom-text{
    grid-column: 2;
    grid-row: 2;
    margin-left: 2rem;
    
  }
  #bathroom-pic{
    grid-column: 1;
    grid-row: 2;
    
  }

}
/* Meet The Team */
#the-team {
  padding: 4rem 0 4rem 0;
  background-color: var(--primary-color-800);
  position: relative;
  margin-bottom: 4rem;
}
#the-team *{
  color: var(--light-color);
}
.team-cards{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60%;
  margin: 0 auto 2rem auto;
  
}
.img-headshot{
  width: 150px;
  height: 180px;
  border-radius: 50%;
  margin-block: 2rem;
}
#the-team > h2 {
  text-align: center;
  margin: 2rem 0 4rem 0;
}
#the-team h4 {
  font-size: var(--font-size-md);
  
}

#the-team p {
  margin: 2rem 0 2rem 0;
  text-align: center;
}

@media (min-width: 768px) {

  #the-team{
    padding-block: 8rem;
    
  }
  .team-cards{
    width: 60%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    
  }

}
/* Choose TPH */
#choose-us{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 0 0 4rem 0;
}
#choose-us h2{
text-align: center;
margin-bottom: 4rem;
}
.checklist{
  list-style: none;
}
.checklist li{
  font-size: var(--font-size-md);
  display: flex;
  align-items: center; /* Vertical alignment */
  font-size: var(--font-size-md);
  margin-bottom: 2rem;
}
.checkmark{
  width: 50px;
  height: 50px;
  margin-right: 1.5rem;
}
@media (min-width: 768px) {
  #choose-us{
  padding: 8rem 0 8rem 0;  
  }
  #choose-us h2{
  margin-bottom: 8rem;
  }

  }
 /*  Testimonials */
 #testimonials {
  background-color: var(--primary-color-600);
  padding-block: 4rem;
}
#testimonials h2{
  color: var(--light-tint-color);
  margin-bottom: 4rem;
  text-align: center;
}
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  
}
.testimonial {
  max-width: 300px;
  background-color: var(--primary-color-600);
  border-radius: 10px;
  padding: 6rem 2rem 2rem 2rem;
  margin: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}


.quote {
  font-size: var(--font-size-sm);
  color: var(--light-tint-color);
}

.author {
  margin-top: 1rem;
  font-weight: bold;
  font-size: var(--font-size-base);
  color: var(--light-tint-color);
}
.quotation-mark {
  position: absolute;
  width: 4rem;
  top: 1rem;
  left: 2rem;
  fill: var(--primary-color-400);
   
}

@media (min-width: 768px) {
  #testimonials{
    padding: 8rem 0 8rem 0;
    
  }
  .testimonial {
    max-width: 400px;

  }
  .testimonial-cards {
    justify-content: center;
    gap: 2rem;
    padding: 4rem 0 2rem 0;
    
  }

  }


/* Call To Action */
#call-to-action {
  padding: 4rem 0 4rem 0;
  text-align: center;
  margin-inline: auto;
  /* max-width: 1200px; */
}
#call-to-action h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 4rem;
}
#call-to-action li{
  font-size: var(--font-size-base);
  margin: 2rem 0;
  list-style: none;
}
#call-to-action h2 {
  font-size: var(--font-size-xl);
  padding: 4rem 0 2rem 0;
  max-width: 90%;
}

.cta-details {
  padding: 1rem 0 4rem 0;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
}

@media (min-width: 768px) {
  #call-to-action{
    width: 100%;
    padding: 8rem 0 8rem 0;
    display: flex; 
    background: linear-gradient(
      to right, 
      var(--light-color) 0%, 
      var(--light-color) 50%, 
      var(--light-color) 50%, 
      var(--light-color) 100%
    );
    /* border: 10px solid var(--primary-color-200); */

    
  }
  #call-to-action h2 {
    max-width: 94%;
    padding: 0;
    margin-bottom: 2rem;
    margin-inline-start: 1rem;
    color: var(--primary-color-900)
  }
  #call-to-action>*{
    flex: 1;
    justify-content: start;
    align-items: center;
    padding: 0;
  }
  .cta-details {
    border-left: 5px solid var(--primary-color-400);
  }
  .cta-areas {
    border-right: 5px solid var(--primary-color-400);
  }

}


/* Footer */
#footer {
  flex-direction: column;
  align-items: center;
  background-color: var(--light-tint-color);
  padding: 4rem 0 2rem 0;
}
#footer li {
  list-style: none;
  font-size: var(--font-size-sm);
  margin: 2rem;
  }
.footer-middle {
  text-align: center;
  border-top: 1px solid var(--primary-color-200);
  border-bottom: 1px solid var(--primary-color-200);
}
#footer-list a{
  color: var(--primary-color-900);
  text-decoration: none;
  font-size: var(--font-size-sm);
  }
.fb-logo {
  width: 150px;
}
.footer-right {
  text-align: center;
  
}
.footer-right li{
  margin-block: 1rem;
}
.footer-left{
  text-align: center;
}

@media (min-width: 768px) {
#footer {
  flex-direction: row;
  justify-content: space-around;
  flex-basis: 1;
}
.footer-middle {
  border: 0;
  width: 100%;
}
.footer-left {
  width: 100%;
}
.footer-right{
  width: 100%;
}
.fb-logo {
  width: 150px;
  margin-block: 1rem;
 
}
.footer-left .logo{
  width: 160px;
  height: 150px;
}
}
#copyright{
  text-align: center;
  background-color: var(--light-tint-color);
  padding-bottom: 2rem;
  font-size: var(--font-size-sm);
}
/* Contact Page*/

.tiny-icon {
  height: 40px;
  width: 40px;
  margin: 1rem;
 }
#contact {
  width: 90%;
  margin-inline: auto;
}
#contact-list {
  text-align: center;
  list-style: none;
  padding: 2rem;
  margin: 4rem 2rem;
}
#contact-text{
  margin-bottom: 4rem;
}
#contact-text h2{
  margin: 4rem auto;
  text-align: center;
}
#contact-text p{
  margin-bottom: 2rem;
}

#contact-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}
.contact-button{
border: none;
appearance: none;
background-color: inherit;
cursor: pointer;
}
@media (min-width: 768px) {
  #contact{
    display: flex;
    gap: 4rem;
    max-width: 1200px;
  }
  #contact-text{
    width: 50%;
    order: -1;
  }
}

/* Services Page*/
#services-page{
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

#services-page p{
  margin: 2rem 0 4rem 0;
}
#services-page section{
  margin-block: 6rem;

}
#services-page .btn-contact, .btn-call{
  margin: 2rem auto 2rem auto;
  display: block;
}
#services-page h2{
  text-align: center;
  margin-bottom: 4rem;
}
#services-page h3{
  font-size: var(--font-size-md);
}
#services-page img{
  width: 100%;
  margin: 2rem auto 2rem auto;
}
/* #boiler-photo{
  height: 400px;
  } */
/*#bathrooms{
  background-color: var(--primary-color-200);
}*/
@media (min-width: 768px) {
#boiler-info {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
}
#boilers-image{
flex-basis: 35%;
}
#boilers-text{
flex-basis: 65%;
}
}