@font-face {
  font-family: "Gramatika";
  src: url("../fonts/Gramatika-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Gramatika";
  src: url("../fonts/Gramatika-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  /* Cores da marca */
  --color-primary: #3264aa;
  --color-primary-dark: rgb(15, 53, 109);
  --color-primary-alt: #3c67a7;

  --color-accent: #5fbeb9;
  --color-accent-light: #19aae1;

  /* Neutros */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: #505050;
  --color-white-soft: rgba(255, 255, 255, 0.9);
  --color-white-divider: rgba(255, 255, 255, 0.4);

  /* Backgrounds */
  --color-bg-dark: #1e1e1e;
  --color-bg-darker: #151515;

  /* Gradientes */
  --gradient-brand: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    var(--color-primary) 50%,
    var(--color-accent-light) 100%
  );
  --gradient-overlay-banner: linear-gradient(
    90deg,
    rgba(6, 15, 27, 0.75),
    rgba(6, 15, 27, 0.25)
  );

  /* Bordas */
  --radius-pill: 999px;
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-card: 15px;
  --radius-lg: 18px;
  --radius-xl: 30px;
  --radius-xxl: 40px;

  /* Sombras */
  --shadow-soft: 0 16px 30px rgba(15, 23, 42, 0.1);
  --shadow-primary: 0 12px 24px rgba(50, 100, 170, 0.25);
  --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-dark: 0 12px 24px rgba(0, 0, 0, 0.2);

  /* Espaçamentos */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 80px;

  /* Fontes */
  --font-optical-offset: -0.05em;
}

body {
  font-family: "Gramatika", sans-serif;
}

.wow {
  visibility: hidden;
}

h1 {
  font-weight: 500;
  font-size: 40px;
  line-height: 140%;
  vertical-align: middle;

  &h1-banner {
    font-size: 48px;
  }
}

h2 {
  font-weight: 500;
  font-size: 36px;
  line-height: 120%;
  vertical-align: middle;
}

h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 140%;
}

h4 {
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
}

h5 {
  font-weight: 500;
  font-size: 18px;
  line-height: 140%;
}

p {
  font-size: 20px;
  line-height: 160%;
  font-weight: 400;

  &p-small {
    font-size: 16px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  transform: translateY(var(--font-optical-offset));

  &:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
  }
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);

  &:hover {
    transform: translateY(-1px);
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
  }
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);

  &:hover {
    transform: translateY(-1px);
    background: var(--color-white);
    color: var(--color-primary);
  }
}

form {
  .btn-contato {
    background: var(--color-white);
    color: var(--color-primary);
    border: none;
    padding: 8px 32px;
    border-radius: var(--radius-xxl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    width: 260px;

    &:hover {
      transform: translateY(-1px);
      background: var(--color-primary-dark);
      color: var(--color-white);
    }
  }
}

#banner {
  color: var(--color-white);
  overflow: hidden;
  min-height: clamp(520px, 80vh, 900px);

  .banner-media {
    z-index: 0;

    picture,
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      filter: brightness(0.7);
    }
  }

  .banner-content {
    z-index: 2;

    .banner-title {
      margin-bottom: 24px;
    }
  }
}

