/*=========================Setup=============================*/
:root {
  --dark: #3d3d3d;
  --white: #ffffff;
  --light-grey: #f6f6f6;
  --primary: #002537;
  --secondary: #0bcbe0;
  --text-h1: 2.8rem;
  --text-h2: 2.2rem;
  --text-h3: 1.8rem;
  --text-normal: 1.4rem;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 62.5%;
  font-family: "Roboto", sans-serif;
  color: var(--dark);
  scroll-behavior: smooth;
}
h1 {
  font-size: var(--text-h1);
  font-weight: 700;
}
h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}
h3 {
  font-size: var(--text-h3);
  font-weight: 500;
}
p {
  font-size: var(--text-normal);
  font-weight: 400;
}

/*====================== Top Nav ===========================*/

.top-nav {
  width: 100%;
  height: 90px;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: rgba(0, 37, 55, 0.8);
  z-index: 99;
  transition: height 0.3s, top 0.3s;
}
.top-nav__logo {
  width: 140px;
  height: 50px;
  margin: 0 20px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../assets/img/triem-logo.png");
}
.top-nav__items {
  display: flex;
  list-style: none;
}
.top-nav__item {
  margin: 0 15px;
  transition: transform 300ms;
}
.top-nav__item:hover {
  transform: scale(1.07);
}
.top-nav__link {
  padding: 4px;
  position: relative;
  text-decoration: none;
  color: var(--white);
  font-size: var(--text-h3);
  font-weight: 500;
  font-family: inherit;
}
.top-nav__link::after {
  content: "";
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--white);
  transform: scale(0);
  transform-origin: center;
  transition: transform 300ms;
}
.top-nav__link:hover::after {
  transform: scale(1);
}

/*====================== Hamburger Menu ===========================*/

.top-nav-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}
.slide-menu__item {
  text-align: center;
  margin: 10px 0;
}
.slide-menu__link {
  text-decoration: none;
  color: var(--primary);
  font-size: var(--text-h3);
  font-weight: 500;
  font-family: inherit;
}
.hamburguer-icon {
  width: 60px;
  height: 90px;
  display: none;
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  cursor: pointer;
  border: 0;
  background-color: transparent;
  transition: transform 300ms;
}
.hamburguer-icon:hover {
  transform: scale(1.2);
}
.hamburguer-icon__open {
  width: 60px;
  height: 50px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../assets/icons/triem-icon-01.png");
}
.hamburguer-icon__close {
  display: none;
  color: var(--white);
}
.show-overlay {
  opacity: 100%;
  z-index: 98;
}
.show-menu {
  height: 340px;
}

/*=========================Header=============================*/

.header {
  width: 100%;
  height: 100vh;
  min-height: 760px;
  max-height: 860px;
  padding-top: 90px;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 4fr 3fr;
  background: linear-gradient(
    104.98deg,
    #375a6a 0%,
    #0b2f41 47.56%,
    #002537 100%
  );
  color: white;
  overflow: hidden;
}
.header__texts-container {
  grid-column: 1;
  grid-row: 1;
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}
.header__main-title {
  text-align: end;
  font-size: 5rem;
  font-weight: 700;
}
.header__slogan {
  margin-top: 23px;
  margin-left: 20px;
  text-align: end;
}
.header__button-contact {
  width: min-content;
  margin: 43px 0 0;
  padding: 15px;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  transition: 300ms;
  font-size: var(--text-h3);
  font-weight: 500;
}
.header__button-contact:hover {
  transform: scale(1.1);
}
.header__img-container {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-content: center;
}
.header__img {
  width: 100%;
  max-height: 700px;
  aspect-ratio: 1;
  object-fit: contain;
}

/*=========================Main=============================*/

.section {
  padding: 50px 8% 50px;
}

/*---------------Products and services-------------*/

