/* General Reset */
* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: #00c2d1;
  color: white;
  padding: 1rem 2rem;
  position: relative;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
  line-height: 1.5;
  padding: 0.5rem 0;
}

nav a.active {
  text-decoration: underline;
  color: #ffe600;
}

.desktop-nav {
  display: flex;
}

.hamburger,
#hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #00c2d1;
  padding: 1rem;
}

.mobile-nav.show {
  display: flex;
}

/* Hero Section */
.hero {
  background: url("../images/pool-background.jpg.webp") no-repeat center center /
    cover;
  position: relative;
  color: white;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.4)
  );
  padding: 5rem 2rem;
  max-width: 100%;
}

.hero small {
  display: block;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #ddd;
}

/* CTA Button */
.cta-button {
  background-color: #ffffff;
  color: #00c2d1;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* About & Services Sections */
.about,
.services-preview {
  background: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.about h2,
.services-preview h2 {
  color: #00c2d1;
  margin-bottom: 1rem;
}

.services-preview ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.services-preview li {
  margin: 0.5rem 0;
  font-weight: bold;
}

.testimonials {
  margin-top: 4rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.testimonial {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

.testimonial p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.testimonial h4 {
  text-align: right;
  font-weight: normal;
  color: #555;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #222;
  color: white;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover {
  color: #ffe600;
}

footer a:visited {
  color: #ffffff;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger,
  #hamburger {
    display: block;
  }

  .hero-overlay {
    padding: 3rem 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Services Page Styling */
.services-page {
  text-align: center;
  padding: 3rem 1rem;
}

.services-page h2 {
  color: #00c2d1;
  margin-bottom: 2rem;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  padding: 1.5rem;
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #00c2d1;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .service-cards {
    flex-direction: column;
    align-items: center;
  }

  .service-card img {
    height: 150px;
  }
}

.projects {
  background-color: #f9f9f9;
  padding: 2rem 1rem;
  border-radius: 12px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 0 1rem 2rem; /* Add bottom padding */
}

.photo-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.photo-gallery img:hover {
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .photo-gallery img {
    height: auto; /* Remove forced height */
    max-height: 400px; /* Let it grow, but cap it */
  }
}

.jobs-list {
  background: #ffffff;
  padding: 3rem 2rem;
  text-align: left;
  border-radius: 8px;
  margin-top: 2rem;
}

.jobs-list h2 {
  color: #00c2d1;
  margin-bottom: 1rem;
  text-align: center;
}

.jobs-list p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.job-opening {
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 4px solid #00c2d1;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.job-opening h3 {
  margin-top: 0;
  color: #00c2d1;
}

.job-opening ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.job-opening li {
  margin-bottom: 0.5rem;
}

.contact-form {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form h2 {
  color: #00c2d1;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 1.5rem;
  padding: 0.75rem;
  background-color: #00c2d1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #009aa9;
}

.about ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1em;
}

.about ul li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.5em;
}

.about ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0074cc;
  font-weight: bold;
}

.cta-banner {
  background: #00c2d1;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 10px;
  margin: 3rem auto;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-banner .cta-button {
  background-color: white;
  color: #00c2d1;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-banner .cta-button:hover {
  background-color: #ffe600;
  color: black;
}

.top-contact-bar {
  background-color: #007f89;
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.top-contact-bar a {
  color: #ffe600;
  text-decoration: none;
  font-weight: bold;
}
