html{
  scroll-behavior: smooth;
}

body {
  margin:0px;
  max-width:100%;
  overflow-x: hidden !important;
  font-family: serif !important;
}

a {
  text-decoration: none;
  color: inherit;
}

.center {
  position: absolute;
  left: 50%;
  transform : translate(-50%);
}

.no-splash{
  overflow-y: hidden;
}

/* SPLASH */

.splash{
  width: 100%;
  background-color: #04293C;
  height: auto;
  min-height: 100%;
  z-index: 100;
  position: absolute;
  top: 0;
}

.splash.hidden{
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

img.preloader{
  width: 200px;
  height: 200px;
}

.preloader_container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 20px;
}

.progress-container {
    width: 250px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: white;
    display: block;
    animation: loading 1.5s linear forwards;
}

@keyframes loading {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

li#shop{
  display: none;
}
/* HEADER */

.header_home {
  max-width: 100%;
  min-height: 98vh;
  background:#333;
  background-image: url('../images/header_home.jpg');
  background-attachment: fixed;
  background-position: top;
  background-size: cover;
}

.header_home#bidford {
  background-image: url('../images/header_bidford.jpg');
  background-position: center;
    min-height: 90vh;
}

.header_about{
    background-image: url('../images/header_about.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    width: 100%;
    height: 500px;
}


.header_services{
    background-image: url('../images/header_services.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    width: 100%;
    height: 500px;
}


.header_portfolio{
    background-image: url('../images/header_portfolio.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    width: 100%;
    height: 500px;
}

.header_contact{
    background-image: url('../images/header_contact.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    width: 100%;
    height: 500px;
}




.menu-toggle {
    display: none;
    width: 35px;
    cursor: pointer;
    margin: 20px auto;
    transition: 0.3s;
}
.menu-toggle span {
    display: block;
    height: 3px;
    background: white;
    margin: 7px 0;
    transition: 0.3s;
}

/* Open state */
.menu-toggle.active{
  z-index: 100;
  position: relative;
  margin-top: -200px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
}
nav li {
  padding: 20px 10px;
}
nav a {
  color: #fff;
  padding:20px;
  text-decoration : none;
}

nav a:hover {
  padding:20px;
  background:#083248;
}



.logo_home_container {
  width:100%;
  padding-top:40px;
  text-align : center;
}

.logo_home {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 400px;
  display: inline-block;
}


.scroll_button{
  color: #fff;
  width: 100%;
  height:50px;
  text-align: center;
  position: absolute;
  bottom: 40;
}
.scroll_button img{
  width: 50px;
  animation: breathe 4s ease-in-out infinite;
}

.scroll_button img:hover{
  opacity: 0.5;
}

@keyframes breathe {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
    }
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 15px;
  border: none;
  outline: none;
  background-color: #000;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}

/* CONTENT */

.content_top{
  background-image: url('../images/cloud.png');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  width: 100%;
  height: 300px;
  margin-top: -300px;
}

.content {
  min-height: 30vh;
}

.logo_page{
  width: 50%;
  max-width: 200px;
  height: auto;
  max-height: 200px;
  display: inline-block;
}

.wrapper{
  padding: 20px;
}

.content_section{
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 98vh;
  background-color: #F6F6F6;
}

.content_section img{
  max-width: 50%;
  width: 100%;
  height: auto;
  min-height: 100%;
}

#text_left{
text-align: right;
}

#text_right{
  text-align: left;
}

.text h1{
  font-size: 3.5rem;
  font-weight: 300;
}

.text p{
  font-size: 1.15rem;
}


#why{
  color: #fff;
  width: 100%;
  min-height: 400px;
  background-image: url(' ../images/header_contact.jpg ');
  background-position: top center;
  background-attachment: fixed;
  background-size: cover;
  padding-top: 40px;
  padding-bottom: 40px;
}

#why h1{
  text-align: center;
  font-size: 2.75rem;
    font-weight: 300;
}

#why li{
  font-size: 1.25rem;
  text-align: justify;
  margin-left: 25%;
  margin-right: 25%;
  line-height: 35px;
}

#why li i{
  font-weight: bold;
}

#passion{
  color: #fff;
  background-color: #04293C;
}

/* About */
#about{
  padding-bottom: 40px;
}
#about h1{
  text-align: center;
  font-size: 4.5rem;
  font-weight: 300;
}
#about p{
  font-size: 1.25rem;
  margin-left: 35%;
  margin-right: 35%;
  line-height: 30px;
  text-align: center;
  font-style: italic;
}

#who_are_we{
  color: #fff;
  background-color: #2A576F;
  padding-left: 15px;
}

