/* =====================================================
   HEADER & FOOTER - COMPONENTES GLOBAIS
   Estilos específicos para cabeçalho e rodapé
   ===================================================== */

/* =====================================================
   TOP BAR (Nível 1 - Fino no topo)
   ===================================================== */
.top-bar {
  background: linear-gradient(90deg, var(--color-primary) 0%, #2C2C2C 100%);
  color: var(--color-white);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(196, 154, 108, 0.2);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.top-bar-item svg,
.top-bar-item i {
  color: var(--color-secondary);
  font-size: 1rem;
}

.top-bar-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.top-bar-actions a {
  color: var(--color-white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
}

.top-bar-actions a:hover {
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.1);
}

.top-bar-actions .client-area {
  background: rgba(196, 154, 108, 0.2);
  padding: 0.375rem 1rem;
  border-radius: 1.5rem;
  font-weight: 600;
}

.top-bar-actions .client-area:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* =====================================================
   MAIN HEADER (Nível 2 - Navegação Principal)
   ===================================================== */
.main-header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.header-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.header-logo img {
  height: 70px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-logo img:hover {
  transform: scale(1.05);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu-list li {
  position: relative;
}

.nav-menu-list a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-primary);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-menu-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav-menu-list a:hover {
  color: var(--color-secondary);
}

.nav-menu-list a:hover::after,
.nav-menu-list a.active::after {
  width: 100%;
}

.nav-menu-list .highlight-link a {
  color: var(--color-accent);
  font-weight: 600;
}

.header-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hamburger Menu (Mobile) */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* =====================================================
   FOOTER MODERNO
   ===================================================== */
.modern-footer {
  background: linear-gradient(180deg, #1A1A1A 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 4rem 0 1.5rem;
  position: relative;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-secondary) 50%, transparent 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(196, 154, 108, 0.3);
}

.footer-section h4 {
  color: var(--color-secondary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: all 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-contact-item svg,
.footer-contact-item i {
  color: var(--color-secondary);
  font-size: 1.125rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--color-secondary);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* =====================================================
   RESPONSIVIDADE DO HEADER/FOOTER
   ===================================================== */
@media (max-width: 991px) {
  .hamburger-menu {
    display: flex;
  }
  
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1000;
  }
  
  .header-nav.active {
    right: 0;
  }
  
  .nav-menu-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .nav-menu-list li {
    width: 100%;
    border-bottom: 1px solid var(--color-light-gray);
  }
  
  .nav-menu-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
  }
  
  .header-cta {
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
  }
  
  .header-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-social-links {
    justify-content: center;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .main-header-content {
    padding: 0.75rem 0;
  }
  
  .header-logo img {
    height: 50px;
  }
}

