@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap');

/* VARIABLES */
:root {
  /* Colors */
  --c_black: #111;
  --c_blue: #0070bb;
  --c_lightblue: #e6f0fa;

  /* Fonts */
  --f_general: 'Open Sans', sans-serif;

  /* Font Sizes & Weights */
  --fs_nav: 1.5rem;
  --fs_btn: 1.15rem;
  --fw_head: 600;

  /* Widths */
  --wd_full: 100vw;
  --wd_container: 84vw;
  --wd_hero-logo: 42.125rem;

  /* Grid */
  --cols: 12;
  --gap: 1.25rem;
}

/* GENERAL STYLES */
* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f_general);
  line-height: 1.5;
  margin: 0;
}

h1, h2, h3 {
  font-family: 'Times New Roman', serif;
  font-weight: 600;
  color: var(--c_blue);
  text-align: center;
}

h1 { font-size: 2rem; }
h2 { font-size: 3rem; }

a, a:visited {
  color: var(--c_blue);
  text-decoration: none;
  transition: all .4s;
  padding: 1px 3px;
}

a:hover, a:visited:hover {
  color: #fff;
  background-color: var(--c_blue);
}

p {
  margin-bottom: 2.5rem;
  text-align: center;
}

section {
  margin-bottom: 4rem;
}

.container {
  width: var(--wd_container);
  margin: 0 auto;
  overflow: hidden;
}

.layout_flex { display: flex; }
.layout_flex-spc-btwn { justify-content: space-between; }

.btn {
  font-family: var(--f_general);
  display: inline-block;
  color: var(--c_blue);
  border: 1px solid var(--c_blue);
  padding: 1rem 1.5rem;
  margin: 0 auto;
}

/* HERO STYLES */
#hero {
  width: 100vw;
  height: 50vh;
  background: url('https://assets.codepen.io/1064831/bg_welcome.jpg') no-repeat center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.hero_logo-wrapper {
  width: 50%;
  margin: 0 auto;
}

.hero_logo-img {
  width: 100%;
}

/* HOW STYLES */
.how {
  background: url("https://assets.codepen.io/1064831/bgAbout_1.jpg") no-repeat center/cover;
  padding: 4rem 1rem;
}

.how-overlay {
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.how strong { color: var(--c_blue); }

.how .btn {
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: var(--fw_head);
  margin-top: 1rem;
  padding: 1rem 1.5rem;
}

.how .btn:hover {
  background: #fff;
  color: var(--c_black);
}

/* WELCOME STYLES */
#welcome { display: block; }

/* WHAT STYLES */
.what {
  padding: 3rem 1rem;
  background: var(--c_lightblue);
  text-align: center;
}

.what h2 { margin-bottom: 2rem; }

.what-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}

.what-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.what-box img {
  max-width: 6rem;
  height: auto;
}

.highlight {
  margin-top: 2rem;
  color: var(--c_blue);
  text-align: center;
  font-style: italic;
  font-weight: var(--fw_head);
}

/* TIMELINE STYLES */
.timeline {
  margin-bottom: 1.875rem;
  display: flex;
  justify-content: center;
}

.timeline img { max-width: 100%; }

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.875rem;
}

.content img {
  width: 7.5rem;
  height: auto;
}

.text {
  max-width: 31.25rem;
  text-align: left;
}

.arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.25rem 0;
  padding: 0 2rem;
}

.arrows img {
  width: 1.875rem;
  cursor: pointer;
}

/* CLIENTS STYLES */
.clients {
  position: relative;
  background: url("https://assets.codepen.io/1064831/hand_shake.png") no-repeat center/cover;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clients .overlay-block {
  width: 100%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  text-align: center;
  padding: .5rem 1rem;
}

.clients .overlay-block.bottom { bottom: 0; }
.clients h3 { color: white; }

/* CLIENT LIST STYLES */
.client-list h2 { margin: 1rem; }

.categories {
  display: flex;
  justify-content: center;
  background: var(--c_black);
  padding: 1rem;
  gap: 4rem;
  font-weight: var(--fw_head);
}

.categories .white { color: #fff; }
.categories .blue { color: var(--c_blue); }

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--c_lightblue);
  gap: 2rem;
  padding: 2rem;
}

.logos img {
  max-width: 140px;
  height: auto;
  object-fit: contain;
}

.tagline { margin-top: 2rem; font-style: italic; }

/* FOOTER STYLES */
footer {
  text-align: center;
  padding: 2rem 1rem;
}

footer .btn {
  background: var(--c_black);
  color: var(--c_blue);
  padding: 0.75rem 2rem;
  text-decoration: none;
  font-weight: var(--fw_head);
}

footer .btn:hover {
  background: var(--c_blue);
  color: #fff;
}

/* NAV STYLES */
#nav {
  position: sticky;
  top: 1rem;
  margin-right: 1rem;
}

.nav {
  height: 3.125rem;
  width: 100%;
  position: relative;
}

.nav > .nav-links {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
}

.nav > .nav-links > a {
  font-weight: 600;
  display: inline-block;
  padding: 13px 10px;
  text-decoration: none;
  color: var(--c_blue);
  text-transform: uppercase;
}

.nav > .nav-links > a:hover {
  background-color: var(--c_blue);
  color: white;
}

.nav > .nav-btn { display: none; }

/* RESPONSIVE STYLES */
/* MOBILE (≤768px) */
@media (max-width: 768px) {
  .what-container { grid-template-columns: 1fr; }
  .what-box:nth-of-type(3), .what-box:nth-of-type(4) { display: none; }

  .nav > .nav-btn {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
    background-color: var(--c_blue);
  }

  .nav > .nav-btn > label {
    display: inline-block;
    width: 3.125rem;
    height: 3.125rem;
    padding: 0.8125rem;
  }

  .nav > .nav-btn > label > span {
    display: block;
    width: 1.5625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #eee;
  }

  .nav > .nav-links {
    position: absolute;
    display: block;
    width: 100%;
    background-color: var(--c_blue);
    height: 0;
    transition: all 0.3s ease-in;
    overflow-y: hidden;
    top: 3.125rem;
    left: 0;
    text-align: center;
    flex-direction: column;
  }

  .nav > .nav-links > a {
    color: white;
    display: block;
    width: 100%;
  }

  .nav > .nav-links > a:first-child { padding-top: 5rem; }

  .nav > #nav-check:not(:checked) ~ .nav-links { height: 0; }
  .nav > #nav-check:checked ~ .nav-links { height: calc(100vh - 3.125rem); overflow-y: auto; }
}

/* EXTRA SMALL (≤576px) */
@media (max-width: 576px) {
  #timeline,
  #welcome { display: none; }
}

/* TABLET (≤1023px) */
@media (max-width: 1023px) {
  #timeline,
  #welcome { display: none; }
}

/* LAPTOP (≥1024px) */
@media (min-width: 1024px) {
  .container { width: 85%; max-width: 70rem; }
  .layout_head-resp { display: none; }
  .layout_head-desk { display: flex; }
  #timeline,
  #welcome { display: block; }
}

/* DESKTOP (≥1280px) */
@media (min-width: 1280px) {
  .container { width: 80%; max-width: 75rem; }
}