#promise{
  color: #fff;
  background-color: #04293C;
  width: 100%;
  min-height: 300px;
  padding-top: 40px;
  padding-bottom: 40px;
}
#promise h1{
  text-align: center;
  font-size: 2.75rem;
    font-weight: 300;
}
#promise p{
  text-align: center;
  font-size: 1.25rem;
  margin-left: 33%;
  margin-right: 33%;
  line-height: 30px;
}

/* Services */
#services{
  padding-bottom: 40px;
}
#services h1{
  text-align: center;
  font-size: 4.5rem;
  font-weight: 300;
}
#services p{
  font-size: 1.25rem;
  margin-left: 35%;
  margin-right: 35%;
  line-height: 30px;
  text-align: center;
  font-style: italic;
}

#bespoke_furniture_design{
  background-color: #1A3747;
  color: #fff;
  line-height: 28px;
}
#bespoke_furniture_design b{
  font-style: italic;
}

#our_services{
  line-height: 28px;
  font-size: 1.15rem;
}

#get_a_quote{
  text-align:center;
}

#get_a_quote h2{
  height: 70px;
  padding-top: 20px;
  padding-bottom: 5px;
  font-size: 3rem;
  background-color: #F6F6F6;
  font-weight: 200;
}
#get_a_quote a{
  text-decoration: underline;
}



#kitchens{
  color: #fff;
  background-color: #04293C;
  background-image: url(' ../images/header_home.jpg ');
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  width: 100%;
  min-height: 300px;
  padding-top: 40px;
  padding-bottom: 40px;
}
#kitchens h1{
  text-align: center;
  font-size: 2.75rem;
    font-weight: 300;
}
#kitchens p{
  text-align: center;
  font-size: 1.25rem;
  margin-left: 33%;
  margin-right: 33%;
  line-height: 30px;
}

#kitchens a{
  text-decoration: underline;
  font-style: italic;
}

/* Legals */
#legal{
  padding-bottom: 40px;
}
#legal h1{
  text-align: center;
  font-size: 4.5rem;
  font-weight: 300;
}
#legal h3{
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
}
#legal p{
  font-size: 1.25rem;
  margin-left: 35%;
  margin-right: 35%;
  line-height: 30px;
  text-align: center;
  font-style: italic;
}
#legal li{
  font-size: 1.25rem;
  margin-left: 35%;
  margin-right: 35%;
  line-height: 30px;
  text-align: center;
  font-style: italic;
}
/* contact */
img.whatsapp{
  width: 200px;
}
img.whatsapp:hover{
  opacity: 0.8;
}

/* portfolio */

.portfolio{
  margin-top:20px;
  margin-bottom: 20px;
  width: 50%;
  margin-left: 25%;
}

.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 5px;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-item img {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);

    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    min-height: 0px!important;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;

    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.portfolio-item img {
    cursor: pointer;
}

.portfolio-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 20px;
    box-sizing: border-box;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        transparent
    );

    color: white;

    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-caption {
    opacity: 1;
}

.portfolio-caption h3 {
    margin: 0;
    font-size: 1.4rem;
    pointer-events: none;
}

.portfolio-caption p {
    margin: 5px 0 0;
    font-size: 0.95rem;
    pointer-events: none;
}

/* FOOTER */

hr.75{
  width: 75%;
}

footer{
    text-align: center;
    background-image: url('../images/footerbg.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px
}

.footer_text {
  max-width: 100%;
  min-height: 800px;
  padding: 20px;
  padding-left: 15%;
  padding-right: 15%
}

.footer_text h3{
  color: #888;
  font-size: 1.4rem;
  font-weight: 200;
}
.footer_text h2{
  font-size: 2.25rem;
  font-weight: 300;
}
.footer_text p{
  margin-left: 25%;
  margin-right: 25%;
  font-size: 1.15rem;
  padding-bottom: 40px;
}

p.copy{
  color: #fff;
  margin:0px;
}

p.top_button{
  text-align: right;
  color: #fff;
  padd-right:20px;
}


/* RESPONSIVE */
@media screen and (max-width : 450px){
.header_home{
  min-height: 500px;
}
.logo_home{
  max-width: 300px;
}
  .scroll_button{
    display: none;
  }
  /* content */
  .content_section{
    flex-direction: column;
    gap: 0px;
  }
  .content_section img{
    display: block;
    min-width: 100%;
  }
  .content_section.wrapper{
    padding-top: 0px!important;
  }
  .text p{
    text-align: justify;
  }
  .text h1{
    text-align: center;
  }
  /* home */
  #passion.content_section{
    flex-direction: column-reverse!important;
  }
  #why{
    background-position: top;
    background-attachment: inherit!important;
    background-size: 450%;
    background-repeat: no-repeat;
  }
  #why h1{
    font-size: 4rem;
    margin-top: 20px;
    text-align: center;
    margin-left: 0px;
  }
  #why ul{
    padding-left: 10px;
  }
  #why li{
    text-align: center;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
  /* about */
  #about h1{
    font-size: 4rem;
  }
  #about p{
    margin-left: 20px;
    margin-right: 20px;
    text-align: justify;
  }
  #who_are_we{
    padding-left: 0px;
  }
  #who_are_we.content_section{
      flex-direction: column-reverse!important;
  }
  #promise p{
    margin-left: 20px;
    margin-right: 20px;
    text-align: justify;
  }
  /* services */
  #services h1{
    font-size: 4rem;
  }
  #services p{
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
  }
  #bespoke_furniture_design.content_section{
      flex-direction: column-reverse!important;
  }
  #bespoke_furniture_design .text h1{
  line-height: normal;
  }

