/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0e9488;
  --primary-light: #1fbfa0;
  --primary-dark: #0c3f63;
  --secondary: #1a6fa8;
  --dark: #0a2540;
  --gray: #5a6b73;
  --light-gray: #eef5f4;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.1);
  --transition: all 0.3s ease;
  --gradient-brand: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 45%, var(--primary) 100%);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-brand);
  background-size: 250% 250%;
  animation: gradientShift 10s ease infinite;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 {
  font-size: 2.6rem;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 35px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== FADE IN UP (Hero) ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.25s; }
.fade-in-up.delay-2 { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-light);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
}

/* ===== ROUTES ===== */
.routes { background: var(--light-gray); }

.route-line-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px auto 45px;
  max-width: 500px;
}

.route-point {
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.route-line {
  position: relative;
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    var(--primary) 0px,
    var(--primary) 6px,
    transparent 6px,
    transparent 12px
  );
  overflow: visible;
}

.route-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(31, 191, 160, 0.7);
  animation: moveDot 3s linear infinite;
}

@keyframes moveDot {
  0% { left: 0%; }
  100% { left: 100%; }
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.route-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border-top: 3px solid var(--primary);
}

.route-card:hover { transform: translateY(-5px); }

.route-card h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

/* ===== ANIMAÇÃO AO ROLAR A PÁGINA ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.15s; }
.animate-on-scroll.delay-2 { transition-delay: 0.3s; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  background: var(--white);
  border: 1px solid #e0eceb;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

/* ===== CTA ===== */
.cta {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.cta .btn-primary {
  background: var(--primary);
  color: var(--white);
}

.cta .btn-primary:hover { background: var(--primary-light); }

/* ===== PAGE HEADER (outras páginas) ===== */
.page-header {
  background: var(--gradient-brand);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

/* ===== TRACKING (IFRAME) ===== */
.tracking-title {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.tracking-desc {
  text-align: center;
  color: var(--gray);
  max-width: 650px;
  margin: 0 auto 35px;
}

.tracking-iframe-wrapper {
  width: 100%;
  max-width: 1100px;
  height: 900px;
  margin: 0 auto;
  overflow: auto;
  border: 1px solid #d8ece9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.tracking-iframe-wrapper iframe {
  display: block;
  width: 100%;
  height: 900px;
  min-height: 900px;
  border: 0;
  background: var(--white);
}

.tracking-fallback {
  text-align: center;
  margin-top: 30px;
}

.tracking-fallback p {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 1rem;
}

.tracking-fallback a {
  color: var(--white);
}

.tracking-fallback a.btn-mobile-tracking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.tracking-fallback a.btn-mobile-tracking:hover {
  background: var(--primary-light);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-mobile-tracking svg {
  fill: var(--white);
  flex-shrink: 0;
}

/* ===== LOGIN ===== */
.login-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--light-gray);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  margin-top: 15px;
  color: var(--primary-dark);
}

.login-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfe3e0;
  border-radius: var(--radius);
  font-size: 1rem;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.login-box button { width: 100%; margin-top: 25px; }

.login-message {
  margin-top: 15px;
  text-align: center;
  font-weight: 600;
  color: var(--secondary);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info h2,
.contact-form-box h2 {
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.contact-info p { margin-bottom: 20px; }

.contact-info a {
  color: var(--primary);
  font-weight: 600;
}

.contact-form-box form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form-box label {
  font-weight: 600;
  margin-top: 12px;
  color: var(--primary-dark);
}

.contact-form-box input,
.contact-form-box select,
.contact-form-box textarea {
  padding: 12px;
  border: 1px solid #cfe3e0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form-box input:focus,
.contact-form-box select:focus,
.contact-form-box textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form-box button { margin-top: 20px; }

.form-message {
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ===== ABOUT ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-logo {
  height: 140px;
  width: auto;
  margin: 0 auto 30px;
  display: block;
}

.about-content h2 {
  text-align: left;
  margin-bottom: 25px;
  color: var(--primary-dark);
}

.about-content p {
  margin-bottom: 20px;
  color: var(--gray);
  text-align: justify;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-info p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-float img { width: 32px; height: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .routes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active { max-height: 400px; }
  .nav-links li { border-top: 1px solid #eee; }
  .nav-links a { display: block; padding: 15px 25px; }

  .hero h1 { font-size: 1.9rem; }

  .route-line-wrapper { max-width: 90%; }
  .route-point { font-size: 0.85rem; }

  .tracking-iframe-wrapper {
    height: 950px;
  }

  .tracking-iframe-wrapper iframe {
    height: 950px;
    min-height: 950px;
  }

  .btn-mobile-tracking {
    width: 100%;
    max-width: 340px;
    padding: 18px 20px;
    font-size: 1.1rem;
  }

  .footer-content { flex-direction: column; text-align: center; }
}