/*
Theme Name: PlaneIT Aviation
Author: VG Tech Solutions
Description: Tema customizado High-End para consultoria de aviação.
Version: 1.0
Text Domain: planeit
*/

/* ==========================================================================
   1. VARIÁVEIS GLOBAIS E ESTRUTURA BASE
   ========================================================================== */
:root {
  --bg-dark: #050505;
  --bg-section: #0a0a0a;
  --text-main: #e0e0e0;
  --text-muted: #8a8a8a;
  --metal-gradient: linear-gradient(
    135deg,
    #ffffff 0%,
    #b3b3b3 40%,
    #7a7a7a 60%,
    #e6e6e6 100%
  );
  --metal-dark: linear-gradient(
    135deg,
    rgba(42, 42, 42, 0.6) 0%,
    rgba(17, 17, 17, 0.8) 100%
  );
  --radius-card: 16px;
  --radius-btn: 30px;
  --transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* FUNDO TECNOLÓGICO: Grid/Malha sutil estilo radar de aviação */
body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--metal-gradient);
  width: 0%;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7a7a7a;
}
::selection {
  background: #b3b3b3;
  color: #000000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
h1,
h2,
h3 {
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

/* ANIMAÇÕES COREOGRAFADAS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}

/* ==========================================================================
   2. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}
#main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 45px;
  width: auto;
  display: block;
  transition: var(--transition);
}
.logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}
#main-nav {
  display: flex;
  align-items: center;
}
#main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
}
#main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
  position: relative;
  padding-bottom: 6px;
}
#main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background: var(--metal-gradient);
  transition:
    width 0.4s ease,
    left 0.4s ease;
}
#main-nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
#main-nav a:hover::after {
  width: 100%;
  left: 0;
}

/* ==========================================================================
   3. BOTÕES
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 45px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--metal-gradient);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover {
  color: #000000;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}
.btn-primary:hover::before {
  opacity: 1;
}

/* ==========================================================================
   4. SEÇÃO HERO
   ========================================================================== */
#hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./assets/img/aviaopista.jpg") center/cover no-repeat;
  filter: grayscale(100%) brightness(20%) contrast(120%);
  opacity: 0.6;
  z-index: 0;
}
#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    var(--bg-dark) 90%
  );
  z-index: 1;
}
#hero .container {
  max-width: 900px;
  z-index: 2;
  position: relative;
}
#hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(to right, #b3b3b3 0%, #ffffff 50%, #b3b3b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}
#hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* ==========================================================================
   5. SEÇÃO EXPERTISE
   ========================================================================== */
#expertise {
  padding: 120px 0;
  text-align: center;
  position: relative;
}
#expertise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2));
}
.expertise-box {
  background: var(--metal-dark);
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 50px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}
.expertise-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ffffff;
  opacity: 0.8;
}
.expertise-box h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: 1px;
}
.expertise-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   6. SEÇÃO DE SERVIÇOS (COM HOVER DE SCANNER TECNOLÓGICO)
   ========================================================================== */
#services {
  padding: 80px 0 140px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
#services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 70px;
  background: var(--metal-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card {
  background: rgba(255, 255, 255, 0.01);
  padding: 45px 35px;
  border-radius: var(--radius-card);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Efeito Scanner Tecnológico solicitado pelo Mário */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.service-card:hover::before {
  left: 200%; /* O feixe de luz atravessa o card */
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #ffffff;
  opacity: 0.7;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  opacity: 1;
  transform: translateY(-5px);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}
.service-card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 500;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   7. CONTATO E FORMULÁRIO
   ========================================================================== */
#contact {
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  position: relative;
}
#contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 70px;
  background: var(--metal-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: flex-start;
}
.contact-form-container {
  background: transparent;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.form-group {
  margin-bottom: 30px;
}
.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* Input com seletor de DDI */
.phone-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.country-code {
  width: 120px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 5px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.country-code:focus {
  border-bottom: 1px solid #ffffff;
}
.country-code option {
  background: var(--bg-dark);
  color: #ffffff;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom: 1px solid #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-form-container button {
  width: 100%;
  margin-top: 20px;
}

.contact-info {
  padding: 50px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-info-header h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 400;
}
.ceo-name {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}
.ceo-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}
.contact-item:hover {
  transform: translateX(8px);
}
.icon-wrapper {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}
.contact-item:hover .icon-wrapper {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
}
.contact-icon {
  font-size: 1.4rem;
  color: #ffffff;
  opacity: 0.8;
}
.contact-details {
  display: flex;
  flex-direction: column;
}
.contact-details strong {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.contact-details span,
.contact-details a {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 300;
  text-decoration: none;
  transition: var(--transition);
}
.contact-details a:hover {
  color: #b3b3b3;
}

/* MÓDULO QR CODE */
.qr-download-box {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 20px;
}
.qr-image {
  width: 75px;
  height: 75px;
  object-fit: contain;
  background: #ffffff;
  padding: 5px;
  border-radius: 8px;
}
.qr-text h4 {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.qr-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  font-weight: 600;
}
.btn-download i {
  font-size: 1rem;
}
.btn-download:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   8. RODAPÉ (COM LINKS) E RESPONSIVIDADE
   ========================================================================== */
#main-footer {
  padding: 40px 0;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
#main-footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 20px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  #hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  #main-header .container {
    flex-direction: column;
    gap: 20px;
  }
  .logo img {
    height: 35px;
  }
  #main-nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  #hero h1 {
    font-size: 2.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-info {
    padding: 30px;
  }
  .qr-download-box {
    flex-direction: column;
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-links a {
    margin: 0 10px;
  }
}

/* ==========================================================================
   9. PÁGINAS JURÍDICAS (PRIVACY & TERMS)
   ========================================================================== */
.legal-hero {
  padding: 150px 0 60px;
  text-align: center;
  background: var(--bg-dark);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-hero h1 {
  font-size: 3rem;
  background: var(--metal-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.legal-hero p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.legal-content-section {
  padding: 80px 0;
  background: transparent;
}

.legal-content {
  max-width: 800px; /* Largura menor para facilitar a leitura */
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.6);
  padding: 60px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.legal-content h3 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.legal-content ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.legal-content a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition);
}

.legal-content a:hover {
  color: #b3b3b3;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 30px;
  }
  .legal-hero h1 {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   FIX DE COMPATIBILIDADE PARA O MODO EDITOR DO ELEMENTOR
   ========================================================================== */
body.elementor-editor-active .reveal {
    opacity: 1 !important;
    transform: none !important;
}

body.elementor-editor-active #hero::before,
body.elementor-editor-active #hero::after,
body.elementor-editor-active .service-card::before,
body.elementor-editor-active .service-card::after {
    pointer-events: none !important;
}

body.elementor-editor-active .expertise-box {
    margin-top: 0 !important; /* Evita que a caixa suba e bloqueie outras áreas no editor */
}
