/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: black;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

.nav a {
  margin-left: 1rem;
  font-weight: bold;
  color: black;
}

.nav a.active,
.nav a:hover {
  color: red;
}

.hero {
  color: white;
  text-align: center;
  padding: 8rem 1rem;
  background-image: url('hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
}

.background {
  background-image: url('background.jpeg');
  background-repeat: repeat;
  background-position: top left;
  background-size: 50px 50px;
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
  padding: 30px;
}


.home-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 80%;
  margin: 0 auto;
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  color: black;
  background-color: white;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 1);
}

.about {
  padding: 2rem 1rem;
  text-align: center;
}

.about-text {
  max-width: 600px;
  margin: 0 auto;
}

.services-wrapper {
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  gap: 1rem;
  background-color: white;
}

.service-card img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 8px;
}

.info-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 80%;
  margin: 0 auto;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  color: black;
  width: 100%;
  text-align: center;
  background-color: white;
}

.info-card img {
  max-height: 100%;
  max-width: 90%;
  height: auto;
}

footer {
  background-color: grey;
  display: flex;
  flex-wrap: wrap;
  color: white;
  padding: 1rem;
}

.footer-info,
.footer-map {
  flex: 1 1 300px;
  margin: 0.5rem;
}

.bottom-footer {
  text-align: center;
  background-color: white;
  padding: 0.5rem;
  font-size: 1rem;
}



@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }

  .logo img {
    height: 50px;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .home-wrapper {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
  }

  .service-card img {
    width: 90%;
    max-width: 90%;
    height: auto;
  }

  .info-wrapper {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .info-card {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .info-card img {
    width: 90%;
    max-width: 90%;
    height: auto;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-info,
  .footer-map {
    flex: 1 1 100%;
    margin: 1rem 0;
  }
}

