/* ==========================================================================
   TOKENS / THEME - ATUALIZADO COM CORES MELHORES
   ========================================================================== */
:root{
  /* Cores - Mais vibrantes e profissionais */
  --brand:#2563eb; --brand-strong:#1d4ed8; --accent:#f59e0b;
  --bg:#0f172a; --surface:#1e293b; --surface-2:#334155; --line:#475569;
  --fg:#f1f5f9; --muted:#cbd5e1;
  --ok:#10b981; --warn:#f59e0b; --danger:#ef4444;

  /* Tipografia */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --fs-base:16px; --lh:1.6;

  /* Layout */
  --radius:12px;
  --shadow-sm:0 2px 8px rgba(0,0,0,.1);
  --shadow-md:0 8px 25px rgba(0,0,0,.15);
  --shadow-lg:0 16px 40px rgba(0,0,0,.2);

  --container-w:1200px;
  --container-px: 20px;

  /* Alturas do header */
  --header-h:70px;
  --header-scrolled-h:60px;

  /* Transições */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width:768px){
  :root{ --container-px: 24px; }
}
@media (min-width:1280px){
  :root{ --container-px: 32px; }
}

/* ==========================================================================
   RESET E BASE
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; overflow-x:hidden; }
html{ font-size:var(--fs-base); }
body{
  margin:0; font-family:var(--font); line-height:var(--lh);
  background:var(--bg); color:var(--fg);
  -webkit-font-smoothing:antialiased;
  padding-top: var(--header-h) !important;
}

/* ==========================================================================
   HEADER PRINCIPAL - CORRIGIDO
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}

.site-header.scrolled{
  height: var(--header-scrolled-h);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.site-header .container{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 100%;
}

.hdr-grid{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 100%;
}

/* Logo - Mais espaço e destaque */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #000;
  text-decoration: none;
  font-size: 1.25rem;
  min-width: auto;
  padding: 8px 0;
}

.brand img{
  height: 40px;
  width: auto;
  transition: var(--transition-smooth);
}

.site-header.scrolled .brand img{
  height: 35px;
}

/* Navegação Desktop */
.nav-center{
  display: none;
}

@media (min-width: 1024px){
  .nav-center{
    display: flex;
    justify-content: center;
    gap: 32px;
  }
}

.nav-link{
  position: relative;
  color: #000;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 4px;
  text-decoration: none;
  transition: var(--transition-smooth);
  opacity: 0.9;
}

.nav-link:hover{
  opacity: 1;
  color: var(--brand);
}

.nav-link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after{
  transform: scaleX(1);
}

/* Lado Direito */
.hdr-right{
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

/* Botão CTA */
.btn.cta-primary{
  background: var(--brand);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn.cta-primary:hover{
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Menu Mobile - COMPLETAMENTE REPROJETADO */
.mobile-menu-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1001;
}

@media (min-width: 1024px){
  .mobile-menu-btn{
    display: none;
  }
}

.mobile-menu-btn:hover{
  background: rgba(0,0,0,0.05);
  border-color: var(--brand);
}

.mobile-menu-btn span{
  display: block;
  height: 2px;
  background: #000;
  border-radius: 1px;
  transition: var(--transition-smooth);
  transform-origin: center;
}

.mobile-menu-btn span:nth-child(1){
  width: 20px;
  margin-bottom: 6px;
}

.mobile-menu-btn span:nth-child(2){
  width: 24px;
  margin-bottom: 6px;
}

.mobile-menu-btn span:nth-child(3){
  width: 16px;
}

.mobile-menu-btn.active{
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--brand);
}

.mobile-menu-btn.active span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
  width: 20px;
}

.mobile-menu-btn.active span:nth-child(2){
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
  width: 20px;
}

/* ==========================================================================
   MENU MOBILE - NOVO DESIGN
   ========================================================================== */
.mobile-menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active{
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-panel{
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(90%, 400px);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu-panel.active{
  transform: translateX(0);
}

/* Header do Menu Mobile */
.mobile-menu-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.mobile-menu-title{
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.mobile-menu-close{
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: #fff;
  font-size: 1.25rem;
}

.mobile-menu-close:hover{
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* Conteúdo do Menu */
.mobile-menu-content{
  flex: 1;
  padding: 24px 0;
  overflow-y: auto;
}

.mobile-nav{
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  gap: 4px;
}

.mobile-nav-item{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  font-weight: 500;
}

.mobile-nav-item:hover{
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateX(8px);
  border-color: rgba(255,255,255,0.1);
}

.mobile-nav-item.active{
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-nav-icon{
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer do Menu Mobile */
.mobile-menu-footer{
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-footer .btn{
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Ícones Lucide */
.lucide-icon{
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ==========================================================================
   MODAL DE ORÇAMENTO - MELHORADO
   ========================================================================== */
.quote-modal{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  padding: 20px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.quote-modal.active{
  display: flex;
}

.modal-content{
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn{
  from{
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.modal-title{
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.modal-close{
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: #fff;
}

.modal-close:hover{
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.quote-form{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label{
  font-weight: 600;
  color: #e2e8f0;
  font-size: 14px;
}

.form-input,
.form-textarea,
.form-select{
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 16px;
  transition: var(--transition-smooth);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font);
}

.form-input::placeholder,
.form-textarea::placeholder{
  color: #94a3b8;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus{
  outline: none;
  border-color: var(--brand);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-textarea{
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.submit-btn{
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.submit-btn:active{
  transform: translateY(0);
}

/* ==========================================================================
   BOTÃO WHATSAPP - ESTILO MELHOR
   ========================================================================== */
.whatsapp-btn{
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-btn:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */
@keyframes slideInRight{
  from{
    opacity: 0;
    transform: translateX(30px);
  }
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-item{
  animation: slideInRight 0.4s ease both;
}

.mobile-nav-item:nth-child(1){ animation-delay: 0.05s; }
.mobile-nav-item:nth-child(2){ animation-delay: 0.1s; }
.mobile-nav-item:nth-child(3){ animation-delay: 0.15s; }
.mobile-nav-item:nth-child(4){ animation-delay: 0.2s; }
.mobile-nav-item:nth-child(5){ animation-delay: 0.25s; }

/* ==========================================================================
   ESTADOS DE BLOQUEIO
   ========================================================================== */
body.menu-open,
body.modal-open{
  overflow: hidden !important;
}

/* ==========================================================================
   RESPONSIVIDADE MELHORADA
   ========================================================================== */
@media (max-width: 480px){
  .site-header .container{
    padding: 0 16px;
  }
  
  .brand{
    font-size: 1.1rem;
  }
  
  .brand img{
    height: 35px;
  }
  
  .mobile-menu-panel{
    width: 85%;
  }
  
  .modal-content{
    padding: 24px;
    margin: 0 16px;
  }
}

/* ==========================================================================
   DARK MODE PARA HEADER
   ========================================================================== */
@media (prefers-color-scheme: dark){
  .site-header{
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .site-header.scrolled{
    background: rgba(15, 23, 42, 0.98);
  }
  
  .brand,
  .nav-link{
    color: #fff;
  }
  
  .mobile-menu-btn{
    border-color: rgba(255,255,255,0.2);
  }
  
  .mobile-menu-btn span{
    background: #fff;
  }
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  *{
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}