/* GreenStack Moving Bins landing page */

:root {
  --forest: #10382A;
  --mid-green: #3A785A;
  --lime: #C6F24E;
  --cream: #F4F9F0;
  --white: #FFFFFF;
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --shadow-soft: 0 6px 24px rgba(16, 56, 42, 0.08);
  --shadow-card: 0 10px 32px rgba(16, 56, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--forest);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--mid-green);
}

.container {
  width: min(1280px, 100% - 2.5rem);
  margin-inline: auto;
}

section {
  padding: 4.5rem 0;
}

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--lime);
  color: var(--forest);
}

.btn-secondary {
  background: var(--white);
  color: var(--forest);
  border-color: var(--forest);
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 249, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 56, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 29px;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--forest);
}

.wordmark-light {
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--forest);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--mid-green);
}

.nav-links .btn-pill {
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
}

.nav-links .btn-pill:hover {
  color: var(--forest);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--forest);
  border-radius: 2px;
}

/* Hero */

.hero {
  background: var(--cream);
  padding-top: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow-badge {
  display: inline-block;
  background: var(--white);
  border: 1.5px solid var(--mid-green);
  color: var(--mid-green);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.2rem;
}

.hero-subhead {
  font-size: 1.1rem;
  color: var(--mid-green);
  max-width: 34rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--mid-green);
}

.hero-points li::before {
  content: "\2713";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-points strong {
  color: var(--forest);
  font-family: var(--font-heading);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1rem;
}

.hero-visual {
  position: relative;
}

.hero-shape {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 130px;
  height: 130px;
  background: var(--lime);
  border-radius: 26px;
  transform: rotate(12deg);
}

.hero-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.6rem;
  transform: rotate(-2deg);
}

.hero-card img {
  border-radius: 10px;
}

/* How it works */

.how {
  background: var(--white);
}

.how h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  position: relative;
  counter-increment: step;
  text-align: center;
  padding: 0 0.5rem;
}

.step-marker {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--cream);
  border: 2px solid var(--mid-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}

.step-marker::after {
  content: counter(step);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 34px;
  height: 34px;
}

/* Dashed connector between step markers */
.step + .step::before {
  content: "";
  position: absolute;
  top: 32px;
  right: calc(50% + 34px);
  width: calc(100% - 68px);
  border-top: 2.5px dashed var(--mid-green);
}

/* The bin: specs */

.bin-specs {
  background: var(--cream);
}

.bin-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.bin-annotated {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

.bin-dims {
  position: absolute;
  inset: 1.25rem;
  width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  pointer-events: none;
}

.bin-intro {
  color: var(--mid-green);
  margin-bottom: 1.6rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--mid-green);
  font-size: 0.95rem;
}

.spec-list li > svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--mid-green);
  margin-top: 1px;
}

.spec-list strong {
  color: var(--forest);
}

/* About */

.about {
  background: var(--forest);
}

.about h2,
.about p {
  color: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.about-visual img {
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.6rem;
  box-shadow: var(--shadow-card);
}

/* Feature row */

.features {
  background: var(--cream);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.5rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--mid-green);
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--mid-green);
  margin: 0;
}

/* Pricing */

.pricing {
  background: var(--white);
}

.pricing h2 {
  text-align: center;
}

.pricing-intro {
  text-align: center;
  color: var(--mid-green);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--forest);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--lime);
  background: var(--cream);
  border-radius: 8px 8px 0 0;
}

.package-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  text-align: center;
}

.package-size {
  color: var(--mid-green);
  margin-bottom: 0.3em;
}

.package-bins {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.3em;
}

.package-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  margin: 0.2em 0;
}

.package-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid-green);
}

.package-extra {
  color: var(--mid-green);
  margin-bottom: 1.4em;
}

.addons {
  max-width: 480px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.addons h3 span {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--mid-green);
}

.addons ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.addons li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(16, 56, 42, 0.1);
  display: flex;
  justify-content: space-between;
}

.addons-note {
  font-weight: 500;
  color: var(--mid-green);
}

.custom-note {
  max-width: 480px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--mid-green);
}

/* Service area */

.service-area {
  background: var(--cream);
  text-align: center;
}

.service-area p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--mid-green);
}

/* Testimonials */

.testimonials {
  background: var(--white);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card blockquote {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mid-green);
}

.testimonial-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
}

.testimonial-neighbourhood {
  display: block;
  font-size: 0.85rem;
  color: var(--mid-green);
}

/* FAQ */

.faq {
  background: var(--cream);
}

.faq h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
}

.faq-list details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.8rem;
  padding: 0 1.4rem;
}

.faq-list summary {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--mid-green);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  padding-bottom: 1.2rem;
  margin: 0;
  color: var(--mid-green);
}

/* Lead form */

.lead {
  background: var(--forest);
}

.lead h2,
.lead .lead-subtext {
  color: var(--cream);
  text-align: center;
}

.lead-subtext {
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

#booking-form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-field .req {
  color: var(--mid-green);
}

.form-field .optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--mid-green);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--forest);
  background: var(--cream);
  border: 1.5px solid rgba(16, 56, 42, 0.2);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--mid-green);
  outline-offset: 1px;
}

.form-field input.invalid,
.form-field select.invalid {
  border-color: #c0392b;
}

