@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800;900&display=swap');

:root {
  --bg-color: #ffffff;
  --dark-color: #282b37;
  --accent-color: #70a3b1;
  --light-color: #e5eae8;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Base Components */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(112, 163, 177, 0.4);
}

.btn-primary:hover {
  background-color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 43, 55, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #fff;
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 15px auto 40px;
  border-radius: 2px;
}

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

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.animate-fade-in {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.4s; }

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--dark-color);
  overflow: hidden;
}

/* Hero Slideshow */
#hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-slide.active {
  opacity: 1;
}

/* Dark + light gradient overlay on top of photos */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.1) 100%
  );
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(112, 163, 177, 0.2) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 2;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-logo {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(40, 43, 55, 0.15));
}

.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
}

.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(112, 163, 177, 0.15);
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--dark-color);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero-info {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: var(--dark-color);
  font-weight: 500;
}

.hero-info div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-info i {
  color: var(--accent-color);
  font-size: 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Scroll Mouse Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  animation: fadeInUp 1s ease 1.2s forwards;
  opacity: 0;
}

.scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.mouse {
  width: 28px;
  height: 44px;
  border: 2px solid var(--accent-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Distances Section */
.distances {
  background-color: var(--bg-color);
}

.distances-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.distance-card {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.distance-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(40, 43, 55, 0.08);
}

.distance-value {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 10px;
}

.distance-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.distance-desc {
  font-size: 1rem;
  color: rgba(40, 43, 55, 0.8);
}

.best-card {
  background-color: var(--dark-color);
  color: #fff;
}

.best-card .distance-value {
  color: #fff;
  text-shadow: 0 4px 10px rgba(112, 163, 177, 0.3);
}

.best-card h3 {
  color: var(--accent-color);
}

.best-card .distance-desc {
  color: rgba(255, 255, 255, 0.8);
}

.btn-card-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.btn-card-cta:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

.best-card .btn-card-cta {
  border-color: #fff;
  color: #fff;
}

.best-card .btn-card-cta:hover {
  background-color: #fff;
  color: var(--dark-color);
}

/* Info Section */
.info-section {
  background-color: var(--light-color);
  padding: 80px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.info-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-card h3 i {
  color: var(--accent-color);
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--light-color);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list i {
  color: var(--accent-color);
  margin-top: 4px;
}

/* Schedule */
.schedule {
  background-color: var(--bg-color);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background-color: var(--light-color);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(112, 163, 177, 0.4);
}

.timeline-content {
  background-color: var(--light-color);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.timeline-time {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 1.3rem;
  color: var(--dark-color);
  font-weight: 600;
}

/* Map Section */
.map-section {
  padding: 0;
  height: 500px;
  position: relative;
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* WhatsApp CTA Section */
.whatsapp-cta-section {
  background-color: var(--light-color);
  padding: 60px 0;
}

.whatsapp-cta-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border-left: 5px solid #25d366;
}

.whatsapp-cta-icon {
  font-size: 4rem;
  color: #25d366;
  flex-shrink: 0;
  line-height: 1;
}

.whatsapp-cta-text {
  flex: 1;
}

.whatsapp-cta-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.whatsapp-cta-text p {
  color: rgba(40, 43, 55, 0.7);
  font-size: 1.05rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background-color: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  animation: waPulse 2.5s ease infinite;
}

.whatsapp-float:hover {
  background-color: #1da851;
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer / Sponsors */
footer {
  background-color: var(--dark-color);
  padding: 80px 0 40px;
  text-align: center;
  color: #fff;
}

.footer-logo {
  max-width: 200px;
  margin: 0 auto 40px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.sponsors h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.sponsor-logo {
  width: 20%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.sponsor-logo:hover {
  background-color: rgba(255,255,255,0.14);
}

.sponsor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.90;
  transition: opacity 0.3s ease;
  display: block;
}

.sponsor-logo:hover img {
  opacity: 1;
}

@media (max-width: 768px) {
  .sponsor-logo { width: calc(100% / 3); }
}

@media (max-width: 480px) {
  .sponsor-logo { width: 50%; }
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* Media Queries */
@media (max-width: 900px) {
  .hero h1 { font-size: 3.5rem; }
  .hero-container { flex-direction: column; gap: 30px; text-align: center; padding: 0 20px; }
  .hero-logo { width: 180px; }
  .hero-info { justify-content: center; }
  .hero-actions { justify-content: center; }
  .info-grid { grid-template-columns: 1fr; }
}

/* Celular retrato e paisagem: cards em 1 coluna */
@media (max-width: 768px) {
  .distances-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { display: none; }
  .hero-tag { display: none; }

  /* Empurra o conteúdo para o topo */
  .hero {
    align-items: flex-start;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .hero-container {
    padding: 40px 16px 0;
    gap: 16px;
    flex-direction: column;
  }

  .hero-logo { width: 180px; }
  .hero-info { flex-direction: column; gap: 12px; align-items: center; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  /* Garante que o indicador de scroll apareça e fique centralizado */
  .scroll-indicator {
    left: 0;
    right: 0;
    transform: none;
    bottom: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-title { font-size: 2.2rem; }
  .info-card { padding: 24px 20px; }
  .info-list li { gap: 10px; font-size: 0.95rem; }
  .info-list i { flex-shrink: 0; margin-top: 3px; }

  .whatsapp-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
  }
  .btn-whatsapp { width: 100%; justify-content: center; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.7rem; }
}
