/* Estilos personalizados para o site de Engenharia Civil */

/* Estilos gerais */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --gray-color: #95a5a6;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

.section-title p {
  font-size: 18px;
  color: var(--gray-color);
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-outline-primary {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Header */
.navbar {
  background-color: white;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.navbar-brand img {
  max-height: 50px;
}

.navbar-nav .nav-link {
  color: black;
  font-weight: 600;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-nav .nav-link {
  color: var(--dark-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

/* Banner / Hero */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider .carousel-item {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slider .carousel-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

/* Serviços */
.services-section {
  background-color: var(--light-color);
}

.service-item {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

/* Sobre */
.about-section {
  position: relative;
}

.about-image {
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  transition: all 0.5s ease;
}

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

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
}

.about-features {
  margin-top: 30px;
}

.about-feature-item {
  margin-bottom: 15px;
}

.about-feature-item i {
  color: var(--secondary-color);
  margin-right: 10px;
}

/* Estatísticas */
.stats-section {
  background: url('../images/stats-bg.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  color: white;
}

.stats-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  margin-bottom: 30px;
}

.stat-item i {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.stat-item .stat-count {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 18px;
  margin-bottom: 0;
}

/* Portfólio / Obras */
.portfolio-section {
  background-color: white;
}

.portfolio-filters {
  margin-bottom: 30px;
  text-align: center;
}

.portfolio-filters button {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 20px;
  margin: 0 5px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-filters button.active,
.portfolio-filters button:hover {
  color: var(--secondary-color);
}

.portfolio-item {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  transition: all 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.portfolio-overlay-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.portfolio-overlay-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.portfolio-overlay-content p {
  margin-bottom: 15px;
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Depoimentos */
.testimonials-section {
  background-color: var(--light-color);
}

.testimonial-item {
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin: 15px;
}

.testimonial-content {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.testimonial-content:before {
  content: '\201C';
  font-size: 60px;
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: -20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}

.testimonial-author-info h4 {
  margin-bottom: 5px;
  font-size: 18px;
}

.testimonial-author-info p {
  margin-bottom: 0;
  color: var(--gray-color);
}

/* Equipe */
.team-section {
  background-color: white;
}

.team-member {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.team-img {
  position: relative;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  transition: all 0.5s ease;
}

.team-social {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.team-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-social ul li {
  display: inline-block;
  margin: 0 5px;
}

.team-social ul li a {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: white;
  color: var(--dark-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.team-social ul li a:hover {
  background: var(--secondary-color);
  color: white;
}

.team-info {
  background: white;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.team-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.team-info p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.team-member:hover .team-img img {
  transform: scale(1.1);
}

.team-member:hover .team-social {
  opacity: 1;
}

/* Parceiros */
.partners-section {
  background-color: var(--light-color);
}

.partner-item {
  text-align: center;
  margin: 15px;
}

.partner-item img {
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Contato */
.contact-section {
  background-color: white;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  margin-bottom: 20px;
}

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

.contact-info-content h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.contact-info-content p {
  margin-bottom: 0;
}

.contact-form .form-control {
  height: 50px;
  border-radius: 0;
  margin-bottom: 20px;
}

.contact-form textarea.form-control {
  height: 150px;
}

.contact-map {
  height: 400px;
  margin-top: 30px;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 70px 0 0;
}

.footer-widget {
  margin-bottom: 40px;
}

.footer-widget h3 {
  font-size: 22px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-widget p {
  margin-bottom: 20px;
}

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

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

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: var(--secondary-color);
  text-decoration: none;
  padding-left: 5px;
}

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

.footer-social li {
  display: inline-block;
  margin-right: 10px;
}

.footer-social li a {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social li a:hover {
  background: var(--secondary-color);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 30px;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Botão voltar ao topo */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: none;
  z-index: 999;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: var(--dark-color);
  color: white;
}

/* Responsividade */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 15px;
    margin-top: 15px;
  }
  
  .navbar-nav .nav-link {
    color: var(--dark-color);
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .section-title h2 {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 26px;
  }
  
  .section-title p {
    font-size: 16px;
  }
  .hero-section .carousel-item {
    height: 600px; /* Ajuste conforme necessário */
}

.hero-section .carousel-item > div {
    height: 100%;
    background-size: cover;
    background-position: center;
}

  
}
