/***************************************************************
    Css Styles for CIA - By Carlos Eduardo Pavão Aureliano

    Sumary

    0- Imports Fonts

    1- Base tags (Html, body, h1 ...)

    2- Buttons

    3- Navbar

    4- Masthead

    5- Blue Sections/Clip-Paths

    6- Irregular borders

    7- Video + Icons

    8- Cards for In dev

    9- Articles

    10- Inputs (contact area)

    11- Modals
****************************************************************/

/*****************************************************************************
    0- Imports Fonts
*****************************************************************************/

@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");

/*****************************************************************************
    1- Base Tags
*****************************************************************************/

html {
  scroll-behavior: smooth;
}

body,
html {
  background-color: #efeae6;
  max-width: 100%;
  overflow-x: hidden;
}

h1 {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 3.5rem;
  color: #3874a5;
}

h2 {
  margin: 1rem 0;
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 2.5rem;
  color: #3874a5;
}

h3 {
  margin: 1rem 0;
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
}

p {
  font-family: "Nunito";
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.15em;
  color: #343434;
}

#nav-list a {
  color: white;
}

section {
  margin: 4rem auto;
}

@media (max-width: 420px) {
  section {
    margin: 2rem auto;
  }
}

iframe {
  margin: 16px auto;
  width: 560px;
  height: 315px;
}

@media (max-width: 420px) {
  iframe {
    margin: 16px auto;
    width: 300px;
    height: 168px;
  }
  .container {
    padding: auto;
    margin: auto;
  }
}

/*****************************************************************************
    2- Buttons
*****************************************************************************/

.btn-primaray,
.btn,
.btn-submit {
  background-color: #3874a5;
  color: white;
  padding: 5px 25px;
  border: none;
  border-radius: 0;
  font-size: 1.4rem;
  font-family: "Barlow";
  font-weight: 500;
  box-shadow: none;
  transition: 200ms all;
}

.btn-submit {
  margin: 2rem 15px;
}

.btn:hover,
.btn-primaray:hover,
.btn-submit:hover {
  transition: 400ms all;
  box-shadow: 0px 8px 15px rgba(56, 116, 165, 0.5);
}

.btn-secundary {
  background-color: white;
  color: #3874a5 !important;
  font-weight: 500;
  transition: 200ms all;
}

.btn-secundary:hover {
  background-color: #bfe29a;
  color: white !important;
  box-shadow: 0px 8px 15px rgba(255, 255, 255, 0.1);
  font-weight: 500;
  transition: 200ms all;
}

/*****************************************************************************
    3- Navbar
*****************************************************************************/

.nav-link {
  color: white;
}

.nav-item p {
  color: white;
  font-size: 0.75em;
  font-weight: lighter;
}

.navbar-scrolled {
  background-color: white !important;
  color: #24547c;
  transition: 400ms all;
}

.navbar-scrolled p,
.navbar-scrolled #nav-list a {
  margin: 0 auto;
  font-weight: 400;
  color: #24547c;
  transition: 400ms all;
}

/*****************************************************************************
    4- Masthead
*****************************************************************************/

