:root{
 --font-body: 'DM Sans', sans-serif;   
 --font-heading:  'Fraunces', serif;
 --green: #09B900;  
 --green-bright:#00DD00;
 --blue: #004F74;
 --blue-dark: #002537;
 --gray: #B0BFC6;
 --gray-light: #E8ECEE;
 --gray-medium: #A2B3BB;
 --gray-dark: #3F6C80 /*#C7D0D6*/;
}
*{
  box-sizing: border-box;
}

body{
  padding:0;
  margin:0;

}
h1{
  color:#FFF;
  font-family:  var(--font-heading); 
  font-weight: 400;
  line-height: 100%;
}
h2{
  color: #000;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 400;
  line-height: 100%;
  text-align: center;
}
h3{
  color: #000;
  font-family: var(--font-body);
  font-weight: 300;
}
a,p,address,input,textarea{
  font-family:  var(--font-body);
}
a{
  transition: .5s all ease-in-out;
}
p{
   font-size: 1.5rem;
  line-height: 145%;
}

.container{
  max-width: 1320px;  
  margin: 0 auto;
}
header{
 position: relative;
 width: 100%;
 height: 100vh;
  min-height: 800px;
 background: var(--blue-dark) url("assets/header.jpg") no-repeat 50% 0 fixed;
 background-size: cover;  
 text-align: center;
 overflow: auto;
 
}
header h1{
  font-size: clamp(4rem, 9vw, 6rem);
}

header nav{
  display: flex;
  padding:0.35rem 0;
  justify-content: space-between;
  border-bottom:1px solid rgba(255,255,255,0.15);
  text-align: left;
}

header nav ul,
footer nav ul{
  display: flex;
  align-items: center;
  list-style: none;
  padding:0px;
}
header nav ul:first-child li{
  margin-right:1.5rem;
}
header nav ul:last-child li{
  margin-left:1.5rem;
}
 nav a{
  color:#FFFFFF;
  font-family:  var(--font-body);
  font-size:1.25rem;
  text-decoration:  none;
  text-transform: uppercase;
  opacity: 0.65;
  transition: .25s all ease-in-out;
}
 nav a:hover{
  opacity:  1;
}
header nav a img{
  height: 30px;
  width: auto;
}

header h1{
  margin-top:calc(3vh + 2rem + 3vw);
  margin-bottom:2rem; 
}
h1:after{
  content:"";
  display:block;
  margin: 40px auto 0;
  height: 7px;
  width: 80px;
  background:var(--green);
}
.underline:after{
  content:"";
  display:block;
  margin: 40px auto 0;
  height: 7px;
  width: 80px;
  background:var(--green);
}

header p{
  margin-top:0;
  margin-bottom:5rem;
  color: var(--gray);
  font-size: 2rem;
  font-size: clamp(1.65rem, 5vw, 1.9rem);
  font-family:  var(--font-body);
  font-weight: 300;
  line-height: 120%;
}
a.button{
 position: relative;
  color:#fff;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 1px;
  text-decoration: none;
  padding:0.5rem 4rem 0.5rem 1.25rem;
  border:2px solid #fff;
  /*background: url("assets/chevron-down.svg") no-repeat 90% 50% ;*/
  background-size: 30px 18px;
  opacity: 0.8;
}
a.button:after{
  content:"";
  position: absolute;
  display: block;
  width:38px;
  height: 18px;
  right: 10px;
  top: calc(50% - 8px);
  background: url("assets/chevron-down.svg") no-repeat 0% 50% ;
}
a.button:hover{
  opacity: 1;
}
a.button:hover:after{
   animation: chevron .5s ease-in-out infinite;
}

@keyframes chevron {
  0%   { transform: translateY(0px);}
  50%  { transform: translateY(-2px);}
  100% { transform: translateY(0px);}
}
#services{
  text-align: center;
  padding-bottom: calc(3rem + 4vw);
}
#services article{
  display: flex;
  flex-wrap: wrap;
  max-width:calc(800px + 5vw);
  margin: 0 auto calc(1rem + 1.5vw);
}
#services:before{
  content:"";
  display: block;
  height:80px;
  background: rgb(255,255,255);
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, var(--gray) 250%);
}
#services div{
  flex-grow: 1;
  flex-basis: 25%
}

