/* =========================================================
   Empire NYC Plumbers — Drain & Sewer Cleaning
   Composition: black + white + one colour per section,
   stacked headline, broken bento, patterned tile bg,
   drag-to-scroll band, gentle fade+rise on scroll.
   ========================================================= */

:root {
  --bg-1: #0a0a0a;
  --bg-2: #e10600;
  --bg-3: #003c8a;
  --bg-4: #f4ff33;

  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.72);
  --ink-faint: rgba(255, 255, 255, 0.5);

  --ink-dark: #0a0a0a;
  --ink-dark-dim: rgba(10, 10, 10, 0.72);

  --edge: rgba(255, 255, 255, 0.22);
  --edge-dark: rgba(10, 10, 10, 0.22);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gut: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1240px;

  /* patterned SVG tile — dot matrix, sits over every section bg */
  --tile: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='2' cy='2' r='1.15' fill='%23ffffff' fill-opacity='0.13'/><path d='M11 0v22' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-1);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-variation-settings: "opsz" 20;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.02; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--bg-4); color: var(--ink-dark); padding: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.8rem; text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--bg-4);
  outline-offset: 3px;
  border-radius: 2px;
}
.sec-yellow :focus-visible { outline-color: var(--bg-1); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- section shells: colour takeover + tile ---------- */
section {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background-image: var(--tile);
  background-size: 22px 22px;
  isolation: isolate;
}
.sec-dark   { background-color: var(--bg-1); color: var(--ink); }
.sec-red    { background-color: var(--bg-2); color: var(--ink); }
.sec-blue   { background-color: var(--bg-3); color: var(--ink); }
.sec-yellow { background-color: var(--bg-4); color: var(--ink-dark); }

.sec-yellow .eyebrow,
.sec-yellow .sec-lede,
.sec-yellow .hours-note { color: var(--ink-dark-dim); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  color: var(--ink-dim);
}
.sec-lede { max-width: 60ch; font-size: 1.06rem; color: var(--ink-dim); }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.muted { color: var(--ink-faint); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem var(--gut);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  background: var(--bg-2); color: #fff;
  font-weight: 800; font-size: 1.15rem;
  border-radius: 3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-text em {
  font-family: var(--font-mono); font-style: normal;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.topnav { display: none; gap: 1.35rem; }
.topnav a {
  text-decoration: none; font-size: 0.86rem; font-weight: 600;
  color: var(--ink-dim); padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { color: #fff; border-bottom-color: var(--bg-2); }

.callbtn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 0.95rem;
  background: var(--bg-2); color: #fff;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  text-decoration: none; border-radius: 3px; white-space: nowrap;
}
.callbtn:hover { background: #ff1a10; }
.callbtn .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
.stacked { font-size: clamp(2.6rem, 1.1rem + 8.4vw, 6.4rem); margin-bottom: 0.5em; }
.stacked span { display: block; }
.stacked span:nth-child(2) { margin-left: 0.9em; }
.stacked span:nth-child(3) { margin-left: -0.06em; color: var(--bg-4); }
.lede { max-width: 54ch; color: var(--ink-dim); font-size: 1.08rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border-radius: 3px; border: 2px solid transparent;
}
.btn-red { background: var(--bg-2); color: #fff; }
.btn-red:hover { background: #ff1a10; }
.btn-ghost { border-color: var(--edge); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }

.trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.04em; color: var(--ink-faint);
}
.trust li { display: flex; align-items: center; gap: 0.45rem; }
.trust li::before { content: ""; width: 6px; height: 6px; background: var(--bg-4); }
.trust strong { color: #fff; }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 4px; filter: grayscale(0.35) contrast(1.06);
}
.hero-figure figcaption {
  margin-top: 0.7rem; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.05em; color: var(--ink-faint);
}

.hero-card {
  align-self: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--bg-4);
  padding: 1.4rem 1.35rem;
  border-radius: 4px;
}
.card-label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.5rem;
}
.card-big { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.card-sub { font-size: 0.9rem; color: var(--ink-dim); margin-bottom: 1.1rem; }
.card-list { margin: 0; display: grid; gap: 0.85rem; }
.card-list div { border-top: 1px solid var(--edge); padding-top: 0.7rem; }
.card-list dt {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.2rem;
}
.card-list dd { margin: 0; font-size: 0.92rem; }

/* ---------- broken bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
}
.cell {
  background: rgba(10, 10, 10, 0.16);
  border: 1px solid var(--edge);
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border-radius: 4px;
  grid-column: span 6;
}
.cell h3 { margin-bottom: 0.5em; }
.cell p { font-size: 0.94rem; color: rgba(255, 255, 255, 0.86); }
.cell .num {
  display: block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.16em; color: var(--bg-4); margin-bottom: 0.75rem;
}
.cell .meta {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.62);
  margin: 1rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--edge);
}
/* deliberate misalignments + one empty cell (cell-i is offset, cell-h short) */
.cell-a { background: rgba(10, 10, 10, 0.34); }
.cell-c { background: rgba(10, 10, 10, 0.05); }
.cell-e { background: rgba(10, 10, 10, 0.28); }
.cell-g { background: rgba(10, 10, 10, 0.05); }
.cell-i { background: rgba(10, 10, 10, 0.3); }

@media (min-width: 720px) {
  .cell { grid-column: span 3; }
  .cell-a { grid-column: 1 / 4; }
  .cell-b { grid-column: 4 / 7; }
  .cell-c { grid-column: 2 / 6; }          /* breaks out of the 3-col rhythm */
  .cell-d { grid-column: 1 / 3; }
  .cell-e { grid-column: 3 / 7; }
  .cell-f { grid-column: 1 / 4; }
  .cell-g { grid-column: 4 / 7; }
  .cell-h { grid-column: 2 / 5; }          /* leaves 1 and 5–6 empty beside it */
  .cell-i { grid-column: 5 / 7; }
}

/* ---------- drag band ---------- */
.sec-blue .sec-head { margin-bottom: 1.75rem; }
.band-wrap { position: relative; }
.band {
  display: flex; gap: clamp(0.9rem, 1.6vw, 1.35rem);
  overflow-x: auto; overflow-y: hidden;
  padding: 0.35rem var(--gut) 1.5rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.band.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.band::-webkit-scrollbar { height: 6px; }
.band::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); border-radius: 99px; }
.band-item {
  flex: 0 0 clamp(255px, 78vw, 340px);
  scroll-snap-align: start;
  background: rgba(10, 10, 10, 0.2);
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 0.85rem 0.85rem 1.1rem;
}
.band-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 3px; margin-bottom: 0.9rem;
  filter: grayscale(0.3) contrast(1.05);
  pointer-events: none;
}
.band-item h3 { font-size: 1.05rem; margin-bottom: 0.45em; }
.band-item p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }
.band-item .meta {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin: 0.85rem 0 0;
}
.band-hint {
  position: absolute; right: var(--gut); top: -2.4rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin: 0;
}

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
.about-copy p { color: var(--ink-dim); max-width: 62ch; }
.about-side { display: grid; gap: 1rem; align-content: start; }
.stat-block {
  border-left: 3px solid var(--bg-2);
  padding: 0.35rem 0 0.35rem 1rem;
}
.stat-num { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.stat-label { font-size: 0.86rem; color: var(--ink-faint); margin: 0.15rem 0 0; }
.quote {
  margin: 0.75rem 0 0; padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge); border-radius: 4px;
}
.quote p { font-size: 1.02rem; color: #fff; }
.quote cite {
  display: block; margin-top: 0.7rem; font-style: normal;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- hours ---------- */
.hours-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: 1fr; }
.hours-note {
  border-left: 3px solid var(--bg-1); padding-left: 1rem;
  font-size: 0.94rem; color: var(--ink-dark-dim); max-width: 52ch;
}
.hours-table {
  width: 100%; border-collapse: collapse;
  border: 2px solid var(--ink-dark);
  background: rgba(255, 255, 255, 0.35);
}
.hours-table th, .hours-table td {
  text-align: left; padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--edge-dark);
  font-size: 0.95rem;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 700; }
.hours-table td { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.03em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
.phone-big {
  display: inline-flex; flex-direction: column; gap: 0.3rem;
  margin: 0.5rem 0 1.25rem; padding: 1.1rem 1.4rem;
  background: var(--bg-1); color: #fff; text-decoration: none;
  border-radius: 4px; font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  border: 2px solid var(--bg-1);
}
.phone-big:hover { background: transparent; color: var(--bg-1); }
.phone-label {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7;
}
.contact-note { font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); max-width: 48ch; }
.contact-side { display: grid; gap: 1rem; align-content: start; }
.info-block {
  background: rgba(10, 10, 10, 0.17);
  border: 1px solid var(--edge); border-radius: 4px;
  padding: 1.2rem 1.3rem;
}
.info-block h3 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); margin-bottom: 0.7rem;
}
.info-block address { font-style: normal; font-size: 1rem; line-height: 1.55; }
.info-block p { font-size: 0.94rem; color: rgba(255, 255, 255, 0.88); }
.maplink {
  display: inline-block; margin-top: 0.8rem;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em;
  color: #fff; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--bg-1); color: var(--ink);
  background-image: var(--tile); background-size: 22px 22px;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.foot-name { font-weight: 800; font-size: 1.05rem; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.foot-line { font-size: 0.9rem; color: var(--ink-dim); margin: 0 0 0.25rem; }
.foot-line a { text-decoration: underline; text-underline-offset: 3px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot-nav a {
  font-size: 0.86rem; color: var(--ink-dim); text-decoration: none;
  padding: 0.35rem 0; min-height: 44px; display: inline-flex; align-items: center;
}
.foot-nav a:hover { color: #fff; }

.foot-claim { margin-top: 2rem; }
.claim-banner {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-dim); text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.5rem 0.8rem; border-radius: 3px;
}
.claim-banner:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.attribution {
  position: static;
  max-width: var(--maxw); margin: 1.5rem auto 0;
  padding-inline: var(--gut);
  font-family: var(--font-mono); font-size: 0.7rem;
  opacity: 0.55; text-align: left;
}
.attribution a { color: inherit; }

/* ---------- motion: fade + rise on scroll enter ---------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    section {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

/* ---------- wider screens ---------- */
@media (min-width: 860px) {
  .topnav { display: flex; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }
  .hero-copy { grid-column: 1; }
  .hero-figure { grid-column: 1; margin-top: 0.5rem; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .hero-card { grid-column: 2; grid-row: 1 / span 2; }
  .about-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hours-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
  .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .foot-nav { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .callbtn .dot { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
