@import url(reset.css);

/* Box Model Hack + base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: "Oswald", sans-serif;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* Clear fix hack */
.clearfix:after {
     content: ".";
     display: block;
     clear: both;
     visibility: hidden;
     line-height: 0;
     height: 0;
}

.clear {
	clear: both;
}

/******************************************
/* BASE STYLES
/*******************************************/

header, .firstBigSection{
  background: rgb(102,118,138);
}
.thirdBigSection{
  background:rgb(219,223,226);
}
.fifthBigSection, footer{
  background:rgb(22,31,42);
}

.firstBigSection, .secondBigSection, .thirdBigSection, .fourthBigSection{
  text-align:center;
  color:black;
}
.firstBigSection h1, .secondBigSection h1, .thirdBigSection h1, .fourthBigSection h1{
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
  font-weight:400;
  line-height:1.15;
}
.firstBigSection h2, .secondBigSection h2, .thirdBigSection h2, .fourthBigSection h2{
  font-size: clamp(2.2rem, 1.7rem + 2vw, 3rem);
  font-weight:400;
  line-height:1.2;
}
.firstBigSection h3, .secondBigSection h3, .thirdBigSection h3, .fourthBigSection h3{
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2rem);
  font-weight:400;
}
.firstBigSection a, .secondBigSection a, .thirdBigSection a, .fourthBigSection a{
  color:black;
}

header, .fifthBigSection, footer, .firstBigSection{
  color:white;
}
header a, .fifthBigSection a, footer a, .firstBigSection a{
  color:white;
}

p{
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  font-weight:300;
  line-height:1.5;
}
/******************************************
/* COMPONENTS
/*******************************************/

.blueBoxesContainer{
  padding:2.5% 5%;
}
.blueBoxesStyle{
  min-width:auto;
  width: 100%;
  aspect-ratio: 2 / 1;
  background:rgb(102,118,138);
}

.bodyButton{
  display:inline-block;
  border:1px solid black;
  padding: 1.2rem 3rem;
  margin-top:5%;
  font-size:1.5rem;
  font-weight:400;
}

.headerButton{
  display:inline-block;
  border:1px solid white;
  border-radius:5px;
  text-align:center;
  padding: 0.8rem 1.6rem;
  white-space: nowrap;
}

/******************************************
/* LAYOUT
/*******************************************/

header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}
header .boxRight,
header .boxCenter,
header .boxLeft{
  flex: 1 1 0;
}
header ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style-type: none;
}
header ul a{
  font-size: 1.5rem;
  white-space: nowrap;
}
header .boxRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
header .boxRight a{
  background:white;
  font-size: 1.5rem;
  color:rgb(102,118,138);
}
header .boxCenter{
  text-align:center;
  display:flex;
  justify-content:center;
}
header .boxCenter img{
  width:auto;
  max-height: 4rem;
  object-fit: contain;
}

/* Hamburger button (hidden on desktop) */
.hamburger{
  display:none;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  border:none;
  background:transparent;
  cursor:pointer;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap: 0.5rem;
  padding:0;
}
.hamburger span{
  display:block;
  width: 2.6rem;
  height: 2px;
  background:white;
  border-radius:2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}
.hamburger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

.firstBigSection, .secondBigSection, .thirdBigSection, .fourthBigSection{
  padding: 6rem 6vw;
}

.firstBigSection{
  max-width: 90rem;
  margin: 0 auto;
}
.firstBigSection h1, .firstBigSection p{
  padding-bottom: 2rem;
}
.firstBigSection a{
  font-size: 1.75rem;
  font-weight:200;
}

