 /* 1. Use a more-intuitive box-sizing model. */

 *,
 *::before,
 *::after {
     box-sizing: border-box;
}
/* 2. Remove default margin */
* {
  margin: 0;
 
}
/* Typographic tweaks! 4. Add accessible line-height 5. Improve text rendering */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: white;
}
/* 6. Improve media defaults */
  img,svg,video,picture {
  max-width: 100%;
  height: auto;
}
/* 7. Remove built-in form typography styles */
input, button, textarea, select {
  font: inherit;
}
/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/*todo head section */

.head-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    /* background-color: cadetblue; */
    background-color: #264D4E;
}
.logo {
    /* background-color: cadetblue; */
    background-color: #264D4E;
    text-align: center;
    padding: 0.8rem;
}
.contact-details {
    /* background-color: cadetblue; */
    background-color: #264D4E;
    padding: 0.8rem;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.social {
    /* background-color: cadetblue; */
    background-color: #264D4E;
    padding: 0.8rem;
    /* text-align: center; */
}
/*todo mast head */
.masthead {
    display: grid;
    align-items: center;
    /* margin-top: 1rem; */
    justify-content: center;
    grid-template-columns: 1fr;
    background: url(../images/bg25.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: contain;
    -o-background-size: cover;
    background-size: cover;
    padding: 35vh 1rem;
}

.masthead1 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/hoses-head.jpg) no-repeat center center fixed; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 35vh 1rem;
}

.masthead2 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/power-head.jpg) no-repeat center center fixed; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 35vh 1rem;
}

.masthead3 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/oils-head.jpg) no-repeat center center fixed; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 35vh 1rem;
}

.masthead-content {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/*todo  50 /50 */
.fifty-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1rem;
    grid-template-rows: auto;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.left {
    background-color:white;
    padding: 1rem;
}
.right {
    background-color: white;
    padding: 1rem;
    text-align: center;
}
/* todo 3 box 33% */
.container-33 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    margin-top: 1rem;
    gap: 1rem;
}
.box1 {
    /* background-color: #BDD9BF; */
    background-color: #E8E8E8;
    text-align: center;
    padding: 1rem;
}
.box2 {
    /* background-color: #2E4052; */
    background-color: #E8E8E8;
    text-align: center;
    padding: 1rem;
}
.box3 {
    /* background-color: #BDD9BF; */
    background-color: #E8E8E8;
    text-align: center;
    padding: 1rem;
}
.box1:hover {
  transform: scale(0.98);
  transition: 0.3s;
   /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
.box2:hover {
  transform: scale(0.98);
  transition: 0.3s;
   /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
.box3:hover {
  transform: scale(0.98);
  transition: 0.3s;
  /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

/*todo hero sectio */
.hero {
    display: grid;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    grid-template-columns: 1fr;

}

.home-hero {
    background: url(../images/bg20.jpg) no-repeat center center fixed; 
	-webkit-background-size: cover;
	-moz-background-size: contain;
	-o-background-size: cover;
	background-size: cover;
	padding: 30vh 1rem;
}
.hero-content {
    /* background-color: brown; */
    width: 100%;
    max-width: 1000px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/* todo suppliers section */
.suppliers {
    background-color: #ccc;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}
.footer {
    padding: 1rem;
}

/** FONT / BUTTON / ICONs */

h1 {
  font-size: clamp(1rem, 0.6667rem + 1.3333vw, 2.25rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.4;
}

h2 {
font-size: clamp(0.875rem, 0.775rem + 0.4vw, 1.25rem);
  line-height: 1.4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color:#264D4E;
}

h3 {
    font-size: clamp(0.875rem, 0.8083rem + 0.2667vw, 1.125rem);
  line-height: 1.4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color:#264D4E;
}

h4 {
    font-size: clamp(0.875rem, 0.8083rem + 0.2667vw, 1.125rem);
    line-height: 1.4;
    margin-bottom: 30px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color:#264D4E;
  }

p {
  font-size: clamp(0.875rem, 0.8083rem + 0.2667vw, 1.125rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.4;
  margin-top: 15px;
  color:black;
}
.white {
  color: white;
}
/* button*/
.button24 {
  background-color: transparent;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  margin: 20px 2px;
  cursor: pointer;
}

.button1 {
  background-color: #264D4E; 
  color: white; 
}


.button24 {
  transition-duration: 0.4s;
}

.button24:hover {
  background-color: #122829; /* Green */
  color: white;
}
/*table list styles */
div.container {
  text-align: center;
}

ul.myUL {
  display: inline-block;
  text-align: left;
}

/* todo icons */
.fa {
	padding: 20px;
	font-size: 30px;
	width: 30px;
	text-align: center;
	text-decoration: none;
	margin: 5px 2px;
	color:white;
  }

  .fa-facebook {
    background:transparent;
    color: white;
    padding-right: 20px; 
    padding-top: 10px; 
    text-decoration: none;
    transition: .6s ease;
    }
  
  /* Hover for AF4 fa but for AF5 it will be fas */
  .fa:hover {
	  opacity: 0.8;
	  color: white;
	  transition: .6s ease;
  }
	


/* todo back to top */

.cd-top {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 40px;
    right: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    /* image replacement properties */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: #487C7E url("../images/cd-top-arrow.svg") no-repeat center 50%; 
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity .3s 0s, visibility 0s .3s;
    -moz-transition: opacity .3s 0s, visibility 0s .3s;
    transition: opacity .3s 0s, visibility 0s .3s;
  }
  .cd-top.cd-is-visible, .cd-top.cd-fade-out, .no-touch .cd-top:hover {
    -webkit-transition: opacity .3s 0s, visibility 0s 0s;
    -moz-transition: opacity .3s 0s, visibility 0s 0s;
    transition: opacity .3s 0s, visibility 0s 0s;
  }
  .cd-top.cd-is-visible {
    /* the button becomes visible */
    visibility: visible;
    opacity: 1;
  }
  .cd-top.cd-fade-out {
    /* if the user keeps scrolling down, the button is out of focus and becomes less visible */
    opacity: .5;
  }
  .no-touch .cd-top:hover {
    background-color: #F29E92;
    opacity: 1;
  }
  @media only screen and (min-width: 768px) {
    .cd-top {
      right: 20px;
      bottom: 20px;
    }
  }
  @media only screen and (min-width: 1024px) {
    .cd-top {
      height: 60px;
      width: 60px;
      right: 30px;
      bottom: 30px;
    }
  }


/********** todo MEDIA QUERIES ******************/


/* MOBILE MEDIA QUERIES iPad portrait */

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

  .head-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.1rem;
}
.social {
  background-color: cadetblue;
  padding: 0.1rem;
  text-align: center;
}

  .masthead {
    display: grid;
    align-items: center;
    /* margin-top: 1rem; */
    justify-content: center;
    grid-template-columns: 1fr;
    background: url(../images/bg25.jpg) no-repeat center center scroll; 
    -webkit-background-size: cover;
    -moz-background-size: contain;
    -o-background-size: cover;
    background-size: cover;
    padding: 30vh 1rem;
}

.masthead1 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/hoses-head.jpg) no-repeat center center scroll; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 30vh 1rem;
}

.masthead2 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/power-head.jpg) no-repeat center center scroll; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 30vh 1rem;
}

.masthead3 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/oils-head.jpg) no-repeat center center scroll; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 30vh 1rem;
}

