/* Waste Away — shared brand layer (tokens, type, header, footer, buttons, prose pages).
   Page-specific styles (booking flow, calendar) stay inline in each page. */

:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #16150f;
  --ink-2: #3a3830;
  --muted: #67635a;
  --line: #e3dfd5;
  --line-strong: #cfc9bb;
  --brand: #f5a500;          /* National School Bus Glossy Yellow (FS 595 13432), the trailer paint */
  --brand-hover: #e09600;
  --brand-soft: #fde8bc;
  --ok: #2c7a4b;
  --bad: #b3362a;
  --radius: 10px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* aliases used by booking JS + older markup */
  --yellow: var(--brand);
  --black: var(--ink);
  --white: var(--surface);
  --off-white: var(--paper);
  --light-border: var(--line);
  --text-main: var(--ink);
  --text-mid: var(--ink-2);
  --text-muted: var(--muted);
  --red: var(--bad);
  --green: var(--ok);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(40px, 5.4vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.kicker { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 18px; height: 3px; background: var(--brand); border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* Wordmark — mirrors the trailer lettering */
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; line-height: 0; flex: none; }
.wordmark svg { height: 26px; width: auto; aspect-ratio: 758.75 / 104; display: block; }
.wordmark--light { color: #fff; }
.site-footer .wordmark svg { height: 30px; aspect-ratio: 758.75 / 104; }
@media (max-width: 520px) { .wordmark svg { height: 21px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--font); padding: 15px 22px; border-radius: var(--radius-sm); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-brand { background: var(--brand); color: var(--ink); border-color: #cf8c00; }
.btn-brand:hover { background: var(--brand-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c2a22; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); border-bottom: 1px solid #2e2c25; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 15px; font-weight: 500; color: #d9d5ca; text-decoration: none; }
.site-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 15px; font-weight: 600; text-decoration: none; color: #fff; }
.site-header .btn-ink { background: var(--brand); color: var(--ink); }
.site-header .btn-ink:hover { background: var(--brand-hover, #e09600); }
@media (max-width: 900px) { .site-nav { display: none; } }
@media (max-width: 520px) { .header-phone { display: none; } }

/* Footer */
.site-footer { background: var(--ink); color: #c9c5ba; padding: 72px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.foot-grid p { margin-top: 14px; max-width: 30em; line-height: 1.6; }
.foot-grid h3 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8f8b80; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: #ece9e1; text-decoration: none; }
.foot-grid a:hover { color: var(--brand); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2e2c25; font-size: 13px; color: #8f8b80; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Prose pages (privacy, terms) */
.prose { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--ink); text-underline-offset: 3px; }

/* Generated content pages (scripts/build-seo.mjs) */
.facts-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 16px; }
.facts-table th, .facts-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.facts-table th { font-weight: 600; color: var(--ink); border-bottom-color: var(--line-strong); }
.facts-table td.num, .facts-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts-cta { margin: 28px 0 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.prose .facts-cta a.btn { text-decoration: none; }
.prose .facts-cta a.btn-ink { color: #fff; }
.prose .lede-sm { font-size: 19px; color: var(--ink); }
.prose .related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .facts-table { font-size: 15px; } .facts-table th, .facts-table td { padding: 9px 4px; } .facts-table .desc { display: none; } }
.prose .faq-item { border-bottom: 1px solid var(--line); }
.prose .faq-item:first-of-type { border-top: 1px solid var(--line); }
.prose .faq-q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 17px; color: var(--ink); }
.prose .faq-q::-webkit-details-marker { display: none; }
.prose .faq-q::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform 0.2s; flex: none; }
.prose .faq-item[open] .faq-q::after { transform: rotate(45deg); }
.prose .faq-a { padding: 0 0 18px; color: var(--ink-2); }

/* Town pages: full-bleed photo hero (same look as the homepage hero, a bit shorter) */
.town-hero { position: relative; min-height: clamp(460px, calc(78svh - 64px), 680px); display: flex; align-items: flex-end; overflow: hidden; background: #2b2a24; color: #fff; }
.town-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.town-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,9,.9) 0%, rgba(14,13,9,.74) 34%, rgba(14,13,9,.3) 56%, rgba(14,13,9,0) 70%); }
.town-hero .hero-overlay { position: relative; z-index: 1; width: 100%; padding: 0 0 48px; }
.town-hero .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.town-hero .kicker { color: #ece9e1; }
.town-hero h1 { color: #fff; margin-bottom: 14px; font-size: clamp(36px, 4.2vw, 56px); }
.town-hero .lede { color: #e6e2d8; max-width: 36em; }
.town-hero .lede strong { color: #fff; }
.town-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.16); }

@media (max-width: 760px) {
  .town-hero { min-height: clamp(520px, calc(100svh - 64px), 720px); }
  .town-hero .hero-img { object-position: 24% 30%; }
  .town-hero::after { background: linear-gradient(to top, rgba(14,13,9,.92) 0%, rgba(14,13,9,.78) 46%, rgba(14,13,9,.2) 66%, rgba(14,13,9,0) 76%); }
  .town-hero .hero-overlay { padding-bottom: 28px; }
  .town-hero .hero-copy { grid-template-columns: 1fr; gap: 20px; }
  .town-hero .hero-actions { justify-content: flex-start; }
  .town-hero .hero-actions .btn { flex: 1 1 100%; }
}
.town-main > .prose:first-child { padding-top: 56px; padding-bottom: 8px; }
.town-main > .prose:last-child { padding-top: 24px; }
.town-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 8px; }
.town-photos figure { margin: 0; }
.town-photos img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); display: block; }
.town-photos figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 520px) { .town-photos img { height: 200px; } }
