/* global.css */

/* 1. VARIÁVEIS E ESTILOS GERAIS */
:root {
    --bg-dark: #1a1a1a;
    --bg-card: #242424;
    --border-color: #333333;

    --primary-color: #fea000;
    --secondary-color: #00ff9b; /* Verde tecnológico */

    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;

    --font-family: 'Poppins', sans-serif;
    --close-aba: #FF6347;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}
html, body{
    height: 100%;
    margin: 0;
}
body.no-scroll {
    overflow: hidden;
}
.no-js-warning {
  background-color: var(--primary-color);
  color: var(--bg-dark);
  text-align: center;
  padding: 0.75rem;
  font-weight: 500;
  z-index: 1001;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
main{
    flex: 1;
    padding-top: 100px; 
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 1001;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}
.skip-link:hover{
    color: #f0f0f0;
}

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* 2. HEADER */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 50px;
}

.nav-list, .dropdown-menu {
    list-style: none;
    padding-left: 0;
}

.menu-toggle {
    display: flex; 
    flex-direction: column;
    justify-content: center; /* MUDANÇA: Centraliza as barras verticalmente */
    gap: 6px; 
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002; 
    padding: 0;
    transition: transform 0.4s ease-in-out;
}

.dropdown-toggle {
  cursor: pointer;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
    transform-origin: center;    /* pivô no centro da barra */
}

.menu-toggle.is-active .hamburger-bar:nth-child(1) {
    /* A distância para mover é a soma do gap (6px) + a altura da barra (3px) = 9px */
    transform: translateY(9px) rotate(45deg);
    background: #FF6347; 
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: #FF6347;
}

/* ANIMAÇÕES UTILITÁRIAS */

@keyframes rotateOut {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
  
.rotate-out {
    animation: rotateOut 0.5s ease-out;
}

@keyframes rotateCounterClockwise {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(-180deg);
    }
}
  
.menu-toggle.is-active{
    animation: rotateCounterClockwise 0.4s ease-in-out forwards;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* 3. FOOTER */
.site-footer {
    margin-top: 1.5rem ;
  position: static;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 0;
  background-color: #111;
  border-top: 1px solid var(--border-color);
  text-align: center;
  z-index: 1000;
}

.footer-certificacoes h3 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.certificacoes-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.certificacoes-grid img {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.certificacoes-grid img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-copyright p {
    font-size: 0.5rem;
    color: var(--text-secondary);
}

/* 4. WHATSAPP FLOAT BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* 5. MEDIA QUERIES (Responsividade) */

/* Mobile: < 1024px */
@media (max-width: 1023px) {
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-card);
        z-index: 1001;
        padding: 6rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.is-active {
        transform: translateX(0);
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-list a {
        font-size: 1.2rem;
    }
    
    .dropdown .dropdown-menu {
        display: none;
        position: static;
        background: transparent;
        border: none;
        padding: 1rem 0 0 1rem;
    }
        .dropdown.is-active .dropdown-menu {
        display: block;
        padding: 1rem 0 0 1rem;
    }

    .dropdown .dropdown-menu a {
        font-size: 1rem;
        color: var(--text-secondary);
    }
}

/* Desktop: >= 1024px */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
    }

    .nav-list {
        display: flex;
        gap: 1.5rem;
    }

    .nav-list a {
        font-weight: 500;
        padding: 0.5rem 0;
        position: relative;
    }

    .nav-list a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background-color: var(--secondary-color);
        bottom: 0;
        left: 0;
        transition: width 0.3s ease;
    }

    .nav-list a:hover::after {
        width: 100%;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 150%;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        padding: 0.5rem;
        border-radius: 8px;
        min-width: 180px;
        opacity: 0;
        transition: opacity 0.2s ease, top 0.2s ease;
    }

    .dropdown.is-active .dropdown-menu {
        display: block;
        opacity: 1;
        top: 100%;
    }
    .dropdown-menu a {
        display: block;
        padding: 0.5rem 1rem;
    }
}
/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;               /* largura da barra vertical */
  height: 12px;              /* altura da barra horizontal */
}

::-webkit-scrollbar-track {
  background: var(--bg-card); /* cor do trilho */
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color); /* cor do “polegar” */
  border-radius: 6px;
  border: 3px solid var(--bg-card);        /* espaçamento interno */
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color);
}

/* Firefox */
* {
  scrollbar-width: thin;                    /* “thin” ou “auto” */
  scrollbar-color: var(--primary-color) var(--bg-card);
}




/* ---------- Carousel infinito de certificações ---------- */
.marquee-wrapper {
  overflow: hidden;
  /* altura exata das imagens + um pouquinho de padding, ajuste se necessário */
  height: 50px;
  margin: 0.5rem 0;
}

.marquee {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  /* duração da volta completa */
  animation: marquee 20s linear infinite;
}

/* quando o mouse pairar, pausa o movimento */
.marquee-wrapper:hover .marquee {
  animation-play-state: paused;
}

.marquee img {
  height: 40px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.marquee img:hover {
  opacity: 1;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    /* move pela largura total original das imagens + gaps */
    transform: translateX(-50%);
  }
}
