@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #0a1e27;
  --secondary-color: #e9c675;
  --text-light: #cbd5e1;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Playfair Display", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
  }
  
.section-subtitle {
    position: relative;
    isolation: isolate;
    margin-bottom: 1rem;
    padding-left: 5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--secondary-color);
  }

.section-subtitle::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 2px;
    width: 4rem;
    background-color: var(--secondary-color);
  }
  
.section-subtitle::after {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-60%, -50%);
    font-size: 8rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0.1;
    z-index: -1;
  }


  .section-title {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 400;
    font-family: var(--header-font);
    color: var(--white);
    text-shadow: 2px 2px 3px var(--primary-color);
  }

  .title-span {
    color: var(--secondary-color);
  }

  .btn {
    padding: 0.75rem 1.5rem;
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--white);
    background-color: transparent;
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
  }
  
  .btn:hover {
    background-color: rgba(10, 30, 39, 0.5);
  }

  .logo a {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--header-font);
    color: var(--white);
  }
  
  img {
    display: flex;
    width: 100%;
  }
  
  a {
    text-decoration: none;
    transition: 0.3s;
  }

  html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.header {
  position: relative;
  height: 100vh;
  
}

.header::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 15rem);
  background-image: radial-gradient(
      rgba(255, 255, 255, 0),
      var(--primary-color)
    ),
    url("/breathearrabida/src/assets/bg-img.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

nav {
  position: relative;
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
  z-index: 9;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  position: absolute;
  right: 1rem;
  top: 68px;
  width: calc(100% - 2rem);
  max-width: 565px;
  padding: 2rem;
  list-style: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3rem;
  background-color: rgba(10, 30, 39, 0.8);
  border-radius: 10px;
  display: none;
}

.nav-links.open {
  display: flex;
  animation: show-nav 0.3s linear forwards;
}

.nav-links.close {
  animation: hide-nav 0.3s linear forwards;
}

.contact-link {
  color: var(--secondary-color);
}
/* Estilos para o submenu */
.submenu {
  position: relative;
  
}

.submenu a {
  color: var(--text-light);
  text-decoration: none;
  padding: 1rem;
  display: block;
  border-radius: 8px 8px 0 0;
}

.submenu a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  
}

.submenu-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%; /* Posiciona o submenu logo abaixo do item "Corporate" */
  left: 0;
  background-color: rgba(10, 30, 39, 0.9);
  display: none; /* Submenu está escondido inicialmente */
  width: 350px;
  border-radius: 0 0 8px 8px;
}

.submenu-list li a {
  width: 350px;
  padding: 1rem 2rem;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.submenu-list li a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Mostra o submenu quando a classe 'open' for adicionada */
.submenu:hover .submenu-list {
  display: block;
  background-color: rgba(10, 30, 39, 0.9);
  
}


  @keyframes show-nav {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  @keyframes hide-nav {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  .nav-links a {
    font-weight: 500;
    color: var(--white);
  }
  
  .nav-links a:hover {
    color: var(--secondary-color);
  }

  .header-container {
    position: relative;
    isolation: isolate;
    height: calc(100% - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-content {
    width: 1000px;
    text-shadow: 2px 2px 3px var(--primary-color);
  }

  .header-content .section-title {
    font-size: 5.5rem;
    font-weight: 500;
    line-height: 7rem;
    
  }
  
  .header-content a {
    color: var(--white);
  }
  
  .header-content a:hover {
    color: var(--secondary-color);
  }

  .corporate {
    background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0),
      var(--primary-color) 8rem
    );
    overflow: hidden;
  }
  
  .section-container {
    padding-top: 0;
    display: grid;
    gap: 5rem 2rem;
    overflow: hidden;
  }
  
  .section-image img {
    max-width: 400px;
    margin-inline: auto;
    border-radius: 5px;
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
  }

  .section-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
  }
  
  .section-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
  }

  .section-content a span {
    transition: 0.3s;
  }
  
  .section-content a:hover span {
    transform: translateX(10px);
  }

  /* Section Container */
.trusted-companies-section {
  background-color: var(--primary-color);
  padding: 3rem 1rem;
  text-align: center;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
}

.trusted-companies-section h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-family: var(--header-font);
}

/* Trusted Companies Logos */
.trusted-companies-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  
}

.trusted-companies-container img {
  max-width: 100%;
  height: auto;
  max-height: 100px; /* Limit logo height */
  object-fit: contain;
  filter: grayscale(100%); /* Optional: Apply grayscale for subtle styling */
  transition: filter 0.3s ease; /* Animation for hover effect */
  padding: 10px;
  margin: 10px;
  
}

.trusted-companies-container img:hover {
  filter: grayscale(0); /* Restore color on hover */
}


  /* Estilo geral da seção */
