
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  max-width: 800px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero .cta-button {
  margin: 0.5rem;
}
/* Existing styles from base.html have been inlined, but we can add more here */

/* Scoped hero overlay for Scrap Car Collection page only - mobile stacked, desktop overlay */
.scrap-hero-wrap .hero-image { margin: 0; }
.scrap-hero-wrap .hero-image img { width: 100%; height: auto; display: block; }
.scrap-hero-wrap .hero-text { padding: 2rem; text-align: center; }
.scrap-hero-wrap .hero-text h1 { font-size: 2rem; margin-bottom: 1rem; }
.scrap-hero-wrap .hero-text p { max-width: 600px; margin: 0 auto 1.5rem; }

@media (min-width: 1024px) {
  .scrap-hero-wrap { position: relative; }
  .scrap-hero-wrap .hero-image { position: relative; }
  .scrap-hero-wrap .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  }
  .scrap-hero-wrap .hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 2rem;
  }
  .scrap-hero-wrap .hero-text h1 { font-size: 2.5rem; max-width: 800px; }
  .scrap-hero-wrap .hero-text p { font-size: 1.2rem; }
}

/* Fix: scrap-car-collection page has a local inline <style> block with .hero-text{background:#f1c40f}
   which was fine as a stacked banner, but paints solid yellow over the photo now that desktop
   makes .hero-text position:absolute. Force it transparent on desktop only. */
@media (min-width: 1024px) {
  .scrap-hero-wrap .hero-text {
    background: transparent !important;
    margin: 0 !important;
  }
}

/* Scoped hero overlay for Shed Clearance page - mobile stacked, desktop overlay */
.shed-hero-wrap .hero-image { margin: 0; }
.shed-hero-wrap .hero-image img { width: 100%; height: auto; display: block; }
.shed-hero-wrap .hero-text { padding: 2rem; text-align: center; }
.shed-hero-wrap .hero-text h1 { font-size: 2rem; margin-bottom: 1rem; }
.shed-hero-wrap .hero-text p { max-width: 600px; margin: 0 auto 1.5rem; }

@media (min-width: 1024px) {
  .shed-hero-wrap { position: relative; }
  .shed-hero-wrap .hero-image { position: relative; }
  .shed-hero-wrap .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  }
  .shed-hero-wrap .hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 2rem;
  }
  .shed-hero-wrap .hero-text h1 { font-size: 2.5rem; max-width: 800px; }
  .shed-hero-wrap .hero-text p { font-size: 1.2rem; }
}

/* Fix: shed-clearance page has a local inline <style> block with .hero-text{background:#f1c40f}
   which is fine as a stacked banner, but would paint solid yellow over the photo once desktop
   makes .hero-text position:absolute. Force it transparent on desktop only. */
@media (min-width: 1024px) {
  .shed-hero-wrap .hero-text {
    background: transparent !important;
    margin: 0 !important;
  }
}

/* Scoped hero overlay for Rubbish Removal page - mobile stacked, desktop overlay */
.rubbish-hero-wrap .hero-image { margin: 0; }
.rubbish-hero-wrap .hero-image img { width: 100%; height: auto; display: block; }
.rubbish-hero-wrap .hero-text { padding: 2rem; text-align: center; }
.rubbish-hero-wrap .hero-text h1 { font-size: 2rem; margin-bottom: 1rem; }
.rubbish-hero-wrap .hero-text p { max-width: 600px; margin: 0 auto 1.5rem; }

@media (min-width: 1024px) {
  .rubbish-hero-wrap { position: relative; }
  .rubbish-hero-wrap .hero-image { position: relative; }
  .rubbish-hero-wrap .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  }
  .rubbish-hero-wrap .hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 2rem;
  }
  .rubbish-hero-wrap .hero-text h1 { font-size: 2.5rem; max-width: 800px; }
  .rubbish-hero-wrap .hero-text p { font-size: 1.2rem; }
}

@media (min-width: 1024px) {
  .rubbish-hero-wrap .hero-text {
    background: transparent !important;
    margin: 0 !important;
  }
}

/* Services dropdown nav */
.dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; color: #fff; font: inherit; font-size: 1rem; cursor: pointer; padding: 0; margin-left: 1.5rem; }
.dropdown-menu { display: none; flex-direction: column; background: #2c3e50; min-width: 220px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); border-radius: 0 0 8px 8px; overflow: hidden; z-index: 1001; }
.dropdown-menu a { margin: 0; padding: 0.6rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu.open { display: flex; }

@media (min-width: 769px) {
  .dropdown-menu { position: absolute; top: 100%; left: 0; }
}

@media (max-width: 768px) {
  #nav-menu .dropdown { width: 100%; }
  #nav-menu .dropdown-toggle { width: 100%; text-align: center; padding: 0.5rem 1rem; border-bottom: 1px solid #444; margin-left: 0; }
  .dropdown-menu { position: static; box-shadow: none; border-radius: 0; background: #1c2b38; }
  .dropdown-menu a { text-align: center; padding: 0.5rem 1rem; border-bottom: 1px solid #444; }
}


/* Canonical hero background rule - single source of truth, added to end of file
   so it cannot be overridden by anything earlier in this stylesheet. */
main > section.hero,
section.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/hero-image.png') center/cover no-repeat !important;
  color: #fff !important;
  padding: 6rem 2rem !important;
  text-align: center !important;
  min-height: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}
section.hero h1 { color: #fff !important; font-size: 2.5rem; margin-bottom: 1rem; max-width: 800px; }
section.hero p { color: #fff !important; font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; }
section.hero .based-in { color: #fff !important; }
section.hero .cta-button { margin: 0.5rem; }


/* Hero subtitle contrast badge (canonical) */
.hero-subtitle-badge {
    display: inline-block;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 0.75rem auto;
    text-align: center;
}
