/* === STYLE.CSS MODERNO E RESPONSIVO === */

/* ---------- VARIÁVEIS ---------- */
:root {
  --cor-principal: #398A92;
  --cor-secundaria: #025170;
  --cor-destaque: #821D2A;
  --cor-fundo: #f7f7f7;
  --cor-texto: #333;
  --radius: 12px;
  --shadow: 0 6px 16px rgba(0,0,0,0.08);
  --trans: 0.3s ease;
  --fonte-principal: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-principal);
  color: var(--cor-texto);
  background: var(--cor-fundo);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ---------- CONTAINERS ---------- */
.wrap {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
  transition: var(--trans);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.header .logo {
  height: 48px;
}

.nav-desktop {
  display: flex;
  gap: 24px;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--cor-secundaria);
  font-weight: 500;
  transition: color var(--trans);
}

.nav-desktop a:hover {
  color: var(--cor-principal);
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search {
  position: relative;
}

.search input {
  padding: 8px 36px 8px 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  outline: none;
  transition: all var(--trans);
}

.search input:focus {
  border-color: var(--cor-principal);
  box-shadow: 0 0 0 3px rgba(57,138,146,0.2);
}

.search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity var(--trans);
}

.search button:hover {
  opacity: 1;
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  z-index: 50;
}

.search-results.active {
  display: block;
}

.search-results .item {
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--trans);
}

.search-results .item:hover {
  background: rgba(57,138,146,0.1);
}

.auth a {
  text-decoration: none;
  font-weight: 600;
  color: var(--cor-destaque);
  transition: var(--trans);
}

.auth a:hover {
  color: var(--cor-principal);
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--cor-secundaria);
  cursor: pointer;
}

/* ---------- MOBILE MENU ---------- */
/* ---------- MENU MOBILE ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 340px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9); /* branco com 90% opacidade */
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px); /* efeito vidro fosco */
  transition: right 0.4s ease;
  z-index: 9999; /* garante que fica acima do conteúdo */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu.active {
  right: 0;
}

.mobile-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  overflow-y: auto; /* garante rolagem se conteúdo for maior que a tela */
}

.close-mobile {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  margin-bottom: 20px;
}

.mobile-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.mobile-links li {
  margin-bottom: 16px;
}

.mobile-links a {
  text-decoration: none;
  color: #111;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mobile-links a:hover {
  color: #008000; /* verde do tema */
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.mobile-search input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.mobile-search button {
  background: #008000;
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  color: #025170;
  gap: 10px;
  margin-top: auto; /* força o login/cadastro ficar no final do menu */
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1); /* separador sutil opcional */
}

.mobile-auth a {
  text-decoration: none;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
}

.mobile-auth .link-login {
  background: transparent;
  border: 1px solid #008000;
  color: #008000;
}

.mobile-auth .link-signup {
  background: #000000;
  color: #fff;
}

/* Esconde menu desktop em telas pequenas */
@media (max-width: 992px) {
  .nav-desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* Desktop */
@media (min-width: 993px) {
  .mobile-menu {
    display: none;
  }
}


/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 5;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* imagem cobre toda a área */
  object-position: center;
}

/* Overlay e conteúdo sobre o slide */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

.hero-content {
  max-width: 720px;
  animation: fadeUp 1s ease forwards;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 28px;
  color: #f0f0f0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}


.btn.primary {
  background: var(--cor-principal);
  color: #fff;

}

.btn.primary:hover {
  background: var(--cor-secundaria);
}

.btn.ghost {
  border: 0px solid #fff;
  color: #fff;
}

.btn.ghost:hover {
  background: #fff;
  color: var(--cor-secundaria);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 80px 0;
  transition: all var(--trans);
}

.surface {
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--cor-principal);
  margin-bottom: 40px;
}

/* GRID BASE */
.grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.grid img {
  border-radius: var(--radius);
}

/* ABOUT / EIXOS / IMPACTO */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform var(--trans), box-shadow var(--trans);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ---------- IMPACT METRICS ---------- */
.metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.metric {
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 2.5rem;
  color: var(--cor-principal);
}

/* ---------- CTA FINAL ---------- */
.cta {
  background: var(--cor-principal);
  color: #fff;
  text-align: center;
}

.cta .btn {
  margin: 10px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--cor-secundaria);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal, .card-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.visible, .card-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 992px) {
  .nav-desktop, .auth {
    display: none;
  }
  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .metrics {
    flex-direction: column;
  }

  .btn {
    width: 80%;
    max-width: 280px;
  }
}
