/* ==========================================================================
   Base Design System & Variables
   ========================================================================== */
:root {
  --leaf: #497d39;
  --leaf2: #a2e048;
  --dark: #122114;
  --light: #f7f9f6;
  --line: #e3e8e2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top {
  background: var(--dark);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.top a {
  color: var(--leaf2);
  text-decoration: none;
  font-weight: 600;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.nav .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.brand img {
  height: 48px;
  display: block;
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 24px;
  list-style: none;
}

.menu a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.menu a:hover, .menu a.active {
  color: var(--leaf);
}

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(rgba(18, 33, 20, 0.82), rgba(18, 33, 20, 0.85)), url('https://donandjonlawnandtree.com/uploads/sites/254/2023/01/Background.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 100px 20px;
  text-align: left;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero .tag {
  color: var(--leaf2);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 12px;
  display: inline-block;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--leaf2);
}

.hero p {
  font-size: 19px;
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin-bottom: 36px;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf2);
  color: var(--dark);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(162, 224, 72, 0.3);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(162, 224, 72, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: none;
  margin-left: 12px;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
  box-shadow: none;
}

.mobileCta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
}

.mobileCta .btn {
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 18px;
}

/* ==========================================================================
   Structural Grid Systems
   ========================================================================== */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

/* ==========================================================================
   Trust / Stat Sections
   ========================================================================== */
.stats {
  background: var(--dark);
  color: #ffffff;
  padding: 60px 20px;
}

.stats .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 48px;
  color: var(--leaf2);
  line-height: 1;
  margin-bottom: 8px;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
footer {
  background: #0d170e;
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 40px 20px;
  border-top: 4px solid var(--leaf);
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links h4, .footer-contact h4 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--leaf2);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile Optimizations)
   ========================================================================== */
@media (max-width: 920px) {
  body {
    padding-bottom: 90px;
  }

  .top .wrap {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 10px 20px;
  }

  .top .wrap div:nth-child(2) {
    display: none;
  }

  .nav .wrap {
    flex-direction: column;
    gap: 16px;
  }

  .menu {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 60px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .btn-secondary {
    display: block;
    margin-left: 0;
    margin-top: 12px;
  }

  .grid-3, .footer-wrap {
    grid-template-columns: 1fr;
  }

  .stats .wrap {
    flex-direction: column;
    gap: 32px;
  }

  .mobileCta {
    display: block;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
