/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Fallback for browsers that don't support scroll-behavior */
  -webkit-scroll-behavior: smooth;
  -moz-scroll-behavior: smooth;
  -ms-scroll-behavior: smooth;
}

:root {
  --color-green-primary: #4CAF50; /* original primary green */
  --color-green-accent: #45a049;  /* original accent green */
  --color-grey-dark: #333;
  --color-grey-mid: #666;
  --color-grey-light: #f8f9fa;
  --gradient-green: linear-gradient(135deg, var(--color-green-primary), var(--color-green-accent));
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-grey-dark);
  background-color: var(--color-grey-light);
  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  background: var(--gradient-green);
  color: white;
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Brand (logo + text) */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.brand-text h1 {
  margin: 0 0 0.4rem;
}

.logo {
  max-width: 140px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

@media (max-width: 600px) {
  .brand {
    flex-direction: row;
    justify-content: flex-start;
  }
  header .container { text-align: left; }
  header h1 { font-size: 2.2rem; }
  .logo { max-width: 110px; }
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grass" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M10,20 Q10,10 15,0 Q10,10 5,0" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23grass)"/></svg>');
  opacity: 0.1;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--color-green-primary);
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Navigation styles */
/* Navigation styles */
nav {
  background: var(--color-grey-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: center;
  padding: 0.5rem 20px;
}

/* Style nav links across all states to override UA defaults */
nav a,
nav a:link,
nav a:visited {
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
  margin: 0 5px;
}

nav a:hover {
  background-color: var(--color-green-primary);
}

nav a.active {
  background-color: var(--color-green-primary);
  color: white;
}

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

.section:nth-child(even) {
  background-color: var(--color-grey-light);
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-grey-dark);
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-green-primary);
  margin: 1rem auto;
  border-radius: 2px;
}

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

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--color-grey-mid);
}

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

.feature {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

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

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-green-primary);
}

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

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--color-green-primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-grey-dark);
}

.service-card p {
  color: var(--color-grey-mid);
  line-height: 1.6;
}

/* Gallery section */
.gallery-section {
  background: var(--color-grey-light);
}

.gallery-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-grey-mid);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

#lightbox-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  padding: 20px;
  background: white;
  text-align: center;
}

#lightbox-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-grey-dark);
  margin-bottom: 10px;
}

#lightbox-description {
  font-size: 1rem;
  color: var(--color-grey-mid);
  line-height: 1.5;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  pointer-events: auto;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Lightbox animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Form select styling */
.form-group select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* Animation classes */
.service-card,
.testimonial,
.feature {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.service-card.animate-in,
.testimonial.animate-in,
.feature.animate-in {
  opacity: 1;
  transform: translateY(0);
}


/* Testimonials section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: center;
  border-left: 4px solid var(--color-green-primary);
}

.stars {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial p {
  font-style: italic;
  color: var(--color-grey-mid);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.customer-name {
  font-weight: bold;
  color: var(--color-green-primary);
}

/* Contact section */
.contact-section {
  background: var(--gradient-green);
  color: white;
}

.contact-section h2 {
  color: white;
}

.contact-section h2::after {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.contact-item {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-item a {
  color: white;
  text-decoration: none;
}

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

/* Form styles */
.contact-form {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255,255,255,0.9);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

.submit-btn {
  width: 100%;
  background: white;
  color: var(--color-green-primary);
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* Form status messages */
.form-status {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

.form-status.success {
  background: rgba(41, 80, 79, 0.1); /* derived from new primary green */
  color: var(--color-green-primary);
  border: 1px solid rgba(41, 80, 79, 0.3);
}

.form-status.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.form-status.loading {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Footer styles */
footer {
  text-align: center;
  background: var(--color-grey-dark);
  color: white;
  padding: 2rem;
  margin-top: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  nav .container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav a {
    margin: 5px;
    padding: 0.5rem 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Removed pricing-card styles */
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 25px;
    width: 40px;
    height: 40px;
  }
  
  .lightbox-nav {
    padding: 0 10px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 16px;
    padding: 10px;
  }
  
  .lightbox-caption {
    padding: 15px;
  }
  
  #lightbox-title {
    font-size: 1.2rem;
  }
  
  #lightbox-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  header {
    padding: 2rem 0;
  }
  
  .services-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}
