:root {
  --main-color: #54514E;
  --contrast-color: #A6927D;
  --mulserv-green-dark: #0e1815;
  --mulserv-brown: #856445;
  --mulserv-brown-light: #a07e5a;
  --mulserv-brown-dark: #6a5037;
  --mulserv-cream: #f5f0e9;
  --mulserv-gray: #e0e0e0;
  --white: #ffffff;
  --black: #000000;
  --buttom-color: #e4c4a8;
  --buttom-hover-color: #bb9e85;
  --radius: 0.5rem;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--main-color);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.container-custom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 2rem;
  font-weight: 500;
  color: var(--mulserv-brown);
  margin-bottom: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--buttom-color);
  color: var(--main-color);
  padding: 2% 2.5%;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--buttom-hover-color);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: white;
  color: var(--main-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background-color: #e4e4e4;
}

.rounded-image {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.full-width {
  width: 100%;
}

.bg-cover-variable {
  position: relative;
 
  z-index: 1;
  overflow: hidden;
}

/* ::after overlay herdando a cor do elemento (usando background-color já aplicado) */
.bg-cover-variable::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-color: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  opacity: 0.2; /* controla a intensidade do overlay */
  z-index: -1;
  pointer-events: none;
}


/* Animations */
@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slide-up {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.7s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background: #54514E;
  background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(84, 81, 78, 0) 98%); */
  /* background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: var(--main-color);
  border-bottom: 1px solid var(--contrast-color);
  padding: 0.75rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 17%;
}

.text-logo {
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}


.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links li:last-child a
{
  padding: 5% 11%; 
  color: var(--main-color);
}

.nav-links li:last-child a:hover::after {
  transform: scaleX(0)
}


.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: var(--main-color);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#svg-container
{
  width: 28%;
  margin-bottom: 5%;

}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  opacity: 0.8;
  z-index: 1;
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/hero-pattern.svg');
  opacity: 0.8;
  z-index: 2;
  background-color: var(--main-color);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6%;

}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.arrow-right {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow-right {
  transform: translateX(4px);
}

.animation-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 5;
  animation: pulse 4s infinite;
}

.circle-1 {
  width: 150px;
  height: 150px;
  background-color: var(--mulserv-brown);
  opacity: 0.1;
  top: 20%;
  right: -75px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  background-color: var(--main-color);
  opacity: 0.1;
  bottom: 10%;
  left: -100px;
  animation-delay: 1s;
}

/* Stats Section */
.stats {
  background-color: var(--mulserv-brown);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats .pattern-overlay {
  opacity: 0.1;
  z-index: 1;
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  transition: transform 0.5s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background-color: #fff;

}

.section-with-bg {
  position: relative;
  z-index: 1;
  overflow: hidden;
  --bg-image: url('/image/padrao.jpg'); /* valor default */
}

.section-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-blend-mode: lighten;
  opacity: 0.15;
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 0;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent 95%);
  z-index: 1;
}

.service-card:hover .card-bg {
  transform: scale(1.1);
}

.service-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: white;
  background: transparent;
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  backdrop-filter: blur(5px);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  /* background-color: rgba(228, 149, 47, 0.3); */
  /* padding: 1%; */
}

.service-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service-link {
  color: var(--buttom-color);
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--mulserv-cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.service-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--mulserv-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-shape {
  position: absolute;
  width: 60%;
  height: 60%;
  background-color: var(--contrast-color);
  opacity: 0.5;
  border-radius: var(--radius);
  top: -10%;
  left: -10%;
  
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background-color: var(--main-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background-color: #fff;
}

.testimonial-slider {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 33%;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 2rem;
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-rating {
  color: #FFD700;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info h4 {
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.testimonial-nav-btn {
  width: 40px;
  height: 40px;
  background-color: var(--main-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
  background-color: var(--contrast-color);
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background-color: var(--main-color);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  gap: 2%;
}

.contact-card {
  background-color: var(--buttom-color);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  width: 33%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: column;
  align-content: space-around;
  align-items: center;
  font-weight: 500;
}

.contact-card:hover {
  background-color: var(--buttom-hover-color);
  
}

.contact-card a:hover
{
  font-weight: 900;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-form-container {
  background-color: var(--main-color);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  color: white;
}

.contact-form .form-logo {
  
  grid-row: span 2;    /* ocupa duas linhas do grid */
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-white {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group
{
  display: flex;
  flex-wrap: wrap;
    justify-content: center;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background-color: white;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 2px rgba(22, 39, 33, 0.1);
}

.half-width
{
  width: 50%;
}

.form-logo
{
  
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0  0 0; /* Adiciona espaçamento vertical opcional */
}

.form-logo img
{
  max-width: 250px;
  height: auto;
  
}

/* Footer */
.footer {
  background-color: var(--main-color);
  color: #fff;
}

.footer-a1group{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;  
  padding-top: 5%;
}

.footer-a1group h2
{
  margin-bottom: 1rem;
  font-size: 2rem;
  text-transform: uppercase;
  text-align: center;
}

.footer-a1group h2 span
{
  color: var(--contrast-color);
}

#grupo-list
{
  display: flex;
  flex-direction: row;
  margin-top: 2%;
  align-items: center;
  justify-content: space-around;
  gap: 5%;
  width: 100%;

}

.group
{
  width: 15%;
  transition: all 0.3s ease;  
  text-align: center;
}

.group img
{
  padding: 5%;
  transition: 0.3s ease-in-out;
  width: 100% !important;
}

.group:hover img
{
  
  background-color: #353230;
  
}

#footer-logo
{
  margin-bottom: 5%;
}


.footer-top {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-info h3 {
  margin-bottom: 1rem;
}

.footer-info p {
  opacity: 0.8;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact h4 {
  margin-bottom: 1.5rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--contrast-color);
  transform: translateY(-5px);
}

@media (max-width: 1150px) {
  .hero-content
  {
    flex-direction: column-reverse;
  }

}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }

  .hero-content
  {
    flex-direction: column-reverse;
  }


  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo
  {
    width: 50%;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content
  {
    flex-direction: column-reverse;
  }

  #svg-container
  {
    width: 76%;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: auto;
  }

  .testimonial-track
  {
    width: 100%;
  }

  .contact-info
  {
    flex-wrap: wrap;
  }

  .contact-card {
    width: 100%;
  }

  .group
  {
    width: 30%;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 7rem 0 5rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    gap: 3rem;
  }
}
