/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  background-color: #E3F2FD; /* Light blue background */
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  color: #0D47A1; /* Deep blue for headings */
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation Bar */
.navbar {
  background: #0D47A1; /* Deep blue */
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin: 0;
}

.navbar-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: #90CAF9; /* Medium blue */
}

.navbar .cta-button {
  background: #1976D2; /* Vibrant blue */
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
}

.navbar .cta-button:hover {
  background: #1565C0; /* Slightly darker blue */
}

/* Hamburger Menu */
.hamburger {
  display: none; /* Hidden by default */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: 0.4s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
      display: flex; /* Show hamburger menu on mobile */
  }

  .navbar-nav {
      display: none; /* Hide nav links by default on mobile */
      flex-direction: column;
      position: absolute;
      top: 60px; /* Adjust based on navbar height */
      left: 0;
      right: 0;
      background: #0D47A1; /* Deep blue */
      padding: 20px;
      gap: 10px;
      z-index: 999;
  }

  .navbar-nav.active {
      display: flex; /* Show nav links when active */
  }

  .navbar .cta-button {
      display: none; /* Hide CTA button on mobile */
  }
}

/* Header Section */
header {
  background: url('../images/pressurepro_header.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 150px 20px;
}

header h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  color: white;
  text-shadow: 
    -2px -2px 0 #0D47A1,  
     2px -2px 0 #0D47A1,
    -2px  2px 0 #0D47A1,
     2px  2px 0 #0D47A1;
  font-weight: bold;
  letter-spacing: 3px;
}

header p {
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 
    -2px -2px 0 #0D47A1,  
     2px -2px 0 #0D47A1,
    -2px  2px 0 #0D47A1,
     2px  2px 0 #0D47A1;
  font-weight: bold;
  letter-spacing: 2px;
}

.cta-button {
  background: #1976D2; /* Vibrant blue */
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.5rem;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  width: auto; /* Ensure buttons are not too wide on mobile */
}

.cta-button:hover {
  background: #1565C0; /* Slightly darker blue */
}

/* Benefits Section */
.benefits {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 50px 0;
  background: #BBDEFB; /* Light blue */
}

.benefit-item {
  text-align: center;
  max-width: 250px;
  margin: 20px;
  flex: 1 1 250px;
}

.benefit-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #0D47A1; /* Deep blue */
}

/* Content Image Section */
.content-image {
  position: relative;
  overflow: hidden;
  height: 400px; /* Adjust height as needed */
  background: url('../images/pressurepro_content.jpg') no-repeat center center/cover;
  background-attachment: fixed; /* Parallax effect */
  aria-label="Pressure washing in action";
}

/* About Section */
.about {
  padding: 50px 20px;
  text-align: center;
  background: #90CAF9; /* Medium blue */
}

.about a {
  text-decoration: none; /* Remove underline */
  color: inherit; /* Inherit the color from the parent */
}

.about a:hover {
  text-decoration: underline; /* Add underline on hover (optional) */
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0D47A1; /* Deep blue */
}

/* Slideshow Container */
.slideshow-container {
  width: 100%;
  max-width: 800px; /* Smaller width for desktop */
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px; /* Rounded corners for a polished look */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  aspect-ratio: 16 / 9; /* Set a fixed aspect ratio (e.g., 16:9) */
}

/* Slides */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9; /* Match the container's aspect ratio */
}

.slide img {
  width: 100%;
  height: 100%; /* Ensure the image fills the slide */
  object-fit: cover; /* Crop the image to fit the container */
  display: block;
  border-radius: 10px; /* Rounded corners for images */
}

/* Slide Label */
.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark background */
  color: #fff; /* Light text */
  padding: 10px;
  text-align: center;
  font-size: 1.2rem;
  border-bottom-left-radius: 10px; /* Match image corners */
  border-bottom-right-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .slideshow-container {
    max-width: 100%; /* Full width on mobile */
    border-radius: 0; /* No rounded corners on mobile */
    aspect-ratio: auto; /* Allow natural height on mobile */
  }

  .slide {
    aspect-ratio: auto; /* Allow natural height on mobile */
  }

  .slide img {
    border-radius: 0; /* No rounded corners on mobile */
    height: auto; /* Allow natural height on mobile */
  }

  .slide-label {
    border-radius: 0; /* No rounded corners on mobile */
  }
}

/* Testimonial Section */
.testimonials {
  padding: 50px 20px;
  text-align: center;
  background: #BBDEFB; /* Light blue */
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #0D47A1; /* Deep blue */
}

.testimonial-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonial-item {
  background: #E3F2FD; /* Light blue */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  flex: 1 1 250px;
  text-align: left;
}

.testimonial-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.testimonial-author {
  font-weight: bold;
  margin-top: 15px;
  color: #1976D2; /* Vibrant blue */
  text-align: right;
}

/* Contact Section */
.contact {
  padding: 50px 20px;
  background: #90CAF9; /* Medium blue */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.contact-info {
  flex: 1;
  max-width: 400px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0D47A1; /* Deep blue */
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.contact-info a {
  color: #1976D2; /* Vibrant blue */
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 1;
  max-width: 400px;
  background: #E3F2FD; /* Light blue */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #0D47A1; /* Deep blue */
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #0D47A1; /* Deep blue */
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.contact-form textarea {
  height: 100px;
  resize: vertical;
}

.contact-form button {
  background: #1976D2; /* Vibrant blue */
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%; /* Full-width button on mobile */
}

.contact-form button:hover {
  background: #1565C0; /* Slightly darker blue */
}

/* Footer */
footer {
  background: #0D47A1; /* Deep blue */
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer a {
  color: #90CAF9; /* Medium blue */
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  /* Tablet Styles */
  header h1 {
    font-size: 3rem;
  }

  header p {
    font-size: 1.5rem;
  }

  .benefit-item {
    flex: 1 1 200px;
  }

  .content-image {
    height: 300px; /* Adjust height for tablets */
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contact-info,
  .contact-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Small Tablet Styles */
  header {
    padding: 80px 20px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1.2rem;
  }

  .benefits {
    padding: 30px 0;
  }

  .benefit-item {
    flex: 1 1 150px;
  }

  .content-image {
    height: 250px; /* Adjust height for small tablets */
  }
}

@media (max-width: 480px) {
  /* Mobile Styles */
  header {
    padding: 60px 20px;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1.5rem; /* Slightly larger for better readability */
    line-height: 1.4; /* Improve line spacing */
  }

  .cta-button {
    font-size: 1.2rem;
    padding: 10px 20px;
  }

  .benefit-item {
    flex: 1 1 100%;
    margin: 10px 0;
  }

  .about h2 {
    font-size: 1.8rem;
  }

  .content-image {
    height: 200px; /* Adjust height for mobile */
    background-size: contain; /* Show full image on mobile */
    background-attachment: scroll; /* Disable parallax on mobile */
  }

  .contact-form {
    padding: 0 10px; /* Reduce padding for mobile */
  }

  .contact-form button {
    font-size: 1rem; /* Smaller button text on mobile */
  }
}