/* ==========================================================================
   1. RESET BÁSICO E DEFINIÇÕES GERAIS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fcfcfd;
  color: #1e293b;
}

/* ==========================================================================
   2. CABEÇALHO E NAVEGAÇÃO (HEADER & NAV)
   ========================================================================== */
.adv-header {
  background-color: #0f172a; /* Azul escuro corporativo profundo */
  padding: 15px 8%;
  border-bottom: 2px solid #b45309; /* Linha de acento dourada/âmbar */
  position: relative; /* Crucial para posicionar a cortina do menu drop-down */
  z-index: 1000;
}

/* Contentor flexível para separar o logo do menu */
.adv-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.adv-logo {
  color: #f8fafc;
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none; /* Remove sublinhado padrão de link */
}

.adv-logo i {
  color: #fbbf24; /* Ícone dourado */
  font-size: 18pt;
}

/* Lista de links para desktop */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links li a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 25px;
  font-size: 10.5pt;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Botão de Destaque no Header */
.adv-btn-header {
  border: 1px solid #fbbf24;
  padding: 8px 16px;
  border-radius: 4px;
  color: #fbbf24 !important;
}

.adv-btn-header:hover {
  background-color: #fbbf24;
  color: #0f172a !important;
}

/* ==========================================================================
   3. BANNER PRINCIPAL (HERO SECTION)
   ========================================================================== */
.adv-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-image: url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 8%;
}

/* Camada escura por cima da imagem para dar contraste */
.adv-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  z-index: 1;
}

.adv-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #ffffff;
}

.adv-hero-content span {
  color: #fbbf24;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
}

.adv-hero-content h1 {
  font-size: 28pt;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #f8fafc;
}

.adv-hero-content p {
  font-size: 12pt;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Botões do Banner */
.adv-hero-buttons {
  display: flex;
  gap: 15px;
}

.adv-btn-primary,
.adv-btn-secondary {
  text-decoration: none;
  padding: 12px 28px;
  font-size: 11pt;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
}

.adv-btn-primary {
  background-color: #b45309;
  color: white;
}

.adv-btn-primary:hover {
  background-color: #d97706;
}

.adv-btn-secondary {
  border: 2px solid #ffffff;
  color: white;
}

.adv-btn-secondary:hover {
  background-color: #ffffff;
  color: #0f172a;
}

/* ==========================================================================
   4. SECÇÃO DE ÁREAS DE ATUAÇÃO (SERVIÇOS)
   ========================================================================== */
.adv-services {
  padding: 80px 8%;
  text-align: center;
  background-color: #f8fafc;
}

.adv-services h2 {
  font-size: 20pt;
  color: #0f172a;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.adv-services h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #b45309;
}

.adv-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.adv-service-card {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  border-top: 4px solid #0f172a;
  transition: transform 0.3s;
}

.adv-service-card:hover {
  transform: translateY(-5px);
  border-top-color: #b45309;
}

.adv-service-card i {
  font-size: 28pt;
  color: #b45309;
  margin-bottom: 20px;
}

.adv-service-card h3 {
  font-size: 13pt;
  color: #0f172a;
  margin-bottom: 15px;
}

.adv-service-card p {
  font-size: 10pt;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   5. RODAPÉ (FOOTER)
   ========================================================================== */
.adv-footer {
  background-color: #0f172a;
  color: #64748b;
  text-align: center;
  padding: 30px;
  font-size: 9.5pt;
  border-top: 1px solid #1e293b;
}

/* ==========================================================================
   6. ESTRUTURA E ANIMAÇÃO DO BOTÃO HAMBÚRGUER
   ========================================================================== */
.menu-hamburger {
  display: none; /* Ocultado por padrão no ambiente Desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-hamburger span {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Efeito de transição suave transformando os 3 traços em "X" */
.menu-hamburger.toggle span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-hamburger.toggle span:nth-child(2) {
  opacity: 0;
}
.menu-hamburger.toggle span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ==========================================================================
   7. RESPONSIVIDADE COMPLETA (MÉDIOS E PEQUENOS ECRÃS - ATÉ 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Ativa os 3 tracinhos */
  .menu-hamburger {
    display: flex !important;
  }

  /* Transforma a lista de links numa cortina dropdown limpa */
  .nav-links {
    display: none !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #0f172a !important;
    padding: 30px 0 !important;
    gap: 20px !important;
    border-bottom: 2px solid #b45309 !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
  }

  /* Reseta alinhamentos de ecrã grande */
  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    margin-left: 0 !important;
    display: inline-block;
    font-size: 12pt !important;
  }

  /* Exibe a cortina se possuir a classe dinâmica .active via JS */
  .nav-links.active {
    display: flex !important;
  }

  /* Ajustes adaptativos para a Secção Hero */
  .adv-hero-content h1 {
    font-size: 20pt !important;
  }

  .adv-hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Converte a grelha de 3 colunas de serviços para 1 coluna vertical */
  .adv-services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}
