/* Final safety net against horizontal bleed on mobile: clip any stray
   horizontal overflow at the page root. `clip` (not `hidden`) is used so
   no scroll container is created and the sticky header keeps sticking.
   The root-cause fix for the bleed this guards against lives in
   Header.astro: the mobile menu nav is display:none until its <details>
   opens (hidden + group-open/menu:block), because the absolutely
   positioned nav inside a closed <details> otherwise lays out at the
   48px hamburger width and its Services grid items spill ~60px past the
   right edge of a phone viewport, unclipped (the header sits outside
   <main class="overflow-x-clip">). */
html,
body {
  overflow-x: clip;
}

/* Supplement to eastcoast.css (the East Coast original's compiled
   stylesheet). Loaded after it. Holds only what the original's stylesheet
   cannot cover for this build:
   1. Reveal neutralization. The original hides [data-reveal] content until
      a script adds .is-visible. This build ships zero JavaScript, so any
      reveal state is forced visible here (the markup also omits the
      attribute; this is belt and braces).
   2. .bc-prose typography for markdown-rendered copy (hub intros, city
      pages, legal pages), styled to the original's type scale and colors.
   3. Keyboard support for the header Services dropdown (.dd-panel), which
      the original opens on hover or via its script. */

[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.group\/dd:focus-within .dd-panel {
  visibility: visible;
  opacity: 1;
  --tw-translate-y: 0px;
}

/* Utilities this build uses that the original's pages never used, so its
   compiled stylesheet does not contain them. Defined with the same
   Tailwind v4 spacing scale so they blend in invisibly. */
.border-0 { border-width: 0px; }
.h-11 { height: calc(var(--spacing) * 11); }
.h-16 { height: calc(var(--spacing) * 16); }
.items-start { align-items: flex-start; }
.pb-10 { padding-bottom: calc(var(--spacing) * 10); }
.pb-20 { padding-bottom: calc(var(--spacing) * 20); }
.pr-4 { padding-right: calc(var(--spacing) * 4); }
.pt-4 { padding-top: calc(var(--spacing) * 4); }
.scroll-mt-28 { scroll-margin-top: calc(var(--spacing) * 28); }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-40 { width: calc(var(--spacing) * 40); }
@media (min-width: 40rem) {
  .sm\:p-6 { padding: calc(var(--spacing) * 6); }
  .sm\:pt-12 { padding-top: calc(var(--spacing) * 12); }
  .sm\:text-left { text-align: left; }
}
@media (min-width: 64rem) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:gap-12 { gap: calc(var(--spacing) * 12); }
  .lg\:items-center { align-items: center; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:pb-6 { padding-bottom: calc(var(--spacing) * 6); }
  .lg\:pb-8 { padding-bottom: calc(var(--spacing) * 8); }
  .lg\:pt-6 { padding-top: calc(var(--spacing) * 6); }
  .lg\:pt-8 { padding-top: calc(var(--spacing) * 8); }
  .lg\:shrink-0 { flex-shrink: 0; }
  .lg\:w-48 { width: calc(var(--spacing) * 48); }
}

.bc-prose {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted);
}
.bc-prose p {
  margin-top: 1.25rem;
}
.bc-prose p:first-child {
  margin-top: 0;
}
.bc-prose h2 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.875rem;
  line-height: 1.1;
  margin-top: 2.75rem;
}
.bc-prose h2:first-child {
  margin-top: 0;
}
.bc-prose h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-top: 2rem;
}
.bc-prose a {
  color: var(--color-ocean);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bc-prose a:hover {
  color: var(--color-ink);
}
.bc-prose ul {
  margin-top: 1.25rem;
  list-style: disc;
  padding-left: 1.5rem;
}
.bc-prose li {
  margin-top: 0.5rem;
}
.bc-prose strong {
  color: var(--color-ink);
}

/* Local Biz Engine additions: the Our Work marquee (CSS only, matching
   the live site's continuous carousel; pauses on hover, and honors
   reduced-motion by wrapping instead of scrolling) and prose rules for
   ordered lists and section rules in the carried-over long-form copy. */
.bc-marquee {
  overflow: hidden;
  padding-left: max(1rem, calc((100vw - 80rem) / 2 + 2rem));
}
.bc-marquee-track {
  display: flex;
  width: max-content;
  animation: bc-marquee-scroll 55s linear infinite;
}
.bc-marquee:hover .bc-marquee-track {
  animation-play-state: paused;
}
.bc-marquee-item {
  width: 320px;
  max-width: 82vw;
  margin-right: 1.5rem;
  flex-shrink: 0;
}
@keyframes bc-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bc-marquee { padding-left: 1rem; padding-right: 1rem; }
  .bc-marquee-track { animation: none; flex-wrap: wrap; row-gap: 1.5rem; }
}