.masthead {
  padding: 6vw 0;
  background: linear-gradient(252.27deg, #816cff -2.28%, #3874a5 108.35%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.masthead p,
.masthead h1 {
  color: white;
}

@media (max-width: 420px) {
  .row {
    padding: 15px 0;
    margin: 15px 0;
  }
  .col-md-5,
  .col-md-4,
  .col-md-6 {
    padding: 0;
    margin: 0;
  }
}

/*****************************************************************************
    5- Blue sections/ clip-paths
*****************************************************************************/

.blue-section {
  width: 100%;
  background: linear-gradient(80.27deg, #7f6cfc 0%, #3d73ac 100%);
  margin: 0 auto;
}

.blue-section p,
.blue-section h1,
.blue-section h2,
.blue-section h3 {
  color: white;
}

.clip-diagonal {
  padding: 6vw 0;
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.clip-border-box {
  clip-path: polygon(0 0, 100% 2vw, 100% 100%, 0 calc(100% - 2vw));
}

.clip-border-top {
  height: 2vw;
  margin: 0;
  padding: 0;
  background-color: #5a9c9c;
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}

.clip-border-bottom {
  height: 2vw;
  margin: 0;
  padding: 0;
  background-color: #5a9c9c;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

/*****************************************************************************
    6- Irregular Borders
*****************************************************************************/

.box {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: url("../assets/images/Brain.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.border-box {
  position: relative;
  top: 40px;
  left: 40px;
  width: 300px;
  height: 300px;
  border: 10px solid rgba(192, 227, 155, 0.5);
}

@media (max-width: 420px) {
  .border-box {
    margin-bottom: 3.5rem;
  }
}

.out-box {
  position: relative;
  padding: 10px;
  margin: 24px 0;
}

.left-border {
  position: absolute;
  top: -1rem;
  left: -40rem;
  width: 80rem;
  height: 110%;
  padding: 10px;
  border: 5px solid rgba(100, 179, 244, 0.3);
}

.right-border {
  position: absolute;
  top: -1rem;
  right: -40rem;
  width: 80rem;
  height: 110%;
  padding: 10px;
  border: 5px solid rgba(100, 179, 244, 0.3);
}

.center-border {
  position: absolute;
  top: -1rem;
  width: 100%;
  height: 110%;
  padding: 10px;
  border: 5px solid rgba(100, 179, 244, 0.3);
}

.contato {
  padding: 16px 5px;
  margin: 16px;
  border: 5px solid rgba(100, 179, 244, 0.3);
}

@media (max-width: 420px) {
  .contato {
    margin: auto;
    padding: 10px;
  }
}

.image-box {
  width: 80%;
  height: auto;
}

/*****************************************************************************
    7- Video + Icons
*****************************************************************************/

.video {
  display: block;
  margin: auto;
}

img.icon {
  width: 24px !important;
  height: 24px !important;
}

/*****************************************************************************
    8- Cards for in dev
*****************************************************************************/

.cardsc {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 90%;
  margin: auto;
  text-align: center;
  color: whitesmoke;
  background-color: rgba(0, 0, 0, 0);
  transition: 400ms all;
}

@media (min-width: 600px) {
  .cardsc {
    height: 350px;
  }
}

@media (max-width: 420px) {
  .cardsc {
    margin: 10px auto;
    height: 360px;
  }
}

.cardsc:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 110%;
  background-size: cover;
  background-position: 0 0;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1),
    0 16px 16px rgba(0, 0, 0, 0.1);
  transition: 400ms all;
}

.cardsc:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 200%;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.009) 11.7%,
    rgba(0, 0, 0, 0.034) 22.1%,
    rgba(0, 0, 0, 0.072) 31.2%,
    rgba(0, 0, 0, 0.123) 39.4%,
    rgba(0, 0, 0, 0.182) 46.6%,
    rgba(0, 0, 0, 0.249) 53.1%,
    rgba(0, 0, 0, 0.32) 58.9%,
    rgba(0, 0, 0, 0.394) 64.3%,
    rgba(0, 0, 0, 0.468) 69.3%,
    rgba(0, 0, 0, 0.54) 74.1%,
    rgba(0, 0, 0, 0.607) 78.8%,
    rgba(0, 0, 0, 0.668) 83.6%,
    rgba(0, 0, 0, 0.721) 88.7%,
    rgba(0, 0, 0, 0.762) 94.1%,
    rgba(0, 0, 0, 0.79) 100%
  );
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
  transition: 400ms all;
}

.cardsc:nth-child(1):before {
  background-image: url("../assets/images/COVID.jpg");
}

.cardsc:nth-child(2):before {
  background-image: url("../assets/images/Burns.png");
}

.cardsc:nth-child(3):before {
  background-image: url("../assets/images/Bag.png");
}

.contentsc {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  padding: 1rem;
  transition: transform var(--d) var(--e);
  z-index: 1;
  transition: 400ms all;
}

.contentsc > * + * {
  margin-top: 1rem;
}

.title {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.5rem;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.copy {
  color: white;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.35rem;
}

.btn-sc {
  cursor: pointer;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-family: Barlow;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  color: white;
  background-color: #24547c;
  border: none;
}

.btn-sc:hover {
  background-color: #4673bb;
}

.btn-sc:focus {
  outline: 1px dashed yellow;
  outline-offset: 3px;
}

@media (hover: hover) and (min-width: 600px) {
  .cardsc:after {
    transform: translateY(0);
  }
  .contentsc {
    transform: translateY(calc(100% - 4.5rem));
  }
  .contentsc > *:not(.title) {
    opacity: 0;
    transform: translateY(1rem);
    transition: transform var(--d) var(--e), opacity var(--d) var(--e);
  }
  .cardsc:hover,
  .cardsc:focus-within {
    align-items: center;
  }
  .cardsc:hover:before,
  .cardsc:focus-within:before {
    transform: translateY(-4%);
  }
  .cardsc:hover:after,
  .cardsc:focus-within:after {
    transform: translateY(-50%);
  }
  .cardsc:hover .contentsc,
  .cardsc:focus-within .contentsc {
    transform: translateY(0);
  }
  .cardsc:hover .contentsc > *:not(.title),
  .cardsc:focus-within .contentsc > *:not(.title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--d) / 8);
  }
  .cardsc:focus-within:before,
  .cardsc:focus-within:after,
  .cardsc:focus-within .contentsc,
  .cardsc:focus-within .contentsc > *:not(.title) {
    transition-duration: 0s;
  }
}

