:root {
  --brand-color: #254993;
  --brand-color-light: #3576c4;
  --secondary-color: #323232;
  --secondary-color-light: #606060;
  --tertiary-color: #cd0d0d;

  --warning-color: color(display-p3 1 0.917 0.672);
  --bg-color: #f5f5f7;
  --bg-card: #ffffff;
  --text: #6a7071;
  --text-light: #969b9b;

  --light-glass-bg: rgba(255, 255, 255, 0.7);
  --white: #ffffff;
  --glass-border: color(display-p3 1 1 1);

  --bg-logo: rgba(0, 0, 0, 0.7);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --brand-color: #87a6ee;
    --brand-color-light: #88afff;
    --secondary-color: #d1d1d1;
    --secondary-color-light: #eeeeee;
    --tertiary-color: #ff6767;

    --warning-color: color(display-p3 1 0.8 0.5);
    --bg-color: #121212;
    --bg-card: #282828;
    --text: #e0e0e0;
    --text-light: #b0b0b0;

    --light-glass-bg: rgba(30, 30, 30, 0.7);
    --white: #ffffff;
    --glass-border: color(display-p3 0.351 0.351 0.351);
    --bg-logo: color(display-p3 1 1 1 / 0.9);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text);

  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/**
* global
**/
.wrap {
  margin: 0 auto;
  max-width: 1200px;
}

.glass {
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  padding: 5px;
  position: relative;
}

.glass .layer {
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  backdrop-filter: blur(2px);
  pointer-events: none;
  position: absolute;
  backdrop-filter: blur(1px);
  filter: url(#glass-distortion);
  overflow: hidden;
  isolation: isolate;
}
.glass .inset {
  backdrop-filter: blur(10px);
}

body {
  background: var(--bg-color);
  line-height: 1.6;
  padding-top: 2em;
  margin: auto;
}

main img {
  max-width: 100%;
  height: auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  z-index: 10;

  h2 {
    font-size: 0.7rem;
    font-weight: normal;
    margin: 0;
    margin-top: -1.4rem;
  }

  .content {
    margin: 0 0.5rem;
    padding: 1rem 0.5rem;
    position: relative;

    .inset {
      padding: 0;
      display: flex;
      justify-content: space-between;
      border-radius: 0.5rem;
      overflow: hidden;

      .menu {
        nav {
          display: flex;
          margin: 0.3rem 1rem;

          li {
            display: block;

            a {
              margin: 0.2rem;
              display: block;
              color: var(--brand-color);
              text-decoration: none;
              margin-top: 0.85rem;
              padding: 0.3rem 1rem;
              font-size: 14px;
              border-radius: 0.4rem;
              transition:
                0.3s background-color,
                0.5s color;
              background-color: var(--light-glass-bg);

              &:hover {
                background-color: var(--white);
                color: var(--brand-color-light);
              }
            }
          }
        }
      }
    }

    .layer {
      border-radius: 0.5rem;
      overflow: hidden;
    }

    .glass {
      border-radius: 0.5rem;
      overflow: hidden;
      box-shadow:
        0 0.5rem 2rem rgba(0, 0, 0, 0.2),
        0 0.2em 0.2rem rgba(0, 0, 0, 0.1);

      .inset {
        backdrop-filter: blur(10px) brightness(125%) contrast(90%);
        @media (prefers-color-scheme: dark) {
          backdrop-filter: blur(10px) brightness(45%) contrast(110%);
          box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
        }
      }
    }
  }

  .logo-area {
    height: calc(64px + 0.5rem);
    width: calc(160px + 0.5rem);

    .logo {
      display: block;
      width: auto;
      backdrop-filter: blur(10px) contrast(200%) brightness(50%);

      margin: 0.25rem;

      -webkit-mask-image: url("assets/vhb-logo-no-color.svg");
      mask-repeat: no-repeat;
      -webkit-mask-repeat: no-repeat;
      mask-size: cover;
      -webkit-mask-size: cover;

      height: 64px;
      width: calc(180px + 0.5rem);
      background: var(--bg-logo);

      h1 {
        color: transparent;
        user-select: none;
      }
    }
    .bars {
      display: block;
      position: absolute;
      left: 124px;
      top: 12px;
      display: flex;
      transform: skew(-36deg);
      .bar {
        z-index: 10;
        background: grey;
        width: 12px;
        height: 50px;

        &.yellow {
          backdrop-filter: brightness(1.2) saturate(200%) contrast(200%);
          background: rgba(255, 214, 0, 0.5);
          border-left: 1px solid rgb(255, 209, 0);
        }
        &.red {
          backdrop-filter: brightness(1.2) saturate(200%) contrast(200%);
          background: rgba(255, 34, 0, 0.7);
          border-left: 1px solid rgb(255, 152, 0);
        }
        &.blue {
          backdrop-filter: brightness(1.2) saturate(200%) contrast(200%);
          background: rgba(20, 111, 208, 0.7);
          border-left: 1px solid rgb(116, 185, 255);
        }
      }
    }
  }

  .top {
    padding: 0;
    backdrop-filter: blur(20px) saturate(190%) brightness(45%) contrast(200%);
    display: flex;
    padding: 0.3rem;

    .contact {
      display: flex;
      flex: auto;
      justify-content: end;

      > div {
        margin-left: 1rem;
        img {
          float: left;
          max-height: 16px;
          margin-top: 4px;
          margin-right: 0.3rem;
          width: auto;
        }
      }

      .phone {
        img {
          max-height: 24px;
          margin-top: 0;
          filter: brightness(110%);
        }

        p {
          display: inline;
          font-weight: 300;
          letter-spacing: 1px;
          color: var(--warning-color);
        }
      }

      .email {
        img {
          filter: brightness(110%);
        }

        p {
          display: inline;
          filter: brightness(120%) contrast(120%);
          font-weight: 300;
          letter-spacing: 1px;
          color: var(--warning-color);
          span {
            color: var(--warning-color);
          }
        }
      }

      .restrict {
        display: block;
        background-color: color(display-p3 1 1 1);
        border-radius: 4rem;
        backdrop-filter: brightness(1);
        filter: brightness(2);

        a[role="button"] {
          color: color(display-p3 0.016 0.115 0.39);
          padding: 0 0.5rem;
          text-decoration: none;
          transition:
            0.4s ease-in color,
            0.6s ease-in-out text-shadow;

          &:hover {
            text-shadow: 0 0.2rem 0.2rem rgba(0, 196, 255, 0.1);
            user-select: none;
          }
        }
      }
    }
  }
}

.grid-team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1200px;
  gap: 1rem;
  padding: 1rem;
  > div {
    min-width: 0;
  }

  .card {
    justify-content: flex-start;
    padding: 1.2rem;

    .avatar {
      border-radius: 50%;
      margin: 0 auto;
      width: 33%;
      max-width: 128px;
      min-width: 64px;
      border: var(--bg-color) 2px solid;
      overflow: hidden;
      img {
        display: block;
        width: 100%;
        height: auto;
      }
    }
  }
}

