:root {
  --accent-color: #c58156;
  --primary-darkblue: #181d24;
  --beige-color: #f9f0ec;
}

html{
  scroll-behavior: smooth;
}

body {
  background-color: var(--beige-color);
  font: 400 1rem "Montserrat", sans-serif;
  overflow-x: hidden;
}

svg{
  fill: currentColor;
}

p {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover{color: var(--accent-color);}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.text-accent {
  color: var(--accent-color) !important;
}

.ff-serif{
  font-family: 'Playfair Display', serif !important;
}

.ls-1{letter-spacing: 1px !important;}
.ls-2{letter-spacing: 2px !important;}
.ls-3{letter-spacing: 3px !important;}
.ls-4{letter-spacing: 4px !important;}

main{
  z-index: 1;
}
main::before{
  content: '';
  position: absolute;
  inset: 0;
  background: url(../imgs/JOI_Logo_Icon_Stroke.svg) 52vw 30% / 70% no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
  filter: grayscale(1);
}

.joi-brand {
  max-width: 200px;
  min-height: 1px;
  margin: 2rem auto;
  transition: all 300ms ease-in-out;
  z-index: 2;
}

.services-row{
  counter-reset: counter;
}

.services-row .box-service .card::before{
  counter-increment: counter;
  content: counter(counter);
  position: absolute;
  right: -6px;
  top: -6px;
  display: table;
  font-size: 12px;
  background-color: var(--primary-darkblue);
  color: #fff;
  border-radius: 20px;
  padding: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.services-row .box-service.reverse-box .card::before{
  background-color: var(--accent-color);
}

.card{border-radius: .5rem; transition: all 300ms linear;}

.card:hover{
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}

.card-title {
  text-transform: uppercase;
  font-size: 12px;
}

.reverse-box .card{
  color: var(--accent-color);
}

.reverse-box .card:hover{
  color: var(--primary-darkblue);
}

.reverse-box .icon{
  -webkit-filter: brightness(0.5) grayscale(1);
  filter: brightness(0.5) grayscale(1);
  transition: all 300ms linear;
}

.reverse-box .card:hover .icon{
  -webkit-filter: none;
  filter: none;
}

.section-contact{
  border-radius: 100px 100px 0 0;
  box-shadow: 0 -1rem 2rem rgba(0,0,0,0.1);
}

@media (max-width: 640px) {
  .section-contact{
    border-radius: 40px 40px 0 0;
  }
}

.modal-backdrop.show {
  opacity: 1;
  background: rgba(0, 0, 0, 0.894);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

button.close {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: #fff;
  border: 0;
  color: #000;
  opacity: 1;
  text-shadow: none;
}

.close:not(:disabled):not(.disabled):focus,
.close:not(:disabled):not(.disabled):hover {
  opacity: 1;
  background-color: rgb(141, 0, 0);
  color: #fff;
}

.modal-content {
  border: none;
}

.modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

.modal-content .modal-header {
  padding: 0;
  border: none;
}
.modal-content button.close {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 0;
  margin: 0;
  width: 40px;
  height: 40px;
  z-index: 1;
  text-shadow: none;
  background-color: var(--accent-color);
  opacity: 1;
  z-index: 2;
}
.modal-header .close {
  color: #fff;
}
.modal-header {
  background: none;
  border: none;
}

.modal-body iframe{
  aspect-ratio: 16/9;
}

@media screen and (max-width: 576px) {
  .container-lg {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .card .icon {
    width: 50px;
  }
  .modal-body iframe{
    aspect-ratio: 4/3;
  }
}