/* Junk Rescue — Tempe, AZ | self-contained styles */

:root {
  --green: #3aa35a;
  --green-bright: #6dc47f;
  --green-dark: #2c8047;
  --green-soft: #e8f4ec;
  --charcoal: #23272b;
  --charcoal-2: #14171a;
  --ink: #1c2023;
  --slate: #4b5560;
  --mist: #f4f6f5;
  --gray-100: #f7f8f8;
  --gray-200: #eceeef;
  --gray-300: #d9dddf;
  --white: #ffffff;

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(20, 23, 26, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 23, 26, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 23, 26, 0.16);
  --maxw: 1200px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; color: var(--charcoal); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--green-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  line-height: 1;
}
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(58,163,90,.28); }
.btn--green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(58,163,90,.34); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--charcoal); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; color: var(--green-dark); margin: 0 0 .6rem;
}
.eyebrow.center { text-align: center; }
.section-intro { max-width: 620px; margin: 0 auto 2.4rem; color: var(--slate); }

/* ---------- Intro animation ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 30%, var(--charcoal) 0%, var(--charcoal-2) 100%);
  transition: opacity .5s ease, visibility .5s ease;
}
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__inner { text-align: center; padding: 24px; }
.intro__scene { width: min(80vw, 420px); height: auto; }
.intro__word {
  font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: #fff; margin: 14px 0 4px; letter-spacing: -0.01em;
  opacity: 0; animation: introWord .6s ease forwards .9s;
}
.intro__word span { color: var(--green-bright); }
.intro__tag { color: #aeb7bd; font-size: 1rem; margin: 0; opacity: 0; animation: introWord .6s ease forwards 1.25s; }
.intro__skip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3);
  padding: 8px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 600;
  cursor: pointer; transition: background .2s ease;
}
.intro__skip:hover { background: rgba(255,255,255,.22); }

.jr-junk { transform-origin: center; }
.jr-junk1 { animation: junkOut .5s ease forwards .35s; }
.jr-junk2 { animation: junkOut .5s ease forwards .55s; }
.jr-junk3 { animation: junkOut .5s ease forwards .75s; }
.jr-junk4 { animation: junkOut .5s ease forwards .95s; }
.jr-junk5 { animation: junkOut .5s ease forwards 1.15s; }
.jr-sparkle { opacity: 0; transform-origin: 160px 90px; animation: sparklePop .7s ease forwards 1.45s; }

@keyframes junkOut {
  to { opacity: 0; transform: translateY(26px) scale(.6); }
}
@keyframes sparklePop {
  0% { opacity: 0; transform: scale(.2) rotate(-30deg); }
  55% { opacity: 1; transform: scale(1.25) rotate(8deg); }
  100% { opacity: .9; transform: scale(1) rotate(0); }
}
@keyframes introWord { to { opacity: 1; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--charcoal); }
.wordmark__mark { width: 34px; height: 34px; }
.wordmark__text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.wordmark__text strong { color: var(--green-dark); font-weight: 900; }
.wordmark--light { color: #fff; }
.wordmark--light .wordmark__text strong { color: var(--green-bright); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--charcoal); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--green-dark); }
.nav a.btn { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--charcoal); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-bottom: 1px solid var(--gray-200); background: #fff; }
.mobile-nav a { font-family: var(--font-head); font-weight: 600; padding: 11px 4px; color: var(--charcoal); text-decoration: none; border-bottom: 1px solid var(--gray-100); }
.mobile-nav a.btn { color: #fff; margin-top: 8px; border: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 80px) 0; background: linear-gradient(180deg, var(--gray-100) 0%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { color: var(--green); font-style: normal; }
.lede { font-size: 1.14rem; color: var(--slate); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.1rem; }
.hero__trust { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--slate); margin: 0; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(20,23,26,.14)); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--charcoal); color: #fff; }
.trustbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 20px; }
.trustbar__item strong { display: block; font-family: var(--font-head); font-weight: 800; color: var(--green-bright); font-size: 1.05rem; }
.trustbar__item span { font-size: .88rem; color: #c3cbd0; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--dark { background: var(--charcoal); color: #dfe4e7; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--green-bright); }
.section--soft { background: var(--gray-100); }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-bright); }
.card__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); margin-bottom: 14px; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Why us ---------- */
.why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.why__copy p { color: #c3cbd0; }
.why__list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 10px; }
.why__list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: #eef2f4; }
.why__list li span { color: var(--charcoal-2); background: var(--green-bright); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--green-bright); }
.stat span { font-size: .9rem; color: #b7c0c6; }

/* ---------- Before/After showcase ---------- */
.ba {
  position: relative; max-width: 760px; margin: 0 auto; aspect-ratio: 5 / 3;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  user-select: none; touch-action: pan-y;
}
.ba__panel { position: absolute; inset: 0; }
.ba__panel svg { width: 100%; height: 100%; display: block; }
.ba__before { clip-path: inset(0 45% 0 0); will-change: clip-path; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 55%; width: 4px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.ba__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--green); box-shadow: var(--shadow-md); display: block; }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; }
.ba__handle span::before { left: 9px; transform: translateY(-50%); border-right-color: #fff; }
.ba__handle span::after { right: 9px; transform: translateY(-50%); border-left-color: #fff; }

/* ---------- Testimonials ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; margin: 0; box-shadow: var(--shadow-sm); }
.review blockquote { margin: 0 0 14px; font-size: 1.02rem; color: var(--ink); }
.review blockquote::before { content: "\201C"; color: var(--green-bright); font-family: var(--font-head); font-size: 2.4rem; line-height: 0; vertical-align: -0.4rem; margin-right: 4px; }
.review figcaption { font-family: var(--font-head); font-weight: 700; color: var(--green-dark); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq__item summary { font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--charcoal); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--green); transition: transform .2s ease; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--slate); margin: 0 0 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(36px, 6vw, 60px) 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact__meta { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; }
.contact__meta li { color: var(--slate); }
.contact__meta strong { color: var(--charcoal); font-family: var(--font-head); }
.contact__form { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--charcoal); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--gray-100); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(58,163,90,.15); }
.field textarea { resize: vertical; }
.form-status { font-weight: 600; font-family: var(--font-head); margin: 12px 0 0; min-height: 1.2em; }
.form-status.is-ok { color: var(--green-dark); }
.form-status.is-err { color: #c0392b; }
.form-fine { font-size: .8rem; color: var(--slate); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal-2); color: #b7c0c6; padding: 48px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 32px; }
.footer__brand p { max-width: 32ch; font-size: .92rem; margin-top: 12px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a, .footer__contact a { color: #cfd6da; text-decoration: none; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--green-bright); }
.footer__contact p { margin: 0 0 6px; font-size: .92rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--green-bright); }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--gray-200); box-shadow: 0 -6px 20px rgba(20,23,26,.08); }
.sticky-bar__btn { flex: 1; text-align: center; font-family: var(--font-head); font-weight: 700; padding: 14px; border-radius: 999px; text-decoration: none; }
.sticky-bar__call { background: var(--charcoal); color: #fff; }
.sticky-bar__quote { background: var(--green); color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 380px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); }
  .why__grid, .contact__grid { grid-template-columns: 1fr; gap: 28px; }
  .reviews { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 74px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .trustbar__inner { grid-template-columns: 1fr; text-align: center; }
  .why__stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .lede { max-width: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none !important; }
}
