/* ============================================================
   Brightview Construction Group - self-performing trade + GC
   Light, photo-forward contractor identity: white ground, heavy
   near-black display type, full-colour photography carrying the
   brightness, with black bands used as punctuation.
   Deliberately single-theme; every colour painted explicitly so
   the page holds on any host ground.
   ============================================================ */
:root {
  --ground:    #FFFFFF;
  --surface:   #F2F3F4;   /* concrete-washed panel */
  --raised:    #E8EAEB;
  --ink:       #0E1012;   /* near-black, cool */
  --ink-band:  #25408F;   /* dark punctuation bands */
  --muted:     #565D62;
  --dim:       #5E6468;   /* AA on the concrete-washed panel, not just on white */
  --accent:    #FEC052;   /* hi-vis amber - hard hat / vest / caution stripe */
  --accent-dk: #25408F;   /* amber dark enough for text on white */
  --hairline:  rgba(14,16,18,0.14);
  --hairline-strong: rgba(14,16,18,0.30);
  --on-dark:   #F6F7F7;

  --maxw: 1280px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */
.display {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
  margin: 0;
}
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-dk);
  margin: 0;
}
.lede { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 62ch; }

.rule { height: 4px; width: 52px; background: var(--accent); border: 0; margin: 0 0 1.25rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; height: 84px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand b {
  font-family: Archivo, sans-serif; font-weight: 900; font-size: 18px;
  letter-spacing: -0.025em; line-height: 1; color: var(--ink);
}
.brand span {
  font-family: "IBM Plex Mono", monospace; font-size: 9px;
  letter-spacing: 0.26em; color: var(--dim); text-transform: uppercase;
}
.nav-links { display: none; gap: 1.7rem; }
.nav-links a {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  white-space: nowrap;                 /* never let a nav label break in two */
  transition: color .18s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
/* only show the link row once there is genuinely room for it on one line */
@media (min-width: 1080px) { .nav-links { display: flex; } }
.nav .btn { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: .9rem 1.6rem; border: 1px solid transparent; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-accent { background: var(--accent); color: #14100A; }
.btn-accent:hover { background: #FFD277; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: #2A2F33; transform: translateY(-2px); }
.btn-ghost { border-color: var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
/* ghost button sitting on a photo */
.btn-ghost-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.14); }
:focus-visible { outline: 3px solid var(--accent-dk); outline-offset: 3px; }

/* ---------- hero: bright photo carries the page ---------- */
.hero { position: relative; min-height: 76svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink-band); }
/* framed on the structure, not the yard, so the site sign clears the headline */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    /* darkens the column the type sits in; the right half of the frame stays bright */
    linear-gradient(to right, rgba(10,12,13,0.86) 0%, rgba(10,12,13,0.72) 34%, rgba(10,12,13,0.28) 62%, rgba(10,12,13,0) 88%),
    linear-gradient(to top, rgba(10,12,13,0.80) 0%, rgba(10,12,13,0.40) 34%, rgba(10,12,13,0.06) 74%, rgba(10,12,13,0) 100%);
}
.hero-in { position: relative; z-index: 2; width: 100%; padding-block: clamp(2.5rem, 7vw, 5rem); color: #fff; }
.hero .kicker { color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 7.6vw, 6.1rem); margin-block: 1.1rem 0; color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 1.5rem; color: rgba(255,255,255,0.88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.trades-strip {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.25rem;
  padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,0.28);
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.82);
}

/* ---------- stats ---------- */
.stats { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2.25rem var(--pad); border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: Archivo, sans-serif; font-weight: 900;
  font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat span {
  display: block; margin-top: .7rem; font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}

/* ---------- generic section ---------- */
.sec { padding-block: clamp(4rem, 8vw, 7rem); }
/* Alternating band so two consecutive card sections don't read as one slab. */
.sec-alt { background: var(--surface); border-block: 1px solid var(--hairline); }
/* Constrain the measure WITHOUT centring. `.sec-head` used to be put on the
   same element as `.wrap`, where its 760px max-width beat the wrap's 1280 and
   `margin-inline: auto` then centred the whole header — so some section titles
   sat centred and others left-aligned down the page. margin-right: auto pins
   it left even when the two classes share an element. */
.sec-head { max-width: 760px; margin-inline: 0 auto; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.sec-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); margin-block: 0 1.1rem; }

/* ---------- trades ---------- */
.trades { display: grid; gap: 1px; background: var(--hairline); border-block: 1px solid var(--hairline); }
@media (min-width: 900px) { .trades { grid-template-columns: repeat(3, 1fr); } }
.trade { background: var(--ground); padding: clamp(2rem, 3.2vw, 2.9rem); display: flex; flex-direction: column; gap: 1rem; }
.trade-no {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--accent-dk);
}
.trade h3 { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.025em; margin: 0; }
.trade p { color: var(--muted); margin: 0; font-size: .96rem; }
.trade ul { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.trade li {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--dim);
  padding-top: .5rem; border-top: 1px solid var(--hairline);
}

/* ---------- services ---------- */
.svc { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.svc-row {
  display: grid; gap: .4rem 2rem; padding: clamp(1.5rem, 2.5vw, 2.15rem) 0;
  border-bottom: 1px solid var(--hairline); align-items: start;
}
/* The price column is a FIXED width, not `auto`. With auto it sized to each
   row's own text ("Flat fee, up front" vs "Per permit"), which shoved the
   description column to a different x on every row — the list read ragged. */
@media (min-width: 860px) { .svc-row { grid-template-columns: 62px 1fr 1.15fr 172px; align-items: center; } }
.svc-n { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; color: var(--accent-dk); letter-spacing: .16em; }
.svc-t { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.svc-d { color: var(--muted); font-size: .95rem; }
.svc-p {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
@media (min-width: 860px) { .svc-p { text-align: right; } }

/* ---------- projects: full colour, no grey wash ---------- */
.proj { display: grid; gap: 1px; background: var(--hairline); border-block: 1px solid var(--hairline); }
@media (min-width: 720px) { .proj { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .proj { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--ground); display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--raised); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 1.3rem 1.45rem 1.7rem; display: flex; flex-direction: column; gap: .4rem; }
.card-body b { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.02rem; letter-spacing: -0.015em; }
.card-body span {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--dim);
}

/* ---------- bench: the one dark band, as punctuation ---------- */
.bench { background: var(--ink-band); color: var(--on-dark); }
.bench .kicker { color: var(--accent); }
.bench .lede { color: rgba(246,247,247,0.76); }
.bench-grid { display: grid; gap: 1px; background: rgba(246,247,247,0.16); border-top: 1px solid rgba(246,247,247,0.16); }
@media (min-width: 820px) { .bench-grid { grid-template-columns: repeat(3, 1fr); } }
.bench-cell { background: var(--ink-band); padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: .8rem; }
.bench-cell h3 { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.2rem; margin: 0; letter-spacing: -0.02em; }
.bench-cell p { margin: 0; color: rgba(246,247,247,0.72); font-size: .93rem; }

/* ---------- contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--hairline); }
.contact-in { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .contact-in { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.contact h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); margin: 1.1rem 0 0; }
.contact-list { display: flex; flex-direction: column; gap: 1.35rem; margin-top: .5rem; }
.contact-item { display: flex; flex-direction: column; gap: .3rem; padding-top: 1.05rem; border-top: 1px solid var(--hairline-strong); }
.contact-item span {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.contact-item b { font-weight: 600; font-size: 1rem; color: var(--ink); }

/* ---------- footer ---------- */
.foot { background: var(--ink-band); color: var(--on-dark); padding-block: 2.5rem 3.25rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; align-items: center; }
.foot small {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: rgba(246,247,247,0.62);
}

.counties {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim); line-height: 2;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Plain contractor furniture: phone in the bar, license under the hero. */
.phone { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.todo { background: var(--accent); color: #14100A; padding: .15em .5em; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.lic { margin-top: 2rem; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); }

/* Section heads without the rule+kicker stack, so sections stop looking identical. */
.h2a { font-size: clamp(1.8rem, 4vw, 2.9rem); margin: 0 0 1.4rem; }
.lede.wide { max-width: 78ch; }
.sub { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; margin: 3rem 0 .8rem; }
.note { max-width: 78ch; margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; border-left: 3px solid var(--accent); padding-left: 1rem; }

/* Alternating text/photo rows instead of another grid of cards. */
.row { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--hairline); align-items: start; }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 1fr; } .row.rev .row-txt { order: 2; } }
.row-txt h3 { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; margin: 0 0 .8rem; }
.row-txt p { margin: 0 0 1.1rem; color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
ul.plain li { font-size: .94rem; color: var(--ink); padding-left: 1.1rem; position: relative; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--accent); }

/* Honest placeholder: it should look unfinished, because it is. */
.shot { border: 2px dashed var(--hairline-strong); background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(239,183,0,.05) 10px, rgba(239,183,0,.05) 20px); min-height: 230px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.shot-tag { font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dk); }
.shot-txt { font-size: .92rem; color: var(--muted); max-width: 34ch; }

/* A table, because pricing tiers are tabular. */
.ptable { width: 100%; border-collapse: collapse; margin-top: 1.75rem; font-size: .93rem; }
.ptable th { text-align: left; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding: 0 1rem .7rem 0; border-bottom: 2px solid var(--ink); }
.ptable td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--muted); }
.ptable td b { color: var(--ink); font-weight: 700; }
@media (max-width: 680px) { .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; } .ptable thead { display: none; } .ptable tr { border-bottom: 1px solid var(--hairline); padding-block: .6rem; } .ptable td { border: 0; padding: .25rem 0; } }