.team {
  margin: 2rem 0;
  .title {
    h2 {
      color: --tertiary-color;
      font-family: "Lexend", sans-serif;
      font-weight: 300;
      text-align: center;
      font-size: 1.85rem;
    }
  }
}

.modal {
  z-index: 100;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .curtain {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: color(display-p3 0 0 0 / 0.4);
    backdrop-filter: contrast(50%);
  }
  .panel {
    margin: 0 auto;
    max-width: 600px;
    min-width: 100px;
    min-height: 100px;
    z-index: 100;
    border-radius: 2rem;

    .panel-header,
    .panel-content,
    .panel-footer {
      padding: 2em;
    }
    .panel-header {
      h2 {
        margin: 0;
        font-size: 1.6rem;
        color: var(--title-color);
        font-weight: normal;
      }
    }
  }
}

.contact-form {
  padding: 2rem 1rem;

  .panel-content {
    margin: 0 auto;
    max-width: 400px;

    input,
    select,
    textarea {
      width: 100%;
    }
  }
}

.label-float {
  position: relative;
  padding-top: 13px;

  input,
  select,
  textarea {
    border: 1px solid var(--text);
    border-radius: 5px;
    outline: none;
    min-width: 250px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.1s linear;
    -webkit-appearance: none;
    background: var(--bg-color);

    &:focus {
      border: 1px solid var(--brand-color);
      box-shadow: 0 0 1px 1px var(--brand-color);
    }

    &::placeholder {
      color: transparent;
    }

    &:focus + label,
    &:not(:placeholder-shown) + label {
      font-size: 13px;
      top: 0;
      color: var(--brand-color);
      left: 10px;
      background: var(--bg-color);
    }

    &:required:invalid + label {
      color: var(--tertiary-color);
    }

    &:focus:required:invalid {
      border: 1px solid solid var(--tertiary-color);
      box-shadow: 0 0 1px 1px var(--tertiary-color);
    }

    &:required:invalid + label::before {
      content: "*";
    }
  }

  label {
    position: absolute;
    top: calc(50% - 8px);
    left: 20px;
    background: var(--background-color);
    padding: 0 5px;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.1s linear;
    box-sizing: border-box;
  }

  select {
    border: 1px solid lightgrey;
    border-radius: 5px;
    outline: none;
    min-width: 250px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.1s linear;
    -webkit-appearance: none;
    background: var(--background-color);
    -webkit-appearance: none;
  }
}

