/* Home — massjunkhauling.live (mas57) */

.mas57-home {
  display: flex;
  flex-direction: column;
}

.mas57-ribbon {
  padding: 0.7rem 0;
  background: color-mix(in srgb, var(--mas57-surface) 70%, var(--mas57-accent));
  border-block: 1px solid var(--mas57-line);
}

.mas57-ribbon-inner {
  display: flex;
  justify-content: flex-start;
}

.mas57-ribbon p {
  margin: 0;
  color: var(--mas57-ink);
  font: 600 0.78rem/1.35 var(--mas57-display);
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.mas57-home h1,
.mas57-home h2,
.mas57-home h3 {
  color: var(--mas57-ink);
}

.mas57-home .mas57-lead,
.mas57-home .mas57-body {
  color: var(--mas57-muted);
  max-width: 38rem;
}

.mas57-home .mas57-lead {
  font-size: 1.05rem;
  line-height: 1.6;
}

.mas57-home .mas57-body {
  font-size: 0.98rem;
  line-height: 1.65;
}

.mas57-home .mas57-kicker {
  margin: 0;
  color: var(--mas57-accent-2);
  font: 700 0.72rem/1.2 var(--mas57-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mas57-home .mas57-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.mas57-home .mas57-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--mas57-ink) 28%, transparent);
  color: var(--mas57-ink);
  font: 700 0.8rem/1 var(--mas57-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  background: transparent;
}

.mas57-home .mas57-ghost:hover {
  border-color: var(--mas57-ink);
  background: color-mix(in srgb, var(--mas57-surface) 70%, transparent);
}

.mas57-home .mas57-section {
  padding: clamp(3.25rem, 6vw, 5rem) 0;
}

.mas57-home .mas57-section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 40rem;
}

.mas57-home .mas57-section-head h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.15;
}

/* —— 1. Bleed overlay hero —— */
.mas57-home .hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: clamp(4.5rem, 10vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  color: var(--mas57-ink);
  overflow: clip;
}

.mas57-home .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mas57-home .hero-photo,
.mas57-home .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mas57-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--mas57-bg) 92%, #fff) 0%,
      color-mix(in srgb, var(--mas57-bg) 78%, transparent) 42%,
      color-mix(in srgb, var(--mas57-bg) 28%, transparent) 72%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--mas57-bg) 88%, transparent) 0%,
      transparent 45%
    );
}

.mas57-home .hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--mas57-max), calc(100% - 2 * var(--mas57-pad)));
  margin-inline: auto;
}

.mas57-home .hero-copy {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
  justify-items: start;
}

.mas57-home .hero-copy h1 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.mas57-home .hero .mas57-ghost {
  border-color: color-mix(in srgb, var(--mas57-ink) 35%, transparent);
  background: color-mix(in srgb, var(--mas57-surface) 55%, transparent);
  backdrop-filter: blur(4px);
}

/* —— 2. Chelmsford-base about —— */
.mas57-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.mas57-about-copy {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  justify-items: start;
}

.mas57-about-facts {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--mas57-ink);
  font-size: 0.95rem;
}

