/* =====================================================
   PISTA LIVRE – styles.css
   ===================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #162057;
  line-height: 1.6;
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}

.btn:hover {
  opacity: 0.88;
}

.btn--download {
  background: #1a56db;
  color: #fff;
  border-radius: 8px;
  padding: 10px 26px;
}

.btn--white {
  background: #fff;
  color: #162057;
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 32px;
  letter-spacing: 0.05em;
}

.section-label {
  font-size: 0.85rem;
  color: #1a56db;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #162057;
  margin-bottom: 48px;
  line-height: 1.2;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.navbar__logo {
  flex-shrink: 0;
}

.navbar__logo img {
  height: 38px;
  width: auto;
}

.navbar__nav {
  flex: 1;
}

.navbar__nav ul {
  display: flex;
  gap: 36px;
  justify-content: center;
}

.navbar__nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #162057;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.navbar__nav .nav-link.active {
  border-bottom: 3px solid #f5a623;
  color: #162057;
  font-weight: 700;
}

.navbar__nav .nav-link:hover {
  color: #1a56db;
}

/* Mobile hamburger (hidden on desktop) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #162057;
  border-radius: 2px;
  transition: 0.3s;
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider {
  margin-top: 68px; /* navbar height */
}

.heroSwiper {
  width: 100%;
}

.heroSwiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Swiper navigation arrows */
.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
  color: #fff;
  background: rgba(22, 32, 87, 0.45);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s;
}

.heroSwiper .swiper-button-prev:hover,
.heroSwiper .swiper-button-next:hover {
  background: rgba(22, 32, 87, 0.75);
}

.heroSwiper .swiper-button-prev::after,
.heroSwiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 900;
}

/* Swiper pagination dots */
.heroSwiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
  width: 10px;
  height: 10px;
}

.heroSwiper .swiper-pagination-bullet-active {
  background: #1a56db;
  opacity: 1;
}

/* =====================================================
   COMO FUNCIONA
   ===================================================== */
.como-funciona {
  padding: 80px 0;
  background: #fff;
}

.como-funciona__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.como-funciona__image img {
  border-radius: 16px;
  width: 100%;
}

.como-funciona__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #1a56db;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a56db;
  margin-bottom: 8px;
}

.step__content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* =====================================================
   FEATURES
   ===================================================== */
.features {
  padding: 80px 0;
  background: #f8faff;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.features__image img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.feature-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-item__text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a56db;
  margin-bottom: 6px;
}

.feature-item__text p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  padding: 0;
  overflow: hidden;
}

.cta-banner__inner {
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #162057 0%, #1a56db 60%, #5ba4e5 100%);
  border-radius: 20px;
  margin: 60px auto;
  overflow: hidden;
  position: relative;
  min-height: 240px;
}

.cta-banner__character {
  flex-shrink: 0;
  height: 260px;
  width: auto;
  object-fit: contain;
  align-self: flex-end;
  margin-left: -10px;
}

.cta-banner__content {
  flex: 1;
  padding: 48px 40px;
}

.cta-banner__content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.3;
}

.cta-banner__photo {
  flex-shrink: 0;
  height: 260px;
  width: auto;
  object-fit: contain;
  align-self: flex-end;
  margin-right: -10px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 60px 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  font-size: 0.875rem;
  color: #d1d5db;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: #fff;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .como-funciona__grid,
  .features__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features__image {
    order: -1;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .cta-banner__character,
  .cta-banner__photo {
    height: 180px;
  }
}

@media (max-width: 640px) {
  /* Mobile nav */
  .navbar__toggle {
    display: flex;
  }

  .navbar__nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
  }

  .navbar__nav.is-open {
    display: block;
  }

  .navbar__nav ul {
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
  }

  .btn--download {
    display: none;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .cta-banner__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .cta-banner__character {
    margin-left: 0;
    height: 140px;
  }

  .cta-banner__photo {
    margin-right: 0;
    height: 140px;
  }

  .cta-banner__content {
    padding: 32px 24px;
  }
}
