/* Trash Buster demo site
   Look: v2 pitch deck slide 14 homepage mockup
   Type: Atkinson Hyperlegible (OFL) — Bold headlines, Regular body, no Light
   Preview only. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Brand palette from trashbaster.com / Nov 18 site check (NOTES.md):
   primary #151D1B, secondary #D40000, amber #F9A620, dark red #AF1913,
   text #6E7271, light #F0F1F1.
   Contrast: #6E7271 on #F0F1F1 is 4.31:1 — fails WCAG AA for 17px body
   (needs 4.5:1). Body and other small text therefore use #151D1B (15.17:1).
   #6E7271 is kept as a token but is not used for body copy on the light ground. */
:root {
  --red: #D40000;
  --red-dark: #C40000;
  --red-deep: #AF1913;
  --ink: #151D1B;
  --text-brand: #6E7271; /* do not use for 17px text on --paper */
  --amber: #F9A620;
  --amber-dark: #8A5A08;
  --paper: #F0F1F1;
  --card: #FFFFFF;
  --muted: #E4E6E6;
  --line: #C5C8C8;
  --hero: #151D1B;
  --body: 1.0625rem; /* 17px at default 16 */
  --wrap: 70rem;
  --radius: 0.65rem;
  --shadow: 0 1px 2px rgba(21, 29, 27, 0.06), 0 8px 24px rgba(21, 29, 27, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--red-deep);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--red); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 0 0 0.35rem 0.35rem;
}
.skip-link:focus { top: 0; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Demo banner — always visible */
.demo-banner {
  background: var(--amber);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
  border-bottom: 2px solid var(--ink);
}

/* Header / nav */
.site-header {
  background: var(--hero);
  color: #fff;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}
.brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.brand span { color: var(--red); }
.brand:hover { color: #fff; }
.brand:hover span { color: #ff4d4d; }

.site-nav {
  flex: 1 1 auto;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 0.7rem;
  display: inline-block;
  border-radius: 0.35rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--amber);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  min-height: 2.85rem;
  text-align: center;
}
.btn-call {
  background: var(--red);
  color: #fff;
  margin-left: auto;
  white-space: nowrap;
}
.btn-call:hover,
.btn-call:focus-visible {
  background: var(--red-dark);
  color: #fff;
}
.btn-quote {
  background: var(--amber);
  color: var(--ink);
}
.btn-quote:hover,
.btn-quote:focus-visible {
  background: #ffb83a;
  color: var(--ink);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; color: #fff; }

/* Hero — slide 14 */
.hero {
  background: var(--hero);
  color: #fff;
  padding: 2.25rem 0 2.75rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(12rem, 22rem);
  gap: 2rem 2.5rem;
  align-items: center;
}
.kicker {
  margin: 0 0 0.65rem;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
}
.hero .area {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 400;
}
.hero-cta { margin-top: 0; }
.sms-line {
  margin: 0.7rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.hero .sms-line {
  color: #f2f2f0;
  max-width: 28rem;
}
.hero .sms-line a {
  color: var(--amber);
  font-weight: 700;
  text-underline-offset: 0.15em;
}
.hero .sms-line a:hover,
.hero .sms-line a:focus-visible {
  color: #ffd27a;
}
.hero-logo { justify-self: center; }
.hero-logo img {
  width: min(100%, 22rem);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

/* Rates band — slide 14 */
.rates {
  background: var(--muted);
  padding: 1.75rem 0 2rem;
}
.rates h2 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.rate-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.rate-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 0.6rem 1.05rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.rate-card .price {
  display: block;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}
.rate-card .label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
}
.section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  margin: 0 0 1.25rem;
}
.page-hero {
  background: var(--hero);
  color: #fff;
  padding: 2rem 0 2.25rem;
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
}
.page-hero .lede {
  color: #f2f2f0;
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.cities li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  font-size: 0.98rem;
}

/* Placeholders — clearly labeled, never presented as real photos */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  background: var(--ink);
  color: #fff;
  border: 3px dashed var(--amber);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  min-height: 12rem;
}
.ph strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
}
.ph span {
  font-size: 0.95rem;
  color: #f2f2f0;
}
.ph-hero { aspect-ratio: 16 / 9; min-height: 14rem; }
.ph-gallery { aspect-ratio: 3 / 2; width: 100%; min-height: 0; }
.ph-square { aspect-ratio: 1 / 1; width: min(100%, 22rem); }
.ph-pair { aspect-ratio: 3 / 2; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item figcaption,
.figure-cap {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.pair-label {
  margin: 0 0 0.65rem;
  font-weight: 700;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

/* Soft commercial band */
.band {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.band p:last-child { margin-bottom: 0; }

/* Placeholder / TBD text in copy */
.tbd {
  display: inline-block;
  background: #FFF3D1;
  border: 1px dashed var(--amber-dark);
  color: var(--ink);
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
}

/* Forms */
.quote-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  max-width: 38rem;
}
.quote-form label {
  display: block;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.field { margin: 0 0 1.1rem; }
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.6rem 0.7rem;
}
.quote-form textarea { min-height: 7rem; resize: vertical; }
.quote-form input[type="file"] {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}
.check input { margin-top: 0.3rem; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.check label { font-weight: 400; margin: 0; }
.hint { margin: 0.3rem 0 0; font-size: 0.95rem; color: var(--ink); }
.form-status {
  display: none;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: #FFF3D1;
  border: 2px solid var(--amber);
  font-weight: 700;
}
.form-status.is-visible { display: block; }
.photo-preview {
  display: none;
  margin-top: 0.75rem;
}
.photo-preview.is-visible { display: block; }
.photo-preview img {
  max-width: 16rem;
  border-radius: 0.4rem;
  border: 2px solid var(--line);
}

/* About this preview */
.demo-note {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  margin-top: 2rem;
}
.demo-note img {
  width: 100%;
  border-radius: 0.4rem;
  margin: 0.75rem 0 0.4rem;
  border: 1px solid var(--line);
}
.demo-note .figure-cap { font-style: italic; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #f2f2f0;
  padding: 2rem 0 1.5rem;
  margin-top: 0.5rem;
}
.site-footer a { color: var(--amber); }
.site-footer a:hover { color: #ffd27a; }
.site-footer a.btn,
.site-footer a.btn-quote {
  color: var(--ink);
  white-space: normal;
  width: 100%;
  max-width: 100%;
}
.site-footer a.btn:hover,
.site-footer a.btn-quote:hover,
.site-footer a.btn:focus-visible,
.site-footer a.btn-quote:focus-visible {
  color: var(--ink);
  background: #ffb83a;
}
.site-footer a.footer-brand { color: #fff; }
.site-footer a.footer-brand:hover { color: #fff; }
.site-footer a.footer-brand span { color: var(--red); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.site-footer p { margin: 0 0 0.5rem; }
.footer-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}
.footer-brand span { color: var(--red); }
.demo-credit {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1rem;
  margin: 0;
  font-weight: 700;
  text-align: center;
}

/* Helpers */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .footer-grid,
  .steps,
  .steps.four {
    grid-template-columns: 1fr;
  }
  .rate-grid { grid-template-columns: repeat(2, 1fr); }
  .rate-grid .rate-card:last-child { grid-column: 1 / -1; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.45rem 0.75rem;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .btn-call { grid-column: 2; grid-row: 1; margin-left: 0; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .gallery-grid,
  .ba-pair { grid-template-columns: 1fr; }
  .header-inner { padding: 0.7rem 0 0.85rem; }
  .hero { padding: 1.6rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Contact map and verify flags */
.map-block {
  margin: 1.25rem 0;
}
.map-frame-wrap {
  width: 100%;
  max-width: 100%;
  height: 20rem;
  border-radius: var(--radius);
  background: var(--muted);
  border: 1px solid var(--line);
}
.map-frame {
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--muted);
}
.verify-flag {
  margin: 0.45rem 0 0;
  font-size: 0.98rem;
}
