/* Concept: THE NAMEPLATE. Every pump motor carries a riveted steel plate stamped with what it is, where it was made and
   how hard it runs; Carver's own facts (the shop on Cain Street, in service since 1987, continuous duty 24/7, four counties,
   contractor no. 547257) are stamped on one and riveted to the pump in the hero. The page then follows the water system:
   the well, the panel that starts it, the whole system across the counties, the parts shelf, and Carver's real yard.
   Colour: Carver's own wordmark blue and the blue of their rig bodies, sampled; ground is galvanized steel in daylight.
   Type: League Gothic, the American Alternate Gothic their wordmark is cut from and the face of stamped equipment plates;
   B612, drawn to be read on aircraft instrument panels, for a trade that lives in front of control panels. */
:root {
  --carver-blue: #0066CC;   /* their wordmark, sampled from carver-pump.com */
  --blue-deep: #0052A3;     /* hover on the call button */
  --rig-ink: #0A1B36;       /* the shadow side of their blue rig body (#021B54), pulled toward ink */
  --galvanized: #E7ECEF;    /* page ground: galvanized pipe and siding in daylight */
  --gravel: #908A7F;        /* their yard gravel, sampled from the fleet photo; rules only */
  --plate-hi: #DFE4E8;
  --plate-lo: #B9C1C7;      /* brushed stainless of the nameplate */
  --sundown: #F2A33A;       /* the golden hour in the orchard; focus ring on dark grounds */
  --text: #16222F;
  --muted: #44505C;
  --on-ink: #FFFFFF;
  --on-ink-muted: #B9C4CF;
  --link-on-ink: #7DB8FF;

  --font-display: "League Gothic", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "B612", Verdana, "DejaVu Sans", "Segoe UI", sans-serif;

  --fs-hero: clamp(2.75rem, 1.4rem + 4.6vw, 5rem);      /* 44 on a phone, 80 on desktop */
  --fs-h2: clamp(2.25rem, 1.7rem + 1.6vw, 2.75rem);     /* 36 to 44 */
  --fs-h3: 1.625rem;
  --fs-body: clamp(1.0625rem, 1rem + .25vw, 1.125rem);  /* 17 to 18 */
  --fs-small: .9375rem;

  --gutter: 16px;
  --max: 1240px;
  --space: clamp(72px, 9vw, 144px);
  --bar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--galvanized);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--carver-blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
figure { margin: 0; }
figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 10px; line-height: 1.45; max-width: 60ch; }

:focus-visible { outline: 3px solid var(--rig-ink); outline-offset: 3px; }
.hero :focus-visible, .power :focus-visible, .site-foot :focus-visible { outline-color: var(--sundown); }
.hero .plate :focus-visible { outline-color: var(--rig-ink); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--rig-ink); color: #fff; padding: 12px 18px; font-weight: 700;
}
.skip:focus { top: 8px; }

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

