<?php

  include_once('admin/conexao_menu.php');
  include_once('admin/DAO/DAOempresa.php');
  $DaoEmpresa  = new DaoEmpresa();
  $Empresa =  $DaoEmpresa->PesquisarEmpresa(1);
  foreach($Empresa as $rowEmpresa){
	  $emp_nm = $rowEmpresa['emp_nm'];
	  $emp_email = $rowEmpresa['emp_email'];
	  $emp_endereco = $rowEmpresa['emp_endereco'];
	  $emp_bairro = $rowEmpresa['emp_bairro'];
	  $emp_cidade = $rowEmpresa['emp_cidade'];
	  $emp_numero = $rowEmpresa['emp_numero'];
	  $emp_uf = $rowEmpresa['emp_uf'];
	  $emp_telefone = $rowEmpresa['emp_telefone'];
	  $emp_cep = $rowEmpresa['emp_cep'];
	  $emp_imagem = $rowEmpresa['emp_imagem'];
	  $emp_celular = $rowEmpresa['emp_celular'];
  }

?>
<!-- Topbar Start -->
    <div class="container-fluid bg-light p-0">
      <div class="row gx-0 d-none d-lg-flex">
        <div class="col-lg-7 px-5 text-start">
          <div
            class="h-100 d-inline-flex align-items-center border-start border-end px-3"
          >
            <small class="fa fa-phone-alt me-2"></small>
            <small>+55 <?php echo $emp_telefone; ?></small>
          </div>
          <div class="h-100 d-inline-flex align-items-center border-end px-3">
            <small class="far fa-envelope-open me-2"></small>
            <small><?php echo $emp_email; ?></small>
          </div>
          <!--<div class="h-100 d-inline-flex align-items-center border-end px-3">
            <small class="far fa-clock me-2"></small>
            <small>Seg - Sexta : 08 AM - 19 PM</small>
          </div>-->
        </div>
        <div class="col-lg-5 px-5 text-end">
          <div class="h-100 d-inline-flex align-items-center">
		   <form method="post" class="form-validate">
				<button type="submit" id="pt_br" name="pt_br" class="btn nav-item "><img src="img/br.svg" alt="#" style="width: 30px;"></button>	
				<button type="submit" id="en" name="en" class="btn nav-item "><img src="img/gb.svg" alt="#" style="width: 30px;"></button>	
		  </form>
            <!--<a class="btn btn-square border-end border-start" href=""
              ><i class="fab fa-facebook-f"></i
            ></a>-->
            <!--<a class="btn btn-square border-end" href=""
              ><i class="fab fa-twitter"></i
            ></a>-->
            <a class="btn btn-square border-end" href="https://br.linkedin.com/company/quality-service-renovaveis"
              ><i class="fab fa-linkedin-in"></i
            ></a>
            <a class="btn btn-square border-end" href="https://www.instagram.com/qualityservicerenovaveis/"
              ><i class="fab fa-instagram"></i
            ></a>
          </div>
        </div>
      </div>
    </div>
    <!-- Topbar End -->

    <!-- Navbar Start -->
    <nav class="navbar navbar-expand-lg bg-white navbar-light sticky-top px-4 px-lg-5 py-lg-0">
      <a href="index.php" class="navbar-brand d-flex align-items-center">
        <h1 class="m-0">
          <img src="img/logo.png" alt="#" style="width: 220px;">
        </h1>
      </a>
      <button
	  
        type="button"
        class="navbar-toggler"
        data-bs-toggle="collapse"
        data-bs-target="#navbarCollapse"
      >
        <span class="navbar-toggler-icon"></span>
      </button>
	 
	
	  
      <div class="collapse navbar-collapse" id="navbarCollapse">
        <div class="navbar-nav ms-auto py-3 py-lg-0">
          <a href="index.php" class="nav-item nav-link active">Home</a>
          <a href="sobre.php" class="nav-item nav-link"><?php if($_SESSION['target'] == 'pt-br'){echo 'A Empresa';}else{echo GoogleTranslate::translate($_SESSION['source'], $_SESSION['target'],'A Empresa');} ?></a></a>
          <a href="servicos.php" class="nav-item nav-link"><?php if($_SESSION['target'] == 'pt-br'){echo 'Serviços';}else{echo GoogleTranslate::translate($_SESSION['source'], $_SESSION['target'],'Serviços');} ?></a>
          <a href="clientes.php" class="nav-item nav-link"><?php if($_SESSION['target'] == 'pt-br'){echo 'Projetos e Clientes';}else{echo GoogleTranslate::translate($_SESSION['source'], $_SESSION['target'],'Projetos e Clientes');} ?></a>
          <a href="noticias.php" class="nav-item nav-link"><?php if($_SESSION['target'] == 'pt-br'){echo 'Notícias';}else{echo GoogleTranslate::translate($_SESSION['source'], $_SESSION['target'],'Notícias');} ?></a>
		   
          <!--<div class="nav-item dropdown">
            <a
              href="#"
              class="nav-link dropdown-toggle"
              data-bs-toggle="dropdown"
              >Pages</a
            >
            <div class="dropdown-menu bg-light m-0">
              <a href="feature.html" class="dropdown-item">Features</a>
              <a href="appointment.html" class="dropdown-item">Appointment</a>
              <a href="team.html" class="dropdown-item">Our Team</a>
              <a href="testimonial.html" class="dropdown-item">Testimonial</a>
              <a href="404.html" class="dropdown-item">404 Page</a>
            </div>
          </div>-->
          <a href="contato.php" class="nav-item nav-link"><?php if($_SESSION['target'] == 'pt-br'){echo 'Contato';}else{echo GoogleTranslate::translate($_SESSION['source'], $_SESSION['target'],'Contato');} ?></a>
          <a href="" class="nav-item nav-link"></a>
		   <!--<a href="" class="btn btn-primary py-3 px-5" style="margin-top: 8px;padding-bottom: 1px !important;padding-top: 17px !important;">ENTRAR</a>-->
		   
        </div>
		<a href="admin/login.php" class="btn btn-primary py-3 px-5"><?php if($_SESSION['target'] == 'pt-br'){echo 'ENTRAR';}else{echo GoogleTranslate::translate($_SESSION['source'], $_SESSION['target'],'ENTRAR');} ?></a>
      </div>
    </nav>
    <!-- Navbar End -->