/* === COMPONENTES: TOPO DO SITE === */
section.topo-do-site {
  padding: 40px 4%;
  display: flex;
  align-items: center;
  justify-content: center;
}

section.topo-do-site .flex {
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.topo-do-site .txt-topo-site {
  max-width: 50%;
  text-align: left;
}

.topo-do-site .txt-topo-site h1 {
  font-size: 41px;
  line-height: 45px;
  color: var(--cor-texto);
}

.topo-do-site .txt-topo-site h1 span {
  color: var(--cor-destaque);
  display: inline-block;
}

.topo-do-site .txt-topo-site p {
  margin: 20px 0;
  max-width: 500px;
  color: var(--cor-texto);
}

.topo-do-site .img-topo-site {
  width: 50%;
  display: flex;
  justify-content: center;
}

.topo-do-site .img-topo-site img {
  max-width: 70%;
  height: auto;
  animation: flutuar 2s ease-in-out infinite alternate;
}

/* === COMPONENTES: ESPECIALIDADES === */
section.especialidades {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 4%;
}

section.especialidades .flex {
  gap: 30px;
}

.especialidades .especialidades-box {
  color: var(--cor-texto);
  padding: 30px;
  border-radius: 40px;
  border: 2px solid gray;
  margin-top: 45px;
  transition: var(--transition-padrao);
}

.especialidades .especialidades-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--cor-destaque);
}

.especialidades .especialidades-box i {
  font-size: 90px;
  color: var(--cor-destaque);
}

.especialidades .especialidades-box h3 {
  font-size: 28px;
  margin: 10px 0;
}

/* === COMPONENTES: SOBRE === */
section.sobre {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 4%;
}

section.sobre .flex {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sobre .txt-sobre {
  color: var(--cor-texto);
}

.sobre .txt-sobre h2 {
  font-size: 40px;
  line-height: 40px;
  margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
  color: var(--cor-destaque);
  display: inline;
}

.sobre .txt-sobre p {
  margin: 20px 0;
  text-align: left;
  line-height: 1.6;
  max-width: 600px;
}

.img-sobre img {
  width: 100%;
  height: auto;
}

/* === COMPONENTES: PORTFÓLIO === */
section.portfolio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 4%;
  box-shadow: 0 0 40px 10px var(--cor-destaque);
}

section.portfolio .flex {
  justify-content: space-around;
  margin-top: 60px;
}

.img-port {
  width: 360px;
  height: 460px;
  background-size: cover;
  background-position: 100% 0%;
  transition: 10s;
  cursor: pointer;
  border-radius: 40px;
  position: relative;
}

.img-port:hover {
  background-position: 100% 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.385);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: white;
  opacity: 0;
  transition: 0.5s;
}

.overlay:hover {
  opacity: 1;
}

/* === COMPONENTES: FORMULÁRIO === */
form {
  max-width: 500px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input,
form textarea {
  width: 100%;
  background-color: rgb(45, 45, 45);
  border: 0;
  outline: 0;
  padding: 20px 15px;
  border-radius: 15px;
  color: white;
  font-size: 18px;
}

form textarea {
  height: 200px;
  resize: none;
}

form .btn-enviar {
  margin-top: 20px;
  text-align: center;
}

form .btn-enviar button {
  width: 200px;
}

#statusMensagem {
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

.spin {
  animation: spin 1s linear infinite;
  -webkit-text-stroke: 1px black;
}

.btn-contato {
  background-color: red;
  color: black;
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.2s;
  display: inline-block;
}

.btn-contato:hover {
  box-shadow: 0px 0px 8px red;
  transform: scale(1.05);
  color: black !important;
}

/* Estilo no modo claro */
body.light-mode .btn-contato {
  background-color: #1ab7d2;
  color: white;
}

body.light-mode .btn-contato:hover {
  box-shadow: 0 0 8px #1ab7d2;
  color: white !important;
}

.voltar-container {
  text-align: right;
  margin-bottom: 20px;
}

.btn-voltar-site {
  background-color: red;
  color: black;
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.2s;
  display: inline-block;
}

.btn-voltar-site:hover {
  box-shadow: 0px 0px 8px red;
  transform: scale(1.05);
  color: black !important;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--cor-destaque);
  color: black;
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
  transition: opacity 0.4s cubic-bezier(.48,1.2,.44,.93), transform 0.4s cubic-bezier(.48,1.2,.44,.93);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 6px 18px var(--cor-destaque);
}

.img-port:hover {
  background-position: 100% 100%;
}