/* Southeast Auto Recycling. Brand: lime #aaff00, ink #101713, white, blue accents.
   Lime is only used on dark backgrounds or as a button fill with dark text (contrast). */
:root {
  --lime: #aaff00;
  --ink: #101713;
  --ink-2: #1c2620;
  --paper: #f5f6f0;
  --line: #d9dfd2;
  --text: #1a211c;
  --muted: #4a5548;
  --olive: #476312; /* lime-family text on light backgrounds (AA) */
  --blue: #1664b0; /* links on light backgrounds (AA) */
  --blue-bright: #3aa0f0;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 64px; /* room for the mobile action bar */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--blue);
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  font-weight: 850;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
}
h3 {
  font-size: 1.2rem;
}
em {
  font-style: normal;
  color: var(--lime);
}
:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
}
.skip:focus {
  left: 10px;
  top: 10px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.logo-img {
  width: 150px;
}
.site-header nav {
  order: 3;
  width: 100%;
  display: flex;
  gap: 4px 16px;
  overflow-x: auto;
  font-size: 0.95rem;
  font-weight: 650;
}
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 2px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  border-bottom-color: var(--lime);
}
.call-top {
  padding: 10px 14px;
  min-height: 44px;
  font-size: 0.95rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--lime);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: #c6ff4d;
}
.button.big {
  font-size: 1.1rem;
  padding: 14px 24px;
}
.button.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.button.dark:hover {
  background: var(--ink-2);
}
.button.ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.button.ghost-light:hover {
  border-color: var(--lime);
}
.button.ghost {
  background: #fff;
  border-color: var(--line);
}
.button[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.text-link {
  font-weight: 700;
}
.text-link.light,
.dark a:not(.button) {
  color: var(--lime);
}

/* Layout */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.wrap.narrow {
  max-width: 780px;
}
.band {
  padding: 56px 0;
}
.band.muted {
  background: var(--paper);
}
.band.dark {
  background: var(--ink);
  color: #fff;
}
.two {
  display: grid;
  gap: 32px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--olive);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kicker.light,
.dark .kicker {
  color: #cfe6b8;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
}
.lead {
  font-size: 1.15rem;
  max-width: 40em;
}
.hint {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Hero */
.hero {
  background: var(--ink);
  color: #fff;
  display: grid;
}
.hero-copy {
  padding: 40px 16px 36px;
}
.hero-copy .lead {
  color: #e3eadf;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}
.hero-sub {
  color: #e3eadf;
}
.hero-img img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 44px 0 40px;
  border-bottom: 6px solid var(--lime);
}
.page-hero .lead {
  color: #e3eadf;
}
.page-hero.slim {
  padding: 32px 0;
}
.page-hero a:not(.button) {
  color: var(--lime);
}
.ticks {
  padding: 0;
  list-style: none;
}
.ticks li {
  padding-left: 30px;
  position: relative;
  margin: 8px 0;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--olive);
  border-bottom: 3px solid var(--olive);
  transform: rotate(-45deg);
}
.ticks.light li::before {
  border-color: var(--lime);
}

/* Paths */
.paths {
  background: var(--paper);
}
.path {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--lime);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.path.sell {
  border-top-color: var(--blue);
}
.path .button {
  margin: 8px 16px 8px 0;
}

/* Cards */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.cards article a {
  font-weight: 700;
}
.big-link {
  font-size: 1.5rem;
  font-weight: 800;
}
.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  background: var(--paper);
  max-width: 640px;
}

/* Gallery */
.gallery {
  display: grid;
  gap: 12px;
  margin: 24px 0 12px;
}
.gallery figure,
.inline-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery .wide img {
  aspect-ratio: auto;
}
.inline-photo {
  margin-top: 24px;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  font-weight: 750;
  cursor: pointer;
  min-height: 32px;
}
.faq p {
  margin: 10px 0 0;
}

/* Steps list */
.steps-list {
  list-style: none;
  padding: 0;
}
.steps-list li {
  display: flex;
  gap: 16px;
  margin: 0 0 18px;
}
.steps-list li > span {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-weight: 850;
  display: grid;
  place-items: center;
}
.steps-list p {
  margin: 0;
}

/* Forms */
.inquiry-form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--lime);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 10px 30px rgba(16, 23, 19, 0.08);
  align-self: start;
  scroll-margin-top: 16px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}
