:root {
  --green: #006b2d;
  --green-dark: #005423;
  --blue: #214b99;
  --gold: #f2c300;
  --text: #263238;
  --muted: #5b6870;
  --bg: #f4f7f8;
  --white: #ffffff;
  --border: #dbe5e8;
  --soft: #eef5f1;
  --shadow: 0 16px 40px rgba(19, 37, 45, 0.08);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

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

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-image {
  height: 100px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  color: #3a434a;
}

.nav-links a {
  transition: 0.2s ease;
}

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

/* HERO */
.hero {
  position: relative;
  background: url("../images/banner-hero.png") center 20% / cover no-repeat;
  color: var(--white);
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-overlay {
  position:absolute;
  inset:0;
  background:
  linear-gradient(
  90deg,
  rgba(6,30,60,0.85) 0%,
  rgba(0,107,45,0.55) 45%,
  rgba(33,75,153,0.55) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 0 0px;
}

.hero h1 {
  font-size: clamp(2.6rem,4.5vw,4.2rem);
  line-height: 1.15;
  margin-bottom: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.18rem;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-note {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
  margin-bottom: 0;
}

/* BOTÕES */
.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* espaço entre ícone e texto */
  min-height: 58px;
  padding: 16px 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: #0d1620;
  box-shadow: 0 12px 24px rgba(242, 195, 0, 0.18);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  backdrop-filter: blur(4px);
}

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

/* SEÇÕES */
section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 25px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--green-dark);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-head p {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* BOXES */
.about-box,
.contact-box,
.highlight-box,
.pending-box {
  background: var(--white);
  border-radius: 24px;
  padding: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-box p,
.highlight-box p,
.pending-box p,
.contact-box p {
  font-size: 1.03rem;
  line-height: 1.8;
}

.about-box p + p,
.highlight-box p + p,
.pending-box p + p {
  margin-top: 14px;
}

.highlight-box {
  background: linear-gradient(135deg, #f8fff9, #eef6ff);
}

.pending-box {
  background: linear-gradient(135deg, #fffdf8, #fff6f2);
  border-left: 6px solid var(--gold);
}

/* BUSCA */
.search-bar {
  max-width: 760px;
  margin: 0 auto 34px;
}

.search-bar input {
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 1rem;
  outline: none;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-bar input:focus {
  border-color: rgba(33, 75, 153, 0.4);
}

/* GRID CURSOS */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.course-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.course-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    135deg,
    rgba(0, 107, 45, 0.15),
    rgba(33, 75, 153, 0.15)
  );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.course-image small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.course-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.course-title {
  color: var(--green-dark);
  font-size: 1.08rem;
  line-height: 1.4;
}

.course-meta {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.course-pill {
  display: inline-block;
  width: fit-content;
  background: var(--soft);
  color: var(--green-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.course-card .btn {
  margin-top: auto;
  width: 100%;
  background: var(--green);
  color: var(--white);
  min-height: 52px;
  font-size: 0.98rem;
}

.course-consult-box {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.course-consult-box h3 {
  color: var(--green-dark);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.course-consult-box p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 20px;
}

.consult-btn {
  background: var(--green);
  color: #fff;
  display: inline-flex;
  gap: 10px;
  min-height: 52px;
}

/* CONTATO */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.contact-item {
  background: #f9fcfd;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
}

/* FOOTER */
footer {
  background: #162126;
  color: rgba(255, 255, 255, 0.86);
  padding: 40px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: 0.25s ease;
}

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

.whatsapp-float img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ESTADOS */
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 22px;
  display: none;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
  .hero {
    min-height: 540px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 620px);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
  }

  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .brand-image {
    height: 48px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 72px 0 70px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
    max-width: 100%;
  }

  .hero p,
  .hero-note {
    max-width: 100%;
  }

  .courses-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(92%, 100%);
  }

  .brand-image {
    height: 44px;
  }

  .hero {
    background-position: center center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(7, 29, 63, 0.82) 0%,
        rgba(0, 107, 45, 0.62) 52%,
        rgba(33, 75, 153, 0.62) 100%
      );
  }

  .hero-grid {
    padding: 58px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.12;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .hero-note {
    font-size: 0.95rem;
  }

  .cta-group {
    gap: 12px;
    margin-bottom: 22px;
  }

  .btn {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    font-size: 1rem;
  }

  section {
    padding: 62px 0;
  }

  .about-box,
  .contact-box,
  .highlight-box,
  .pending-box {
    padding: 22px;
    border-radius: 18px;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}