/* Core */
:root{
  --main_blue: #0B1F33; 
  --main_grey: #7A8A99;
  --main_white: #F3F5F7;
  --main_yellow: #FFD100;
  --font-family: Arial, sans-serif;
}
html{
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 24px;
  border-radius: 0;
}
/**************/
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: #222;
  background: var(--main_blue);
  width: 100%;
  box-shadow: 0 0 15px var(--main_grey);
  background-image: url("../img/bg_fade.png");
  background-attachment: fixed;
}
header {
  position: relative;
  background: transparent;
  border: 0;
  .logo{
    position: absolute;
    z-index: 10;
    top: 20px;
    left: 5%;
    img{
      height:100px;
      width: auto;
    }
  }
  aside{
    position: absolute;
    z-index: 10;
    top: 60px;
    right: 5%;
    color: var(--main_white);
  }
}
footer {
  background: var(--main_blue);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 60px 5%;
  p, a, span{
    font-size: 0.6rem;
    color: var(--main_white);
  }
  article{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    .footerLogo{
      width:120px;
      height: auto;
    }
  }
}
main {
  background: var(--main_white);
}
section{
  padding: 0 5% 40px 5%;
}
h1{
  color: var(--main_white);
  z-index: 20;
  position: absolute;
  display: block;
  text-align: center;
  width: fit-content;
  margin: auto;
  bottom: 20px;
  font-size: 1.6rem;
  max-width: 90%;
}
h2{
  color: var(--main_blue);
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}
h3 {
  margin-bottom: 10px;
  color: #16324f;
}
p {
  margin-bottom: 12px;
  text-align: center;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}
a {
  text-decoration: none;
  &:hover{
    color: var(--main_yellow);
  }
}
/* Class */
.hero {
  position: relative;
  background-image: url("../img/hero-cc-tradies-insurance.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
  height:400px;
  display: flex;
  justify-content: center;
}
.hero::after,
.tools_bg::after{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  background: #0B1F33;
  background: linear-gradient(90deg,rgba(11, 31, 51, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(11, 31, 51, 0.5) 95%);
}

.example{
  display: flex;
  justify-content: space-around;
  margin: auto;
  img{
    width: 120px;
    height: auto;
    margin: auto;
  }
}
.desktopOnly .example{
  flex-direction: row;
  align-items: center;
  min-width: 480px;
  width: 80%;
  &.imgs{
  margin-bottom: 30px;
  }
}

.mobileOnly .example{
  flex-direction: column;
  justify-content: center;
  width: 100%;
  img{
    margin-bottom: 20px;
  }
  p{
    margin-bottom: 20px;
  }
}

.tools_bg{
  background-color: var(--main_grey);
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  width: 100%;
  height:400px;
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  &.desktopOnly{
    background-image: url("../img/tools-to-be-insured_d.webp");
  }

  &.mobileOnly{
    background-image: url("../img/tools-to-be-insured_m.webp");
    height: 100dvh;
    max-height: 100lvh;
    min-height: 100svh;
    max-width: 100vw;
    transition-duration: 5000;
  }

  h2{
    color: var(--main_white);
    position: relative;
    z-index: 20;
    margin-bottom: 0;
  }

}


.textShadow{
  text-shadow: 2px 2px var(--main_blue);
}
.textBlock{
  width: 90%;
  margin: auto;
  padding: 80px 0;
}
.yellowBorder{
  border-top: 3px solid var(--main_yellow);
  border-bottom: 3px solid var(--main_yellow);
}
.whiteBorder{
  border-top: 3px solid var(--main_white);
  border-bottom: 3px solid var(--main_white);
}
.bottomBorder_white{
  border-bottom: 1px solid var(--main_white);
  padding-bottom: 12px;
}
.grey_bg{
  background-color: var(--main_grey);
  padding: 60px 0;
  margin-bottom: 0;
  h2{
    color: var(--main_white);
    font-size: 1.2rem;
  }
  ul{
    text-align: center;
    list-style-type: none;
    color: var(--main_white);
  }
}
.yellow_bg{
  background-color: var(--main_yellow);
  padding: 60px 0;
  margin-bottom: 0;
  margin-bottom: 40px;
  h2{
    margin-bottom: 0;
    width: fit-content;
    margin: auto;
    font-size: 1.6rem;
  }
  .siteUrl{
    color: var(--main_blue);
    margin-top: 30px;
    font-size: 1rem;
    margin-bottom: -30px;
    font-weight: 500;
  }
} 

.tws{
  border-radius: 5px;
  width: 150px;
}

.btn{
  background: var(--main_blue);
  border-radius: 5px;
  padding: 8px 20px;
  color: var(--main_white);
  z-index: 20;
  margin-top: 20px;
  font-size: 1rem;
  transition-duration: 0.4s;
  text-shadow: 1px 1px var(--main_grey);
  &:hover{
    background: var(--main_yellow);
    color: var(--main_blue);
    text-shadow: 1px 1px var(--main_white);
  }
}

#contact-form{
  width: 90%;
  margin: auto;
  max-width: 500px;

  div{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  div, 
  input, 
  select, 
  textarea {
    width: 100%;
    border: none;
    transition-duration: 0.4s;
    border: 2px solid transparent;
    font-size: 0.8rem;
    padding: 5px;
    font-family:  var(--font-family);
  }
  select .select_placeholder{
    color: red;
  }
  label{
    font-size: 0.6rem;
  }
  input:focus,
  textarea:focus{
    outline: none;
    border-bottom: 2px solid var(--main_yellow);
  }
  #submit-btn{
    width:50%;
    margin:auto;
    border: none;
  }
}

#form-message{
  display: none;
  margin-top: 40px;
}
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  body {
    max-width: 1100px;
    margin: 0 auto;
  }

  .mobileOnly{
    display:none;
  }
}

@media (pointer:coarse) and (max-width:899px){  
  *{
    font-size: 20px;
  }
  body {
    width: 100%;
    margin: 0 auto;
  }
  h1{
    font-size: 1.4rem;
  }
  .desktopOnly{
    display:none;
  }
  h2,
  h3,
  .grey_bg h2,
  .grey_bg ul{
    width: 90%;
    margin: 0 auto;
  }
  footer{
    flex-direction: column;
  }
  footer article{
    margin-bottom: 30px;
  }
}