/*
====================================
global.css: ESTILOS GLOBAIS E CABEÇALHO PADRÃO
Atualização: Cabeçalho reestruturado para linha única (compacto).
* [HISTÓRICO DESTA VERSÃO]:
* - [SUGESTÃO 6 MODIFICADA]: O "Client Login" agora é um link
* com borda branca circular (desktop) e um link normal (mobile).
====================================
*/

/* --- Carregamento da fonte local "Great Vibes" --- */
@font-face {
  font-family: 'Great Vibes';
  src: url('Great_Vibes/GreatVibes-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* --- 1. ESTILOS BASE E CORPO (BODY) --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* --- 2. ESTILOS GERAIS DO CABEÇALHO (HEADER) --- */
header {
  width: 100%;
  box-sizing: border-box;
  background-color: #333; /* Fundo escuro padrão (para mobile) */
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  padding: 5px 20px; 
  position: relative; /* Padrão mobile: em fluxo */
  z-index: 100; 
  transition: background-color 0.3s ease; /* Transição suave */
}

/* NOVO Container principal do header */
.header-container {
  display: flex;
  flex-direction: row; /* Tudo em linha */
  justify-content: space-between; /* Espaça os blocos */
  align-items: center; /* Alinha verticalmente */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative; /* Âncora para o menu desktop */
}

/* Wrapper que agrupa Logo e Slogan */
.header-brand-wrapper {
    display: flex;
    flex-direction: column; /* Logo e slogan empilhados */
    align-items: flex-start; 
}

/* Logo (Alinhada à esquerda dentro do wrapper) */
.header-logo {
  display: block; 
  height: 70px; /* Logo levemente reduzida */
  width: auto; 
  margin: 0; 
  padding: 0 !important; 
  object-fit: contain;
  flex-shrink: 0;
}

.header-info {
    margin: 0; 
    padding: 0 !important; 
    padding-left: 7px !important; 
    text-align: left; 
    width: auto;
}

/* Slogan (Abaixo do logo) */
.header-info .slogan {
  display: block; 
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.8rem; /* Fonte do slogan reduzida */
  color: #FFFFFF; 
  margin: 0 !important; 
  padding: 0 !important; 
  white-space: normal;
  line-height: 1.2; 
  text-align: left; 
}

/* Slogan Mobile (Escondido por padrão) */
.slogan-mobile {
  display: none;
}

/* OCULTAR 'since 2018' permanentemente */
.greatvibes-since-2018 {
  display: none !important;
}

/* Seletor de Idioma (Desktop) */
.desktop-lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px; /* Adiciona espaço entre menu e idiomas */
}

.desktop-lang-switcher img {
  width: 30px;
  height: 20px;
  cursor: pointer;
  border: 1px solid white;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.desktop-lang-switcher img:hover {
    opacity: 1;
    transform: scale(1.1);
}
.desktop-lang-switcher img.active {
  opacity: 1;
  border: 2px solid #eb7516;
  box-shadow: 0 0 5px rgba(235, 117, 22, 0.8);
}


/* Links de Navegação (Menu) */
.main-nav-links {
  padding: 0;
  /* [SUGESTÃO 6]: Adicionado flex-grow para que o margin-left:auto funcione */
  flex-grow: 1;
}

.main-nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center; 
}

/* Remove o estilo de 'li' do wrapper do idioma */
.language-switcher-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}
.language-switcher-wrapper::after {
  display: none !important; /* Remove a linha laranja debaixo das bandeiras */
}

.main-nav-links li a {
  font-family: 'Montserrat', sans-serif !important;
  display: block;
  padding: 8px 10px !important;
  text-decoration: none;
  color: white;
  font-weight: 400; /* Fonte normal (não bold) */
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4); 
}

.main-nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #eb7516, #d46a14);
    transition: width 0.3s ease-out;
    border-radius: 2px;
}

.main-nav-links li a:hover {
    color: #eb7516;
}

.main-nav-links li a:hover::after,
.main-nav-links li a.active::after {
    width: 100%;
}

.main-nav-links li a.active {
    color: #eb7516;
}

/* Estilos do Botão Hambúrguer */
.hamburger-btn {
  display: none; /* Escondido no desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Fica acima do menu */
}

.hamburger-btn .hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação do "X" do Hambúrguer */
.hamburger-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Esconde o seletor de idioma móvel no desktop */
.mobile-lang-switcher {
  display: none;
}