.field-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.btn-submit {
  width: 100%;
  border: none;
  font-size: 1.05rem;
  padding: 0.9rem;
}

.form-status {
  margin: 1rem 0 0;
  text-align: center;
  color: #c0392b;
  font-size: 0.9rem;
}

.form-thanks {
  max-width: 520px;
  margin: 0 auto;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  text-align: center;
}

/* Legal pages */

.legal {
  background: var(--cream);
}

.legal-inner {
  max-width: 44rem;
}

.legal-inner h2 {
  font-size: 1.3rem;
  margin-top: 2.2rem;
}

.legal-inner p,
.legal-inner li {
  color: var(--mid-green);
}

.legal-inner ul {
  margin: 0 0 1em;
  padding-left: 1.2rem;
}

.legal-inner li {
  margin-bottom: 0.4em;
}

.legal-inner strong {
  color: var(--forest);
}

.legal-updated {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */

.site-footer {
  background: var(--forest);
  border-top: 1px solid rgba(244, 249, 240, 0.15);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-tagline {
  color: var(--cream);
  font-size: 0.95rem;
  max-width: 26rem;
  margin-top: 1rem;
}

.footer-info {
  text-align: right;
  color: var(--cream);
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--lime);
}

.placeholder-flag {
  opacity: 0.6;
  font-size: 0.8rem;
}

.footer-areas {
  opacity: 0.85;
}

.footer-copyright {
  opacity: 0.6;
  margin-bottom: 0;
}

/* Animations, only for users who have not asked for reduced motion */

@media (prefers-reduced-motion: no-preference) {

  .js-anim .step {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }

  .js-anim .step.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .js-anim .step:nth-child(2) { transition-delay: 0.15s; }
  .js-anim .step:nth-child(3) { transition-delay: 0.3s; }
  .js-anim .step:nth-child(4) { transition-delay: 0.45s; }

  /* Connector draws in as its step reveals */
  .js-anim .step + .step::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease-out;
  }

  .js-anim .step.is-visible + .step.is-visible::before,
  .js-anim .step.is-visible::before {
    transform: scaleX(1);
  }

  .js-anim .step:nth-child(2).is-visible::before { transition-delay: 0.25s; }
  .js-anim .step:nth-child(3).is-visible::before { transition-delay: 0.4s; }
  .js-anim .step:nth-child(4).is-visible::before { transition-delay: 0.55s; }

  /* Step 1: checkmark draws in */
  .icon-book .check-path {
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
  }

  .js-anim .step.is-visible .icon-book .check-path {
    animation: check-draw 0.5s ease-out 0.5s forwards;
  }

  @keyframes check-draw {
    to { stroke-dashoffset: 0; }
  }

  /* ...then the whole calendar gives a soft pulse every few seconds */
  .js-anim .step.is-visible .icon-book {
    animation: icon-pulse 3.6s ease-in-out 1.4s infinite;
  }

  @keyframes icon-pulse {
    0%, 14%, 100% { transform: scale(1); }
    7% { transform: scale(1.12); }
  }

  /* Step 2: truck nudges in from the left, then bobs like it's driving */
  .js-anim .step.is-visible .icon-truck-in {
    animation:
      truck-in 0.6s ease-out 0.55s backwards,
      truck-bob 1.6s ease-in-out 1.3s infinite;
  }

  @keyframes truck-in {
    from { transform: translateX(-14px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }

  @keyframes truck-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
  }

  /* Step 3: lid rotates closed */
  .icon-pack .lid-group {
    transform-origin: 6px 20px;
  }

  .js-anim .step.is-visible .icon-pack .lid-group {
    animation:
      lid-close 0.55s ease-out 0.7s backwards,
      lid-peek 4s ease-in-out 2s infinite;
  }

  @keyframes lid-close {
    from { transform: rotate(-18deg); }
    to { transform: rotate(0deg); }
  }

  /* ...then the lid peeks open and closes again every few seconds */
  @keyframes lid-peek {
    0%, 55%, 90%, 100% { transform: rotate(0deg); }
    70% { transform: rotate(-14deg); }
  }

  /* Step 4: truck gently drives out to the right, looping with a bob */
  .js-anim .step.is-visible .icon-truck-out {
    animation: truck-out 2.4s ease-in-out 0.9s infinite;
  }

  @keyframes truck-out {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(4px, -1.5px); }
    50% { transform: translate(7px, 0); }
    75% { transform: translate(3px, -1px); }
  }
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .bin-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .about-visual {
    order: -1;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Vertical connector when steps stack */
  .step + .step::before {
    top: -34px;
    right: auto;
    left: 50%;
    width: 0;
    height: 34px;
    border-top: none;
    border-left: 2.5px dashed var(--mid-green);
  }

  @media (prefers-reduced-motion: no-preference) {
    .js-anim .step + .step::before {
      transform: scaleY(0);
      transform-origin: top;
    }

    .js-anim .step.is-visible::before {
      transform: scaleY(1);
    }
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-info {
    text-align: left;
  }
}

@media (max-width: 720px) {
  section {
    padding: 3rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--cream);
    border-bottom: 1px solid rgba(16, 56, 42, 0.1);
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-shape {
    right: -8px;
    bottom: -12px;
    width: 90px;
    height: 90px;
  }
}
