:root {
  --bg: #050816;
  --bg-alt: #0b1220;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --accent: #dc2626;
  --accent-soft: rgba(220, 38, 38, 0.12);
  --card: #0b1120;
  --border: #1f2937;
  --orange: #f97316;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: var(--fg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }

.container {
  width: min(var(--max), 92vw);
  margin-inline: auto;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.nav-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
  border-radius: 8px;
}

.brand-name {
  padding: 2px 8px;
  border: 1px solid rgba(248, 113, 113, 0.6);
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.08);
}

.brand-tag {
  padding: 2px 8px;
  border: 1px solid rgba(248, 113, 113, 0.6);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: color 0.12s ease, background 0.12s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  background: rgba(220, 38, 38, 0.12);
  text-decoration: none;
}

.call-chip {
  margin-left: auto;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, 0.5);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(145deg, #0f172a, #0b1220);
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.15s ease, border-color 0.12s ease, transform 0.08s ease;
}

.call-chip:hover {
  border-color: rgba(252, 165, 165, 0.85);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Layout */
main {
  flex: 1;
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 1.4rem 0 3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.15rem 1.9rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
  isolation: isolate;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, url("/assets/work-hero.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.32;
  filter: brightness(0.78);
  z-index: -1;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.45rem);
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

h3 { font-size: 1.05rem; }

.lead, .muted { color: var(--muted); }
.lead { max-width: 38rem; margin-bottom: 1rem; font-size: 0.98rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: linear-gradient(145deg, #1f2937, #0f172a);
  color: #ffdddd;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.08s ease, filter 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  filter: brightness(1.05);
  border-color: rgba(252, 165, 165, 0.9);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active { transform: translateY(0); }

.btn.secondary {
  color: var(--fg);
  border-color: rgba(148, 163, 184, 0.35);
}

.btn.secondary:hover {
  border-color: rgba(148, 163, 184, 0.75);
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.22);
}

.btn.orange {
  background: linear-gradient(145deg, #ea580c, #c2410c);
  border-color: rgba(249, 115, 22, 0.7);
  color: #fff7ed;
}

.badge {
  font-size: 0.82rem;
  color: var(--muted);
}

section {
  margin-top: 2.2rem;
  scroll-margin-top: 100px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card, .service-item, .rate-card, .photo-card, .job-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.08), rgba(15, 23, 42, 0.95));
  padding: 0.95rem 1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.service-item strong,
.rate-card h3 {
  display: block;
  margin-bottom: 0.25rem;
}

.rate-price {
  font-weight: 800;
  color: var(--orange);
  margin: 0.2rem 0 0.4rem;
  font-size: 1.15rem;
}

.photo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .photo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .photo-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.photo-card {
  padding: 0.7rem;
  overflow: hidden;
}

.photo-card img,
.job-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 280px;
  background: #020617;
}

.job-card {
  display: block;
  text-decoration: none;
  transition: transform 0.1s ease, border-color 0.12s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 38, 38, 0.45);
  text-decoration: none;
}

.job-card h3 { margin: 0.55rem 0 0.2rem; }

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f172a;
}

input:focus, textarea:focus, select:focus {
  outline: 1px solid rgba(220, 38, 38, 0.7);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

textarea { min-height: 120px; resize: vertical; }

.form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1rem;
}

.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(10, 15, 30, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.modal-dialog img {
  width: min(70vw, 280px);
  margin: 0 auto 0.9rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: var(--fg);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

/* Compare slider */
.compare {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #020617;
  min-height: 240px;
  user-select: none;
  touch-action: none;
}

.compare img {
  width: 100%;
  display: block;
  max-height: 520px;
  height: auto;
  object-fit: cover;
  vertical-align: top;
}

.compare .after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}

.compare .after-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.compare #handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  left: 50%;
  transform: translateX(-1.5px);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.compare #handle::after {
  content: "⟷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.compare input[type="range"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 3;
}

/* Dumpster brand theme (Ironwood Trucking) */
body.theme-dumpsters {
  --accent: #ea580c;
  --accent-soft: rgba(234, 88, 12, 0.14);
  --orange: #fb923c;
}

body.theme-dumpsters header.site-header {
  background: linear-gradient(to bottom, rgba(20, 12, 6, 0.96), rgba(15, 23, 42, 0.72), transparent);
}

body.theme-dumpsters .brand-name,
body.theme-dumpsters .brand-tag {
  border-color: rgba(251, 146, 60, 0.7);
  background: rgba(234, 88, 12, 0.1);
}

body.theme-dumpsters .btn {
  border-color: rgba(234, 88, 12, 0.55);
  color: #ffedd5;
}

body.theme-dumpsters .call-chip {
  border-color: rgba(234, 88, 12, 0.55);
}

.sister-card {
  border: 1px solid rgba(234, 88, 12, 0.35);
  background: radial-gradient(circle at top left, rgba(234, 88, 12, 0.16), rgba(15, 23, 42, 0.95));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs span[aria-hidden="true"] { opacity: 0.5; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.seo-faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  margin-bottom: 0.55rem;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.seo-faq p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: #020617;
  margin-top: auto;
}

.footer-inner {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  font-size: 0.9rem;
}

.footer-inner h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.empty {
  color: var(--muted);
  padding: 0.8rem 0;
}

.map-frame {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 12px;
  margin-top: 0.75rem;
  background: #0f172a;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  max-width: min(92vw, 360px);
}

.toast.ok { background: #0f1a14; border-color: #1c3a2c; }
.toast.err { background: #1a1010; border-color: #3a1c1c; }

/* Admin bits */
.admin-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  align-items: center;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #5b1a1a;
  font-size: 0.85rem;
}

.status-badge.ok { background: #065f46; }

.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.photo-list img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #1a2128;
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 0.9rem 0;
}

@media (max-width: 820px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    justify-content: flex-start;
  }

  .nav-links a {
    background: rgba(15, 23, 42, 0.6);
    padding: 0.55rem 0.7rem;
  }

  .call-chip {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .brand { font-size: 0.86rem; }
  .brand-name { font-size: 0.78rem; }
}

@media (max-width: 720px) {
  .admin-grid { grid-template-columns: 1fr; }
}