legend {
  font-weight: 800;
  margin-bottom: 8px;
  padding: 0;
}
.field {
  margin: 0 0 14px;
}
.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 4px;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 12px;
  border: 1.5px solid #8a9686;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  min-height: 46px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 1px;
  border-color: var(--blue);
}
.grid {
  display: grid;
  gap: 0 12px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 4px;
}
.check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  flex: none;
  margin-top: 2px;
  accent-color: var(--olive);
}
.check label {
  font-weight: 650;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.progress {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  gap: 8px;
  counter-reset: s;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.progress li {
  flex: 1;
  border-top: 4px solid var(--line);
  padding-top: 6px;
  counter-increment: s;
}
.progress li::before {
  content: counter(s) ". ";
}
.progress li[aria-current="step"],
.progress li.done {
  border-top-color: var(--olive);
  color: var(--text);
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.form-actions [type="submit"],
.form-actions [data-next] {
  margin-left: auto;
}
.form-status {
  margin: 12px 0;
  font-weight: 650;
}
.form-status:empty {
  display: none;
}
.form-status.ok {
  background: #eaf7d6;
  border-left: 5px solid var(--olive);
  padding: 12px 14px;
}
.form-status.error {
  background: #fdecea;
  border-left: 5px solid #b3261e;
  padding: 12px 14px;
  color: #7a1712;
}
[hidden] {
  display: none !important;
}

/* Location */
.location .address {
  font-size: 1.25rem;
  font-weight: 700;
}
.actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.draft-note {
  background: #fff6d6;
  border-left: 5px solid #b58a00;
  padding: 12px 14px;
}
.prose ul {
  padding-left: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d7e0d2;
  padding: 40px 16px 24px;
  display: grid;
  gap: 24px;
}
.site-footer h2 {
  font-size: 1rem;
  color: #fff;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin: 6px 0;
}
.site-footer a {
  color: #fff;
}
.footer-logo {
  width: 160px;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
}
.fine {
  font-size: 0.85rem;
  color: #aebaa8;
  grid-column: 1/-1;
}

/* Mobile action bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: var(--ink);
  border-top: 3px solid var(--lime);
  z-index: 50;
}
.mobile-bar a {
  flex: 1;
  text-align: center;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 6px;
  min-height: 52px;
}
.mobile-bar a:first-child {
  background: var(--lime);
  color: var(--ink);
}

/* Larger screens */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid.three {
    grid-template-columns: 100px 1fr 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery .wide {
    grid-column: 1/-1;
  }
  .site-footer {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }
  .mobile-bar {
    display: none;
  }
  .site-header {
    flex-wrap: nowrap;
    padding: 12px 32px;
  }
  .logo-img {
    width: 190px;
  }
  .site-header nav {
    order: 0;
    width: auto;
    justify-content: center;
  }
  .hero {
    grid-template-columns: 1.1fr 1fr;
    min-height: 560px;
  }
  .hero-copy {
    padding: 72px 48px 56px max(32px, calc((100vw - 1160px) / 2));
    align-self: center;
  }
  .hero-img img {
    max-height: none;
  }
  .two {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .form-layout {
    grid-template-columns: 1fr 1.1fr;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .band {
    padding: 80px 0;
  }
  .inquiry-form {
    padding: 30px 28px;
  }
}

/* ===================== Motion (src/fx.js) ===================== */
/* Animated logo: base artwork, spinning arrows layer, chrome "S" on top, and a shine sweep. */
.logo-live {
  position: relative;
  display: block;
  line-height: 0;
}
.logo-live img {
  width: 100%;
  height: auto;
}
.logo-live .ll-arrows,
.logo-live .ll-top,
.logo-live .ll-shine {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.footer-logo.logo-live .ll-arrows,
.footer-logo.logo-live .ll-top,
.footer-logo.logo-live .ll-shine {
  left: 6px;
  top: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
}
/* The ring is an 80 x 95.5 px oval centred at (100.3, 124.2) in the 638 x 256 artwork:
   stretch to a circle, rotate, squash back. */
.logo-live .ll-arrows {
  transform-origin: 15.72% 48.52%;
  transform: scaleX(0.8377) rotate(var(--spin, 0deg)) scaleX(1.1938);
  will-change: transform;
}
.logo-live .ll-shine {
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  -webkit-mask: url("/img/southeast-logo.png") center / 100% 100% no-repeat;
  mask: url("/img/southeast-logo.png") center / 100% 100% no-repeat;
  opacity: 0;
}
.fx .logo-live .ll-shine {
  animation: ll-shine 7s ease-in-out 1.2s infinite;
}
@keyframes ll-shine {
  0% { background-position: 160% 0; opacity: 0; }
  4% { opacity: 1; }
  22% { background-position: -60% 0; opacity: 1; }
  26%, 100% { background-position: -60% 0; opacity: 0; }
}

/* Hero entrance */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes photo-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
.fx .hero-copy > *,
.fx .page-hero .wrap > * {
  animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.fx .hero-copy > :nth-child(2),
.fx .page-hero .wrap > :nth-child(2) { animation-delay: 0.12s; }
.fx .hero-copy > :nth-child(3),
.fx .page-hero .wrap > :nth-child(3) { animation-delay: 0.24s; }
.fx .hero-copy > :nth-child(4),
.fx .page-hero .wrap > :nth-child(4) { animation-delay: 0.36s; }
.fx .hero-copy > :nth-child(5) { animation-delay: 0.48s; }
.fx .hero-img { overflow: hidden; }
.fx .hero-img img { animation: photo-in 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.fx .kicker .dot { animation: dot-pulse 1.8s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(170, 255, 0, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(170, 255, 0, 0); }
}

/* Scroll reveal */
.fx .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease var(--reveal-delay, 0ms),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) var(--reveal-delay, 0ms);
}
.fx .reveal.in {
  opacity: 1;
  transform: none;
}

/* Hover glow */
.button {
  transition: background 0.15s, box-shadow 0.2s, transform 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(170, 255, 0, 0.35);
}
.button.dark:hover {
  box-shadow: 0 8px 20px rgba(16, 23, 19, 0.35);
}
.cards > article,
.gallery > * {
  transition: transform 0.25s, box-shadow 0.25s;
}
.cards > article:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(16, 23, 19, 0.12);
}

/* Corner tow truck */
/* The truck always sits just above the mobile action bar (fx.js measures the bar into --bar-h). */
.tow {
  position: fixed;
  right: 10px;
  bottom: calc(var(--bar-h, 64px) + 10px);
  z-index: 40;
}
.tow-dock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.tow-bubble {
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16, 23, 19, 0.25);
  transition: opacity 0.2s;
}
.fx .tow-bubble { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.tow-truck {
  display: block;
  filter: drop-shadow(0 4px 6px rgba(16, 23, 19, 0.35));
}
.tt-real {
  position: relative;
  display: block;
  width: 200px;
}
.tt-body {
  display: block;
  width: 100%;
  height: auto;
}
/* wheel layers, positioned over the wheels in the truck image (see towTruckImg in pages.js) */
.tt-wheel-img {
  position: absolute;
  height: auto;
  transform: rotate(var(--wheel, 0deg));
}
.tt-front { left: 11.111%; top: 60.19%; width: 12.329%; }
.tt-rear { left: 81.279%; top: 66.825%; width: 10.654%; }
.tow-dock:hover .tow-truck,
.tow-dock:focus-visible .tow-truck {
  transform: translateY(-2px);
}
.tow.driving .tow-bubble,
.tow.away .tow-bubble,
.tow.open .tow-dock {
  opacity: 0;
  pointer-events: none;
}
.tow.away .tow-truck { visibility: hidden; }
.tow-panel {
  position: fixed;
  right: 10px;
  bottom: calc(var(--bar-h, 64px) + 10px);
  width: min(320px, calc(100vw - 20px));
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--lime);
  border-radius: 12px;
  padding: 18px 18px 14px;
  box-shadow: 0 16px 40px rgba(16, 23, 19, 0.4);
}
.tow-panel[hidden] { display: none; }
.fx .tow-panel:not([hidden]) { animation: rise-in 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.tow-panel .kicker { color: var(--lime); margin: 0 0 2px; }
.tow-panel h2 { color: #fff; font-size: 1.35rem; margin: 0 0 12px; }
.tow-actions {
  display: grid;
  gap: 10px;
}
.tow-actions .button { width: 100%; }
.tow-panel .button.dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.tow-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 959px) {
  .tow.typing { display: none; }
}
/* same breakpoint where the mobile action bar disappears */
@media (min-width: 960px) {
  .tow,
  .tow-panel { bottom: 18px; right: 18px; }
  .tt-real { width: 250px; }
}

/* Reduced motion: no animation at all (the truck still opens the quick actions). */
.fx-reduce *,
.fx-reduce *::before,
.fx-reduce *::after {
  animation: none !important;
  transition: none !important;
}
.fx-reduce .reveal { opacity: 1 !important; transform: none !important; }
@media print {
  .tow { display: none; }
}