@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600&display=swap");

:root {
  --blue-100: hsla(208, 83%, 30%, 1);
  --dark-100: hsla(220, 4%, 14%, 1);
  --dark-080: hsla(220, 4%, 14%, 0.9);
  --light-100: hsla(208, 87%, 97%, 1);
}

html {
  background-color: var(--blue-100);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--light-100);
}

body {
  margin: 0;
}

/* GLOBAL TAG STYLING */
a {
  color: var(--light-100);
  font-weight: bold;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

a:hover {
  text-decoration: underline;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-transform-origin: center;
  transform-origin: center;
}

h1,
h2,
h3 {
  text-transform: lowercase;
}

h1,
h2 {
  margin: 0;
}
h3 {
  margin: 1rem 0 0 0;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.5rem;
}

/* UTILITY CLASSES */
.flex {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}

.center {
  -webkit-box-pack: center;
  justify-content: center;
}

.between {
  -webkit-box-pack: justify;
  justify-content: space-between;
}

.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.opacity-1 {
  opacity: 1;
}

.hidden {
  display: none;
}

/* HEADER */
header {
  background-color: var(--blue-100);
}

#title__container {
  margin: 1rem;
  gap: 1rem;
}

#title__logo {
  width: 4rem;
  height: 4rem;
  background-color: var(--light-100);
  font-weight: bold;
  font-size: 1.75rem;
  color: var(--dark-100);
}

/* NAVIGATION */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

nav ul li {
  height: 3rem;
  padding: 0 1rem;
}

nav ul li:not(:last-child) {
  border-right: 1px solid var(--light-100);
}

nav a {
  text-decoration: none;
}

#title__menu-button {
  display: none;
  background-color: transparent;
  border: none;
}

.menu-icon {
  width: 2rem;
  height: 2rem;
}

/* MAIN CONTENT */
main {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--dark-100);
}

.main-row {
  max-width: 90rem;
  gap: 2rem;
}

.row-image {
  position: relative;
}

.row-image-large {
  width: 50%;
}

.row-image-small {
  width: 30%;
}

.row-image span {
  position: absolute;
  bottom: 0.3rem;
  left: 0.3rem;
  font-size: 0.675rem;
  color: var(--light-100);
}

.row-text {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-align: start;
  align-items: flex-start;
  padding: 1rem 0;
}

.row-text-narrow {
  width: 50%;
}

.row-text-wide {
  width: 70%;
}

.row-text ul {
  margin: 0;
  padding-left: 2rem;
}

.row-text p {
  margin: 0.5rem 0 0 0;
}

/* FOOTER */
footer {
  -webkit-box-pack: end;
  justify-content: end;
  padding: 0.5rem;
}

.social-icon {
  width: 3rem;
  height: 3rem;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

.social-icon:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

/* MEDIA QUERIES */
@media screen and (max-width: 800px) {
  header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-align: start;
    align-items: flex-start;
  }

  #title__menu-button {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
  }

  nav {
    position: relative;
    display: none;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
  }

  nav ul {
    position: absolute;
    top: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    width: 100%;
    background-color: var(--dark-080);
    opacity: 0;
    z-index: 10;
  }

  nav ul li {
    padding: 0;
  }

  nav ul li:not(:last-child) {
    border-bottom: 1px solid var(--light-100);
    border-right: none;
  }

  .main-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    gap: 0rem;
  }

  .row-text {
    width: calc(100% - 2rem);
    padding: 1rem;
  }

  .row-image {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  h1 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 400px) {
  h1 {
    font-size: 1.2rem;
  }
}
