:root {
  --azul-escuro: #091933;
  --bege-claro: #f5e4b9;
  --branco: #ffffff;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--branco);
  color: var(--azul-escuro);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header {
  background-color: var(--azul-escuro);
  color: var(--bege-claro);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center; 
  justify-content: space-between; 
}

.logo img {
  height: 50px;
  display: block;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.nav-link {
  color: var(--bege-claro) !important;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #ffffff !important;
}

.card {
  background-color: var(--azul-escuro);
  color: var(--bege-claro);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

footer {
  background-color: var(--azul-escuro);
  color: var(--bege-claro);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

form input,
form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

form button {
  background-color: var(--azul-escuro);
  color: var(--bege-claro);
  padding: 12px;
  border: none
}

/*CSS do divisor*/

.divisor-onda {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.divisor-onda svg {
    display: block;
    width: 100%;
    height: 100px;
}

/*Fim do CSS do divisor*/

/*CSS da seção carousel*/

.carousel-caption{
    background-color: #091933d4;
    border-radius: 5px;
}

/*FIM CSS da seção carousel*/

/*CSS da seção servicos*/

#servicos h3{
    font-size: 2rem;
    text-align: center;
}
#servicos h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--azul-escuro);
}
.servicos-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}
.card-servico {
    margin: 1vh;
    width: 30% !important;
    background-color: var(--azul-escuro);
    color: var(--bege-claro);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(9, 25, 51, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-direction: column;
    align-items: center;
    cursor: default;
}
.card-servico:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(9, 25, 51, 0.6);
}
.icone-servico {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}
.icone-servico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-servico h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}
.card-servico p {
    font-size: 1rem;
    line-height: 1.5;
}
.icone-servico i{
    font-size: xx-large;
}
.servicos {
    min-height: 100vh;
    position: relative;
    align-items: center;
    padding: 60px 0;
    color: var(--bege-claro);
    z-index: 0;
    margin-top: -100px;
    display: flex;
    text-align: center;
}
.servicos::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-url); /* coloque o caminho correto */
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* controla a intensidade do escurecimento */
    z-index: -1;
}

/*Fim CSS da seção servicos*/

/*CSS da seção sobre*/

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.sobre {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    margin-top: -100px;
}
.texto h3 {
    font-size: 2rem;
    color: var(--azul-escuro);
    margin-bottom: 20px;
}
.texto p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    font-weight: bold;
}
.texto .valores {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}
.texto .valores span {
    font-weight: bold;
    color: var(--azul-escuro);
    text-decoration: underline;
    font-size: 1.05rem;
}
#sobre::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    opacity: 0.4; /* só a imagem fica transparente */
    z-index: -1; /* fica atrás do conteúdo */
}
.valores {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  gap: 30px;
  flex-wrap: wrap;
}
.valor {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--azul-escuro);
  text-align: center;
  border-bottom: 3px solid var(--bege-claro);
  padding: 20px;
  min-width: 120px;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: flutuar 4s ease-in-out infinite;
}
.valor:hover {
  transform: translateY(-5px);
  color: #000;
}
@keyframes flutuar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.imagem img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}
.icone {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: var(--azul-escuro);
}

/*Fim CSS da seção sobre*/

/*CSS da seção de portfolio*/

.item-grande {
    grid-column: span 2;
    grid-row: span 2;
}
.item-alta {
    grid-row: span 2;
}
.portfolio .container {
    width: 100%;
}
.portfolio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    z-index: 0;
    margin-top: -100px;
}
.portfolio::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-url); /* coloque o caminho correto */
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* controla a intensidade do escurecimento */
    z-index: -1;
}
.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    grid-auto-rows: 180px;
}
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.grid-item:hover img {
    transform: scale(1.05);
}

/*Fim CSS da seção de portfolio*/

/*CSS da secão de contato*/

.contato {
  min-height: 100vh;          /* Ocupa no mínimo a altura total da viewport */
  display: flex;              /* Para usar flexbox e alinhar conteúdo */
  flex-direction: column;     /* Conteúdo vertical */
  justify-content: center;    /* Centraliza verticalmente */
  padding: 60px 20px;         /* Espaçamento confortável */
  background-color: #f9f9f9;  /* Pode ajustar a cor de fundo se quiser */
  scroll-margin-top: 80px;    /* Ajusta offset para scroll ao usar âncoras, se tiver header sticky */
}
.contato form {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
.contato-grid {
    display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 30px;
  max-width: 700px;
  min-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.contato-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.item-contato {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.item-contato img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(23%) saturate(2677%) hue-rotate(178deg) brightness(96%) contrast(93%);
}
.item-contato a {
  color: var(--azul-escuro);
  text-decoration: none;
  font-weight: 600;
}
.item-contato a:hover {
  text-decoration: underline;
}
#contato h3{
    font-size: 2rem;
    color: var(--azul-escuro);
    margin-bottom: 20px;
    text-align: center;
}

/*Fim CSS da seção de contato*/

/*CSS dos itens do footer*/

.redes-sociais {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.redes-sociais a img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}
.redes-sociais a:hover img {
    transform: scale(1.2);
}

/*FIM do CSS dos itens do footer*/

/*CSS do Menu */

.nav-header {
  background-color: #091933;
  color: #f5e4b9;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  color: #f5e4b9;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #f5e4b9;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-menu {
  display: flex;
  gap: 20px;
}
.nav-menu a {
  color: #f5e4b9;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #ffffff;
}

/*Fim do CSS do menu*/

/* Responsividade */
@media (max-width: 768px) {
	.grid-portfolio {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		grid-auto-rows: 150px;
	}

	.item-grande,
	.item-alta {
		grid-column: span 1;
		grid-row: span 1;
	}

	.contato-grid {
		flex-direction: row;
		justify-content: space-between;
	}

	.sobre-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.texto .valores {
		justify-content: center;
		flex-wrap: wrap;
	}

	.imagem {
		margin-top: 30px;
	}

	.contato-grid {
		grid-template-columns: 1fr;
	}

	.galeria {
		display: block;
	}

	.galeria.flickity-enabled {
		display: flex;
	}

	.galeria .item {
		width: 80%;
		margin-right: 15px;
		box-sizing: border-box;
	}

	.img-wrapper {
		margin-bottom: 10px;
	}

	.valores {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.valor {
		font-size: 1.3rem;
	}

	.icone {
		width: 36px;
		height: 36px;
	}

    .card-servico {
        width: 90% !important;
    }

      .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #091933;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
  }

  .nav-menu.show {
    max-height: 500px;
    opacity: 1;
  }

  /* animação do botão */
  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

}