#services h2{
  margin-top:0;
  margin-bottom: 3.5rem;
  flex: 0 0 100%;
}

#services h3{
  margin-top:1rem;
  margin-bottom:3rem;
  font-size: 1.5rem;
  line-height: 100%;
  text-align: center;
}
#services img{
  display: block;
  height: 100px;
  width: auto;
  margin: 0 auto;
  
}

#services a.button{
 flex: 0 0 100%;
 border-width: 3px;
  font-weight: 400;
 filter: invert(63%) sepia(77%) saturate(4464%) hue-rotate(81deg) brightness(115%) contrast(110%);
 
}
#about{
   background:var(--gray-light); 
  padding-bottom: calc(3rem + 4vw);
}
#about article{
  position: relative;
}

#about article .innerLayout{
  display: flex;

}
#about article .innerLayout:first-child{
    flex-wrap: wrap;
}
#about article .innerLayout:last-child{
  margin-top:4rem;
  padding-top:5rem;
  position: relative;
  border-top: 1px solid rgb(214,220,224);
}
#about article .innerLayout:last-child:before{
  content:"";
  display: block;
  position: absolute;
  top:0px;
  width: 100%;
  height:3rem;
  background: radial-gradient(100% 100% at center top, rgba(197,208,214,.5) 0%, var(--gray-light) 50%)
}

#about aside:first-child{
  padding-right: 5rem;
    
}
#about aside:last-child{
  padding-left: 5rem;  
  display: flex;
  flex-wrap: wrap;
}
#about aside:last-child p{
  align-self: end;  
}
#about aside:last-child a.button{
  align-self: baseline;
  filter: brightness(0%);
}
#about:before{
  content:"";
  display: block;
  height:80px;
  background:  var(--gray);
  background: linear-gradient(0deg, var(--gray-light) 0%, var(--gray) 250%); 
}
#about h2{
  margin-top:0;
  flex: 0 0 100%;
  text-align: left;

}
#about h2:after{
  content:"";
  display:block;
  margin: 20px auto 0 0;
  height: 7px;
  width: 80px;
  background:var(--green);
}
#about p{
  font-size:1.7rem;
  font-weight: 200;
  line-height: 140%;
}
#about article p:first-child{
  margin-top:0;
}
#about p strong{
  font-weight: 500;
}

#about aside,
#about #familypicture,
#about #profilepicture,
#about .photo{
  flex-grow: 1;
  width: 50%;
}
#about #profilepicture{
  align-self: start;
  max-width: 580px;
  
}
#about #familypicture{
  max-width: 680px;
}
 
#about .photo{
  background:#fff;
  box-shadow: 1px 1px 12px 0px rgba(0,37,55,.2); 
}
#about .photo img{
  display: block;
  width: 100%;
}
#about .photo cite{
  padding:1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 400;
  font-style: normal;
  color:var(--gray-dark);
  display: block;
  text-align: center;
}
#about .photo cite span{
  display: inline-block;
}

#about a.button{  
  color: #000;
  border-color:#000;
  padding: 0.75rem 4rem 0.75rem 1.25rem;
}
#credentials{
  padding-top: 5rem;
  display: flex;
  justify-content: space-between;
}
#credentials a.button {
  background: url("assets/icon-page.svg") no-repeat 5% 50%;
  background-size:32px 32px;
  padding: 0.75rem 1.25rem 0.75rem 3.5rem;

  align-self:start;
}
#credentials a.button:after{
  content:unset;
}

