/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-size: 100%;
  line-height: 1.5;
}

/* Mídia */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Inputs e botões */
input, button, textarea, select {
  font: inherit;
}

/* Links (reset básico) */
a {
  text-decoration: none;
}

/* Layout principal */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: sans-serif;
  background-color: #1E1E3F;
  color: #FFFFFF;
  padding-bottom: 60px;
}

/* Estilo para o título h1 */
.rbs-assessoria {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, 1px -1px 0px #fff, -1px 1px 0px #fff;
}

/* Botões */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Header */
header {
  background-color: #007ACC;
  padding: 40px 20px 20px;
  text-align: center;
}

header h1 {
  font-family: 'Sugo Display', 'League Spartan', sans-serif;
  font-weight: normal;
  font-size: 3rem;
  text-transform: uppercase;
}

/* Navigation */
nav {
  background-color: #005A9E;
  padding: 10px;
  text-align: center;
}

nav button {
  background: none;
  border: none;
  color: #FFFFFF;
  margin: 0 15px;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

nav button:hover {
  text-decoration: underline;
}

nav button:focus {
  outline: none;
}

/* Sections gerais */
section {
  padding: 20px;
}

/* Serviços */
#servicos {
  display: none;
  margin: 0 auto;
  max-width: 800px;
}

#servicos ul {
  list-style-type: disc;
  margin-left: 20px;
}

#servicos li {
  margin-bottom: 10px;
}

/* Sobre Nós - CORREÇÕES APLICADAS */
#sobre-nos {
  display: none;
  margin: 0 auto;
  max-width: 800px;
}

.sobre-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.sobre-carousel {
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: transparent;
}

/* CORREÇÃO: Ajuste para as imagens não cortarem as cabeças e remoção do fundo branco */
.sobre-carousel img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  background-color: transparent;
  margin: 0 auto;
  display: block;
}

.sobre-content {
  width: 100%;
}

.sobre-content p {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.6;
}

/* Contato */
#contato {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2A2A5E;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #FFFFFF;
  z-index: 999;
}

#contato button {
  background: #003366;
  color: #FFFFFF;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

#contato button:hover {
  background: #FFFFFF;
  color: #003366;
}

#contato a {
  display: block;
  color: #FFFFFF;
  margin: 10px 0;
  font-weight: bold;
  transition: color 0.3s;
}

#contato a:hover {
  color: #003366;
  background: #FFFFFF;
  padding: 5px;
  border-radius: 5px;
}

/* Footer */
footer {
  background-color: #003366;
  padding: 10px;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 100;
}

footer p a {
  color: #FFFFFF;
  transition: all 0.3s ease;
}

footer p a:hover {
  background: #FFFFFF;
  color: #003366;
  padding: 5px;
  border-radius: 5px;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  margin: 0 5px;
}

.social-icons img {
  width: 35px;
  height: 35px;
  margin: 0 3px;
  border-radius: 20%;
  object-fit: contain;
  transition: box-shadow 0.3s ease;
}

.social-icons a:hover img,
.social-icons a:focus img {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Estilos do carrossel principal */
.carousel {
  width: 80%;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel img {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Ajustes nos controles do carrossel */
.slick-prev, .slick-next {
  font-size: 24px;
  color: #FFFFFF;
  z-index: 1;
}

.slick-prev:hover, .slick-next:hover {
  color: #007ACC;
}

.slick-dots {
  bottom: -30px;
}

.slick-dots li button:before {
  color: #FFFFFF;
}

.slick-dots li.slick-active button:before {
  color: #007ACC;
}

/* Ajuste para telas maiores */
@media (min-width: 768px) {
  .sobre-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .sobre-carousel {
    width: 45%;
  }

  .sobre-content {
    width: 55%;
    padding-left: 20px;
  }
}

/* Estilos do Slick para o carrossel da seção Sobre Nós */
.sobre-carousel .slick-prev, 
.sobre-carousel .slick-next {
  z-index: 1;
}

.sobre-carousel .slick-prev {
  left: 10px;
}

.sobre-carousel .slick-next {
  right: 10px;
}

.sobre-carousel .slick-dots {
  bottom: -30px;
}

.sobre-carousel .slick-dots li button:before {
  color: #FFFFFF;
}

.sobre-carousel .slick-dots li.slick-active button:before {
  color: #007ACC;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  nav button {
    display: block;
    width: 100%;
    margin: 5px auto;
  }

  .social-icons img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  nav {
    font-size: 0.8rem;
  }

  .social-icons img {
    width: 25px;
    height: 25px;
  }

  /* Ajuste adicional para mobile */
  .sobre-carousel img {
    max-height: 250px;
  }
}