button {
  background: var(--brand-color);
  color: var(--bg-color);
  padding: 0.9rem 1.2rem;
  border-radius: 0.4rem;
  border: none;
}

.whatsapp {
  z-index: 10;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  border-radius: 4rem;
  border: 1px solid rgba(0, 255, 0, 0.4);
  background: rgba(0, 134, 0, 0.4);
  cursor: pointer;

  box-shadow:
    0 1rem 3rem rgba(0, 0, 0, 0.1),
    0 2rem 6rem rgba(0, 134, 0, 0.2);
}

.whatsapp img {
  max-width: 24px;
  display: block;
  height: auto;
}

.whatsapp .inset {
  border-radius: 4rem;
  display: flex;
  filter: saturate(190%) brightness(70%) contrast(200%);
  background: rgba(0, 134, 0, 0.207);
  box-sizing: border-box;
  padding: 0.3rem;
  transition: 0.5s box-shadow ease-out;

  @media (prefers-color-scheme: dark) {
    filter: saturate(190%) brightness(100%) contrast(100%);
    background: rgba(0, 134, 0, 0.5);
  }
}
.whatsapp .inset p {
  margin: 0;
  color: white;
  padding: 0 0.5rem;
  letter-spacing: 1px;
}

.whatsapp .layer {
  border-radius: 4rem;
  transition: 0.3s backdrop-filter;
}

.whatsapp:hover .layer {
  backdrop-filter: blur(3px) brightness(110%);
}

.whatsapp:hover .inset {
  box-shadow:
    0 6px 40px rgba(0, 0, 0, 0.3),
    0 0 1px 1px rgba(0, 255, 47, 0.732);
}

.swiper {
  margin-bottom: 1rem;
  width: 100%;
  height: 100%;

  .swiper-slide {
    text-align: center;
    background: var(--light-glass-bg);
    color: white;
    display: flex;
    align-items: center;
    width: 45%;
    min-width: 400px;
    border-radius: 2rem;
    height: 300px;
    overflow: hidden;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    &:last-child {
      margin-right: 1rem;
    }

    .desc {
      position: absolute;
      bottom: 1rem;
      width: 75%;
      box-sizing: border-box;
      padding: 1rem;
      left: 1rem;
      z-index: 1;
      color: white;
      text-align: left;
      user-select: none;
      cursor: pointer;

      h4 {
        margin: 0;
        font-size: 1.2rem;
        margin-bottom: 0;
        color: white;
        text-shadow: 0 0.2rem 1rem black;
      }

      p {
        margin: 0;
        line-height: 1rem;
        color: white;
        text-shadow: 0 0.2rem 1rem black;
      }
    }
  }
}

/**
BANNER
**/
.destaque {
  border-radius: 2rem;
  overlay: hidden;
  padding: 0 1rem;
  padding-top: 7.5rem;
}
.banner-content {
  position: relative;
  border-radius: 2rem;
  overlay: hidden;
}

.banner-content .desc {
  position: absolute;
  z-index: 1;
  bottom: 35%;
  right: 0;
  padding-right: 3rem;
  text-align: right;
  text-shadow: 0 0.2rem 2rem rgba(0, 0, 0, 0.8);
}
.banner-content .desc h3 {
  color: white;
  font-size: 2rem;
  line-height: 2rem;
}

.banner-content .desc h4 {
  color: #c8c8ff;
  font-size: 1rem;
}

.banner-content .img-destaque {
  height: auto !important;
}

.banner {
  height: 570px;
  border-radius: 1.5rem;
  overlay: hidden;
}

/**
* Conteúdo
*/
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  gap: 1rem;
  padding: 1rem;
  > div {
    aspect-ratio: 1 / 1.1;
    min-width: 0;
  }
}

.card {
  background-color: var(--bg-card);
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  user-select: none;
  transition: 0.4s box-shadow ease-in-out;

  .card-img img {
    display: block;
    width: 100%;
    height: auto;
  }
  .card-content {
    padding: 0.5rem;
    text-align: center;
  }

  .card-content h3 {
    margin: 0;
    font-weight: normal;
  }
  .card-content p {
    font-size: small;
    color: var(--text-light);
  }

  &:hover {
    box-shadow:
      0 1rem 2rem rgba(0, 0, 0, 0.1),
      0 0.2rem 0.3rem rgba(0, 0, 0, 0.1);
  }
}

