/* * Other reset styles */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  padding-top: 10rem;
}

a {
  box-sizing: border-box;
}

p {
  font-size: 1.6rem;
  line-height: 1.4;
  color: #333;

  &.text-md {
    font-size: 1.8rem;
  }

  &.text-lg {
    font-size: 2.0rem;
  }
}

h1 {
  font-size: 4.8rem;
  line-height: 1.2;
  font-weight: 600;

  @media (max-width: 768px) {
    font-size: 3.6rem;
  }

  @media (max-width: 425px) {
    font-size: 2.8rem;
  }
}

h2 {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 600;

  @media (max-width: 768px) {
    font-size: 3.2rem;
  }

  @media (max-width: 425px) {
    font-size: 2.4rem;
  }
}

/* * Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 300ms ease, box-shadow 300ms ease;
  transform: translateY(0);
  z-index: 999;

  &.is-hidden {
    transform: translateY(-100%);
    box-shadow: none;
  }

  &.is-visible {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .navbar__container {
    display: flex;
    gap: 4rem;
    align-items: center;
    min-height: 10rem;
  }

  .navbar__brand {
    width: 100%;
    max-width: 16rem;
  }

  .navbar__brand svg {
    width: 100%;
    height: auto;
  }

  .navbar__nav {
    margin-right: auto;
  }

  .navbar__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .navbar__link {
    display: flex;
    padding: 4rem 1.6rem;
    min-height: calc(10rem - 1px);
    text-decoration: none;
    color: var(--color-primary, #00335E);
    font-weight: 600;
    border-bottom: 4px solid transparent;
    transition: border-color 0.3s ease;
  }

  .navbar__link:hover {
    border-color: #00335E;
  }

  .navbar__link.is-active {
    border-color: #00B1FB;
    color: #00335E;
  }

  .navbar__button {
    padding: 1.6rem 4rem;
    border-radius: 10rem;
  }

  /* Mobile menu button */
  .navbar__mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    margin-left: auto;
  }

  .navbar__hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 2.4rem;
    height: 1.8rem;
  }

  .navbar__hamburger-line {
    width: 100%;
    height: 0.3rem;
    background-color: var(--color-primary);
    border-radius: 0.2rem;
    transition: all 0.3s ease;
  }

  /* Mobile menu overlay */
  .navbar__mobile-overlay {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgb(0 0 0 / .8);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .navbar__mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }

  .navbar__mobile-content {
    position: absolute;
    right: 0;
    width: 100%;
    max-width: 40rem;
    background: #fff;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
  }

  .navbar__mobile-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #ddd;
  }

  .navbar__mobile-brand {
    max-width: 14rem;
  }

  .navbar__mobile-brand svg {
    width: 100%;
    height: auto;
  }

  .navbar__mobile-close {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar__mobile-close svg {
    width: 3.2rem;
    height: 3.2rem;
    fill: currentColor;
  }

  .navbar__mobile-nav {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .navbar__mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .navbar__mobile-item {
    margin-bottom: 3rem;
  }

  .navbar__mobile-item:last-child {
    margin-bottom: 0;
  }

  .navbar__mobile-link {
    display: block;
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--color-primary, #00335E);
    text-decoration: none;
    padding: 1.5rem 0;
    border-bottom: 3px solid transparent;
    width: fit-content;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
  }

  .navbar__mobile-link:hover,
  .navbar__mobile-link.is-active {
    border-bottom-color: var(--brand-color, #00B1FB);
    color: var(--color-primary, #00335E);
  }

  .navbar__mobile-actions {
    flex-shrink: 0;
    padding: 2rem;
    border-top: 1px solid #ddd;
    text-align: center;
  }

  .navbar__mobile-button {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
    text-align: center;
    border-radius: 10rem;
  }

  @media (max-width: 1024px) {

    .navbar__nav,
    .navbar__actions {
      display: none;
    }

    .navbar__mobile-toggle {
      display: block;
    }
  }
}

/* * Call to Action Section */
.call-to-action {
  padding: 8rem 0;
  background: linear-gradient(304.6deg, #00398A 21.2%, #00297B 59.37%);
  border-bottom: 1px solid #03457c;

  .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
  }

  .call-to-action__description,
  .call-to-action__title {
    color: #fff;
    text-align: center;
  }

  .call-to-action__title {
    margin-bottom: 2rem;
  }

  .call-to-action__description {
    margin-bottom: 4rem;
  }
}

/* * Site Footer */
.site-footer {

  /* Seção Principal */
  .site-footer__main {
    background: #00335E;
    padding: 8rem 0;
    color: #fff;

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      gap: 4rem;
      align-items: flex-start;

      @media (max-width: 1024px) {
        grid-template-columns: 1fr 1fr;
        gap: 8rem 3rem;
      }

      @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
      }
    }
  }

  /* Logo e Redes Sociais */
  .site-footer__brand {
    .site-footer__logo svg {
      width: 100%;
      max-width: 16rem;
      height: auto;
      margin-bottom: 2.4rem;
    }
  }

  .site-footer__social {
    display: flex;
    gap: 1.6rem;

    @media (max-width: 768px) {
      justify-content: center;
    }
  }

  .site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-0.2rem);
    }

    svg {
      width: 2.4rem;
      height: 2.4rem;
    }
  }

  /* Links das Páginas e Soluções */
  .site-footer__links-title,
  .site-footer__contact-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.2;
  }

  .site-footer__links-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-footer__links-list li {
    margin-bottom: 1.2rem;
  }

  .site-footer__links-list li:last-child {
    margin-bottom: 0;
  }

  .site-footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.6rem;
    line-height: 1.4;
    transition: color 0.3s ease;

    &:hover {
      color: #fff;
    }
  }

  /* Informações de Contato */
  .site-footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
  }

  .site-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;

    @media (max-width: 768px) {
      justify-content: center;
    }

    svg {
      width: 2rem;
      height: 2rem;
      color: rgba(255, 255, 255, 0.6);
      flex-shrink: 0;
    }
  }

  .site-footer__contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.6rem;
    line-height: 1.4;
    transition: color 0.3s ease;

    &:hover {
      color: #fff;
    }
  }

  .site-footer__contact-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    line-height: 1.4;
  }

  /* Seção Copyright */
  .site-footer__copyright {
    /* background black gradient */
    background: linear-gradient(90deg, #000000 0%, #0D1A26 100%);

    padding: 2.4rem 0;
    color: rgba(255, 255, 255, 0.7);
  }

  .site-footer__copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;

    @media (max-width: 768px) {
      flex-direction: column;
      text-align: center;
      gap: 2rem;
    }
  }

  .site-footer__copyright-text {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;

    @media (max-width: 768px) {
      align-items: center;
    }

    p {
      font-size: 1.4rem;
      color: rgba(255, 255, 255, 0.7);
      margin: 0;
    }
  }

  .site-footer__legal-links {
    display: flex;
    gap: 2rem;

    @media (max-width: 480px) {
      flex-direction: column;
      gap: 0.8rem;
    }
  }

  .site-footer__legal-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;

    &:hover {
      color: var(--brand-color, rgba(255, 255, 255, 0.8));
    }
  }

  /* Logo da Agência */
  .site-footer__agency {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .site-footer__agency-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
  }

  .site-footer__agency-logo {
    display: flex;
    align-items: center;
  }

  .site-footer__agency-logo svg {
    width: 12rem;
    height: auto;
  }

  .site-footer__agency-link {
    transition: all 300ms ease;
  }

  .site-footer__agency-link:hover {
    filter: drop-shadow(0 0 2rem #FB5F1A);
  }

  .site-footer__agency-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    position: relative;

    &::before {
      content: '';
      position: absolute;
      bottom: -0.2rem;
      left: 0;
      width: 100%;
      height: 0.2rem;
      background: linear-gradient(90deg, #00B1FB, #0073E6);
      border-radius: 0.1rem;
    }
  }
}

/* * Scroll Offset for Anchor Navigation */
.servicos__item[id] {
  scroll-margin-top: 12rem;
  /* Offset para compensar header fixo */

  @media (max-width: 768px) {
    scroll-margin-top: 10rem;
  }
}