.breadcrumb {
  justify-content: center;

  .breadcrumb-item {
    &.active {
      color: var(--color-white);
      font-weight: 500;
    }
    a {
      color: var(--color-white);
    }
  }

  .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--color-white);
    font-weight: normal;
  }
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-brand);
  }

  &.menu-open {
    background: rgba(6, 15, 27, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 0 0 20px 20px;
    padding-bottom: 20px;
  }

  .navbar {
    background: transparent;
    align-items: center;

    .navbar-toggler {
      border: none;

      &:focus {
        box-shadow: none;
      }
    }

    .navbar-collapse {
      justify-content: center;

      .btn.btn-primary {
        padding: 12px 24px;
        line-height: 100%;
      }

      .navbar-nav {
        align-items: center;
        gap: 10px;
        white-space: nowrap;

        .nav-link,
        .nav-link:hover,
        .nav-link:focus {
          color: var(--color-white);
        }

        .dropdown-toggle {
          display: flex;
          align-items: center;

          &::after {
            content: "";
            width: 10px;
            height: 10px;
            border-right: 2px solid var(--color-primary);
            border-bottom: 2px solid var(--color-primary);
            transform: rotate(-45deg);
            transition: transform 0.3s ease;
            margin-left: 10px;
            border-left: none;
            border-top: none;
          }
        }

        .dropdown-menu {
          display: none;
          border-radius: 12px;
          padding: 8px 0;
          background: #060f1bd9;
          border: none;

          .dropdown-item {
            font-size: 14px;
            background: transparent;
            color: var(--color-white);
            line-height: 100%;
            padding: 16px;
          }
        }

        .idioma-switch {
          display: flex;
          align-items: center;
          position: relative;
        }

        .gtranslate_wrapper {
          a.glink:not(.gt-current-lang) {
            display: inline-flex;
            text-decoration: none;
            color: inherit;
            position: relative;
            padding: 4px 8px;
            white-space: nowrap;
            line-height: normal;
          }

          a.gt-current-lang {
            display: none;
          }

          .goog-te-gadget,
          .goog-te-combo,
          .skiptranslate,
          #google_translate_element2 {
            display: none !important;
          }
        }
      }

      .dropdown:hover > .dropdown-menu {
        display: block;
      }
      .dropdown:hover > .dropdown-toggle::after {
        transform: rotate(45deg);
      }
    }
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 12px;
  color: var(--color-primary);
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 4px 6px 0 #3264aa40;

  &:hover {
    transform: translateY(-5px);

    img {
      transform: scale(1.05);
    }
  }

  .blog-card-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s;
  }

  .blog-card-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1;
    text-align: center;
    gap: 15px;

    .blog-card-meta {
      display: flex;
      gap: 18px;
      font-size: 1rem;
      font-weight: 500;
      justify-content: space-between;

      span {
        display: flex;
        align-items: center;
        gap: 6px;
      }
    }

    .blog-card-title {
      font-size: 20px;
      font-weight: bold;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;

      a {
        text-decoration: none;
        color: inherit;
      }
    }

    .blog-card-excerpt {
      color: var(--color-text);
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .blog-card-footer {
      margin-top: auto;

      .blog-card-button {
        display: inline-flex;
        padding: 10px 24px;
        border-radius: 30px;
        background: var(--color-primary);
        color: var(--color-white);
        text-decoration: none;
        transition: 0.3s;

        &:hover {
          background: var(--color-primary-dark);
        }
      }
    }
  }
}

.form-group {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;

  label {
    font-size: 20px;
    line-height: 140%;
    font-weight: 400;
    margin-bottom: 6px;
    display: block;
  }

  input,
  select {
    width: 100%;
    height: 50px;
    border-radius: var(--radius-sm);
    border: none;
    padding: 0 45px 0 15px;
    background: var(--color-white);
    font-size: 16px;
    outline: none;
    transition: 0.3s ease;

    &:focus {
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }
  }

  .select-field {
    position: relative;
    display: block;
  }

  .select-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }

  .select-field::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 20px;

    width: 8px;
    height: 8px;

    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);

    transform: translateY(-60%) rotate(45deg);

    pointer-events: none;
  }

  input::placeholder {
    color: rgba(0, 0, 0, 0.5);
  }
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 18px;

  input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--color-white);
    cursor: pointer;
    flex-shrink: 0;
  }

  label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
  }

  .wpcf7-list-item {
    margin: 0;

    .wpcf7-list-item-label {
      padding-top: 3px;
    }
  }
}