/** Modal **/
.more-modal {
  position: fixed;
  z-index: 1000;
  backdrop-filter: blur(10px) contrast(100%);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  perspective: 400px;
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;

  .panel {
    min-width: 100px;
    min-height: 100px;
    margin: 0 auto;
    box-shadow:
      0 0.5rem 4rem rgba(0, 0, 0, 0.1),
      0 0.2rem 0.3rem rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.315);
    border-radius: 1.5rem;
    position: relative;
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    max-width: 760px;
    transform: scale(0.6) rotateX(-10deg);
    transform-style: preserve-3d;
    transition: transform 0.4s ease-in-out;

    @media (prefers-color-scheme: dark) {
      background: rgba(0, 0, 0, 0.5);
    }

    .panel-content {
      background: var(--bg-card);
      border-radius: 1rem;
      box-shadow:
        0 0.5rem 4rem rgba(0, 0, 0, 0.1),
        0 0.2rem 0.3rem rgba(0, 0, 0, 0.2);
      padding: 1rem;
      .title {
        h4 {
          font-weight: 300;
          font-size: 2rem;
        }
      }
      .text {
        font-size: 0.85rem;
        p {
          margin-bottom: 0.5rem;

          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }

    .rodape {
      padding-top: 0.5rem;
      .btn-fechar {
        display: block;
        width: 100%;
        background: var(--brand-color);
        border: none;
        border-radius: 1rem;
        color: var(--bg-color);
        font-size: 1rem;
        padding: 0.75rem;
        cursor: pointer;
        transition: 0.3s background;

        &:hover {
          background: var(--brand-color-light);
        }
      }
    }
  }

  &.open {
    pointer-events: all;
    opacity: 1;
    .panel {
      transform: scale(1) rotateX(0deg);
    }
  }
}

.midias {
  text-align: center;
  font-size: 2rem;
  a:hover {
    i {
      color: var(--brand-color);
    }
  }
}

/**news**/
.news {
  background: var(--bg-card);

  .wrap {
    max-width: 750px;
  }

  .grid-news {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;

    h2 {
      font-weight: 300;
      font-size: 1.8rem;
      text-align: center;
    }

    .news-item {
      border-bottom: 1px solid var(--bg-color);
      padding: 1rem 0;
      display: flex;
      h3 {
        font-weight: normal;
        color: var(--brand-color);
      }

      .news-image {
        width: 25%;
        border: 1px solid var(--bg-color);
        margin-right: 0.5rem;
        background: var(--bg-color);
        border-radius: 0.75rem;
        min-height: 100px;
        max-width: 160px;
      }

      .news-summary {
        font-size: 0.85rem;
        color: var(--text-light);
      }
    }
  }
}

/**partners*/
.partners {
  padding: 0 1rem;
  .wrap {
    background: var(--bg-card);
    border-radius: 1rem;
    margin: 1rem auto;
  }

  .grid-partners {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;

    h2 {
      font-weight: 300;
      font-size: 1.4rem;
      text-align: center;
      color: var(--tertiary-color);
    }
  }
}

/**rodapé**/
.rodape-site {
  background-color: var(--secondary-color);
  color: var(--bg-color);
  height: auto;
  width: 100%;
  font-size: 14px;
  font-family: helvetica;

  a {
    text-decoration: none;
    color: var(--bg-card);
  }
  p {
    margin-bottom: 5px;
    color: var(--bg-color);
    font-size: 0.75rem;
    line-height: 0.9rem;
  }
  .rodape-div {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: auto;
    align-items: stretch;
    padding: 60px 10px 40px 10px;
  }
  .rodape-div-1,
  .rodape-div-2,
  .rodape-div-3,
  .rodape-div-4 {
    display: flex;
    width: calc(100% / 4 - 20px);
    padding: 10px;
  }

  .rodape-div-1 {
    margin-top: -48px;
  }
  span b {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--bg-card);
  }
  .rodape-direitos {
    width: calc(100% - 20px);
    background-color: var(--secondary-color-light);
    padding: 10px;
    margin: 0px;
    text-align: center;
  }

  .logo {
    img {
      height: 48px;
      width: auto;
      mix-blend-mode: screen;
    }
  }
}

/*mobile*/
@media (max-width: 768px) {
  .rodape-div-1,
  .rodape-div-2,
  .rodape-div-3,
  .rodape-div-4 {
    width: calc(50% - 20px);
    padding: 10px;
  }
  .rodape-div {
    padding: 60px 0px 40px 0px;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .banner {
    height: 570px;
  }

  .banner-content .img-destaque {
    height: 570px !important;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .light {
    background-size: contain;
    filter: blur(5px);
  }

  .grid-team {
    display: grid;
    grid-template-columns: 1fr;
  }
}
