/* Colour palette inspired by Bayside Plumbing: deep blue tones with fresh teal accents */

:root {
  --primary-color: #0e4d64;       /* dark blue for nav and accents */
  --accent-color: #2ab7ca;        /* teal for buttons and highlights */
  --background-color: #f1f5f9;    /* soft light grey for page background */
  --section-light: #ffffff;        /* white for cards and sections */
  --text-color: #2d3748;          /* dark grey for readability */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

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

.nav-links li a:hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding-top: 4rem;
    transition: right 0.3s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 2rem 3rem;
  border-radius: 8px;
  text-align: center;
  max-width: 700px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero-overlay h1 {
  font-family: var(--heading-font);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

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

/* Features Section */
.features-section {
  padding: 4rem 2rem;
  background-color: var(--background-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--section-light);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature-card p {
  font-size: 0.95rem;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 2rem;
  padding: 5rem 2rem;
  background-color: var(--section-light);
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  position: relative;
}

.section-number {
  position: absolute;
  top: -2rem;
  left: 0;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.05);
  pointer-events: none;
  user-select: none;
}

.about-content h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-content p {
  font-size: 1rem;
  max-width: 550px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  filter: brightness(0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Services Section */
.services-section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.services-section h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.services-section p {
  margin: 0 auto 2rem auto;
  max-width: 600px;
  font-size: 1rem;
}

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

.service-card {
  background-color: var(--section-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.service-card h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.service-card p {
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 2rem;
  text-align: center;
  background-color: var(--section-light);
}

.contact-section h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-section p {
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.contact-list li {
  font-size: 1rem;
}

.contact-list a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  background-color: var(--primary-color);
  color: #fff;
}

footer p {
  font-size: 0.9rem;
}