/* --- 3. ESTILOS DO RODAPÉ PADRÃO (ESCURO) --- */
footer {
  background: #333;
  color: #AAA;
  text-align: center;
  padding: 30px 20px;
  margin-top: 0;
  font-size: 0.9rem;
  border-top: 1px solid #444;
}
footer a {
  color: #eb7516;
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: #fca95e;
  text-decoration: underline;
}
.payment-icons {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.payment-icons img {
  height: 25px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.payment-icons img:hover {
  opacity: 1;
}
.footer-links {
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer p {
    margin: 8px 0;
    color: #BBB;
}
footer p .fa-envelope {
    color: #eb7516 !important;
}
.developer-signature {
  font-size: 0.8rem;
  color: #777;
  margin-top: 15px;
  margin-bottom: 0;
}

/* --- 4. ESTILOS GLOBAIS E ANIMAÇÕES --- */
@keyframes fadeIn { 0%{opacity:0; transform:translateY(20px);} 100%{opacity:1; transform:translateY(0);} }
@keyframes fadeInLeft { 0%{opacity:0; transform:translateX(-30px);} 100%{opacity:il; transform:translateX(0);} }
@keyframes fadeInRight { 0%{opacity:0; transform:translateX(30px);} 100%{opacity:1; transform:translateX(0);} }

@keyframes fadeInSeal {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 0.8; transform: translateY(0); }
}


/* =====================================================
--- 5. RESPONSIVIDADE GLOBAL (SEÇÃO MOBILE ALTERADA) ---
=====================================================
*/

@media (max-width: 768px) {

  /* Cabeçalho Responsivo */
  header { 
    padding: 5px 15px; /* Padding reduzido */
    background-color: #333; /* Fundo escuro padrão no mobile */
  }
  
  /* --- Regra do Cabeçalho Flutuante SÓ PARA A HOME PAGE (index.html) NO MOBILE --- */
  body:not(.no-float-header) header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    box-shadow: none;
  }
  
  .header-container {
      flex-direction: row; 
      justify-content: space-between; 
      align-items: center;
      width: 100%;
      gap: 10px; 
  }

  .header-brand-wrapper {
      align-items: center;
      flex-shrink: 0; 
      padding-top: 0;
  }

  .header-logo {
      height: 60px;
      margin: 0 !important; 
  }

  .header-info {
      display: none; /* Slogan escondido no mobile */
  }

  .desktop-lang-switcher {
    display: none;
  }
  
  .mobile-lang-switcher {
    display: block; 
    width: 100%;
  }
  .mobile-lang-switcher .language-switcher {
    display: flex;
    margin: 0; 
    justify-content: center;
    width: 100%;
    order: 0; 
    padding-top: 15px;
    border-top: 1px solid #555;
    margin-top: 15px;
  }
  .mobile-lang-switcher .language-switcher img {
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid white !important;
    margin: 0 5px;
  }
  .mobile-lang-switcher .language-switcher img.active {
    border: 3px solid #eb7516 !important;
    box-shadow: 0 0 5px rgba(235, 117, 22, 0.8) !important;
  }


  /* Navegação Responsiva (Menu Hambúrguer) */
  .main-nav-links { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #333; /* Fundo escuro do menu aberto */
    box-shadow: 0 5px 10px rgba(0,0,0,0.4);
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
  }
  
  .main-nav-links.is-open {
    display: block;
  }
  
  .main-nav-links ul { 
    flex-direction: column;
    align-items: center;
    gap: 15px; 
  }
  
  .main-nav-links li a { 
    font-size: 1.1rem;
    font-weight: 400; /* Fonte normal (não bold) */
    padding: 10px 0 !important;
    text-shadow: none;
  }

  .hamburger-btn {
    display: block;
    flex-shrink: 0;
  }

   .footer-links { gap: 10px; }
   .payment-icons { gap: 8px; }
}
/*
=====================================================
--- FIM DA SEÇÃO DE RESPONSIVIDADE ---
=====================================================
*/


@media (max-width: 480px) {
    .header-logo {
        height: 55px;
    }
    
    .mobile-lang-switcher .language-switcher img {
        width: 28px;
        height: 28px;
    }
     .main-nav-links li a { 
       font-size: 1rem;
     }
}

/* --- 6. ESTILO DO BOTÃO SCROLL-TO-TOP --- */
#scrollToTopBtn {
  opacity: 0; 
  visibility: hidden; 
  transform: translateY(15px); 
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background-color: #eb7516; 
  color: white;
  border: none;
  border-radius: 50%; 
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  text-align: center;
  line-height: 50px; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s;
  text-decoration: none;
}
#scrollToTopBtn:hover {
  background-color: #d46a14; 
}
#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); 
}

