/* ==========================================================
   VARIÁVEIS GLOBAIS (PSICOLOGIA DE CORES)
   Azul = confiança, educação, estabilidade
   ========================================================== */
:root {
  --blue-primary: rgb(36, 102, 150);   /* azul institucional */
  --blue-accent: #3fa9f5;    /* azul claro (hover/destaque) */
  --blue-dark: #1b4f72;

  --white: #ffffff;
  --gray-light: #f5f7fa;
  --text-dark: #2c3e50;
    
  --header-height: 60px;


  --font-nav: 'Inter', sans-serif;
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  height: var(--header-height);
  background-color: var(--blue-primary);
  color: var(--white);

  z-index: 1000;
}

/* Container interno */
.header-container {
  max-width: 1200px;
  height: 100%;

  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-content {
  padding-top: var(--header-height);
}


/* ==========================================================
   LOGO
   ========================================================== */
.header .logo {
  text-decoration: none;
}

.header .logo h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

/* ==========================================================
   NAVEGAÇÃO – DESKTOP
   ========================================================== */
@media (min-width: 1200px) {

  .mobile-nav-toggle {
    display: none;
  }

  .navmenu ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
  }

  .navmenu a {
    font-family: var(--font-nav);
    font-size: 14px;
    font-weight: 550;
    text-transform: uppercase;

    color: var(--white);
    text-decoration: none;
    position: relative;

    transition: color 0.3s ease;
  }

  /* Linha suave abaixo do link */
  .navmenu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--blue-accent);
    transition: width 0.3s ease;
  }

  .navmenu a:hover::after,
  .navmenu a.active::after {
    width: 100%;
  }

  .navmenu a:hover,
  .navmenu a.active {
    color: var(--blue-accent);
  }
}

/* ==========================================================
   BOTÃO CTA
   ========================================================== */
.header .cta-btn {
  padding: 8px 22px;
  border-radius: 4px;

  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--white);
  border: 2px solid var(--blue-accent);

  transition: background 0.3s ease, color 0.3s ease;
}

.header .cta-btn:hover {
  background-color: var(--blue-accent);
  color: var(--white);
}

/* ==========================================================
   NAVEGAÇÃO – MOBILE
   ========================================================== */
@media (max-width: 1199px) {

  .cta-btn {
    display: none;
  }

  .mobile-nav-toggle {
    font-size: 28px;
    cursor: pointer;
    color: var(--white);
  }

  .navmenu ul {
    display: none;
    position: absolute;
    inset: 80px 20px 20px;

    background-color: var(--white);
    border-radius: 6px;
    padding: 10px 0;

    list-style: none;
    z-index: 9999;
  }

  .navmenu a {
    display: block;
    padding: 14px 20px;

    font-size: 16px;
    font-weight: 500;

    color: var(--text-dark);
    text-decoration: none;
  }

  .navmenu a:hover,
  .navmenu a.active {
    background-color: var(--gray-light);
    color: var(--blue-primary);
  }

  /* Estado ativo */
  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
  }

  .mobile-nav-active .navmenu ul {
    display: block;
  }
}
