/* =========================================================================
   SEWERS R US NYC — styles.css
   Industrial/utilitarian. Sharp corners (0px), high contrast, condensed
   sans for headlines, Inter for body. Mobile-first; one breakpoint at 880px.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --bg:        #F5F2EC;   /* warm off-white, job-site sand */
  --bg-alt:    #ECE7DD;   /* slightly deeper for section banding */
  --ink:       #161616;   /* near-black */
  --ink-2:     #5A554D;   /* muted body text */
  --line:      #CFC9BE;   /* hairline dividers */
  --accent:    #DC4615;   /* industrial orange-red (Milwaukee-ish) */
  --accent-2:  #B7370C;   /* hover/active */
  --on-accent: #FFFFFF;
  --dark:      #141414;   /* footer background */
  --on-dark:   #F5F2EC;
  --on-dark-2: #9E988A;

  /* Type */
  --display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 9vw, 128px);

  /* Layout */
  --max:   1280px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Accessible focus that we DON'T remove */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Section wrapper */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Headings: condensed display, tight tracking */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.75rem, 7.5vw, 6rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: 0; }
h4 { font-size: 0.85rem; letter-spacing: 0.08em; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--accent); }

/* Eyebrow label above headings */
.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  display: inline-block;
  /* sharp square, not a dot — fits the industrial theme */
}

/* Section header block */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 18px 28px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--on-accent);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: translateY(1px); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.96);   /* near-opaque, NOT glassmorphism */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-mark { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--on-accent);
  background: var(--accent);
  padding: 3px 6px 2px;
  font-weight: 700;
}

.site-nav { display: none; }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }

/* Header phone button — the most important element on mobile */
.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 0.15s ease;
}
.phone-btn:hover { background: var(--accent-2); }
.phone-btn-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.9;
  display: none;
}
.phone-btn-num { font-size: 1.05rem; }

@media (min-width: 560px) {
  .phone-btn-label { display: inline; }
  .phone-btn-num { font-size: 1.15rem; }
}
@media (min-width: 880px) {
  .site-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: 32px;
  }
  .phone-btn { padding: 12px 18px; }
  .phone-btn-num { font-size: 1.3rem; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.hero-text {
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 88px);
  max-width: 760px;
}
.hero-text h1 {
  margin: 0.25em 0 0.4em;
  letter-spacing: -0.015em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.hero-cta-note {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;   /* slightly text-heavy split */
    min-height: 78vh;
    align-items: stretch;
  }
  .hero-text {
    padding: clamp(80px, 9vw, 140px) clamp(40px, 5vw, 96px) clamp(80px, 9vw, 140px) var(--gutter);
    align-self: center;
  }
  .hero-photo { aspect-ratio: auto; }
}

/* =========================================================================
   SERVICES
   ========================================================================= */
.services {
  padding: var(--section-y) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.service-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-list .num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.25rem;
  letter-spacing: 0.02em;
}
.service-list h3 { margin-bottom: 0.4rem; }
.service-list p { color: var(--ink-2); max-width: 56ch; }

@media (min-width: 880px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
  }
  /* Items lay out left then right; the left column inherits a divider
     between items via border-bottom. */
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.about-body p {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink);
  max-width: 56ch;
}
@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
  }
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stats > div {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
}
.stats > div:last-child { border-bottom: none; }
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
}
.stats span {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > div {
    border-right: 1px solid var(--line);
    border-bottom: none;
    padding: 32px 24px;
  }
  .stats > div:last-child { border-right: none; }
}

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;   /* back-fills gaps from spanned tiles */
  gap: 8px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 10px;
  }
}
@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 12px;
  }
}

.tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: zoom-in;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.tile:hover img { transform: scale(1.04); opacity: 0.92; }
.tile:focus-visible { outline-offset: -3px; }

/* Editorial varied tile sizes */
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }

/* On the smallest viewport, big tiles can push too much — cap them */
@media (max-width: 639px) {
  .tile-wide { grid-column: span 2; }   /* fills full width on 2-col grid */
  .tile-tall { grid-row: span 2; }
}

/* =========================================================================
   VIDEOS
   ========================================================================= */
.videos {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px)  { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.video-card:hover img { opacity: 1; transform: scale(1.02); }

.video-card .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video-card .play::before {
  /* sharp triangle, not rounded */
  content: "";
  display: block;
  width: 0; height: 0;
  border-left: 28px solid var(--on-accent);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  margin-left: 6px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.45));
}
.video-card .play-bg {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px; height: 72px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  pointer-events: none;
}
.video-card .title {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--on-accent);
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  pointer-events: none;
}
.video-card.is-empty {
  display: grid;
  place-items: center;
  color: var(--on-dark-2);
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  cursor: default;
}
.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Instagram CTA — sits below the videos grid as a hand-off to the IG feed */
.ig-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 22px;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
  border-left: 4px solid var(--accent);
  transition: background 0.15s ease, transform 0.15s ease;
}
.ig-cta:hover {
  background: #000;
  transform: translateX(2px);
}
.ig-cta-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #ffffff;
  /* Official-ish Instagram gradient. Contained inside the icon tile only —
     does not bleed into the surrounding industrial palette. */
  background: radial-gradient(circle at 30% 107%,
              #fdf497 0%, #fdf497 5%,
              #fd5949 45%, #d6249f 60%,
              #285AEB 90%);
  flex-shrink: 0;
}
.ig-cta-icon svg { width: 36px; height: 36px; }

/* Smaller version for inline use (footer "Instagram" link) */
.ig-glyph {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
  background: radial-gradient(circle at 30% 107%,
              #fdf497 0%, #fdf497 5%,
              #fd5949 45%, #d6249f 60%,
              #285AEB 90%);
  vertical-align: -5px;
  margin-right: 8px;
}
.ig-glyph svg { width: 14px; height: 14px; }
.ig-cta-text strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.1;
}
.ig-cta-text > span {
  display: block;
  margin-top: 4px;
  color: var(--on-dark-2);
  font-size: 0.9rem;
}
.ig-cta-arrow {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.ig-cta:hover .ig-cta-arrow { transform: translateX(4px); }

/* =========================================================================
   SERVICE AREA
   ========================================================================= */
.area {
  padding: var(--section-y) 0;
}
.boroughs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.boroughs > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.boroughs h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.boroughs p { color: var(--ink-2); max-width: 70ch; }

@media (min-width: 720px) {
  .boroughs > div {
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 28px 0;
    align-items: baseline;
  }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 112px) 0 32px;
  border-top: 4px solid var(--accent);
}
.eyebrow-dark { color: var(--on-dark-2); }

.huge-phone {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
  color: var(--on-dark);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  /* The whole point of this site. Make it impossible to miss. */
  font-size: clamp(3rem, 11vw, 9rem);
  margin: 0.25rem 0 clamp(32px, 5vw, 64px);
  transition: color 0.15s ease;
}
.huge-phone:hover { color: var(--accent); }
.huge-phone:focus-visible { outline-color: var(--accent); }

.footer-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid #2a2a2a;
}
@media (min-width: 720px)  { .footer-meta { grid-template-columns: repeat(3, 1fr); } }

.footer-meta h4 {
  color: var(--on-dark-2);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-meta p { color: var(--on-dark); font-size: 0.95rem; }
.footer-meta a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--on-dark-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  padding: 12px 16px;
  line-height: 1;
}
.lightbox-close { top: 12px; right: 12px; font-size: 2.5rem; }
.lightbox-prev  { top: 50%; left: 12px;  transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 12px; transform: translateY(-50%); }
.lightbox button:hover { color: var(--accent); }

/* =========================================================================
   MOTION PREFERENCE
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