/*****************************************************************************
    9- Articles
*****************************************************************************/

.card {
  height: 480px;
  border-radius: 0px;
  background: #ffffff;
  border: 5px solid #24547c;
  margin-bottom: 25px;
  color: #343434 !important;
}

@media (max-width: 420px) {
  .card {
    height: auto;
  }
}

.card p {
  color: #343434;
  font-family: "Nunito";
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 20px;
}

.card h2 {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  color: #3874a5 !important;
}

.card .card-date {
  color: #343434;
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}

.card a {
  color: #343434 !important;
}

/*responsividade dos cards*/

@media (max-width: 420px) {
  #Nossa_Equipe .row {
    margin: auto;
  }
  .img-wrapper {
    margin: 10px auto;
  }
}

.img-wrapper {
  width: 300px;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.img-wrapper:before {
  content: "";
  position: absolute;
  top: 0;
  left: 180%;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
  transform: skew(45deg);
  transition: 0.5s;
}

.img-wrapper:hover:before {
  left: -180%;
}

.img-wrapper img {
  height: 300px;
  width: 300px;
  filter: grayscale(100%);
  transition: 2s;
}

.img-wrapper:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.img-wrapper h3 {
  background: #5a9c9c;
  color: #fff;
  text-align: center;
  line-height: 10px;
  margin: 0;
  padding: 1px 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.img-wrapper:hover h3 {
  transform: perspective(400px) rotateY(0deg);
}

.img-wrapper ul {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0);
}

.img-wrapper ul li {
  background: #333;
  height: 40px;
  width: 40px;
  text-align: center;
  line-height: 40px;
  transform: perspective(800px) rotateY(90deg);
  transition: 0.5s;
  transform-origin: left;
}

.img-wrapper:hover ul li {
  transform: perspective(800px) rotateY(0deg);
}

.img-wrapper:hover ul li:nth-child(1) {
  transition-delay: 0.2s;
}

.img-wrapper:hover ul li:nth-child(2) {
  transition-delay: 0.6s;
}

.img-wrapper:hover ul li:nth-child(3) {
  transition-delay: 0.8s;
}

.img-wrapper:hover ul li:nth-child(4) {
  transition-delay: 1s;
}

.img-wrapper ul li a {
  color: #5a9c9c;
  background: rgba(255, 255, 255, 0);
}

.img-wrapper ul li i {
  color: #4d8383;
  background: rgba(255, 255, 255, 0);
}

.img-wrapper ul li i:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0);
}

