/* Root variables for colours and spacing */
:root {
  --primary-color: #1e4b3c; /* deep green reminiscent of PCL brand */
  --secondary-color: #f1c21b; /* warm golden accent */
  --background-color: #f7f9f9;
  --light-color: #ffffff;
  --dark-color: #0d1f24;
  --text-color: #333333;
  --max-width: 1200px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--light-color);
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  /* container for the logo image */
  display: flex;
  align-items: center;
}

/* Logo image styling */
.navbar .logo img {
  height: 48px;
  width: auto;
}

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

.nav-links li a {
  color: var(--dark-color);
  font-weight: 500;
  transition: color var(--transition-speed);
}

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

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  transition: all var(--transition-speed);
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Hero section */
.hero-section {
  width: 100%;
  height: 75vh;
  background-image: url('assets/hero-construction.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-overlay {
  position: relative;
  color: var(--light-color);
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-overlay h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color var(--transition-speed);
  cursor: pointer;
  display: inline-block;
}

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

/* Services section */
.services-section {
  padding: 4rem 2rem;
  background-color: var(--light-color);
}

.services-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
}

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

.service-card {
  background-color: var(--background-color);
  padding: 2rem 1.5rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card i {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

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

.service-card p {
  font-size: 0.9rem;
  color: #555;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About section */
.about-section {
  padding: 4rem 2rem;
  background-color: var(--background-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Testimonials section */
.testimonials-section {
  padding: 4rem 2rem;
  background-color: var(--light-color);
  text-align: center;
}

.testimonials-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Ratings within testimonials */
.overall-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.overall-rating .rating-text {
  font-weight: 600;
  color: var(--primary-color);
}
.overall-rating .stars i,
.testimonial-rating i {
  color: var(--secondary-color);
  margin: 0 1px;
  font-size: 1rem;
}
.testimonial-rating i {
  font-size: 0.9rem;
}
.testimonial-rating {
  margin-bottom: 0.5rem;
}

/* Review link below testimonials */
.review-link {
  margin-top: 1rem;
}
.review-link a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}
.review-link a:hover {
  color: var(--secondary-color);
}

/* Projects (Before & After) section */
.projects-section {
  padding: 4rem 2rem;
  background-color: var(--background-color);
}
.projects-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
}
.projects-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.project-case h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  text-align: center;
}
.before-after {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.before-after figure {
  flex: 1 1 45%;
}
.before-after img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.before-after figcaption {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 140px;
}

.testimonial-slide {
  display: none;
  padding: 0 1rem;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.testimonial-slide span {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.testimonial-dots .dot.active {
  background-color: var(--secondary-color);
}

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

/* Call button in contact section */
.call-button {
  margin-bottom: 2rem;
  display: inline-block;
}

.contact-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-section p {
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-color);
  font-size: 1rem;
}

.info-item i {
  color: var(--secondary-color);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-group {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.footer .credit {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light-color);
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-200%);
    transition: transform var(--transition-speed) ease-in-out;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .hamburger {
    display: flex;
  }
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .hero-overlay h1 {
    font-size: 2rem;
  }
}