.mas57-about-facts span {
  display: block;
  color: var(--mas57-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.mas57-about-media {
  margin: 0;
  border: 1px solid var(--mas57-line);
  background: var(--mas57-surface);
}

.mas57-about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mas57-about-media figcaption {
  padding: 0.65rem 0.85rem;
  color: var(--mas57-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— 3. Accordion services —— */
.mas57-svc-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.mas57-svc-visual {
  position: sticky;
  top: 6.5rem;
  margin: 0;
  border: 1px solid var(--mas57-line);
  background: var(--mas57-surface);
  overflow: hidden;
}

.mas57-svc-visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.mas57-svc-catalog {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mas57-svc {
  margin: 0;
  border: 1px solid var(--mas57-line);
  background: var(--mas57-surface);
}

.mas57-svc > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
}

.mas57-svc > summary::-webkit-details-marker { display: none; }

.mas57-svc .mas57-svc-ic {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--mas57-accent) 18%, var(--mas57-surface));
  color: var(--mas57-accent-2);
}

.mas57-svc .mas57-svc-title {
  font: 650 1.05rem/1.2 var(--mas57-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--mas57-ink);
}

.mas57-svc .mas57-svc-mark {
  color: var(--mas57-accent-2);
  font: 700 1.25rem/1 var(--mas57-display);
  transition: transform 0.2s ease;
}

.mas57-svc[open] .mas57-svc-mark { transform: rotate(45deg); }

/* Defeat shared DNA accordion collapse (home uses <details>, not JS is-open) */
.mas57-home .mas57-svc h3::after { content: none !important; display: none !important; }
.mas57-home .mas57-svc .service-item-body,
.mas57-home .mas57-svc[open] .service-item-body {
  display: grid;
  gap: 0.85rem;
  max-height: none !important;
  overflow: visible;
  padding: 0.95rem 1.1rem 1.15rem;
  border-top: 1px solid var(--mas57-line);
  transition: none;
}

.mas57-svc .service-item-body p {
  color: var(--mas57-muted);
  font-size: 0.95rem;
}

.mas57-svc .service-item-body img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid var(--mas57-line);
}

/* —— 4. Haul-sequence approach —— */
.mas57-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mas57-step;
}

.mas57-step {
  counter-increment: mas57-step;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.55rem;
  align-content: start;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--mas57-line);
  background: var(--mas57-surface);
  min-width: 0;
}

.mas57-step::before {
  content: counter(mas57-step, decimal-leading-zero);
  color: var(--mas57-accent-2);
  font: 700 0.78rem/1 var(--mas57-display);
  letter-spacing: 0.08em;
}

.mas57-step h3 {
  font-size: 1.05rem;
  line-height: 1.2;
  text-wrap: balance;
}

.mas57-step p {
  color: var(--mas57-muted);
  font-size: 0.94rem;
  text-wrap: pretty;
}

/* —— 5. Sidebar callback band (CTA to contact) —— */
.mas57-band {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.mas57-band-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.75fr);
  gap: 0;
  border: 1px solid var(--mas57-line);
  background: var(--mas57-surface);
  overflow: hidden;
}

.mas57-band-copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  justify-items: start;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.mas57-band-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.mas57-band-side {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-left: 1px solid var(--mas57-line);
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--mas57-accent) 16%, var(--mas57-surface)),
      var(--mas57-surface) 70%
    );
}

.mas57-band-side p {
  color: var(--mas57-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .mas57-about-grid,
  .mas57-svc-shell,
  .mas57-band-panel {
    grid-template-columns: 1fr;
  }

  .mas57-svc-visual { position: static; }

  .mas57-band-side {
    border-left: none;
    border-top: 1px solid var(--mas57-line);
  }

  .mas57-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mas57-home .hero {
    min-height: min(70vh, 620px);
    align-items: flex-end;
  }

  /* Stronger wash so kicker/lead stay readable over pale lot stills */
  .mas57-home .hero-visual::after {
    background:
      linear-gradient(
        to top,
        color-mix(in srgb, var(--mas57-bg) 96%, transparent) 0%,
        color-mix(in srgb, var(--mas57-bg) 88%, transparent) 42%,
        color-mix(in srgb, var(--mas57-bg) 62%, transparent) 72%,
        color-mix(in srgb, var(--mas57-bg) 28%, transparent) 100%
      );
  }

  .mas57-home .hero-copy { max-width: none; }
  .mas57-home .hero .mas57-kicker {
    color: var(--mas57-accent-2);
    text-shadow: 0 1px 0 color-mix(in srgb, var(--mas57-bg) 70%, transparent);
  }
  .mas57-home .hero .mas57-lead {
    color: color-mix(in srgb, var(--mas57-ink) 88%, var(--mas57-muted));
  }

  .mas57-svc > summary {
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  .mas57-home .hero-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.1rem);
  }

  .mas57-home .mas57-actions {
    width: 100%;
  }

  .mas57-home .mas57-actions .mas57-cta,
  .mas57-home .mas57-actions .mas57-ghost {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mas57-svc .mas57-svc-mark { transition: none; }
}
