html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "EB Garamond", serif;
  background: #39393c;
  color: #f7c948;
  line-height: 1.6;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5vw 14px 5vw;
  background: rgba(40, 40, 43, 0.85);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #4a4a4f;
  position: fixed;
  top: 28px;
  left: 0;
  width: calc(100% - 10vw);
  z-index: 1000;
}
.logo-div {
  display: flex;
  align-items: center;
  justify-items: center;
  gap: 8px;
}
.logo {
  height: 60px;
}
.brand {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #f7c948;
  letter-spacing: 1.5px;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  color: #f7c948;
  text-decoration: none;
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: #fff;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5vw;
  background-image: url("../img/manutencao-industrial.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.hero > * {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 3rem;
  margin: 0 0 20px 0;
  color: #f7c948;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 750px;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.cta {
  background: #f7c948;
  color: #39393c;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-transform: uppercase;
}
.cta:hover {
  background: #fff;
  color: #333;
  transform: translateY(-2px);
}

.content-section {
  padding: 120px 5vw 60px 5vw;
  text-align: center;
  position: relative;
}

.content-section h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 2.2rem;
  margin-bottom: 30px;
}
.content-section p,
.content-section ul {
  font-size: 1.15rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
}
.content-section ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
}
.content-section li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}
.content-section li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  font-size: 1.1em;
}

#sobre {
  background-color: #fff;
  color: #39393c;
}
#sobre h2,
#sobre li::before {
  color: #39393c;
}
#sobre p {
  color: #555;
}

#servicos {
  background-color: #fff;
  color: #39393c;
}
#servicos h2 {
  color: #39393c;
  margin-bottom: 40px; /* More space for title */
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Increased gap */
  margin-top: 25px;
}
.service-item {
  background: #f4f4f4;
  color: #39393c;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0; /* Remove padding to let image fill top */
  width: 280px; /* Adjusted width */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 14px;
  font-family: "EB Garamond", serif;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden; /* To contain the image border radius */
  display: flex;
  flex-direction: column;
}
.service-item img {
  width: 100%;
  height: 180px; /* Fixed height for images */
  object-fit: cover; /* Ensures image covers the area, might crop */
  display: block;
}
.service-item-content {
  padding: 20px;
  text-align: left; /* Align text to left inside card */
}
.service-item h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem; /* Title size */
  color: #39393c;
  margin-top: 0;
  margin-bottom: 10px;
}
.service-item p {
  font-size: 0.95rem; /* Description text size */
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
#servicos > p {
  /* General paragraph in services section */
  color: #555;
  margin-bottom: 30px;
}

#diferenciais {
  background-color: #39393c;
  color: #fff;
}
#diferenciais h2,
#diferenciais li::before {
  color: #f7c948;
}
#diferenciais p,
#diferenciais ul {
  color: #f0f0f0;
}

#contato {
  background-color: #39393c;
  color: #fff;
}
#contato h2 {
  color: #f7c948;
}
.contact-info {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #fff;
}
.contact-info i {
  margin-right: 8px;
  color: #f7c948;
}
.contact-email {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.1rem;
  color: #f7c948;
  text-decoration: none;
  border-bottom: 1px dotted #f7c948;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.contact-email:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.social-icons {
  margin-top: 25px;
}
.social-icons a {
  text-decoration: none;
  color: #f7c948;
  font-size: 2rem;
  margin: 0 15px;
  transition: color 0.2s, transform 0.2s;
}
.social-icons a:hover {
  color: #fff;
  transform: scale(1.15);
}

.section-divider {
  width: 80px;
  height: 3px;
  background-color: #f7c948;
  margin: 70px auto;
  border-radius: 2px;
}
.content-section.bg-light + .section-divider {
  background-color: #cccccc;
}

footer {
  background: #1f1f22;
  color: #f7c948;
  text-align: center;
  padding: 25px 0;
  font-size: 1rem;
  position: relative;
  z-index: 5;
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .content-section h2 {
    font-size: 2rem;
  }
  .brand {
    font-size: 1.8rem;
  }
  nav {
    gap: 20px;
  }
  nav a {
    font-size: 1rem;
  }
  .service-item {
    width: calc(50% - 30px);
  } /* Two items per row */
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 15px 5vw;
    width: calc(100% - 10vw);
  }
  .logo-div {
    flex-direction: column;
  }
  .logo {
    height: 50px;
  }
  .brand {
    font-size: 1.7rem;
    text-align: center;
  }
  nav {
    justify-content: center;
    margin-top: 5px;
    gap: 15px;
  }
  .content-section {
    padding-top: 160px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .content-section h2 {
    font-size: 1.8rem;
  }
  .service-list {
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Adjusted gap for column layout */
  }
  .service-item {
    width: 85%;
    max-width: 350px; /* Max width for single column items */
  }
  .social-icons a {
    font-size: 1.8rem;
    margin: 0 10px;
  }
  .section-divider {
    margin: 60px auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta {
    padding: 12px 28px;
    font-size: 1rem;
  }
  .content-section h2 {
    font-size: 1.6rem;
  }
  .content-section p,
  .content-section ul {
    font-size: 1rem;
  }
  .brand {
    font-size: 1.5rem;
  }
  nav a {
    font-size: 0.9rem;
  }
  .content-section {
    padding-top: 150px;
  }
  .section-divider {
    margin: 50px auto;
    width: 60px;
  }
  .service-item {
    width: 90%;
  } /* Wider items on small screens */
  .service-item img {
    height: 160px;
  }
}