#kitchens{
  background-attachment: inherit;
  background-position: center;
}

#kitchens p{
  margin-left: 20px;
  margin-right: 20px;
}

  /* Contact */
  #contact h1{
    font-size: 4rem;
  }
  p#contact{
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
  }
  /* Legals */
  #legal h1{
    font-size: 4rem;
  }
  #legal p{
    margin-left: 20px;
    margin-right: 20px;
    text-align: justify;
  }
  #legal li{
    margin-left: 20px;
    margin-right: 20px;
    text-align: justify;
  }
  /* footer */
  .footer_text{
    padding-left: 0px;
    padding-right: 0px;
  }
  .footer_text p{
    margin-left: 20px;
    margin-right: 20px;
    text-align: justify;
  }
  .top_button{
    display: none;
  }
}

/* Portfolio */

@media screen and (min-width : 2519px) {
  .portfolio{
    margin-left: 30%;
    margin-right: 30%;
    width: 100%;
  }

  .featured {
      grid-column: span 2;
      grid-row: span 2;
  }


  #about p{
    margin-left: 10%;
    margin-right: 10%;
  }
}

@media screen and (max-width : 1879px) {
  .portfolio{
    margin-left: 20%;
    margin-right: 20%;
    width: 100%;
  }

  .featured {
      grid-column: span 2;
      grid-row: span 2;
  }


  #about p{
    margin-left: 10%;
    margin-right: 10%;
  }
}

@media screen and (max-width : 1566px) {
  .portfolio{
    margin-left: 15%;
    margin-right: 15%;
    width: 100%;
  }

  .featured {
      grid-column: span 2;
      grid-row: span 2;
  }


  #about p{
    margin-left: 10%;
    margin-right: 10%;
  }
}

@media screen and (max-width : 1440px) {
  .portfolio{
    margin-left: 10%;
    margin-right: 10%;
    width: 100%;
  }
  .portfolio-item.featured {
      grid-column: auto;
      grid-row: auto;
  }

  .featured {
      grid-column: span 2;
      grid-row: span 2;
  }


  #about p{
    margin-left: 10%;
    margin-right: 10%;
  }
}

@media screen and (max-width : 1024px) {
  .portfolio{
    margin-left: 10%;
    margin-right: 10%;
    width: 100%;
  }
  .portfolio-item.featured {
      grid-column: auto;
      grid-row: auto;
  }

  .featured {
      grid-column: span 2;
      grid-row: span 2;
  }


  #about p{
    margin-left: 10%;
    margin-right: 10%;
  }
}




@media screen and (max-width: 768px) {

    .menu-toggle {
        display: block;
        text-align: center;
        z-index: 100;
    }

    .menu-toggle-x {
        display: block;
        text-align: center;
    }


    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #083248;
    }

    nav ul.show {
        display: flex;
        position: absolute;
        top: 0;
        min-height: 100%;
          z-index: 99;
    }

    nav li:first-child{
      margin-top: 200px;
    }

    nav li {
        text-align: center;
        padding: 0;
        width: 50%;
        margin-left: 25%;
    }

    nav a {
        display: block;
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

}


@media screen and (max-width : 768px) {
  .portfolio{
    margin-left: 10%;
    margin-right: 10%;
    width: 100%;
  }
  .portfolio-grid {
      grid-template-columns: 1fr;
  }

  .featured {
      grid-column: span 1;
      grid-row: span 1;
  }
  #about p{
    margin-left: 10%;
    margin-right: 10%;
  }
  .portfolio-caption {
      opacity: 1!important;
  }
}

@media screen and (max-width: 450px) {
    .portfolio{
      margin-left: 10px;
      margin-right: 10px;
      width: 90%;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    .portfolio-caption {
        opacity: 1!important;
    }
}
