/* Estilo automático para o tipo de post: empreendimento */
section.hero-section {
  .swiper-next-custom, .swiper-prev-custom {
    background-color: #FFFFFFD9;
    background-size: 12px;
    opacity: .5;
    transition: 300ms all ease-in-out;
    &:hover {
      opacity: 1;
    }
  }
  /* .swiper-prev-custom {
		left: 33.333% !important;
		transform: translateX(-50%);
	}

	.swiper-next-custom {
		right: 33.333% !important;
		transform: translateX(50%);
	}

	@media (max-width: 1024px) {
		.swiper-prev-custom {
			left: 5% !important;
			transform: none;
		}

		.swiper-next-custom {
			right: 5% !important;
			transform: none;
		}
	} */
}
.tab-content {
  height: 100%;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.5s ease-in-out;
  transform: translateY(-100%);
  position: absolute;

  &.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    height: 450px;
    transform: translateY(0);
  }

  iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}

.tab-outer {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translate(-50%);
  padding: 1.5rem;
  background-color: rgba(255, 255, 255);
  /* border: 1px solid var(--roxo); */
  border-radius: 10px;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0px 4px 20px 10px #00000014;

  .tabs {
    cursor: pointer;
    /* padding: 32px; */
    text-transform: capitalize;
    border-right: 1px solid #cccccc;
    padding: 0rem 1.5rem;
    /* display: flex; */
    align-items: center;
    gap: 12px;

    &:last-child {
      border-left: 1px solid #cccccc;
      border-right: none;
    }
    
    &:nth-child(3) {
      border-right: none;
    }

    &.active {
      /* background-color: var(--roxo); */
      /* color: #fff; */

      .svg-holder{
        background-color: var(--laranja);
      }

    }
    svg path {
      /* fill: var(--creme);
      stroke: var(--creme); */
    }
  }
}

section.tab-mobile {
  margin-bottom: 12px;

  .holder {
    position: relative;

    &::after {
      content: '';
      position: absolute;
      width: 100%;
      bottom: 0;
      left: 0;
      height: 2px;
      background: #E1E3E9;
      padding-right: calc(var(--bs-gutter-x) * .5);
      padding-left: calc(var(--bs-gutter-x) * .5);
      z-index: -1;
    }
  }

  .tabs {
    text-transform: capitalize;
    padding-bottom: 18px;
    border-bottom: 2px solid #E1E3E9;

    &.active {
      border-bottom: 4px solid var(--laranja);
    }
  }
}

section.sobre {
  nav {
    a {
      color: var(--cinza);
    }
  }

  .texto {
    h2 {
      font-family: Flama;
      font-weight: 600;
      font-size: 40px;
      line-height: 100%;
      color: var(--titulos);
    }

    h3 {
      font-family: Flama;
      font-weight: 600;
      font-size: 22px;
      line-height: 135%;
      color: var(--roxo);
    }

    p {
      font-size: 18px;
      line-height: 145%;
      color: var(--cinza);
    }
  }

  .form-container {
    box-shadow: 4px 4px 4px 0px #5659671f;

    h4 {
      font-family: Flama;
      font-weight: 600;
      font-size: 18px;
      line-height: 140%;
      color: var(--roxo);
    }

    .form-group {
      margin-bottom: 1rem;

      label {
        display: inline-block;
        margin-bottom: 10px;
        font-size: 15px;
        font-weight: 500;
        color: var(--roxo);
      }

      .form-control {
        box-shadow: 0px 4px 4px 0px #0000000d;
        display: block;
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: var(--cinza);
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: white;
        background-clip: padding-box;
        border: 1px solid #d9d9d9;
        border-radius: 5px;
        transition:
          border-color 0.15s ease-in-out,
          box-shadow 0.15s ease-in-out;
      }
    }
  }
  h3 {
    font-size: 22px;
    line-height: 135%;
    color: var(--roxo);
    margin: 0;
    padding: 0;
  }
  a.cta, button.cta {
    padding: 14px;
    text-wrap-mode: nowrap;
  }
}

