html, body {
  height: 100%; /* Ensure the page takes up the entire height */
  margin: 0; /* Remove default margin */
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #000;
  color: #f5b335;
  margin: 0;
}

header, footer {
  width: 100%; /* Ensure header and footer take full width */
}

header {
  background-color: #d19d2c;
  display: flex;
  align-items: center; /* Vertically center content within header */
  padding: 2px;
  flex-wrap: wrap; /* Allow header content to wrap on smaller screens */
}

.logo {
  width: 150px;
  height: auto;
  margin-right: 20px; /* Space between logo and text */
}

.header-text {
  display: flex;
  flex-direction: column; /* Stack h1 and p vertically */
  justify-content: center; /* Vertically center h1 with the logo */
  padding-top: 30px; /* Add padding to move text content down */
}

.header-text h1 {
  margin: 0;
  margin-bottom: 0;
  font-size: 5rem;
  font-weight: 800; /* Montserrat Extra Bold */
  color: #000;
  line-height: 1;
}

.header-text h2.subheader,
.header-text h3.subheader {
  margin: 0;
  margin-top: 0;
  font-size: 0.75rem; /* Smaller size for the subheader */
  font-weight: 600;
  color: #000;
  line-height: 1;
  padding-left: 15px;
  border: none; /* Remove any border */
}

/* Main Content */
main {
  flex-grow: 1;
  padding: 40px 20px;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('TARANTINO ELECTRIC.png');
  background-position: center 105%;
  background-size: 45%; /* or 'cover' */
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .info {
    flex-direction: row;
    justify-content: space-between;
  }

  .services, .contact {
    width: 45%; /* Make services and contact columns on larger screens */
  }
}

.services, .contact {
  width: 100%;
}

h2 {
  border-bottom: 2px solid #f5b335;
  padding-bottom: 5px;
  font-weight: 600;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

ul li {
  margin: 10px 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Footer Message */
.footer-message {
  margin-top: 50px;
  text-align: center;
  font-size: 3.5rem;
  font-weight: 800;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column; /* Stack the header content vertically */
    align-items: center;
    text-align: center;
    margin-bottom: 0; /* Remove bottom margin */
    padding-bottom: 5px;
  }

  .header-text h1 {
    font-size: 3rem; /* Smaller font for header on mobile */
    margin-bottom: 0; /* Remove margin below h1 */
  }

  .header-text h2.subheader, .header-text h3.subheader {
    font-size: 0.65rem; /* Smaller subheader font on mobile */
    padding-left: 0; /* Remove left padding on mobile */
    margin-bottom: 0; /* Remove margin between subheader and content */
  }

  .footer-message {
    font-size: 2rem; /* Smaller font for footer message */
    margin-top: 10px;
  }

  .services, .contact {
    width: 100%; /* Full width on mobile */
  }

  .info {
    flex-direction: column;
    gap: 0px; /* Reduced space between services and contact */
  }

  h2 {
    font-size: 1.2rem; /* Slightly larger h2 on mobile */
  }

  ul li {
    font-size: 1rem; /* Slightly smaller font for list items on mobile */
  }

  .logo {
    width: 150px; /* Correct width of logo on mobile */
    margin-bottom: 10px; /* Reduced space between logo and text */
  }

  .header-text {
    padding-top: 0; /* Reduce the space between logo and text */
    margin-bottom: 0;
  }

  main {
    padding: 0 15px; /* Adjust main content padding */
    padding-top: 0; /* Remove padding-top to reduce space */
  }

  main::before {
    display: none; /* Hide background image on mobile */
  }
}

@media (max-width: 480px) {
  .header-text h1 {
    font-size: 2.5rem; /* Even smaller header text on very small screens */
  }

  .footer-message {
    font-size: 1.5rem; /* Even smaller footer font */
  }

  .logo {
    width: 100px; /* Smaller logo size for very small screens */
  }

  ul li {
    font-size: 0.9rem; /* Smaller font size for list items */
  }
}

