/* Global variables for easy theming */
:root {
  --primary: #5a9a68;
  --secondary: #1d392c;
  --light: #f5f9f4;
  --accent: #8dbd7f;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--secondary);
  background-color: var(--light);
  /* Add a subtle textured pattern that repeats across the page */
  background-image: url('background_pattern.png');
  background-repeat: repeat;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

/* Container for consistent horizontal margins */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.header {
  width: 100%;
  background-color: var(--light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

/* Logo image styling */
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* Logo text next to image */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  vertical-align: middle;
  margin-top: -4px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--primary);
}

/* Mobile toggle (hamburger) */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('greenhouse_processed.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

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

/* Section styling */
.section {
  padding: 4rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0;
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* About */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Services */
.services-grid {
  display: grid;
  /* Use flexible columns so six service items arrange neatly in two rows on larger screens */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-item {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
  /* Hide icons in the service cards since external icon fonts may not load offline. */
  display: none;
}

.service-item h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--secondary);
}

.service-item p {
  font-size: 0.95rem;
  color: var(--secondary);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.portfolio-item.single {
  display: block;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
  position: relative;
  flex: 1;
}

.label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.before {
  background: #c83c3c; /* red for before */
}

.after {
  background: #3c9846; /* green for after */
}

/*
 * Portfolio layout enhancements
 *
 * The reference section now displays before–after image pairs,
 * a full‑width collage, and a responsive gallery of additional photos.
 */
.portfolio-pairs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio-pair {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.portfolio-pair .pair {
  position: relative;
  flex: 1 1 45%;
}

.portfolio-pair .pair img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-collage img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

/* Portfolio gallery now divided into categories; stack categories vertically */
.portfolio-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Style headings within the gallery */
.portfolio-gallery h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--secondary);
  margin: 0;
  margin-bottom: 0.5rem;
}

/* Each category uses a responsive grid */
.gallery-category {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Style images within categories */
.gallery-category img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  /* Add a subtle border and shadow to make the images stand out */
  border: 3px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Make the showgarden category use the same responsive grid as other categories */
.gallery-category.showgarden {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Ensure the showgarden image uses the same dimensions and styling as other gallery images */
.showgarden-img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  /* Show the lower part of the showgarden image (walkway and seating area) rather than centering on the chairs */
  object-position: center bottom;
}

/* Call to action */
.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

/* New gallery layout using gallery-section and gallery-images */
.gallery-section {
  margin-bottom: 2rem;
}

.gallery-section h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.gallery-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gallery-images a {
  display: block;
  flex: 1 1 calc(50% - 1.5rem);
}

.gallery-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 3px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

@media (max-width: 600px) {
  .gallery-images a {
    flex-basis: 100%;
  }
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Contact */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-info i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 0.8rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--secondary);
}

.contact-form {
  flex: 1;
  min-width: 260px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #c8d6c4;
  border-radius: 4px;
  font-family: var(--font-body);
  resize: vertical;
}

.form-group textarea {
  min-height: 120px;
}

button.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: background 0.3s;
}

button.btn:hover,
a.btn:hover {
  background: var(--secondary);
}

/* Buttons as anchor classes */
a.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-heading);
  transition: background 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--light);
    width: 200px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: none;
  }

  .navbar ul.show {
    display: flex;
  }

  .navbar ul li {
    padding: 0.75rem 1rem;
  }

  .mobile-toggle {
    display: block;
  }
}

/* Hidden anti-spam field for the contact form */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
