
/* Hero Section styles */
.hero {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background-image: url('../images/hero.jpeg'); /* Use the single image from your design */
  background-size: cover; /* Ensures the image fills the container */
  background-position: center 40%; /* Adjust to clip the desired mobile section (e.g., focus on upper part) */
  color: #fff; /* Adjust based on image contrast */
  min-height: 400px; /* Match your mobile artboard height */
  margin-top: 10px;
}

.hero-content {
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  text-align: left; /* Default: left-align all text */
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center; /* Center-align for mobile */
}

p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.button-center {
  text-align: center;
}

.call-now-btn {
  display: inline-block;
  margin: 20px 0 0 0; /* space above button */
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  width: auto; /* Ensure it doesn't stretch */
  max-width: 100%; /* Prevent overflow on small screens */
}

.contact-form input[type="submit"],
.contact-form button[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.2s;
    box-shadow: none;
    margin-top: 8px;
    width: auto; /* or 100% if you want full width */
    display: inline-block;
}

.contact-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
  .hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* Match your desktop artboard width */
    background-position: center; /* Reset to show the full image */
    padding: 40px;
    min-height: 500px; /* Match your desktop artboard height */
  }

  .hero-content {
    width: 50%;
  }

  h1 {
    font-size: 2.5rem;
    text-align: left; /* Left-align for larger screens */
  }

  p {
    font-size: 1.2rem;
  }

  .call-now-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .hero {
    background-position: center 30%; /* Slightly adjust to reveal more */
    min-height: 450px;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1.1rem;
  }
}


/* Services Section Styles */

.services-grid {
    padding: 20px 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    align-items: start; /* Add this line */
}

.grid-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    background-color:var(--secondary-color);
}

.grid-item img {
    max-width: 150px; /* Adjusted to fit your design */
    max-height: 150px; /* Adjusted to fit your design */

    object-fit: cover;
    padding: 30px 15px 15px 15px;
}

.grid-item h3 {
    margin: 10px;
}

.grid-item p {
    padding: 0 15px 10px;
    font-size: 0.8rem;
    text-align: left;
}


/* Testimonials Section Styles*/
section .section-title {
    margin-top: 40px;
    margin-bottom: 24px;
}

.testimonial {
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 24px 32px;
    margin: 16px auto;
    max-width: 600px;
    color: var(--text-color);
    font-style: italic;
    position: relative;
}

.testimonial p:first-child {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.testimonial p:last-child {
    font-size: 0.95rem;
    font-style: normal;
    text-align: right;
    color: #b5b5b5;
    margin: 0;
}

@media (max-width: 600px) {
    .testimonial {
         margin: 16px 20px; /* Center with auto margin on larger screens */
        padding: 16px 10px;
    }
}

/* Contact Section Styles */
.contact-form {
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 24px;
    margin: 16px auto;
    max-width: 600px;
}
.contact-form h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
}
.contact-form input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}
.contact-form input[type="submit"]:hover {
    background-color: var(--primary-color-hover);
}
@media (max-width: 600px) {
    .contact-form {
        margin: 20px 20px;
        padding: 16px 8px;
    }
}