/* ================= Reset ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  background: #f5f5f5;
  color: #333;
}

/* ================= Header ================= */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 72px; /* slightly increased */
  padding: 0 50px; /* keep horizontal spacing */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: rgba(84,4,108,0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* ensure header stays slightly smaller on small screens */
@media (max-width: 480px) {
  header { height: 56px; padding: 0 20px; }
} 

header .logo {
  font-size: 2rem; /* erhöhen ligeiramente */
  font-weight: bold;
  color: #fff;
  /* centred in viewport */
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  pointer-events: none; /* allow clicks through */
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
}

/* botão simples de voltar (seta) no canto superior esquerdo */
.back-btn {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  z-index: 1002;
}
.back-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
@media (max-width: 480px) { .back-btn { left: 12px; width: 32px; height: 32px; } }

/* ensure on small screens the logo reduces slightly and stays centered */
@media (max-width: 480px) {
  header .logo { font-size: 1.6rem; }
}

.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-list li a:hover {
  color: #54046c;
}

.btn-header {
  background: #54046c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-header:hover {
  background: #54046c;
}

/* Menu Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px; /* cria o 'box' em volta do X */
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.menu-toggle span {
  height: 3px;
  width: 22px;
  background: #fff;
  border-radius: 3px;
  display:block;
}

/* estado aberto: fundo branco e X roxo */
.menu-toggle.open { background: #fff; border-color: rgba(0,0,0,0.06); }
.menu-toggle.open span { background: #54046c; }

/* ================= Hero / Slideshow ================= */
.hero {
  min-height: calc(100vh - 72px); 
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center; 
  align-items: center;     
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-hero {
  background: #54046c;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: 0.3s;
}

.btn-hero:hover {
  background: #54046c;
}

/* ================= Search Bar ================= */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 40px 20px;
  flex-wrap: wrap;
  background: #fff;
  margin-top: -50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar input,
.search-bar select {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 200px;
}

.search-bar button {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  background: #54046c;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.search-bar button:hover {
  background: #54046c;
}

/* ================= Contact Form ================= */
.contact-form {
  max-width: 720px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  background: #54046c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.contact-form button:hover { background: #885e8a; }

/* ================= Sections ================= */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #54046c;
}

/* ================= Cards ================= */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: #fff;
  width: 280px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  padding: 15px;
  color: #54046c;
}

/* ================= Tipos de Viagem ================= */
.tipos-cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.tipo {
  background: #54046c;
  color: #fff;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.tipo:hover {
  background: #54046c;
}

/* ================= Depoimentos ================= */
.depoimentos-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.depoimento {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.depoimento p {
  margin-bottom: 10px;
  font-style: italic;
}

/* ================= CTA ================= */
.btn-cta {
  background: #54046c;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: 0.3s;
}

.btn-cta:hover {
  background: #54046c;
}

/* ================= Footer ================= */
footer {
  background: #54046c;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ================= Back to Top ================= */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #54046c;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
  z-index: 1000;
  transition: background 0.3s;
}

#back-to-top:hover {
  background: #885e8a;
}

/* ================= Mobile Responsivo ================= */
@media screen and (max-width: 768px) {
  header {
    justify-content: flex-end;
  }

  header .logo {
    font-size: 1.6rem;
  }

  /* Mobile overlay panel (slides out from the hamburger) */
  .nav-list {
    position: fixed;
    top: 56px; /* sit below header on mobile */
    right: 20px; /* aligned next to the hamburger */
    height: calc(100vh - 56px);
    width: min(360px, 86%); /* keep it reasonably narrow */
    background: transparent; /* torne transparente para remover o retângulo preto */
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform-origin: right top;
    transform: translateX(120%); /* hide to the right of the screen */
    transition: transform 320ms cubic-bezier(.2,.9,.25,1), opacity 240ms ease;
    opacity: 0;
    z-index: 1002;
    box-shadow: none; /* remove shadow to evitar a barra escura */
    border-radius: 8px 0 0 8px;
  }

  .nav-list li { width: 100%; list-style: none; }
  .nav-list li a { display: block; padding: 14px 6px 14px 12px; color: #fff; text-decoration: none; font-weight:700; opacity: 0; transform: translateY(12px); text-align: right; }

  /* show panel */
  .nav-list.active {
    transform: translateX(0);
    opacity: 1;
  }

  /* staged animations for list items */
  @keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* when panel active, animate children with stagger using nth-child delays */
  .nav-list.active li:nth-child(1) a { animation: fadeSlideIn 320ms ease forwards 80ms; }
  .nav-list.active li:nth-child(2) a { animation: fadeSlideIn 320ms ease forwards 160ms; }
  .nav-list.active li:nth-child(3) a { animation: fadeSlideIn 320ms ease forwards 240ms; }
  .nav-list.active li:nth-child(4) a { animation: fadeSlideIn 320ms ease forwards 320ms; }
  .nav-list.active li:nth-child(5) a { animation: fadeSlideIn 320ms ease forwards 400ms; }
  .nav-list.active li:nth-child(6) a { animation: fadeSlideIn 320ms ease forwards 480ms; }

  /* backdrop via body class (no extra markup needed) */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.46);
    z-index: 1000;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 180ms ease;
  }

  .menu-toggle { display: flex; width: 36px; height: 28px; align-items: center; justify-content: center; }

  /* SVG icon: usa rects para as 3 linhas do símbolo enviado */
  .menu-icon { display: block; width: 22px; height: 22px; }
  .menu-icon .line { fill: #fff; transition: transform 220ms cubic-bezier(.2,.9,.25,1), opacity 160ms ease, fill 180ms ease; transform-origin: 50% 50%; transform-box: fill-box; }

  .menu-icon .line1 { }
  .menu-icon .line2 { }
  .menu-icon .line3 { }

  /* estado aberto: transforme as rects para formar um X */
  .menu-toggle.open .line { fill: #54046c; }
  .menu-toggle.open .line1 { transform: translateY(5px) rotate(45deg); }
  .menu-toggle.open .line2 { opacity: 0; transform: scaleX(0); }
  .menu-toggle.open .line3 { transform: translateY(-5px) rotate(-45deg); }

  @media (max-width: 480px) {
    .nav-list { width: min(320px, 92%); right: 12px; padding: 18px; }
  }
}