/* ---------- the bar ---------- */
header.bar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 2px solid var(--carver-blue);
}
.bar__in {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: var(--bar-h);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.bar__logo { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 44px; }
.bar__logo img { width: 100%; max-width: 230px; height: auto; }
.menu-btn {
  display: none;
  align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 10px; gap: 6px;
  background: none; border: 2px solid var(--rig-ink); border-radius: 3px;
  color: var(--rig-ink);
  font: 400 1.25rem/1 var(--font-display);
  cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -5px; }
.menu-btn__bars::after { top: 5px; }
.js .menu-btn { display: inline-flex; }
.bar__call {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px;
  background: var(--rig-ink); color: #fff; border-radius: 3px;
  font: 400 1.375rem/1 var(--font-display);
  text-decoration: none; white-space: nowrap;
}
.bar__call:hover { background: #142d52; }
.bar__call svg { width: 16px; height: 16px; flex: none; }
.bar__call-num { display: none; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: flex; align-items: center; min-height: 48px;
  font-family: var(--font-display); font-size: 1.625rem; line-height: 1;
  color: var(--rig-ink); text-decoration: none;
}
.nav a[aria-current="page"] { color: var(--carver-blue); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav a:hover { color: var(--carver-blue); }

@media (max-width: 1023.98px) {
  .js .nav { display: none; }
  .js .nav.is-open {
    display: block;
    position: absolute; top: calc(100% + 2px); left: 0; right: 0;
    background: #fff; border-bottom: 2px solid var(--carver-blue);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - var(--bar-h)); overflow-y: auto;
    box-shadow: 0 18px 30px rgba(10, 27, 54, .18);
  }
  .js .nav.is-open li + li { border-top: 1px solid #d5dbe0; }
  /* no JavaScript: no menu button, the links sit as a plain wrapped row under the bar */
  html:not(.js) .bar { position: relative; }
  html:not(.js) .bar__in { flex-wrap: wrap; height: auto; min-height: var(--bar-h); padding-block: 8px; }
  html:not(.js) .nav { order: 5; flex-basis: 100%; }
  html:not(.js) .nav ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
}
@media (min-width: 420px) {
  .bar__call-num { display: inline; }
  .bar__call-label { display: none; }
}
@media (min-width: 1024px) {
  :root { --bar-h: 68px; }
  .bar__logo { flex: 0 1 200px; }
  .js .menu-btn { display: none; }
  .nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
  .nav ul { display: flex; align-items: center; }
  .nav a { font-size: clamp(1.125rem, .55rem + .9vw, 1.375rem); padding: 0 9px; min-height: 44px; }
  .bar__call { margin-left: 8px; }
}

/* ---------- buttons and small links ---------- */
.call-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 26px;
  background: var(--carver-blue); color: #fff; border-radius: 3px;
  font: 400 1.75rem/1 var(--font-display);
  text-decoration: none;
}
.call-btn:hover { background: var(--blue-deep); }
.call-btn svg { width: 20px; height: 20px; flex: none; }
.more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--carver-blue);
}
.more::after { content: "\2192"; font-weight: 400; }

/* ---------- hero: the pump in the orchard, with the nameplate riveted on ---------- */
.hero { position: relative; padding: 0; background: var(--rig-ink); color: var(--on-ink); }
.hero__photo picture { display: block; height: 100%; }
.hero__inner { padding-bottom: 44px; }
.hero__photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 18%; }
.hero__words { padding: 28px var(--gutter) 8px; }
.hero h1 { font-size: var(--fs-hero); line-height: .98; margin-bottom: 18px; max-width: 13em; }
.hero__deck { color: #DCE3EA; margin-bottom: 22px; max-width: 34em; }
.hero__alt { margin: 14px 0 0; font-size: var(--fs-small); color: var(--on-ink-muted); }
.hero__alt a { color: var(--link-on-ink); display: inline-block; padding-block: 6px; }

.plate {
  position: relative;
  margin: 28px var(--gutter) 0;
  padding: 22px 24px 20px;
  color: var(--text);
  border-radius: 6px;
  background:
    radial-gradient(circle, #f6f8f9 0 1.5px, #9aa3aa 2.5px 4px, #5b646c 4.5px, transparent 5.5px) left 8px top 8px / 12px 12px no-repeat,
    radial-gradient(circle, #f6f8f9 0 1.5px, #9aa3aa 2.5px 4px, #5b646c 4.5px, transparent 5.5px) right 8px top 8px / 12px 12px no-repeat,
    radial-gradient(circle, #f6f8f9 0 1.5px, #9aa3aa 2.5px 4px, #5b646c 4.5px, transparent 5.5px) left 8px bottom 8px / 12px 12px no-repeat,
    radial-gradient(circle, #f6f8f9 0 1.5px, #9aa3aa 2.5px 4px, #5b646c 4.5px, transparent 5.5px) right 8px bottom 8px / 12px 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, rgba(0,0,0,.035) 1px 3px),
    linear-gradient(155deg, var(--plate-hi), var(--plate-lo) 58%, #d2d8dc);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 14px 34px rgba(0,0,0,.4);
}
.plate__maker { font-family: var(--font-display); font-size: 2.125rem; line-height: 1; margin: 0; color: var(--rig-ink); }
.plate__made { font-size: .8125rem; margin: 4px 0 14px; color: #2D3945; font-weight: 700; }
.plate__grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid #7f8a93; }
.plate__cell { padding: 8px 10px 7px 0; border-bottom: 1px solid #8e989f; }
.plate__cell--l { border-right: 1px solid #8e989f; }
.plate__cell--r { padding-left: 12px; }
.plate__cell--wide { grid-column: 1 / -1; }
.plate__cell--last { border-bottom: 0; }
.plate dt { font-size: .75rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .08em; color: #2D3945; font-weight: 700; }
.plate dd {
  margin: 2px 0 0;
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: #0d1620;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.plate dd a { color: #0d1620; display: inline-block; padding-block: 2px; text-decoration-color: var(--carver-blue); }

@media (max-width: 399.98px) {
  .plate { padding-inline: 18px; }
  .plate dd { font-size: 1.3125rem; }
}
@media (min-width: 640px) {
  .plate { max-width: 440px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .hero__photo img { aspect-ratio: 16 / 9; object-position: 62% 50%; }
  .hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: end; padding-inline: var(--gutter); }
  .hero__words { padding-inline: 0; }
  .plate { margin: 28px 0 0; }
}
@media (min-width: 1024px) {
  .hero { min-height: clamp(620px, calc(100vh - var(--bar-h)), 860px); display: flex; align-items: flex-end; }
  .hero__photo { position: absolute; inset: 0; }
  .hero__photo img { height: 100%; aspect-ratio: auto; object-position: 60% 50%; }
  .hero__photo::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(7, 20, 40, .9) 0%, rgba(7, 20, 40, .86) 44%, rgba(7, 20, 40, .5) 58%, rgba(7, 20, 40, 0) 74%),
      linear-gradient(0deg, rgba(7, 20, 40, .55) 0%, rgba(7, 20, 40, 0) 40%);
  }
  .hero__inner {
    position: relative; width: 100%;
    max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) 56px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  }
  .hero__words { padding: 0; max-width: 35rem; }
  .plate { margin: 0; flex: 0 0 380px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__words { animation: rise .7s ease-out both; }
  .plate { animation: rise .7s .15s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
.lead-in { font-size: 1.1875rem; }
section { padding-block: var(--space) 0; }
section:last-of-type { padding-bottom: var(--space); }
.photo { overflow: hidden; }
.photo img { transition: transform .5s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo:hover img { transform: scale(1.025); }
}

/* the well */
.well-grid { display: grid; gap: 28px; }
.well-grid h2 { margin-bottom: 18px; }
.well__weld { margin-top: 28px; }
@media (min-width: 900px) {
  .well-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
  .well__crew { grid-column: 1 / 9; }
  .well__words { grid-column: 9 / 13; padding-top: 12px; }
  .well__weld { margin-top: 36px; }
}

/* the panel */
.power { background: var(--rig-ink); color: var(--on-ink); padding-block: 0; margin-top: var(--space); }
.power figcaption { color: var(--on-ink-muted); padding-inline: var(--gutter); }
.power__photo { padding-bottom: 0; }
.power__words { padding: 36px var(--gutter) 64px; }
.power h2 { margin-bottom: 18px; }
.power p { color: #DCE3EA; }
.power .more { color: var(--link-on-ink); }
.tags { list-style: none; margin: 26px 0 22px; padding: 0; display: grid; gap: 10px; justify-items: start; }
.tags li {
  padding: 9px 30px 8px;
  background:
    radial-gradient(circle, #6f777e 0 2px, transparent 2.5px) left 11px center / 6px 6px no-repeat,
    radial-gradient(circle, #6f777e 0 2px, transparent 2.5px) right 11px center / 6px 6px no-repeat,
    #F0F2F3;
  color: #121417;
  border-radius: 2px;
  font-family: var(--font-display); font-size: 1.375rem; line-height: 1.15;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px #c3c9ce, 0 2px 0 rgba(0,0,0,.35);
}
@media (min-width: 900px) {
  .power { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .power__photo { position: relative; min-height: 100%; }
  .power__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .power__photo figcaption {
    position: absolute; left: 0; bottom: 0; margin: 0;
    background: rgba(10, 27, 54, .88); padding: 8px var(--gutter) 10px;
  }
  .power__words {
    padding: 112px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 112px 56px;
  }
}

/* the whole system, across the counties */
.water { padding-top: var(--space); }
.water__aerial img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.water__aerial figcaption { padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
.water__grid { display: grid; gap: 36px; margin-top: 44px; }
.water__words h2 { margin-bottom: 18px; }
.promise { margin: 0; padding: 24px 0 0; border-top: 6px solid var(--carver-blue); }
.promise p { font-family: var(--font-display); font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); line-height: 1.02; color: var(--rig-ink); margin-bottom: 14px; text-wrap: balance; }
.promise footer { font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 900px) {
  .water__aerial img { aspect-ratio: 21 / 8; }
  .water__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; margin-top: 56px; }
  .water__words { grid-column: 1 / 7; }
  .promise { grid-column: 8 / 13; align-self: start; margin-top: 8px; }
}

/* words in the page column, photograph running off the right edge of the screen (parts, the call) */
.bleed-right { display: grid; gap: 28px; }
.bleed-right__words { padding-inline: var(--gutter); }
.bleed-right figcaption { padding-inline: var(--gutter); }
@media (min-width: 900px) {
  .bleed-right {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [col-start] minmax(0, calc((var(--max) - 2 * var(--gutter)) * 5 / 12))
      [split] minmax(0, calc((var(--max) - 2 * var(--gutter)) * 7 / 12))
      [col-end] minmax(var(--gutter), 1fr) [full-end];
    column-gap: 0; row-gap: 0;
  }
  .bleed-right__words { grid-column: col-start / split; grid-row: 1; padding: 0 56px 0 0; }
  .bleed-right__photo { grid-column: split / full-end; grid-row: 1; }
  .bleed-right__photo img { width: 100%; }
}

/* the shelf */
.parts__words h2 { margin-bottom: 18px; }
.parts__words h3 { margin: 26px 0 8px; color: var(--rig-ink); }
.pump-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gravel); }
.pump-list li { padding: 9px 0; border-bottom: 1px solid var(--gravel); }
.brands { list-style: none; margin: 0 0 18px; padding: 0; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.25; color: var(--rig-ink); }
.brands li { display: inline; }
.brands li:not(:last-child)::after { content: " / "; color: var(--carver-blue); }
@media (min-width: 900px) {
  .parts .bleed-right { align-items: start; }
  .parts__shop img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
}

/* the yard: Carver's own photograph */
.yard-grid { display: grid; gap: 24px; }
.yard__photo img { width: 100%; max-width: 960px; }
.yard__words h2 { margin-bottom: 18px; }
.yard__members { font-size: var(--fs-small); color: var(--muted); border-left: 4px solid var(--carver-blue); padding-left: 14px; }
@media (min-width: 900px) {
  .yard-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; align-items: end; }
  .yard__photo { grid-column: 1 / 9; }
  .yard__words { grid-column: 9 / 13; }
}

/* the call */
.call { padding-bottom: var(--space); }
.call .bleed-right { align-items: center; }
.call__words h2 { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.5rem); margin-bottom: 18px; }
.call__words .call-btn { margin: 6px 0 18px; }
.call__lines { list-style: none; margin: 0; padding: 0; }
.call__lines li { padding: 6px 0; }
.call__lines a { display: inline-block; padding-block: 4px; }

/* ---------- footer ---------- */
.site-foot { background: var(--rig-ink); color: var(--on-ink-muted); padding: 56px 0 32px; font-size: var(--fs-small); }
.site-foot a { color: var(--link-on-ink); display: inline-block; padding-block: 5px; }
.foot-grid { display: grid; gap: 28px; }
.foot__name { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: #fff; margin-bottom: 10px; }
.foot__label { color: #fff; font-weight: 700; margin-bottom: 6px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.mockup-line { margin-top: 36px; padding-top: 16px; border-top: 1px solid #2a3c58; font-size: .8125rem; max-width: none; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 5fr 3fr 4fr; }
}

/* ---------- stub pages ---------- */
.stub { padding-block: 0 var(--space); }
.stub__photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.stub__words { padding-top: 40px; }
.stub__words h1 { font-size: var(--fs-hero); margin-bottom: 20px; max-width: 14em; }
.stub__words p { font-size: 1.1875rem; }
.stub__soon { color: var(--muted); font-size: var(--fs-small); }
.stub__words .call-btn { margin: 10px 0 20px; }
@media (max-width: 639.98px) {
  .stub__photo img { aspect-ratio: 4 / 3; }
}
.stub__photo--native { padding-top: 24px; }
.stub__photo--native img { max-width: 960px; aspect-ratio: auto; }

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