/* Dumpster Rental NY - funky design system.
   Palette sampled from the user logo: blue #018CFC, yellow #FEE003,
   orange #FFA100, black, white. Display font Bungee, body Nunito.
   RULE: every heading level inside a dark section MUST be light. */

:root {
  --blue: #018CFC;
  --blue-dark: #0168c4;
  --yellow: #FEE003;
  --orange: #FFA100;
  --ink: #0B0B0B;
  --paper: #FFFDF2;
  --white: #FFFFFF;
  --grey: #5A5A5A;
  --line: #0B0B0B;
  --radius: 18px;
  --shadow: 6px 6px 0 #0B0B0B;
  --shadow-sm: 4px 4px 0 #0B0B0B;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: "Bungee", "Arial Black", sans-serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 1.2em; padding: 0; }
li { margin-bottom: 0.35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lede { font-size: 1.2rem; color: #222; }

/* ---------- top strip + header ---------- */
.topstrip {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  padding: 8px 14px;
  border-bottom: 3px solid var(--ink);
}
.topstrip a { color: var(--ink); text-decoration: underline; }
/* Audit fix 2026-11-15 (L1): phone numbers must never wrap mid-number,
   in the top strip or in body copy. */
a[href^="tel:"] { white-space: nowrap; }
.site-header {
  background: var(--ink);
  border-bottom: 4px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { flex: 0 0 auto; line-height: 0; }
.brand img {
  width: 190px;
  height: auto;
  border-radius: 10px;
}
.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}
.main-nav a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.98rem;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--blue-dark);
  color: #fff;
}
.call-pill {
  flex: 0 0 auto;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  font-size: 1.05rem;
}
.call-pill:hover { background: var(--orange); color: var(--ink); }

/* ---------- header dropdowns (Services + Locations) ---------- */
.has-dropdown { position: relative; }
.dropdown-parent .caret {
  display: inline-block;
  font-size: 0.65em;
  margin-left: 2px;
  transition: transform 0.15s ease;
}
.has-dropdown:hover .dropdown-parent .caret,
.has-dropdown:focus-within .dropdown-parent .caret,
.has-dropdown.open .dropdown-parent .caret { transform: rotate(180deg); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: var(--ink);
  border: 2px solid #333;
  border-top: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 8px;
  z-index: 60;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}
/* Desktop: hover AND keyboard focus open the dropdown. The parent link
   itself stays a real link to its hub. */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.main-nav .dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav .dropdown a:hover {
  background: var(--yellow);
  color: var(--ink);
}
.main-nav .dropdown a.dropdown-all {
  color: var(--yellow);
  border-top: 1px solid #333;
  margin-top: 6px;
  padding-top: 12px;
}
.main-nav .dropdown a.dropdown-all:hover {
  background: var(--yellow);
  color: var(--ink);
}
.dropdown-group {
  display: block;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px 2px;
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 54px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 24px, var(--ink) 24px 48px);
}
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6 { color: var(--yellow); }
.hero .lede { color: #EDEDED; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  transform: rotate(-1.5deg);
}
.hero-img {
  border: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--blue);
  transform: rotate(1deg);
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 0; }
.btn {
  display: inline-block;
  font-weight: 900;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  transition: transform 0.08s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-blue { background: var(--blue-dark); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { color: #fff; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-yellow { background: var(--yellow); }
.section-blue { background: #E6F4FF; }
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 { color: var(--yellow); }
.section-dark p, .section-dark li { color: #F1F1F1; }
.section-dark a { color: var(--yellow); }
.section-dark .lede { color: #EDEDED; }
/* Light-surface components keep DARK text inside dark sections.
   Without this, the .section-dark heading/paragraph/link colors leak into
   white cards and the text turns invisible (white on white). */
:is(.section-dark, .hero, .page-hero) :is(.card, .step, .side-card:not(.dark), details.faq, .callout) {
  color: var(--ink);
}
:is(.section-dark, .hero, .page-hero) :is(.card, .step, .side-card:not(.dark), details.faq, .callout) :is(h1, h2, h3, h4, h5, h6, summary) {
  color: var(--ink);
}
:is(.section-dark, .hero, .page-hero) :is(.card, .step, .side-card:not(.dark), details.faq, .callout) :is(p, li) {
  color: var(--ink);
}
:is(.section-dark, .hero, .page-hero) :is(.card, .step, .side-card:not(.dark), details.faq, .callout) a {
  color: var(--blue-dark);
}
:is(.section-dark, .hero, .page-hero) .prose td { color: var(--ink); }
:is(.section-dark, .hero, .page-hero) .chip-list a { color: var(--ink); }
/* Buttons keep their own text colors inside dark sections: without this,
   .section-dark a turns .btn-yellow text yellow on a yellow button. */
:is(.section-dark, .hero, .page-hero) :is(.btn-yellow, .btn-orange, .btn-white) { color: var(--ink); }
:is(.section-dark, .hero, .page-hero) :is(.btn-blue, .btn-ghost) { color: #fff; }
/* Keep section tops clear of the sticky header on fragment/anchor jumps */
section, .page-hero, .hero { scroll-margin-top: 170px; }
.kicker {
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--yellow);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-dark .kicker { background: var(--yellow); color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 0.4em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue-dark); text-decoration: underline; }
.card .card-img {
  border: 3px solid var(--ink);
  border-radius: 12px;
  margin: -6px -6px 16px;
  overflow: hidden;
}
.card .card-img img { width: 100%; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.card.blue-top { border-top: 12px solid var(--blue); }
.card.yellow-top { border-top: 12px solid var(--yellow); }
.card.orange-top { border-top: 12px solid var(--orange); }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px; left: 20px;
  width: 42px; height: 42px;
  background: var(--orange);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: "Bungee", sans-serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- content page layout ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 44px 0 48px;
  border-bottom: 6px solid var(--yellow);
}
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4, .page-hero h5, .page-hero h6 { color: var(--yellow); }
.page-hero .lede { color: #EDEDED; }
.breadcrumbs { font-size: 0.9rem; margin-bottom: 14px; color: #CFCFCF; }
.breadcrumbs a { color: #fff; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.content-grid > * { min-width: 0; }
.prose img.inline-img {
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin: 18px 0;
}
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  display: block;
  overflow-x: auto;
  font-size: 0.98rem;
}
.prose th {
  background: var(--ink);
  color: var(--yellow);
  text-align: left;
  padding: 12px 14px;
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
}
.prose td { padding: 11px 14px; border-top: 2px solid #EEE; vertical-align: top; }
.callout {
  background: #FFF6BF;
  border: 3px solid var(--ink);
  border-left: 12px solid var(--orange);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
}
.callout.blue { background: #E6F4FF; border-left-color: var(--blue); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: 110px; }
.side-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 24px;
}
.side-card.dark { background: var(--ink); color: #fff; }
.side-card.dark h1, .side-card.dark h2, .side-card.dark h3,
.side-card.dark h4, .side-card.dark h5, .side-card.dark h6 { color: var(--yellow); }
.side-card.dark p, .side-card.dark li { color: #F1F1F1; }
.side-card ul { list-style: none; margin: 0; }
.side-card li { margin-bottom: 8px; }
.side-card li a { font-weight: 700; text-decoration: none; }
.side-card li a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
details.faq {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.08rem;
  padding: 16px 20px;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: " +"; float: right; color: var(--blue); }
details.faq[open ] summary::after { content: " -"; }
details.faq .faq-body { padding: 0 20px 18px; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- link lists / chips ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
}
.chip-list li { margin: 0; }
.chip-list a {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.chip-list a:hover { background: var(--yellow); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 52px 0 30px;
  border-top: 6px solid var(--blue);
}
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6 { color: var(--yellow); }
.site-footer p, .site-footer li { color: #E3E3E3; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
.footer-grid ul { list-style: none; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.site-footer a.footer-phone {
  font-family: "Bungee", sans-serif;
  font-size: 1.5rem;
  color: var(--yellow);
  text-decoration: none;
  display: inline-block;
  margin: 8px 0;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #BDBDBD;
  text-align: center;
}
.footer-credit { margin: 8px 0 0; font-size: 0.85rem; }
.footer-credit a { color: #BDBDBD; }
.footer-credit a:hover { color: var(--yellow); }

/* ---------- mobile menu toggle ---------- */
.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid.two, .steps { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  section, .page-hero, .hero { scroll-margin-top: 100px; }
  /* Compact one-row header: logo + call pill + hamburger. The nav lives
     behind the toggle so the sticky header stays short (it was 230px tall
     with the nav wrapped into two rows). No-JS fallback: without JS the
     nav stays visible as wrapping rows, exactly as before. */
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 8px 16px; }
  .brand img { width: auto; height: 64px; }
  .call-pill { margin-left: auto; font-size: 0.95rem; padding: 8px 14px; }
  .main-nav { order: 3; width: 100%; }
  html.js .menu-toggle { display: flex; }
  html.js .main-nav { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 4px 0;
    gap: 4px;
    border-top: 2px solid #333;
    padding-top: 10px;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }
  .site-header.nav-open .main-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 1.05rem;
    border-radius: 12px;
  }
  /* Dropdowns become indented sub-lists inside the open menu. Hover/focus
     opening is disabled on touch: tapping the parent toggles .open via
     menu.js, and the hub stays reachable through the "View All" row. */
  .has-dropdown { width: 100%; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .site-header.nav-open .dropdown {
    position: static;
    min-width: 0;
    max-height: none;
    border: none;
    border-left: 3px solid var(--yellow);
    border-radius: 8px;
    box-shadow: none;
    background: #141414;
    margin: 2px 0 8px 14px;
    padding: 4px 8px;
  }
  .site-header.nav-open .main-nav .dropdown a {
    padding: 10px 12px;
    font-size: 1rem;
    white-space: normal;
  }
  .site-header.nav-open .dropdown-group { padding: 10px 12px 2px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .card-grid, .card-grid.two, .card-grid.four, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Compact footer on phones: the single-column footer was a very tall
     stack of links with large gaps (user catch 2026-11-15). Two-column
     link lists + tighter spacing roughly halve its height. */
  .site-footer { padding: 32px 0 22px; }
  .footer-grid { gap: 22px; margin-bottom: 20px; }
  .footer-grid > div:first-child img { max-width: 170px; }
  /* Brand block centered on phones (user order 2026-11-15): logo,
     description and phone number all center-aligned. */
  .footer-grid > div:first-child { text-align: center; }
  .footer-grid > div:first-child img { margin: 0 auto; }
  .site-footer .footer-grid h4 { margin-bottom: 0.4em; }
  .footer-grid ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .footer-grid li { margin-bottom: 2px; }
  .site-footer .footer-grid p { margin-bottom: 0.6em; }
  .footer-bottom { padding-top: 14px; }
  .section { padding: 40px 0; }
  .brand img { height: 56px; }
  .call-pill { font-size: 0.9rem; padding: 8px 12px; }
  /* Tighter tables so the 3-column tables fit without sideways scrolling */
  .prose table { font-size: 0.88rem; }
  .prose th, .prose td { padding: 8px 10px; }
  /* Tables scroll sideways on phones; the inset shadow at the right edge
     signals there is more content to swipe to. */
  .prose table { box-shadow: inset -14px 0 14px -14px rgba(0, 0, 0, 0.45); }
}
