@font-face {
  font-family: "Uncage";
  src: url("fonts/Uncage-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Urbanist";
  src: url("fonts/Urbanist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Urbanist";
  src: url("fonts/Urbanist-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
}
.brand-color {
  color: #d90f81;
  font-weight: bold;
}
/* --- Aplicação das Fontes (para classes que não são do Tailwind) --- */
.font-uncage-bold {
  font-family: "Uncage", sans-serif;
}
.font-gilroy-bold {
  font-family: "Gilroy", sans-serif;
}
.font-urbanist-medium {
  font-family: "Urbanist", sans-serif;
  font-weight: 500;
}
.font-urbanist-bold {
  font-family: "Urbanist", sans-serif;
  font-weight: bold;
}

/* --- Reset e Configurações Globais --- */
html {
  scroll-behavior: smooth;
}
body {
  padding-top: 100px; /* Espaço para o header fixo no desktop */
}
.hidden {
  display: none !important;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================= */
/* === HEADER (CABEÇALHO) === */
/* ========================================= */
.main-header {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  background-color: rgba(17, 17, 17, 0.85);
  border-radius: 20px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.header-inner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  height: 40px;
}
@media (min-width: 768px) {
  .header-logo {
    height: 50px;
  }
}

/* --- Navegação Desktop --- */
.desktop-nav {
  display: none;
}
.desktop-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  color: white;
  font-size: 1rem;
}
.nav-link {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
  font-family: "Gilroy", sans-serif;
}
.nav-link:hover,
.nav-link.active {
  color: #d90f81;
}

/* --- Dropdowns Desktop --- */
.nav-item-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}
.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  min-width: 280px;
  padding: 15px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown-menu.show-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  text-decoration: none;
  color: white;
  background-color: #2a2a2a;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.dropdown-item:hover {
  background-color: #3d3d3d;
  transform: translateY(-3px);
}
.dropdown-item img {
  height: 40px;
}
.dropdown-item h4 {
  font-family: "Urbanist", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #d90f81;
  margin-bottom: 3px;
  line-height: 1.2;
}
.dropdown-item p {
  font-size: 0.75rem;
  color: #ccc;
  line-height: 1.2;
}
.dropdown-external-icon {
  margin-left: auto;
  font-size: 0.8em;
  color: #d90f81;
  opacity: 0.7;
}

/* --- Navegação Mobile --- */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
}
.mobile-menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.mobile-nav-menu {
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.5s ease-out, padding-top 0.5s ease-out,
    padding-bottom 0.5s ease-out;
  background-color: rgba(17, 17, 17, 0.98);
  border-radius: 0 0 20px 20px;
  margin-top: 0.5rem;
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 1.5rem; /* Adicionado para evitar pulo de conteúdo */
}
.mobile-nav-menu.open {
  max-height: 80vh;
  padding: 1rem 1.5rem;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: white;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Gilroy", sans-serif;
}
.mobile-nav-link:last-of-type {
  border-bottom: none;
}
.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.mobile-nav-item-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}
.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-top: 5px;
}
.mobile-dropdown-menu.open-mobile {
  max-height: 400px;
  padding: 10px 0;
}
.mobile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  text-decoration: none;
  color: white;
}
.mobile-dropdown-item img {
  height: 30px;
}
.mobile-dropdown-item span {
  font-size: 0.95rem;
  font-weight: 500;
}
/* ======================================================= */
/* === ANIMAÇÕES (INCLUINDO AS CORREÇÕES) === */
/* ======================================================= */

/* Animação de rotação 360 contínua para a imagem "rbrand 1.png" */
.animate-float-rotate {
  animation: spin-360 15s linear infinite;
}
@keyframes spin-360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animação para o texto "Quem cria com propósito..." */
.fade-line,
.fade-arrow {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-line.visible,
.fade-arrow.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animação da barra da seta */
.arrow-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.arrow-fill {
  height: 100%;
  background-color: white;
  width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: fill-arrow-bar 1.2s forwards;
  animation-play-state: paused;
}
@keyframes fill-arrow-bar {
  to {
    width: 100%;
  }
}
.arrow-head {
  width: 20px;
  height: 20px;
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
}

/* Animação para o texto "Quem cria com propósito..." */
.fade-line,
.fade-arrow {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-line.visible,
.fade-arrow.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animação da barra da seta */
.arrow-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.arrow-fill {
  height: 100%;
  background-color: white;
  width: 0; /* Começa com largura 0 */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: fill-arrow-bar 1.2s forwards;
  animation-play-state: paused; /* JS inicia a animação */
}
@keyframes fill-arrow-bar {
  to {
    width: 100%;
  }
}
.arrow-head {
  width: 20px;
  height: 20px;
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========================================= */
/* === FOOTER PADRONIZADO === */
/* ========================================= */

.main-footer {
  position: relative;
  background-color: #111111;
  padding: 3rem 1rem;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  overflow: hidden;
  color: white;
}
.footer-container {
  max-width: 1120px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
  text-align: center;
}
.footer-logo {
  height: 50px;
}
.footer-heading {
  font-family: "Gilroy", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.footer-text {
  font-family: "Urbanist", sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.footer-text p {
  margin-bottom: 0.5rem;
}
.footer-link-contact {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
.footer-link-contact:hover {
  color: #d90f81;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.sobre-carousel {
  aspect-ratio: 1 / 1;
  width: 100%;
}
.sobre-carousel .swiper-slide {
  background-color: #ffffff;
}

.sobre-carousel .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.social-link {
  transition: transform 0.3s ease;
  display: inline-block;
}
.social-link:hover {
  transform: scale(1.1);
}
.footer-divider {
  border-top: 1px solid #4b5563;
  padding-top: 1.5rem;
}
.footer-copyright {
  font-size: 0.875rem;
  text-align: center;
}
.footer-copyright a {
  text-decoration: none;
}
.link-qmax-marketing {
  color: #ffffff; /* ← MUDANÇA: Define a cor inicial como branco explicitamente */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* A regra do hover continua a mesma e está correta */
.link-qmax-marketing:hover {
  color: #ff0000;
  text-decoration: underline;
}

/* ========================================= */
/* === MEDIA QUERIES (RESPONSIVIDADE) === */
/* ========================================= */

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  .desktop-nav-links {
    font-size: 1.05rem;
  }
  .main-footer {
    padding: 4rem 2rem;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1.5fr 1fr;
    text-align: left;
  }
  .footer-logo-wrapper {
    justify-content: flex-start;
  }
  .footer-social-media {
    text-align: right;
  }
  .social-icons {
    justify-content: flex-end;
  }
  .footer-logo {
    height: 60px;
  }
  .footer-copyright {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu-toggle,
  .mobile-nav-menu {
    display: none;
  }
}

@media (min-width: 1024px) {
  .desktop-nav-links {
    gap: 2.5rem;
  }
}
