/* Global Variables */
:root {
  /* Brand colour palette derived from the JunkHunters logo */
  --primary-color: #013d31;    /* deep evergreen used for nav and accents */
  --secondary-color: #0e8f44;  /* vibrant green used for buttons and highlights */
  --accent-color: #fcbf00;     /* golden yellow accent matching the stripe on the truck */
  --light-color: #f6fbf9;      /* soft off‑white background */
  --dark-color: #011c15;       /* darkest tone for footer */
  --white-color: #ffffff;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

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

/* Navigation Bar */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
}

/* Constrain the logo size for the navigation bar */
.logo img {
  height: 48px;
  width: auto;
}

.logo a {
  color: var(--white-color);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

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

.nav-links li a {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 550px;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  margin-top: 60px; /* offset for fixed nav */
}

/* Overlay to darken hero image for readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

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

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

.cta-btn:hover {
  background-color: var(--accent-color);
}

/* Sections */
.services-section,
.about-section {
  padding: 4rem 2rem;
  background-color: var(--white-color);
  color: var(--primary-color);
}

.services-section h2,
.process-section h2,
.about-section h2,
.contact-section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-align: center;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--light-color);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.3s ease;
  position: relative;
  border: 1px solid #e5eaea;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

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

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

/* Process Section */
.process-section {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 4rem 2rem;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.step {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2rem;
  max-width: 300px;
  text-align: center;
}

.step h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.about-text {
  flex: 1 1 300px;
  max-width: 550px;
}

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

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

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-color);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .about-content {
    flex-direction: column;
  }
}