/*****************************************************************************
    10- Inputs
*****************************************************************************/

.contact_img {
  float: right;
  width: 75%;
  height: auto;
}

label {
  font-family: Nunito;
  font-style: normal;
  font-weight: normal;
  font-size: 0.8rem;
  color: #4d4d4d;
  margin: 8px 0 0 15px;
  padding: 0;
}

.invalid-feedback,
.valid-feedback {
  margin: 0 0 0 15px;
}

input[type="text"],
input[type="email"],
input[type="subject"],
textarea,
.form-control {
  width: 100%;
  margin: 0 15px;
  border: 1px solid #4673bb;
  box-sizing: border-box;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="subject"]:focus,
textarea:focus,
.form-control:focus {
  border: 1px solid #7f6cfc;
  outline: none;
  transition: all 200ms;
  background: rgba(0, 0, 0, 0);
}

/*****************************************************************************
    11- Modals
*****************************************************************************/

.modal-box {
  position: relative;
  top: 40px;
  left: 40px;
  width: 80%;
  height: auto;
  border: 8px solid #d2e2fa;
}

.modal-content img {
  width: 80%;
  height: auto;
  position: absolute;
  top: -50px;
  left: -30px;
  filter: grayscale(100%);
}

.modal-content h1 {
  font-size: 2.6rem;
  line-height: auto;
}

.modal-content h3 {
  color: #4d4d4d;
  font-weight: 400;
}

.modal-content p {
  font-size: 16px;
  line-height: 18px;
  margin-top: 45px;
}

@media (max-width: 420px) {
  .modal-content h3 {
    margin: 0;
  }
  .modal-box {
    position: relative;
    top: auto;
    left: auto;
    width: 80%;
    height: auto;
    border: none;
  }

  .modal-box img {
    top: auto;
    left: auto;
    width: 80%;
    height: auto;
    position: relative;
    filter: grayscale(100%);
    margin: auto;
  }

  .modal-body p {
    margin: 0;
  }

  .modal-body .row .col-md-12 {
    padding: 0;
  }
}

/** ANIMATION IN MODAL **/

.animation-ctn {
  text-align: center;
  margin-top: 5em;
}

@-webkit-keyframes checkmark {
  0% {
    stroke-dashoffset: 100px;
  }
  100% {
    stroke-dashoffset: 200px;
  }
}

@-ms-keyframes checkmark {
  0% {
    stroke-dashoffset: 100px;
  }
  100% {
    stroke-dashoffset: 200px;
  }
}

@keyframes checkmark {
  0% {
    stroke-dashoffset: 100px;
  }
  100% {
    stroke-dashoffset: 0px;
  }
}

@-webkit-keyframes checkmark-circle {
  0% {
    stroke-dashoffset: 480px;
  }
  100% {
    stroke-dashoffset: 960px;
  }
}

@-ms-keyframes checkmark-circle {
  0% {
    stroke-dashoffset: 240px;
  }
  100% {
    stroke-dashoffset: 480px;
  }
}

@keyframes checkmark-circle {
  0% {
    stroke-dashoffset: 480px;
  }
  100% {
    stroke-dashoffset: 960px;
  }
}

@keyframes colored-circle {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100;
  }
}

.inlinesvg .svg svg {
  display: inline;
}

.icon--order-success svg polyline {
  -webkit-animation: checkmark 0.25s ease-in-out 0.7s backwards;
  animation: checkmark 0.25s ease-in-out 0.7s backwards;
}

.icon--order-success svg circle {
  -webkit-animation: checkmark-circle 0.6s ease-in-out backwards;
  animation: checkmark-circle 0.6s ease-in-out backwards;
}

.icon--order-success svg circle#success,
.icon--order-success svg circle#error {
  -webkit-animation: colored-circle 0.6s ease-in-out 0.7s backwards;
  animation: colored-circle 0.6s ease-in-out 0.7s backwards;
}