.galery-section {
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

/* Container com a borda */
.galery-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.9);
  border-radius: 15px; /* Cantos arredondados */
}

/* Estilo do carrossel */
.carousel {
  display: flex;
  transition: transform 0.3s ease-in-out; /* Transição suave */
}

/* Estilo das imagens */
.carousel img {
  width: calc(100% / 6); /* Mostra 4 imagens por página */
  aspect-ratio: 1 / 1; /* Garante imagens quadradas */
  object-fit: cover; /* Ajusta o conteúdo das imagens */
  border: 2px solid var(--primary-color); /* Borda entre imagens */
  box-sizing: border-box;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

  .carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Desativa interações com os controles visuais */
    
  }
  

  .form-section {
    background-color: var(--primary-color);
  }

  .form-section {
    padding: 3rem 1rem;
    background-color: var(--primary-color);
  }
  
  .form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  
  .form-container h2 {
    text-align: center;
    font-family: var(--header-font);
    color: var(--secondary-color);
    margin-bottom: 2rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
  }
  
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.15);
  }
  
  textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .form-group input[type="submit"] {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .form-group input[type="submit"]:hover {
    background-color: #d4b157;
  }
  
  /* Estilo para o select */
select, option {
  background-color: var(--primary-color); /* Define a cor do fundo do select */
  color: white; /* Define a cor do texto */
  padding: 10px; /* Ajusta o padding das opções */
  border: 1px solid #ccc; /* Adiciona uma borda suave */
}

/* Alteração do fundo do select e das opções quando em foco */
select:focus, option:focus {
  outline: none; /* Remove o outline do foco */
  border-color: var(--primary-color); /* Cor da borda ao focar */
  box-shadow: 0 0 5px var(--primary-color); /* Adiciona sombra de foco */
}

/* Estilo quando o mouse passa sobre as opções do select */
select option:hover {
  background-color: var(--secondary-color); /* Altera o fundo das opções para a cor secundaria */
  color: var(--primary-color); /* Altera a cor do texto para a cor primária */
}



/* Container flexível para o conteúdo principal */
.form-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Caixa de informações à esquerda */
.info-box {
  flex: 1;
  max-width: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.info-box h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 1rem;
  font-family: var(--header-font);
}

.info-box p {
  font-size: 1rem;
  color: #fff;
  margin-top: 0.5rem;
}

/* Imagem redonda */
.info-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
  margin-bottom: 1rem;
}

.ceo-name {
  color: var(--secondary-color);
  font-family: var(--header-font);
  font-size: smaller;
}
/* Formulário à direita */
.form-container {
  flex: 2;
  min-width: 300px;
}

/* Responsividade para dispositivos menores */

  .footer {
    background-color: var(--primary-color);
  }
  
  .footer-container{
    display: grid;
    gap: 4rem 2rem;
  }
  
  .footer-col:first-child {
    max-width: 300px;
  }
  
  .footer-logo {
    margin-bottom: 1rem;
  }

  .footer-col p {
    color: var(--text-light);
  }
  
  .footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
  }
  
  .footer-links {
    list-style: none;
    display: grid;
    gap: 1rem;
  }
  
  .footer-links a {
    color: var(--text-light);
  }
  
  .footer-links a:hover {
    color: var(--secondary-color);
  }
  
  .footer-bar {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
  }

  
/* Estilo para o banner de cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  z-index: 1000;
  display: none; /* Inicialmente escondido */
}

/* Link do banner */
.cookie-banner a {
  color: var(--secondary-color);
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

/* Estilo do botão de aceitar */
.cookie-banner button {
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  margin-left: 10px;
}

.cookie-banner button:hover {
  background-color: var(--secondary-color);
}

#decline-cookies {
  background-color: var(--text-light); /* Cor para o botão de recusa */
}

#decline-cookies:hover {
  background-color: var(--secondary-color); /* Cor do botão de recusa quando passa o mouse */
}


  @media (width > 768px) {
    .nav-logo {
      flex: 1;
    }
  
    .nav-links {
      position: static;
      padding: 0;
      display: flex;
      flex-direction: row;
      background-color: transparent;
    }

    .header-container {
        height: calc(100% - 10rem);
      }
    
    
    .section-container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        gap: 10rem 2rem;
      }


    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
      }
 
}

@media (max-width: 768px) {
  .trusted-companies-container {
    grid-template-columns: repeat(3, 1fr); /* 5 linhas de 3 logos */
    padding: 0;
  }



    .form-wrapper {
      flex-direction: column;
      text-align: center;
    }
  
    .info-box {
      max-width: 100%;
    }
  
    .form-container {
      max-width: 100%;
    }

  
}