:root {
  --primary: #1f7a3f;
  --primary-dark: #165b2f;
  --accent: #0d4d72;
  --bg: #f6faf7;
  --text: #1d2a22;
  --muted: #5a6a60;
  --card: #ffffff;
  --border: #d9e7dd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.topbar {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  min-height: 126px;
  background: #000;
  border-bottom: 1px solid #1a1a1a;
  border-radius: 0;
  padding: 0.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-holder {
  height: 104px;
  width: min(460px, 58vw);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.brand img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-left: auto;
  margin-right: 0.9rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 600;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: #bfe9ff;
}

.nav a.active {
  color: #8dd6ff;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(13, 77, 114, 0.1);
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #eef8f2, #f8fcf9);
}

.landing-hero {
  background: transparent;
  padding: 0.75rem 0 0;
}

.landing-hero-inner {
  min-height: clamp(420px, 58vh, 620px);
  background-image: linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)), url("assets/lawn-irrigation-v3.jpg");
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.15rem;
}

.landing-hero-inner > div {
  text-align: center;
}

.landing-hero h1,
.landing-hero p,
.landing-hero .small,
.landing-hero .badge {
  color: #112217;
}

.landing-hero.hero h1 {
  color: #2c6fa3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 2px 10px rgba(0, 0, 0, 0.18);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.85vw, 1.65rem);
  line-height: 1.2;
}

.landing-hero p.home-motto-row {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.9vw, 1.46rem);
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45);
  max-width: none;
}

.home-motto-thrive {
  color: #9ee6b8;
}

.home-motto-word {
  -webkit-text-stroke: 0.6px #000;
  text-shadow: -0.6px -0.6px 0 #000, 0.6px -0.6px 0 #000, -0.6px 0.6px 0 #000, 0.6px 0.6px 0 #000, 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 7px rgba(0, 0, 0, 0.28);
}

.landing-hero .badge {
  background: rgba(17, 34, 23, 0.12);
}

.landing-hero .serving-line {
  margin-top: 0.7rem;
  font-weight: 600;
}

.hero-actions-bottom {
  margin-top: 0.8rem;
  padding-top: 0;
  padding-bottom: 0;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 0.8rem;
  color: var(--primary-dark);
}

.hero p {
  max-width: 700px;
  color: var(--muted);
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section {
  padding: 3.25rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  color: var(--primary-dark);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 3px 10px rgba(16, 42, 30, 0.05);
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e6f5ec;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.cta-band {
  background: transparent;
  color: #fff;
  padding: 0;
}

.cta-band a {
  color: #fff;
}

.cta-band .container {
  background: var(--primary-dark);
  padding: 2rem 1.2rem;
}

.cta-band-home .container {
  background: #3473a5;
  text-align: center;
  padding: 1.25rem 1.2rem 2rem;
  border-radius: 12px;
}

.cta-band-home {
  margin-top: 0.75rem;
  margin-bottom: 0.65rem;
}

.cta-band-home h2 {
  margin: 0 0 0.5rem;
}

.cta-band-home p {
  margin: 0;
}

.cta-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.cta-item {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.cta-item p {
  margin: 0;
  color: #eaf4ff;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}

.cta-band .btn {
  color: #1f4f78;
  border-color: #ffffff;
  background: #ffffff;
  text-align: center;
  width: 100%;
  border-width: 2px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cta-band .btn:hover {
  background: #eef7ff;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
}

.cta-band .btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.quote-forms-section {
  padding-top: 1.1rem;
}

.quote-form-card {
  margin-bottom: 1rem;
}

.quote-confirmation {
  background: #e9f8ee;
  border: 1px solid #b9e4c4;
  color: #174d2c;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.quote-form-card h2 {
  margin-top: 0;
}

.quote-form-card.is-hidden {
  display: none;
}

.date-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-slideshow {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1a22;
  box-shadow: 0 8px 24px rgba(13, 31, 49, 0.2);
}

.gallery-slides {
  position: relative;
  min-height: clamp(300px, 58vw, 620px);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  color: #fff;
  background: rgba(8, 14, 20, 0.52);
}

.gallery-slide-prev {
  left: 0.8rem;
}

.gallery-slide-next {
  right: 0.8rem;
}

.gallery-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
}

.gallery-slide-dot.is-active {
  background: #fff;
}

.about-motto-card {
  text-align: center;
}

.about-motto-card h2 {
  margin-top: 0.75rem;
}

.about-hero .container {
  text-align: center;
}

.about-hero h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.about-hero p {
  margin-left: auto;
  margin-right: auto;
}

.about-highlight {
  padding-top: 0.25rem;
}

.about-highlight .container {
  background: var(--accent);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  text-align: center;
}

.about-highlight-line {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.about-highlight-line + .about-highlight-line {
  margin-top: 0.45rem;
}

.about-card {
  border-top: 4px solid var(--accent);
}

.home-accent-card {
  border-top: 4px solid var(--accent);
}

.about-card h2 {
  color: var(--accent);
}

.form {
  display: grid;
  gap: 0.8rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #c9d9ce;
  border-radius: 8px;
  padding: 0.7rem;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.footer {
  margin-top: 2.5rem;
  padding: 0 0 1rem;
  color: #e9edf1;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer .container {
  background: #000;
  border-top: 1px solid #1a1a1a;
  border-radius: 0;
  min-height: 126px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-logo-holder {
  flex: 0 0 auto;
  width: min(520px, 58vw);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
}

.footer-logo-slot {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-logo-secondary {
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-logo-tertiary {
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
}

.footer a {
  color: #cce7ff;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

.footer .small {
  color: #b9c4cf;
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 104px;
    padding: 0.2rem 0;
  }

  .footer .container {
    min-height: 104px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo-holder {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .footer-logo {
    height: 46px;
  }

  .footer-logo-secondary {
    height: 46px;
  }

  .footer-logo-tertiary {
    height: 46px;
  }

  .cta-actions {
    grid-template-columns: 1fr;
  }

  .date-range-grid {
    grid-template-columns: 1fr;
  }

  .cta-item p {
    text-align: center;
  }

  .brand-logo-holder {
    height: 82px;
    width: min(360px, 74vw);
  }

  .landing-hero p.home-motto-row {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 1.14rem;
  }

  .nav {
    gap: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
  }

  .gallery-slide-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .about-highlight .container {
    padding: 0.9rem 1rem;
  }
}
