/* Trees Services CSS - Tree Surveying, Inventory & Analysis */
/* Theme: forest greens + warm earth tones */

:root {
  --forest-900: #0b2f1a;
  --forest-700: #1b5e20;
  --forest-500: #2e7d32;
  --leaf-500: #4caf50;
  --sky-600: #0277bd;
  --bark-700: #5d4037;
  --sand-100: #faf7f2;
  --sand-200: #f3efe8;
  --text-900: #1b1b1b;
  --text-600: #555;
  --gray-200: #e6e6e6;
  --accent-amber: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-900);
  background: var(--sand-100);
}

.header {
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-500) 100%);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

/* Shared header layout (injected by trees-ui.js) */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logo {
  width: 92px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.brand-text {
  display: grid;
  justify-items: center;
}

.header-content h1 {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.tagline {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.subtitle {
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
}

.navigation {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-item {
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text-900);
  font-weight: 600;
  transition: all 0.25s;
  border-bottom: 3px solid transparent;
}

.nav-item:hover {
  color: var(--forest-700);
  background: var(--sand-200);
}

.nav-item.active {
  color: var(--forest-700);
  border-bottom-color: var(--leaf-500);
  background: #eaf6ec;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  background: linear-gradient(to bottom, var(--sand-200), #fff);
  padding: 4rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.7rem;
  color: var(--forest-700);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-text {
  font-size: 1.25rem;
  color: var(--text-600);
  max-width: 920px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.25s;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-amber);
  color: #fff;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--sky-600);
  color: #fff;
}

.btn-secondary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--forest-700);
  border: 2px solid var(--forest-700);
}

.btn-light:hover {
  background: var(--forest-700);
  color: #fff;
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.15rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.stat-badge {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--leaf-500);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-600);
  margin-top: 0.5rem;
}

section {
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.4rem;
  color: var(--forest-700);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-600);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.services-section {
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--sand-200);
  padding: 2.4rem;
  border-radius: 14px;
  border: 2px solid var(--gray-200);
  transition: all 0.25s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.service-card.featured {
  border-color: var(--leaf-500);
  border-width: 4px;
}

.service-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--accent-amber);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.service-icon {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.service-card h3 {
  font-size: 1.65rem;
  color: var(--forest-700);
  margin-bottom: 1rem;
  text-align: center;
}

.service-description {
  color: var(--text-600);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li:before {
  content: "✓";
  color: var(--leaf-500);
  font-weight: 900;
  position: absolute;
  left: 0;
}

.service-pricing {
  text-align: center;
  font-size: 1.35rem;
  color: var(--forest-700);
  margin: 1.25rem 0;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
}

.why-section {
  background: #eaf6ec;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  border-left: 6px solid var(--leaf-500);
}

.why-card h3 {
  color: var(--forest-700);
  margin-bottom: 1rem;
}

.projects-section {
  background: #fff;
}

.project-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.project-type {
  background: var(--sand-200);
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid var(--gray-200);
  transition: all 0.25s;
}

.project-type:hover {
  border-color: var(--leaf-500);
  background: #fff;
}

.project-icon {
  font-size: 2.3rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--forest-900), var(--forest-500));
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.25rem;
  max-width: 740px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.text-center {
  text-align: center;
}

.footer {
  background: var(--bark-700);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-text {
  margin-bottom: 1rem;
  opacity: 0.92;
}

.footer-text a {
  color: var(--accent-amber);
  text-decoration: none;
  font-weight: 800;
}

.footer-text a:hover {
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 1.25rem;
  opacity: 0.75;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .header-content h1 {
    font-size: 2.35rem;
  }
  .hero h2 {
    font-size: 2.05rem;
  }
  .service-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .btn-lg {
    width: 100%;
  }
  .brand-logo {
    width: 72px;
  }
}
