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

:root {
  --primary: #006ec7;
  --primary-dark: #003f80;
  --light: #f4f9ff;
  --white: #ffffff;
  --text: #122033;
  --muted: #5c6d82;
  --shadow: 0 12px 28px rgba(0, 66, 133, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.header-content {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  width: 190px;
  max-width: 48vw;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.9rem;
  color: var(--primary-dark);
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 120px 24px 80px;
  background-image: url('https://www.fap.com.br/wp-content/uploads/2014/08/banner-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh; /* Ocupa a tela toda */
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(4, 49, 197, 0.61);
  color: var(--white);
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-align: center;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.9rem;
  color: #042244;
}

.hero p {
  color: var(--white);
  max-width: 56ch;
  margin-bottom: 1.5rem;
}

.hero-media img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(0, 84, 166, 0.28);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  background: var(--white);
}

.about {
  background:linear-gradient(#d3ebff,#ffffff);
}

.about h2,
#cursos h2,
.details h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #082d56;
  margin-bottom: 1rem;
}

.about > .container > p {
  max-width: 80ch;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
  align-items: center;
}

.about-highlights article {
  background: var(--white);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 1.2rem;
}

.section-head p {
  color: var(--muted);
}

.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.6rem 0.2rem 1rem;
  scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: #9bcdf5;
  border-radius: 999px;
}

.course-card {
  min-width: 240px;
  max-width: 240px;
  border: none;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 77, 145, 0.2);
}

.course-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.course-card span {
  display: block;
  padding: 0.8rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0b2f59;
  min-height: 70px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  background: rgba(0, 84, 166, 0.95);
  color: var(--white);
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 6px 18px rgba(0, 57, 112, 0.28);
}

.carousel-btn.prev {
  left: -18px;
}

.carousel-btn.next {
  right: -18px;
}

.details {
  background:linear-gradient(#d3ebff,#ffffff);
}

.course-group + .course-group {
  margin-top: 2.3rem;
}

.course-group h3 {
  color: var(--primary-dark);
  margin-bottom: 0.9rem;
  font-size: 1.45rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid #e3f0ff;
}

.detail-card h4 {
  color: #0b3768;
  margin-bottom: 0.6rem;
}

.detail-card p {
  margin-bottom: 0.35rem;
  color: #2f4560;
}

.detail-card .btn {
  margin-top: 0.8rem;
}

.pricing-section {
  background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
}

.pricing-final {
  background: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
}

.pricing-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.pricing-kicker {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 110, 199, 0.14);
  color: #0a3f74;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

.pricing-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #052b53;
  margin-bottom: 0.65rem;
}

.pricing-header p {
  color: #355170;
}

.pricing-grid {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #d9ebff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(3, 68, 132, 0.11);
}

.price-card h3 {
  color: #073260;
  margin-bottom: 0.5rem;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.price-label {
  color: #4b6787;
  font-weight: 600;
}

.price-value {
  margin-top: 0.2rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  color: #003f80;
  font-weight: 800;
}

.price-installment {
  color: #24476d;
  margin-top: 0.35rem;
}

.price-installment strong {
  color: #022f5d;
}

.price-benefits {
  list-style: none;
  margin: 1rem 0 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.price-benefits li {
  position: relative;
  padding-left: 1.4rem;
  color: #2a496b;
}

.price-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0e8f4e;
  font-weight: 700;
}

.price-card .btn {
  width: 100%;
}

.price-card-featured {
  transform: scale(1.02);
  border: 2px solid #2c8be0;
  background: linear-gradient(180deg, #ffffff 0%, #f2f9ff 100%);
  box-shadow: 0 20px 40px rgba(0, 98, 197, 0.26);
}

.price-tag {
  position: absolute;
  top: -12px;
  right: 16px;
  background: linear-gradient(135deg, #ff9f1a, #ff6f00);
  color: #fff;
  font-weight: 800;
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(236, 132, 0, 0.35);
}

.pricing-urgency {
  margin-top: 1.2rem;
  text-align: center;
  font-weight: 700;
  color: #0d4d86;
  background: #e1f0ff;
  border: 1px dashed #7ab8ee;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.card:hover::before { transform: scaleX(1); }

.footer {
  background: #ffffff;
  color: #dbe9f8;
  padding-top: 2.5rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.footer-logo {
  width: 160px;
  filter: brightness(1.2);
  margin-bottom: 0.5rem;
}

.footer h4 {
  color: #1c069b;
  margin-bottom: 0.45rem;
}

.footer h2 {
  color: #4f4f50;
  margin-bottom: 1.45rem;
}
.copyright {
  margin-top: 1.4rem;
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(204, 226, 255, 0.25);
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 90;
  animation: pulse 1.9s infinite;
}

.whatsapp-float svg {
  width: 34px;
  fill: #fff;
}

.tooltip {
  position: absolute;
  right: 74px;
  white-space: nowrap;
  background: #122033;
  color: #fff;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 10px 24px rgba(0, 0, 0, 0.25);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 10px 24px rgba(0, 0, 0, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 24px rgba(0, 0, 0, 0.25);
  }
}

@media (max-width: 980px) {
  .hero-content,
  .about-highlights,
  .footer-content,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 84px;
    right: 4%;
    display: none;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 170px;
  }

  .nav.open {
    display: flex;
  }

  .section {
    padding: 4.5rem 0;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
  }
}