.section-title {
  text-align: center;
  color: var(--primary);
  padding: 0 30px;
}
.products-n-services__cards-container {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "printing modeling engineer"
    ". . ."
    "mentoring repair teaching"
    ". . .";
  align-items: start;
  justify-items: center;
}
.service-card {
  max-width: 400px;
  margin: 5px 5px 12px;
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.service-card-title {
  align-self: center;
  max-width: 360px;
  text-align: center;
  padding: 10px 7px;
}
.title-printing {
  grid-area: printing;
}
.title-modeling {
  grid-area: modeling;
}
.title-engineer {
  grid-area: engineer;
}
.title-mentoring {
  grid-area: mentoring;
}
.title-repair {
  grid-area: repair;
}
.title-teaching {
  grid-area: teaching;
}
.service-card__image {
  width: 100%;
  min-width: 220px;
  max-width: 350px;
  height: calc(100vw * 0.16);
  min-height: 140px;
  max-height: 230px;
  margin-bottom: 10px;
  object-fit: cover;
  filter: drop-shadow(4px 6px 6px rgba(0, 0, 0, 0.25));
}
.service-card__text {
  margin-top: 10px;
  max-width: 350px;
}
.service-card__image-teaching {
  object-position: 0 80%;
}

/*---------------Medical Sector-------------*/

.medical-sector {
  padding: 30px 0 0;
  background-color: var(--primary);
  color: var(--white);
}
.medical-sector__title {
  color: var(--white);
}
.medical-sector__description {
  max-width: 1340px;
  margin: 30px auto 0;
  padding: 0 10%;
  text-align: center;
}
.medical-sector__cards-container {
  margin: 50px 8% 10px 8%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.medical-card {
  margin: 0 20px 40px;
  padding: 40px;
  border: 5px solid var(--white);
  display: flex;
  flex-direction: column;
}
.medical-card__icon {
  color: var(--secondary);
}
.medical-card__title {
  margin-top: 20px;
}
.medical-card__description {
  margin-top: 20px;
}
.medical-sector__end-text {
  margin-top: 10px;
  padding: 0 20px;
  text-align: center;
}
.medical-sector__link {
  color: var(--white);
}
.medical-sector__images-container {
  width: 100%;
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow: scroll;
  overflow-y: hidden;
}
.medical-sector__image {
  height: 310px;
}
.medical-sector__image-quirurgical {
  aspect-ratio: 1.5;
  object-fit: cover;
}

/*---------------About us-------------*/

.about-us {
  background-color: var(--light-grey);
  padding-bottom: 100px;
}
.about-us__info-container {
  margin: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.goals-text-container {
  margin: 0 15px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.goals-text-container__text {
  margin-top: 15px;
}
.about-us__questions-container {
  margin: 50px 22%;
  display: flex;
  flex-direction: column;
}
.question-text-container {
  padding: 30px 0 20px 0;
  border-bottom: 1px solid var(--dark);
  display: flex;
  flex-direction: column;
}
.question-text-container__text {
  margin-top: 15px;
}

/*---------------Contact Us-------------*/

.contact-us__info-container {
  height: 500px;
  margin: 0 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
}
.triem-map {
  height: 80%;
  width: 90%;
  border: 0;
  align-self: center;
  justify-self: center;
  filter: drop-shadow(4px 6px 6px rgba(0, 0, 0, 0.25));
}
.contact-texts-container {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
}
.info-text-container {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 5fr 8fr;
  grid-template-rows: 1fr 1fr;
}
.info-text-container__right {
  margin-bottom: 10px;
  margin-left: 10px;
}

/*=========================Footer=============================*/

.footer {
  width: 100%;
  padding: 20px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--primary);
  color: var(--white);
}
.footer__logo {
  width: 300px;
  margin: 15px;
}
.bottom-nav__items {
  margin: 15px;
  text-align: center;
  list-style: none;
}
.bottom-nav__item {
  display: inline-block;
  margin: 10px 15px;
  transition: transform 300ms;
}
.bottom-nav__item:hover {
  transform: scale(1.08);
}
.bottom-nav__link {
  font-size: var(--text-h3);
  font-family: inherit;
  text-decoration: none;
  color: var(--white);
}
.social-media {
  margin: 10px 0 30px 0;
}
.social-media__icon {
  margin: 0 20px;
  text-decoration: none;
  color: var(--white);
  transition: transform 300ms;
}
.social-media__icon:hover {
  transform: scale(1.2);
}
.footer__copyright {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #c4c4c4;
}
