:root {
  --green: #8cc63f;
  --green-dark: #215b24;
  --light: #f6faf6;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

body.projects-page {
  background: linear-gradient(180deg, var(--light) 0%, #ffffff 100%);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
}

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

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--green-dark);
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(33, 91, 36, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: scale(1.03);
}

.btn.secondary {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid rgba(140, 198, 63, 0.55);
  box-shadow: none;
}

.btn-primary {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 22px;
  background: #8cc63f;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: #215b24;
  transform: scale(1.03);
}

.mobile-cta-bar {
  display: none;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 10px;
}

.eyebrow {
  display: inline-block;
  background: rgba(140, 198, 63, 0.16);
  color: var(--green-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
}

.section-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--muted);
}

.section-copy-tight {
  margin-bottom: 0;
}

.home-page .hero {
  position: relative;
  min-height: 620px;
  padding: 88px 0 70px;
  background:
    linear-gradient(90deg, rgba(11, 31, 16, 0.84) 0%, rgba(33, 91, 36, 0.64) 46%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(11, 31, 16, 0.26) 0%, rgba(11, 31, 16, 0.48) 100%),
    url("./project-photos/rainbow-landscaping-sprinkler-hero.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(246, 250, 246, 0) 0%, var(--light) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.home-page .hero .eyebrow {
  background: rgba(255, 255, 255, 0.92);
}

.brand-title {
  font-size: clamp(2.75rem, 7vw, 5.7rem);
  color: #fff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.32);
}

.brand-tagline {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.hero-cta-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.home-page .lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--green-dark);
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-actions-copy {
  margin: 18px 0 0;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.home-page section {
  padding: 68px 0;
}

.home-page .trust-strip {
  padding: 24px 0;
  background: var(--light);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(140, 198, 63, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(33, 91, 36, 0.08);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.icon {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.gallery {
  display: grid;
  gap: 24px;
}

.gallery figure,
.recent-projects-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.gallery figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 12px;
}

.project-comparisons {
  grid-template-columns: 1fr;
}

.project-card-before-after {
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(33, 91, 36, 0.12);
}

.project-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.project-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  width: 130px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.project-image:hover img {
  transform: scale(1.03);
  filter: brightness(1.04);
}

.project-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(33, 91, 36, 0.96);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.project-cta {
  margin-top: 28px;
  text-align: center;
}

.recent-projects-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.recent-projects-wrap,
.cta-panel,
.service-area-box,
.about-box,
.contact-box,
.projects-wrap {
  background: linear-gradient(180deg, #ffffff 0%, var(--light) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.recent-projects-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.recent-projects-gallery figcaption {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 10px;
}

.recent-projects-actions,
.actions {
  margin-top: 28px;
  text-align: center;
}

.cta-panel {
  text-align: center;
}

.cta-panel h2 {
  margin-bottom: 12px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.service-area-list {
  margin: 18px auto 0;
  max-width: 820px;
  color: var(--green-dark);
  font-weight: 600;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-heading {
  text-align: left;
}

.contact-list {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.muted {
  color: var(--muted);
}

.home-page footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.projects-page main {
  padding: 56px 0 72px;
}

.projects-page .hero {
  padding: 0 0 30px;
  text-align: center;
}

.projects-page h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.projects-page .lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.project-section + .project-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.project-section h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--green-dark);
}

.project-section-copy {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 720px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.project-copy {
  padding: 14px 6px 4px;
}

.project-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--green-dark);
}

.project-card figcaption {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.projects-page footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 900px) {
  body.home-page {
    padding-bottom: 78px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-grid,
  .cards,
  .trust-items,
  .gallery,
  .project-images,
  .recent-projects-gallery,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-images {
    gap: 16px;
  }

  .project-card-before-after {
    padding: 14px;
  }

  .mobile-cta-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.12);
  }

  .mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
  }

  .mobile-cta-bar a:last-child {
    background: var(--green-dark);
  }

  .home-page .hero {
    min-height: 590px;
    padding: 72px 0 58px;
    background:
      linear-gradient(180deg, rgba(11, 31, 16, 0.84) 0%, rgba(33, 91, 36, 0.66) 62%, rgba(0, 0, 0, 0.38) 100%),
      url("./project-photos/rainbow-landscaping-sprinkler-hero.jpg") center / cover no-repeat;
  }
}
