@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Mulish:wght@400;600;700;800&display=swap");

:root {
  color-scheme: light;
  --content-width: 1024px;
  --green-dark: #2d4f2e;
  --green: #3d7b3f;
  --green-bright: #57a449;
  --green-light: #e9f2dc;
  --orange: #e8872b;
  --orange-dark: #c96b17;
  --cream: #fbf7f0;
  --text-dark: #2d3b2f;
  --shadow: 0 12px 30px rgba(27, 50, 31, 0.25);
}

/* =========================
   Base / Resets
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mulish", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Scrollbar
========================= */

* {
  scrollbar-width: auto;
  scrollbar-color: #3f8a3d transparent;
}

*::-webkit-scrollbar {
  width: 24px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #3f8a3d;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* =========================
   Page
========================= */

.page {
  max-width: none;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  overflow-x: hidden;
  border: 0;
  opacity: 0;
  animation: pageFade 1.2s ease-out 0.15s forwards;
}

/* =========================
   Topbar / Nav
========================= */

.topbar {
  background: linear-gradient(180deg, #f4f7eb 0%, #e7efda 100%);
  border-bottom: 1px solid rgba(62, 95, 68, 0.2);
}

.promo-banner {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 16px;
  background: linear-gradient(180deg, #fef9e8 0%, #f7e6b7 100%);
  color: #4a3b1d;
  border-bottom: 1px solid rgba(130, 99, 34, 0.2);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  min-height: 56px;
}

.nav-left {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: capitalize;
}

.nav-link {
  position: relative;
  padding: 6px 2px;
  color: #3b513f;
}

.nav-link.active,
.nav-link:hover {
  color: #2f4b31;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6b2e 0%, #6fbf55 100%);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.phone-link {
  color: #1f2d23;
  font-size: 14px;
}

/* =========================
   Buttons
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 11px;
  text-transform: uppercase;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(88, 153, 75, 0.4);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-quote {
  background: linear-gradient(180deg, #4f8d3f 0%, #2f6b2e 100%);
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(29, 67, 32, 0.5);
  height: 28px;
  padding: 0 12px;
}

.btn-primary {
  background: linear-gradient(180deg, #f2a146 0%, #e57903 100%);
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(160, 84, 22, 0.5);
  height: 49px;
  padding: 0 28px;
  font-size: 12px;
  width: 204px;
}

.btn-accent {
  background: linear-gradient(180deg, #f2a146 0%, #e57903 100%);
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(160, 84, 22, 0.45);
}

.btn-lawn {
  background: linear-gradient(180deg, #5fb456 0%, #2f6b2e 100%);
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(34, 86, 36, 0.5);
}

.btn-snow {
  background: linear-gradient(180deg, #3f86c2 0%, #2a6294 100%);
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(29, 65, 100, 0.45);
}

.btn-junk {
  background: linear-gradient(180deg, #f2a146 0%, #e57903 100%);
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(160, 84, 22, 0.45);
}

/* =========================
   Scroll To Top
========================= */

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f8d3f 0%, #2f6b2e 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 6px 14px rgba(18, 44, 22, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =========================
   Hero
========================= */

.hero {
  text-align: center;
  padding: 0 24px;
  background-image: url("assets/background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(58% + 20px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 32%,
    rgba(255, 255, 255, 0.65) 62%,
    rgba(255, 255, 255, 0.92) 85%,
    rgba(255, 255, 255, 1) 100%
  );
  border-top: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 0 38px;
  min-height: 824px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(600px, 92%);
  height: auto;
  display: block;
  margin: 8px auto 16px;
  opacity: 0;
  transform: scale(1);
  animation: logoFade 1.6s ease-out 0.2s 1 forwards, logoPulse 3.4s ease-out 0.2s 1;
  transition: transform 0.7s ease-in-out;
  filter: drop-shadow(0 8px 12px rgba(33, 52, 32, 0.35));
}

.hero-logo:hover,
.hero-logo:active {
  transform: scale(1.08);
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

.hero h1 {
  margin: 0 auto 8px;
  max-width: 760px;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #2b3f30;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: #5d6b60;
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   Services
========================= */

.services {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 0 90px 22px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(36, 64, 42, 0.12);
  border-radius: 10px;
  padding: 0 0 10px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(27, 42, 30, 0.08);
}

.service-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 20px;
}

.card-lawn {
  width: 261px;
}

.card-snow {
  width: 276px;
}

.card-junk {
  width: 262px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-weight: 700;
  color: #2b3f30;
  font-size: 16px;
}

.service-card p {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.35;
  color: #6a786e;
}

.btn-card {
  width: 187px;
  height: 41px;
  padding: 0;
  font-size: 11px;
}

/* =========================
   CTA Bar
========================= */

.cta-bar {
  display: block;
  gap: 16px;
  padding: 0 24px;
  background: linear-gradient(180deg, #3f8a3d 0%, #2b6530 100%);
  color: #ffffff;
  font-weight: 700;
  border-top: 0;
  position: relative;
  margin-top: 18px;
}

.cta-bar::before {
  content: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 90px;
  padding: 18px 0 12px;
  position: relative;
  z-index: 1;
}

.cta-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-text {
  font-size: 15px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-actions .btn-accent {
  width: 203px;
  height: 44px;
  padding: 0;
  font-size: 11px;
}

.cta-phone {
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
}

/* =========================
   Footer
========================= */

.site-footer {
  background-color: #0f1f16;
  background-image: url("assets/footer.png");
  background-size: cover;
  background-position: center 52%;
  background-repeat: no-repeat;
  color: #d9e4d5;
  padding: 28px 24px 10px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 18, 12, 0.25) 0%,
    rgba(6, 18, 12, 0.6) 45%,
    rgba(6, 18, 12, 0.85) 100%
  );
  z-index: 0;
}

.footer-item a:hover {
  text-decoration: underline;
}

.footer-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 60%;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #d9e4d5;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.quick-links a {
  padding: 0 8px;
  color: #d9e4d5;
  font-size: 14px;
}

.quick-links a:first-child {
  padding-left: 0;
}

.quick-links a:not(:last-child) {
  border-right: 1px solid rgba(217, 228, 213, 0.6);
}

.footer-emoji {
  font-size: 14px;
  line-height: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #d9e4d5;
}

.footer-links-label {
  font-weight: 700;
  color: #f3f8f0;
}

.footer-brand {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.footer-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.18s ease, filter 0.18s ease;
  transform-origin: center;
}

/* Hover: slightly shrink + gray out (desaturate + slightly dim) */
.footer-logo:hover {
  transform: scale(0.95);
  filter: grayscale(1) brightness(0.9) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
}

.footer-bottom {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  text-align: left;
  color: #c9d7c5;
  max-width: var(--content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: #c9d7c5;
}

/* =========================
   Accessibility Helpers
========================= */

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.anchor {
  height: 0;
}

/* =========================
   Animations
========================= */

@keyframes logoFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pageFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes logoPulse {
  0% {
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }

  .page {
    animation: none;
    opacity: 1;
  }

  .scroll-top {
    transition: none;
  }

  .footer-logo {
    transition: none;
  }
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  .services {
    flex-wrap: wrap;
    padding: 0 24px 24px;
  }

  .hero-inner {
    min-height: auto;
    padding-bottom: 32px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-contact {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-left {
    align-items: center;
  }

  .cta-actions .btn-accent {
    width: min(100%, 220px);
  }

  .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: center;
    padding: 10px 16px 14px;
  }

  .nav-right {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }

  .card-lawn,
  .card-snow,
  .card-junk {
    width: min(100%, 320px);
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-inner {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero-logo {
    width: min(520px, 90%);
  }

  .nav-left {
    justify-content: center;
    width: 100%;
    gap: 14px;
  }

  .phone-link {
    order: 1;
  }

  .btn-quote {
    order: 2;
  }

  .promo-banner {
    font-size: 11px;
  }
}

/* =========================
   Contact Page
========================= */

.contact-section {
  margin-top: 0px;
  padding-bottom: 120px;
  justify-content: center;
}

.contact-section .service-card {
  margin: 0 auto; /* perfect horizontal centering */
}

#contact-page .hero-inner {
  min-height: 0px; /* correct height for contact */
  padding-bottom: 80px;
}