* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #009541;
  --primary-blue: #000;
  --dark-blue: #000;
  --dark-green: #059669;
  --light-green: #229942;
  --background-green: #005c31;
  --emphasis-green: #22c55e;
  --light-green-transparent: rgba(52, 211, 153, 0.15);
}

html {
  scroll-behavior: smooth;
}

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

.logo-container img {
  border-radius: 5px;
  width: 300px;
  margin: 1rem;
}

header {
  background: color-mix(in srgb, var(--primary-blue) 35%, transparent);
  color: white;
  position: absolute;
  top: 25px;
  z-index: 1000;
  width: 100%;
}

header nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  color: white;
  padding: 20px;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 2rem;
  text-transform: uppercase;
  transition: color 0.3s ease, font-size 0.3s ease;
}

header nav a:hover {
  color: var(--emphasis-green);
  font-size: 2.2rem;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg,
      var(--dark-blue) 0%,
      var(--dark-blue) 25%,
      var(--primary-green) 50%,
      var(--dark-blue) 75%,
      var(--primary-blue) 100%);
  background-size: 400% 400%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  animation: gradient-move 120s ease infinite;
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.detran-img {
  width: 150px;
  height: auto;
}

.check-icon {
  background: var(--emphasis-green);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.hero h1 {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 20px;
}

.highlight {
  color: var(--emphasis-green);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--emphasis-green);
  color: white;
}

.btn-primary:hover {
  background: var(--background-green);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.btn-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services {
  padding: 80px 0;
  background: #f8fafc;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1e293b;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border: var(--light-green) 5px solid;
  transition: all 0.2s ease;
}

.service-card img {
  width: 30px;
  height: auto;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.service-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Differentials Section */
.differentials {
  background: white;

  .container {
    max-width: 100%;
    padding: 20px 0;
  }
}

.differentials-header {
  padding-top: 20px;
  width: 100%;
  background-color: var(--light-green);

  .highlight {
    color: white;
  }

  .section-subtitle {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    padding: 20px;
    max-width: max-content;
  }
}

.differentials h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #000;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.differential-card {
  text-align: center;
  padding: 30px 20px;
}

.differential-icon {
  margin-bottom: 20px;
}

.differential-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.differential-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.differential-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Credencial Section */
.credencial {
  padding: 60px 0;
  background: url('imagens/credenciado-bg.avif');
  background-color: rgba(0, 0, 0, 0.8);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  height: 20rem;
}

.credencial-img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.credencial h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.credencial h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.credencial p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Units Section */
.units {
  padding: 60px 0;
  background: #f8fafc;
}

.units h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1e293b;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 50px;
}

.unit-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.unit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.unit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.unit-card h5 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--background-green);
}

.unit-card p {
  color: #64748b;
  line-height: 1.6;
}

.unit-card>img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.unit-card button {
  margin-top: 20px;
  align-self: stretch;
}

.unit-card .phone {
  font-weight: bold;
  color: var(--background-green);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
}

/* Fotos Section */
.photos {
  padding: 80px 0;
  background: linear-gradient(135deg,
      var(--primary-green) 0%, var(--dark-blue) 100%);
}

.photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;

  img {
    max-width: 100%;
    width: 350px;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
}

/* Footer Section */
footer {
  background: white;
  color: var(--dark-blue);
  padding: 20px 0;
  margin-top: 20px;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-right: 20px;
}

.social-medias {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-medias li {
  margin-top: 5px;
  list-style: none;
  display: flex;
  align-items: center;
}

.social-medias li img {
  border-radius: 10px;
  width: 2rem;
  height: 2rem;
  margin-right: 10px;
}

.social-medias li a {
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.all-rights-reserved {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 10px;
  padding: 1rem 0 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .services-grid,
  .differentials-grid,
  .units-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }

  .services h2,
  .differentials h2,
  .units h2,
  .credencial h2,
  footer h2 {
    font-size: 2rem;
  }

  footer {
    padding: 0 15px;
  }

  footer ul {
    margin-left: 15px;
  }

  .footer-logo {
    width: 100%;
    height: auto;
  }
}

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

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .service-card,
  .differential-card,
  .unit-card {
    padding: 20px;
  }
}