/* JL Building, design option B: a clean, familiar contractor site in the logo's navy and gold. */
:root {
  --navy: #233a57;
  --navy-dk: #182a42;
  --night: #111c2b;
  --gold: #d39a2a;
  --gold-hi: #e2ab3f;
  --ink: #1b2533;
  --muted: #4f5b6b;
  --body: #26313f;
  --line: #d9dee4;
  --grey: #f2f4f6;
  --white: #fff;
  --font: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Zilla Slab", Rockwell, Georgia, serif;
  --edge: clamp(20px, 4vw, 56px);
  --frame: max(var(--edge), calc((100% - 1240px) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.b-skip { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 12px 18px; background: var(--gold); color: var(--night); font-weight: 700; text-decoration: none; }
.b-skip:focus { top: 12px; }

/* Buttons */
.b-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border: 2px solid var(--gold); background: var(--gold); color: var(--night); font: 700 14px/1.2 var(--font); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.b-btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.b-btn-line { background: transparent; border-color: #fff; color: #fff; }
.b-btn-line:hover { background: #fff; border-color: #fff; color: var(--navy); }
.b-btn-quiet { background: var(--navy); border-color: var(--navy); color: #fff; }
.b-btn-quiet:hover { background: var(--navy-dk); border-color: var(--navy-dk); color: #fff; }
.b-btn-white { background: #fff; border-color: #fff; color: var(--navy); }
.b-btn-white:hover { background: var(--grey); border-color: var(--grey); color: var(--navy); }
.b-btn-block { display: flex; width: 100%; }

/* Header: white, the logo left, the phone number right */
.b-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 32px; height: 88px; padding: 0 var(--frame); background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.b-bar.is-down { border-bottom-color: var(--line); }
.b-bar-logo img { width: auto; height: 56px; }
.b-nav { display: flex; gap: 30px; margin-left: auto; }
.b-nav a { padding: 12px 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.b-nav a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.b-bar-call { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; background: var(--navy); color: #fff; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: background-color .18s var(--ease); }
.b-bar-call:hover { background: var(--navy-dk); }
.b-bar-call svg { width: 18px; height: 18px; fill: var(--gold); }

/* Hero: the villa, full width, the promise on the left */
.b-hero { position: relative; display: flex; align-items: center; min-height: min(84svh, 860px); padding: 96px var(--frame); overflow: hidden; isolation: isolate; background: var(--night); }
.b-hero-photo { position: absolute; inset: 0; z-index: -2; }
.b-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.b-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17, 28, 43, .86), rgba(17, 28, 43, .66) 680px, rgba(17, 28, 43, .14) 1120px); /* taste-skill-ignore: neutral scrim under text on a photo */ }
.b-hero-text { max-width: 760px; color: #fff; }
.b-hero h1 { font-size: clamp(40px, 5.4vw, 80px); }
.b-hero-text > p { margin-top: 22px; max-width: 48ch; font-size: 19px; color: #eef1f4; }
.b-hero-acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.b-hero-proof { display: grid; gap: 10px; max-width: 560px; margin-top: 40px; padding: 22px 26px; background: rgba(17, 28, 43, .72); font-size: 17px; }
.b-hero-proof figure { margin: 0; }
.b-hero-proof blockquote { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.35; }
.b-hero-proof figcaption { margin-top: 8px; font-size: 14px; color: #d7dde5; }
.b-hero-proof a { color: #fff; font-weight: 700; }
.b-hero-proof a:hover { color: var(--gold-hi); }
.b-hero-proof > p { padding-top: 12px; color: #eef1f4; }
.b-hero-proof > .b-stars { padding-top: 0; }
.b-star-row { display: inline-block; width: 92px; height: 17px; margin-right: 6px; vertical-align: -2px; fill: var(--gold-hi); }
.b-hero-proof b { color: var(--gold-hi); }

/* Section heads: heading, a short gold bar, one line */
.b-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 64px; align-items: end; }
.b-head h2, .b-about h2, .b-enquire h2 { font-size: clamp(32px, 3.4vw, 46px); }
.b-head h2::after, .b-about h2::after, .b-enquire h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 18px; background: var(--gold); }
.b-head p { max-width: 52ch; color: var(--body); font-size: 19px; }

/* Services */
.b-services { padding: 112px var(--frame); }
.b-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.b-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.b-card h3 { margin-top: 24px; font-size: 26px; color: var(--navy); }
.b-card p { margin-top: 10px; color: var(--body); }
.b-more { display: inline-block; margin-top: 16px; padding: 6px 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--gold); }
.b-more:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* "15 years", set in the heading face */
.b-years { font-family: var(--display); font-weight: 700; font-size: 1.14em; letter-spacing: 0; }
.b-hero .b-years { color: var(--gold-hi); }
.b-about .b-years { color: var(--navy); }

/* Recent work: his own photos, swiped sideways */
.b-work { padding: 112px 0 112px var(--frame); }
.b-work .b-head { padding-right: var(--frame); }
.b-track { display: flex; gap: 20px; margin-top: 48px; padding-right: var(--frame); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.b-track::-webkit-scrollbar { display: none; }
.b-track:focus-visible { outline-offset: 6px; }
.b-slide { flex: 0 0 clamp(260px, 25vw, 360px); margin: 0; scroll-snap-align: start; }
.b-slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.b-slide figcaption { margin-top: 12px; font-weight: 700; color: var(--navy); }
.b-carousel-nav { display: flex; gap: 10px; margin-top: 28px; }
.b-arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 0; background: var(--navy); color: #fff; cursor: pointer; transition: background-color .18s var(--ease), opacity .18s var(--ease); }
.b-arrow:hover { background: var(--navy-dk); }
.b-arrow:disabled { opacity: .35; cursor: default; }
.b-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* About: grey band, words left, the frame right */
.b-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 112px var(--frame); background: var(--grey); }
.b-about-text p { margin-top: 18px; max-width: 56ch; }
.b-about-text h2 + p { margin-top: 28px; }
.b-about-text .b-btn { margin-top: 32px; }
.b-about-photo { position: relative; justify-self: center; width: min(100%, 460px); margin: 0; }
.b-about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
.b-about-photo figcaption { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 10px 18px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* Why homeowners call Joshua: three tiles over Lower Hutt at night */
.b-trust { position: relative; padding: 104px var(--frame) 112px; overflow: hidden; isolation: isolate; color: #fff; text-align: center; background: var(--night); }
.b-trust-photo { position: absolute; inset: -16% 0; z-index: -2; }
.b-trust-photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.b-trust-sub { margin-top: 14px; font-size: 19px; color: #eef1f4; }
.b-review { display: flex; flex-direction: column; justify-content: space-between; }
.b-review blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.b-review figcaption { margin-top: 18px; font-weight: 700; color: var(--navy); }
.b-trust-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.b-trust::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(17, 28, 43, .72); }
.b-trust h2 { font-size: clamp(32px, 3.4vw, 46px); }
.b-trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; text-align: left; }
.b-tile { margin: 0; padding: 34px 32px; background: var(--white); color: var(--ink); }
.b-tile-big { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.05; color: var(--navy); margin-bottom: 10px; }

/* Enquire: the form left, the ways to call right */
.b-enquire { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; padding: 112px var(--frame); }
.b-lede { margin-top: 26px; font-size: 19px; color: var(--body); max-width: 52ch; }
#bform { display: grid; gap: 20px; margin-top: 36px; }
.b-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.b-field { display: grid; gap: 8px; }
.b-field span { font-size: 17px; font-weight: 700; }
.b-field input, .b-field select, .b-field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #b9c1cc; border-radius: 0; background: #fff; color: var(--ink); font: 400 17px/1.4 var(--font); }
.b-field textarea { resize: vertical; }
.b-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23233a57' stroke-width='2'/%3E%3C/svg%3E"); background-position: calc(100% - 18px) 50%; background-size: 12px 8px; background-repeat: no-repeat; padding-right: 44px; }
.b-field input:focus, .b-field select:focus, .b-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.b-send { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.b-note { font-size: 14px; color: var(--muted); }
.b-contact { padding: 36px 34px; background: var(--grey); }
.b-contact h3 { font-size: 26px; color: var(--navy); }
.b-contact dl { margin: 20px 0 28px; }
.b-contact dl div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 9px 0; }
.b-contact dt { font-size: 14px; color: var(--muted); }
.b-contact dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* Questions */
.b-faq { padding: 112px var(--frame); background: var(--grey); }
.b-faq-list { display: grid; gap: 8px; margin-top: 40px; }
.b-q { background: var(--white); }
.b-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 28px; font-size: 19px; font-weight: 700; color: var(--navy); }
.b-q summary::-webkit-details-marker { display: none; }
.b-q-mark { position: relative; flex: none; width: 20px; height: 20px; }
.b-q-mark::before, .b-q-mark::after { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: var(--gold); transition: transform .25s var(--ease); }
.b-q-mark::after { transform: rotate(90deg); }
.b-q[open] .b-q-mark::after { transform: rotate(0deg); }
.b-q p { max-width: 64ch; padding: 0 28px 26px; color: var(--body); }

/* The call band */
.b-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 36px; padding: 64px var(--frame); background: var(--navy); color: #fff; text-align: center; }
.b-cta p { font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; }

/* Footer */
.b-foot { padding: 80px var(--frame) 32px; background: var(--night); color: #d7dde5; font-size: 17px; }
.b-foot a { color: #fff; }
.b-foot a:hover { color: var(--gold-hi); }
.b-foot-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr); gap: 40px; }
.b-foot-brand img { width: 170px; height: auto; }
.b-foot-h { margin-bottom: 12px; font-weight: 700; color: #fff; }
.b-credits { margin-top: 64px; font-size: 14px; color: #b4bfcc; max-width: 58ch; }
.b-legal { margin-top: 12px; font-size: 14px; color: #b4bfcc; }
.b-dock { display: none; }

/* Entrances: each part rises once as it arrives */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.b-card img { transition: transform .5s var(--ease); }
.b-card:hover img { transform: scale(1.03); }
.b-card { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .b-hero-photo img, .b-trust-photo img { transform: none !important; }
  .b-card img { transition: none; }
}

/* Tablet */
@media (max-width: 1099px) {
  .b-nav { display: none; }
  .b-bar-call { margin-left: auto; }
  .b-head, .b-about, .b-enquire { grid-template-columns: minmax(0, 1fr); }
  .b-about { gap: 48px; }
  .b-foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  html { scroll-padding-top: 16px; }
  .b-bar { position: relative; height: 72px; }
  .b-bar-logo img { height: 44px; }
  .b-bar-call { min-height: 44px; padding: 8px 14px; }
  .b-bar-call span { display: none; }
  .b-hero { min-height: 78svh; align-items: flex-end; padding: 64px 20px 40px; }
  .b-hero::after { background: linear-gradient(0deg, rgba(17, 28, 43, .92), rgba(17, 28, 43, .74) 55%, rgba(17, 28, 43, .58)); /* taste-skill-ignore: neutral scrim under text on a photo */ }
  .b-hero-text > p { font-size: 17px; }
  .b-hero-proof { margin-top: 28px; padding: 18px 20px; }
  .b-hero-proof blockquote { font-size: 19px; }
  .b-hero-acts .b-btn { flex: 1 1 100%; }
  .b-hero-acts .b-btn-line { display: none; }
  .b-services, .b-about, .b-enquire, .b-faq, .b-work { padding-top: 80px; padding-bottom: 80px; }
  .b-work { padding-left: 20px; }
  .b-work .b-head, .b-track { padding-right: 20px; }
  .b-slide { flex-basis: 78vw; }
  .b-cards, .b-trust-row, .b-row { grid-template-columns: minmax(0, 1fr); }
  .b-trust { padding-top: 80px; padding-bottom: 80px; }
  .b-tile { padding: 28px 24px; }
  .b-contact { padding: 28px 22px; }
  .b-send .b-btn { flex: 1 1 100%; }
  .b-q summary { min-height: 68px; padding: 16px 18px; }
  .b-q p { padding: 0 18px 22px; }
  .b-foot-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .b-dock { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--night); }
  .b-dock a { display: flex; align-items: center; justify-content: center; min-height: 50px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
  .b-dock .b-dock-main { background: var(--gold); color: var(--night); }
}
