/* Estilos para o novo site Malie Travel */

/* Variáveis de cores */
:root {
  --primary-color: #EB8F63; /* Laranja */
  --secondary-color: #EDDDC0; /* Bege */
  --dark-color: #2D3047; /* Azul escuro quase preto */
  --light-color: #F7F9FB; /* Branco suave */
  --white-color: #ffffff; /* Branco puro */
  --gray-color: #8D99AE; /* Cinza médio */
  --overlay-color: rgba(45, 48, 71, 0.7); /* Overlay escuro para imagens */
  --gradient-primary: linear-gradient(135deg, #EB8F63 0%, #D47D52 100%);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header e Navegação */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
  padding: 1.5rem 0;
}

.header.scrolled {
  background-color: var(--light-color);
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
}

.logo img {
  height: 50px;
  transition: var(--transition);
}

.logo img.logo-white {
  position: absolute;
  opacity: 1;
}

.logo img.logo-dark {
  opacity: 0;
}

.header.scrolled .logo img.logo-white {
  opacity: 0;
}

.header.scrolled .logo img.logo-dark {
  opacity: 1;
}

.header.scrolled .logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-item.nav-cta {
  margin-left: 1rem;
}

.btn-nav {
  padding: 0.6rem 1.5rem !important;
  font-size: 0.9rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 10px rgba(235, 143, 99, 0.3) !important;
}

.btn-nav:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(235, 143, 99, 0.4) !important;
}

.nav-link {
  color: var(--light-color);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

.header.scrolled .nav-link {
  color: var(--dark-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light-color);
  z-index: 1001;
}

.header.scrolled .mobile-toggle {
  color: var(--dark-color);
}

.mobile-toggle.active {
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('../images/banner.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(45, 48, 71, 0.8), rgba(45, 48, 71, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--light-color);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light-color);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--light-color);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.9s;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 1.1s;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--light-color);
  box-shadow: 0 4px 15px rgba(235, 143, 99, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(235, 143, 99, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--light-color);
  border: 2px solid var(--light-color);
}

.btn-outline:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Seções */
.section {
  padding: 6rem 0;
}

.section-light {
  background-color: var(--light-color);
}

.section-dark {
  background-color: #f5f7fa;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
}

/* Sobre a Malie Travel */
.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  z-index: -1;
}

/* Estatísticas */
.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  flex: 1;
  min-width: 200px;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  margin: 1rem;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1.1rem;
  color: var(--gray-color);
}

/* Sobre Mim */
.about-me {
  background-color: #f5f7fa;
}

.about-me-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-me-image {
  flex: 1;
  position: relative;
  padding: 20px;
}

.about-me-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transform: rotate(-3deg);
  border-radius: 20px;
  z-index: -1;
  box-shadow: var(--box-shadow);
}

.about-me-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  transform: rotate(3deg);
  border-radius: 20px;
  z-index: -2;
  box-shadow: var(--box-shadow);
}

.about-me-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.about-me-image:hover img {
  transform: scale(1.02);
}

.about-me-image:hover::before {
  transform: rotate(-5deg);
}

.about-me-image:hover::after {
  transform: rotate(5deg);
}

.about-me-text {
  flex: 1;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-15px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Destinos */
.destinations {
  overflow: hidden;
}

/* Loading Spinner para Destinos */
.destinations-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  min-height: 300px;
}

.destinations-loading .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--secondary-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.destinations-loading p {
  color: var(--gray-color);
  font-size: 1.1rem;
  margin: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.destination-slider-container {
  position: relative;
  padding: 0 50px;
  margin: 0 -15px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  z-index: 2;
  padding: 0;
}

.slider-arrow:hover {
  background: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 5px;
}

.slider-next {
  right: 5px;
}

.destination-slider {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.destination-slider::-webkit-scrollbar {
  display: none;
}

.destination-card {
  flex: 0 0 350px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.destination-card:hover {
  transform: translateY(-10px);
}

.destination-image {
  height: 250px;
  overflow: hidden;
}

.destination-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.destination-card:hover .destination-image img {
  transform: scale(1.1);
}

.destination-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destination-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.destination-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.destination-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.price-per-person-small {
  background: linear-gradient(135deg, #EB8F63, #D47D52);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(235, 143, 99, 0.3);
}

.destination-price .price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.destination-price .price-info {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-color);
}

/* Testemunhos */
.testimonials {
  background-color: #f5f7fa;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.testimonial-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-color);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

/* Contacto */
.contact {
  background-color: #f5f7fa;
}

.contact-content {
  display: flex;
  gap: 4rem;
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--gray-color);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .about-content,
  .about-me-content,
  .contact-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .destination-slider-container {
    padding: 0 40px;
  }
  
  .destination-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  /* Ajuste para centralizar a parte esquerda da imagem no hero em dispositivos móveis */
  .hero {
    background-position: 25% center;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--light-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease-in-out;
  }
  
  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-item.nav-cta {
    margin-left: 0;
    margin-top: 2rem;
  }
  
  .nav-item.nav-cta .btn-nav {
    display: block;
    text-align: center;
    width: 200px;
    margin: 0 auto;
  }
  
  .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .nav-item:nth-child(2) { transition-delay: 0.2s; }
  .nav-item:nth-child(3) { transition-delay: 0.3s; }
  .nav-item:nth-child(4) { transition-delay: 0.4s; }
  .nav-item:nth-child(5) { transition-delay: 0.5s; }
  .nav-item:nth-child(6) { transition-delay: 0.6s; }
  .nav-item:nth-child(7) { transition-delay: 0.7s; }
  
  .nav-link {
    color: var(--dark-color);
    font-size: 1.2rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .mobile-toggle.active i:before {
    content: "\f00d";
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .stat-item {
    min-width: 150px;
  }
  
  .destination-slider-container {
    padding: 0 35px;
    overflow: hidden;
  }
  
  .destination-slider {
    display: block;
    overflow: visible;
  }
  
  .destination-card {
    flex: none;
    width: 100%;
    margin: 0 auto;
    display: none;
  }
  
  .destination-card.active {
    display: block;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .slider-arrow:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
  }
  
  .slider-prev {
    left: 0;
  }
  
  .slider-next {
    right: 0;
  }
  
  .destination-card {
    flex: 0 0 260px;
  }
  
  .destination-content {
    padding: 1rem;
  }
  
  .destination-title {
    font-size: 1.2rem;
  }
  
  .destination-price .price-value {
    font-size: 1.2rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .swipe-hint {
    display: flex;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  color: #ffffff !important;
  font-size: 2rem;
}

/* Indicação de swipe no mobile */
.swipe-hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--gray-color);
  display: none;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.swipe-hint i {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .swipe-hint {
    display: flex;
  }
  
  /* Permitir que a dica fique fora da área cortada */
  .destination-slider-container {
    overflow: visible;
  }
}

/* Indicadores do assistente de orçamento */
.step-number.step-current {
  background: var(--gradient-primary);
  color: var(--light-color);
}
.step-number.step-completed {
  background: var(--gradient-primary);
  color: var(--light-color);
  opacity: .8;
}
.step-number.step-upcoming {
  background: #d7dadd;
  color: var(--dark-color);
}