/* Importação de fontes */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Lato:wght@300;400;700&display=swap");

/* Variáveis CSS */
:root {
  --primary-red: #6b2627;
  --light-red: #dbcbbe;
  --white: #ffffff;
  --light-gray: #efefd8;
  --dark-overlay: rgba(10, 36, 99, 0.8);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estado inicial dos elementos animados */
[data-anime="fade"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estado final após animação */
[data-anime="fade"].fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animação alternativa mais suave */
.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Utilitários */
.section-padding {
  padding: 80px 0;
}

.text-primary-red {
  color: var(--primary-red) !important;
}

.bg-primary-red {
  background-color: var(--primary-red) !important;
}

.bg-light-gray {
  background-color: var(--light-gray) !important;
}

/* Botões customizados */
.btn-custom {
  background-color: var(--primary-red);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-custom:hover {
  background-color: #5a1f20;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(107, 38, 39, 0.3);
  color: white;
}

/* Efeitos premium para cards */
.card-premium {
  transition: var(--transition);
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 30px -15px rgba(10, 36, 99, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

/* Navbar Styles */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-scrolled {
  background-color: var(--primary-red) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
  height: 40px !important;
}

.navbar-nav .nav-link {
  color: var(--light-gray) !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 16px !important;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--light-red) !important;
  background-color: rgba(219, 203, 190, 0.1);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Mobile navbar */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--primary-red);
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
  }

  .navbar-nav .nav-link {
    margin: 5px 0;
    text-align: center;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(10, 36, 99, 0.7), rgba(10, 36, 99, 0.7)),
    url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(107, 38, 39, 0.8),
    rgba(10, 36, 99, 0.6)
  );
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Seção Sobre */
.about-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.about-image-container img {
  transition: transform 0.5s ease;
}

.about-image-container:hover img {
  transform: scale(1.05);
}

.about-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(107, 38, 39, 0.1), transparent);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.about-image-container:hover::before {
  opacity: 0;
}

/* Responsividade Hero */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-section {
    background-attachment: scroll;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Áreas de Atuação */
.card-atuacao {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-atuacao:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 30px -15px rgba(10, 36, 99, 0.3);
}

.icon-container {
  transition: transform 0.3s ease;
}

.card-atuacao:hover .icon-container {
  transform: scale(1.1);
}

.card-atuacao .card-title {
  color: var(--primary-red);
  font-weight: 600;
}

/* Equipe - Cards com flip effect */
.team-card {
  height: 300px;
  perspective: 1000px;
  margin: 0 auto;
  max-width: 250px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-card-back {
  background: var(--primary-red);
  color: white;
  transform: rotateY(180deg);
}

.team-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 6px solid var(--primary-red);
}

.team-card h5 {
  color: var(--primary-red);
  margin-bottom: 5px;
}

.team-card-back h5 {
  color: white;
}

/* Carousel customizado */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  color: var(--primary-red);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Responsividade */
@media (max-width: 768px) {
  .card-atuacao:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .team-card {
    max-width: 250px;
    height: 300px;
  }

  .team-image img {
    width: 150px;
    height: 150px;
  }
}

/* Seção Contato */
.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-container h4 {
  color: var(--primary-red);
  font-weight: 600;
}

.form-floating > .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(107, 38, 39, 0.25);
}

.form-floating > label {
  color: #6c757d;
}

.contact-info {
  padding: 20px;
}

.contact-info h4 {
  color: var(--primary-red);
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.2rem;
}

.contact-details h6 {
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-details p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* Responsividade Contato */
@media (max-width: 768px) {
  .contact-form-container {
    padding: 30px 20px;
  }

  .contact-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
  }

  .contact-icon i {
    font-size: 1rem;
  }
}

/* Footer */
footer {
  background-color: var(--primary-red) !important;
}

.footer-logo {
  height: 60px;
  filter: brightness(0) invert(1);
}

.footer-title {
  color: var(--light-red) !important;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--light-red);
}

.social-links {
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--light-red);
  color: var(--primary-red);
  transform: translateY(-3px);
}

.footer-contact p {
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact i {
  color: var(--light-red);
  width: 16px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
}

.copyright {
  color: var(--light-gray);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--light-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--light-red);
}

/* Ajustes finais e melhorias */
body {
  padding-top: 76px; /* Compensar navbar fixa */
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Melhorias de acessibilidade */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* Loading states */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Animações adicionais */
.card,
.team-card,
.contact-item {
  will-change: transform;
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .social-links {
    display: none !important;
  }

  body {
    padding-top: 0;
  }

  .hero-section {
    background: none !important;
    color: black !important;
  }
}

/* Responsividade do Footer */
@media (max-width: 768px) {
  .footer-logo {
    height: 50px;
  }

  .social-link {
    width: 35px;
    height: 35px;
  }

  .footer-title {
    font-size: 1rem;
  }

  .footer-contact p,
  .footer-links a,
  .copyright,
  .footer-link {
    font-size: 0.85rem;
  }

  body {
    padding-top: 70px;
  }
}

/* Estilos para o combobox */
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: white;
}

.form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(107, 38, 39, 0.25);
}

.form-floating > .form-select {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > .form-select ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Ajustes responsivos para a equipe */
@media (max-width: 991px) {
  /* No tablet, mostrar 2 cards por linha */
  #equipeCarousel .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  /* No mobile, mostrar 1 card por vez com carrossel */
  #equipeCarousel .carousel-item .row {
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    justify-content: center;
  }

  #equipeCarousel .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
  }

  /* Mostrar controles do carrossel apenas no mobile */
  .carousel-control-prev,
  .carousel-control-next {
    display: flex;
  }

  .d-lg-none {
    display: block !important;
  }
}

/* Melhorias no carrossel da equipe */
#equipeCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}

#equipeCarousel .carousel-control-prev,
#equipeCarousel .carousel-control-next {
  width: 5%;
  color: var(--primary-red);
}

#equipeCarousel .carousel-control-prev-icon,
#equipeCarousel .carousel-control-next-icon {
  background-color: var(--primary-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Centralizar conteúdo da seção Contato em mobile */
@media (max-width: 767px) {
  #contato .container .row > div {
    text-align: center;
  }
  #contato .contact-item {
    justify-content: flex-start;
    text-align: left;
  }
  #contato .contact-details {
    text-align: left;
  }
}

@media (max-width: 991px) {
  /*
  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  */
  .navbar-toggler {
    margin-left: auto;
  }
  .navbar-collapse {
    overflow-x: hidden;
  }
}

@media (max-width: 767px) {
  .contact-item {
    flex-direction: row;
    text-align: left;
  }
  .contact-icon {
    margin-left: 0;
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  footer .container .row > div {
    text-align: center;
  }
  footer .social-links {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
  #equipe .container {
    overflow-x: hidden;
  }
}
