/* fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

@font-face {
  font-family: 'Nohemi';
  src: url('./fontes/Nohemi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Nohemi';
  src: url('./fontes/Nohemi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html,
body {
  height: 100%;
  background: linear-gradient(180deg, #7b91c7 0%, #e6eaff 40%, #fff 100%);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  box-shadow: 0 2px 12px rgba(123, 145, 199, 0.08);
  backdrop-filter: blur(8px);
}

/* Wrapper do topo */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 44px;
}

nav {
  display: flex;
  gap: 5rem;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #6366f1;
}

.auth-buttons .entrar {
  background: transparent;
  color: #fff;
}

.auth-buttons .entrar:hover {
  background: #fff;
  color: #111;
}

.auth-buttons .criar-conta {
  background: #fff;
  color: #111;
  border: none;
  box-shadow: 0 2px 8px rgba(123, 145, 199, 0.08);
}

.auth-buttons .criar-conta:hover {
  background: #6d7dfc;
  color: #e6eaff;
}

/* menu hamburguer */
.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 30px;
}

.hamburger span {
  height: 3px;
  width: 24px;
  background: white;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: rgba(123, 145, 199, 0.98);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
  min-width: 220px;
}

.menu-toggle:checked~.mobile-nav {
  display: flex;
}

.mobile-nav a {
  color: white;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* botoes de entrar e criarconta mobile */
.mobile-auth-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-auth-buttons button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-entrar {
  background: #6d7dfc;
  color: white;
  border: 1.5px solid white;
}

.mobile-entrar:hover {
  background: white;
  color: #7b91c7;
}

.mobile-criar-conta {
  background: white;
  color: #7b91c7;
}

.mobile-criar-conta:hover {
  background: #6d7dfc;
  color: white;
}

/* MAIN HERO */
main {
  margin-top: 120px;
  flex: 1;
}

.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.hero-img {
  width: 20em;
  margin-bottom: -15px;
  position: relative;
  z-index: 2;
}

.white-blur {
  width: 250px;
  height: 80px;
  margin: -50px auto 24px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 60%, rgba(123, 145, 199, 0.15) 100%);
  filter: blur(18px);
  border-radius: 50px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.highlight {
  color: #6d7dfc;
}

.hero p {
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 1050px;
  margin-inline: auto;
  color: #000;
}

.cta-link {
  display: inline-block;
  margin-bottom: 36px;
  color: #2563eb;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* FOOTER */
footer {
  width: 100%;
  background: #f4f8ff;
  box-shadow: 0 -2px 12px rgba(213, 220, 236, 0.185);
  padding: 14px 0 4px;
}

.footer-content {
  max-width: 1900px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-footer img {
  height: 36px;
}

.footer-termo a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
}

.footer-termo a:hover {
  text-decoration: underline;
}

.social-icons a {
  margin: 0 8px;
  color: #333;
  transition: color 0.2s;
}

.social-icons a:hover {
  color: #6d7dfc;
}

.copyright {
  font-size: 13px;
  color: #555;
}

.quem-somos {
  padding: 80px 20px 0px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

.quem-somos .section-title {
  font-family: 'Nohemi', sans-serif;
  color: #111;
  margin-bottom: 24px;
}

.quem-somos .section-description {
  font-size: 18px;
  max-width: 800px;
  color: #444;
}

.quem-somos .valores {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-bottom: 40px;
  /* evita sobreposição com o footer */
}

.quem-somos .valor {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 24px;
  max-width: 300px;
  text-align: left;
  border: 6px solid #6d7dfc;
}

.quem-somos .valor h3 {
  font-size: 22px;
  color: #2563eb;
  margin-bottom: 12px;
}

.quem-somos .valor p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

/* HEADER DINAMICO - deu certo no teste, entao manter e dar uma melhorada,
pra depois ser implementado em todas as paginas de forma funcional */

.usuario-logado {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usuario-perfil-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 12px 6px 6px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s;
}

.usuario-perfil-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

/* avatar circular com inicial */
.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6d7dfc;
  border: 2px solid #fff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-avatar-inicial {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.header-avatar-sm {
  width: 28px;
  height: 28px;
}

.usuario-nome {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.btn-sair {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #000;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-sair:hover {
  background: #6d7dfc;
  border-color: #6d7dfc;
  color: #fff;
}

/* RESPONSIVIDADE */

/* mobile portrait */
@media (max-width: 767px) {
  header {
    padding: 16px 20px;
  }

  .desktop-nav,
  .auth-buttons {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  main {
    margin-top: 80px;
  }

  .hero-img {
    width: 13em;
  }

  .quem-somos {
    padding: 60px 20px 20px 20px;
  }

  .quem-somos .section-title {
    font-size: 30px;
  }

  .quem-somos .section-description {
    font-size: 16px;
  }

  .quem-somos .valores {
    flex-direction: column;
    align-items: center;
  }

  .quem-somos .valor {
    width: 100%;
    max-width: 90%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {
  header {
    padding: 12px 20px;
  }

  .logo img {
    height: 36px;
  }

  .desktop-nav,
  .auth-buttons {
    display: none !important;
  }

  .mobile-menu {
    display: block !important;
  }

  .hamburger {
    display: flex !important;
  }

  main {
    margin-top: 70px;
  }

  .hero-img {
    width: 160px;
  }

  .quem-somos {
    padding: 40px 20px 20px 20px;
  }

  .quem-somos .section-title {
    font-size: 24px;
  }

  .quem-somos .section-description {
    font-size: 14px;
  }

  .quem-somos .valores {
    margin-top: 20px;
    gap: 20px;
  }
}

/* tablet portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  header {
    padding: 20px 30px;
  }

  .desktop-nav,
  .auth-buttons {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .quem-somos .section-title {
    font-size: 36px;
  }

  .quem-somos .section-description {
    font-size: 17px;
  }

  .quem-somos .valores {
    gap: 32px;
  }

  .quem-somos .valor {
    max-width: 45%;
  }
}

/* tablet landscape */
@media (min-width: 768px) and (max-width: 1279px) and (orientation: landscape) {
  header {
    padding: 18px 24px;
  }

  .logo img {
    height: 38px;
  }

  nav {
    display: flex;
    gap: 2.5rem;
  }

  nav a {
    font-size: 14px;
    padding: 6px 0;
  }

  .auth-buttons {
    display: flex;
  }

  .auth-buttons button {
    padding: 10px 18px;
    font-size: 14px;
    margin-left: 8px;
  }

  .mobile-menu,
  .hamburger {
    display: none;
  }

  .quem-somos {
    padding: 60px 20px 20px 20px;
  }

  .quem-somos .section-title {
    font-size: 38px;
  }

  .quem-somos .section-description {
    font-size: 17px;
  }

  .quem-somos .valores {
    gap: 32px;
  }

  .quem-somos .valor {
    max-width: 280px;
  }
}

/* tablet landscape maior */
@media (min-width: 1024px) and (max-width: 1279px) and (orientation: landscape) {
  nav {
    gap: 3.5rem;
  }

  nav a {
    font-size: 15px;
  }

  .auth-buttons button {
    padding: 11px 20px;
    font-size: 15px;
  }

  .quem-somos .valores {
    gap: 40px;
  }

  .quem-somos .valor {
    max-width: 300px;
  }
}

/* desktop (1280px ou mais) */
@media (min-width: 1280px) {
  .mobile-menu,
  .hamburger {
    display: none;
  }

  .desktop-nav,
  .auth-buttons {
    display: flex;
  }
}

/* mobile pequeno */
@media (max-width: 480px) {
  header {
    padding: 12px 20px;
  }

  .quem-somos .section-title {
    font-size: 22px;
  }

  .quem-somos .section-description {
    font-size: 14px;
  }

  .quem-somos .valor h3 {
    font-size: 20px;
  }

  .quem-somos .valor p {
    font-size: 15px;
  }
}