/* RESET + BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #222;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* HEADER */
header {
  background-color: #002b45;
  color: white;
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00c3ff;
}

/* HERO */
.hero {
  background: linear-gradient(to right, rgba(0, 43, 69, 0.5), rgba(0, 43, 69, 0.5)),
              url('../assets/images/plumber-hero.jpg') center/cover no-repeat;
  /* Reduced opacity from 0.85 to 0.5 for lighter background */
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
}


.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero button {
  padding: 0.75rem 1.5rem;
  background-color: #00aaff;
  border: none;
  color: white;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero button:hover {
  background-color: #0077aa;
}

/* SECTION TITLES */
.services h3,
.why-us h3,
.testimonials h3,
.cta h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: #002b45;
}

/* CARD GRIDS */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  background: #fdfdfd;
  color: #222;
  padding: 1.5rem;
  flex: 1 1 280px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card h4 {
  margin-bottom: 0.5rem;
  color: #004766;
}

/* WHY US */
.why-us {
  background-color: #eefaff;
  padding: 3rem 1rem;
}

.benefits {
  list-style: none;
  text-align: center;
  padding: 0;
  font-size: 1.1rem;
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  color: #00334d;
}

/* TESTIMONIALS */
.testimonials {
  background-color: #f9fafb; /* very light gray background */
  padding: 3rem 1rem;
  position: relative; /* keep layering controlled */
  z-index: 1;
  color: #444; /* medium dark gray text, softer than pure black */
}

.testimonials .card p {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #555; /* softer than the rest */
}

.testimonials .card span {
  font-size: 0.95rem;
  color: #666; /* lighter gray for attribution */
}

/* Add bottom padding or margin to testimonial container */
.testimonials.container {
  margin-bottom: 100px; /* space so chatbot popup doesn't overlap */
}


/* CTA */
.cta {
  background-color: #a2d8ff; /* lighter sky blue */
  color: #000; /* dark text */
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 0;
}

.cta p {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.cta button {
  padding: 0.75rem 1.5rem;
  background-color: #00c3ff;
  border: none;
  color: white;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta button:hover {
  background-color: #009bcc;
}

/* FOOTER */
footer {
  background-color: #002b45;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.95rem;
}

/* CHATBOT IFRAME */
#chatbot-frame {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

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

  .card-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Floating Chatbot Button */
#chatbot-button {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background-color: #007aff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: background 0.3s;
}

#chatbot-button:hover {
  background-color: #005bb5;
}

#chatbot-button img {
  width: 30px;
  height: 30px;
}

/* Chatbot Popup */
#chatbot-popup {
  position: fixed;
  bottom: 170px;
  right: 24px;
  width: 360px;
  height: 500px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 9998;
}