#credentials a.linkedin img{
  max-width: 228px;
  min-height: 50px;
  display: block;
  transition: 0.5s all ease-in-out;
}
#credentials a.linkedin img:hover{
  transform: scale(1.2);
}
#contact{
  padding-block:calc(1vw + 1vh) calc(2vw + 2vw);
}
#contact h2{
    margin-bottom: 0;
}
#contact p{
  color:var(--blue);
  text-align: center;
  line-height: 125%;
}
#contact iframe{
  margin-top: 0.5rem;
  width: 100%;
  min-height: 400px;
  border:0px;
}
#contactform{
  display: flex;
  flex-wrap: wrap;
}
#contactform .container{
  max-width: 1100px;
  margin: 0 auto;
}
#contactform form{
  display: flex;
  flex-wrap: wrap;
}
#contactform fieldset{
  flex-basis: calc(50% - 4px);
  border:0;
  margin-bottom:0;
}
#contactform fieldset .row{
    margin-bottom: 1rem;
}
#contactform fieldset:last-child{
  flex-basis: 100%;
}
#contactform fieldset:nth-child(2) .row{
  display: flex;
  height: calc(100% - 1rem);
  flex-wrap: wrap;
}
#contactform input[type='text'],
#contactform input[type='tel'],
#contactform input[type='email'],
#contactform  textarea{
  border: 1px solid var(--gray);
  color:var(--gray-medium);
  padding: .75rem 1rem;
  font-size: 1.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, var(--gray-light) 250%);
  transition: 1s all ease-in-out;
}
#contactform input:active,
#contactform textarea:active,
#contactform input:focus,
#contactform textarea:focus{
  outline:var(--gray-medium) 1px solid;
}
#contactform textarea{
  height: calc(100% - 8px);
}
#contactform  input[type='submit']{
  font-size: 1.5rem;
  background: var(--green);
  color: #fff;
  border:0px;
  min-width: 180px;
  padding:.75rem 1rem;
  cursor: pointer;
  transition:.5s all ease-in-out;
}
#contactform  input[type='submit']:hover{
  filter: contrast(155%);
}
#contactform p.error{
  font-size: 1rem;
  color: #ED2509;
  line-height: 110%;
  margin-top: 0.25rem;
}
#contact h2.success{
  margin-bottom: 2rem;
}
#contact h2.success.underline:after{
  margin: 1rem auto 0;
}
#contact h3.success{
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 400;
}

#contact p.success {
  font-size: 1.25rem;
  text-align: center;
  margin-top:0;
}
#contact p.success a{
  color: var(--green);
}
#contact p.success a:hover{
  filter: brightness(125%)
}


footer{
  overflow: auto;
  background: rgb(0,37,55);
  background: linear-gradient(to top, rgba(0,37,55,1) 20%, rgba(0,79,116,1) 100%);
    text-align: center;
}
footer h1{
  font-size: clamp(4rem, 9vw, 5rem);
  text-shadow: 3px 3px 12px rgba(0,0,0,.3);
}
footer p{
  margin-top:0;
  margin-bottom:3rem;
  color: #fff;
  font-size: 2.1rem;
  font-size: clamp(1.65rem, 5vw, 1.9rem);
  font-family:  var(--font-body);
  font-weight: 300;
  line-height: 120%;
}
footer a{
  display: block;
  margin-top: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  color:var(--green-bright);
  text-decoration: none;
  transition: .5s all ease-in-out;
}
footer a:hover{
  filter:brightness(125%);
}
footer nav{
  margin-bottom:4rem;
}
footer nav ul{
  justify-content: center;
}
footer nav ul li{
  margin-left:1rem;
  margin-right:1rem;
}
footer nav a img{
  height: 45px;
  width: auto;
  filter:  brightness(150%) ;
}

#contactform input[type="submit"].wait,
#submit_btn.wait {
  cursor: wait;
  opacity: 0.5;
 
}