.fifty-container {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1rem;
  grid-template-rows: auto;
  justify-content: center;
  gap: 1rem;
}
.container-33 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  margin-top: 1rem;
  gap: 1rem;
}

.hero {
  display: grid;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  grid-template-columns: 1fr;

}
.home-hero {
  background: url(../images/bg20.jpg) no-repeat center center scroll; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 30vh 1rem;
}
.container-33 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  margin-top: 1rem;
  gap: 1rem;
}
.fifty-container {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1rem;
  grid-template-rows: auto;
  justify-content: center;
  gap: 1rem;
}

}

/* MOBILE MEDIA QUERIES Nexus 7 Android portrait / Galaxy Tab */

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

    .head-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0.1rem;
    }

 
    /*************/
    .fifty-container {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 1rem;
        grid-template-rows: auto;
        justify-content: center;
        gap: 1rem;
    }
    .container-33 {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 1rem;
        gap: 1rem;
    }

    .social {
      background-color: cadetblue;
      padding: 0.1rem;
      text-align: center;
}
}

/* MOBILE MEDIA QUERIES Mobile Anroid */

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

  .masthead {
    display: grid;
    align-items: center;
    /* margin-top: 1rem; */
    justify-content: center;
    grid-template-columns: 1fr;
    background: url(../images/bg25.jpg) no-repeat center center scroll; 
    -webkit-background-size: cover;
    -moz-background-size: contain;
    -o-background-size: cover;
    background-size: cover;
    padding: 20vh 1rem;
}


.masthead1 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/hoses-head.jpg) no-repeat center center scroll; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 20vh 1rem;
}

.masthead2 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/power-head.jpg) no-repeat center center scroll; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 20vh 1rem;
}

.masthead3 {
  display: grid;
  align-items: center;
  /* margin-top: 1rem; */
  justify-content: center;
  grid-template-columns: 1fr;
  background: url(../images/oils-head.jpg) no-repeat center center scroll; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 20vh 1rem;
}

.hero {
  display: grid;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  grid-template-columns: 1fr;
}
.home-hero {
  background: url(../images/bg20.jpg) no-repeat center center scroll; 
-webkit-background-size: cover;
-moz-background-size: contain;
-o-background-size: cover;
background-size: cover;
padding: 20vh 1rem;
}

.logo {
 
  text-align: center;
  padding-left: 1.45rem;
  padding-right: 1.45rem;
}
.contact-details {

  /* padding: 0.8rem; */
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.social {
  background-color: cadetblue;
  /* padding: 0.8rem; */
  /* text-align: center; */
}
}

