/* ===== CSS VARIABLES ===== */
:root {
  --primary: #2d5016;
  --primary-light: #4a7a2a;
  --primary-dark: #1a3309;
  --accent: #8fbc5a;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #64748b;
  --muted-light: #f1f5f9;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--muted-light);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 1rem;
  background-color: var(--accent);
  color: white;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px var(--shadow);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  box-shadow: 0 4px 8px var(--shadow);
}

.nav-link {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: block;
  font-size: 1.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
  }

  .nav-menu.active {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.hero-awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.award-badge {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-location {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--foreground);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  margin-right: 0.75rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.checkbox-group {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h3,
.footer h4 {
  margin-bottom: 1rem;
}

.footer-services {
  list-style: none;
}

.footer-services li {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-social {
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-social h4 {
  margin-bottom: 1rem;
  text-align: center;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--muted-light);
  border-radius: 0.5rem;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 48rem;
  margin: 0 auto;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.05) 0%, rgba(143, 188, 90, 0.05) 100%);
  padding: 6rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.page-hero p {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

/* ===== FILTER BUTTONS ===== */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: white;
  color: var(--foreground);
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-btn:hover {
  border-color: var(--primary);
}

/* ===== STATS ===== */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ===== SERVICE AREAS ===== */
.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .service-areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-area-item {
  background-color: rgba(143, 188, 90, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-area-item:hover {
  background-color: rgba(143, 188, 90, 0.2);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE TEXT ===== */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
/* ===== PROJECT DETAIL PAGES ===== */
.project-hero {
  padding: 3rem 0 2rem;
  background-color: var(--muted-light);
}

.project-header {
  max-width: 800px;
}

.project-breadcrumb {
  margin-bottom: 1rem;
}

.project-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-breadcrumb a:hover {
  color: var(--primary-dark);
}

.project-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.meta-separator {
  color: var(--border);
}

.project-category {
  background-color: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--foreground);
}

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

.gallery-item {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .project-hero h1 {
    font-size: 2rem;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