footer address{
  padding: 2.75rem 1rem 2rem;
  background: rgb(0,79,116);
  background: radial-gradient(ellipse at center top, rgba(0,79,116,0.5) 0%, rgba(0,37,55,0) 50%); 
  color:#ffffff;
  text-align: center;
  font-size:1.5rem;
  font-style: normal;
  font-weight: 200;
}
@media all and (max-width: 1360px) {
  .container{
    margin-left:2rem;
    margin-right:2rem;
  }
  
 
}
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 1) {
    header h1{
      margin-top:calc(6vh + 2rem);
    }
}
@media all and (max-width: 1280px) {
  #credentials {
    padding-top: 2rem;
  }
}
@media all and (max-width: 1200px) {
  
  #credentials {
    padding-top: 0rem;
    /*flex-wrap: wrap;*/
    position: absolute;
    width: calc(100%);
  }
  #credentials a.button{
    margin-bottom: 2rem;
  }
  
  #about article .innerLayout:last-child {
    margin-top: 6rem;
    
  }
 
}
@media all and (max-width:1023px){
  h2{
    font-size: 3.5rem;
  }
  #services article{
    max-width: 800px;
  }
  #services article{
    padding:0 2rem;
  }
  #services img {
    display: block;
    height: 80px;
  }
  #services h3 {
    font-size: 1.4rem;
  }
  #about h2{
    text-align: center
  }
  #about h2::after{
    margin: 20px auto 0 auto;
  }
  #about article .innerLayout {
    display: flex;
  }
  #about article p:first-child {
    margin-top: 2.5rem;
  }
  #about .innerLayout{
    flex-wrap: wrap;
  }
  #about aside{
    padding-left: 0;
    padding-right: 0;
  }
  #about aside:first-child {
    padding-right: 0;
  }
  #about aside:last-child {
    padding-left:0;
  }
  
  #about aside,
  #about .photo{
    width: 100%;
  }
  #about aside{
    order: 2;
    padding-right:0;
    max-width: 600px;
    margin: auto;
  }
  #about #credentials{
    position: relative;
  }
  #about article .innerLayout:last-child {
    margin-top: 3rem;
  }
  #about #profileicture,
  #about #familypicture,
  #about .photo {
    margin-left: auto;
    margin-right: auto;
    max-width:  600px;
  }
  #about #profilepicture {
    order: 1;
    margin: auto;
  }
  #about #familypicture{
    order: 1;
    margin-top:1.25rem;
  }
}
@media all and (max-width:680px) {
  header nav {
   display: flex;
   padding: 0.35rem 0;
   justify-content: space-between;
   border-bottom: 1px solid rgba(255,255,255,0.15);
   text-align: left;
   flex-wrap: wrap;
   flex-direction: column-reverse;
 }
  
 header nav ul{  
  justify-content: center;
}
header nav ul:last-child{
  margin-bottom: 0;
}
  
  header p br{
    display: none;
  }
  
  header nav ul:last-child{
    display: none;
  }
  h1::after {
    margin: 30px auto 0;
  }
  
 #contact iframe{
    min-height: 540px;
  }
  #contactform .error:last-of-type{
    margin-bottom: 0;
  }
}
@media all and (max-width:600px) {
  a.button {
 
    font-size: 1.6rem;
  }
  #services article{
     padding-left: 1rem;
    padding-right: 1rem;
      max-width: 400px;
  }
  #services div{
    max-width: 50%;
    flex-grow: 1;
    flex-basis: 50%;
  }
  #services h3{
    font-size: 1.35rem;
  }
  #about p,
  #about .photo cite{
    font-size: 1.5rem;
  }
  #credentials{
    display: block;
  }
  #credentials .button{
    display: inline-block;
    margin-bottom: 2rem;
  }
  #credentials img{
 
    display: block;
  }
  #credentials a.linkedin img {
    max-width: 200px;
  }
  #contactform .container,
  #contactform form{
    display: unset;
  }
  #contactform fieldset{
    padding-top: 0;
    padding: 0;
  }
  #contactform fieldset .row {
    margin-bottom: 1.5rem;
  }
  footer a{  
    font-size: clamp(calc(4vw + 1rem), 6vw, 2rem);
  }
}
@media all and (max-width:480px) {
  header h1{
    font-size: clamp(14vw, 6vw, 6rem);
  }
  h2 {
    font-size: 3.25rem;
  }
  header nav ul:first-child li{
    margin-left: .5rem;
    margin-right: .5rem;
    flex-basis: 30%;
    text-align: center;
  }
  a.button {
    font-size: 1.5rem;
  }
  
  
  #about .photo cite {
    font-size: 1.25rem;
    line-height: 115%;
  }
  #credentials a.linkedin img {
    max-width: 200px; 
  }

  #contact iframe{
    min-height: 560px;
  }
  
  #contactform .success{
    max-width: 300px;
    margin: auto;
  }
  #contactform input,
  #contactform textarea{
    font-size: 1.25rem !important;
  }
  
  footer h1{
    font-size: clamp(14vw, 6vw, 5rem);
    margin-bottom:2.5rem;
  }
  footer nav a img{
    height: calc(35px + 1vw);
    width: auto;
    filter:  brightness(150%) ;
  }
  footer address{
    font-size: clamp(1rem, 6vw, 1.5rem);
  }
  .mobileWrap{
    display: inline-block;
  }
}
@media all and (max-width:440px) {
  header nav ul {
    flex-wrap: wrap;
  }
}




html{
  scroll-behavior: smooth;
  opacity: 1;
  visibility: visible;
}

#contactform{
  opacity: 1 !important;
}