/* Facts band repair (homepage "by the numbers" band). The old markup set
   the values at text-6xl with font-stretch-expanded inside a plain
   3-column grid: measured at a 1265px viewport, "Nationwide" rendered
   424px wide in a 352px column content box, so its glyphs ran 11px past
   the start of the "Direct" column and the two words ran together. Here
   the values use Archivo at natural stretch, sized to fit their columns,
   and at lg the second and third columns carry a visible cyan divider
   line with padding on both sides of it. Below lg the stats stack,
   keeping the original left accent border on each stat. */
.bc-facts {
  display: grid;
  gap: 2.5rem;
}
.bc-facts > li {
  border-left: 2px solid color-mix(in oklab, var(--color-cyan) 40%, transparent);
  padding-left: 1.25rem;
}
.bc-fact-value {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}
@media (min-width: 64rem) {
  .bc-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .bc-facts > li {
    border-left: none;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
  .bc-facts > li:first-child {
    padding-left: 0;
  }
  .bc-facts > li:last-child {
    padding-right: 0;
  }
  .bc-facts > li + li {
    border-left: 2px solid color-mix(in oklab, var(--color-cyan) 40%, transparent);
  }
  .bc-fact-value {
    font-size: 2.75rem;
  }
}
@media (min-width: 80rem) {
  .bc-fact-value {
    font-size: 3.25rem;
  }
}

.bc-prose ol {
  margin-top: 1.25rem;
  list-style: decimal;
  padding-left: 1.5rem;
}
.bc-prose hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 2.5rem 0;
}
.bc-prose h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.125rem;
  line-height: 1.25;
  margin-top: 1.75rem;
}

/* Utilities this build uses that the East Coast original's pages never
   used, so its compiled stylesheet does not contain them. Defined with
   the same Tailwind v4 spacing scale so they blend in invisibly. */
.-top-4 { top: calc(var(--spacing) * -4); }
.aspect-3\/4 { aspect-ratio: 3 / 4; }
.bg-ink\/70 { background-color: color-mix(in oklab, var(--color-ink) 70%, transparent); }
.gap-3\.5 { gap: calc(var(--spacing) * 3.5); }
.gap-x-10 { column-gap: calc(var(--spacing) * 10); }
.gap-x-6 { column-gap: calc(var(--spacing) * 6); }
.gap-y-4 { row-gap: calc(var(--spacing) * 4); }
.items-stretch { align-items: stretch; }
.mt-1\.5 { margin-top: calc(var(--spacing) * 1.5); }
.p-7 { padding: calc(var(--spacing) * 7); }
.ring-ink { --tw-ring-color: var(--color-ink); }
.space-y-3\.5 > :not(:last-child) { margin-block-end: calc(var(--spacing) * 3.5); }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }
.w-auto { width: auto; }
summary::-webkit-details-marker { display: none; }
@media (min-width: 48rem) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .lg\:h-14 { height: calc(var(--spacing) * 14); }
  .lg\:mt-24 { margin-top: calc(var(--spacing) * 24); }
  .lg\:sticky { position: sticky; }
  .lg\:text-left { text-align: left; }
  .lg\:top-32 { top: calc(var(--spacing) * 32); }
}

/* Homepage hero fit (2026-11-21): with the announcement banner above
   the header, the hero's xl:text-7xl headline (72px, five lines in the
   7-column span) pushed the hero's checkmark bar below the fold on a
   1366x768 viewport (measured hero bottom 794px against the 768px
   viewport, after the hero spacing and form compaction). Stepping the
   headline to 4rem at the xl breakpoint keeps it black-weight and
   oversized while bringing the complete hero (headline, subhead,
   checkmarks, CTA, and the full form card) above the fold. Scoped to
   the hero title only; no copy or other heading changes size. */
