/* Liberty Sanitation — site styles */
:root {
  --navy: #13233f;
  --navy-2: #1c3157;
  --ink: #18202c;
  --muted: #5a6372;
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --white: #ffffff;
  --red: #b3261e;
  --red-dark: #8f1d17;
  --line: rgba(19, 35, 63, 0.14);
  --font-display: 'Cabinet Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'General Sans', 'Segoe UI', sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  --text-2xl: clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem);
  --wrap: 1180px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19, 35, 63, 0.06), 0 8px 28px rgba(19, 35, 63, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--text-2xl); font-weight: 800; }
h2 { font-size: var(--text-xl); font-weight: 800; }
h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; }
.lead { font-size: var(--text-lg); color: var(--muted); max-width: 60ch; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.35rem; border-radius: 8px;
  font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.top-bar { background: var(--navy); color: #dfe5ef; font-size: var(--text-xs); }
.top-bar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.top-bar a { color: #fff; font-weight: 600; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { width: 104px; height: auto; }
.nav { display: flex; gap: 0.25rem; align-items: center; }
.nav a { padding: 0.6rem 0.75rem; text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--ink); border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.header-cta { display: flex; gap: 0.5rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 48px; height: 48px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 0.5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); font-size: var(--text-base); }
  .menu-btn { display: inline-grid; place-items: center; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .top-bar .hide-sm { display: none; }
  .header-cta { display: none; }
  .brand img { width: 88px; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: min(78vh, 680px); }
.hero-copy { padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem) max(1.25rem, calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #fff; max-width: 14ch; font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); }
.hero .eyebrow { color: #f0b4ae; }
.hero p.sub { font-size: var(--text-lg); color: #d7deea; max-width: 46ch; line-height: 1.5; margin-bottom: 2rem; }
.hero-photo { position: relative; min-height: 340px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-pay { margin-top: 1.5rem; font-size: var(--text-sm); color: #c5cedc; }
.hero-pay a { color: #fff; font-weight: 600; }
.hero-pay a:hover { color: #f0b4ae; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 2.75rem 1.25rem 2.5rem; }
  .hero-photo { min-height: 260px; aspect-ratio: 16 / 10; }
}

/* Facts strip */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; font-size: var(--text-sm); color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 0.5rem; }
.facts strong { color: var(--navy); }
.facts svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section.white { background: #fff; }
.section.sand { background: var(--paper-2); }
.section.dark { background: var(--navy); color: #dfe5ef; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }
.section.dark .section-head p { color: #c5cedc; }

/* Service chooser */
.choose { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.choice { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.choice:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.choice.big { grid-column: span 3; }
.choice .tag { font-size: var(--text-xs); font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.1em; }
.choice h3 { margin: 0.4rem 0 0.5rem; color: var(--navy); }
.choice p { color: var(--muted); font-size: var(--text-sm); }
.choice .go { margin-top: auto; font-weight: 600; font-size: var(--text-sm); color: var(--navy); display: inline-flex; align-items: center; gap: 0.35rem; }
.choice:hover .go { color: var(--red); }
.choice.pay { background: var(--navy); color: #dfe5ef; border-color: var(--navy); }
.choice.pay h3, .choice.pay .go { color: #fff; }
.choice.pay p { color: #c5cedc; }
.choice.pay .tag { color: #f0b4ae; }
@media (max-width: 900px) { .choose { grid-template-columns: 1fr 1fr; } .choice, .choice.big { grid-column: span 1; } }
@media (max-width: 560px) { .choose { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: 0.7rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; }
.checklist svg { width: 20px; height: 20px; color: var(--red); margin-top: 3px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--navy); }
.step { padding: 1.75rem 1.75rem 0 0; }
.step + .step { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--red); line-height: 1; display: block; margin-bottom: 0.75rem; }
.step p { color: var(--muted); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Project picker */
.picker { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; }
.chip { min-height: 44px; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff; font: 500 var(--text-sm) var(--font-body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover, .chip:focus-visible { background: #fff; color: var(--navy); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 0.75rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:last-child { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; background: rgba(19,35,63,0.85); color: #fff; font-size: var(--text-xs); font-weight: 500; padding: 0.35rem 0.65rem; border-radius: 6px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery figure, .gallery figure:first-child, .gallery figure:last-child { grid-row: auto; grid-column: span 1; aspect-ratio: 1; }
  .gallery figure:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font-weight: 600; font-size: var(--text-base); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 0.4rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-75%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 1.25rem; color: var(--muted); max-width: 68ch; }
.faq .answer p:last-child { margin: 0; }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-side .phone-big { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--navy); text-decoration: none; display: inline-block; margin: 0.25rem 0 1rem; }
.quote-side .phone-big:hover { color: var(--red); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.form legend { font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; font-size: var(--text-sm); }
.svc-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.svc-options label { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 0.85rem; cursor: pointer; font-size: var(--text-sm); min-height: 48px; }
.svc-options input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.svc-options label:has(input:checked) { border-color: var(--navy); background: #f1f4f9; font-weight: 600; }
@media (max-width: 520px) { .svc-options { grid-template-columns: 1fr; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fbfaf7; border: 1px solid rgba(19,35,63,0.25); border-radius: 8px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,35,63,0.15); background: #fff; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 1.25rem; font-size: var(--text-base); min-height: 54px; }
.form-note { font-size: var(--text-xs); color: var(--muted); margin: 0.85rem 0 0; text-align: center; }
.form-alert { background: #fdecea; color: var(--red-dark); border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: var(--text-sm); display: none; }
.form-alert.show { display: block; }

/* Page hero (interior) */
.page-hero { background: var(--navy); color: #dfe5ef; padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); max-width: 20ch; }
.page-hero .eyebrow { color: #f0b4ae; }
.page-hero p { color: #d7deea; font-size: var(--text-lg); max-width: 58ch; line-height: 1.5; }
.page-hero .btn-row { margin-top: 1.75rem; }
.crumbs { font-size: var(--text-xs); margin-bottom: 1.25rem; color: #aab5c7; }
.crumbs a { color: #dfe5ef; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: 100px; }
.side-card h2 { font-size: 1.5rem; }
.side-card .btn { width: 100%; margin-top: 0.6rem; }
.side-card p { color: var(--muted); font-size: var(--text-sm); }
.callout { background: var(--paper-2); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 2rem 0; }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: clamp(2.25rem, 4vw, 3rem); }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); }
.cta-band p { margin: 0.35rem 0 0; color: #fde3e0; }
.cta-band .btn-white { background: #fff; color: var(--red-dark); }
.cta-band .btn-white:hover { background: var(--navy); color: #fff; }

/* Footer */
.site-footer { background: #0d1a30; color: #b9c3d3; font-size: var(--text-sm); padding-top: 3.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer img { width: 140px; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #e6ebf3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding: 1.25rem 0 6rem; font-size: var(--text-xs); color: #8b97ab; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (min-width: 761px) { .foot-bottom { padding-bottom: 1.5rem; } }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(19,35,63,0.1); }
  .mobile-bar .btn { min-height: 50px; }
}

/* Dumpster sizes */
.size-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.size { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.size .yd { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--navy); line-height: 1; display: flex; align-items: baseline; gap: 0.35rem; margin-bottom: 0.6rem; }
.size .yd small { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.size p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 520px) { .size-grid { grid-template-columns: 1fr; } }

/* Service area */
.county-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.county-list li { display: flex; align-items: center; gap: 0.7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: var(--text-base); color: var(--muted); }
.county-list strong { color: var(--navy); font-size: var(--text-lg); font-family: var(--font-display); font-weight: 800; }
.county-list svg { width: 20px; height: 20px; color: var(--red); flex: none; }
@media (max-width: 420px) { .county-list { grid-template-columns: 1fr; } }