.footer {
  color: var(--color-white);

  .footer-top {
    background: var(--color-bg-dark);
  }

  .footer-bottom-area {
    background: var(--color-bg-darker);
  }

  .footer-main {
    row-gap: 32px;
  }

  .footer-divider {
    height: 3px;
    width: 100%;
    background: var(--gradient-brand);
  }

  .footer-brand img {
    width: 180px;
    height: auto;
    margin-bottom: 16px;
  }

  .footer-text {
    font-size: 18px;
    line-height: 160%;
    margin-bottom: 20px;
  }

  .footer-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 150%;
    margin-bottom: 40px;
  }

  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;

    a {
      color: var(--color-white);
      text-decoration: none;
      font-size: 20px;
      font-weight: 400;
      line-height: 150%;

      &:hover {
        color: var(--color-primary);
      }
    }
  }

  .footer-contact {
    p {
      margin: 0 0 12px;
      font-size: 16px;
      line-height: 150%;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-weight: 300;
    }

    span {
      display: inline;
      font-weight: 500;
      margin: 0;
    }

    a {
      color: var(--color-white);
      text-decoration: none;

      &:hover {
        color: var(--color-primary);
      }
    }
  }

  .footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;

    a {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-pill);
      color: var(--color-white);
      border: 2px solid var(--color-white);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition:
        transform 0.2s ease,
        background 0.2s ease;

      &:hover {
        transform: translateY(-2px);
        background: var(--color-primary-dark);
      }
    }

    svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }
  }

  .footer-bottom {
    align-items: center;
  }

  .footer-copy {
    font-size: 14px;
    margin: 0;
    color: var(--color-white);

    a {
      color: var(--color-white);
      text-decoration: underline;
    }
  }

  .footer-alfama {
    display: flex;
    justify-content: flex-end;

    img {
      max-width: 130px;
      height: auto;
    }
  }
}

.floating-social {
  position: fixed;
  top: 120px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.floating-social-item,
.floating-whatsapp {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  transition:
    transform 0.2s ease,
    background 0.2s ease;

  &:hover {
    transform: translateY(-1px);
    background: var(--color-primary-dark);
    color: var(--color-white);
  }
}

.floating-whatsapp {
  width: 65px;
  height: 65px;
}

.floating-social-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1000;
}

@media (width <= 992px) {
  header {
    & .navbar {
      .cabecalho {
        gap: 30px;

        .navbar-collapse {
          .navbar-nav {
            align-items: flex-start;
            width: 100%;
            gap: 15px;

            .nav-item {
              width: 100%;

              .dropdown-toggle {
                width: 100%;
                display: flex;
                padding: 0 20px;
                line-height: 60px;
              }
            }
          }

          .dropdown:hover > .dropdown-menu {
            display: none;
          }

          .dropdown.show > .dropdown-menu {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin: 20px 0;
          }

          .dropdown.show > .dropdown-toggle::after {
            transform: rotate(45deg);
          }

          .dropdown:not(.show) > .dropdown-toggle::after {
            transform: rotate(-45deg);
          }

          .dropdown-menu {
            position: static !important;
            width: 100%;
            background: transparent;
            border: 0;
            padding: 0;
            margin-top: 6px;
            border-radius: 0;

            .dropdown-item {
              padding: 10px 0 10px 20px;
            }
          }
        }
      }
    }
  }

  form {
    .btn-contato {
      width: 100%;
    }

    .form-group {
      margin-bottom: 0;
    }
  }

  .footer {
    .footer-alfama {
      justify-content: flex-start;
      margin-top: 16px;
    }

    .footer-title {
      margin-bottom: 25px !important;
    }
  }
}

@media (width <= 768px) {
  header {
    .navbar {
      .cabecalho {
        gap: 0;
        .navbar-collapse {
          .dropdown.show > .dropdown-menu {
            margin: 0 0 0 10px;
          }
          padding: 0 20px;
          .navbar-nav {
            align-items: flex-start;
            width: 100%;
            padding-top: 30px;
            .nav-item {
              width: 100%;
              .dropdown-toggle {
                width: 100%;
                align-items: center;
                padding: 0;
              }
            }
            .dropdown-menu {
              position: static !important;
              width: 100%;
              border: none;
              border-radius: 0;
              padding: 0;
              margin-top: 5px;
              background: transparent;
              .dropdown-item {
                padding: 10px 0;
                font-size: 16px;
                width: 100%;
              }
            }
          }
        }
      }
    }
  }

  #banner {
    .banner-content {
      padding-top: 86px;
      max-height: 100svh;
    }
  }

  .btn-contato {
    margin-top: 20px;
  }

  .floating-social {
    bottom: 120px;
    top: auto;
    right: 12px;
  }

  .floating-social-item,
  .floating-whatsapp {
    width: 44px;
    height: 44px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 60px;
  }

  .floating-social,
  .floating-whatsapp {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  body.show-floating-buttons .floating-social,
  body.show-floating-buttons .floating-whatsapp {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .footer-bottom {
    gap: 20px;

    .footer-alfama {
      justify-content: flex-start;
    }
  }
}