section.ficha {
  h2 {
    color: var(--roxo);
    font-size: 32px;
    font-family: Flama;
    font-weight: 600;
    line-height: 130%;
    @media (max-width: 1024px) {
      font-size: 28px;
    }
    @media (max-width: 540px) {
      font-size: 22px;
    }
  }
}

section.banner {
  overflow-x: hidden;

  h2 {
    font-size: 32px;
    color: white;
    font-weight: 600;
    margin-bottom: 16px;

    @media (max-width: 540px) {
      text-align: center;
      font-size: 22px;
      margin: 0;
    }
  }

  p {
    color: white;
    margin-bottom: 32px;
    font-weight: 500;

    @media (max-width: 540px) {
      text-align: center;
      font-size: 16px;
      margin: 0;
    }
  }

  .outer {
    &::after {
      content: '';
      position: absolute;
      width: 98svw;
      height: 120%;
      background: var(--laranja);
      border-bottom-left-radius: 20px;
      border-bottom-right-radius: 20px;
      box-shadow: 0px 8px 6px 0px #55586626;
      top: 20%;
      left: 50%;
      right: 0;
      z-index: -1;
      transform: translateX(-50%);
    }
  }
}

@media (max-width: 768px) {

  .card-grid-3, .card-grid-4 {
    display: none;
  }
}

/* Modal Ficha Técnica */
#fichaTecnicaModal {
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  visibility: hidden;

  &.active {
    opacity: 1;
    visibility: visible;

    .modal-container {
      transform: scale(1);
    }
  }

  .modal-container {
    max-width: 800px;
    max-height: 750px;
    width: 90%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease-in-out;
    transform: scale(0.9);
    padding: 32px;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    border-bottom: 1px solid #E1E3E9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;

    h2 {
      margin: 0;
      color: var(--roxo);
      font-size: 28px;
      font-weight: 600;
    }
  }

  .header-modal {
    margin-top: 32px;
    
    h2 {
      color: var(--roxo);
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    
    p {
      color: var(--cinza);
      font-size: 16px;
      line-height: 1.4;
    }
  }

  .close-modal {
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.7;
    }
  }

  .modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-top: 32px;
    padding-right: 15px;
  }

  @media (max-width: 1024px) {
    background: transparent;
    background-color: transparent !important;
    backdrop-filter: none;
    display: block;

    .modal-container {
      width: 100%;
      max-width: 100%;
      height: calc(100dvh - 55px);
      max-height: none;
      border-radius: 0;
      position: fixed;
      /* top: 104px; */
      bottom: 0;
      left: 0;
      padding: 0px 20px;
      transform: translateX(-100%);
      transition: transform 0.4s ease-in-out;
      box-shadow: none;
    }

    &.active {
      .modal-container {
        transform: translateX(0);
      }
    }

    .modal-header {
      padding: 0;
      border: none;
      margin-bottom: 24px;
    }

    .header-modal {
      margin-top: 0;
      h2 {
        font-size: 24px;
      }
    }
  }
}

/* Custom Scrollbar */
.custom-scrollbar {
  &::-webkit-scrollbar {
    width: 8px;
  }

  &::-webkit-scrollbar-track {
    background: #DEDEDE;
    border-radius: 80px;
  }

  &::-webkit-scrollbar-thumb {
    background: #C9C6CB;
    border-radius: 80px;

    &:hover {
      background: #b5b2b7;
    }
  }
}

.ficha-modal-grid {
display: grid;
}

.ficha-modal-item {
  /* display: flex; */
  /* flex-direction: row; */
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  /* border-radius: 12px; */
  margin-bottom: 24px;
  border-bottom: 1px solid #E1E3E9;

  span {
    color: var(--laranja);
    font-weight: 600;
    font-size: 16px;
  }

  p {
    color: var(--cinza);
    font-size: 16px;
    margin: 0;
  }
}