.secondBigSection, .fourthBigSection{
  max-width: 80rem;
  margin: 0 auto;
}
.secondBigSection h2, .fourthBigSection h2{
  padding-bottom:1.5rem;
}
.secondBigSection p{
  width:100%;
}
.fourthBigSection p{
  padding-bottom: 3rem;
}
.thirdBigSection{
  display:flex;
  align-items:stretch;
  justify-content:center;
  flex-wrap: wrap;
  gap:2rem;
  padding: 6rem 6vw;
}
.thirdBigSectionContainer{
  flex: 1 1 30rem;
  max-width: 45rem;
}
.thirdBigSectionContainer h3{
  padding: 2rem 0;
}
.thirdBigSectionContainer p{
  padding-bottom: 3rem;
}
header, .fifthBigSection, footer{
  padding: 1.5rem 2.5rem;
}
.fifthBigSectionContainer{
  display:flex;
  flex-wrap: wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap: 3rem;
  border-bottom:1px solid white;
  padding-bottom: 3rem;
}
.fifthBigSectionContainer .boxLeft{
  flex: 1 1 20rem;
}
.fifthBigSectionContainer .boxRight{
  flex: 1 1 20rem;
}
.fifthBigSectionContainer .boxRight p{
  text-align:left;
  font-size:1.3rem;
}
.fifthBigSectionContainer .boxRight p + p{
  font-weight:100;
  margin-top: 0.5rem;
}
.fifthBigSectionContainer nav{
  margin-top: 2rem;
}
.fifthBigSectionContainer nav h4{
  font-size: 1.4rem;
  padding-bottom: 0.8rem;
  color: rgb(180,187,196);
}
.fifthBigSectionContainer nav a{
  display:block;
  font-size: 1.4rem;
  padding-bottom: 0.6rem;
}
footer{
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:center;
  gap: 1.5rem;
}
.footerContainer{
  display:flex;
  flex-wrap: wrap;
  justify-content:space-between;
  align-items:center;
  gap: 1.5rem;
  width:100%;
}
.footerContainer .boxLeft{
  flex: 1 1 30rem;
}
.footerContainer .boxLeft small{
  font-size:1.2rem;
  color: rgb(180,187,196);
}
.footerContainer .boxRight{
  flex: 0 0 auto;
  width:auto;
  max-height: 3.5rem;
  object-fit: contain;
}
.brands{
  display:flex;
  justify-content: flex-start;
  gap:1.6rem;
  margin-bottom: 1.5rem;
}
.brands img{
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

/******************************************
/* RESPONSIVE
/*******************************************/

/* Sticky header on larger screens */
@media screen and (min-width: 769px){
  header{
    position:sticky;
    top:0;
    z-index:1000;
  }
}

/* Tablet */
@media (max-width:968px){
  .firstBigSection, .secondBigSection, .thirdBigSection, .fourthBigSection{
    padding: 5rem 5vw;
  }
  .fifthBigSectionContainer .boxLeft,
  .fifthBigSectionContainer .boxRight{
    flex-basis: 100%;
  }
}

/* Mobile nav */
@media (max-width:768px){
  header{
    position:relative;
    flex-wrap: nowrap;
  }
  .hamburger{
    display:flex;
  }
  header .boxLeft{
    flex: 0 0 auto;
    order: -1;
  }
  header .boxLeft ul{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    background: rgb(102,118,138);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
    z-index: 1000;
  }
  header .boxLeft ul.active{
    display:flex;
  }
  header .boxLeft ul li{
    width:100%;
  }
  header .boxLeft ul li a{
    display:block;
    padding: 1.5rem 2.5rem;
  }
  header .boxCenter{
    flex: 1 1 auto;
  }
  header .boxRight{
    flex: 0 0 auto;
  }
}

/* Small tablet / large phone */
@media (max-width:768px){
  .thirdBigSection{
    flex-direction:column;
    align-items:center;
  }
  .thirdBigSectionContainer{
    width:100%;
    max-width: 45rem;
  }
}

/* Phone */
@media (max-width:600px){
  header{
    padding: 1.2rem 2rem;
  }
  header ul a,
  header .boxRight a{
    font-size:1.4rem;
  }
  .firstBigSection, .secondBigSection, .thirdBigSection, .fourthBigSection{
    padding: 4rem 6vw;
  }
  .bodyButton, .headerButton{
    width:100%;
    text-align:center;
  }
  .fifthBigSectionContainer{
    padding-bottom: 2rem;
  }
  .fifthBigSectionContainer .boxRight{
    text-align:left;
  }
  .footerContainer{
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
  }
  .footerContainer .boxRight{
    align-self:flex-start;
  }
}

@media (max-width:400px){
  .firstBigSection a{
    font-size:1.5rem;
  }
}
