:root {
  --primary-color: #cdb380;
  --primary-dark: #b39b68;
  --primary-light: #d9c498;
  --dark-color: #333;
  --body-color: #666;
  --light-color: #f8f9fa;
  --transition: all 0.3s ease-in-out;
}

/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--body-color);
  overflow-x: hidden;
  max-width: 100%;
}

html {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  font-weight: 700;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.btn {
  padding: 10px 24px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-outline-light {
  border-color: #00a143;
  color: #00a143;
}

.btn-outline-light:hover {
  background-color: #fff;
  color: var(--primary-color);
}

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

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

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

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

.rounded-4 {
  border-radius: 10px;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.lh-lg {
  line-height: 1.8;
}

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

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--body-color);
  max-width: 800px;
  margin: 0 auto;
}

.icon-box {
  height: 3rem;
  color: var(--primary-color);
}

/* Navbar */
.navbar-area {
  transition: var(--transition);
  z-index: 99;
}

.navbar {
  padding: 20px 0;
  transition: var(--transition);
}

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

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

.navbar-scrolled .nav-link,
.navbar-scrolled .btn-outline-light {
  color: var(--dark-color) !important;
}

.navbar-scrolled .btn-outline-light {
  border-color: #00a143;
  color: #00a143 !important;
}

.navbar-scrolled .btn-outline-light:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

.navbar-brand img {
  max-height: 60px;
  transition: var(--transition);
}

.nav-link {
  color: #000 !important;
  font-weight: 500;
  padding: 10px 15px !important;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: rgba(0, 0, 0, 0.8) !important;
}

.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

/* Imagem de fundo para desktop */
.hero-slide[style*="background-image"] {
  background-image: url('../assets/img/hero-bg.jpg') !important;
}

/* Imagem de fundo para mobile */
@media (max-width: 767.98px) {
  .hero-slide[style*="background-image"] {
    background-image: url('../assets/img/hero-bg-mobile.jpg') !important;
  }
}

/* Overlay removido conforme solicitado */

/* About Section */
.about-section .nav-tabs {
  border-bottom: none;
}

.about-section .nav-link {
  color: var(--body-color) !important;
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 5px;
  margin-right: 10px;
  padding: 8px 15px;
}

.about-section .nav-link.active {
  background-color: var(--primary-color);
  color: #fff !important;
}

.about-section img {
  max-width: 60%; /* Reduzido em 40% conforme solicitado */
  margin: 0 auto;
  display: block;
}

/* Services Section */
.service-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background-color: rgba(205, 179, 128, 0.1);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .service-icon {
    color: var(--primary-color);
    margin-left: auto;
    margin-right: auto;
  }

  .service-item:hover .service-icon {
    background-color: var(--primary-color);
    color: #fff;
  }

  .service-item {
    text-align: center;
  }
}

.service-item {
  padding: 30px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.service-item h4 {
  margin-bottom: 15px;
}

.service-item p {
  margin-bottom: 0;
  color: var(--body-color);
}

/* Portfolio Section */
/* Portfolio Filter Tabs */
.portfolio-filter .nav-link {
  color: #000 !important;
  background-color: transparent;
  border: 1px solid #e9e9e9;
  margin: 0 5px;
  transition: var(--transition);
}

.portfolio-filter .nav-link.active {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  border-color: var(--primary-color);
}

.portfolio-filter .nav-link:hover:not(.active) {
  background-color: #f8f9fa;
}

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

.portfolio-item img {
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-overlay h5 {
  color: #fff;
  margin-bottom: 10px;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

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

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

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
}

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

/* Mantendo o texto branco na seção CTA */
.cta-section h2 {
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .cta-section h2 {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
  }

  .cta-section p {
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
  }

  .cta-section .btn {
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Contact Section */
.contact-icon {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: rgba(205, 179, 128, 0.1);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(205, 179, 128, 0.25);
}

@media (max-width: 767.98px) {
  .contact-info-item {
    text-align: center;
  }

  .contact-info-item .d-flex {
    flex-direction: column;
    align-items: center;
  }

  .contact-icon {
    margin-bottom: 10px;
    margin-right: 0 !important;
  }

  .contact-info-item p {
    text-align: center;
  }
}

/* Footer */
.footer-title {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 15px;
  color: var(--primary-color);
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

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

.footer-contact li {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact li i {
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.footer-bottom-links {
  padding-left: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 0;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

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

/* Responsive Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-toggler {
    color: #000 !important;
    border-color: transparent;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .nav-link {
    color: var(--dark-color) !important;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .about-section .col-lg-6 {
    text-align: center;
  }

  .about-section .nav-tabs {
    justify-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .about-section .nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .about-section p {
    text-align: center;
  }

  .about-section h2,
  .about-section h6 {
    text-align: center;
  }

  .about-section ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
  }

  /* Ajuste das tabs da seção Sobr/* Mobile Styles */
@media (max-width: 767.98px) {
  .about-section .nav-link {
    color: #000 !important;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    margin: 0;
    transition: var(--transition);
    border-radius: 50px;
    padding: 8px 16px;
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    flex-shrink: 0;
  }

  .about-section .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color);
  }

  .about-section .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
  }

  /* Aumentar a imagem da seção Sobre nós em 30% apenas para celular */
  .about-section img {
    max-width: 78%; /* 60% original + 30% de aumento = 78% */
  }

  /* Centralizar textos do Footer */
@media (max-width: 767.98px) {
  .footer-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links,
  .footer-contact {
    text-align: center;
  }

  .footer-contact li {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact li i {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Centralização do logo e texto principal no footer para mobile */
  .footer-widget img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  
  .footer-widget p {
    text-align: center;
  }
  
  /* Centralização do texto de copyright no footer para mobile */
  .footer-bottom .copyright {
    text-align: center;
    margin-bottom: 15px;
  }
}