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

/* Text */

p, h1, h2, h3 {
    padding-bottom: 10px;
}

h1, h2, h3 {
    color: #00008b;
}

p {
    color: #444;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #e6f5ff;
  color: #444;
  line-height: 1.6;
}

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

.main-container {
    margin: 40px auto;
}

/* Header base styling */
.main-header {
  background-color: #fff;
  color: #fff;
}

/* Base Header Styles */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
}

.logo img {
  height: 50px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

/* Navigation */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #00008b;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links li a:hover {
  opacity: 0.7;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #00008b;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle .icon i {
  font-size: 1.2rem;
}

  .main-nav {
    width: 100%;
    text-align: right;
  }

 .nav-links {
  display: none;
  flex-direction: column;
  align-items: center; /* centers the links horizontally */
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: auto;
  }
}

/* Hero Banner */

.hero-section {
  position: relative;
  background: url('images/haywards-heath-plumber-banner.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 4rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* dark overlay for contrast */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
    color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px #000;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 1px 1px 4px #00
}

.btn-primary {
  background-color: #FFA500;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #cc8500;
}

/* Service Section */

.services-section {
  padding: 4rem 0;
}

.services-section h2 {
    text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box i {
  font-size: 2rem;
  color: #005a87;
  margin-bottom: 1rem;
}

.service-box h3 {
  margin-bottom: 1rem;
}

/* Why Choose Us */

.why-choose {
  background: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.why-choose h2 {
  margin-bottom: 1.5rem;
}

.why-choose ul {
  list-style: none;
  padding: 0;
}

.why-choose ul li {
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* CTA Banner */

.cta-banner {
  background: #00008b;
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-banner h2, .cta-banner p {
    color: #fff;
}

.cta-banner .btn-primary {
    margin-top: 40px;
    display: inline-block;
}

/* Testimonials */

.testimonials-section {
  padding: 4rem 1.5rem;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background-color: #e6f5ff;
  padding: 1.5rem;
  border-left: 4px solid #90d5ff;
  border-radius: 5px;
  font-style: italic;
}

.testimonial p {
  margin-bottom: 1rem;
}

.testimonial .author {
  font-weight: bold;
  color: #00008b;
  font-style: normal;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ Section */

.faq-section {
  padding: 4rem 1.5rem;
  background-color: #e6f5ff;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Locations Section */

.locations-section {
  padding: 4rem 1.5rem;
  background-color: #e6f5ff;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.locations-text h2 {
  margin-bottom: 1rem;
}

.locations-text p {
  margin-bottom: 1rem;
}

.locations-map iframe {
  width: 100%;
  border-radius: 8px;
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .locations-map iframe {
    height: 300px;
  }
}

/* About Page */

.about-section {

}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    max-width: 100%;
    margin-top: 2rem;
  }
}

/* Footer */

.main-footer {
  background: #000066;
  color: white;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

.main-footer p, .main-footer a {
    color: #fff;
}

.main-footer a:hover {
    opacity: 0.7;
}
