:root {
  --paper: #f6f4ef;
  --white: #ffffff;
  --ink: #17252b;
  --muted: #55636a;
  --copper: #9a4f2b;
  --slate: #1f3038;
  --rule: rgba(0, 0, 0, .1);
  --r: 5px;
  --sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* Buttons: rock-plumbing.com pattern. 5px corners, regular weight,
   fill swaps to dark with a soft drop shadow on hover, 0.2s. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: 500 16px/24px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-solid { background: var(--copper); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-call { background: var(--ink); color: #fff; padding: 9px 18px; }
.btn-call svg { width: 16px; height: 16px; fill: currentColor; }
.btn-wide { width: 100%; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.top-in {
  max-width: var(--max); margin: 0 auto;
  padding: 12px var(--gut);
  display: flex; align-items: center; gap: 32px;
}
.mark { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.mark-name { font-weight: 600; font-size: 18px; }
.mark-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }

/* Hero: split layout from Rock Plumbing (copy left, photo with a
   column of reviews on the right). */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gut);
  display: grid;
  grid-template-columns: 5fr 4fr 3.6fr;
  gap: 28px;
  align-items: stretch;
  min-height: 620px;
}
.hero-copy { align-self: center; padding: 56px 0; }
.hero h1 { font-size: clamp(36px, 3.7vw, 52px); line-height: 1.08; max-width: none; }
.lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { margin: 28px 0; border-radius: var(--r); overflow: hidden; background: #ddd; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-reviews { display: flex; flex-direction: column; gap: 12px; justify-content: flex-start; padding: 28px 0; }
.score { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stars { color: var(--copper); letter-spacing: 2px; margin-right: 6px; }
.review {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 16px 18px;
}
.review p { font-size: 15px; line-height: 1.5; }
.review cite { display: block; margin-top: 10px; font: 500 13px var(--mono); font-style: normal; color: var(--muted); }

/* Licence band: Rock's dark "mission" band, used for the state record. */
.licence { background: var(--slate); color: #eef1ef; }
.licence-in {
  max-width: var(--max); margin: 0 auto;
  padding: 64px var(--gut);
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px 64px; align-items: start;
}
.licence h2 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.15; max-width: 22ch; }
.record { margin: 0; grid-row: span 2; border-top: 1px solid rgba(255, 255, 255, .18); }
.record div { display: grid; grid-template-columns: 120px 1fr; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.record dt { font: 400 13px/24px var(--mono); color: rgba(238, 241, 239, .66); }
.record dd { margin: 0; font-size: 17px; }
.licence .btn { justify-self: start; }

/* Services: Rock's photo-left services block, list as plain two columns. */
.services {
  max-width: var(--max); margin: 0 auto;
  padding: 96px var(--gut);
  display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start;
}
.services-photo { margin: 0; border-radius: var(--r); overflow: hidden; position: sticky; top: 96px; }
.services-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.12; }
.sub { margin-top: 10px; color: var(--muted); }
.svc { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.svc li { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.svc h3 { font-size: 20px; font-weight: 500; }
.svc p { margin-top: 4px; color: var(--muted); font-size: 16px; }

/* Work grid */
.work { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 96px; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 40px; }
.grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { display: block; width: 100%; padding: 0; border: 0; background: #ddd; border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .45s ease; }
.grid p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Text request: quick-quote form idea from wilsonplumbingbendigo.com
   ("How soon do you need us?"), boxed inputs with labels above. */
.ask {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gut) 96px;
  display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start;
}
.ask-copy { padding-top: 40px; border-top: 1px solid var(--rule); }
.ask-copy p { margin-top: 14px; color: var(--muted); max-width: 38ch; }
.ask-copy .alt { margin-top: 22px; color: var(--ink); }
.ask-copy .alt a { color: var(--copper); text-underline-offset: 4px; }
.form { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 10px; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  font: 400 15px/20px var(--sans); color: var(--ink);
  padding: 9px 14px 9px 12px;
  background: var(--white); border: 1px solid rgba(0, 0, 0, .2); border-radius: var(--r);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.pick::before {
  content: ""; width: 14px; height: 14px; border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, .35); background: var(--white) no-repeat center / 10px;
  transition: background-color .2s, border-color .2s;
}
.pick[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.pick[aria-pressed="true"]::before {
  border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%2317252b' stroke-width='2'/%3E%3C/svg%3E");
}
.pick:active { transform: translateY(1px); }
.when { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.when label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.when input { accent-color: var(--copper); width: 17px; height: 17px; margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input[type="text"], textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  padding: 11px 12px; background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .14); border-radius: var(--r);
  transition: border-color .2s, background-color .2s;
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
input[aria-invalid="true"] { border-color: #b3261e; }
textarea { resize: vertical; min-height: 84px; }
.err { color: #b3261e; font-size: 14px; margin-top: 6px; }
.done {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .25s ease, opacity .25s ease, margin-top .25s ease, visibility 0s linear .25s;
}
.done.show { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .25s ease, opacity .25s ease, margin-top .25s ease, visibility 0s; }
.done-in { overflow: hidden; min-height: 0; }
.done-in > .done-h { border-top: 1px solid var(--rule); padding-top: 22px; }
.form .done { margin-top: -22px; }
.form .done.show { margin-top: 0; }
.done:focus { outline: none; }
.done-h { font-weight: 600; font-size: 18px; }
.done-msg { margin-top: 10px; padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--copper); font: 400 14px/1.6 var(--mono); white-space: pre-wrap; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Contact */
.contact { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 88px; }
.contact h2 { border-top: 1px solid var(--rule); padding-top: 40px; }
.contact-grid { margin-top: 28px; display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }
address { font-style: normal; line-height: 1.7; }
.c-name { display: block; font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.maplink { display: inline-block; margin-top: 10px; color: var(--copper); text-underline-offset: 4px; }
.c-lines li { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-top: 1px solid var(--rule); }
.c-lines li:last-child { border-bottom: 1px solid var(--rule); }
.c-lines span { font: 400 13px/26px var(--mono); color: var(--muted); }
.c-lines a { font-size: 18px; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }

.foot { background: var(--slate); color: rgba(238, 241, 239, .75); }
.foot p { max-width: var(--max); margin: 0 auto; padding: 28px var(--gut); font: 400 13px var(--mono); }

/* Lightbox */
body.locked { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(14, 20, 23, .92);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .25s ease;
}
.lb.open { opacity: 1; }
.lb[hidden] { display: none; }
.lb-stage { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px 24px; }
.lb-stage:focus { outline: none; }
.lb img { max-width: 100%; max-height: 85vh; width: auto; height: auto; object-fit: contain; border-radius: 3px; transform: scale(.97); transition: transform .25s ease; }
.lb.open img { transform: none; }
.lb-cap { color: #e9ecea; font-size: 14px; margin-top: 12px; text-align: center; }
.lb-btn {
  position: absolute; width: 44px; height: 44px; border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-x { top: 12px; right: 12px; }
.lb-prev { left: 14px; top: 50%; margin-top: -22px; }
.lb-next { right: 14px; top: 50%; margin-top: -22px; }

/* Hover only for a real mouse */
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--ink); color: #fff; box-shadow: 0 15px 20px rgba(0, 0, 0, .2); }
  .btn-call:hover { background: #33474f; color: #fff; box-shadow: 0 15px 20px rgba(0, 0, 0, .2); }
  .btn-line:hover { background: var(--ink); color: #fff; box-shadow: 0 15px 20px rgba(0, 0, 0, .2); }
  .btn-ghost:hover { background: #fff; color: var(--slate); border-color: #fff; box-shadow: 0 15px 20px rgba(0, 0, 0, .25); }
  .nav a:hover { border-bottom-color: var(--copper); }
    .tile:hover img { transform: scale(1.03); }
  .pick:hover { border-color: var(--ink); }
  .ask-copy .alt a:hover, .maplink:hover { color: var(--ink); }
  .c-lines a:hover { color: var(--copper); }
  .lb-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
}

/* Tablet */
@media (max-width: 1099px) {
  .hero { min-height: 0; gap: 20px 24px; }
  .hero-copy { grid-column: 1 / -1; padding: 48px 0 8px; }
  .hero h1 { max-width: none; }
  .hero-photo { margin: 0 0 40px; aspect-ratio: auto; }
  .hero-reviews { padding: 0 0 40px; justify-content: flex-start; }
  .nav { gap: 20px; }
  .services, .ask { gap: 40px; }
  .services { grid-template-columns: 1fr; }
  .services-photo { position: static; }
  .services-photo img { aspect-ratio: 16 / 9; object-position: 50% 72%; }
  .hero { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .ask { grid-template-columns: 1fr; }
  .licence-in { grid-template-columns: 1fr; }
  .record { grid-row: auto; }
}

@media (max-width: 899px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
}
.btn-call span { white-space: nowrap; }

/* Phone */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top-in { gap: 12px; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
  .mark-name { font-size: 15px; }
  .btn-call { padding: 9px 12px; font-size: 15px; }
  .btn-call span { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .hero-photo { order: -1; margin: 0; border-radius: 0; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-copy { padding: 28px var(--gut) 8px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 17px; margin-top: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-reviews { padding: 28px var(--gut) 48px; }
  .licence-in { padding-top: 48px; padding-bottom: 48px; }
  .record div { grid-template-columns: 92px 1fr; }
  .services { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .services-photo { position: static; }
  .services-photo img { aspect-ratio: 4 / 3; object-position: 50% 70%; }
  .grid { gap: 12px; }
  .work, .ask, .contact { padding-bottom: 64px; }
  .row { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .c-lines li { grid-template-columns: 76px 1fr; }
  .lb-stage { padding: 60px 12px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin-top: 0; }
  .lb-prev { left: calc(50% - 54px); }
  .lb-next { right: calc(50% - 54px); }
  .lb-stage { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
