:root {
  --dm-red: #c61d23;
  --dm-red-dark: #a5181d;
  --dm-dark: #212529;
  --dm-light: #f8f9fa;
  --dm-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--dm-dark);
  line-height: 1.6;
  background-color: var(--dm-white);
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: var(--dm-red);
  box-shadow: 0 2px 15px rgba(198, 29, 35, 0.3);
  padding: 0.8rem 0;
  border-bottom: 3px solid var(--dm-red-dark);
}
.nav-link {
  font-weight: 500;
  color: var(--dm-light) !important;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}
.nav-link:hover {
  color: var(--dm-white) !important;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Carousel / Hero */
.hero-carousel-item {
  height: 80vh;
  min-height: 500px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../assets/img/background_dm.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-carousel-item h1 {
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 2.5rem;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .hero-carousel-item h1 {
    font-size: 3.2rem;
  }
}

.carousel-control-prev,
.carousel-control-next {
  display: none !important;
}

/* Seções */
.section-padding {
  padding: 80px 0;
}

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

  header.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

.section-title-border {
  border-left: 5px solid var(--dm-red);
  padding-left: 20px;
  margin-bottom: 30px;
}

.service-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card-wrapper {
  flex: 0 1 300px;
  display: flex;
  align-items: stretch;
}

.service-card {
  width: 100%;
  border: 1px solid rgba(198, 29, 35, 0.1);
  border-radius: 15px;
  background: white;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--dm-red);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(198, 29, 35, 0.15);
  border-color: var(--dm-red);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.service-card:hover i {
  transform: scale(1.2) rotate(5deg);
}

.btn-dm {
  background-color: var(--dm-red);
  color: white;
  border: 2px solid var(--dm-red);
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-dm:hover {
  background-color: transparent;
  color: var(--dm-red);
  border-color: var(--dm-red);
}

/* Red Background Section */
.bg-dm-red {
  background-color: var(--dm-red);
  color: white;
  border-top: 5px solid var(--dm-red-dark);
  border-bottom: 5px solid var(--dm-red-dark);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  background-color: #20ba5a;
  color: #fff;
  transform: scale(1.1) rotate(10deg);
}

/* Partners Section */
.partner-card {
  border: 2px solid transparent;
  border-radius: 20px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
}

.partner-card .btn-dm {
  margin-top: auto;
  width: fit-content;
  align-self: center;
}
.partner-card:hover {
  border-color: var(--dm-red);
  box-shadow: 0 15px 45px rgba(198, 29, 35, 0.1);
}

.partner-logo-img {
  filter: grayscale(100%);
  transition: all 0.5s ease;
  padding: 20px;
}
.partner-card:hover .partner-logo-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Form Styles */
.form-control:focus {
  border-color: var(--dm-red);
  box-shadow: 0 0 0 0.25rem rgba(198, 29, 35, 0.25);
}