@media (min-width: 80rem) {
  #hero-title {
    font-size: 4rem;
  }
}

/* Hero form card micro-compaction, same fit pass: slightly tighter
   card padding, field padding, input height, and label margins inside
   the hero card only (.bc-hero-card, set on the hero variant in
   PreviewForm.astro). The full variant on the contact, free preview,
   and homepage panel forms is untouched, and no field or the Netlify
   wiring changes. */
.bc-hero-card input,
.bc-hero-card textarea {
  min-height: 2.75rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.bc-hero-card label {
  margin-bottom: 0.25rem;
}
@media (min-width: 40rem) {
  .bc-hero-card {
    padding: 1.25rem;
  }
}

/* King Neptune photo frame, homepage Service Areas section. The figure
   previously carried the classes aspect-2/3 and max-w-md, which the
   compiled East Coast stylesheet does not contain (the original site's
   pages never used them, so Tailwind never emitted them). With no
   aspect ratio in effect and an absolutely positioned img as its only
   child, the figure collapsed to zero height in a real browser:
   measured 561 x 0 at a 1280px viewport and 343 x 0 at 390px, so the
   photo was invisible even though the file itself served fine. This
   dedicated class sizes the frame explicitly. The img keeps its
   absolute inset-0 size-full object-cover utilities, which do exist,
   so it fills the frame. 28rem restores the intended max-w-md cap. */
.bc-neptune-frame {
  aspect-ratio: 2 / 3;
  max-width: 28rem;
}

/* Announcement marquee above the header on every page. CSS only, zero
   JavaScript: the track holds two identical strips and slides by half
   its width (one full strip) for a seamless loop. It pauses on hover
   and focus, and stops under prefers-reduced-motion. The background is
   the green sampled from the Local Biz Engine logo (#0bb90c), with ink
   Archivo extrabold text for strong contrast against both the banner
   and the white navigation header directly below it. */
.bc-announce {
  display: block;
  overflow: hidden;
  background-color: #0bb90c;
  color: var(--color-ink);
  text-decoration: none;
}
.bc-announce:hover,
.bc-announce:focus-visible {
  background-color: #099a0a;
}
.bc-announce-track {
  display: flex;
  width: max-content;
  animation: bc-announce-scroll 32s linear infinite;
}
.bc-announce:hover .bc-announce-track,
.bc-announce:focus-visible .bc-announce-track {
  animation-play-state: paused;
}
.bc-announce-strip {
  display: flex;
  align-items: center;
}
.bc-announce-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
}
.bc-announce-sep {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  font-size: 0.75rem;
}
@keyframes bc-announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bc-announce-track {
    animation: none;
  }
}

/* Homepage free preview panel: collage of real website screenshots in
   browser-chrome frames, added at Jeff's request on 2026-11-21 in place
   of the single generic preview image that sat beside the form. CSS
   only, zero JavaScript. The first tile spans both columns; the other
   four sit in a two-column grid with slight alternating rotations for
   a collage feel. The rotations are small (1.2deg moves a corner about
   6px on the widest tile) and are absorbed by the grid gaps; the panel
   section is overflow-hidden and the page root clips horizontal
   overflow as a backstop. Tiles use white frames so they pop against
   the ink panel, each with a browser bar carrying three dots and the
   business name. */
.bc-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.bc-shot {
  margin: 0;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
}
.bc-shot-wide {
  grid-column: 1 / -1;
}
.bc-shot:nth-child(2) { transform: rotate(-1.2deg); }
.bc-shot:nth-child(3) { transform: rotate(1.2deg); }
.bc-shot:nth-child(4) { transform: rotate(1deg); }
.bc-shot:nth-child(5) { transform: rotate(-1deg); }
.bc-shot-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  background-color: var(--color-shell);
  border-bottom: 1px solid var(--color-line);
}
.bc-shot-dots {
  display: inline-flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.bc-shot-dots i {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--color-ink) 25%, transparent);
}
.bc-shot-dots i:first-child {
  background-color: var(--color-sunset);
}
.bc-shot-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-shot-screen {
  aspect-ratio: 16 / 10;
}
.bc-shot-wide .bc-shot-screen {
  aspect-ratio: 16 / 9;
}
.bc-shot-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
