/* Vars */
@font-face {
  font-family: RobotoSlab;
  src: url(../fonts/RobotoSlab-Regular.ttf);
}
@font-face {
  font-family: RobotoSlab;
  src: url(../fonts/RobotoSlab-SemiBold.ttf);
  font-weight: 600;
}
@font-face {
  font-family: RobotoSlab;
  src: url(../fonts/RobotoSlab-Bold.ttf);
  font-weight: 700;
}

:root {
  --MainFont: "RobotoSlab", sans-serif;
  --SeccondaryFont: "Helvetica", "Arial", sans-serif;
  --Red: #ab3c3c;
  --DarkBlueGreen: #314b57;
}

/* Reboot */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

:focus {
  outline: none;
}

body {
  margin: 0;
  font-family: var(--SeccondaryFont);
  color: var(--DarkBlueGreen);
}

/* Containers */
.wrapper {
  width: 100%;
  max-width: 1234px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Top */
#top {
  background-color: var(--DarkBlueGreen);
  color: white;
}
#top .wrapper {
  display: flex;
  gap: 25px;
  justify-content: space-between;
}
#top .services {
  width: 100%;
  display: flex;
  flex-direction: column;
}
#top .services h1 {
  font-family: var(--MainFont);
  margin: 6px 0 9px;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 600;
}
#top .services-list {
  display: flex;
  align-items: start;
  gap: 20px;
  text-align: center;
  padding-left: 1px;
}
.services-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
  opacity: 1;
  transition: opacity ease-in 0.3s;
  align-items: center;
}
#top .services-list a:hover {
  opacity: 0.5;
}
.services-list a h3 {
  margin: 0;
  color: white;
  text-transform: uppercase;
  font-family: var(--MainFont);
  font-size: 18px;
  font-weight: 600;
}
#top .map {
  width: 100%;
  max-width: 426px;
}
#top .map a {
  display: flex;
  max-width: 426px;
  width: 100%;
  height: 100%;
}
#top .map a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contents */
.contents {
  padding-top: 9px;
}
.contents h2 {
  font-family: var(--MainFont);
  color: var(--Red);
  font-size: 50px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: 1.22px;
}
.contents .contents-box {
  display: flex;
  gap: 35px;
  align-items: start;
  font-size: 17px;
  line-height: 26px;
}
.contents .contents-box .image {
  width: 100%;
  max-width: 378px;
  min-height: 254px;
}
.contents .contents-box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contents .contents-box .texts {
  width: 100%;
}
.contents .text {
  margin-bottom: 37px;
}
.contents .contents-box p {
  margin: 0 0 16px;
}
.contents .contents-box .links {
  display: flex;
  flex-direction: column;
}
.contents .contents-box .links a {
  color: var(--Red);
  text-decoration: none;
  transition: color ease-in 0.3s;
}
.contents .contents-box .links a:hover {
  color: var(--DarkBlueGreen);
}

/* Blog */
.blog {
  padding-top: 69px;
  margin-bottom: 16px;
}
.blog h2 {
  margin: 0 0 20px;
  font-family: var(--MainFont);
  color: var(--Red);
  font-size: 40px;
  font-weight: 600;
}
.blog .articles {
  display: flex;
  gap: 35px;
}
.blog .articles article {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 13px;
}
.blog .articles article img {
  margin-bottom: 6px;
}
.blog .articles article p {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
}
.blog .articles article a {
  color: var(--Red);
  font-size: 17px;
  transition: color ease-in 0.3s;
}
.blog .articles article a:hover {
  color: var(--DarkBlueGreen);
}

/* Media queries */
@media (min-width: 993px) and (max-width: 1110px) {
  #top .services-list {
    flex-wrap: wrap;
  }
  .services-list a {
    width: calc(50% - 14px);
  }
}
@media (max-width: 992px) {
  #top .wrapper {
    flex-direction: column;
    align-items: center;
  }
  #top .services h1 {
    text-align: center;
  }
  .services-list {
    justify-content: center;
  }
  #top .map {
    margin-bottom: 16px;
  }
}
@media (max-width: 660px) {
  #top .services-list {
    flex-wrap: wrap;
  }
  .services-list a {
    width: calc(50% - 14px);
  }
  .contents h2,
  .blog h2 {
    font-size: 38px;
    text-align: center;
  }
  .contents .contents-box {
    flex-direction: column;
  }
  .contents .contents-box .image {
    max-width: none;
  }
  .blog .articles {
    flex-direction: column;
  }
  .blog .articles article img {
    width: 100%;
  }
  .contents .contents-box .image {
    min-height: unset;
  }
}

@media (max-width: 352px) {
  .services-list a h3 {
    font-size: 14px;
  }
}
