* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #333;
}

/* NAVBAR */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  text-decoration: none;
  color: #1e3a8a;
  font-size: 22px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.nav-links a:hover {
  color: #1e3a8a;
}

.nav-cta {
  background: #1e3a8a;
  color: white !important;
  padding: 10px 16px;
  border-radius: 6px;
}

.nav-cta:hover {
  background: #162e6b;
}

/* HERO */

.hero {
  min-height: 420px;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("water-treatment.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-hero {
  min-height: 300px;
}

.hero-overlay {
  text-align: center;
  color: white;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 22px;
}

/* GENERAL LAYOUT */

.section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.section-heading p {
  color: #666;
}

.card {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.left-align {
  text-align: left;
}

.left-align .button-row {
  justify-content: center;
}

.card h2 {
  margin-bottom: 18px;
  font-size: 32px;
}

.card p {
  line-height: 1.7;
  margin-top: 14px;
}

/* BUTTONS */

.button-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  background: #1e3a8a;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.button,
button,
.nav-cta {
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.button.secondary {
  background: #4b5563;
}

.button.secondary:hover {
  background: #374151;
}

.button.large {
  font-size: 18px;
  padding: 16px 34px;
}

/* SERVICES */

.services {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  padding: 28px 22px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card h3 {
  margin-bottom: 12px;
  color: #1e3a8a;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.service-card p {
  line-height: 1.6;
}

/* CTA BANNER */

.cta {
  display: flex;
  justify-content: center;
  margin: 40px 0 60px;
}

.cta-banner {
  padding: 20px;
  margin: 30px auto 60px;
  max-width: 1100px;
}

.cta-banner-content {
  background: #1e3a8a;
  color: white;
  border-radius: 12px;
  padding: 48px 28px;
  text-align: center;
}

.cta-banner-content h2 {
  margin-bottom: 12px;
  font-size: 32px;
}

.cta-banner-content p {
  margin-bottom: 22px;
  font-size: 18px;
}

/* FORM */

.quote-card {
  max-width: 700px;
  margin: 0 auto;
}

form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 6px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

button {
  margin-top: 8px;
  padding: 14px 20px;
  background: #1e3a8a;
  color: white;
  border-radius: 6px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 30px 20px;
  color: #777;
  font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .service-card,
  .cta-banner-content {
    padding: 24px;
  }

  .hero {
    min-height: 280px;
  }

  .hero h1 {
    font-size: 32px;
  }
}