/* --- 7. AJUSTE DESKTOP: LAYOUT FLUTUANTE --- */

@media (min-width: 769px) {
  
  /* --- Regra do Cabeçalho Flutuante SÓ PARA A HOME PAGE (index.html) NO DESKTOP --- */
  body:not(.no-float-header) header {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%); 
    box-shadow: none; /* Remove a sombra padrão */
  }
  /* As páginas com 'no-float-header' (login, portal, etc.) usarão o 'header' padrão (fundo #333) */

  .header-brand-wrapper {
    flex-direction: row;  
    align-items: center; 
  }

  .header-info {
    margin-left: 8px; 
  }
  
  .main-nav-links {
    flex-grow: 1; 
    padding: 0 20px;
  }

  .slogan-mobile {
    display: none;
  }
  
}

/* =====================================================
--- MUDANÇA APLICADA AQUI ---
=====================================================
*/

/* --- ESTILOS DO CLIENT LOGIN (Com Borda Branca) --- */

/* Move o item "Client Login" para a direita, separando-o */
.main-nav-links li.client-login-item {
  margin-left: auto; /* Empurra este item para a direita do menu */
}

/* Estilo do link 'Client Login' */
.main-nav-links li.client-login-item a {
  /* Borda e formato */
  border: 1px solid #FFFFFF;
  border-radius: 30px; /* "Circula" o link */
  
  /* Espaçamento interno (usando !important para sobrescrever o padding padrão) */
  padding: 6px 12px !important; 
  
  /* Alinhamento do ícone e texto */
  display: flex;
  align-items: center;
  gap: 8px;

  /* Transição */
  transition: all 0.3s ease;
}

/* Remove o sublinhado laranja (que vem dos outros links) */
.main-nav-links li.client-login-item a::after {
  display: none;
}

/* Efeito de hover (quando passa o mouse) */
.main-nav-links li.client-login-item a:hover {
  background-color: #eb7516; /* Fundo laranja */
  border-color: #eb7516;     /* Borda laranja */
  color: #FFFFFF;            /* Texto branco */
}

/* Garante que o estado "active" não mude a cor do texto para laranja */
.main-nav-links li.client-login-item a.active {
    color: #FFFFFF;
}
/* E mantém o hover no estado "active" */
.main-nav-links li.client-login-item a.active:hover {
    color: #FFFFFF;
}


/* * Ajuste para o menu mobile (hambúrguer) 
 * 👇 MUDANÇAS APLICADAS AQUI 👇
*/
@media (max-width: 768px) {
  /* No mobile, reseta o margin-left para que ele se alinhe */
  .main-nav-links li.client-login-item {
    margin-left: 0; 
    width: 100%; /* Ocupa a largura total no menu mobile */
  }
  
  .main-nav-links li.client-login-item a {
     justify-content: center; /* Centraliza o ícone e texto */
     width: auto; /* O link NÃO ocupa a largura total, apenas o LI */

     /* Resetando o estilo do botão para um link normal */
     border: none; /* Remove a borda */
     border-radius: 0; /* Remove o formato circular */
     padding: 10px 0 !important; /* Retorna ao padding padrão do menu mobile (igual aos outros 'li a') */
     background-color: transparent; /* Garante que não haja fundo */
  }

  /* Hover do mobile (para ser igual aos outros links) */
  .main-nav-links li.client-login-item a:hover {
     background-color: transparent; /* Sem fundo laranja */
     border-color: transparent; /* Sem borda laranja */
     color: #eb7516; /* Apenas o texto fica laranja, como os outros links */
  }

  /* Garante que o estado "active" no mobile se comporte como os outros links */
  .main-nav-links li.client-login-item a.active {
      color: #eb7516;
  }
  .main-nav-links li.client-login-item a.active:hover {
      color: #eb7516;
  }
}
/* --- Fim da Modificação --- */