/* --- ROOT VARIABLES --- */
:root {
  --primary: #fe7709;
  --bg-header: #fff;
  --bg-footer: #161616;
  --text: #222;
  --spacing: 1rem;
  --max-width: 1200px;
  --header-height: 60px;
  --card-radius: 15px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  background-color: #f4f4f4;
}

main {
  flex: 1;
  padding-top: var(--header-height);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  overflow: visible;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--spacing);
}

.logo img {
  height: 40px;
  width: auto;
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
}

.site-nav li {
  margin-left: var(--spacing);
}

.site-nav a.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0 var(--spacing);
}

.site-nav a.nav-link.active {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  transition: background 0.2s;
  border-radius: 30px;
}

.site-nav a.nav-link.active:hover {
  background: #e66300;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: var(--max-width);
  background: var(--bg-header);
  padding: 2.5rem var(--spacing);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  max-height: 80vh;
  overflow-y: auto;
}

.dropdown.open .dropdown-menu {
  display: block;
}

#dropdown-title {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: var(--max-width);
  background: none;
  box-shadow: none;
  padding: 1.5rem var(--spacing);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  z-index: 1002;
  pointer-events: none;
}

.sobre-content {
  line-height: 1.6;
  color: #333;
  margin-bottom: var(--spacing);
  text-align: center;
}

.funciona-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.funciona-list li {
  position: relative;
  padding: var(--spacing) var(--spacing) var(--spacing) calc(var(--spacing) * 4);
  margin-bottom: var(--spacing);
  border-radius: 4px;
  background: #fafafa;
  transition: background 0.3s, transform 0.2s;
}

.funciona-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: var(--spacing);
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  font-weight: 600;
}

.funciona-list li:hover {
  background: rgba(254, 119, 9, 0.1);
  transform: translateY(-2px);
}

.site-nav li.dropdown.open > a.nav-link {
  background-color: var(--primary);
  color: #fff;
}

/* --- BOTÕES --- */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.btn-primary:hover {
  background-color: #e66300;
  transform: scale(1.05);
}

.hero {
  background: url("/static/assets/homeimg/aviao 2 .jpg") no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 200px 20px 120px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero .btn-primary {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

/* --- FEATURES SECTION --- */
.features {
  padding: 60px 0;
  background-color: #fff;
}

.features .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
  text-align: center;
  flex-wrap: wrap;
}

.feature-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 260px;
  max-width: 320px;
}

.feature-item {
  background-color: #2d2d2d;
  color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 500;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.stars img {
  height: 40px;
  width: auto;
}

/* --- ABOUT US SECTION --- */
.about-us {
  padding: 80px 0;
  background-color: #fff;
}

.about-us .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-content {
  flex: 1.1;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 24px;
  margin-bottom: 1.4rem;
  box-shadow: 10px 10px 6px rgba(0, 0, 0, 0.2);
}

.about-image p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.airport-image {
  width: 100%;
  border-radius: 24px;
  display: block;
}

/* --- VIDEO SECTION --- */
.video-section {
  padding: clamp(40px, 8vw, 80px) 0;
  background-color: #fff;
  text-align: center;
}

.video-section h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: clamp(20px, 4vw, 40px);
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  padding: 0 1rem;
}

.video-section .video-wrapper {
  max-width: min(90%, 900px);
  margin: 0 auto;
  border-radius: clamp(8px, 2vw, 16px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-section video {
  width: 100%;
  height: auto;
  display: block;
}

.video-section .video-description {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: #555;
  margin-top: clamp(15px, 3vw, 30px);
  line-height: 1.6;
  padding: 0 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- DETAILED INFO SECTION --- */
.detailed-info {
  padding: 60px 0;
  background-color: #ffffff;
}

.detailed-info .container {
  background: #222;
  color: #fff;
  padding: 50px 40px;
  border-radius: 15px;
}

.detailed-info h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.detailed-info .mission-title {
  margin-top: 50px;
}

.info-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1rem;
}

.info-block p strong {
  font-weight: bold;
}

/* --- INFORMATION SECTION --- */
.information {
  background-color: #fff;
  padding: 80px 0;
}

.information h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: left;
  font-weight: 700;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.5rem;
  color: #555;
  margin-right: 20px;
  margin-top: 5px;
  width: 25px;
}

.info-text .info-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

.info-text .info-description {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-footer);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
}

/* ======================================================= */
/* === MODAL DE REDIRECIONAMENTO WHATSAPP (HOME) === */
/* ======================================================= */

#redirect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#redirect-overlay.visible {
  opacity: 1;
  visibility: visible;
}

#redirect-modal {
  background: #fff;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 90%;
  border-radius: 16px;
  box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#redirect-overlay.visible #redirect-modal {
  transform: scale(1);
}

#redirect-modal h2 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #222;
  font-weight: 600;
}

#redirect-modal p {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

.countdown-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fe7709, #e66300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  box-shadow: 0 4px 15px rgba(254, 119, 9, 0.4);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

#countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

#btn-redirect-now {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(254, 119, 9, 0.3);
}

#btn-redirect-now:hover {
  background: #e66300;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 119, 9, 0.4);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 767px) {
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-header);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    text-align: center;
    z-index: 999;
    overflow: visible;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .site-nav ul {
    display: none;
  }

  .site-nav.open ul {
    display: flex;
    flex-direction: column;
  }

  .site-nav.open li {
    margin: var(--spacing) 0;
  }

  .dropdown-menu {
    width: 100%;
    left: 0;
    transform: none;
  }

  .site-header .container {
    justify-content: center;
    position: relative;
  }

  .menu-toggle {
    position: absolute;
    right: var(--spacing);
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
  }

  .site-nav ul {
    display: flex;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
  }
}

@media (max-width: 992px) {
  .about-us .container {
    flex-direction: column;
    text-align: center;
  }

  .about-image p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .features,
  .about-us,
  .detailed-info,
  .information {
    padding: 40px 0;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .features .container {
    flex-direction: column;
    align-items: center;
  }

  .feature-wrapper {
    width: 80%;
    max-width: 350px;
    margin-bottom: 20px;
  }

  .detailed-info .container {
    padding: 40px 25px;
  }

  .detailed-info h2 {
    font-size: 1.8rem;
  }

  .information h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-item i {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero .btn-primary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .detailed-info h2,
  .information h2 {
    font-size: 1.5rem;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .about-image img {
    width: 90%;
  }
}