/* Numbered gates: a list, not seven more boxes. */
.gates { counter-reset: g; list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--hairline); border-block: 1px solid var(--hairline); }
@media (min-width: 860px) { .gates { grid-template-columns: 1fr 1fr; } }
.gates li { counter-increment: g; background: var(--ground); padding: 1.3rem 1.4rem 1.3rem 3.4rem; position: relative; font-size: .94rem; color: var(--muted); }
.gates li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 1.4rem; top: 1.35rem; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; color: var(--accent-dk); }
.gates li b { color: var(--ink); font-weight: 700; }

.counties.big { font-size: clamp(.95rem, 1.6vw, 1.15rem); letter-spacing: .12em; color: var(--ink); line-height: 1.9; }

.bid { background: var(--ink-band); color: var(--on-dark); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.bid h2 { margin: 0 0 1.2rem; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.bid .lede { color: rgba(246,247,247,.78); }
.bid-in { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .bid-in { grid-template-columns: 1.4fr .6fr; } }
.bid-side { display: flex; flex-direction: column; gap: 1.4rem; font-size: .92rem; color: rgba(246,247,247,.72); }
.bid-side b { color: var(--on-dark); }
.bid .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.bid .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* Real wordmark instead of set type. */
.logo { height: 46px; width: auto; display: block; }
.brand { display: block; }
/* A 7th gate was leaving an empty grey cell in a 2-up grid. */
.gates li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.foot { background: var(--ink-band); }
.foot small { color: rgba(246,247,247,.7); }

.shot.filled { border: 0; background: var(--raised); padding: 0; overflow: hidden; min-height: 0; }
.shot.filled img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; display: block; }

/* Slots without a photo yet collapse rather than advertising themselves. */
.shot:not(.filled) { display: none; }
.row:has(.shot:not(.filled)) { grid-template-columns: 1fr; }
.row:has(.shot:not(.filled)) .row-txt { max-width: 74ch; }
